/* ==========================================================================
   Erfolg Premium - "blue hour" dark theme
   Onyx canvas, graphite cards, ivory type, a single cobalt action colour.
   Flat surfaces (no shadows), pill controls, 12px cards, spacious rhythm.
   Previous looks are kept in /versions.
   ========================================================================== */

:root {
  /* Colour */
  --ep-canvas: #171721;        /* page background */
  --ep-card: #1e1e2a;          /* raised surface */
  --ep-raised: #272735;        /* buttons / inputs / hover surface */
  --ep-slate: #70707d;         /* structural borders, quiet numerals */
  --ep-mist: #e2e3ed;          /* light hairlines, ghost outlines */
  --ep-ash: #c3c3cc;           /* muted text */
  --ep-ivory: #ededf3;         /* primary text */
  --ep-cobalt: #5266eb;        /* the one action colour */
  --ep-cobalt-hover: #6475f0;
  --ep-white: #ffffff;
  --ep-hair: rgba(226, 227, 237, .10);   /* hairline on dark */
  --ep-hair-2: rgba(226, 227, 237, .18);

  /* Type */
  --ep-display: 'Archivo', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ep-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ep-stretch: 112.5%;

  /* Shape & rhythm */
  --ep-r-card: 12px;
  --ep-r-pill: 40px;
  --ep-r-input: 32px;
  --ep-section: 112px;
  --ep-ease: cubic-bezier(.22, .61, .36, 1);
  --ep-header-h: 88px;
  --ep-mobilebar-h: 0px;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--ep-header-h) + 12px); background: var(--ep-canvas); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body.ep-theme {
  font-family: var(--ep-sans); font-size: 16px; line-height: 1.5; font-weight: 400;
  color: var(--ep-ivory); background: var(--ep-canvas);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
.ep-theme a { color: var(--ep-ivory); }
.ep-theme ::selection { background: var(--ep-cobalt); color: #fff; }
.ep-theme :focus-visible { outline: 2px solid var(--ep-cobalt); outline-offset: 3px; }

.ep-skip {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--ep-cobalt); color: #fff !important;
  padding: 10px 18px; border-radius: var(--ep-r-pill); font-weight: 500;
}
.ep-skip:focus { top: 12px; }

/* Bootstrap clearfix pseudo-elements would become grid/flex items */
.ep-topbar__inner::before, .ep-topbar__inner::after,
.ep-header__inner::before, .ep-header__inner::after,
.ep-footer__grid::before, .ep-footer__grid::after { display: none; }

.container { max-width: 1230px; width: 100%; }

/* ---------- Top bar ---------- */
.ep-topbar {
  background: var(--ep-canvas);
  border-bottom: 1px solid var(--ep-hair);
  color: var(--ep-ash); font-size: 13px; letter-spacing: .005em;
  position: relative; z-index: 60;
}
.ep-topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 6px 28px; min-height: 40px; padding-top: 6px; padding-bottom: 6px;
}
.ep-topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ep-topbar__item > .fa { color: var(--ep-ash); font-size: 14px; width: 16px; text-align: center; }
.ep-topbar a { color: var(--ep-ivory); transition: color .2s; }
.ep-topbar a:hover, .ep-topbar a:focus { color: #fff; text-decoration: none; }
.ep-topbar__translate { margin-right: auto; }
.ep-topbar .goog-te-gadget-simple {
  background: transparent !important; border: 1px solid var(--ep-hair-2) !important;
  border-radius: var(--ep-r-pill); padding: 2px 10px !important; font-size: 12px !important;
}
.ep-topbar .goog-te-gadget-simple a, .ep-topbar .goog-te-gadget-simple span { color: var(--ep-ivory) !important; border-color: transparent !important; }
.ep-topbar .goog-te-gadget-icon { display: none; }

/* ---------- Sticky header: transparent over the hero, frosted on scroll ---------- */
.ep-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: var(--ep-canvas);
}
.ep-header::before {          /* frosted layer lives on a pseudo-element so the fixed mobile menu isn't trapped */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(23, 23, 33, .72);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--ep-hair);
  opacity: 0; transition: opacity .35s var(--ep-ease);
}
.ep-header.is-shrunk::before { opacity: 1; }
.ep-overlay .ep-header { background: transparent; }
.ep-overlay #body-holder > section:first-child { margin-top: calc(-1 * var(--ep-header-h)); }
.ep-nav-open .ep-header::before { opacity: 1; background: var(--ep-canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }

.ep-header__inner {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  min-height: var(--ep-header-h);
  transition: min-height .3s var(--ep-ease);
}
.ep-header.is-shrunk .ep-header__inner { min-height: 68px; }

.ep-brand { display: flex; align-items: center; gap: 14px; color: var(--ep-ivory); min-width: 0; }
.ep-brand:hover, .ep-brand:focus { text-decoration: none; color: var(--ep-ivory); }
.ep-brand__logo { width: 60px; height: 60px; object-fit: contain; transition: width .3s var(--ep-ease), height .3s var(--ep-ease); }
.ep-header.is-shrunk .ep-brand__logo { width: 46px; height: 46px; }
.ep-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.ep-brand__name {
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 500; font-size: 21px;
  letter-spacing: .02em; color: var(--ep-ivory);
}
.ep-brand__tagline { font-size: 12px; color: var(--ep-ash); letter-spacing: .01em; margin-top: 4px; }

/* Desktop nav: centred pill links */
.ep-nav { margin-left: auto; }
.ep-nav > .nav { display: flex; align-items: center; gap: 4px; margin: 0; }
.ep-nav > .nav > li { float: none; position: static; }
.ep-nav > .nav > li > a {
  display: block; padding: 9px 16px; border-radius: var(--ep-r-pill);
  color: var(--ep-ivory); font-size: 15px; font-weight: 400; letter-spacing: .005em; white-space: nowrap;
  background: transparent !important;
  transition: background-color .25s, color .25s;
}
.ep-nav > .nav > li > a:hover,
.ep-nav > .nav > li > a:focus,
.ep-nav > .nav > li.open > a { background: rgba(237, 237, 243, .08) !important; color: #fff; }
.ep-nav > .nav > li.active > a { background: rgba(237, 237, 243, .10) !important; }
.ep-nav .caret { border-top-color: var(--ep-ash); margin-left: 6px; }

/* Last menu item (Contact Us) = the cobalt primary action */
.ep-nav > .nav > li:last-child > a {
  margin-left: 12px; padding: 11px 22px; color: #fff !important;
  background: var(--ep-cobalt) !important;
}
.ep-nav > .nav > li:last-child > a:hover,
.ep-nav > .nav > li:last-child > a:focus { background: var(--ep-cobalt-hover) !important; }

/* Mega dropdown: graphite panel */
.ep-nav .dropdown-menu {
  left: 15px; right: 15px; top: calc(100% - 6px); margin: 0;
  float: none; min-width: 0;
  padding: 20px; background: var(--ep-card);
  border: 1px solid var(--ep-hair); border-radius: var(--ep-r-card); box-shadow: none;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px;
}
.ep-nav .open > .dropdown-menu { display: grid; }
/* Bootstrap adds a full-screen .dropdown-backdrop on touch devices; it sits over the
   (static, in-flow) phone submenu and swallows every tap on its links. Not needed here. */
.ep-nav .dropdown-backdrop { display: none; }
.ep-nav .dropdown-menu > li > a {
  display: block; padding: 10px 16px; border-radius: var(--ep-r-pill);
  color: var(--ep-ash); font-size: 14.5px; white-space: normal; line-height: 1.4;
  transition: color .2s, background-color .2s;
}
.ep-nav .dropdown-menu > li > a:hover,
.ep-nav .dropdown-menu > li > a:focus,
.ep-nav .dropdown-menu > .active > a { background: var(--ep-raised); color: var(--ep-ivory); }

@media (min-width: 1200px) and (hover: hover) {
  .ep-nav .dropdown:hover > .dropdown-menu { display: grid; }
}

/* Burger */
.ep-burger {
  display: none; margin-left: auto; flex-shrink: 0;
  width: 46px; height: 46px; padding: 14px 13px;
  background: rgba(237, 237, 243, .06); border: 1px solid var(--ep-hair-2); border-radius: 50%;
  cursor: pointer;
}
.ep-burger span { display: block; height: 1.5px; background: var(--ep-ivory); border-radius: 1px; transition: transform .3s var(--ep-ease), opacity .2s; }
.ep-burger span + span { margin-top: 5px; }
.ep-nav-open .ep-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ep-nav-open .ep-burger span:nth-child(2) { opacity: 0; }
.ep-nav-open .ep-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Tablet / mobile header ---------- */
@media (max-width: 1199px) {
  .ep-burger { display: block; }
  .ep-nav {
    position: fixed; left: 0; right: 0; bottom: 0;
    top: var(--ep-nav-top, 68px);
    background: var(--ep-canvas);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 16px 20px calc(30px + var(--ep-mobilebar-h));
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ep-ease), transform .3s var(--ep-ease), visibility 0s linear .3s;
  }
  .ep-nav-open .ep-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ep-ease), transform .3s var(--ep-ease); }
  .ep-nav-open { overflow: hidden; }
  .ep-nav > .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .ep-nav > .nav > li { border-bottom: 1px solid var(--ep-hair); }
  .ep-nav > .nav > li > a {
    padding: 18px 6px; border-radius: 0; background: transparent !important;
    font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 500; font-size: 22px; letter-spacing: .015em;
  }
  .ep-nav > .nav > li > a .caret { float: right; margin-top: 12px; }
  .ep-nav > .nav > li:last-child { border-bottom: 0; margin-top: 24px; }
  .ep-nav > .nav > li:last-child > a { margin: 0; border-radius: var(--ep-r-pill); text-align: center; font-family: var(--ep-sans); font-stretch: normal; font-size: 16px; padding: 15px; }
  .ep-nav .dropdown-menu {
    position: static; border: 0; border-radius: var(--ep-r-card); background: var(--ep-card);
    padding: 10px; margin: 0 0 16px; grid-template-columns: 1fr;
  }
  .ep-nav .dropdown-menu > li > a { font-size: 15.5px; padding: 11px 14px; }
}

