/* ==========================================================================
   Lean On Me HR Solutions LLC
   Calm, light, wiring-diagram direction in white and blues.
   Mobile-first: base styles target phones, min-width queries scale up.
   Breakpoints: 640px (large phone / small tablet), 900px (tablet / laptop),
   1100px (desktop navigation).
   ========================================================================== */

:root {
  --blue: #1a56f0;
  --blue-dark: #1242c4;
  --blue-soft: #e8effd;
  --cyan: #18c1dc;
  --navy: #0b1b3f;
  --navy-deep: #071230;
  --charcoal: #2b303a;
  --gray: #56617a;
  --soft: #7586a6;
  --line: #dbe4f1;
  --line-strong: #bfcde5;
  --mist: #f3f6fc;
  --white: #ffffff;
  --red: #e5252a;
  --red-text: #c21d22;
  --green-text: #0c7a52;
  /* Flat tint the washed photos are blended into. */
  --photo-wash: #dfe8fa;

  /* Wiring artwork: overridden where it sits on a coloured band. */
  --wire: #cdd9ec;
  --wire-accent: var(--blue);
  --wire-fill: var(--mist);
  --wire-glyph: #9aadcd;

  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --brand: "Manrope", var(--sans);

  /* One radius scale: panels, inner cards, small tiles and fields, buttons. */
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-btn: 8px;
  --shadow-tile: 0 1px 2px rgba(11, 27, 63, 0.06), 0 10px 22px rgba(11, 27, 63, 0.1);
  --shadow: 0 2px 4px rgba(11, 27, 63, 0.04), 0 22px 48px rgba(11, 27, 63, 0.1);
  --gutter: 20px;
  --header-h: 66px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

main { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
  text-wrap: balance;
}
h1, h2 { line-height: 1.02; letter-spacing: -0.04em; }
h3 { line-height: 1.12; letter-spacing: -0.025em; }
h4 { font-family: var(--sans); line-height: 1.3; }
b, strong { font-weight: 600; }

h2 { font-size: clamp(2.100rem, 1.200rem + 3.800vw, 3.700rem); }
h3 { font-size: 1.350rem; }

/* Second tone for headings: the quieter half of a two-part line. */
.soft { color: var(--soft); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1200px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared bits ---------- */

.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }

/* Section label: a small pill with a dot. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.840rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
}
.eyebrow { margin-bottom: 22px; }
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.lead { font-size: 1.080rem; color: var(--gray); }

.section-head {
  max-width: 820px;
  margin: 0 auto clamp(40px, 5vw, 68px);
  text-align: center;
}
.section-head h2 { margin-bottom: 20px; }
.section-head .lead { max-width: 54ch; margin-inline: auto; }
.section-head-left { margin-inline: 0; text-align: left; }
.section-head-left .lead { margin-inline: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(11, 27, 63, 0.2), 0 8px 18px rgba(26, 86, 240, 0.22);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 1px 2px rgba(11, 27, 63, 0.2), 0 12px 24px rgba(26, 86, 240, 0.3); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(11, 27, 63, 0.05);
}
.btn-white:hover { border-color: var(--line-strong); box-shadow: var(--shadow-tile); }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.920rem; }
.btn-block { width: 100%; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  font-size: 0.950rem;
  color: var(--blue);
}
.card-link svg {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.card-link:hover svg { transform: translateX(5px); }

.check-list { display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.950rem;
  line-height: 1.45;
  color: var(--charcoal);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56f0' stroke-width='3.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.500 12.500l3.500 3.500 7.500-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.to-top svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.700;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Wiring artwork ---------- */

.wire-defs { position: absolute; }

.wires {
  position: absolute;
  top: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.wires-narrow { left: 0; width: 100%; aspect-ratio: 390 / 60; }
.wires-wide {
  display: none;
  left: 50%;
  width: max(100%, 1100px);
  margin-left: calc(max(100%, 1100px) / -2);
  aspect-ratio: 1600 / 720;
}

.wire-lines path { fill: none; stroke: var(--wire); stroke-width: 1.250; }
.wire-nodes rect { fill: var(--wire-fill); stroke: var(--wire); stroke-width: 1.250; }
.wire-glyphs { fill: none; stroke: var(--wire-glyph); stroke-width: 1.400; stroke-linecap: round; stroke-linejoin: round; }
.wire-dots { stroke-width: 2.600; }

/* A short pulse travelling along the main runs. */
.wire-flow path {
  fill: none;
  stroke: var(--wire-accent);
  stroke-width: 1.750;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  animation: wireFlow 7s linear infinite;
}
.wire-flow path:nth-child(2) { animation-duration: 5s; animation-delay: -2s; }
.wire-flow path:nth-child(3) { animation-duration: 8s; animation-delay: -4s; }
.wire-flow path:nth-child(4) { animation-duration: 6s; animation-delay: -1s; }
@keyframes wireFlow {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* ---------- Header ---------- */

/* Fixed to the top edge with no bar of its own: just the logo, links and buttons
   on the page. A white backing fades in once the page scrolls underneath it. */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), height 0.35s var(--ease);
}
.js .site-header { animation: chromeIn 1.2s var(--ease) 0.15s both; }
@keyframes chromeIn {
  from { opacity: 0; }
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line);
}

