/* EPC shares the site grid but uses a darker, image-led introduction. */
:where(.epc-masthead, .epc-overview, .epc-process, .epc-contract, .epc-checklist, .epc-closing) {
  --epc-deep: var(--navy, #0b1d2b);
  --epc-ink: #142b36;
  --epc-green: var(--blue, #00713b);
  --epc-mint: var(--mint, #91e9bb);
  --epc-offwhite: #f7f9f6;
  --epc-line: #d8e3df;
  --epc-slate: #526971;
  --epc-on-dark: #c0ced3;
}

.epc-masthead {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(24px, 4vw, 54px);
  overflow: hidden;
  color: #f5faf8;
  background:
    radial-gradient(ellipse at 87% 1%, #244450 0%, transparent 60%),
    var(--epc-deep);
}

.epc-masthead::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgb(133 195 181 / 9%) 1px, transparent 1px),
    linear-gradient(rgb(133 195 181 / 9%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(115deg, transparent 18%, #000 75%);
  pointer-events: none;
  content: '';
}

.epc-masthead > .breadcrumb {
  position: relative;
  min-height: 0;
  padding-block: 16px;
  margin-block: 0;
  border-bottom: 1px solid rgb(180 215 207 / 19%);
  color: #b0c5cb;
  background: transparent;
}

.epc-masthead > .breadcrumb :is(a, [aria-current]) { color: #c5d8da; }
.epc-masthead > .breadcrumb a:hover { color: var(--epc-mint); }
.epc-masthead > .breadcrumb .sep { color: #819d9f; }
.epc-masthead a:focus-visible { outline-color: var(--epc-mint); }

.epc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
  padding-block: clamp(32px, 5vw, 76px) clamp(26px, 4vw, 56px);
}

.epc-hero-copy .eyebrow {
  color: var(--epc-mint);
  font-size: 12px;
  letter-spacing: .13em;
}

.epc-hero-copy h1 {
  max-width: 740px;
  margin-top: 16px;
  color: #f5faf8;
  font-size: clamp(38px, 5.45vw, 84px);
  font-weight: 580;
  line-height: .99;
  letter-spacing: -.062em;
  overflow-wrap: anywhere;
}

.epc-hero-copy h1 em {
  color: var(--epc-mint);
  font-style: normal;
}

.epc-hero-copy .lead {
  max-width: 480px;
  margin-top: 22px;
  color: var(--epc-on-dark);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.epc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.epc-hero-actions .btn {
  border-color: var(--epc-mint);
  color: #0b2b21;
  background: var(--epc-mint);
}

.epc-hero-actions .btn:hover {
  border-color: #b6f1db;
  background: #b6f1db;
}

.epc-hero-actions .text-link {
  color: #ebf5f3;
  text-underline-offset: .27em;
}

.epc-hero-actions .text-link:hover {
  color: var(--epc-mint);
  text-decoration: underline;
}

.epc-hero-figure {
  position: relative;
  min-height: clamp(310px, 32vw, 530px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(201 232 225 / 29%);
  border-radius: 4px;
  background: #223d47;
  box-shadow: 0 28px 70px rgb(1 13 22 / 28%);
}

.epc-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}

.epc-hero-figure::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgb(8 24 33 / 68%), transparent 37%);
  pointer-events: none;
  content: '';
}

.epc-hero-figure figcaption {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  left: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-left: 2px solid var(--epc-mint);
  color: #f4fbf8;
  background: rgb(7 25 35 / 80%);
  font-size: 12px;
  line-height: 1.35;
}

.epc-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgb(187 219 217 / 24%);
  border-radius: 4px;
  background: rgb(5 20 28 / 40%);
}

.epc-route > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  min-height: 82px;
  padding: 12px clamp(13px, 2vw, 24px);
  color: #f0f8f5;
  transition: background-color 180ms ease;
}

.epc-route > a + a { border-left: 1px solid rgb(187 219 217 / 24%); }
.epc-route > a:hover { background: #203e48; }

.epc-route-letter {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #3f766e;
  border-radius: 3px;
  color: var(--epc-mint);
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.epc-route-copy { display: grid; gap: 2px; }
.epc-route-copy strong {
  color: inherit;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 640;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.epc-route-copy small { color: #a7c1c3; font-size: 12px; line-height: 1.45; }

.epc-overview { background: #fbfbf7; }

.epc-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 7vw, 100px);
}

.epc-overview-copy { max-width: 600px; }

.epc-overview-copy h2,
.epc-section-heading h2,
.epc-contract h2,
.epc-checklist h2,
.epc-closing h2 {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -.05em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.epc-overview-copy h2 { margin-bottom: 16px; color: var(--epc-ink); }
.epc-overview-copy h2:not(:first-child) { margin-top: 10px; }
.epc-overview-copy p { color: var(--epc-slate); font-size: clamp(16px, 1.45vw, 19px); }
.epc-overview-copy p + p { margin-top: 12px; }

.epc-overview-figure {
  margin: 0;
  border: 1px solid var(--epc-line);
  border-radius: 4px;
  overflow: hidden;
  background: #e7efef;
}

.epc-overview-figure img {
  width: 100%;
  height: clamp(230px, 28vw, 450px);
  object-fit: contain;
}

.epc-overview-figure figcaption {
  padding: 11px 15px;
  border-top: 1px solid var(--epc-line);
  color: var(--epc-slate);
  background: #fff;
  font-size: 13px;
}

.epc-process {
  border-block: 1px solid var(--epc-line);
  color: var(--epc-ink);
  background: var(--epc-offwhite);
}

.epc-section-heading {
  margin-bottom: clamp(24px, 4vw, 44px);
}

.epc-section-heading h2 { max-width: 820px; }
.epc-section-heading p { max-width: 640px; margin-top: 12px; color: var(--epc-slate); }

.epc-process .epc-stage {
  --stage-accent: var(--epc-green);
  --stage-wash: #e6f0ec;
  --stage-stroke: #a9c6bb;
  padding-top: clamp(22px, 4vw, 42px);
  border-top: 1px solid var(--stage-stroke);
}

.epc-process .epc-stage[data-epc-stage='procurement'] {
  --stage-accent: #315671;
  --stage-wash: #e8eff4;
  --stage-stroke: #b1c5d4;
}

.epc-process .epc-stage[data-epc-stage='construction'] {
  --stage-accent: #675135;
  --stage-wash: #f2ede3;
  --stage-stroke: #cfc2ae;
}

.epc-process .epc-stage + .epc-stage { margin-top: clamp(40px, 7vw, 86px); }

.epc-process .epc-stage-summary {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(22px, 5vw, 64px);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.epc-stage-copy { position: relative; padding-left: clamp(0px, 6vw, 84px); }

.epc-stage-tag {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: clamp(45px, 4.6vw, 64px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--stage-stroke);
  border-radius: 3px;
  color: var(--stage-accent);
  background: var(--stage-wash);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 560;
  line-height: 1;
}

.epc-process .epc-stage-copy h3 {
  margin-bottom: 12px;
  color: var(--epc-ink);
  font-size: clamp(28px, 3.3vw, 47px);
  line-height: 1.05;
  letter-spacing: -.048em;
}

.epc-process .epc-stage-copy p { color: var(--epc-slate); }

.epc-process .epc-stage-result {
  padding: 16px 19px;
  border: 1px solid var(--stage-stroke);
  border-left: 3px solid var(--stage-accent);
  border-radius: 3px;
  background: #fff;
}

.epc-process .epc-stage-result strong { color: var(--stage-accent); }
.epc-process .epc-stage-result p { color: var(--epc-slate); }

.epc-process .epc-media { border-color: var(--stage-stroke); border-radius: 4px; }
.epc-process .epc-media-visual { border-bottom-color: var(--stage-stroke); background: #fff; }

.epc-process .epc-media-visual[aria-hidden='true'] {
  color: var(--stage-accent);
  background-color: var(--stage-wash);
  background-image:
    linear-gradient(0deg, rgb(47 101 87 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(47 101 87 / 9%) 1px, transparent 1px);
  background-size: 20px 20px;
}

.epc-process [data-epc-stage='procurement'] .epc-media-visual[aria-hidden='true'] {
  background-image: radial-gradient(rgb(49 86 113 / 19%) 1px, transparent 1px);
  background-size: 15px 15px;
}

.epc-process [data-epc-stage='construction'] .epc-media-visual[aria-hidden='true'] {
  background-image: repeating-linear-gradient(135deg, transparent 0 17px, rgb(103 81 53 / 10%) 17px 18px);
  background-size: auto;
}

.epc-process .epc-media-visual[aria-hidden='true'] svg {
  box-sizing: content-box;
  width: clamp(20px, 3vw, 31px);
  padding: clamp(8px, 1.1vw, 13px);
  border: 1px solid var(--stage-stroke);
  border-radius: 3px;
  background: var(--stage-wash);
}

.epc-process .epc-media figcaption { color: var(--epc-ink); }

.epc-contract {
  color: #f0f8f5;
  background: linear-gradient(130deg, #172f3b, var(--epc-deep) 68%);
}

.epc-contract .eyebrow { color: var(--epc-mint); }
.epc-contract h2 { color: #f0f8f5; }
.epc-contract .spec-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.epc-contract .spec-layout p { color: var(--epc-on-dark); font-size: 16px; }

.epc-contract .spec-table { border-top: 1px solid #3d585f; }
.epc-contract .spec-table :is(th, td) {
  padding: 13px 14px;
  border-color: #3d585f;
  background: transparent;
  overflow-wrap: anywhere;
}
.epc-contract .spec-table th { width: 35%; color: #e9f8f1; }
.epc-contract .spec-table td { color: var(--epc-on-dark); }

.epc-checklist { background: #fbfbf7; }
.epc-checklist h2 { color: var(--epc-ink); }
.epc-checklist .editorial-checklist > div > p { color: var(--epc-slate); }

.epc-checklist .check-list li {
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--epc-line);
  color: var(--epc-ink);
}

.epc-checklist .check-list svg { color: var(--epc-green); }

.epc-closing {
  border-top: 1px solid #c1dace;
  background: #e8f4ec;
}

.epc-closing h2 { color: var(--epc-ink); }
.epc-closing p { color: var(--epc-slate); }
.epc-closing .btn { background: var(--epc-green); }
.epc-closing .btn:hover { background: var(--blue-dark, #005a30); }

@media (max-width: 960px) {
  .epc-hero-grid { gap: 28px; }
  .epc-hero-copy h1 { font-size: clamp(38px, 6.1vw, 58px); }
  .epc-hero-figure { min-height: 320px; }
}

@media (max-width: 800px) {
  .epc-hero-grid,
  .epc-overview-grid,
  .epc-process .epc-stage-summary,
  .epc-contract .spec-layout { grid-template-columns: minmax(0, 1fr); }

  .epc-hero-grid { padding-block: 28px 22px; }
  .epc-hero-copy h1 { max-width: 600px; }
  .epc-hero-copy .lead { max-width: 550px; }
  .epc-hero-figure { min-height: 0; aspect-ratio: 16 / 9; }
  .epc-stage-copy { padding-left: 59px; }
  .epc-route > a { min-height: 72px; }
}

@media (max-width: 520px) {
  .epc-masthead > .breadcrumb { padding-block: 11px; }
  .epc-hero-copy .eyebrow { font-size: 10px; letter-spacing: .105em; }
  .epc-hero-copy h1 { margin-top: 12px; font-size: clamp(36px, 10.4vw, 52px); }
  .epc-hero-copy .lead { margin-top: 15px; }
  .epc-hero-actions { margin-top: 20px; }
  .epc-hero-actions .btn { padding-inline: 16px; }
  .epc-hero-figure { aspect-ratio: 1.45; }
  .epc-hero-image { object-position: 79% center; }
  .epc-route { grid-template-columns: minmax(0, 1fr); }
  .epc-route > a { min-height: 56px; padding-block: 8px; }
  .epc-route > a + a { border-top: 1px solid rgb(187 219 217 / 24%); border-left: 0; }
  .epc-route-letter { width: 33px; font-size: 17px; }
  .epc-route-copy small { font-size: 11px; }
  .epc-process .epc-stage-copy h3 { font-size: clamp(24px, 7.1vw, 33px); }
  .epc-contract .spec-table :is(th, td) { padding: 9px 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .epc-route > a { transition: none; }
}