@media (max-width: 767px) {
  :root { --ep-header-h: 70px; --ep-mobilebar-h: 64px; --ep-section: 72px; }
  .ep-topbar { font-size: 12px; }
  .ep-topbar__inner { justify-content: center; gap: 4px 16px; }
  .ep-topbar__translate { margin-right: 0; }
  .ep-header__inner { gap: 12px; }
  .ep-brand__logo { width: 46px; height: 46px; }
  .ep-header.is-shrunk .ep-brand__logo { width: 40px; height: 40px; }
  .ep-header.is-shrunk .ep-header__inner { min-height: 60px; }
  .ep-brand__name { font-size: 17px; }
  .ep-brand__tagline { font-size: 11px; }
}
@media (max-width: 380px) { .ep-brand__tagline { display: none; } }

/* ---------- Footer ---------- */
.ep-footer { background: var(--ep-canvas); color: var(--ep-ash); font-size: 14.5px; border-top: 1px solid var(--ep-hair); }
.ep-footer a { color: var(--ep-ash); transition: color .2s; }
.ep-footer a:hover, .ep-footer a:focus { color: var(--ep-ivory); text-decoration: none; }

.ep-footer__links { padding: 72px 0 48px; border-bottom: 1px solid var(--ep-hair); }
.ep-footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 28px; }
.ep-footer__links li a { display: inline-block; padding: 7px 0; line-height: 1.4; }
.ep-footer__links .dropdown-menu { position: static; display: block; float: none; background: none; border: 0; box-shadow: none; padding: 0 0 0 12px; }

.ep-footer__main { padding: 48px 0 56px; }
.ep-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: center; }
.ep-footer__brand { display: flex; align-items: center; gap: 18px; }
.ep-footer__logo img { width: 64px; height: auto; }
.ep-footer__title span { display: block; font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 500; font-size: 20px; letter-spacing: .02em; color: var(--ep-ivory); margin-bottom: 6px; }
.ep-footer__title p { margin: 0; font-size: 12px; letter-spacing: .01em; color: var(--ep-ash); }

.ep-footer__badge { text-align: center; }
.ep-footer__badge > div { background: #fff; border-radius: var(--ep-r-card); padding: 6px; max-width: 100%; }

.ep-footer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.ep-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ep-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ep-raised); color: var(--ep-ivory);
  transition: background-color .25s, transform .3s var(--ep-ease);
}
.ep-social a:hover, .ep-social a:focus { background: #33334a; color: #fff; transform: translateY(-2px); }
.ep-footer__dev { text-align: right; font-size: 12px; letter-spacing: .01em; }
.ep-footer__dev img { max-height: 32px; width: auto; opacity: .7; filter: grayscale(1) brightness(1.6); }
.ep-footer__dev p { margin: 6px 0 0; }

@media (max-width: 991px) {
  .ep-footer__grid { grid-template-columns: 1fr; text-align: center; }
  .ep-footer__brand { flex-direction: column; }
  .ep-footer__side { align-items: center; }
  .ep-footer__dev { text-align: center; }
}
@media (max-width: 767px) {
  .ep-footer__links { padding: 48px 0 28px; }
  .ep-footer__links ul { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .ep-footer__links li a { font-size: 13.5px; }
}

/* ---------- Sticky mobile contact bar ---------- */
.ep-mobilebar { display: none; }
@media (max-width: 767px) {
  body.ep-theme { padding-bottom: calc(var(--ep-mobilebar-h) + env(safe-area-inset-bottom)); }
  .ep-mobilebar {
    position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 70;
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px;
    height: 56px; padding: 5px; border-radius: var(--ep-r-pill);
    background: rgba(30, 30, 42, .86);
    -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--ep-hair);
  }
  .ep-mobilebar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--ep-r-pill);
    color: var(--ep-ivory); font-size: 14px; font-weight: 500; letter-spacing: .005em;
    transition: background-color .2s;
  }
  .ep-mobilebar .fa { font-size: 17px; }
  .ep-mobilebar a:first-child { background: var(--ep-cobalt); color: #fff; }
  .ep-mobilebar a:not(:first-child) { background: var(--ep-raised); }
  .ep-mobilebar a:hover, .ep-mobilebar a:focus, .ep-mobilebar a:active { text-decoration: none; color: #fff; }
}

/* ---------- Scroll reveal (only when JS is on and motion is allowed) ----------
   Uses the separate `translate` property + an animation so it never fights
   the cards' own hover `transform` / `transition`. */
@media (prefers-reduced-motion: no-preference) {
  .ep-js [data-ep-reveal] { opacity: 0; translate: 0 28px; }
  .ep-js [data-ep-reveal="left"] { translate: -36px 0; }
  .ep-js [data-ep-reveal="right"] { translate: 36px 0; }
  .ep-js [data-ep-reveal="zoom"] { translate: none; scale: .97; }
  .ep-js [data-ep-reveal].is-visible { animation: ep-reveal 1s var(--ep-ease) var(--ep-delay, 0s) forwards; }
}
@keyframes ep-reveal { to { opacity: 1; translate: 0 0; scale: 1; } }

/* ==========================================================================
   Shared components
   ========================================================================== */
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  font-family: var(--ep-sans); font-size: 16px; font-weight: 400; letter-spacing: .005em;
  border-radius: var(--ep-r-input); border: 1px solid transparent;
  text-decoration: none !important; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ep-ease);
}
.ep-btn:hover, .ep-btn:focus-visible { transform: translateY(-1px); }
.ep-btn .fa { transition: transform .3s var(--ep-ease); }
.ep-btn:hover .fa-long-arrow-right { transform: translateX(4px); }

/* Primary - the single cobalt action */
.ep-btn--gold, .ep-btn--crimson, .ep-btn--primary { background: var(--ep-cobalt); color: #fff !important; }
.ep-btn--gold:hover, .ep-btn--crimson:hover, .ep-btn--primary:hover { background: var(--ep-cobalt-hover); }
/* Ghost - ivory outline */
.ep-btn--ghost { background: transparent; color: var(--ep-ivory) !important; border-color: var(--ep-ivory); }
.ep-btn--ghost:hover, .ep-btn--ghost:focus-visible { background: var(--ep-ivory); color: var(--ep-canvas) !important; }
/* Line - quiet secondary inside cards */
.ep-btn--line { min-height: 42px; padding: 9px 20px; font-size: 14.5px; background: var(--ep-raised); color: var(--ep-ivory) !important; }
.ep-btn--line:hover, .ep-btn--line:focus-visible { background: #33334a; }

.ep-link { color: var(--ep-ivory); border-bottom: 1px solid var(--ep-slate); transition: border-color .2s; }
.ep-link:hover, .ep-link:focus { color: #fff; border-color: var(--ep-ivory); text-decoration: none; }

/* Sections - every surface is canvas or card */
.ep-section { padding: var(--ep-section) 0; position: relative; overflow-x: clip; background: var(--ep-canvas); color: var(--ep-ivory); }
.ep-section--grad { overflow: hidden; }
.ep-section--grad .container { position: relative; z-index: 1; }
.ep-section__photo {           /* atmospheric photo, heavily muted */
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--ep-photo); background-size: cover; background-position: center;
  opacity: .14; filter: grayscale(.6) saturate(.6);
}
.ep-section__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ep-canvas) 0%, rgba(23, 23, 33, .2) 30%, rgba(23, 23, 33, .2) 70%, var(--ep-canvas) 100%); }
@media (max-width: 767px) { .ep-section__photo { background-image: var(--ep-photo-sm, var(--ep-photo)); } }

