.epc-page {
  --epc-accent: #ef4f4f;
  --epc-accent-soft: #fff0ee;
  --epc-ink: #241b43;
  --epc-muted: #637083;
  --epc-line: #e7e4ed;
  background: #fff;
  color: var(--epc-ink);
}

.epc-page--home {
  --epc-accent: #e7683f;
  --epc-accent-soft: #fff3ec;
}

.epc-page--industrial-solar {
  --epc-accent: #d8a51c;
  --epc-accent-soft: #fff8dd;
}

.epc-page--thermal {
  --epc-accent: #ec493d;
  --epc-accent-soft: #fff0ee;
}

.epc-page--tea {
  --epc-accent: #91c84a;
  --epc-accent-soft: #f2f8e9;
}

.epc-page--labs {
  --epc-accent: #54c6b1;
  --epc-accent-soft: #ecfaf7;
}

.epc-page--water { --epc-accent: #71cfea; --epc-accent-soft: #edf8fc; }
.epc-page--steam { --epc-accent: #f0ba70; --epc-accent-soft: #fff6e9; }
.epc-media-break--product .epc-media-break__image { background: #fff; }
.epc-media-break--product .epc-media-break__image img { object-fit: contain; height: clamp(320px, 42vw, 540px); padding: 1.5rem; box-sizing: border-box; }
.epc-projects { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--epc-accent-soft); }
.epc-projects__heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.epc-projects__heading h2 { margin: 0 0 .7rem; font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.15; }
.epc-projects__heading p { margin-bottom: 0; }
.epc-projects .epc-eyebrow { color: var(--epc-ink); margin-bottom: .8rem; }
.epc-projects__archive { font-weight: 750; color: var(--epc-ink); text-decoration: underline; text-underline-offset: 4px; }
.epc-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.epc-project-card { min-width: 0; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid var(--epc-line); box-shadow: 0 8px 24px rgba(36,27,67,.06); }
.epc-project-card > a { display: flex; flex-direction: column; height: 100%; color: var(--epc-ink); }
.epc-project-card > a:focus-visible { outline: 3px solid var(--epc-ink); outline-offset: -4px; }
.epc-project-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.epc-project-card__image { aspect-ratio: 8 / 5; overflow: hidden; }
.epc-project-card__image picture { display: block; height: 100%; width: 100%; }
.epc-project-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.epc-project-card__label { color: var(--epc-muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.epc-project-card h3 { margin: .6rem 0 1.5rem; font-size: 1.16rem; line-height: 1.4; overflow-wrap: anywhere; }
.epc-project-card__link { margin-top: auto; font-size: .85rem; font-weight: 750; }
@media (max-width: 980px) { .epc-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .epc-projects__grid { grid-template-columns: 1fr; } }

.epc-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(4rem, 7vw, 6.5rem);
  background: linear-gradient(125deg, #21163f 0%, #31255f 58%, #3b2b72 100%);
  color: #fff;
}

.epc-hero__glow {
  position: absolute;
  width: 44rem;
  height: 44rem;
  right: -16rem;
  top: -23rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 8rem rgba(255, 255, 255, .025), 0 0 0 16rem rgba(255, 255, 255, .018);
  pointer-events: none;
}

.epc-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.epc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin-bottom: 2.4rem;
  color: rgba(255, 255, 255, .62);
  font-size: .75rem;
}

.epc-breadcrumb a { color: rgba(255, 255, 255, .78); }
.epc-breadcrumb a:hover { color: #fff; }

.epc-eyebrow {
  margin: 0 0 1rem;
  color: var(--epc-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.epc-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5.2vw, 5.3rem);
  line-height: .99;
  letter-spacing: -.045em;
}

.epc-hero__subtitle {
  max-width: 710px;
  margin: 1.65rem 0 0;
  color: #fff;
  font-size: clamp(1.14rem, 2vw, 1.46rem);
  line-height: 1.5;
  font-weight: 650;
}

.epc-hero__intro {
  max-width: 680px;
  margin: 1rem 0 0;
  color: #cfc9dc;
  font-size: 1rem;
  line-height: 1.78;
}

.epc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.epc-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .035em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.epc-button:hover { transform: translateY(-2px); }
.epc-button--primary { background: var(--epc-accent); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.epc-button--primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(0, 0, 0, .25); }
.epc-button--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .04); }
.epc-button--ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.epc-hero__visual {
  position: relative;
  min-height: 480px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(8, 4, 23, .35);
}

.epc-hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 13, 47, .88) 100%);
  pointer-events: none;
}

