:where([data-etch-element="container"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  max-inline-size: var(--content-width, 1366px);
  align-self: center; margin-inline: auto;
}
:where([data-etch-element="flex-div"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
}
:root {
  /* ---------- Brand primitives (the only raw brand hexes in the system) ---------- */
  --_brand-1: #0c419c;
  --_brand-2: #ffc107;
  --_brand-3: #ff3000;

  /* ---------- Semantic colour ---------- */
  --primary: var(--_brand-1);
  --primary-deep: #082f70;
  --secondary: var(--_brand-2);
  --accent: var(--_brand-3);
  /* --accent is 3.70:1 on white and fails AA as label TEXT. --accent-text is the
     minimal darkening that reaches 4.5:1 on both white and tint. Fills, icons and
     decorative marks keep the full-strength brand red. */
  --accent-text: #df1000;

  --text-primary: #1a1c1e;
  --text-secondary: #5a5f66;
  /* was #8a8f96 in the Astro build — 3.26:1 on white, below AA for normal text */
  --text-tertiary: #6b7077;

  --bg-primary: #ffffff;
  --bg-secondary: var(--surface-container-low);
  --bg-footer: #f6f3f2;

  /* ---------- Surface scale (warm neutral) ---------- */
  --surface: #fbf9f8;
  --surface-container-low: #f5f3f1;
  --surface-container: #efedeb;
  --surface-container-high: #e9e7e5;
  --surface-container-highest: #e3e1df;

  /* ---------- On-colours ---------- */
  --on-primary: #ffffff;
  --on-secondary: #1a1a1a;
  --on-surface: #1a1c1e;
  --on-surface-variant: #5a5f66;

  /* ---------- Lines ---------- */
  --outline-variant: #c8c6c4;
  --outline-card: rgba(200, 198, 196, 0.3);
  --outline-faint: rgba(200, 198, 196, 0.15);

  /* ---------- Soft fills (the design's recurring alpha vocabulary) ---------- */
  --fill-navy-soft: rgba(12, 65, 156, 0.08);
  --fill-navy-soft-2: rgba(12, 65, 156, 0.1);
  --fill-navy-strong: rgba(12, 65, 156, 0.12);
  --fill-amber-soft: rgba(255, 193, 7, 0.15);
  --fill-accent-soft: rgba(255, 48, 0, 0.08);
  --fill-accent-soft-2: rgba(255, 48, 0, 0.1);

  /* ---------- Spacing (4px grid) ---------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;  --space-4: 1rem;
  --space-5: 1.25rem;  --space-6: 1.5rem;   --space-8: 2rem;     --space-10: 2.5rem;
  --space-12: 3rem;    --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* ---------- Type scale ---------- */
  --text-xs: 0.75rem;   --text-sm: 0.875rem; --text-base: 1rem;   --text-lg: 1.125rem;
  --text-xl: 1.25rem;   --text-2xl: 1.5rem;  --text-3xl: 1.875rem; --text-4xl: 2.25rem;
  --text-5xl: 3rem;     --text-6xl: 3.75rem; --text-7xl: 4.5rem;

  /* ---------- Line heights (were inline per component in the Astro build) ---------- */
  --lh-display: 0.95;
  --lh-heading: 1.05;
  --lh-sub: 1.1;
  --lh-title: 1.3;
  --lh-body: 1.6;
  --lh-lead: 1.7;
  --lh-prose: 1.8;

  /* ---------- Tracking ladder ---------- */
  --tracking-display: -0.04em;
  --tracking-heading: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-eyebrow: 0.2em;
  --tracking-label: 0.15em;
  --tracking-label-2: 0.1em;
  --tracking-label-3: 0.08em;
  --tracking-label-4: 0.05em;

  /* ---------- Fonts ---------- */
  --font-heading: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --weight-body: 400;
  --weight-medium: 500;
  --weight-semi: 600;
  --weight-bold: 700;
  --weight-display: 800;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.14), 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-navbar: 0 20px 40px rgba(27, 28, 28, 0.06);
  --shadow-form: 0 30px 60px -15px rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 12px 24px rgba(12, 65, 156, 0.15);
  --shadow-secondary: 0 12px 24px rgba(255, 193, 7, 0.2);

  /* ---------- Radii ---------- */
  --radius-sm: 0.25rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --radius-xl: 1rem;    --radius-full: 9999px;

  /* ---------- Z-index ladder ---------- */
  --z-base: 1; --z-fab: 40; --z-navbar: 50; --z-modal: 60;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 200ms;
  --dur-mid: 300ms;
  --dur-slow: 500ms;

  /* ---------- Layout ---------- */
  --max-width: 80rem;
  --container: 80rem;
  --gutter: var(--space-8);
  --navbar-h: 5rem;

  /* ---------- Section rhythm: every section carries ONE named variant ---------- */
  --section-space: var(--space-24);
  --section-space-sm: var(--space-12);
  --section-space-lg: var(--space-32);
  --hero-space-top: 11rem;

  /* ---------- SURFACE CONTRACT ----------
     Every consumer class reads these and never a raw colour, so putting one
     surface class on a section re-themes every descendant. Defaults = WHITE. */
  --sf-bg: var(--bg-primary);
  /* Astro's body is --text-primary, but every component that renders body copy
   (SectionHeader description, Hero lede, ServiceCard description, WhyChooseUs,
   IconContentBox, ProcessSteps, SplitContent, .blog-prose p) sets
   --text-secondary explicitly. Making the inherited section colour primary to
   match the body rule turned every one of those grey descriptions near-black.
   The inherited value here is the one the components actually rely on. */
/* Inherited container colour, matching the reference's body rule. */
--sf-text: var(--text-primary);
/* Body-copy colour. Named explicitly by .ep-lead, .ep-body and .ep-prose,
   and remapped per surface. */
--sf-fg: var(--text-secondary);
  --sf-heading: var(--primary);
  --sf-title: var(--text-primary);
  --sf-muted: var(--text-tertiary);
  --sf-eyebrow: var(--accent-text);
  --sf-line: var(--outline-card);
  --sf-rule: var(--outline-variant);
  --sf-card-bg: var(--bg-primary);
  --sf-card-line: var(--outline-card);
  --sf-link: var(--primary);
  --sf-link-hover: var(--text-primary);
  --sf-btn-bg: var(--primary);
  --sf-btn-fg: var(--on-primary);
  --sf-btn-shadow: var(--shadow-primary);
  --sf-ghost-fg: var(--primary);
  --sf-ghost-line: var(--outline-variant);
  --sf-ghost-bg: var(--bg-primary);
  --sf-ghost-hover-bg: var(--surface-container-low);
  --sf-icon: var(--primary);
  --sf-icon-tile: var(--fill-navy-soft);
  --sf-icon-hover-bg: var(--primary);
  --sf-icon-hover-fg: var(--on-primary);
  --sf-star: var(--secondary);
  --sf-dot: rgba(12, 65, 156, 0.04);

  @media (max-width: 1024px) { --text-7xl: 3.5rem; --text-4xl: 2rem; }
  @media (max-width: 768px) {
    --text-7xl: 2.75rem; --text-4xl: 1.75rem; --text-xl: 1.125rem;
    --space-24: 4rem; --space-16: 3rem; --gutter: var(--space-5); --hero-space-top: 7rem;
  }
  @media (max-width: 480px) { --text-7xl: 2.25rem; }
}
:where([data-etch-element="iframe"]) {
  inline-size: 100%;
  height: auto;
 aspect-ratio: 16/9;
}
:where([data-etch-element="section"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ep-skip-link {
  position: absolute;
left: var(--space-4);
top: -4rem;
z-index: calc(var(--z-modal) + 1);
background-color: var(--bg-primary);
color: var(--primary);
padding: var(--space-3) var(--space-5);
border-radius: var(--radius-sm);
font-family: var(--font-heading);
font-weight: var(--weight-semi);
transition: top var(--dur-fast) var(--ease-out);
&:focus { top: var(--space-4); }
}
.ep-nav {
  position: fixed;
top: 0; left: 0; right: 0;
z-index: var(--z-navbar);
box-shadow: var(--shadow-navbar);
}
.ep-container {
  width: 100%;
max-width: var(--container);
margin-inline: auto;
padding-inline: var(--gutter);
&[data-width="narrow"] { max-width: 56rem; }
&[data-width="prose"] { max-width: 46rem; }
/* A FAQ band is a 48rem centred column in the reference, and its section
   header sits inside that column too - so it is the container's children that
   narrow, not the accordion list alone. */
&:has(> .ep-faqlist) > * { max-width: 48rem; margin-inline: auto; }
}
.ep-nav__inner {
  display: flex;
align-items: center;
justify-content: space-between;
height: 5.5rem;
}
.ep-nav__logo {
  display: flex;
align-items: center;
flex: none;
}
.ep-nav__logo-img {
  height: 3rem;
width: auto;
}
.ep-nav__links {
  display: flex;
align-items: center;
gap: var(--space-8);
/* the parent must stretch or the dropdown trigger cannot fill the bar height,
   which is what creates the hover dead zone below it */
align-self: stretch;
@media (max-width: 768px) { display: none; }
}
.ep-nav__item {
  display: flex;
align-items: center;
align-self: stretch;
position: relative;
}
.ep-nav__link {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: rgba(255, 255, 255, 0.8);
padding: var(--space-2) 0;
position: relative;
display: flex;
align-items: center;
gap: var(--space-1);
transition: color var(--dur-fast) var(--ease-out);
&:hover { color: var(--on-primary); }
&[aria-current="page"] { color: var(--on-primary); }
&[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
}
& svg { width: 1.25rem; height: 1.25rem; transition: transform var(--dur-mid) var(--ease-out); }
}
.ep-mega {
  position: absolute;
top: calc(100% + 1.25rem);
left: 50%;
transform: translateX(-50%) translateY(8px);
width: 56rem;
max-width: calc(100vw - 2 * var(--gutter));
background-color: var(--bg-primary);
border-radius: var(--radius-xl);
/* the source's bespoke panel shadow: a deep soft drop plus a 1px hairline
   ring. --shadow-2xl has no ring, so the panel edge disappeared. */
box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
overflow: visible;
/* The panel is nested inside the navbar's surface, so it inherits that
   surface's on-colour. Anything in here without an explicit colour rendered
   white on white. Re-establish the light-surface contract locally. */
color: var(--text-primary);
--sf-link: var(--primary);
/* an invisible bridge so a diagonal cursor path does not exit the trigger
   before it reaches the panel */
&::before {
  content: '';
  position: absolute;
  top: -1.25rem; left: 0; right: 0;
  height: 1.25rem;
}
/* speech-bubble arrow */
&::after {
  content: '';
  position: absolute;
  top: -0.5rem; left: 50%;
  width: 1rem; height: 0.5rem;
  transform: translateX(-50%);
  background-color: var(--bg-primary);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.08));
}
.ep-nav__item:hover &,
.ep-nav__item:focus-within &,
.ep-nav__item[data-open="true"] & {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
@media (max-width: 1024px) { width: 44rem; }
}
.ep-mega__inner {
  display: grid;
grid-template-columns: 15rem 1fr;
min-height: 22rem;
/* the inner grid carries the header, the item grid and the footer bar, so it
   is what has to clip them to the panel's corner radius */
border-radius: var(--radius-xl);
overflow: hidden;
@media (max-width: 1024px) { grid-template-columns: 13rem 1fr; }
}
.ep-mega__header {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 85%, black));
padding: var(--space-8);
display: flex;
flex-direction: column;
justify-content: center;
/* per-child margins, not a flat gap: 8px eyebrow -> title, 12px title -> desc,
   24px desc -> view-all */
gap: 0;
}
.ep-mega__eyebrow {
  font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: var(--tracking-label);
color: var(--secondary);
}
.ep-mega__title {
  font-family: var(--font-heading);
font-size: var(--text-xl);
font-weight: var(--weight-display);
line-height: 1.2;
color: var(--on-primary);
margin: var(--space-2) 0 0;
}
.ep-mega__desc {
  font-size: var(--text-xs);
line-height: var(--lh-body);
color: rgba(255, 255, 255, 0.7);
margin: var(--space-3) 0 0;
}
.ep-mega__view-all {
  margin-top: var(--space-6);
font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-semi);
color: var(--secondary);
display: inline-flex;
align-items: center;
gap: var(--space-2);
& svg { width: 1rem; height: 1rem; transition: transform var(--dur-fast) var(--ease-out); }
&:hover svg { transform: translateX(4px); }
}
.ep-mega__grid {
  display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0;
padding: var(--space-3);
}
.ep-mega__item {
  display: flex;
align-items: flex-start;
gap: var(--space-3);
padding: var(--space-4);
border-radius: var(--radius-lg);
transition: background-color var(--dur-fast) var(--ease-out);
&:hover { background-color: var(--surface-container-low); }
}
.ep-mega__icon-wrap {
  display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem; height: 2.5rem;
flex: none;
border-radius: var(--radius-md);
background-color: var(--surface-container-low);
color: var(--primary);
& svg { width: 1.25rem; height: 1.25rem; }
}
.ep-mega__item-text {
  display: flex;
flex-direction: column;
gap: 0.125rem;
min-width: 0;
}
.ep-mega__item-title {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-semi);
line-height: 1.3;
color: var(--text-primary);
margin: 0;
}
.ep-mega__item-desc {
  font-size: var(--text-xs);
line-height: 1.4;
/* two lines, clamped. Unclamped, every item grew from 86px to 104px and the
   panel from 500px to 607px. */
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
color: var(--text-tertiary);
margin: 0;
}
.ep-mega__footer {
  display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-3) var(--space-6);