.ep-heading { margin-bottom: 56px; }
.ep-heading--center { text-align: center; max-width: 1120px; margin-left: auto; margin-right: auto; }
.ep-heading h2, .ep-heading h3 {
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; letter-spacing: .01em;
  margin: 0; color: var(--ep-ivory);
}
.ep-heading__lead { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--ep-ash); }
.ep-heading__lead p { margin: 0; }

/* ==========================================================================
   Homepage - full-bleed hero
   ========================================================================== */
.ep-hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ep-canvas); color: #fff;
}
.ep-hero__bg {
  position: absolute; inset: -2%;
  background-image: var(--ep-bg); background-size: cover; background-position: center;
  filter: saturate(.55) brightness(.9);
  opacity: 0; transition: opacity 1.6s var(--ep-ease);
}
@media (max-width: 767px) { .ep-hero__bg { background-image: var(--ep-bg-sm, var(--ep-bg)); } }
.ep-hero__bg.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ep-hero__bg.is-active { animation: ep-kenburns 20s ease-out both; }
}
@keyframes ep-kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
.ep-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 23, 33, .70) 0%, rgba(23, 23, 33, .45) 35%, rgba(23, 23, 33, .55) 65%, #171721 100%),
    rgba(23, 23, 33, .25);
}
.ep-hero__inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--ep-header-h) + 72px); padding-bottom: 96px;
}
.ep-hero__slides { display: grid; max-width: 900px; width: 100%; }
.ep-hero__slide {
  grid-area: 1 / 1; align-self: center;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ep-ease), visibility 0s linear .6s;
}
.ep-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ep-ease); }
.ep-hero__title {
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 500;
  font-size: clamp(32px, 4.3vw, 58px); line-height: 1.1; letter-spacing: .005em;
  color: #fff; margin: 0 auto 26px; max-width: 900px;
}
.ep-hero__text { font-size: 18px; line-height: 1.55; color: var(--ep-ivory); max-width: 640px; margin: 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .ep-hero__slide .ep-hero__title, .ep-hero__slide .ep-hero__text { opacity: 0; transform: translateY(24px); }
  .ep-hero__slide.is-active .ep-hero__title,
  .ep-hero__slide.is-active .ep-hero__text { animation: ep-fadeup 1.1s var(--ep-ease) forwards; }
  .ep-hero__slide.is-active .ep-hero__text { animation-delay: .18s; }
  .ep-hero__actions { animation: ep-fadeup 1.1s var(--ep-ease) .4s both; }
}
@keyframes ep-fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.ep-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.ep-hero__dots { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.ep-hero__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(237, 237, 243, .35); transition: background-color .3s, width .4s var(--ep-ease);
}
.ep-hero__dot::after { content: ''; display: block; height: 24px; margin-top: -8px; } /* larger tap area */
.ep-hero__dot.is-active { background: var(--ep-ivory); width: 28px; }

/* ==========================================================================
   Homepage - marquee strip
   ========================================================================== */
.ep-marquee {
  background: var(--ep-card); color: var(--ep-ash);
  overflow: hidden; white-space: nowrap;
}
.ep-marquee__track { display: flex; width: max-content; }
.ep-marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ep-marquee__list li {
  display: flex; align-items: center; padding: 22px 0;
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 400; font-size: 18px; letter-spacing: .02em;
}
.ep-marquee__list li::after { content: ''; width: 5px; height: 5px; margin: 0 32px; border-radius: 50%; background: var(--ep-slate); }
@media (prefers-reduced-motion: no-preference) {
  .ep-marquee__track { animation: ep-marquee 80s linear infinite; }
  .ep-marquee:hover .ep-marquee__track { animation-play-state: paused; }
}
@keyframes ep-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ep-marquee { white-space: normal; }
  .ep-marquee__track { width: auto; animation: none !important; }
  .ep-marquee__list { flex-wrap: wrap; justify-content: center; padding: 12px 16px; }
  .ep-marquee__list[aria-hidden="true"] { display: none; }
  .ep-marquee__list li { padding: 6px 0; font-size: 15px; }
  .ep-marquee__list li::after { margin: 0 16px; }
}

/* ==========================================================================
   Homepage - intro statement
   ========================================================================== */
.ep-intro { background: var(--ep-canvas); padding: var(--ep-section) 0; text-align: center; }
.ep-intro__text {
  max-width: 960px; margin: 0 auto;
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; letter-spacing: .01em; color: var(--ep-ivory);
}
.ep-intro__text p { margin: 0; }

/* ==========================================================================
   Homepage - service cards with icons
   ========================================================================== */
.ep-iconcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ep-iconcard {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; min-height: 100%; border-radius: var(--ep-r-card);
  background: var(--ep-card); color: var(--ep-ivory) !important; text-decoration: none !important;
  transition: background-color .35s var(--ep-ease), transform .45s var(--ep-ease);
}
.ep-iconcard:hover, .ep-iconcard:focus-visible { background: var(--ep-raised); transform: translateY(-6px); }
.ep-iconcard__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 40px; border-radius: 50%;
  background: var(--ep-raised); transition: background-color .35s;
}
.ep-iconcard:hover .ep-iconcard__icon { background: #33334a; }
.ep-iconcard__icon img { width: 52px; height: 52px; object-fit: contain; filter: brightness(0) invert(.93); }
.ep-iconcard__title { font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-size: 21px; font-weight: 500; letter-spacing: .015em; color: var(--ep-ivory); margin: 0 0 12px; line-height: 1.2; }
.ep-iconcard__text { font-size: 15px; line-height: 1.55; color: var(--ep-ash); margin: 0 0 28px; }
.ep-iconcard__arrow {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ep-hair-2); color: var(--ep-ivory); font-size: 15px;
  transition: transform .35s var(--ep-ease), background-color .3s, color .3s, border-color .3s;
}
.ep-iconcard:hover .ep-iconcard__arrow { background: var(--ep-ivory); color: var(--ep-canvas); border-color: var(--ep-ivory); transform: translateX(6px); }

/* ==========================================================================
   Homepage - legal solutions image tiles
   ========================================================================== */
.ep-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ep-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--ep-r-card);
  background: var(--ep-card); color: var(--ep-ivory) !important; text-decoration: none !important;
  transition: transform .45s var(--ep-ease);
}
.ep-tile:hover, .ep-tile:focus-visible { transform: translateY(-6px); }
.ep-tile__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.ep-tile__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.7);
  transition: transform 1.1s var(--ep-ease), opacity .6s var(--ep-ease), filter .6s;
}
.ep-tile__img--hover { opacity: 0; z-index: 1; }
.ep-tile:hover .ep-tile__img, .ep-postcard:hover .ep-tile__img { transform: scale(1.05); filter: saturate(.9); }
.ep-tile:hover .ep-tile__img--hover, .ep-postcard:hover .ep-tile__img--hover { opacity: 1; }
.ep-tile__media::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(0deg, rgba(23, 23, 33, .92) 0%, rgba(23, 23, 33, .35) 50%, rgba(23, 23, 33, .05) 100%);
}
.ep-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: flex-end; gap: 16px; padding: 28px 28px; }
.ep-tile > .ep-tile__badge {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  padding: 6px 14px; border-radius: var(--ep-r-pill);
  font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ep-ivory);
  background: rgba(23, 23, 33, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--ep-hair-2);
}
.ep-tile__title { font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-size: 21px; font-weight: 500; letter-spacing: .015em; line-height: 1.2; margin: 0; color: var(--ep-ivory); flex: 1; }
.ep-tile__arrow {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ep-ivory); color: var(--ep-ivory);
  transition: background-color .3s, color .3s, transform .35s var(--ep-ease);
}
.ep-tile:hover .ep-tile__arrow { background: var(--ep-ivory); color: var(--ep-canvas); transform: rotate(-45deg); }

/* ==========================================================================
   Homepage - why choose us: numbered cards
   ========================================================================== */
.ep-why__head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.ep-why__head .ep-heading { margin-bottom: 0; }
.ep-why__media { border-radius: var(--ep-r-card); overflow: hidden; }
.ep-why__media img { display: block; width: 100%; height: auto; filter: saturate(.75); }