/* Phone and tablet: logo centred, menu button pinned to the right edge. */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 42px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 1.080rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.brand-name b { color: var(--blue); font-weight: 800; }
.brand-sub {
  margin-top: 5px;
  font-family: var(--brand);
  font-size: 0.590rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.nav-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--mist);
  cursor: pointer;
  transition: background-color 0.3s;
}
.nav-toggle[aria-expanded="true"] { background: var(--blue-soft); }
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.500px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle span:nth-child(3) { display: none; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.500px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21.500px; transform: rotate(-45deg); }

/* The menu: a sheet that drops from the bar over a dimmed page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(7, 18, 48, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.nav-open body::before { opacity: 1; pointer-events: auto; }
html.nav-open { overflow: hidden; }

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px var(--gutter) 22px;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(11, 27, 63, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
}
.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.primary-nav ul { counter-reset: nav; }
.primary-nav li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.primary-nav.is-open li {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(0.05s + var(--k, 0) * 0.045s);
}
.primary-nav li:nth-child(2) { --k: 1; }
.primary-nav li:nth-child(3) { --k: 2; }
.primary-nav li:nth-child(4) { --k: 3; }
.primary-nav li:nth-child(5) { --k: 4; }
.primary-nav li:nth-child(6) { --k: 5; }

.nav-link {
  counter-increment: nav;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 4px;
  font-family: var(--display);
  font-size: 1.550rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.nav-link::before {
  content: "0" counter(nav);
  flex: none;
  width: 22px;
  font-family: var(--sans);
  font-size: 0.780rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--soft);
  transition: color 0.2s;
}
.primary-nav li:last-child .nav-link { border-bottom: 0; }
.nav-link:hover,
.nav-link.is-active { color: var(--blue); }
.nav-link.is-active::before { color: var(--blue); }

.nav-cta,
.nav-call-short { display: none; }

/* ---------- Hero ---------- */

.hero {
  --wire: #a9bcdc;
  --wire-glyph: #7d93bb;
  --wire-fill: rgba(243, 246, 252, 0.88);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--header-h) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* The team photograph, washed into the page colour so it reads as texture. */