background-color: var(--surface-container-low);
border-top: 1px solid rgba(200, 198, 196, 0.2);
grid-column: 1 / -1;
& svg { width: 1.25rem; height: 1.25rem; color: var(--accent); flex: none; }
}
.ep-mega__footer-text {
  font-size: var(--text-sm);
color: var(--text-secondary);
margin: 0;
/* the phone number is the navy link in the source */
& strong { color: var(--primary); font-weight: var(--weight-semi); }
}
.ep-nav__cta {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-semi);
padding: var(--space-2) var(--space-6);
background-color: var(--secondary);
color: var(--on-secondary);
border-radius: var(--radius-sm);
transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
&:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3); }
&:active { transform: scale(0.95); }
@media (max-width: 768px) { display: none; }
}
.ep-nav__burger {
  display: none;
color: var(--on-primary);
padding: var(--space-2);
& svg { width: 1.75rem; height: 1.75rem; }
@media (max-width: 768px) { display: flex; }
}
.ep-drawer {
  position: fixed;
inset: 0;
z-index: var(--z-modal);
visibility: hidden;
pointer-events: none;
/* Hold visibility until the panel has finished sliding out, otherwise the
   drawer is hidden on the first frame of the close and the 300ms slide runs
   invisibly: it opens with an animation and shuts with a hard cut. */
transition: visibility 0s linear var(--dur-mid);
&[data-open="true"] { visibility: visible; pointer-events: auto; transition-delay: 0s; }
/* The panel is parked off-screen with translateX(100%), and a transformed
   box still contributes to the document's scrollable overflow. Without this
   every page carried a few pixels of horizontal scroll on a phone. */
overflow: hidden;
}
.ep-drawer__backdrop {
  position: absolute;
inset: 0;
background-color: rgba(0, 0, 0, 0.4);
opacity: 0;
transition: opacity var(--dur-mid) var(--ease-out);
.ep-drawer[data-open="true"] & { opacity: 1; }
}
.ep-drawer__panel {
  position: absolute;
top: 0; right: 0; bottom: 0;
width: min(22rem, 85vw);
background-color: var(--bg-primary);
display: flex;
flex-direction: column;
transform: translateX(100%);
transition: transform var(--dur-mid) var(--ease-out);
/* The panel is never painted before the first open, so a low-end phone has to
   raster the whole thing inside the first animation frame. Promoting it keeps
   the slide on the compositor. */
will-change: transform;
overflow-y: auto;
overscroll-behavior: contain;
.ep-drawer[data-open="true"] & { transform: translateX(0); }
}
.ep-drawer__header {
  display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-5) var(--space-6);
border-bottom: 1px solid var(--outline-faint);
flex: none;
}
.ep-footer__logo-img {
  height: 2.25rem;
width: auto;
}
.ep-drawer__close {
  color: var(--text-secondary);
/* Opened by tap: focus still moves here for screen readers, but the global
   :focus-visible ring is suppressed. iOS paints it on programmatic focus, and
   an amber ring appearing around the close button after a tap reads as a
   glitch. A keyboard open sets data-via="keyboard" and keeps the ring. */
.ep-drawer[data-via="pointer"] &:focus-visible { outline: none; box-shadow: none; }
padding: var(--space-2);
& svg { width: 1.5rem; height: 1.5rem; }
}
.ep-drawer__body {
  padding: var(--space-4) 0;
flex: 1 1 auto;
}
.ep-drawer__link {
  display: block;
font-family: var(--font-heading);
font-size: var(--text-base);
font-weight: var(--weight-medium);
color: var(--text-primary);
padding: var(--space-3) var(--space-6);
transition: background-color var(--dur-fast) var(--ease-out);
&:hover { background-color: var(--surface-container-low); }
&[aria-current="page"] { color: var(--primary); font-weight: var(--weight-bold); }
}
.ep-drawer__toggle {
  display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
font-family: var(--font-heading);
font-size: var(--text-base);
font-weight: var(--weight-medium);
color: var(--text-primary);
padding: var(--space-3) var(--space-6);
transition: background-color var(--dur-fast) var(--ease-out);
&:hover { background-color: var(--surface-container-low); }
& svg { width: 1.25rem; height: 1.25rem; transition: transform var(--dur-mid) var(--ease-out); }
&[aria-expanded="true"] svg { transform: rotate(180deg); }
}
.ep-drawer__submenu {
  display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows var(--dur-mid) var(--ease-out);
& > div { overflow: hidden; }
&[data-open="true"] { grid-template-rows: 1fr; }
}
.ep-drawer__sublink {
  display: flex;
align-items: center;
gap: var(--space-3);
font-size: var(--text-sm);
color: var(--text-secondary);
padding: var(--space-2) var(--space-6) var(--space-2) var(--space-8);
transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
&:hover { background-color: var(--surface-container-low); color: var(--primary); }
& svg { width: 1.125rem; height: 1.125rem; flex: none; color: var(--primary); }
}
.ep-drawer__footer {
  padding: var(--space-5) var(--space-6);
border-top: 1px solid var(--outline-faint);
display: flex;
flex-direction: column;
gap: var(--space-3);
flex: none;
}
.ep-drawer__phone {
  display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
font-family: var(--font-heading);
font-weight: var(--weight-semi);
color: var(--primary);
& svg { width: 1.125rem; height: 1.125rem; }
}
.ep-btn {
  display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
font-family: var(--font-heading);
font-weight: var(--weight-semi);
font-size: var(--text-base);
/* no line-height override: Astro's button inherits the body 1.6, which is
   what gives it its 52px height. Forcing 1 here made every button 10px short. */
padding: var(--space-3) var(--space-8);
border-radius: var(--radius-sm);
white-space: nowrap;
cursor: pointer;
border: 1px solid transparent;
transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
&:active { transform: scale(0.95); }
& svg { width: 1.125rem; height: 1.125rem; flex: none; }
}
.ep-btn--primary {
  background-color: var(--sf-btn-bg);
color: var(--sf-btn-fg);
&:hover { box-shadow: var(--sf-btn-shadow); }
}
.ep-section {
  padding-block: var(--section-space);
position: relative;
&[data-space="sm"] { padding-block: var(--section-space-sm); }
&[data-space="lg"] { padding-block: var(--section-space-lg); }
/* clears the fixed navbar; the Astro build hand-tuned this per hero */
&[data-space="hero"] { padding-block: var(--hero-space-top) var(--section-space); }
&[data-space="flush-bottom"] { padding-block: var(--section-space) 0; }
}
.ep-page-hero {
  /* Astro's ServiceHero: padding-top 8rem, padding-bottom --space-16,
   dropping to 7rem on top below 768px. --hero-space-top (11rem) was
   72px too tall on every hero. */
padding-block: 8rem var(--space-16);
@media (max-width: 768px) { padding-block: 7rem var(--space-16); }
/* /contact/ has its own tighter hero in the source: 7rem above, 48px
   below, and a 36rem measure on the copy so the H1 wraps. */
&[data-tight="true"] { padding-block: 7rem var(--space-12); }
&[data-tight="true"] .ep-page-hero__content { max-width: 36rem; }
}
.ep-crumbs {
  display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
font-size: var(--text-sm);
margin-bottom: var(--space-6);
& svg { width: 1rem; height: 1rem; color: var(--sf-muted); }
}
.ep-crumb__link {
  color: var(--sf-link);
&:hover { color: var(--sf-link-hover); }
}
.ep-crumb__sep {
  display: inline-flex;
align-items: center;
color: var(--sf-muted);
}
.ep-crumb__current {
  color: var(--sf-muted);
}
.ep-page-hero__grid {
  display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-12);
align-items: center;
& > * { min-width: 0; }
@media (max-width: 768px) { grid-template-columns: 1fr; gap: var(--space-8); }
}
.ep-page-hero__content {
  display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-5);
/* Flex items default to min-width:auto, so a heading whose longest word is
   wider than the column refuses to shrink and pushes the page sideways.
   /services/data-communications/ did exactly that at 390px ("Communications"
   at 48px is 382px against a 350px column). min-width:0 lets the heading's
   existing overflow-wrap:break-word do its job. */
& > * { min-width: 0; max-width: 100%; }
}
.ep-eyebrow {
  font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: var(--tracking-eyebrow);
color: var(--sf-eyebrow);
display: block;
}
.ep-h2 {
  font-family: var(--font-heading);
font-size: var(--text-5xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-heading);
line-height: var(--lh-heading);
color: var(--sf-heading);
margin: 0;
}
.ep-lead {
  font-size: var(--text-lg);
line-height: var(--lh-lead);
color: var(--sf-fg);
max-width: 36rem;
margin: 0;
}
.ep-actions {
  display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-4);
/* .ep-actions carries no margin of its own: everywhere else it sits in a flex
column that supplies the spacing (.ep-page-hero__content, gap --space-5).
Directly inside .ep-container there is no parent gap, so the region CTAs on
/locations/ sat flush against the card grid above them. Sibling margins
collapse in a block parent, so this cannot double up after .ep-sechead. */
.ep-container > &:not(:first-child) { margin-top: var(--space-8); }
@media (max-width: 768px) {
&[data-stack="true"] { flex-direction: column; align-items: stretch; }
&[data-stack="true"] > * { width: 100%; }
}
}
.ep-btn--ghost {
  background-color: var(--sf-ghost-bg);
color: var(--sf-ghost-fg);
border-color: var(--sf-ghost-line);
&:hover { background-color: var(--sf-ghost-hover-bg); }
}
.ep-page-hero__img {
  width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
border-radius: var(--radius-xl);
}
.ep-split {
  display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-16);
align-items: center;
& > * { min-width: 0; }
&[data-reverse="true"] > :first-child { order: 2; }
&[data-ratio="7-5"] { grid-template-columns: 7fr 5fr; }
&[data-ratio="5-7"] { grid-template-columns: 5fr 7fr; }
/* The contact page splits evenly with a 48px gutter and top-aligned
   columns, not the 64px centred default the story splits use. */