.ep-numcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ep-numcard {
  position: relative; display: block; padding: 32px 32px 36px; border-radius: var(--ep-r-card);
  background: var(--ep-card); color: var(--ep-ivory) !important; text-decoration: none !important;
  transition: background-color .35s var(--ep-ease), transform .45s var(--ep-ease);
}
.ep-numcard:hover, .ep-numcard:focus-visible { background: var(--ep-raised); transform: translateY(-6px); }
.ep-numcard__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 48px; }
.ep-numcard__num {
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-size: 49px; font-weight: 400; line-height: 1;
  letter-spacing: .01em; color: var(--ep-slate); transition: color .35s;
}
.ep-numcard:hover .ep-numcard__num { color: var(--ep-ivory); }
.ep-numcard__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ep-raised); }
.ep-numcard:hover .ep-numcard__icon { background: #33334a; }
.ep-numcard__icon img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(.93); }
.ep-numcard__title { font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-size: 21px; font-weight: 500; letter-spacing: .015em; color: var(--ep-ivory); margin: 0 0 12px; line-height: 1.25; }
.ep-numcard__text { font-size: 15px; line-height: 1.55; color: var(--ep-ash); margin: 0; }

/* ==========================================================================
   Homepage - our services cards
   ========================================================================== */
.ep-services__banner { border-radius: var(--ep-r-card); overflow: hidden; margin-bottom: 12px; }
.ep-services__banner img { display: block; width: 100%; height: auto; filter: saturate(.75); }
.ep-postcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ep-postcard {
  display: flex; flex-direction: column; background: var(--ep-card); border-radius: var(--ep-r-card); overflow: hidden;
  transition: background-color .35s var(--ep-ease), transform .45s var(--ep-ease);
}
.ep-postcard:hover { background: var(--ep-raised); transform: translateY(-6px); }
.ep-postcard__media { position: relative; aspect-ratio: 256 / 170; overflow: hidden; }
.ep-postcard__body { display: flex; flex-direction: column; flex: 1; padding: 28px 28px 32px; }
.ep-postcard__title { font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-size: 21px; font-weight: 500; letter-spacing: .015em; color: var(--ep-ivory); margin: 0 0 12px; }
.ep-postcard__text { font-size: 15px; line-height: 1.55; color: var(--ep-ash); margin: 0 0 24px; }
.ep-postcard .ep-btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Homepage - complaints + contact
   ========================================================================== */
.ep-complaints { padding-top: 0; }
.ep-complaints__box { background: var(--ep-card); padding: 56px; border-radius: var(--ep-r-card); }
.ep-complaints__box .ep-heading { margin-bottom: 24px; }
.ep-complaints__box .ep-heading h2 { font-size: clamp(26px, 2.8vw, 32px); }
.ep-complaints__box p { font-size: 16px; line-height: 1.6; color: var(--ep-ash); margin: 0; max-width: 980px; }

.ep-contact { overflow: hidden; }
.ep-contact::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #171721 0%, rgba(23, 23, 33, .82) 30%, rgba(23, 23, 33, .82) 70%, #171721 100%), var(--ep-contact-bg) center / cover no-repeat;
  filter: saturate(.6);
}
@media (max-width: 767px) {
  .ep-contact::before { background: linear-gradient(180deg, #171721 0%, rgba(23, 23, 33, .82) 30%, rgba(23, 23, 33, .82) 70%, #171721 100%), var(--ep-contact-bg-sm, var(--ep-contact-bg)) center / cover no-repeat; }
}
.ep-contact .container { position: relative; }
.ep-contact__form {
  max-width: 960px; margin: 0 auto; border-radius: var(--ep-r-card);
  background: rgba(30, 30, 42, .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 40px 32px 20px;
}
.ep-contact__form p { margin: 0 0 14px; }

/* Dark pill inputs - shared by every form on the site */
.ep-contact__form input[type="text"], .ep-contact__form input[type="email"], .ep-contact__form input[type="tel"], .ep-contact__form textarea,
.ep-content .wpcf7 input[type="text"], .ep-content .wpcf7 input[type="email"], .ep-content .wpcf7 input[type="tel"],
.ep-content .wpcf7 input[type="number"], .ep-content .wpcf7 input[type="file"], .ep-content .wpcf7 select, .ep-content .wpcf7 textarea {
  width: 100%; min-height: 52px; height: auto; padding: 14px 20px; margin: 0;
  background: transparent; color: var(--ep-ivory);
  border: 1px solid rgba(226, 227, 237, .35); border-radius: var(--ep-r-input);
  font-family: var(--ep-sans); font-size: 16px; line-height: 1.4;
  transition: border-color .25s, background-color .25s;
}
.ep-contact__form textarea, .ep-content .wpcf7 textarea { min-height: 150px; border-radius: 20px; resize: vertical; }
.ep-content .wpcf7 select { background: var(--ep-canvas); }
.ep-content .wpcf7 select option { background: var(--ep-card); color: var(--ep-ivory); }
.ep-content .wpcf7 input[type="file"] { padding: 12px 16px; font-size: 14px; color: var(--ep-ash); }
.ep-contact__form ::placeholder, .ep-content .wpcf7 ::placeholder { color: var(--ep-ash); opacity: 1; }
.ep-contact__form input:focus, .ep-contact__form textarea:focus,
.ep-content .wpcf7 input:focus, .ep-content .wpcf7 select:focus, .ep-content .wpcf7 textarea:focus {
  outline: none; border-color: var(--ep-ivory); background: rgba(237, 237, 243, .04);
}
.ep-contact__form input[type="submit"], .ep-content .wpcf7 input[type="submit"] {
  min-height: 52px; padding: 13px 40px; border: 0; border-radius: var(--ep-r-input);
  background: var(--ep-cobalt); color: #fff;
  font-family: var(--ep-sans); font-size: 16px; font-weight: 400; letter-spacing: .01em;
  cursor: pointer; transition: background-color .25s, transform .3s var(--ep-ease);
}
.ep-contact__form input[type="submit"]:hover, .ep-content .wpcf7 input[type="submit"]:hover { background: var(--ep-cobalt-hover); transform: translateY(-1px); }
.ep-contact__form .wpcf7-not-valid-tip, .ep-content .wpcf7-not-valid-tip { color: #ff9aa6; font-size: 13px; margin: 6px 0 0 20px; }
.ep-contact__form .wpcf7-response-output, .ep-content .wpcf7-response-output { color: var(--ep-ivory); border-color: var(--ep-slate) !important; border-radius: var(--ep-r-card); margin: 10px 15px 16px !important; }
.ep-contact__form .wpcf7-spinner { vertical-align: middle; }

/* ==========================================================================
   Homepage - responsive
   ========================================================================== */
@media (max-width: 1199px) { .ep-iconcards, .ep-postcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) {
  .ep-tiles, .ep-numcards { grid-template-columns: repeat(2, 1fr); }
  .ep-why__head { grid-template-columns: 1fr; gap: 32px; }
  .ep-complaints__box { padding: 40px 32px; }
}
@media (max-width: 767px) {
  .ep-heading { margin-bottom: 36px; }
  .ep-hero__inner { padding-top: calc(var(--ep-header-h) + 48px); padding-bottom: 64px; }
  .ep-hero__text { font-size: 16px; }
  .ep-hero__actions { margin-top: 32px; width: 100%; }
  .ep-hero__actions .ep-btn { flex: 1 1 100%; }
  .ep-hero__dots { margin-top: 40px; }
  .ep-marquee__list li { font-size: 15px; padding: 18px 0; }
  .ep-marquee__list li::after { margin: 0 22px; }
  .ep-iconcards, .ep-tiles, .ep-numcards, .ep-postcards { grid-template-columns: 1fr; }
  .ep-iconcard, .ep-numcard { padding: 28px 24px; }
  .ep-iconcard__icon { margin-bottom: 28px; }
  .ep-numcard__top { margin-bottom: 32px; }
  .ep-complaints__box { padding: 32px 24px; }
  .ep-contact__form { padding: 28px 12px 8px; }
}

/* ==========================================================================
   Inner pages - title banner
   ========================================================================== */
.ep-pagehero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 460px; display: flex; align-items: flex-end;
  background: var(--ep-canvas); color: #fff;
}
.ep-pagehero__bg {
  position: absolute; inset: -2%; z-index: -2;
  background-image: var(--ep-bg); background-size: cover; background-position: center;
  filter: saturate(.55) brightness(.9);
}
@media (max-width: 767px) { .ep-pagehero__bg { background-image: var(--ep-bg-sm, var(--ep-bg)); } }
@media (prefers-reduced-motion: no-preference) { .ep-pagehero__bg { animation: ep-kenburns 20s ease-out both; } }
.ep-pagehero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23, 23, 33, .72) 0%, rgba(23, 23, 33, .45) 45%, #171721 100%);
}
.ep-pagehero__inner { padding-top: calc(var(--ep-header-h) + 96px); padding-bottom: 56px; }
.ep-pagehero__title {
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 500; color: #fff;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; letter-spacing: .01em;
  margin: 0; max-width: 900px;
}
@media (prefers-reduced-motion: no-preference) { .ep-pagehero__title { animation: ep-fadeup 1.1s var(--ep-ease) .1s both; } }

/* ==========================================================================
   Inner pages - layout
   ========================================================================== */
.ep-page { background: var(--ep-canvas); padding: 24px 0 var(--ep-section); }
.ep-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: stretch; }
.ep-page__grid--full { grid-template-columns: minmax(0, 1fr); }
.ep-page__main { align-self: start; background: var(--ep-card); border-radius: var(--ep-r-card); padding: 48px 56px 56px; min-width: 0; }
.ep-page__feature { margin: 0 0 40px; border-radius: var(--ep-r-card); overflow: hidden; }
.ep-page__feature img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; filter: saturate(.8); }