.hero-bg {
  position: absolute;
  inset: -6% 0 0;
  z-index: -3;
  background: var(--photo-wash);
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  mix-blend-mode: luminosity;
  opacity: 0.280;
}
/* Wash the photo towards the page colour, fading out completely at the bottom. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(243, 246, 252, 0.72) 0%, rgba(243, 246, 252, 0.34) 34%, rgba(243, 246, 252, 0.46) 70%, var(--mist) 100%);
}
/* Clear a calm field behind the type; sits above the wiring. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 320px at 50% 46%, rgba(243, 246, 252, 0.92) 35%, rgba(243, 246, 252, 0) 100%);
  pointer-events: none;
}
.hero .wires { top: var(--header-h); z-index: -2; }

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(72px, 19vw, 110px) clamp(44px, 7vw, 76px);
}

.hero-tagline {
  margin-bottom: 22px;
  font-size: 0.950rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2.400rem, 0.600rem + 9vw, 5rem);
  line-height: 0.980;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
.hero h1 > span { display: block; }
.hero h1 .accent { color: var(--blue); }

.hero-lead {
  max-width: 34rem;
  margin: 0 auto 30px;
  font-size: 1.080rem;
  color: var(--charcoal);
}

.hero-actions { display: grid; gap: 10px; align-self: stretch; }

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.hero-strip a {
  display: block;
  height: 100%;
  padding: 14px 14px 16px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  transition: background-color 0.25s, color 0.25s;
}
.hero-strip small {
  display: block;
  margin-bottom: 5px;
  font-family: var(--sans);
  font-size: 0.720rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.hero-strip li:nth-child(even) a { border-left: 1px solid var(--line); }
.hero-strip li:nth-child(n + 3) a { border-top: 1px solid var(--line); }
.hero-strip a:hover { background: var(--mist); color: var(--blue); }

/* ---------- About ---------- */

.about { background: var(--white); }

/* Statement on the left, the introduction beside it. */
.about-head { display: grid; gap: 26px; margin-bottom: clamp(40px, 6vw, 72px); }
.about-head h2 { font-size: clamp(2.300rem, 1.100rem + 5vw, 4.400rem); }
.about-intro .lead {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 1.400rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.about-text { display: grid; gap: 14px; max-width: 56ch; margin-bottom: 26px; color: var(--gray); }

/* A mosaic of photos and statements. One column here, twelve from 900px. */
.about-bento { display: grid; gap: 12px; }
.about-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; }

.about-photo { aspect-ratio: 16 / 10; background: var(--blue-soft); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-b { aspect-ratio: 16 / 9; }

.about-belief {
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  padding: 26px 24px;
  background: var(--blue);
  color: var(--white);
}
.about-belief p {
  font-family: var(--display);
  font-size: clamp(1.500rem, 1.150rem + 1.300vw, 2rem);
  font-weight: 500;
  line-height: 1.100;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.philosophy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 24px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.philosophy figcaption { font-size: 0.840rem; font-weight: 500; color: var(--gray); }
.philosophy blockquote {
  font-family: var(--display);
  font-size: clamp(1.750rem, 1.100rem + 2.600vw, 3rem);
  font-weight: 500;
  line-height: 1.040;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-wrap: balance;
}
.philosophy-pillars { display: flex; flex-wrap: wrap; gap: 8px; }
.philosophy-pillars li {
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.840rem;
  font-weight: 500;
  color: var(--navy);
}

/* ---------- Services ---------- */

/* An explorer: one service open at a time. Stacked rows on small screens,
   four columns that slide open on wide ones (see the 1100px block). */
.svc-list { display: grid; gap: 12px; }

.svc-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color 0.4s, box-shadow 0.4s var(--ease);
}
.svc-panel.is-open { border-color: var(--line-strong); box-shadow: var(--shadow); }

.svc-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 14px 16px 14px 20px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.svc-tab:focus-visible { outline-offset: -4px; border-radius: var(--radius-lg); }
.svc-tab-bg { display: none; }
.svc-tab-num { font-size: 0.840rem; font-weight: 500; color: var(--blue); }
.svc-tab-title {
  flex: 1;
  font-family: var(--display);
  font-size: 1.400rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
/* Plus that folds into a minus when the panel is open. */
.svc-tab-sign {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.svc-tab-sign::before,
.svc-tab-sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.500px;
  margin: -0.750px 0 0 -6px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}
.svc-tab-sign::after { transform: rotate(90deg); }
.is-open .svc-tab-sign { background: var(--blue); border-color: var(--blue); color: var(--white); }
.is-open .svc-tab-sign::after { transform: rotate(0deg); }
html:not(.js) .svc-tab-sign { display: none; }

/* Height animates through the grid row; without JS every panel stays open. */
.svc-detail { display: grid; grid-template-rows: 1fr; }
.js .svc-detail { grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.js .is-open > .svc-detail { grid-template-rows: 1fr; }
.svc-detail-inner { min-height: 0; overflow: hidden; }

.svc-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 10px;
  /* Concentric with the panel: its radius less the 10px inset. */
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  background: var(--blue-soft);
}
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Keep each photo's subject in frame when the slot turns tall and narrow. */
#service-hr .svc-photo img { object-position: 62% 50%; }
#service-coaching .svc-photo img { object-position: 20% 50%; }
#service-formation .svc-photo img { object-position: 36% 50%; }
#service-retirement .svc-photo img { object-position: 84% 50%; }

.svc-copy { padding: 22px 20px 18px; }
.service-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.840rem;
  font-weight: 500;
  color: var(--blue);
}
.service-num i { font-style: normal; color: var(--gray); }
.service-num i::before { content: "· "; color: var(--soft); }
.svc-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(1.650rem, 1.250rem + 1.600vw, 2.250rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.svc-copy > p { max-width: 58ch; margin-bottom: 12px; color: var(--gray); }
.svc-copy h4 {
  margin: 20px 0 14px;
  font-size: 0.840rem;
  font-weight: 500;
  color: var(--navy);
}
.svc-copy .check-list { margin-bottom: 16px; }
.svc-copy .service-note { margin-bottom: 8px; font-size: 0.840rem; color: var(--gray); }

/* The open panel's copy arrives one line after another. */
.js .svc-copy > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s;
}
.js .is-open .svc-copy > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(0.2s + var(--n, 0) * 0.055s);
}
.svc-copy > :nth-child(2) { --n: 1; }
.svc-copy > :nth-child(3) { --n: 2; }
.svc-copy > :nth-child(4) { --n: 3; }
.svc-copy > :nth-child(5) { --n: 4; }
.svc-copy > :nth-child(6) { --n: 5; }
.svc-copy > :nth-child(7) { --n: 6; }
/* Used when a panel is opened from a link elsewhere on the page. */
.svc-list.is-instant * { transition: none !important; }