&[data-gap="md"] { gap: var(--space-12); }
&[data-align="start"] { align-items: start; }
&[data-stack="lap"] { @media (max-width: 1024px) { grid-template-columns: 1fr; gap: var(--space-8); } }
@media (max-width: 768px) {
  /* ratio stacking guard: `.ep-split` alone is one class, but
     `.ep-split[data-ratio="7-5"]` is a class PLUS an attribute and therefore
     wins even inside this media query. Without repeating the ratio selectors
     here, every split that specifies a ratio stayed two columns on a phone and
     squeezed its narrow column until the content overflowed the page. */
  grid-template-columns: 1fr;
  &[data-ratio="7-5"], &[data-ratio="5-7"] { grid-template-columns: 1fr; }
  gap: var(--space-8);
  &[data-reverse="true"] > :first-child { order: unset; }
}
}
.ep-media {
  border-radius: var(--radius-xl);
overflow: hidden;
background-color: var(--surface-container);
& img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* A media panel beside a text column must NOT stretch to that column's
   height. A long body would otherwise crop a wide photo to a narrow
   vertical slice — an extreme zoom that reads as the wrong image.
   A fixed ratio keeps the crop predictable however long the copy runs. */
&[data-fill="true"] { align-self: center; }
&[data-fill="true"] img { aspect-ratio: 4 / 3; height: auto; }
&[data-ratio="wide"] img { aspect-ratio: 16 / 9; height: auto; }
&[data-ratio="square"] img { aspect-ratio: 1 / 1; height: auto; }

/* portrait media that tracks a long column beside it, then goes landscape and
   static once the grid stacks */
&[data-ratio="portrait"] img { aspect-ratio: 3 / 4; height: auto; }
&[data-sticky="true"] { position: sticky; top: var(--space-24); align-self: start; }
@media (max-width: 1024px) {
  &[data-sticky="true"] { position: static; }
  &[data-ratio="portrait"] img { aspect-ratio: 16 / 9; max-height: 20rem; }
}
}
.ep-stack {
  display: flex;
flex-direction: column;
gap: var(--space-4);
&[data-gap="sm"] { gap: var(--space-2); }
&[data-gap="lg"] { gap: var(--space-6); }
&[data-gap="xl"] { gap: var(--space-8); }
}
.ep-h3 {
  font-family: var(--font-heading);
font-size: var(--text-4xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-heading);
line-height: var(--lh-sub);
color: var(--sf-heading);
margin: 0;
}
.ep-body {
  font-size: var(--text-base);
line-height: var(--lh-body);
color: var(--sf-fg);
margin: 0;
/* Astro's .split-text is base size on the 1.7 LEAD leading, not the 1.6
   body leading. Opt-in so nothing else shifts. */
/* Astro's .split-text sets its own colour; since land-36 put --sf-fg back
   to --text-primary, split body copy has to name --text-secondary. */
&[data-lh="lead"] { line-height: var(--lh-lead); color: var(--text-secondary); }
/* split paragraphs are direct flex children now, not wrapped in
   .ep-prose, so the inline link and strong treatment lives here too */
& a { color: var(--sf-link); text-decoration: underline; text-underline-offset: 0.2em; }
& a:hover { color: var(--sf-link-hover); }
& strong { color: var(--sf-title); font-weight: var(--weight-semi); }
}
.ep-sechead {
  display: flex;
flex-direction: column;
/* the eyebrow -> heading distance is defined exactly ONCE, here, as a gap.
   In the Astro build it existed as per-instance margins and drifted. */
gap: var(--space-3);
margin-bottom: var(--space-12);
/* eyebrow -> heading is the 12px gap above; heading -> description is 16px in
   the source, so the lead adds the 4px difference */
& > .ep-lead { margin-top: var(--space-1); }
&[data-align="center"] { align-items: center; text-align: center; }
&[data-align="center"] .ep-lead { margin-inline: auto; }
/* an optional header must collapse completely, not just lose its margin */
&:not(:has(*)) { display: none; }
&[data-header="hide"] { display: none; }
/* A region intro runs the full container width in the source; the 36rem
   measure on .ep-lead wrapped it onto a second line. */
&[data-measure="full"] .ep-lead { max-width: none; }
/* Split intro: heading left, lead right, baselines aligned. Matches the
   source's section intros, which sit the description beside the heading
   rather than under it. */
&[data-layout="split"] {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-16);
}
&[data-layout="split"] > div { display: flex; flex-direction: column; gap: var(--space-3); }
&[data-layout="split"] .ep-lead { margin: 0; max-width: 36rem; }
@media (max-width: 1024px) {
  &[data-layout="split"] { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
}
}
.ep-grid {
  display: grid;
gap: var(--space-8);
/* Two grids on /about/ are centred and measure-limited rather than
   full-bleed; the gutter also steps down on the tighter grids. */
&[data-narrow="42"] { max-width: 42rem; margin-inline: auto; }
&[data-narrow="48"] { max-width: 48rem; margin-inline: auto; }
&[data-gap="sm"] { gap: var(--space-6); }
&[data-gap="xs"] { gap: var(--space-4); }
grid-template-columns: repeat(var(--ep-cols, 3), minmax(0, 1fr));
& > * { min-width: 0; }
&[data-cols="1"] { --ep-cols: 1; }
&[data-cols="2"] { --ep-cols: 2;
  @media (max-width: 768px) { --ep-cols: 1; } }
&[data-cols="3"] { --ep-cols: 3;
  @media (max-width: 1024px) { --ep-cols: 2; }
  @media (max-width: 768px) { --ep-cols: 1; } }
&[data-cols="4"] { --ep-cols: 4;
  @media (max-width: 1024px) { --ep-cols: 2; }
  @media (max-width: 640px) { --ep-cols: 1; } }
&[data-cols="5"] { --ep-cols: 5;
  @media (max-width: 1024px) { --ep-cols: 3; }
  @media (max-width: 640px) { --ep-cols: 2; } }
}
.ep-card {
  background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
padding: var(--space-8);
transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
&[data-lift="true"]:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
/* Flow spacing so stacked children never sit flush. Scoped to direct
   children and guarded with :first-child, so a card that supplies its own
   flex gap is unaffected. */
& > * + * { margin-top: var(--space-3); }
}
.ep-team-card {
  text-align: center;
/* .ep-card supplies a blanket 12px flow gap; the team card has its own
   20 / 4 / 16 rhythm, so it is reset here rather than fought per child. */
& > * + * { margin-top: 0; }
& .ep-label { color: var(--sf-icon); letter-spacing: var(--tracking-label-2);
  font-weight: var(--weight-semi); margin-top: var(--space-1); }
& .ep-body { font-size: var(--text-sm); color: var(--text-secondary); margin-top: var(--space-4); }
}
.ep-team-card__avatar {
  width: 5rem;
height: 5rem;
border-radius: var(--radius-full);
background-color: var(--sf-icon);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto var(--space-5);
}
.ep-team-card__initials {
  font-family: var(--font-heading);
font-size: var(--text-xl);
font-weight: var(--weight-bold);
line-height: 1;
color: var(--on-primary);
}
.ep-h4 {
  font-family: var(--font-heading);
font-size: var(--text-xl);
font-weight: var(--weight-bold);
line-height: var(--lh-body);
color: var(--sf-title);
margin: 0;
}
.ep-label {
  font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: var(--tracking-label);
color: var(--sf-muted);
display: block;
}
.ep-iconbox {
  display: flex;
flex-direction: column;
gap: var(--space-2);
background-color: transparent;
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
padding: var(--space-6);
height: 100%;
transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
&:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
/* Astro's .icb--top rhythm: 16px icon -> title, 8px title -> description. */
& > .ep-iconbox__icon { margin-bottom: var(--space-2); }
&[data-fill="tint"] { background-color: var(--surface-container-low); }
/* The source's .icb--inline: icon tile left, body column beside it.
   Every icon box in a blog post uses this layout. */
&[data-layout="inline"] {
  flex-direction: row;
  gap: var(--space-5);
  align-items: flex-start;
  & > .ep-iconbox__icon { margin-bottom: 0; }
}
}
.ep-iconbox__icon {
  display: inline-flex;
align-items: center;
justify-content: center;
width: 3rem; height: 3rem;
flex: none;
border-radius: var(--radius-lg);
background-color: var(--sf-icon-tile);
color: var(--sf-icon);
& svg { width: 1.5rem; height: 1.5rem; }
}
.ep-h5 {
  font-family: var(--font-heading);
font-size: var(--text-lg);
font-weight: var(--weight-bold);
line-height: var(--lh-title);
color: var(--sf-title);
margin: 0;
overflow-wrap: anywhere;
}
.ep-cta-band {
  padding-block: var(--space-16);
}
.ep-cta {
  display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-8);
/* CTABanner.astro's description is --text-base/1.6 sitting 8px under the
   heading, not the 18px/1.7 lead the port was rendering. Scoped here so the
   shared .ep-lead and .ep-stack keep their own values everywhere else. */
& .ep-stack { gap: var(--space-2); }
& .ep-lead { font-size: var(--text-base); line-height: var(--lh-body); }
@media (max-width: 768px) { flex-direction: column; text-align: center; align-items: stretch; }
}
.ep-footer {
  padding-block: var(--space-16) var(--space-8);
}
.ep-footer__grid {
  display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
gap: var(--space-8);
@media (max-width: 768px) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
@media (max-width: 480px) { grid-template-columns: 1fr; }
}
.ep-footer__brand {
  display: flex;
flex-direction: column;
/* the brand column stacks on per-child margins, not a flat gap: the source
   sets logo -> tagline 12px and tagline -> socials 24px */
gap: 0;
align-items: flex-start;
}
.ep-footer__tagline {
  font-size: var(--text-sm);
line-height: 1.7;
color: var(--sf-fg);
max-width: 20rem;
margin: var(--space-3) 0 0;
}
.ep-footer__socials {
  display: flex;
gap: var(--space-3);
margin-top: var(--space-6);
}
.ep-footer__social-icon {
  display: inline-flex;
align-items: center;
justify-content: center;
width: 2.25rem; height: 2.25rem;
border-radius: var(--radius-full);
background-color: var(--surface-container);
color: var(--sf-fg);
transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
&:hover { background-color: var(--primary); color: var(--on-primary); }
& svg { width: 0.875rem; height: 0.875rem; }
}
.ep-footer__heading {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-semi);
text-transform: uppercase;
letter-spacing: var(--tracking-label-2);
color: var(--sf-title);
margin: 0 0 var(--space-4);
}
.ep-footer__link {
  display: block;
font-size: var(--text-sm);
line-height: 2.5;
color: var(--sf-fg);
transition: color var(--dur-fast) var(--ease-out);
&:hover { color: var(--primary); }
}
.ep-footer__contact {
  font-size: var(--text-sm);
line-height: 2;
color: var(--sf-fg);
font-style: normal;
& a { color: var(--sf-fg); }
& a:hover { color: var(--primary); }
}
.ep-footer__bottom {
  display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-4);