.ep-page__side { display: flex; flex-direction: column; gap: 12px; }
.ep-page__side .ep-sidecard--contact { position: sticky; top: calc(var(--ep-header-h) - 8px); }
.ep-page__side--below { display: flex; flex-direction: column; align-items: center; margin-top: 0; }
.ep-page__side--below .ep-sidecard--map { align-self: stretch; }
.ep-page__side--below .ep-sidecard--img { max-width: 380px; width: 100%; }

.ep-sidecard { border-radius: var(--ep-r-card); overflow: hidden; }
.ep-sidecard--img { background: var(--ep-card); }
.ep-sidecard--img img { display: block; width: 100%; height: auto; }
.ep-sidecard--map { background: var(--ep-card); padding: 8px; }
.ep-sidecard--map .map-holder, .ep-sidecard--map iframe { display: block; width: 100%; border-radius: 8px; }
.ep-sidecard--map iframe { height: 420px; filter: grayscale(.4) brightness(.92); }

.ep-sidecard--contact { background: var(--ep-card); padding: 32px; color: var(--ep-ivory); }
.ep-sidecard__title { font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-size: 24px; font-weight: 500; letter-spacing: .02em; color: var(--ep-ivory); margin: 0 0 24px; }
.ep-sidecard__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 0; }
.ep-sidecard__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--ep-hair); font-size: 15px; line-height: 1.5; color: var(--ep-ivory); }
.ep-sidecard__list li:first-child { padding-top: 0; }
.ep-sidecard__list .fa { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ep-raised); color: var(--ep-ivory); font-size: 15px; }
.ep-sidecard__list span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ep-sidecard__list strong { font-size: 12px; letter-spacing: .01em; color: var(--ep-ash); font-weight: 400; margin-bottom: 2px; }
.ep-sidecard__list a { color: var(--ep-ivory); }
.ep-sidecard__list a:hover, .ep-sidecard__list a:focus { color: #fff; text-decoration: underline; }
.ep-sidecard__actions { display: grid; gap: 10px; }
.ep-sidecard__actions .ep-btn { width: 100%; }

/* ==========================================================================
   Inner pages - content typography
   ========================================================================== */
.ep-content { font-size: 16.5px; line-height: 1.65; color: var(--ep-ash); overflow-wrap: break-word; }
.ep-content > *:first-child { margin-top: 0; }
.ep-content p { margin: 0 0 1.2em; }
.ep-content h1, .ep-content h2, .ep-content h3, .ep-content h4, .ep-content h5, .ep-content h6 {
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); color: var(--ep-ivory); font-weight: 500; line-height: 1.2; letter-spacing: .015em;
  margin: 1.8em 0 .6em;
}
.ep-content h2 { font-size: 28px; }
.ep-content h3 { font-size: 24px; }
.ep-content h4 { font-size: 21px; }
.ep-content h5, .ep-content h6 { font-size: 18px; }
.ep-content strong, .ep-content b { color: var(--ep-ivory); font-weight: 500; }
.ep-content a { color: var(--ep-ivory) !important; text-decoration: none; border-bottom: 1px solid var(--ep-slate); transition: border-color .2s; }
.ep-content a:hover, .ep-content a:focus { border-color: var(--ep-ivory); }
/* inline colours typed into old content (e.g. crimson labels, #333 links) would vanish on dark */
.ep-content [style*="color"] { color: var(--ep-ivory) !important; }
.ep-content ul, .ep-content ol { margin: 0 0 1.4em; padding-left: 0; }
.ep-content ul { list-style: none; }
.ep-content ul > li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.ep-content ul > li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ep-ivory); }
.ep-content ol { padding-left: 1.4em; }
.ep-content ol > li { margin-bottom: .5em; padding-left: 4px; }
.ep-content ol > li::marker { color: var(--ep-ivory); }
.ep-content blockquote { margin: 1.6em 0; padding: 24px 28px; border: 0; border-radius: var(--ep-r-card); background: var(--ep-raised); font-size: 18px; color: var(--ep-ivory); }
.ep-content hr { border: 0; height: 1px; background: var(--ep-hair-2); margin: 1.6em 0; }
.ep-content img { max-width: 100%; height: auto; border-radius: var(--ep-r-card); }
.ep-content iframe { max-width: 100%; }

/* Tables (fee schedules) */
.ep-content table {
  width: 100% !important; max-width: 100%; height: auto !important;
  border-collapse: separate; border-spacing: 0; margin: 0 0 1.6em;
  background: transparent; border: 1px solid var(--ep-hair); border-radius: var(--ep-r-card); overflow: hidden;
  font-size: 15px; line-height: 1.5;
}
.ep-content table td, .ep-content table th { width: auto !important; height: auto !important; }
.ep-content table th, .ep-content table td, .ep-content .fees_table th, .ep-content .fees_table td {
  padding: 14px 18px !important; border: 0 !important; border-bottom: 1px solid var(--ep-hair) !important;
  text-align: left; vertical-align: top; color: var(--ep-ash);
}
.ep-content table tr:last-child td { border-bottom: 0 !important; }
.ep-content table thead { background: var(--ep-raised); }
.ep-content table thead th, .ep-content .fees_table th { background: transparent !important; color: var(--ep-ivory) !important; font-weight: 500; font-size: 14px; }
.ep-content table thead th strong { color: var(--ep-ivory); }
.ep-content table tbody tr:hover td { background: rgba(237, 237, 243, .03); }
.ep-content table tr > td:nth-child(2):last-child { text-align: right; white-space: nowrap; width: 1% !important; color: var(--ep-ivory); font-weight: 500; }
.ep-content table tr:has(> td:nth-child(2):last-child:empty) > td {
  background: var(--ep-raised) !important; color: var(--ep-ivory);
  font-family: var(--ep-display); font-stretch: var(--ep-stretch); font-weight: 500; font-size: 16px; letter-spacing: .015em;
}
.ep-content table + table { margin-top: -1.6em; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.ep-content table:has(+ table) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: 1.6em; }
.ep-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.6em; border-radius: var(--ep-r-card); }
.ep-table-scroll > table { margin: 0 !important; min-width: 560px; }

/* Bootstrap [row]/[column] shortcodes inside content */
.ep-content .row { margin-left: -15px; margin-right: -15px; }