.services-cta {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  padding: 28px 24px;
  background: var(--blue-soft);
  border-radius: var(--radius-lg);
}
.services-cta h3 { font-size: 1.650rem; letter-spacing: -0.03em; }

/* ---------- Who We Help ---------- */

.who { background: var(--white); }
.who-grid { display: grid; gap: 16px; }

.who-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 18px;
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), background-color 0.35s, border-color 0.35s, box-shadow 0.35s var(--ease);
}
.who-card:hover { transform: translateY(-6px); background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }

.who-card h3 { margin-bottom: 10px; font-size: 1.400rem; }
.who-card p { margin-bottom: 14px; font-size: 0.950rem; color: var(--gray); }
.who-card .card-link { margin-top: auto; }

/* ---------- Why Choose Us ---------- */

.why { overflow: clip; }

.why-layout { display: grid; gap: 36px; }
.why-intro .section-head { margin-bottom: 28px; }
.why-intro h2 { font-size: clamp(2.100rem, 1.200rem + 2.800vw, 3.100rem); }
.why-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--blue-soft);
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; }

/* One record per reason: number, title, a single line of note. */
.why-list { border-top: 1px solid var(--line); }
.why-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.why-num {
  padding-top: 0.500em;
  font-size: 0.840rem;
  font-weight: 500;
  color: var(--blue);
}
.why-item h3 { margin-bottom: 8px; font-size: 1.550rem; letter-spacing: -0.03em; transition: color 0.3s; }
.why-item p { max-width: 52ch; color: var(--gray); }
.why-item:hover h3 { color: var(--blue); }

/* ---------- How We Work ---------- */

.process { background: var(--white); }

/* A stepper: three stops on a wire, one stage below showing the selected step. */
.steps { max-width: 1000px; margin-inline: auto; }

.steps-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 26px;
}
html:not(.js) .steps-tabs { display: none; }

/* The wire between the stops; its blue run reaches as far as the current step. */
.steps-track {
  position: absolute;
  top: 26px;
  left: 16.666%;
  right: 16.666%;
  height: 1px;
  background: var(--wire);
}
.steps-track i {
  display: block;
  width: calc(var(--step, 0) * 50%);
  height: 2px;
  margin-top: -0.500px;
  background: var(--blue);
  transition: width 0.7s var(--ease);
}