margin-top: var(--space-12);
padding-top: var(--space-6);
border-top: 1px solid var(--sf-rule);
@media (max-width: 768px) { flex-direction: column; text-align: center; gap: var(--space-3); }
}
.ep-footer__legal {
  font-size: var(--text-sm);
color: var(--sf-muted);
margin: 0;
& a { color: var(--sf-muted); }
& a:hover { color: var(--sf-title); }
/* the legal group is a link row in the source, spaced 24px apart */
&:has(a) { display: flex; gap: var(--space-6); }
}
.ep-fab {
  position: fixed;
bottom: var(--space-6);
right: var(--space-6);
width: 3.5rem; height: 3.5rem;
border-radius: var(--radius-full);
background-color: var(--secondary);
color: var(--on-secondary);
display: none;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-lg);
z-index: var(--z-fab);
& svg { width: 1.5rem; height: 1.5rem; }
@media (max-width: 768px) { display: flex; }
}
.ep-totop {
  position: fixed;
bottom: var(--space-6);
right: var(--space-6);
width: 2.75rem; height: 2.75rem;
border-radius: var(--radius-full);
background-color: var(--primary);
color: var(--on-primary);
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-lg);
z-index: var(--z-fab);
opacity: 0;
transform: translateY(1rem);
pointer-events: none;
transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
& svg { width: 1.25rem; height: 1.25rem; }
&[data-visible="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 768px) { display: none; }
}
[data-surface] {
  /* The surface engine. Stored with type:attribute, which Etch force-registers on
   every page and inside the builder canvas with no block referencing it - so a
   section only needs data-surface, never an attachment. Each option remaps only
   the tokens that actually change on that ground. */
background-color: var(--sf-bg);
/* --sf-fg is the BODY-copy token: .ep-lead, .ep-body and .ep-prose all name it,
   and the navy and amber grounds override it to their 70% on-colour. The
   container's own inherited colour is a different thing — Astro's body is
   --text-primary and its components set the grey themselves. Painting the
   container with the body token made every element that does not declare a
   colour of its own (headings' surrounding text, list markers, inline spans)
   grey where the reference has it near-black. */
color: var(--sf-text);

&[data-surface="white"] {
  --sf-bg: var(--bg-primary);
}

/* Tint carries NO on-colour overrides. Its whole job is to separate white cards
   from the page - the card border alpha is too faint to carry an edge on white. */
&[data-surface="tint"] {
  --sf-bg: var(--surface-container-low);
}

&[data-surface="footer"] {
  --sf-bg: var(--bg-footer);
  --sf-text: var(--text-primary);
  --sf-heading: var(--text-primary);
  --sf-rule: var(--outline-variant);
}

&[data-surface="navy"] {
  --sf-bg: var(--primary);
  --sf-text: var(--on-primary);
  --sf-fg: rgba(255, 255, 255, 0.7);
  --sf-heading: var(--on-primary);
  --sf-title: var(--on-primary);
  --sf-muted: rgba(255, 255, 255, 0.63);
  /* the accent flips red -> amber on navy: red is 2.52:1 here and fails AA,
     amber is 5.72:1. Hand-built navy sections in the source already did this;
     only SectionHeader's light variant did not. */
  --sf-eyebrow: var(--secondary);
  --sf-line: rgba(255, 255, 255, 0.12);
  --sf-rule: rgba(255, 255, 255, 0.12);
  --sf-card-bg: rgba(255, 255, 255, 0.06);
  --sf-card-line: rgba(255, 255, 255, 0.12);
  --sf-link: var(--on-primary);
  --sf-link-hover: var(--secondary);
  --sf-btn-bg: var(--secondary);
  --sf-btn-fg: var(--on-secondary);
  --sf-btn-shadow: var(--shadow-secondary);
  --sf-ghost-fg: var(--on-primary);
  --sf-ghost-line: rgba(255, 255, 255, 0.3);
  --sf-ghost-bg: transparent;
  --sf-ghost-hover-bg: rgba(255, 255, 255, 0.1);
  --sf-icon: var(--secondary);
  --sf-icon-tile: rgba(255, 255, 255, 0.15);
  --sf-icon-hover-bg: var(--secondary);
  --sf-icon-hover-fg: var(--on-secondary);
  --sf-dot: rgba(255, 255, 255, 0.06);
}

&[data-surface="amber"] {
  --sf-bg: var(--secondary);
  --sf-text: var(--on-secondary);
  --sf-fg: rgba(26, 26, 26, 0.7);
  --sf-heading: var(--on-secondary);
  --sf-title: var(--on-secondary);
  --sf-muted: rgba(26, 26, 26, 0.67);
  /* red on amber is 2.27:1; navy is 5.72:1 and stays on-brand */
  --sf-eyebrow: var(--primary);
  --sf-line: rgba(26, 26, 26, 0.15);
  --sf-rule: rgba(26, 26, 26, 0.22);
  --sf-card-bg: rgba(255, 255, 255, 0.5);
  --sf-card-line: rgba(26, 26, 26, 0.15);
  --sf-link: var(--on-secondary);
  --sf-link-hover: var(--primary);
  --sf-btn-bg: var(--primary);
  --sf-btn-fg: var(--on-primary);
  --sf-btn-shadow: var(--shadow-primary);
  --sf-ghost-fg: var(--on-secondary);
  --sf-ghost-line: rgba(26, 26, 26, 0.3);
  --sf-ghost-bg: transparent;
  --sf-ghost-hover-bg: rgba(26, 26, 26, 0.08);
  --sf-icon: var(--primary);
  --sf-icon-tile: var(--fill-navy-strong);
  --sf-icon-hover-bg: var(--primary);
  --sf-icon-hover-fg: var(--on-primary);
  --sf-dot: rgba(26, 26, 26, 0.05);
}
}
.ep-prose-flow {
  display: flow-root;
& p {
  font-size: var(--text-base);
  line-height: var(--lh-prose);
  color: var(--sf-fg);
  margin: 0;
}
& p + p { margin-top: var(--space-5); }
}
.ep-loc-card {
  display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--space-4);
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-lg);
padding: var(--space-5) var(--space-6);
transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
&:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Three parts in the source: a navy pin, a flexible text block and a
   muted arrow that slides and turns navy on hover. */
& svg { flex: none; transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
& > svg:first-child { width: 1.5rem; height: 1.5rem; color: var(--sf-icon); }
& > svg:last-child { width: 1.25rem; height: 1.25rem; color: var(--sf-muted); margin-left: auto; }
&:hover > svg:last-child { transform: translateX(4px); color: var(--sf-icon); }
}
.ep-loc-card__name {
  font-family: var(--font-heading);
font-size: var(--text-base);
font-weight: var(--weight-semi);
color: var(--sf-title);
display: block;
overflow-wrap: anywhere;
}
.ep-loc-card__meta {
  font-size: var(--text-xs);
color: var(--sf-muted);
display: block;
margin-top: 2px;
}
.ep-svc-card {
  display: flex;
flex-direction: column;
align-items: flex-start;
/* 16 / 8 / 24, not a uniform 16. The description takes the slack so the
   'Learn more' link sits on the card floor whatever the copy length. */
gap: 0;
& .ep-svc-card__title { margin-top: var(--space-4); }
& .ep-svc-card__desc { margin-top: var(--space-2); flex: 1; }
& .ep-svc-card__more { margin-top: var(--space-6); gap: var(--space-1); }
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
padding: var(--space-8);
height: 100%;
transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
&:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
&:hover .ep-svc-card__icon { background-color: var(--sf-icon-hover-bg); color: var(--sf-icon-hover-fg); }
&:hover .ep-svc-card__more svg { transform: translateX(4px); }
&[data-featured="true"] {
  /* The one amber tile in an otherwise white grid. It remaps the surface
     contract locally rather than carrying data-surface, because the attribute
     record is emitted last and would also repaint every card on a tint band. */
  --sf-card-bg: var(--secondary);
  --sf-card-line: transparent;
  --sf-title: var(--on-secondary);
  --sf-fg: rgba(26, 26, 26, 0.75);
  --sf-link: var(--on-secondary);
  --sf-icon-tile: var(--fill-navy-strong);
  --sf-icon: var(--primary);
  --sf-icon-hover-bg: var(--primary);
  --sf-icon-hover-fg: var(--on-primary);
}
&[data-featured="true"]:hover { box-shadow: var(--shadow-secondary); }
}
.ep-svc-card__icon {
  display: inline-flex;
align-items: center;
justify-content: center;
/* ServiceCard.astro is 3rem with a 1.5rem glyph. */
width: 3rem; height: 3rem;
flex: none;
border-radius: var(--radius-lg);
background-color: var(--sf-icon-tile);
color: var(--sf-icon);
transition: background-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
& svg { width: 1.5rem; height: 1.5rem; }
}
.ep-svc-card__title {
  font-family: var(--font-heading);
font-size: var(--text-xl);
font-weight: var(--weight-bold);
line-height: var(--lh-body);
color: var(--sf-title);
margin: 0;
overflow-wrap: anywhere;
}
.ep-svc-card__desc {
  font-size: var(--text-base);
line-height: var(--lh-body);
color: var(--sf-fg);
margin: 0;
flex: 1 1 auto;
}
.ep-svc-card__more {
  display: inline-flex;
align-items: center;
gap: var(--space-2);
font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-semi);
color: var(--sf-link);
margin-top: auto;
& svg { width: 1rem; height: 1rem; transition: transform var(--dur-fast) var(--ease-out); }
}
.ep-faqlist {
  display: flex;
flex-direction: column;
gap: var(--space-4);
}
.ep-accordion {
  border: 1px solid var(--sf-line);
border-radius: var(--radius-lg);
overflow: hidden;
transition: box-shadow var(--dur-fast) var(--ease-out);
&:hover { box-shadow: var(--shadow-sm); }
& summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--sf-title);
}
& summary::-webkit-details-marker { display: none; }
& summary svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--sf-muted); transition: transform var(--dur-mid) var(--ease-out); }
&[open] summary svg { transform: rotate(180deg); }
& .ep-accordion__body { padding: 0 var(--space-6) var(--space-6); }
& .ep-accordion__body p { font-size: var(--text-base); line-height: var(--lh-lead); color: var(--sf-fg); margin: 0; }
}
.ep-blog-hero {
  /* The source's ServiceHero, which a blog post uses unchanged, hand-tunes
   this to 8rem/--space-16 rather than taking the shared hero rhythm. */
padding-block: 8rem var(--space-16);
@media (max-width: 768px) { padding-block: 7rem var(--space-16); }
}
.ep-blog-hero__grid {
  /* The source's ServiceHero grid: text left, 4:3 photo right, centred on the
   cross axis. The port stacked these, which is why a post read as a different
   template from a service page even though it uses the same component. */
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-12);
align-items: center;
@media (max-width: 768px) {
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
}
.ep-blog-hero__title {
  font-family: var(--font-heading);
font-size: var(--text-5xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-heading);
line-height: var(--lh-heading);
color: var(--sf-heading);
margin: 0;
}
.ep-blog-hero__desc {
  font-size: var(--text-lg);
color: var(--text-secondary);
line-height: var(--lh-lead);
margin-top: var(--space-4);
max-width: 30rem;
}
.ep-blog-hero__meta {
  display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-4);