/* Forms inside content (Contact form, Submit Your Case) */
.ep-content .bottom_contact { float: none; margin: 0; }
.ep-content .bottom_contact .home-form { display: flow-root; background: var(--ep-raised); border-radius: var(--ep-r-card); padding: 32px 20px 12px; }
.ep-content .bottom_contact input[type="submit"] { position: static !important; inset: auto !important; transform: none; width: auto !important; height: auto !important; margin: 4px 0 10px !important; float: none; }
.ep-content .bottom_contact label, .ep-content .bottom_contact .wpcf7 p { color: var(--ep-ivory); }
.ep-content .wpcf7 p { margin: 0 0 14px; }
.ep-content .wpcf7 label { color: var(--ep-ivory); font-weight: 400; }
.ep-content .contact-form-holder { background: var(--ep-raised); border-radius: var(--ep-r-card); padding: 24px 22px 8px; }
.ep-content .contact-form-holder form { background: none; padding: 0; }
.ep-content .contact-form-holder .wpcf7 input[type="submit"] { width: auto; color: #fff; }
.ep-content .map-holder iframe { height: auto; }

/* ==========================================================================
   Inner pages - responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .ep-page__grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .ep-page__main { padding: 40px 40px 46px; }
}
@media (max-width: 991px) {
  .ep-page__grid { grid-template-columns: minmax(0, 1fr); }
  .ep-page__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .ep-page__side .ep-sidecard--contact { position: static; }
  .ep-sidecard--img { max-width: 420px; }
}
@media (max-width: 767px) {
  .ep-pagehero { min-height: 300px; }
  .ep-pagehero__inner { padding-top: calc(var(--ep-header-h) + 64px); padding-bottom: 36px; }
  .ep-page { padding: 12px 0 72px; }
  .ep-page__main { padding: 28px 20px 30px; }
  .ep-page__feature { margin-bottom: 26px; }
  .ep-content { font-size: 16px; }
  .ep-content h2 { font-size: 24px; }
  .ep-content h3 { font-size: 21px; }
  .ep-content table { font-size: 14px; }
  .ep-content table th, .ep-content table td { padding: 12px !important; }
  .ep-content table tr > td:nth-child(2):last-child { white-space: normal; }
  .ep-content .bottom_contact .home-form { padding: 24px 8px 8px; }
  .ep-sidecard--img { max-width: none; }
  .ep-sidecard--map iframe { height: 320px; }
  .ep-sidecard--contact { padding: 28px 24px; }
}

/* ---------- Reduced motion: switch everything off ---------- */
@media (prefers-reduced-motion: reduce) {
  .ep-theme *, .ep-theme *::before, .ep-theme *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* Fixes */
.ep-content table tr { height: auto !important; }
@media (max-width: 1199px) {
  .ep-nav > .nav > li.active > a,
  .ep-nav > .nav > li.open > a,
  .ep-nav > .nav > li > a:hover,
  .ep-nav > .nav > li > a:focus { background: transparent !important; color: #fff; }
  .ep-nav > .nav > li.active > a::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ep-cobalt); margin: 0 12px 4px 0; vertical-align: middle; }
  .ep-nav > .nav > li:last-child > a { background: var(--ep-cobalt) !important; }
}

/* ==========================================================================
   LAYER 2 - Ventriloc editorial details on the Mercury dark base
   - whisper-weight (400) headings, tight -0.02em tracking, poster leading
   - square 0px buttons, nav inside a floating pill
   - cards with one sharp corner (top-right), warm ivory text
   - ember-orange used only as thin link underlines / tiny accents
   ========================================================================== */
:root {
  --ep-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ep-stretch: 100%;
  --ep-ivory: #ebe6dd;          /* warm paper-ivory text */
  --ep-ash: #b9b5ad;            /* warm muted text */
  --ep-ember: #ff682c;          /* accent: underlines only */
  --ep-r-card: 12px 0 12px 12px;/* asymmetric: sharp top-right */
  --ep-r-btn: 0px;
}
body.ep-theme { color: var(--ep-ivory); }

/* Headings: weight 400, tight tracking, poster-like leading */
.ep-hero__title, .ep-pagehero__title, .ep-heading h2, .ep-heading h3, .ep-intro__text,
.ep-iconcard__title, .ep-tile__title, .ep-numcard__title, .ep-postcard__title, .ep-sidecard__title,
.ep-footer__title span, .ep-brand__name, .ep-content h1, .ep-content h2, .ep-content h3, .ep-content h4, .ep-content h5, .ep-content h6,
.ep-marquee__list li, .ep-numcard__num {
  font-family: var(--ep-display); font-stretch: normal; font-weight: 400; letter-spacing: -.02em;
}
.ep-hero__title { font-size: clamp(36px, 5.2vw, 72px); line-height: .98; }
.ep-pagehero__title { font-size: clamp(38px, 5.4vw, 72px); line-height: .96; }
.ep-heading h2, .ep-heading h3 { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; text-transform: none; }
.ep-intro__text { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.22; }
.ep-numcard__num { font-size: 66px; line-height: .91; font-weight: 300; }
.ep-brand__name { font-size: 22px; }
.ep-content h2 { font-size: 32px; line-height: 1.12; }
.ep-content h3 { font-size: 26px; line-height: 1.15; }

/* Small editorial eyebrow above section headings (uses existing title, decorative line only) */
.ep-heading h2::before, .ep-heading h3::before {
  content: ''; display: block; width: 36px; height: 1px; background: var(--ep-ember); margin-bottom: 22px;
}
.ep-heading--center h2::before, .ep-heading--center h3::before { margin-left: auto; margin-right: auto; }

/* Square buttons */
.ep-btn, .ep-contact__form input[type="submit"], .ep-content .wpcf7 input[type="submit"] { border-radius: var(--ep-r-btn); letter-spacing: -.01em; }
.ep-nav > .nav > li:last-child > a { border-radius: 0; }
.ep-mobilebar a { border-radius: 0; }
.ep-mobilebar { border-radius: 2px; }

/* Nav inside a floating pill container */
@media (min-width: 1200px) {
  .ep-nav > .nav { background: rgba(30, 30, 42, .72); border: 1px solid var(--ep-hair); border-radius: 200px; padding: 5px 5px 5px 8px;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .ep-nav > .nav > li > a { padding: 9px 16px; }
  .ep-nav > .nav > li:last-child > a { border-radius: 200px; margin-left: 6px; }
}

/* Asymmetric cards */
.ep-iconcard, .ep-tile, .ep-numcard, .ep-postcard, .ep-complaints__box, .ep-contact__form,
.ep-page__main, .ep-sidecard, .ep-why__media, .ep-services__banner, .ep-page__feature,
.ep-nav .dropdown-menu, .ep-content table, .ep-table-scroll { border-radius: var(--ep-r-card); }
.ep-content table:has(+ table) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ep-content table + table { border-top-left-radius: 0; }

/* Inputs: near-square to match the buttons */
.ep-contact__form input[type="text"], .ep-contact__form input[type="email"], .ep-contact__form input[type="tel"],
.ep-content .wpcf7 input[type="text"], .ep-content .wpcf7 input[type="email"], .ep-content .wpcf7 input[type="tel"],
.ep-content .wpcf7 input[type="number"], .ep-content .wpcf7 input[type="file"], .ep-content .wpcf7 select { border-radius: 3px; }
.ep-contact__form textarea, .ep-content .wpcf7 textarea { border-radius: 3px; }
.ep-contact__form .wpcf7-not-valid-tip, .ep-content .wpcf7-not-valid-tip { margin-left: 2px; }

/* Ember-orange link underlines (accent only - never a fill) */
.ep-content a, .ep-link { border-bottom: 1px solid var(--ep-ember); }
.ep-content a:hover, .ep-link:hover { color: var(--ep-ember) !important; border-color: var(--ep-ember); }
.ep-tile > .ep-tile__badge { border-radius: 20px; }
.ep-numcard:hover .ep-numcard__num { color: var(--ep-ember); }

/* Alternate section bands (canvas / slightly raised) instead of dividers */
.ep-iconcards-wrap, .ep-services, .ep-marquee { background-color: #1b1b26; }
.ep-iconcards-wrap .ep-iconcard, .ep-services .ep-postcard { background: #22222f; }
.ep-iconcards-wrap .ep-iconcard:hover, .ep-services .ep-postcard:hover { background: var(--ep-raised); }

/* ==========================================================================
   LAYER 3 - Motion
   All of it lives behind prefers-reduced-motion: no-preference.
   ========================================================================== */

/* Scroll progress line */
.ep-progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 200; pointer-events: none;
  background: var(--ep-cobalt); transform-origin: 0 50%; transform: scaleX(var(--ep-p, 0)); }

/* Hero: cross-fading, slowly zooming photo slides + progress dot */
.ep-hero__dot { position: relative; overflow: hidden; }
.ep-hero__dot.is-active { background: rgba(235, 230, 221, .3); width: 44px; }
.ep-hero__dot.is-active::before { content: ''; position: absolute; inset: 0; background: var(--ep-ivory); transform-origin: 0 50%; transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
  .ep-hero__bg { transition: opacity 1.8s var(--ep-ease); }
  .ep-hero__bg.is-active { animation: ep-heroZoom 9s linear both; }
  @keyframes ep-heroZoom { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
  .ep-hero__dot.is-active::before { animation: ep-dotfill 7s linear both; }
  .ep-hero.is-paused .ep-hero__dot.is-active::before { animation-play-state: paused; }
  @keyframes ep-dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* Word-by-word heading rise (spans added by premium.js; text unchanged) */
  .ep-split .ep-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .ep-split .ep-w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ep-ease); transition-delay: calc(var(--i, 0) * 45ms + var(--ep-delay, 0s)); }
  .ep-split.is-visible .ep-w > span,
  .ep-hero__slide.is-active .ep-split .ep-w > span { transform: none; }
  .ep-hero__slide .ep-hero__title.ep-split { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ep-hero__slide:not(.is-active) .ep-split .ep-w > span { transition: none; }

  /* Image wipe reveal + slow settle */
  .ep-js [data-ep-img] { clip-path: inset(0 0 100% 0); }
  .ep-js [data-ep-img] img, .ep-js [data-ep-img] .ep-tile__img { scale: 1.18; transition: scale 1.6s var(--ep-ease); }
  .ep-js [data-ep-img].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--ep-ease); transition-delay: var(--ep-delay, 0s); }
  .ep-js [data-ep-img].is-in img, .ep-js [data-ep-img].is-in .ep-tile__img { scale: 1; }

  /* Parallax (JS sets --ep-py) */
  [data-ep-parallax] { translate: 0 var(--ep-py, 0); will-change: translate; }

  /* Page banner: title words + slow zoom already; add a gentle line sweep */
  .ep-pagehero::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--ep-ember), transparent);
    transform: scaleX(0); animation: ep-sweep 1.6s var(--ep-ease) .5s forwards; }
  @keyframes ep-sweep { to { transform: scaleX(1); } }

  /* Card hover: image drifts, arrow nudges (existing), card lifts (existing) */
  .ep-tile:hover .ep-tile__img, .ep-postcard:hover .ep-tile__img { scale: 1.06; }
}
.ep-why__media img { aspect-ratio: 16 / 7; object-fit: cover; }
.ep-services__banner img { aspect-ratio: 16 / 5; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .ep-section__photo { inset: -180px 0; }
}
/* New photos in the content card and sidebar */
.ep-page__feature img { aspect-ratio: 16 / 7; max-height: none; }
.ep-sidecard--img img { aspect-ratio: 4 / 5; object-fit: cover; }
.ep-page__side--below .ep-sidecard--img { max-width: none; }
.ep-page__side--below .ep-sidecard--img img { aspect-ratio: 16 / 6; }
@media (max-width: 991px) { .ep-sidecard--img img { aspect-ratio: 16 / 9; } }