.steps-tab {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.steps-tab:focus-visible { outline-offset: 6px; border-radius: var(--radius-sm); }
.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-tile);
  font-family: var(--display);
  font-size: 1.250rem;
  font-weight: 500;
  color: var(--navy);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.steps-tab:hover .step-num { border-color: var(--line-strong); transform: translateY(-2px); }
.steps-tab.is-done .step-num { border-color: var(--blue); color: var(--blue); }
.steps-tab.is-active .step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(11, 27, 63, 0.2), 0 10px 20px rgba(26, 86, 240, 0.3);
  transform: translateY(-2px);
}
.steps-tab-label {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--soft);
  transition: color 0.4s var(--ease);
}
.steps-tab-label small {
  display: block;
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: 0.780rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gray);
}
.steps-tab:hover .steps-tab-label,
.steps-tab.is-active .steps-tab-label { color: var(--navy); }

.steps-stage {
  position: relative;
  display: grid;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Fills while a step is on show, then the next one takes over. */
.steps-timer { position: absolute; inset: 0 0 auto 0; z-index: 1; height: 2px; }
.steps-timer i {
  display: block;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.steps.is-playing .steps-timer i { animation: stepTimer var(--step-time, 5s) linear forwards; }
@keyframes stepTimer {
  to { transform: scaleX(1); }
}

.steps-panel { position: relative; padding: 30px 24px 22px; }
/* All three share one cell, so the stage keeps the height of the tallest. */
.js .steps-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.js .steps-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--ease) 0.12s, transform 0.7s var(--ease) 0.12s, visibility 0s;
}
.steps-ghost {
  position: absolute;
  right: 18px;
  top: 4px;
  font-family: var(--display);
  font-size: clamp(5.500rem, 2rem + 14vw, 11rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(26, 86, 240, 0.09);
  pointer-events: none;
}
.steps-panel small { position: relative; font-size: 0.840rem; font-weight: 500; color: var(--blue); }
.steps-panel h3 {
  position: relative;
  margin: 8px 0 12px;
  font-size: clamp(1.900rem, 1.300rem + 2.600vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.steps-panel p { position: relative; max-width: 46ch; margin-bottom: 12px; font-size: 1.080rem; color: var(--gray); }

/* ---------- Call to action band ---------- */

.cta-band {
  --wire: rgba(255, 255, 255, 0.24);
  --wire-accent: var(--white);
  --wire-fill: var(--blue);
  --wire-glyph: rgba(255, 255, 255, 0.6);
  position: relative;
  padding: clamp(84px, 11vw, 150px) 0;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(36% 62% at 50% 50%, var(--blue) 45%, rgba(26, 86, 240, 0) 100%);
}
.cta-band .wires { z-index: -2; }
.cta-inner { max-width: 880px; }
.cta-band h2 { color: var(--white); margin-bottom: 22px; }
.cta-band .soft { color: rgba(255, 255, 255, 0.74); }
.cta-band p { max-width: 36rem; margin: 0 auto 32px; font-size: 1.080rem; color: rgba(255, 255, 255, 0.88); }
.cta-actions { display: grid; justify-items: center; gap: 14px; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.88);
}
.cta-phone strong { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.cta-phone:hover strong { border-color: var(--white); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 40px; }
.contact-copy h2 { margin-bottom: 18px; }

.contact-list { display: grid; gap: 10px; margin-top: 30px; }
.contact-list li {
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-list small { display: block; font-size: 0.800rem; color: var(--gray); }
.contact-list a,
.contact-list b { font-weight: 500; color: var(--navy); }
.contact-list a { display: inline-block; padding: 9px 0; }
.contact-list a:hover { color: var(--blue); }

.contact-form {
  padding: 28px 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 22px; font-size: 1.750rem; letter-spacing: -0.03em; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.880rem;
  font-weight: 500;
  color: var(--navy);
}
.optional { font-weight: 400; color: var(--gray); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356617a' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 86, 240, 0.14);
}
.field .is-invalid { border-color: var(--red); background-color: #fff7f7; }

.form-status { margin-top: 14px; font-size: 0.950rem; font-weight: 500; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red-text); }
.form-status.is-success { color: var(--green-text); }
.form-status.is-notice {
  padding: 14px 16px;
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  color: var(--navy);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(56px, 7vw, 88px);
  font-size: 0.950rem;
}
.footer-grid { display: grid; gap: 36px; padding-bottom: 44px; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-name b { color: #7ea8ff; }
.brand-footer .brand-sub { color: rgba(255, 255, 255, 0.65); }
.brand-tile {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 6px;
  background: var(--white);
  border-radius: var(--radius-sm);
}
.brand-tile img { width: 100%; }
.footer-company {
  margin-top: 22px;
  font-family: var(--display);
  font-size: 1.250rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}
.footer-tagline { margin-top: 6px; max-width: 320px; color: rgba(255, 255, 255, 0.78); }

.footer-col h4 { margin-bottom: 10px; font-size: 0.840rem; font-weight: 500; color: rgba(255, 255, 255, 0.55); }
.footer-col li a,
.footer-col li span { display: inline-block; padding: 10px 0; }
.footer-col li a { color: rgba(255, 255, 255, 0.88); transition: color 0.2s, transform 0.25s var(--ease); }
.footer-col li a:hover { color: var(--white); transform: translateX(4px); }
.footer-btn { margin-top: 12px; }

.footer-bottom {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.860rem;
}
.disclaimer { margin-bottom: 16px; font-size: 0.800rem; color: rgba(255, 255, 255, 0.6); }
.footer-meta { display: grid; gap: 8px; }
.footer-meta a { color: var(--white); font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.5); transition: color 0.2s; }
.footer-meta a:hover { color: var(--cyan); }
.link-button {
  margin-left: 6px;
  padding: 11px 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--cyan); }

/* ---------- Privacy dialog ---------- */

.modal {
  width: min(480px, calc(100% - 40px));
  padding: 30px 26px 26px;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--charcoal);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(7, 18, 48, 0.5); backdrop-filter: blur(3px); }
.modal h2 { margin-bottom: 14px; font-size: 1.900rem; }
.modal p { margin-bottom: 12px; color: var(--gray); }
.modal p a { font-weight: 500; color: var(--blue); }
.modal .btn { margin-top: 10px; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-tile);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, color 0.2s;
}
.to-top svg { width: 22px; height: 22px; stroke-width: 2; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--blue); }

/* ---------- Scroll reveal ---------- */

/* Blocks rise into place; headings resolve word by word out of a soft blur. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.05s var(--ease), transform 1.15s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { --d: 0.085s; }
.js .reveal[data-delay="2"] { --d: 0.17s; }
.js .reveal[data-delay="3"] { --d: 0.255s; }
.js .reveal[data-delay="4"] { --d: 0.34s; }

.js .reveal.split { opacity: 1; transform: none; }
.js .split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(7px);
  transition: opacity 1.05s var(--ease), transform 1.15s var(--ease), filter 1.05s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--i) * 0.085s);
}
.js .split.is-visible .w { opacity: 1; transform: none; filter: blur(0); }

/* Photos dolly forward as they travel up the viewport (--z is set from the scroll loop). */
.svc-photo img,
.about-photo img,
.why-photo img { transform: scale(var(--z, 1)); }


/* ==========================================================================
   640px and up: large phones, small tablets
   ========================================================================== */

@media (min-width: 640px) {
  :root { --gutter: 28px; }

  .wires-narrow { display: none; }
  .wires-wide { display: block; }

  .hero-inner { padding-block: clamp(64px, 8vw, 96px) clamp(48px, 6vw, 72px); }
  .hero-tagline { font-size: 1.080rem; }
  .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hero-lead { font-size: 1.150rem; }
  .hero-strip a { padding: 18px 20px 20px; font-size: 1.120rem; }

  .about-bento { grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-photo-a,
  .philosophy { grid-column: 1 / -1; }
  .about-photo-b { aspect-ratio: auto; min-height: 240px; }
  .about-photo-b img { position: absolute; inset: 0; }
  .about-belief,
  .philosophy { padding: 32px; }

  .svc-tab { padding: 16px 20px 16px 28px; }
  .svc-photo { margin: 0 12px; aspect-ratio: 21 / 9; }
  .svc-copy { padding: 28px 30px 24px; }
  .svc-copy .check-list { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .svc-copy .check-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .services-cta { padding: 34px 36px; }

  .who-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 24px; }

  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-form { padding: 38px 34px 30px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
  .to-top { right: 22px; bottom: 22px; }
}

/* ==========================================================================
   900px and up: tablets in landscape, laptops
   ========================================================================== */

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  body { font-size: 17px; }
  h3 { font-size: 1.450rem; }
  .lead { font-size: 1.150rem; }

  .hero { min-height: min(100vh, 900px); }
  .hero-strip { grid-template-columns: repeat(4, 1fr); }
  .hero-strip li:nth-child(n) a { border-top: 0; border-left: 1px solid var(--line); }
  .hero-strip li:first-child a { border-left: 0; }

  .about-head {
    grid-template-columns: 1.150fr 0.850fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .about-intro { padding-top: 58px; }
  .about-intro .lead { font-size: 1.550rem; }

  .about-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: minmax(280px, auto) minmax(260px, auto);
    gap: 16px;
  }
  .about-photo-a { grid-column: 1 / span 5; grid-row: 1 / span 2; aspect-ratio: auto; }
  .about-photo-a img { position: absolute; inset: 0; object-position: 42% 50%; }
  .about-belief { grid-column: 6 / span 4; grid-row: 1; padding: 34px; }
  .about-photo-b { grid-column: 10 / span 3; grid-row: 1; min-height: 0; }
  .philosophy { grid-column: 6 / span 7; grid-row: 2; padding: 34px 36px; }

  .services-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 36px 44px;
  }

  .why-layout {
    grid-template-columns: 0.900fr 1.100fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .why-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .why-item { grid-template-columns: 64px 1fr; gap: 20px; padding: 30px 0; }
  .why-item:first-child { padding-top: 34px; }
  .why-item h3 { font-size: 1.850rem; }

  .steps-tabs { margin-bottom: 34px; }
  .steps-track { top: 30px; }
  .step-num { width: 60px; height: 60px; border-radius: var(--radius); font-size: 1.400rem; }
  .steps-tab-label { font-size: 1.250rem; }
  .steps-panel { padding: 52px 56px 40px; }
  .steps-ghost { right: 44px; top: 18px; }

  .contact-grid {
    grid-template-columns: 0.900fr 1.100fr;
    gap: clamp(48px, 6vw, 80px);
    align-items: start;
  }
  .contact-form { padding: 44px; }
}

/* ==========================================================================
   1100px and up: full desktop navigation
   ========================================================================== */

@media (min-width: 1100px) {
  /* Desktop: logo, plain text links in the middle, buttons at the end. */
  :root { --header-h: 88px; }
  .site-header.is-scrolled { height: 70px; }
  .header-inner { justify-content: flex-start; gap: 24px; }
  .brand img { width: 46px; }
  .brand-name { font-size: 1.150rem; }
  .brand-sub { font-size: 0.630rem; letter-spacing: 0.34em; }

  .nav-toggle { display: none; }
  body::before { display: none; }

  .primary-nav {
    position: static;
    flex: 1;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  /* Links sit on the page's centre line, independent of the logo and button widths. */
  .primary-nav ul {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 22px;
    transform: translate(-50%, -50%);
  }
  .primary-nav li,
  .primary-nav.is-open li { opacity: 1; transform: none; transition: none; }

  .nav-link {
    min-height: 44px;
    padding: 0 2px;
    font-family: var(--sans);
    font-size: 0.950rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--gray);
    border-bottom: 0;
    white-space: nowrap;
  }
  .nav-link::before { content: none; }
  .nav-link:hover,
  .nav-link.is-active { color: var(--navy); }

  .nav-cta { display: inline-flex; order: 2; }
  .nav-call { display: none; }

  /* Headline settles onto two lines, as in the wide layout. */
  .hero h1 { font-size: clamp(4rem, 6vw, 5.200rem); }
  .hero h1 > span:not(:last-child) { display: inline; }

  /* Services: four columns, the open one takes the room. Sizes come from the
     list's own width (cqw) so the copy never reflows while a panel slides. */
  .js .svc-list {
    --strip: 80px;
    --gap: 10px;
    --detail-w: calc(100cqw - 3 * (var(--strip) + var(--gap)) - var(--strip) - 2px);
    container-type: inline-size;
    display: flex;
    gap: var(--gap);
  }
  .js .svc-panel {
    display: flex;
    flex: 0 0 var(--strip);
    min-width: 0;
    border-radius: var(--radius-lg);
    transition: flex-basis 0.75s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
  }
  .js .svc-panel.is-open { flex-basis: calc(100% - 3 * (var(--strip) + var(--gap))); }

  /* The strip: a washed photo with the title running up it. */
  .js .svc-tab {
    position: relative;
    isolation: isolate;
    flex: 0 0 var(--strip);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: var(--strip);
    min-height: 0;
    padding: 24px 0 28px;
    background: var(--photo-wash);
    overflow: hidden;
    transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  }
  .js .svc-tab:focus-visible { outline-offset: -5px; border-radius: var(--radius-lg); }
  .js .svc-tab-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: 0.340;
    transition: opacity 0.5s var(--ease), transform 0.9s var(--ease);
  }
  .js .svc-tab-num { transition: color 0.5s var(--ease), transform 0.5s var(--ease); }
  .js .svc-tab-title {
    flex: none;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.350rem;
    white-space: nowrap;
    transition: transform 0.5s var(--ease);
  }
  .js .svc-tab-sign { display: none; }

  .js .svc-panel:not(.is-open) .svc-tab:hover .svc-tab-bg { opacity: 0.620; transform: scale(1.06); }
  .js .svc-panel:not(.is-open) .svc-tab:hover .svc-tab-num { transform: translateY(4px); }
  .js .svc-panel:not(.is-open) .svc-tab:hover .svc-tab-title { transform: rotate(180deg) translateY(6px); }

  .js .is-open > .svc-tab { background: var(--blue); color: var(--white); cursor: default; }
  .js .is-open > .svc-tab .svc-tab-bg { opacity: 0; }
  .js .is-open > .svc-tab .svc-tab-num { color: rgba(255, 255, 255, 0.8); }

  .js .svc-detail {
    flex: 0 0 var(--detail-w);
    width: var(--detail-w);
    grid-template-rows: 1fr;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .js .is-open > .svc-detail { opacity: 1; transition: opacity 0.5s var(--ease) 0.2s; }
  .js .svc-detail-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.720fr) minmax(0, 1.280fr);
    align-items: stretch;
  }
  .js .svc-photo { aspect-ratio: auto; margin: 10px 0 10px 10px; }
  .js .svc-photo img { position: absolute; inset: 0; }
  .js .svc-copy { align-self: center; padding: 30px 30px 24px; }
  .js .svc-copy h3 { font-size: 1.900rem; }

  .who-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.300fr 0.700fr 1.300fr 0.900fr; gap: clamp(32px, 4vw, 56px); padding-bottom: 52px; }
}

/* ==========================================================================
   1280px and up: room for wider service strips
   ========================================================================== */

@media (min-width: 1280px) {
  /* Room for the second header button: the phone number, outlined, before Contact Us. */
  .primary-nav ul { gap: 30px; }
  .nav-call-full { display: none; }
  .nav-call-short { display: inline; }
  .nav-call {
    display: inline-flex;
    order: 1;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--white);
    border-color: var(--line);
    font-size: 0.920rem;
    color: var(--navy);
    box-shadow: 0 1px 2px rgba(11, 27, 63, 0.05);
  }
  .nav-call:hover { background: var(--white); border-color: var(--line-strong); box-shadow: var(--shadow-tile); }

  .js .svc-list { --strip: 92px; --gap: 12px; }
  .js .svc-copy { padding: 36px 38px 30px; }
  .js .svc-copy h3 { font-size: 2.250rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.14s !important;
    transition-delay: 0s !important;
  }
  .wire-flow { display: none; }
  .steps-timer { display: none; }
  .js .reveal,
  .js .split .w { opacity: 1; transform: none; filter: none; }
}