font-size: var(--text-sm);
color: var(--sf-muted);
}
.ep-byline__by {
  color: var(--sf-muted); font-size: var(--text-sm);
}
.ep-byline__name {
  font-family: var(--font-heading);
font-weight: var(--weight-bold);
font-size: var(--text-sm);
color: var(--sf-link);
text-decoration: none;
&:hover { text-decoration: underline; }
}
.ep-byline__role {
  font-size: var(--text-sm);
color: var(--sf-muted);
&::before { content: '\00B7'; margin: 0 var(--space-2); }
}
.ep-byline__date {
  font-size: var(--text-sm);
color: var(--sf-muted);
&::before { content: '\00B7'; margin: 0 var(--space-2); }
}
.ep-blog-hero__media {
  min-width: 0;
}
.ep-blog-hero__img {
  width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
border-radius: var(--radius-xl);
display: block;
}
.ep-article {
  max-width: 56rem;
margin-inline: auto;

/* blog.css: `.blog-article .section-header { margin-top: var(--space-16) }` with
   the first one reset. Without it every section head in a post sits flush
   against the paragraph, list or callout above it. `.ep-sechead` carries its own
   `margin-bottom` but nothing was giving it space above. */
& > .ep-sechead { margin-top: var(--space-16); }
& > .ep-sechead:first-child { margin-top: 0; }
}
.ep-prose {
  /* flow spacing owned by the container, so no child carries a margin that
   can drift or double up against a parent gap */
& > * + * { margin-top: var(--space-6); }
& > :is(h2, h3, h4) { margin-top: var(--space-10); }
& > :first-child { margin-top: 0; }
& p { font-size: var(--text-base); line-height: var(--lh-lead); color: var(--sf-fg); }
& a { color: var(--sf-link); text-decoration: underline; text-underline-offset: 0.2em; }
& a:hover { color: var(--sf-link-hover); }
& :is(ul, ol) { padding-left: var(--space-6); }
& ul > li { list-style: disc; }
& ol > li { list-style: decimal; }
& li { font-size: var(--text-base); line-height: var(--lh-lead); color: var(--sf-fg); }
& li + li { margin-top: var(--space-2); }
& strong { color: var(--sf-title); font-weight: var(--weight-semi); }

/* Paragraphs 2-n of a split's body copy, below the split at a readable measure
   instead of stacked beside the photo. */
&[data-width="narrow"] {
  max-width: 48rem;
  margin: var(--space-16) auto 0;
  & > .ep-pullquote { margin-top: var(--space-8); }
  /* `.ep-prose p` is more specific than `.ep-pullquote__text`, so without this
     the quote renders as a plain body paragraph. */
  & > .ep-pullquote .ep-pullquote__text {
    font-size: var(--text-lg);
    font-weight: var(--weight-semi);
    line-height: var(--lh-sub);
    color: var(--sf-title);
  }
}
/* Long-form blog copy keeps the reference's wider measure - 18px/1.8 with 20px
   between blocks. Everywhere else .ep-prose carries split/about/service body
   text, which the reference sets at 16px/1.7 with 24px (the base above). */
.ep-article & > * + * { margin-top: var(--space-5); }
.ep-article & p { font-size: var(--text-lg); line-height: var(--lh-prose); }
.ep-article & li { font-size: var(--text-lg); line-height: var(--lh-prose); }
}
.ep-featlist {
  display: grid;
grid-template-columns: repeat(var(--ep-fl, 2), minmax(0, 1fr));
gap: var(--space-4) var(--space-8);
&[data-cols="1"] { --ep-fl: 1; }
&[data-cols="2"] { --ep-fl: 2; @media (max-width: 768px) { --ep-fl: 1; } }
&[data-cols="3"] { --ep-fl: 3; @media (max-width: 1024px) { --ep-fl: 2; } @media (max-width: 768px) { --ep-fl: 1; } }
}
.ep-featlist__item {
  display: flex;
align-items: flex-start;
gap: var(--space-3);
font-size: var(--text-base);
line-height: var(--lh-body);
color: var(--sf-fg);
& svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--sf-icon); margin-top: 0.15em; }
}
.ep-table-wrap {
  overflow-x: auto;
border: 1px solid var(--sf-line);
border-radius: var(--radius-lg);
}
.ep-table {
  width: 100%;
border-collapse: collapse;
font-size: var(--text-sm);
/* a legacy bare-tag rule from another plugin can outrank a half-written class,
   so these are stated explicitly rather than relied upon */
& th, & td { border: 0; border-bottom: 1px solid var(--sf-line); padding: var(--space-3) var(--space-4); text-align: left; }
& th { font-family: var(--font-heading); font-weight: var(--weight-semi); color: var(--sf-title); background-color: var(--surface-container-low); white-space: nowrap; }
& td { color: var(--sf-fg); }
& tbody tr:last-child td { border-bottom: 0; }
& tbody tr:nth-child(2n+1) { background-color: transparent; }
}
.ep-alert {
  display: flex;
align-items: flex-start;
gap: var(--space-4);
border-radius: var(--radius-lg);
padding: var(--space-5) var(--space-6);
background-color: var(--fill-navy-soft);
border-left: 3px solid var(--primary);
& svg { width: 1.375rem; height: 1.375rem; flex: none; color: var(--primary); margin-top: 0.1em; }
& p { font-size: var(--text-base); line-height: var(--lh-body); color: var(--sf-fg); margin: 0; }
/* Alert body copy carries inline links, and the global reset strips the
   underline. Navy on this copy is only 1.44:1 against the surrounding text,
   so without a non-colour cue the link is indistinguishable (WCAG 1.4.1).
   Same treatment .ep-prose already uses. */
& a { color: var(--sf-link); text-decoration: underline; text-underline-offset: 0.2em; }
& a:hover { color: var(--sf-link-hover); }
&[data-tone="warning"] { background-color: var(--fill-amber-soft); border-left-color: var(--secondary); }
&[data-tone="warning"] svg { color: #8a6100; }
&[data-tone="emergency"] { background-color: var(--fill-accent-soft); border-left-color: var(--accent); }
&[data-tone="emergency"] svg { color: var(--accent-text); }
}
.ep-iconbox__body {
  min-width: 0;
/* Astro's .icb__description sits 8px under the title. */
/* `.ep-body` and `.ep-h5` both declare `margin: 0` at the same specificity as
   a bare `& > * + *`, and being separate records they are emitted later and win.
   Naming the classes takes this to 0,2,0 so the 8px actually applies. */
& > .ep-h5 + * { margin-top: var(--space-2); }
& > * + * { margin-top: var(--space-2); }
}
.ep-small {
  font-size: var(--text-sm);
line-height: var(--lh-body);
color: var(--sf-fg);
margin: 0;
}
.ep-steps {
  display: grid;
grid-template-columns: repeat(var(--ep-steps, 4), minmax(0, 1fr));
gap: var(--space-8);
counter-reset: epstep;
& > * { min-width: 0; }
@media (max-width: 1024px) { --ep-steps: 2; }
@media (max-width: 768px) { --ep-steps: 1; }

/* The source's ProcessSteps: a vertical timeline, not a row of cards. Scoped to
   the attribute because the blog kit reuses the plain numbered .ep-steps grid
   for its how-to lists, and those items carry no icon to hang a badge on. */
&[data-layout="timeline"] {
  display: flex;
  /* the source centres the timeline in a 36rem column wherever it stands on
     its own under a centred header, rather than beside an image */
  &[data-measure="36"] { max-width: 36rem; margin-inline: auto; }
  flex-direction: column;
  gap: 0;
  & > .ep-steps__item {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-6);
    padding-top: 0;
  }
  /* the bare "01" counter is replaced by the "STEP 01" eyebrow below */
  & > .ep-steps__item::before { content: none; }
  & .ep-steps__indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
  }
  /* the connector is a pseudo-element, so no step carries a line element that
     has to be omitted on the last row */
  & > .ep-steps__item:not(:last-child) .ep-steps__indicator::after {
    content: "";
    width: 2px;
    flex: 1;
    min-height: var(--space-8);
    background-color: var(--fill-navy-strong);
  }
  & .ep-steps__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    background-color: var(--sf-icon-hover-bg);
    color: var(--sf-icon-hover-fg);
    & svg { width: 1.5rem; height: 1.5rem; }
  }
  & .ep-steps__content { display: block; padding-bottom: var(--space-10); }
  & > .ep-steps__item:last-child .ep-steps__content { padding-bottom: 0; }
  /* numbered positionally, so add/remove/reorder renumbers itself */
  & .ep-steps__content::before {
    content: "Step " counter(epstep, decimal-leading-zero);
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-label);
    color: var(--sf-eyebrow);
  }
  & .ep-steps__content > h3 { margin-top: var(--space-1); }
  & .ep-steps__content > p {
    margin-top: var(--space-2);
    line-height: var(--lh-lead);
    max-width: 32rem;
  }
}
}
.ep-steps__item {
  position: relative;
counter-increment: epstep;
display: flex;
flex-direction: column;
gap: var(--space-3);
padding-top: var(--space-8);
/* numbered positionally so add/remove/reorder renumbers itself */
&::before {
  content: counter(epstep, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  color: var(--sf-eyebrow);
}
}
.ep-calc {
  max-width: 40rem;
margin-inline: auto;
background-color: var(--bg-primary);
border: 1px solid var(--outline-card);
border-radius: var(--radius-xl);
padding: var(--space-10);
box-shadow: var(--shadow-lg);
/* Astro's .rebate-calc__input-section owns the 32px gap above the results
   panel; the port had it as a margin-top on the panel instead. */
& > :first-child { margin-bottom: var(--space-8); }
@media (max-width: 640px) { padding: var(--space-6); }
}
.ep-evcalc__toggles {
  display: flex;
flex-wrap: wrap;
gap: var(--space-3);
margin-bottom: var(--space-6);
}
.ep-evcalc__toggle {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-semi);
color: var(--text-secondary);
background-color: var(--surface-container-low);
border: 1px solid transparent;
border-radius: var(--radius-full);
padding: var(--space-2) var(--space-5);
cursor: pointer;
transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
&[aria-pressed="true"] { background-color: var(--primary); color: var(--on-primary); border-color: var(--primary); }
&:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
}
.ep-calc__row {
  display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-4);
margin-bottom: var(--space-4);
}
.ep-calc__label {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-bold);
color: var(--text-primary);
}
.ep-calc__badge {
  font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-bold);