/* ==========================================================================
   LAYER 4 - Pop-up scroll reveal + 5s hero timing
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .ep-js [data-ep-reveal] { opacity: 0; translate: 0 70px; scale: .94; }
  .ep-js [data-ep-reveal="left"] { translate: -60px 20px; }
  .ep-js [data-ep-reveal="right"] { translate: 60px 20px; }
  .ep-js [data-ep-reveal="zoom"] { translate: 0 40px; scale: .9; }
  .ep-js [data-ep-reveal].is-visible { animation: ep-pop .95s cubic-bezier(.2, .9, .3, 1.15) var(--ep-delay, 0s) both; }
  @keyframes ep-pop {
    0%   { opacity: 0; }
    55%  { opacity: 1; translate: 0 -10px; scale: 1.015; }
    100% { opacity: 1; translate: 0 0; scale: 1; }
  }
  /* Images inside popped cards: quick wipe + settle */
  .ep-js [data-ep-img].is-in { transition: clip-path 1s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--ep-delay, 0s) + .1s); }
  .ep-js [data-ep-img]:not(.is-in) { transition: none; }
  .ep-js [data-ep-img]:not(.is-in) img, .ep-js [data-ep-img]:not(.is-in) .ep-tile__img { transition: none; }
  /* Words re-rise each time too */
  .ep-split:not(.is-visible) .ep-w > span { transition: none; }
  /* Hero progress dot matches the 5s timer */
  .ep-hero__dot.is-active::before { animation-duration: 5s; }
  .ep-hero__bg.is-active { animation-duration: 7s; }
}
/* Contact Us form button: undo the parent theme's zero side padding / hover outline */
.ep-content .contact-form-holder form input[type="submit"] {
  padding-left: 40px !important; padding-right: 40px !important; width: auto; border: 0; text-transform: uppercase; letter-spacing: .04em;
}
.ep-content .contact-form-holder form input[type="submit"]:hover { background: var(--ep-cobalt-hover); border: 0; }

/* ==========================================================================
   Why choose us - 3D spinning ring of numbered cards (enabled by premium.js)
   ========================================================================== */
.ep-ring {
  --w: 400px; --h: 440px; --r: calc(var(--w) * 1.02);
  display: block; position: relative; height: calc(var(--h) + 60px);
  perspective: 1600px; perspective-origin: 50% 40%; outline: none; margin-top: 10px;
  border: 0 !important; grid-template-columns: none;
}
.ep-ring__spin {
  position: absolute; left: 50%; top: 20px; width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1)) rotateY(var(--rot, 0deg));
  transition: transform 1.1s cubic-bezier(.6, .05, .25, 1);
}
.ep-ring .ep-numcard {
  position: absolute; inset: 0; width: var(--w); height: var(--h);
  display: flex; flex-direction: column; justify-content: flex-start;
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  opacity: .6; transition: opacity .6s; cursor: pointer; border: 0;
}
.ep-ring .ep-numcard:hover, .ep-ring .ep-numcard:focus-visible { transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r)); }
.ep-ring .ep-numcard.is-front { opacity: 1; cursor: default; }
.ep-ring .ep-numcard.is-front .ep-numcard__num { color: var(--ep-cobalt); }
.ep-ring .ep-numcard__num { font-size: 72px; }

.ep-ring__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.ep-ring__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ep-hair-2);
  background: var(--ep-card); color: var(--ep-ivory); font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .25s;
}
.ep-ring__btn:hover { transform: scale(1.06); }
.ep-ring__count { min-width: 64px; text-align: center; font-size: 14px; letter-spacing: .06em; color: var(--ep-ash); }
@media (max-width: 991px) { .ep-ring { --w: 340px; --h: 430px; } }
@media (max-width: 767px) { .ep-ring { --w: 280px; --h: 440px; perspective: 1000px; } .ep-ring .ep-numcard { padding: 28px 24px; } .ep-ring .ep-numcard__num { font-size: 56px; } }
@media (max-width: 380px) { .ep-ring { --w: 250px; --h: 470px; } }
@media (prefers-reduced-motion: reduce) { .ep-ring__spin { transition: none; } }

/* ==========================================================================
   Legal Solutions - falling-paper sequence of big banners (enabled by premium.js)
   ========================================================================== */
.ep-tile__copy { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.ep-tile__intro { display: none; }
.ep-section.has-fall { overflow: clip; }
.ep-fall { position: relative; height: calc(var(--n) * 70vh + 100vh); margin-top: 8px; }
.ep-fall__stage {
  position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  perspective: 1600px; overflow: hidden;
}
.ep-tiles.is-falling { display: block; position: relative; width: min(1080px, 100%); height: min(600px, calc(100svh - 190px)); }
.ep-tiles.is-falling .ep-tile {
  position: absolute; inset: 0; border-radius: 20px; transform-origin: 50% 0%; will-change: transform, opacity; transition: none;
}
.ep-tiles.is-falling .ep-tile:hover { translate: none; }
.ep-tiles.is-falling .ep-tile__media { height: 100%; aspect-ratio: auto; }
.ep-tiles.is-falling .ep-tile__media::before { background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .05) 100%); }
.ep-tiles.is-falling .ep-tile__body { padding: 48px 52px; align-items: flex-end; gap: 28px; }
.ep-tiles.is-falling .ep-tile__title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.ep-tiles.is-falling .ep-tile__intro { display: block; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 680px; font-weight: 400; letter-spacing: -.01em; }
.ep-tiles.is-falling .ep-tile__arrow { width: 56px; height: 56px; font-size: 20px; }
.ep-tiles.is-falling .ep-tile > .ep-tile__badge { top: 28px; left: 28px; font-size: 15px; padding: 8px 16px; }
.ep-fall__dots { position: relative; z-index: 5; display: flex; gap: 8px; margin-top: 30px; }
.ep-fall__dot { width: 8px; height: 8px; border-radius: 8px; background: var(--ep-hair-2); transition: width .3s, background-color .3s; }
.ep-fall__dot.is-active { width: 28px; background: var(--ep-ivory); }
@media (max-width: 767px) {
  .ep-fall { height: calc(var(--n) * 60vh + 100vh); }
  .ep-fall__stage { top: 56px; height: calc(100svh - 56px); }
  .ep-tiles.is-falling { height: min(560px, calc(100svh - 200px)); }
  .ep-tiles.is-falling .ep-tile__body { padding: 26px 22px; gap: 14px; }
  .ep-tiles.is-falling .ep-tile__intro { font-size: 15px; }
  .ep-tiles.is-falling .ep-tile__arrow { width: 46px; height: 46px; }
  .ep-tiles.is-falling .ep-tile > .ep-tile__badge { top: 18px; left: 18px; }
}