.epc-hero__visual img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; display: block; }
.epc-hero__caption { position: absolute; z-index: 1; left: 1.5rem; bottom: 1.35rem; display: flex; align-items: center; gap: .7rem; color: #fff; font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.epc-hero__caption span { width: 34px; height: 2px; background: var(--epc-accent); }

.epc-fact-strip { position: relative; z-index: 2; margin-top: -1px; background: #f8f7fa; border-bottom: 1px solid var(--epc-line); }
.epc-fact-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.epc-fact { min-height: 120px; padding: 1.8rem clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--epc-line); display: flex; flex-direction: column; justify-content: center; }
.epc-fact:last-child { border-right: 1px solid var(--epc-line); }
.epc-fact strong { color: var(--epc-ink); font-family: var(--font-heading); font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.15; }
.epc-fact span { margin-top: .5rem; color: var(--epc-muted); font-size: .83rem; line-height: 1.45; }

.epc-jump-nav { position: sticky; z-index: 20; top: 0; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--epc-line); box-shadow: 0 8px 26px rgba(36, 27, 67, .05); backdrop-filter: blur(12px); }
.epc-jump-nav__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }
.epc-jump-nav__inner > strong { flex: 0 0 auto; color: var(--epc-ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.epc-jump-nav__links { display: flex; align-items: center; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.epc-jump-nav__links::-webkit-scrollbar { display: none; }
.epc-jump-nav__links a { flex: 0 0 auto; padding: .62rem .82rem; color: #5f6878; border-radius: 5px; font-size: .78rem; font-weight: 700; }
.epc-jump-nav__links a:hover { color: var(--epc-ink); background: var(--epc-accent-soft); }

.epc-content-section { padding: clamp(4.5rem, 8vw, 8rem) 0; scroll-margin-top: 84px; }
.epc-content-section--tint { background: #f8f7fa; }
.epc-prose { max-width: 980px; margin: 0 auto; }
.epc-section-number { display: inline-flex; align-items: center; gap: .65rem; color: var(--epc-accent); font-size: .73rem; font-weight: 900; letter-spacing: .14em; }
.epc-section-number::after { content: ''; width: 44px; height: 2px; background: currentColor; }

.epc-prose h2 { max-width: 870px; margin: .8rem 0 2rem; color: var(--epc-ink); font-size: clamp(2rem, 4.1vw, 3.65rem); line-height: 1.08; letter-spacing: -.035em; }
.epc-prose > p { max-width: 820px; margin: 0 0 1.15rem; color: var(--epc-muted); font-size: 1.06rem; line-height: 1.83; }
.epc-prose p strong { color: var(--epc-ink); }
.epc-prose a { color: #473386; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.epc-subsection { margin: 2rem 0 0; padding: clamp(1.35rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--epc-line); border-top: 3px solid var(--epc-accent); border-radius: 5px; box-shadow: 0 14px 36px rgba(36, 27, 67, .055); scroll-margin-top: 90px; }
.epc-content-section:not(.epc-content-section--tint) .epc-subsection { background: #fbfafc; }
.epc-subsection h3 { margin: 0 0 1rem; color: var(--epc-ink); font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.25; }
.epc-subsection p { margin: 0 0 1rem; color: var(--epc-muted); line-height: 1.78; }
.epc-subsection p:last-child { margin-bottom: 0; }
.epc-subsection--product { display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.epc-subsection__copy { min-width: 0; }
.epc-product-image { margin: 0; padding: 1rem; background: #fff; border: 1px solid var(--epc-line); border-radius: 5px; text-align: center; }
.epc-product-image a { display: block; color: var(--epc-ink); text-decoration: none; border-radius: 3px; }
.epc-product-image a:focus-visible { outline: 3px solid var(--epc-ink); outline-offset: 5px; }
.epc-product-image img { display: block; width: 100%; height: 220px; object-fit: contain; }
.epc-product-image figcaption { padding-top: .8rem; font-size: .8rem; font-weight: 700; line-height: 1.5; }
.epc-product-image figcaption span { display: block; margin-top: .4rem; color: #695184; font-size: .75rem; }
.epc-product-image a:hover span { text-decoration: underline; }

.epc-prose ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.4rem; margin: 1.3rem 0 1.7rem; padding: 0; list-style: none; }
.epc-prose li { position: relative; padding-left: 1.4rem; color: #536071; line-height: 1.65; }
.epc-prose li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--epc-accent); }

.epc-prose blockquote { margin: 2rem 0; padding: 1.5rem 1.7rem; color: var(--epc-ink); background: var(--epc-accent-soft); border-left: 4px solid var(--epc-accent); font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.55; }
.epc-table-wrap { margin: 2rem 0; overflow-x: auto; border: 1px solid var(--epc-line); border-radius: 5px; background: #fff; }
.epc-table-wrap table { width: 100%; min-width: 660px; border-collapse: collapse; }
.epc-table-wrap th { padding: 1rem 1.2rem; color: #fff; background: var(--epc-ink); text-align: left; font-size: .8rem; letter-spacing: .035em; text-transform: uppercase; }
.epc-table-wrap td { padding: 1rem 1.2rem; color: #586477; border-top: 1px solid var(--epc-line); vertical-align: top; line-height: 1.55; }
.epc-table-wrap tr:nth-child(even) td { background: #faf9fb; }

.epc-content-section--glance .epc-prose > p { display: grid; grid-template-columns: minmax(140px, .38fr) 1fr; max-width: none; gap: 1rem; padding: 1rem 0; margin: 0; border-top: 1px solid var(--epc-line); }
.epc-content-section--glance .epc-prose > p strong { font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }
.epc-content-section--faq .epc-subsection { padding: 1.35rem 1.5rem; border-top-width: 1px; }
.epc-content-section--faq .epc-subsection h3 { font-size: 1.12rem; }

.epc-media-break {
  margin: 0;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  background: #21183f;
  color: #fff;
}

.epc-media-break__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, .72fr);
  min-height: 430px;
  overflow: hidden;
  border-radius: 6px;
  background: #31265b;
  box-shadow: 0 28px 65px rgba(9, 5, 24, .27);
}

.epc-media-break--reverse .epc-media-break__image { order: 2; }
.epc-media-break--reverse figcaption { order: 1; }

.epc-media-break__image { min-height: 430px; overflow: hidden; }
.epc-media-break__image img { display: block; width: 100%; height: 100%; min-height: 430px; object-fit: cover; transition: transform .7s ease; }
.epc-media-break:hover .epc-media-break__image img { transform: scale(1.018); }

.epc-media-break figcaption {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.epc-media-break figcaption::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: clamp(2rem, 4vw, 3.5rem);
  width: 42px;
  height: 3px;
  background: var(--epc-accent);
}

.epc-media-break figcaption > span {
  margin-bottom: .8rem;
  color: var(--epc-accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.epc-media-break figcaption > strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.18;
}

.epc-media-break figcaption p {
  margin: 1rem 0 0;
  color: #cbc5d8;
  font-size: .95rem;
  line-height: 1.7;
}

.epc-final-cta { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 0; color: #fff; background: linear-gradient(125deg, #21163f, #382c6e); }
.epc-final-cta::after { content: ''; position: absolute; right: -7rem; top: -11rem; width: 29rem; height: 29rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(255, 255, 255, .025), 0 0 0 10rem rgba(255, 255, 255, .018); }
.epc-final-cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; }
.epc-final-cta h2 { max-width: 780px; margin: .5rem 0 1rem; color: #fff; font-size: clamp(2.1rem, 4.3vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
.epc-final-cta p:not(.epc-eyebrow) { max-width: 700px; margin: 0; color: #cbc5d8; line-height: 1.7; }
.epc-final-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.epc-text-link { color: #fff; font-size: .85rem; font-weight: 750; }
.epc-text-link:hover { color: var(--epc-accent); }

@media (max-width: 980px) {
  .epc-hero__grid { grid-template-columns: 1fr; }
  .epc-hero__content { max-width: 820px; }
  .epc-hero__visual { min-height: 390px; }
  .epc-hero__visual img { min-height: 390px; }
  .epc-final-cta__inner { grid-template-columns: 1fr; align-items: start; }
  .epc-media-break__grid { grid-template-columns: 1.2fr .8fr; }
}

@media (max-width: 720px) {
  .epc-hero { padding-top: 3.5rem; }
  .epc-hero h1 { font-size: clamp(2.45rem, 11vw, 3.55rem); }
  .epc-hero__visual, .epc-hero__visual img { min-height: 300px; }
  .epc-fact-strip__grid { grid-template-columns: 1fr; }
  .epc-fact { min-height: 0; border-left: 0; border-bottom: 1px solid var(--epc-line); }
  .epc-fact:last-child { border-right: 0; border-bottom: 0; }
  .epc-jump-nav__inner { display: block; padding-top: .8rem; padding-bottom: .7rem; }
  .epc-jump-nav__inner > strong { display: block; margin-bottom: .35rem; }
  .epc-prose ul { grid-template-columns: 1fr; }
  .epc-content-section--glance .epc-prose > p { grid-template-columns: 1fr; gap: .25rem; }
  .epc-subsection { padding: 1.25rem; }
  .epc-subsection--product { grid-template-columns: 1fr; }
  .epc-product-image { width: 100%; max-width: 320px; box-sizing: border-box; justify-self: center; }
  .epc-media-break__grid { grid-template-columns: 1fr; min-height: 0; }
  .epc-media-break--reverse .epc-media-break__image,
  .epc-media-break--reverse figcaption { order: initial; }
  .epc-media-break__image,
  .epc-media-break__image img { min-height: 260px; }
  .epc-media-break figcaption { min-height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  .epc-button { transition: none; }
  .epc-media-break__image img { transition: none; }
}