color: var(--on-primary);
background-color: var(--primary);
border-radius: var(--radius-full);
padding: var(--space-1) var(--space-4);
}
.ep-calc__slider {
  width: 100%;
appearance: none;
height: 0.5rem;
border-radius: var(--radius-full);
background-color: var(--surface-container-high);
cursor: pointer;
&::-webkit-slider-thumb {
  appearance: none;
  width: 1.5rem; height: 1.5rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
&::-moz-range-thumb {
  width: 1.5rem; height: 1.5rem;
  border: 3px solid var(--bg-primary);
  border-radius: var(--radius-full);
  background-color: var(--primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
&:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; }
}
.ep-calc__range {
  display: flex;
justify-content: space-between;
font-size: var(--text-xs);
color: var(--text-tertiary);
margin-top: var(--space-2);
}
.ep-evcalc__compare {
  display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-4);
margin-top: var(--space-6);
}
.ep-evcalc__col {
  background-color: var(--bg-primary);
border: 1px solid var(--outline-card);
border-radius: var(--radius-lg);
padding: var(--space-5);
text-align: center;
& > span { display: block; }
}
.ep-evcalc__col-label {
  font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: var(--tracking-label);
color: var(--text-secondary);
}
.ep-evcalc__col-value {
  font-family: var(--font-heading);
font-size: var(--text-2xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-tight);
color: var(--text-primary);
margin-top: var(--space-2);
}
.ep-calc__results {
  background-color: var(--surface-container-low);
border-radius: var(--radius-lg);
padding: var(--space-8);
margin-bottom: var(--space-6);
text-align: center;
}
.ep-calc__amount-label {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-semi);
color: var(--text-secondary);
display: block;
margin-bottom: var(--space-2);
}
.ep-calc__amount {
  font-family: var(--font-heading);
font-size: var(--text-5xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-heading);
/* the rebate figure is the one amber element in this card in the source */
color: var(--secondary);
display: block;
line-height: 1.1;
margin-block: var(--space-2);
}
.ep-calc__detail-label {
  font-size: var(--text-xs);
color: var(--text-tertiary);
display: block;
margin-bottom: var(--space-1);
}
.ep-calc__note {
  font-size: var(--text-xs);
line-height: 1.5;
color: var(--text-tertiary);
margin-top: var(--space-6);
text-align: center;
}
.ep-deflist {
  display: grid;
gap: var(--space-5);
margin: var(--space-6) 0 0;
padding: var(--space-6);
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-lg);
@media (max-width: 768px) { padding: var(--space-5); gap: var(--space-4); }
}
.ep-deflist__term {
  font-family: var(--font-heading);
font-size: var(--text-base);
font-weight: var(--weight-bold);
color: var(--sf-title);
margin: 0 0 var(--space-1);
display: flex;
align-items: baseline;
gap: var(--space-2);
&::before {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--secondary);
}
}
.ep-deflist__desc {
  font-size: var(--text-base);
line-height: var(--lh-prose);
color: var(--sf-fg);
margin: 0 0 0 var(--space-4);
}
.ep-blog-card {
  display: flex;
flex-direction: column;
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
overflow: hidden;
height: 100%;
transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
&:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
&:hover .ep-blog-card__img { transform: scale(1.05); }
}
.ep-blog-card__media {
  aspect-ratio: 16 / 9;
overflow: hidden;
background-color: var(--surface-container);
}
.ep-blog-card__img {
  width: 100%;
height: 100%;
object-fit: cover;
transition: transform var(--dur-slow) var(--ease-out);
}
.ep-blog-card__body {
  display: flex;
flex-direction: column;
gap: var(--space-3);
padding: var(--space-6);
flex: 1 1 auto;
}
.ep-blog-card__title {
  font-family: var(--font-heading);
font-size: var(--text-lg);
font-weight: var(--weight-bold);
line-height: var(--lh-title);
color: var(--sf-title);
margin: 0;
overflow-wrap: anywhere;
}
.ep-blog-card__excerpt {
  font-size: var(--text-sm);
line-height: var(--lh-body);
color: var(--sf-fg);
margin: 0;
flex: 1 1 auto;
}
.ep-blog-card__meta {
  font-size: var(--text-xs);
color: var(--sf-muted);
margin-top: auto;
}
.ep-contact__list {
  display: flex;
flex-direction: column;
gap: var(--space-4);
margin-top: var(--space-8);
}
.ep-contact__row {
  display: flex;
align-items: flex-start;
gap: var(--space-4);
/* Every row is a card in the source. Without this the four rows collapse
   to 45px of bare text, which is the whole of the 'tighter' complaint. */
padding: var(--space-5);
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-lg);
transition: box-shadow var(--dur-fast) var(--ease-out);
&:hover { box-shadow: var(--shadow-sm); }
}
.ep-contact__row-icon {
  display: inline-flex;
align-items: center;
justify-content: center;
width: 2.75rem; height: 2.75rem;
flex: none;
border-radius: var(--radius-lg);
background-color: var(--sf-icon-tile);
color: var(--sf-icon);
& svg { width: 1.25rem; height: 1.25rem; }
}
.ep-contact__row-body {
  display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.ep-contact__row-label {
  font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-semi);
text-transform: uppercase;
letter-spacing: var(--tracking-label-2);
color: var(--sf-muted);
display: block;
}
.ep-contact__row-value {
  font-family: var(--font-heading);
font-size: var(--text-base);
font-weight: var(--weight-semi);
line-height: 1.4;
color: var(--sf-title);
display: block;
& a { color: var(--sf-title); }
& a:hover { color: var(--sf-link-hover); }
}
.ep-contact__row-secondary {
  /* The caption line under each value ('Emergency callouts during business
   hours' and friends). Dropping it is what shortened every row. */
font-size: var(--text-sm);
line-height: var(--lh-body);
color: var(--text-secondary);
display: block;
}
.ep-map {
  width: 100%;
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
display: block;
background-color: var(--surface-container);
}
.ep-form-wrap {
  background-color: var(--bg-primary);
border-radius: var(--radius-xl);
padding: var(--space-10);
box-shadow: var(--shadow-form);
@media (max-width: 480px) { padding: var(--space-6); }
}
.ep-form-wrap--card {
  /* The /contact/ form is a bordered card; the home page's copy of the same
   wrapper is a shadowed one. Same padding and radius, different chrome. */
border: 1px solid var(--sf-card-line);
box-shadow: none;
}
.ep-form-wrap__title {
  font-family: var(--font-heading);
font-size: var(--text-2xl);
font-weight: var(--weight-bold);
line-height: var(--lh-title);
letter-spacing: normal;
color: var(--sf-title);
margin: 0 0 var(--space-8);
}
.ep-filter-tabs {
  display: flex;
gap: var(--space-2);
flex-wrap: wrap;
}
.ep-filter-tabs__tab {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
padding: var(--space-2) var(--space-5);
border-radius: var(--radius-sm);
border: 1px solid var(--sf-rule);
background-color: var(--sf-card-bg);
color: var(--text-secondary);
cursor: pointer;
white-space: nowrap;
transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
&:hover { border-color: var(--sf-icon); color: var(--sf-icon); background-color: var(--sf-dot); }
&[aria-selected="true"] { background-color: var(--sf-icon); color: var(--on-primary); border-color: var(--sf-icon); }
}
.ep-gal-grid {
  /* The /gallery/ mosaic. Scoped to this grid rather than to .ep-gal, because
   the landing pages reuse .ep-gal as a plain 4:3 tile and must not inherit
   the spans or the fill-the-cell image. */
gap: var(--space-4);
margin-top: var(--space-10);
& .ep-gal { min-height: 16rem; }
& .ep-gal__img { position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; object-fit: cover; }
& .ep-gal[data-span="wide"]  { grid-column: span 2; }
& .ep-gal[data-span="tall"]  { grid-row: span 2; }
& .ep-gal[data-span="large"] { grid-column: span 2; grid-row: span 2; }
& .ep-gal__cap { flex-direction: column; justify-content: flex-end; padding: var(--space-6); }
& .ep-gal__cat { font-family: var(--font-heading); font-size: var(--text-xs);
  font-weight: var(--weight-semi); text-transform: uppercase;
  letter-spacing: var(--tracking-label-2); color: var(--secondary);
  margin-bottom: var(--space-1); display: block; }
& .ep-gal__title { font-size: var(--text-xl); font-weight: var(--weight-bold);
  line-height: 1.2; display: block; }
@media (max-width: 768px) {
  & .ep-gal[data-span="wide"], & .ep-gal[data-span="large"] { grid-column: span 1; }
  & .ep-gal[data-span="tall"], & .ep-gal[data-span="large"] { grid-row: span 1; }
}
}
.ep-gal {
  position: relative;
margin: 0;
border-radius: var(--radius-xl);
overflow: hidden;
background-color: var(--surface-container-high);
&:hover .ep-gal__img { transform: scale(1.05); }
&:hover .ep-gal__cap { opacity: 1; }
}
.ep-gal__img {
  width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
display: block;
transition: transform var(--dur-slow) var(--ease-out);
}
.ep-gal__cap {
  position: absolute;
inset: 0;
display: flex;
align-items: flex-end;
padding: var(--space-5);
background: linear-gradient(to top, rgba(12, 65, 156, 0.85) 0%, rgba(12, 65, 156, 0) 60%);
opacity: 0;
transition: opacity var(--dur-mid) var(--ease-out);
}
.ep-gal__title {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-semi);
color: var(--on-primary);
}
.ep-hero {
  padding-block: var(--hero-space-top) var(--section-space);
overflow: hidden;
}
.ep-dots {
  position: relative;
&::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, var(--sf-dot) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
& > * { position: relative; z-index: var(--z-base); }
}
.ep-hero__grid {
  display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-12);
align-items: center;
& > * { min-width: 0; }
@media (max-width: 1024px) { grid-template-columns: 1fr; gap: var(--space-10); }
}
.ep-hero__content {
  display: flex;
flex-direction: column;
align-items: flex-start;
/* the hero stack is not evenly spaced in the source: 16px eyebrow -> h1,
   24px h1 -> lede, 40px lede -> buttons */
gap: 0;
& > .ep-eyebrow { margin-bottom: var(--space-4); }
& > .ep-display { margin-bottom: var(--space-6); }
& > .ep-hero__lede { margin-bottom: var(--space-10); }
}
.ep-display {
  font-family: var(--font-heading);
font-size: var(--text-7xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-display);
line-height: var(--lh-display);
color: var(--sf-heading);
margin: 0;
& em { font-style: normal; color: var(--secondary); }
}
.ep-hero__lede {
  font-size: var(--text-lg);
line-height: var(--lh-lead);
color: var(--sf-fg);
max-width: 34rem;
margin: 0;
}
.ep-hero__media {
  position: relative;
@media (max-width: 1024px) { max-width: 28rem; margin-inline: auto; width: 100%; }
}
.ep-hero__img-bg {
  position: absolute;
inset: 0;
background-color: var(--primary);
opacity: 0.1;
border-radius: 1.5rem;
transform: rotate(-3deg) translate(1rem, 1rem);
z-index: 0;
}
.ep-hero__img {
  position: relative;
aspect-ratio: 1 / 1;
width: 100%;
object-fit: cover;
border-radius: 1.5rem;
z-index: 1;
}
.ep-hero__proof {
  position: absolute;
bottom: -1.5rem;
left: var(--space-4);
z-index: 3;
display: flex;
align-items: center;
gap: var(--space-4);
background-color: var(--bg-primary);
box-shadow: var(--shadow-lg);
border-radius: var(--radius-lg);
padding: var(--space-4) var(--space-6);
white-space: nowrap;
}
.ep-hero__proof-icon {
  display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem; height: 2.5rem;
flex: none;
border-radius: var(--radius-lg);
background-color: var(--secondary);
color: var(--bg-primary);
& svg { width: 1.25rem; height: 1.25rem; }
line-height: 1;
}
.ep-hero__proof-score {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-bold);
letter-spacing: var(--tracking-tight);
color: var(--text-primary);
line-height: 1.3;
display: block;
}
.ep-hero__proof-label {
  font-size: var(--text-xs);
color: var(--text-tertiary);
display: block;
}
.ep-stats {
  padding-block: var(--space-6);
position: relative;
overflow: hidden;
&::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
& > * { position: relative; z-index: var(--z-base); }
@media (max-width: 480px) { padding-block: var(--space-8); }
}
.ep-stats__grid {
  display: flex;
flex-wrap: wrap;
align-items: center;
& > * { flex: 1 1 0; }
@media (max-width: 1024px) { row-gap: var(--space-6); }
@media (max-width: 1024px) { & > * { flex: 0 0 50%; } }
@media (max-width: 480px) {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding-left: var(--space-4);
}
@media (max-width: 480px) { & > * { flex: none; } }
justify-content: space-between;
}
.ep-stat {
  display: flex;
align-items: center;
gap: var(--space-3);
flex: 1;
justify-content: center;
position: relative;
@media (max-width: 768px) { flex: 0 0 33.333%; }
}
.ep-stat__icon {
  font-size: 1.5rem;
color: var(--secondary);
flex-shrink: 0;
& svg { width: 1.5rem; height: 1.5rem; }
line-height: 1;
display: inline-flex;
align-items: center;
}
.ep-stat__text {
  display: flex;
flex-direction: column;
}
.ep-stat__value {
  font-family: var(--font-heading);
font-size: var(--text-2xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-tight);
color: var(--sf-heading);
line-height: 1.1;
}
.ep-stat__label {
  font-size: var(--text-sm);
color: var(--sf-muted);
}
.ep-stat__divider {
  position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 2rem;
background-color: rgba(255, 255, 255, 0.12);
@media (max-width: 768px) { display: none; }
}
.ep-sechead__group {
  /* The split section head's heading group. It carries a class purely so it
   stops matching the prose flow default `main :is(div:not([class])) > ... +
   :is(h1..h6)`, which was leaking 32px on top of the 12px the .ep-sechead
   record already defines, and only on split-layout heads. The gap is restated
   here so the relationship is owned by the element rather than inherited from
   a parent's `> div`. */
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.ep-why__grid {
  display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--space-12);
/* The source gives this one section a 64px header margin where every other
   section header uses 48px. .ep-sechead is shared, so the distance is set from
   this side: adjacent margins collapse to the larger of the two, so declaring
   the source's own --space-16 here yields exactly 64px (and 48px under 768px,
   where that token shrinks, which is what the source does too). */
margin-top: var(--space-16);
& > * { min-width: 0; }
@media (max-width: 1024px) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* the deliberate orphan rule: a trailing third item spans both columns
     but is capped at half width so it stays aligned with the column above */
  & > :last-child:nth-child(2n+1) { grid-column: span 2; max-width: 50%; }
}
@media (max-width: 768px) {
  grid-template-columns: 1fr;
  & > :last-child:nth-child(2n+1) { grid-column: auto; max-width: 100%; }
}
}
.ep-why__item {
  display: flex;
flex-direction: column;
gap: var(--space-3);
/* the source sets this paragraph looser than the shared body default */
& > .ep-body { line-height: var(--lh-lead); }
}
.ep-why__num {
  /* The design's ghost numeral: 72px navy at 10% opacity. Deliberately faint
   and decorative — the heading beside it carries the meaning — so it is
   exempt from text-contrast rules. Do not 'correct' the opacity upward. */
font-family: var(--font-heading);
font-size: var(--text-7xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-display);
line-height: 1;
color: var(--primary);
opacity: 0.1;
aria-hidden: unset;
}
.ep-review {
  background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
padding: var(--space-6);
/* deliberately NO height:100% - the card must take its content's height */
display: block;
}
.ep-review__top {
  display: flex;
align-items: center;
gap: var(--space-2);
margin-bottom: var(--space-4);
}
.ep-review__stars {
  display: flex;
gap: 1px;
color: var(--secondary);
& svg { width: 1.125rem; height: 1.125rem; }
}
.ep-review__badge {
  margin-left: auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.25rem;
height: 1.25rem;
flex: none;
& svg { width: 1.25rem; height: 1.25rem; }
}
.ep-review__text {
  font-size: var(--text-base);
line-height: 1.7;
/* Review text is stored as plain text with real newlines, so a reviewer who
   wrote paragraphs still reads as paragraphs. HTML collapses newlines, so
   honouring them is CSS's job — 14 of the synced reviews have them. */
white-space: pre-line;
color: var(--sf-fg);
margin: 0;
}
.ep-review__author {
  display: flex;
align-items: center;
gap: var(--space-3);
margin-top: var(--space-6);
}
.ep-review__avatar {
  display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
flex: none;
border-radius: var(--radius-full);
background-color: var(--primary);
color: var(--on-primary);
font-family: var(--font-heading);
font-weight: var(--weight-bold);
font-size: var(--text-xs);
}
.ep-review__name {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-bold);
color: var(--sf-title);
display: block;
overflow-wrap: anywhere;
text-transform: capitalize;
}
.ep-review__meta {
  font-size: var(--text-xs);
text-transform: uppercase;
letter-spacing: var(--tracking-label-4);
color: var(--sf-muted);
display: block;
margin-top: 2px;
overflow-wrap: anywhere;
}
.ep-calc__warning {
  font-size: var(--text-xs);
color: var(--accent-text);
display: block;
margin-top: var(--space-2);
&[hidden] { display: none; }
}
.ep-calc__details {
  display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--space-4);