/* Step-by-step falling banners (classes set by premium.js) */
.ep-tiles.is-falling .ep-tile { opacity: 0; transform: translateY(60vh); pointer-events: none; }
.ep-tiles.is-falling .ep-tile.st-up,
.ep-tiles.is-falling .ep-tile.st-unfall,
.ep-tiles.is-falling .ep-tile.st-show { opacity: 1; transform: none; pointer-events: auto; z-index: 3; }
.ep-tiles.is-falling .ep-tile.st-up { animation: ep-popup 1s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) both; }
.ep-tiles.is-falling .ep-tile.st-fall { animation: ep-paperfall 1.25s cubic-bezier(.45, 0, .55, 1) both; z-index: 2; }
.ep-tiles.is-falling .ep-tile.st-unfall { animation: ep-paperfall-back 1s cubic-bezier(.45, 0, .55, 1) var(--d, 0s) both; }
.ep-tiles.is-falling .ep-tile.st-sink { animation: ep-sink .7s cubic-bezier(.55, 0, 1, .45) both; z-index: 2; }
@keyframes ep-popup {
  0% { opacity: 0; transform: translateY(55vh) rotateX(14deg) scale(.9); }
  65% { opacity: 1; transform: translateY(-14px) rotateX(0) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
@keyframes ep-paperfall {
  0% { opacity: 1; transform: none; }
  25% { opacity: 1; transform: translate3d(calc(40px * var(--dir)), 10vh, 0) rotateX(-18deg) rotate(calc(5deg * var(--dir))) scale(.98); }
  55% { opacity: .85; transform: translate3d(calc(-36px * var(--dir)), 38vh, 0) rotateX(-42deg) rotate(calc(-7deg * var(--dir))) scale(.94); }
  100% { opacity: 0; transform: translate3d(calc(28px * var(--dir)), 85vh, 0) rotateX(-65deg) rotate(calc(12deg * var(--dir))) scale(.88); }
}
@keyframes ep-paperfall-back {
  0% { opacity: 0; transform: translate3d(calc(28px * var(--dir)), 85vh, 0) rotateX(-65deg) rotate(calc(12deg * var(--dir))) scale(.88); }
  45% { opacity: .85; transform: translate3d(calc(-36px * var(--dir)), 38vh, 0) rotateX(-42deg) rotate(calc(-7deg * var(--dir))) scale(.94); }
  75% { opacity: 1; transform: translate3d(calc(40px * var(--dir)), 10vh, 0) rotateX(-18deg) rotate(calc(5deg * var(--dir))) scale(.98); }
  100% { opacity: 1; transform: none; }
}
@keyframes ep-sink {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(50vh) scale(.92); }
}

/* Falling banners: keep the moving layer cheap to render */
.ep-tiles.is-falling .ep-tile { backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-origin: 50% 20%; }
.ep-tiles.is-falling .ep-tile > .ep-tile__badge { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, .45); }
.ep-tiles.is-falling .ep-tile__img { transition: none; }

/* Why choose us: full-section background photo that follows the ring's front card */
.ep-section.has-ringbg { position: relative; isolation: isolate; }
.ep-section.has-ringbg > .container { position: relative; z-index: 1; }
.ep-ringbg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s ease-out;
}
.ep-ringbg.is-on { opacity: 1; transform: scale(1); }
.ep-ringbg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .6) 100%); }
.ep-section.has-ringbg .ep-section__photo { display: none; }
.ep-section.has-ringbg .ep-heading h2, .ep-section.has-ringbg .ep-heading h3 { color: #fff !important; }
.ep-section.has-ringbg .ep-ring__count { color: rgba(255, 255, 255, .85); }
.ep-section.has-ringbg .ep-ring__btn { background: rgba(255, 255, 255, .92); color: #1d1d1f; border-color: transparent; }
.ep-section.has-ringbg .ep-why__media { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .ep-ringbg { transition: opacity .01ms; transform: none; } }

/* Why choose us: photo band behind the ring only (heading + lamp image stay above on the page background) */
.ep-ringzone {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: 64px; margin-bottom: calc(-1 * var(--ep-section));
  padding: 90px 0 80px;
}
.ep-ringzone__inner { position: relative; z-index: 1; max-width: 1230px; margin: 0 auto; padding: 0 15px; }
.ep-ringzone .ep-ring { margin-top: 0; }
.ep-ringzone .ep-ring__count { color: rgba(255, 255, 255, .9); }
.ep-ringzone .ep-ring__btn { background: rgba(255, 255, 255, .92); color: #1d1d1f; border-color: transparent; }
.ep-ringzone .ep-ring__btn:hover { background: #fff; color: #0066cc; }
@media (max-width: 767px) { .ep-ringzone { margin-top: 40px; padding: 56px 0 48px; } }
/* Legal Solutions after the one-time falling sequence: all six banners as a grid, with their text */
.ep-tiles.is-done .ep-tile__intro { display: block; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .85); font-weight: 400; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-tiles.is-done .ep-tile__media { aspect-ratio: 4 / 3.4; }

/* Hero zoom-away on scroll (--hz: 0 at top -> 1 when the hero has scrolled off). Uses the separate
   scale/opacity properties so it layers on top of the slow Ken Burns zoom of each slide. */
@media (prefers-reduced-motion: no-preference) {
  .ep-hero__bg { scale: calc(1 + var(--hz, 0) * .45); }
  .ep-hero__inner { scale: calc(1 + var(--hz, 0) * .22); opacity: calc(1 - var(--hz, 0) * 1.6); will-change: scale, opacity; }
  .ep-hero__overlay { opacity: calc(1 + var(--hz, 0) * .6); }
  .ep-hero__overlay::before { content: ''; position: absolute; inset: 0; background: #000; opacity: calc(var(--hz, 0) * .45); pointer-events: none; }
}
/* Original site images: show them whole, as they were (no cropping) */
.ep-page__feature--orig img, .ep-sidecard--orig img { aspect-ratio: auto !important; height: auto !important; max-height: none; object-fit: contain; filter: none; }
/* Header logo (new wide logo, 66x49): keep its natural shape instead of a square */
.ep-brand__logo { width: auto !important; height: 56px !important; max-width: 90px; object-fit: contain; }
.ep-header.is-shrunk .ep-brand__logo { height: 44px !important; }
@media (max-width: 767px) { .ep-brand__logo { height: 44px !important; } .ep-header.is-shrunk .ep-brand__logo { height: 38px !important; } }
/* Header logo: tall Erfolg Solicitors Ltd logo */
.ep-brand__logo { height: 78px !important; max-width: none; width: auto !important; }
.ep-header.is-shrunk .ep-brand__logo { height: 54px !important; }
@media (max-width: 767px) { .ep-brand__logo { height: 58px !important; } .ep-header.is-shrunk .ep-brand__logo { height: 46px !important; } }
/* Homepage original images: show the why-us / services banners whole (no crop) */
.ep-why__media img, .ep-services__banner img { aspect-ratio: auto !important; object-fit: contain; }
/* Header must fit the taller logo */
.ep-header__inner { min-height: 96px !important; padding-top: 8px; padding-bottom: 8px; }
.ep-header.is-shrunk .ep-header__inner { min-height: 68px !important; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 767px) { .ep-header__inner { min-height: 74px !important; } .ep-header.is-shrunk .ep-header__inner { min-height: 60px !important; } }
.ep-footer__sra { margin: 6px 0 0 !important; font-size: 12.5px; opacity: .9; }
.ep-footer__logo img { width: auto !important; height: 96px; }
/* Official SRA badge (embed from Settings -> Erfolg Footer): same slot and size as the current badge */
.ep-sra-badge { display: inline-block; width: 275px; max-width: 100%; max-height: 163px; }
.ep-sra-badge iframe, .ep-sra-badge img { max-width: 100%; }
/* Legal Solutions tiles: keep the original photos sharp - box matches the photo shape (363x185),
   no extra zoom from the reveal/hover effects, no colour filter */
.ep-tiles .ep-tile__media { aspect-ratio: 363 / 185 !important; }
.ep-tiles .ep-tile__img { filter: none !important; scale: 1 !important; transform: none !important; image-rendering: auto; }
.ep-tiles .ep-tile:hover .ep-tile__img { transform: none !important; }
.ep-tiles .ep-tile__body { padding: 18px 22px; }
.ep-tiles .ep-tile__title { font-size: 20px; }

/* Search results / post lists use the parent's 825px post thumbnails: keep them inside the column on phones */
.post-thumbnail { display: block; max-width: 100%; }
.post-thumbnail img { max-width: 100%; height: auto; }
/* Parent templates (search, 404, image) have no .container around .content-area: give them the site's width and gutters */
#body-holder > .content-area { max-width: 1230px; margin: 0 auto; padding: 32px 15px 48px; }