margin-top: var(--space-6);
padding-top: var(--space-6);
border-top: 1px solid var(--outline-card);
@media (max-width: 640px) { grid-template-columns: 1fr; }
}
.ep-calc__detail {
  display: flex;
flex-direction: column;
gap: var(--space-1);
}
.ep-calc__detail-value {
  font-family: var(--font-heading);
font-size: var(--text-sm);
font-weight: var(--weight-bold);
color: var(--primary);
}
.ep-calc__cta {
  display: flex;
width: 100%;
margin-top: var(--space-6);
justify-content: center;
}
.ep-faq__layout {
  display: grid;
grid-template-columns: 5fr 7fr;
gap: var(--space-16);
align-items: start;
& > * { min-width: 0; }
/* the accordion column is a bare div in the page body; the reference stacks it
   with a 12px gap (HomeFAQ .home-faq__list) */
& > *:not(.ep-faq__aside) { display: flex; flex-direction: column; gap: var(--space-3); }
@media (max-width: 1024px) { grid-template-columns: 1fr; gap: var(--space-8); }
}
.ep-faq__aside {
  position: sticky;
top: calc(var(--navbar-h) + var(--space-8));
@media (max-width: 1024px) { position: static; }
}
.ep-faq__cta-text {
  font-size: var(--text-sm);
color: var(--text-tertiary);
margin-bottom: var(--space-3);
}
.ep-ig {
  margin-block: var(--space-10);
/* The grid inside is the plugin's own markup, so it can never reference an
   Etch style record — these few rules bring it onto our tokens from the
   always-emitted layer instead. */
& .fh-grid { gap: var(--space-4); }
& .fh-tile, & .fh-grid > * { border-radius: var(--radius-lg); overflow: hidden; }
& img { border-radius: var(--radius-lg); }
&:has(.fh-empty) { display: none; }
}
.ep-contact {
  position: relative;
overflow: hidden;
&::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  transform: skewX(-8deg);
  transform-origin: top right;
  pointer-events: none;
}
& > * { position: relative; z-index: var(--z-base); }
}
.ep-contact__grid {
  display: grid;
grid-template-columns: 5fr 7fr;
gap: var(--space-16);
align-items: start;
& > * { min-width: 0; }
@media (max-width: 1024px) { grid-template-columns: 1fr; gap: var(--space-10); }
}
.ep-lead-wrap {
  & .ep-lead { margin: 0; }
}
.ep-stat__note {
  font-size: var(--text-xs);
color: var(--sf-muted);
opacity: 0.75;
line-height: 1.3;
}
.ep-splitcopy {
  /* Astro's .split__content: a flat 24px flex rhythm, so the eyebrow, the
   heading and every paragraph sit the same distance apart. */
display: flex;
flex-direction: column;
gap: var(--space-6);
}
.ep-local-text {
  font-size: var(--text-base);
line-height: var(--lh-lead);
color: var(--sf-fg);
margin: 0;
}
.ep-solar-grid {
  /* Astro's .solar-stats__grid: an EVEN pair, not the page's 5-7 split, and
   it owns the 48px clearance above the summary row. */
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-10);
margin-bottom: var(--space-12);
align-items: stretch;
& > * { min-width: 0; }
@media (max-width: 1024px) { grid-template-columns: 1fr; gap: var(--space-8); }
}
.ep-solar-col {
  display: flex;
flex-direction: column;
gap: var(--space-6);
}
.ep-out-grid {
  display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-4);
& > * { min-width: 0; }
}
.ep-out-card {
  display: flex;
flex-direction: column;
gap: var(--space-1);
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
padding: var(--space-6);
text-align: center;
}
.ep-out-card__size {
  font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: var(--tracking-label-2);
color: var(--sf-muted);
}
.ep-out-card__value {
  font-family: var(--font-heading);
font-size: var(--text-3xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-tight);
color: var(--sf-heading);
line-height: 1.1;
}
.ep-out-card__unit {
  font-size: var(--text-xs);
color: var(--sf-muted);
}
.ep-chart {
  display: flex;
align-items: flex-end;
gap: var(--space-2);
flex: 1;
padding: var(--space-6) var(--space-4) var(--space-4);
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
}
.ep-chart__col {
  flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: var(--space-1);
height: 100%;
}
.ep-chart__value {
  font-family: var(--font-heading);
font-size: 0.625rem;
font-weight: var(--weight-bold);
color: var(--sf-muted);
line-height: 1;
}
.ep-chart__bar {
  width: 100%;
max-width: 2rem;
background: linear-gradient(to top, var(--primary), rgba(12, 65, 156, 0.6));
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
min-height: 4px;
}
.ep-chart__label {
  font-family: var(--font-heading);
font-size: 0.625rem;
font-weight: var(--weight-semi);
text-transform: uppercase;
letter-spacing: var(--tracking-label-4);
color: var(--sf-muted);
white-space: nowrap;
}
.ep-sumstat {
  display: flex;
align-items: center;
gap: var(--space-4);
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
padding: var(--space-5) var(--space-6);
& > div { display: flex; flex-direction: column; min-width: 0; }
}
.ep-sumstat__icon {
  display: inline-flex;
align-items: center;
flex: none;
color: var(--secondary);
line-height: 1;
& svg { width: 1.5rem; height: 1.5rem; }
}
.ep-sumstat__value {
  font-family: var(--font-heading);
font-size: var(--text-lg);
font-weight: var(--weight-display);
color: var(--sf-title);
line-height: 1.2;
}
.ep-sumstat__label {
  font-size: var(--text-xs);
color: var(--sf-muted);
line-height: 1.3;
}
.ep-sumstat__note {
  font-size: var(--text-xs);
/* --sf-muted is already the muted step; the extra 0.75 dropped this 12px
   note to 3.05:1 on white. Without it the token reads 4.99:1 and passes AA. */
color: var(--sf-muted);
line-height: 1.3;
}
.ep-nearby-sub {
  font-size: var(--text-lg);
line-height: var(--lh-lead);
color: var(--sf-fg);
margin: var(--space-3) 0 var(--space-10);
}
.ep-nearby-all {
  display: flex;
justify-content: center;
margin-top: var(--space-10);
}
.ep-loc-card__body {
  flex: 1;
min-width: 0;
}
.ep-404 {
  max-width: 40rem;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-5);
}
.ep-navcard {
  display: flex;
align-items: center;
gap: var(--space-4);
background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-color: var(--outline-variant);
border-radius: var(--radius-xl);
padding: var(--space-5) var(--space-6);
height: 100%;
transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
&:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
&:hover .ep-navcard__arrow { transform: translateX(4px); color: var(--sf-link); }
& .ep-navcard__body { min-width: 0; }

/* ---- Five related-services layouts, one per page, as the source has them.
   Collapsing them into one card shape is what flattened every block. ---- */

/* nav: horizontal row with a SOLID navy icon tile and a white glyph
   (/solar-and-battery-packages/, /battery-rebate-sa/) */
&[data-variant="nav"] {
  padding: var(--space-5);
  background-color: var(--surface);
  border-radius: var(--radius-lg);
}
&[data-variant="nav"]:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
&[data-variant="nav"] .ep-navcard__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--on-primary);
  transition: background-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}
&[data-variant="nav"] .ep-navcard__icon svg { width: 1.5rem; height: 1.5rem; }
/* the source flips the tile to amber on hover but keeps the glyph white,
   which is 1.9:1. The glyph flips with it here. */
&[data-variant="nav"]:hover .ep-navcard__icon { background-color: var(--secondary); color: var(--on-secondary); }

/* stack: 3-up vertical card with description and a Learn more link
   (/residential-solar/) */
&[data-variant="stack"] {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: var(--space-6);
  background-color: transparent;
  border-color: var(--sf-card-line);
}
&[data-variant="stack"] .ep-navcard__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-lg);
  background-color: var(--fill-navy-soft);
  color: var(--primary);
  margin-bottom: var(--space-4);
}
&[data-variant="stack"] .ep-navcard__icon svg { width: 2rem; height: 2rem; }
&[data-variant="stack"] .ep-navcard__title { font-size: var(--text-lg); }
&[data-variant="stack"] .ep-navcard__desc { line-height: 1.6; margin-top: var(--space-2); flex: 1; }
&[data-variant="stack"] .ep-navcard__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--sf-link);
}
&[data-variant="stack"] .ep-navcard__more svg { width: 1.125rem; height: 1.125rem; transition: transform var(--dur-fast) var(--ease-out); }
&[data-variant="stack"]:hover .ep-navcard__more svg { transform: translateX(4px); }

/* tile: 5-up centred column, bare glyph, no chip
   (/solar-system-battery-upgrades/) */
&[data-variant="tile"] {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background-color: transparent;
  border-color: var(--sf-card-line);
}
&[data-variant="tile"]:hover { box-shadow: var(--shadow-md); }
&[data-variant="tile"] .ep-navcard__title { font-size: var(--text-sm); }
&[data-variant="tile"] .ep-navcard__arrow { margin-left: 0; }

/* label: 4-up label-and-arrow row, no icon (/solar-installations/) */
&[data-variant="label"] {
  justify-content: space-between;
  background-color: var(--bg-primary);
  border-color: var(--sf-card-line);
}
&[data-variant="label"] .ep-navcard__title { font-size: var(--text-sm); }
&[data-variant="label"] .ep-navcard__arrow { color: var(--sf-link); }
}
.ep-navcard__icon {
  display: inline-flex;
align-items: center;
justify-content: center;
flex: none;
color: var(--sf-icon);
& svg { width: 2rem; height: 2rem; display: block; }
}
.ep-navcard__title {
  font-family: var(--font-heading);
font-size: var(--text-base);
font-weight: var(--weight-bold);
line-height: var(--lh-title);
color: var(--sf-title);
display: block;
overflow-wrap: anywhere;
}
.ep-navcard__arrow {
  margin-left: auto;
flex: none;
color: var(--sf-muted);
transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
& svg { width: 1.25rem; height: 1.25rem; display: block; }
}
.ep-policy {
  /* The policy sets its own measure and heading tiers: the shared .ep-prose
   is an 18px article voice, the policy is 16px with 24px sub-headings. */
max-width: 48rem;
& p, & li { font-size: var(--text-base); line-height: 1.75; color: var(--text-secondary); }
& > * + * { margin-top: var(--space-4); }
& > h2 { font-size: var(--text-2xl); font-weight: var(--weight-bold);
  line-height: var(--lh-title); letter-spacing: normal; color: var(--sf-title);
  margin-top: var(--space-12); margin-bottom: 0; }
& > h3 { font-size: var(--text-lg); font-weight: var(--weight-semi);
  line-height: 1.4; letter-spacing: normal; color: var(--sf-title);
  margin-top: var(--space-6); margin-bottom: 0; }
& > :first-child { margin-top: 0; }
& ul { list-style: disc; padding-left: var(--space-6); }
& li + li { margin-top: var(--space-2); }
& a { color: var(--sf-link); text-decoration: underline; text-underline-offset: 2px; }
& a:hover { color: var(--sf-link-hover); }
& strong { color: var(--sf-title); font-weight: var(--weight-semi); }
& .ep-meta { font-size: var(--text-sm); color: var(--sf-muted); }
}
.ep-meta {
  font-size: var(--text-xs);
line-height: 1.4;
color: var(--sf-muted);
margin: 0;
}
.ep-reviews {
  display: grid;
grid-template-columns: 16rem 1fr;
gap: var(--space-10);
align-items: start;
@media (max-width: 1024px) { grid-template-columns: 1fr; }
}
.ep-reviews__aside {
  position: sticky;
top: 6rem;
@media (max-width: 1024px) { position: static; }
}
.ep-ratingcard {
  background-color: var(--sf-card-bg);
border: 1px solid var(--sf-card-line);
border-radius: var(--radius-xl);
padding: var(--space-10);
text-align: center;
}
.ep-ratingcard__score {
  font-family: var(--font-heading);
font-size: var(--text-7xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-display);
line-height: 1;
color: var(--primary);
display: block;
}
.ep-ratingcard__stars {
  display: flex;
justify-content: center;
gap: var(--space-1);
color: var(--secondary);
margin-top: var(--space-3);
& svg { width: 1.5rem; height: 1.5rem; }
}
.ep-ratingcard__count {
  font-size: var(--text-sm);
line-height: var(--lh-body);
color: var(--text-secondary);
margin: var(--space-3) 0 0;
}
.ep-ratingcard__cta {
  margin-top: var(--space-6);
width: 100%;
}
.ep-reviews__list {
  columns: 2;
column-gap: var(--space-6);
@media (max-width: 640px) { columns: 1; }
/* break-inside is what makes the masonry hold together; without it a card
   splits across the column boundary mid-sentence */
& > * { break-inside: avoid; margin-bottom: var(--space-6); }
}
.ep-review__recommends {
  display: flex;
align-items: center;
gap: var(--space-1);
/* Meta's current brand blue. The retired #1877f2 is 4.23:1 on white and
   fails AA for this 12px label; #0866ff is 4.82:1 and is the mark Meta
   publishes today, so this is more brand-correct as well as accessible. */
color: #0866ff;
font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-semi);
& svg { width: 1rem; height: 1rem; }
}
.ep-pullquote {
  position: relative;
margin: var(--space-8) 0 0;
padding: var(--space-6) var(--space-6) var(--space-6) var(--space-10);
border-left: 3px solid var(--secondary);
background-color: var(--sf-card-bg);
border-radius: var(--radius-md);
&::before {
  content: '\201C';
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--secondary);
  pointer-events: none;
}
@media (max-width: 768px) {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-10);
  /* the glyph has to fit inside the left padding or a wrapped second line
     runs underneath it */
  &::before { font-size: 2.5rem; }
}
/* a location with no third paragraph must collapse the figure, not
   render an empty bordered box with a floating quote mark */
&:not(:has(*)) { display: none; }
}
.ep-pullquote__text {
  font-family: var(--font-heading);
font-size: var(--text-lg);
font-weight: var(--weight-semi);
line-height: var(--lh-sub);
color: var(--sf-title);
margin: 0;
font-style: normal;
}
.ep-steps__icon {
  display: inline-flex;
align-items: center;
justify-content: center;
width: 2.75rem; height: 2.75rem;
flex: none;
border-radius: var(--radius-md);
background-color: var(--sf-icon-tile);
color: var(--sf-icon);
& svg { width: 1.375rem; height: 1.375rem; }
}
.ep-tags {
  display: flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.ep-tag {
  display: inline-flex;
align-items: center;
font-family: var(--font-heading);
font-size: var(--text-xs);
font-weight: var(--weight-semi);
letter-spacing: var(--tracking-label-3);
color: var(--sf-fg);
background-color: var(--sf-icon-tile);
border-radius: var(--radius-full);
padding: var(--space-2) var(--space-4);
transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
&:hover { background-color: var(--primary); color: var(--on-primary); }
overflow-wrap: anywhere;
}
.ep-issues {
  display: flex;
flex-direction: column;
gap: var(--space-3);
}
.ep-issues__item {
  display: flex;
align-items: flex-start;
gap: var(--space-3);
font-size: var(--text-sm);
line-height: var(--lh-body);
color: var(--sf-fg);
& svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--sf-icon); margin-top: 0.1rem; }
}
.ep-brandcard {
  text-align: center;
padding: var(--space-8) var(--space-6);
border: 1px solid var(--sf-rule);
border-radius: var(--radius-xl);
background-color: var(--sf-card-bg);
transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
&:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
& .ep-brandcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-lg);
  background-color: var(--sf-icon-hover-bg);
  color: var(--sf-icon-hover-fg);
  transition: background-color var(--dur-mid) var(--ease-out);
}
&:hover .ep-brandcard__icon { background-color: var(--secondary); color: var(--on-secondary); }
& .ep-brandcard__icon svg { width: 1.75rem; height: 1.75rem; }
& .ep-brandcard__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--lh-title);
  color: var(--sf-title);
  margin: 0 0 var(--space-2);
}
& .ep-brandcard__desc {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--sf-fg);
  margin: 0;
}
}
.ep-navrows {
  display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-4);
@media (max-width: 1024px) { grid-template-columns: 1fr; }
}
.ep-navrow {
  display: flex;
align-items: center;
gap: var(--space-4);
padding: var(--space-5);
background-color: var(--surface);
border: 1px solid var(--sf-rule);
border-radius: var(--radius-lg);
text-decoration: none;
color: inherit;
transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
&:hover { transform: translateY(-0.125rem); box-shadow: var(--shadow-md); border-color: var(--primary); }
& .ep-navrow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  flex: none;
  border-radius: var(--radius-md);
  background-color: var(--sf-icon-hover-bg);
  color: var(--sf-icon-hover-fg);
  transition: background-color var(--dur-mid) var(--ease-out);
}
&:hover .ep-navrow__icon { background-color: var(--secondary); color: var(--on-secondary); }
& .ep-navrow__icon svg { width: 1.5rem; height: 1.5rem; }
& .ep-navrow__body { flex: 1; min-width: 0; }
& .ep-navrow__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--lh-title);
  color: var(--sf-title);
  margin: 0;
}
& .ep-navrow__desc {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--sf-fg);
  margin: var(--space-1) 0 0;
}
& .ep-navrow__arrow {
  width: 1.25rem; height: 1.25rem;
  flex: none;
  color: var(--sf-muted);
  transition: transform var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}
&:hover .ep-navrow__arrow { transform: translateX(0.25rem); color: var(--primary); }
}
.ep-arealink {
  color: var(--sf-link);
text-decoration: underline;
text-underline-offset: 0.2em;
font-weight: var(--weight-semi);
&:hover { color: var(--sf-link-hover); }
}
.ep-finance {
  display: grid;
grid-template-columns: 1fr 18rem;
gap: var(--space-10);
align-items: center;
background-color: var(--primary);
border-radius: var(--radius-xl);
padding: var(--space-12) var(--space-10);
& > * { min-width: 0; }
@media (max-width: 1024px) { grid-template-columns: 1fr; padding: var(--space-8); }
/* Vertical rhythm inside the copy column: 24 / 16 / 24 / 32 / 24.
   Without these the logo touched the heading and the features touched the
   buttons. */
& .ep-h3 { margin-bottom: var(--space-4); }
/* the classless-div flow rule in the global sheet adds 12px above this
   paragraph; the source has the space below the heading instead. */
& .ep-lead { color: rgba(255, 255, 255, 0.75); margin-top: 0; margin-bottom: var(--space-6); }
/* The finance features are ONE inline row, not the two-column grid the price
   card uses. Scoped to the banner so .ep-featlist stays a grid everywhere else. */
& .ep-featlist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
}
& .ep-featlist .ep-featlist__item {
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--on-primary);
}
& .ep-featlist .ep-featlist__item svg {
  width: 1.125rem; height: 1.125rem; margin-top: 0; color: var(--secondary);
}
@media (max-width: 640px) {
  & .ep-featlist { flex-direction: column; gap: var(--space-3); }
}
}
.ep-finance__logo {
  height: 4rem;
width: auto;
border-radius: var(--radius-lg);
margin-bottom: var(--space-6);
}
.ep-btn--secondary {
  background-color: var(--secondary);
color: var(--on-secondary);
&:hover { box-shadow: var(--shadow-secondary); }
}
.ep-finance__disclaimer {
  font-size: var(--text-xs);
line-height: 1.5;
/* 0.4 (the Astro value) is 2.77:1 on the navy band and fails AA for 12px
   body text. This is the finance comparison-rate disclosure, so it has to be
   readable. 0.65 is 4.86:1 and keeps the copy visibly secondary. */
color: rgba(255, 255, 255, 0.65);
margin-top: var(--space-6);
}
.ep-finance__visual {
  position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
min-height: 14rem;
/* Two concentric rings behind the figure. Drawn as pseudo-elements so the
   tree carries no empty decorative divs for an editor to trip over. */
&::before, &::after { content: ""; position: absolute; border-radius: var(--radius-full); }
&::before { width: 16rem; height: 16rem; border: 2px solid rgba(255, 255, 255, 0.08); }
&::after  { width: 10rem; height: 10rem; border: 2px solid var(--fill-amber-soft); }
& .ep-stat { position: relative; z-index: 1; display: block; flex: none; text-align: center; }
& .ep-stat__value {
  display: block;
  font-size: var(--text-6xl);
  letter-spacing: var(--tracking-heading);
  color: var(--secondary);
  line-height: 1;
}
& .ep-stat__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label-2);
  /* 0.5 is 3.52:1 on navy; at 18px/600 this is not WCAG large text, so AA
     wants 4.5:1. 0.65 gives 4.86:1. */
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-1);
}
@media (max-width: 1024px) { display: none; }
}
.ep-pkg {
  height: 100%;
}
.ep-pkg__price {
  display: flex;
align-items: baseline;
gap: var(--space-1);
margin: 0;
}
.ep-pkg__amount {
  font-family: var(--font-heading);
font-size: var(--text-4xl);
font-weight: var(--weight-display);
letter-spacing: var(--tracking-heading);
line-height: 1;
color: var(--sf-heading);
}
.ep-pkg__period {
  font-size: var(--text-sm);
color: var(--sf-muted);
}