/* ============================================================
   NTS Theme — Electronics Product Engineering
   Template: page-electronics-product-engineering.php
   Slug:     /electronics-product-engineering/

   Visual system: precise, technical, editorial.
   Hairline rules and 2px top-border cards instead of heavy
   boxes; tiny tracked micro-labels; tight negative tracking on
   display headings; dark navy technical panels against a pale
   blue body. Brand palette stays NTS navy + teal.
   ============================================================ */

.epe-hero,
.epe-intro,
.epe-paths,
.epe-pillars,
.epe-lifecycle,
.epe-apps,
.epe-project,
.epe-insights,
.epe-enquiry,
.epe-faq,
.epe-cta {
  --epe-ink:      #092B4D;
  --epe-copy:     #4B647A;
  --epe-muted:    #52677d;
  --epe-blue:     #1666AC;
  --epe-teal:     #007A69;
  --epe-mint:     #00C2A8;
  --epe-mint-lt:  #7EE8D8;

  --epe-line:     #E0E9F1;
  --epe-line-2:   #D4E2EC;
  --epe-soft:     #F4F8FC;
  --epe-pale:     #EDF3F8;

  --epe-deep:     #071B31;
  --epe-deep-2:   #0B2639;
  --epe-deep-3:   #0D3346;
  --epe-deep-line:#2F5A6B;

  --epe-max:      1320px;
  --epe-pad:      96px;
  --epe-radius:   10px;
}

/* ── Shared primitives ─────────────────────────────────────── */

.epe-wrap {
  width: min(var(--epe-max), calc(100% - 56px));
  margin-inline: auto;
}

/* In-page anchor targets clear the fixed site header. The JS scroll handler
   uses the header's measured height; this covers keyboard/no-JS jumps. */
.epe-paths,
.epe-pillars,
.epe-apps,
.epe-project,
.epe-insights,
.epe-enquiry,
.epe-faq {
  scroll-margin-top: calc(var(--header-h, 72px) + 16px);
}

.epe-hero *,
.epe-intro *,
.epe-paths *,
.epe-pillars *,
.epe-lifecycle *,
.epe-apps *,
.epe-project *,
.epe-insights *,
.epe-enquiry *,
.epe-faq *,
.epe-cta * {
  box-sizing: border-box;
}

/* Page typography. The section roots keep the scale outside global navigation and footer. */
:where(.epe-hero, .epe-intro, .epe-paths, .epe-pillars, .epe-lifecycle, .epe-apps,
  .epe-project, .epe-insights, .epe-enquiry, .epe-faq, .epe-cta) {
  --epe-type-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --epe-type-h1: 64px;
  --epe-type-h2: 48px;
  --epe-type-h3: 28px;
  --epe-type-subheading: 22px;
  --epe-type-body: 18px;
  --epe-type-faq: 20px;
  --epe-type-action: 16px;
  --epe-type-form: 16px;
  --epe-type-label: 13px;
  --epe-type-regular: 400;
  --epe-type-medium: 500;
  --epe-type-semibold: 600;
  --epe-type-bold: 700;
  --epe-type-body-leading: 1.65;
  --epe-type-paragraph-gap: .9em;
  font-family: var(--epe-type-family);
}

@media (max-width: 1200px) {
  :where(.epe-hero, .epe-intro, .epe-paths, .epe-pillars, .epe-lifecycle, .epe-apps,
  .epe-project, .epe-insights, .epe-enquiry, .epe-faq, .epe-cta) {
    --epe-type-h1: 52px;
    --epe-type-h2: 40px;
    --epe-type-h3: 24px;
    --epe-type-subheading: 20px;
    --epe-type-body: 17px;
    --epe-type-faq: 19px;
  }
}
@media (max-width: 760px) {
  :where(.epe-hero, .epe-intro, .epe-paths, .epe-pillars, .epe-lifecycle, .epe-apps,
  .epe-project, .epe-insights, .epe-enquiry, .epe-faq, .epe-cta) {
    --epe-type-h1: 38px;
    --epe-type-h2: 32px;
    --epe-type-h3: 22px;
    --epe-type-subheading: 19px;
    --epe-type-body: 16px;
    --epe-type-faq: 18px;
    --epe-type-label: 12px;
  }
}
@media (max-width: 480px) {
  .epe-hero { --epe-type-h1: 32px; }
}

:where(.epe-hero, .epe-intro, .epe-paths, .epe-pillars, .epe-lifecycle, .epe-apps,
  .epe-project, .epe-insights, .epe-enquiry, .epe-faq, .epe-cta) :is(h1, h2, h3) {
  font-family: var(--epe-type-family);
  font-weight: var(--epe-type-semibold);
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.epe-hero__title { font-size: var(--epe-type-h1); }
.epe-h2 { font-size: var(--epe-type-h2); }
:where(.epe-hero, .epe-intro, .epe-paths, .epe-pillars, .epe-lifecycle, .epe-apps,
  .epe-project, .epe-insights, .epe-enquiry, .epe-faq, .epe-cta) h3 {
  font-size: var(--epe-type-h3);
  line-height: 1.22;
}

:where(.epe-hero, .epe-intro, .epe-paths, .epe-pillars, .epe-lifecycle, .epe-apps,
  .epe-project, .epe-insights, .epe-enquiry, .epe-faq, .epe-cta) p {
  font-size: var(--epe-type-body);
  font-weight: var(--epe-type-regular);
  line-height: var(--epe-type-body-leading);
}
.epe-hero .epe-hero__lead,
.epe-apps .epe-apps__kicker,
.epe-app__body b,
.epe-project__copy > .epe-project__name {
  font-size: var(--epe-type-subheading);
  font-weight: var(--epe-type-medium);
  line-height: 1.35;
}

.epe-btn,
.epe-textlink,
.epe-path__cta {
  font-family: var(--epe-type-family);
  font-size: var(--epe-type-action);
  font-weight: var(--epe-type-bold);
  line-height: 1.35;
}
.epe-textlink { font-weight: var(--epe-type-semibold); }
.epe-faq__q {
  font-family: var(--epe-type-family);
  font-size: var(--epe-type-faq);
  font-weight: var(--epe-type-medium);
  line-height: 1.4;
}
/* Form labels and controls share one 16px scale */
.epe-field :is(input, select, textarea),
.epe-field label {
  font-family: var(--epe-type-family);
  font-size: var(--epe-type-form);
  line-height: 1.5;
}
.epe-field :is(input, select, textarea) { font-weight: var(--epe-type-regular); }
.epe-field label {
  font-weight: var(--epe-type-semibold);
  letter-spacing: 0;
  text-transform: none;
}

.epe-eyebrow,
.epe-hero__strip p,
.epe-path__index,
.epe-path__delivery b,
.epe-pillar__num,
.epe-timeline__key,
.epe-app__badge,
.epe-tags li,
.epe-boards__index,
.epe-boards__link i,
.epe-boards__caption,
.epe-enquiry__steps :is(b, span),
.epe-enquiry .epe-enquiry__sig {
  font-size: var(--epe-type-label);
  font-weight: var(--epe-type-semibold);
  line-height: 1.45;
}

/* Uppercase section label */
.epe-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--epe-blue);
  letter-spacing: .17em;
  text-transform: uppercase;
}

/* Section display heading */
.epe-h2 {
  margin: 0;
  color: var(--epe-ink);
  letter-spacing: -.035em;
}
.epe-h2 em {
  font-style: normal;
  color: var(--epe-blue);
}
.epe-eyebrow--on-dark { color: var(--epe-mint-lt); }
.epe-h2--on-dark { color: #FFFFFF; }
.epe-h2--on-dark em { color: var(--epe-mint-lt); }

/* Section header: heading left, supporting copy right */
.epe-sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 38px;
}
.epe-sechead > p {
  max-width: 400px;
  margin: 0;
  color: var(--epe-copy);
}

/* Buttons */
.epe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease,
              border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.epe-btn i { font-size: 11px; }
.epe-btn--primary {
  background: var(--epe-mint);
  border-color: var(--epe-mint);
  color: #042A26;
}
.epe-btn--primary:hover {
  transform: translateY(-2px);
  background: #00D9BB;
  border-color: #00D9BB;
  box-shadow: 0 10px 28px rgba(0, 194, 168, .28);
}
.epe-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .34);
  color: #FFFFFF;
}
.epe-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06);
}
.epe-btn--dark {
  background: var(--epe-deep);
  border-color: var(--epe-deep);
  color: #FFFFFF;
}
.epe-btn--dark:hover {
  transform: translateY(-2px);
  background: #0C2A48;
  border-color: #0C2A48;
  box-shadow: 0 10px 26px rgba(9, 43, 77, .22);
}
/* Solid teal action — the page's primary conversion button */
.epe-btn--solid {
  justify-content: center;
  gap: 12px;
  background: var(--epe-teal);
  border-color: var(--epe-teal);
  color: #FFFFFF;
  font-weight: 700;
}
.epe-btn--solid:hover {
  transform: translateY(-2px);
  background: #006458;
  border-color: #006458;
  box-shadow: 0 10px 26px rgba(0, 194, 168, .3);
  color: #FFFFFF;
}
.epe-btn--solid i { font-size: 13px; }

/* Outlined teal secondary — for light panels */
.epe-btn--teal-outline {
  justify-content: center;
  gap: 12px;
  background: transparent;
  border-color: var(--project-teal, var(--epe-teal));
  border-width: 2px;
  color: var(--project-teal, var(--epe-teal));
}
.epe-btn--teal-outline:hover {
  transform: translateY(-2px);
  background: var(--project-teal, var(--epe-teal));
  border-color: var(--project-teal, var(--epe-teal));
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(0, 126, 114, .24);
}
.epe-btn--teal-outline i { font-size: 13px; }

/* Outlined secondary action on dark panels */
.epe-btn--outline {
  justify-content: center;
  gap: 12px;
  background: transparent;
  border-color: rgba(255, 255, 255, .42);
  color: #FFFFFF;
}
.epe-btn--outline:hover {
  transform: translateY(-2px);
  border-color: var(--epe-mint-lt);
  background: rgba(0, 194, 168, .1);
  color: #FFFFFF;
}

.epe-btn--wide { width: 100%; max-width: 280px; }

/* Text link */
.epe-textlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--epe-blue);
  letter-spacing: .02em;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.epe-textlink i { font-size: 10px; }
.epe-textlink:hover { gap: 14px; color: #0E4E87; }
.epe-textlink--on-dark { color: var(--epe-mint-lt); }
.epe-textlink--on-dark:hover { color: #FFFFFF; }

.epe-footnote {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--epe-line);
  color: var(--epe-muted);
}

/* Scroll reveal — theme's .fade-in observer drives .is-visible */
.epe-hero .fade-in,
.epe-intro .fade-in,
.epe-paths .fade-in,
.epe-pillars .fade-in,
.epe-lifecycle .fade-in,
.epe-apps .fade-in,
.epe-project .fade-in,
.epe-insights .fade-in,
.epe-enquiry .fade-in,
.epe-faq .fade-in,
.epe-cta .fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}
.epe-hero .fade-in.is-visible,
.epe-intro .fade-in.is-visible,
.epe-paths .fade-in.is-visible,
.epe-pillars .fade-in.is-visible,
.epe-lifecycle .fade-in.is-visible,
.epe-apps .fade-in.is-visible,
.epe-project .fade-in.is-visible,
.epe-insights .fade-in.is-visible,
.epe-enquiry .fade-in.is-visible,
.epe-faq .fade-in.is-visible,
.epe-cta .fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ── 1. HERO ───────────────────────────────────────────────── */

.epe-hero {
  --epe-hero-navy: #0a2049;
  --epe-hero-teal: #007f81;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h, 72px) + clamp(38px, 3.75vw, 72px)) 0 clamp(38px, 3.5vw, 67px);
  background:
    linear-gradient(#07203a, #07203a) top / 100% var(--header-h, 72px) no-repeat,
    radial-gradient(ellipse at 83% 28%, #d0e7f0 0%, transparent 54%),
    linear-gradient(145deg, #f1f6fa, #e6eef4 68%, #dcebf2);
  color: var(--epe-hero-navy);
}

.epe-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.epe-hero::after {
  inset: auto 0 10% 0;
  height: 24%;
  border-radius: 54% 60% 0 0 / 65% 42% 0 0;
  background: linear-gradient(180deg, #a8cddc, #b2d8e1 37%, #c2dbe4a0 64%, transparent 97%);
  opacity: .64;
  animation: epe-hero-wave 17s ease-in-out infinite alternate;
}

@supports (clip-path: shape(from 0 50%, line to 100% 0, close)) {
  .epe-hero::after {
    border-radius: 0;
    clip-path: shape(from 0 44%, curve to 27% 100% with 10% 44% / 15% 100%,
      curve to 55% 36% with 38% 100% / 42% 33%,
      curve to 75% 73% with 63% 36% / 70% 73%,
      curve to 100% 9% with 83% 73% / 90% 4%,
      line to 100% 100%, line to 0 100%, close);
  }
}

.epe-hero > .epe-wrap {
  width: min(1715px, calc(100% - clamp(32px, 9.7vw, 184px)));
}

.epe-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: center;
  gap: clamp(16px, 1.3vw, 25px);
}

.epe-hero__copy {
  position: relative;
  z-index: 1;
}
.epe-hero .epe-eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 26px);
  margin-bottom: clamp(20px, 1.55vw, 30px);
  color: var(--epe-hero-teal);
  letter-spacing: .012em;
}
.epe-hero .epe-eyebrow::after {
  content: '';
  flex: 0 1 85px;
  min-width: 14px;
  height: 1px;
  background: currentColor;
}
.epe-hero__title {
  margin: 0 0 clamp(20px, 1.65vw, 32px);
  color: var(--epe-hero-navy);
  letter-spacing: -.04em;
}
.epe-hero__title span {
  display: block;
  color: var(--epe-hero-teal);
}
.epe-hero__lead {
  margin: 0 0 clamp(12px, 1vw, 19px);
  color: var(--epe-hero-navy);
  letter-spacing: -.028em;
}
.epe-hero__desc {
  max-width: 65ch;
  margin: 0;
  color: #304368;
}
.epe-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, .9vw, 17px);
  margin-top: clamp(22px, 2vw, 38px);
}
.epe-hero__actions .epe-btn {
  min-height: clamp(48px, 3.65vw, 69px);
  padding: 12px clamp(16px, 1.5vw, 29px);
  gap: clamp(10px, .85vw, 16px);
  letter-spacing: -.035em;
}
.epe-hero__actions .epe-btn i {
  font-size: .9em;
}
.epe-hero__arrow {
  font-size: 1.25em;
  line-height: 1;
}
.epe-hero__actions .epe-btn--primary {
  background: linear-gradient(115deg, #008680, #007577);
  border-color: #007577;
  color: #fff;
}
.epe-hero__actions .epe-btn--primary:hover {
  background: #006b6c;
  border-color: #006b6c;
}
.epe-hero__actions .epe-btn--ghost {
  border-color: var(--epe-hero-navy);
  color: var(--epe-hero-navy);
}
.epe-hero__actions .epe-btn--ghost:hover {
  background: #f3f8fc;
}
.epe-hero__art {
  --epe-hero-stage: clamp(340px, 34vw, 560px);
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.epe-hero__decor {
  position: absolute;
  inset: 0 0 auto;
  height: var(--epe-hero-stage);
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 26% 26% at 72% 28%, #f8fcffab, transparent),
    radial-gradient(ellipse 43% 36% at 47% 62%, #a9d3e443, transparent);
}
.epe-hero__decor::before,
.epe-hero__decor::after {
  content: '';
  position: absolute;
  width: clamp(36px, 6vw, 92px);
  height: clamp(32px, 4.5vw, 67px);
  background-image: radial-gradient(circle, #388b9e63 1px, transparent 1.5px);
  background-size: 9px 9px;
}
.epe-hero__decor::before {
  top: 13%;
  left: 10%;
  mask-image: linear-gradient(135deg, #000, transparent 92%);
}
.epe-hero__decor::after {
  right: 5%;
  bottom: 12%;
  mask-image: linear-gradient(315deg, #000, transparent 92%);
}
.epe-hero__orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, calc(var(--epe-hero-stage) * .94));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid #ffffffde;
  background: radial-gradient(circle, #f8fcff7a, transparent 72%);
}
.epe-hero__orbits::before,
.epe-hero__orbits::after {
  content: '';
  position: absolute;
  inset: 5.5%;
  border-radius: 50%;
  border: 1px dashed #007f813f;
}
.epe-hero__orbits::after {
  inset: 12%;
  border: 1px solid #ffffffb0;
}
.epe-hero__traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #278e9d8a;
  animation: epe-hero-traces 9s ease-in-out infinite alternate;
}
.epe-hero__fallback {
  display: grid;
  place-items: center;
  height: calc(var(--epe-hero-stage) + 88px);
  margin: 0;
}
.epe-hero__fallback img {
  display: block;
  width: auto;
  max-width: 84%;
  max-height: calc(var(--epe-hero-stage) - 32px);
  object-fit: contain;
}
.epe-hero__art .epe-3d__viewer {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.epe-hero__art .epe-3d__stage {
  height: var(--epe-hero-stage);
  background: transparent;
}
.epe-hero__art .epe-3d__controls {
  gap: clamp(4px, .7vw, 12px);
  margin-top: 8px;
  background: #f6fbfdeb;
}
.epe-hero__art .epe-3d__end {
  padding-inline: clamp(8px, 1vw, 16px);
}
.epe-hero__art .epe-3d__play {
  min-width: 64px;
  color: #fff;
  background: #007577;
}
.epe-hero__art .epe-3d__play:hover {
  color: #fff;
  background: #006468;
}
.epe-hero__art .epe-3d__status {
  position: absolute;
  inset: auto 0 10px;
  margin: 0;
  text-align: center;
  font-size: 14px;
}
.epe-hero__art .epe-3d__status:empty { display: none; }

@keyframes epe-hero-wave {
  to { transform: translateY(8%) scaleX(1.04); }
}
@keyframes epe-hero-traces {
  from { opacity: .56; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .epe-hero::after,
  .epe-hero__traces { animation: none; }
}
.epe-hero__strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 26px;
  margin-top: clamp(42px, 4.25vw, 81px);
  padding-top: clamp(17px, 1.32vw, 25px);
  border-top: 1px solid #53678b;
  text-transform: uppercase;
}
.epe-hero__strip p {
  margin: 0;
  color: inherit;
}

@media (max-width: 960px) {
  .epe-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .epe-hero__art {
    --epe-hero-stage: clamp(260px, 75vw, 470px);
    width: min(100%, 640px);
    justify-self: center;
  }
  .epe-hero__strip { margin-top: 30px; }
  .epe-hero::after { opacity: .32; }
}
@media (max-width: 480px) {

  .epe-hero .epe-eyebrow::after { display: none; }
  .epe-hero__actions .epe-btn { width: 100%; }
  .epe-hero__art .epe-3d__controls { gap: 3px; }
  .epe-hero__art .epe-3d__end { padding-inline: 6px; font-size: 12px; }
  .epe-hero__art .epe-3d__play { min-width: 48px; }
}

/* ── 2. PARTNER INTRO ──────────────────────────────────────── */

.epe-intro {
  padding: 60px 0 56px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--epe-line);
}
.epe-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 60px;
  align-items: start;
}
.epe-intro__body p {
  margin: 0 0 var(--epe-type-paragraph-gap);
  color: var(--epe-copy);
}
.epe-intro__body .epe-textlink { margin-top: 8px; }

/* ── 3. TWO PATHWAYS ───────────────────────────────────────── */

.epe-paths {
  padding: 58px 0 54px;
  background: var(--epe-soft);
  border-bottom: 1px solid var(--epe-line);
  scroll-margin-top: 96px;
}
.epe-paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
/* Row-matched cards: index / title / body / delivery / button all line up
   across both columns regardless of copy length. */
.epe-path {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  padding: 28px 26px;
  border: 1px solid var(--epe-line);
  border-top: 2px solid var(--epe-mint);
  border-radius: 0 0 var(--epe-radius) var(--epe-radius);
  background: #FFFFFF;
  transition: transform .2s ease, box-shadow .2s ease;
}
.epe-path:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(9, 43, 77, .09);
}
.epe-path__index {
  display: block;
  color: var(--epe-teal);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.epe-path h3 {
  margin: 20px 0 14px;
  color: var(--epe-ink);
  letter-spacing: -.025em;
}
.epe-path > p {
  margin: 0;
  color: var(--epe-copy);
}
.epe-path__delivery {
  margin: 22px 0 24px;
  padding: 17px 18px;
  border: 1px solid var(--epe-line);
  border-radius: 8px;
  background: var(--epe-pale);
}
.epe-path__delivery b {
  display: block;
  margin-bottom: 7px;
  color: var(--epe-ink);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.epe-path__delivery p {
  margin: 0;
  color: var(--epe-copy);
}
.epe-path__cta {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  text-align: center;
}
.epe-path__cta i { transition: transform .2s ease; }
.epe-path:hover .epe-path__cta i { transform: translateX(4px); }

/* ── 4. ENGINEERING CAPABILITIES ───────────────────────────── */

.epe-pillars {
  padding: 58px 0 56px;
  background: #FFFFFF;
  scroll-margin-top: 84px;
}
.epe-pillars__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.epe-pillar {
  min-width: 0;
  padding-top: 20px;
  border-top: 2px solid #9FD9CF;
}
.epe-pillar__head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.epe-pillar__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #BFE3DB;
  border-radius: 8px;
  background: #F0FAF7;
  color: var(--epe-teal);
  font-size: 13px;
}
.epe-pillar__num {
  color: var(--epe-teal);
  letter-spacing: .06em;
}
.epe-pillar h3 {
  margin: 15px 0 12px;
  color: var(--epe-ink);
  letter-spacing: -.02em;
}
.epe-pillar p {
  margin: 0;
  color: var(--epe-copy);
}

/* ── 5. LIFECYCLE ──────────────────────────────────────────── */

.epe-lifecycle {
  padding: 56px 0 54px;
  background: var(--epe-pale);
  border-top: 1px solid var(--epe-line);
  border-bottom: 1px solid var(--epe-line);
}
/* Horizontal connected timeline — deliberately unlike the bordered cards
   in Engineering Capabilities above, so the two sections read apart. */
.epe-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.epe-timeline__step {
  position: relative;
  min-width: 0;
  padding: 0 14px 0 0;
}
/* Connector runs from this marker to the next one */
.epe-timeline__step::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 38px;
  right: -24px;
  height: 2px;
  background: linear-gradient(90deg, var(--epe-mint) 0%, #BFE3DB 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1) .15s;
}
.epe-timeline__step:last-child::before { display: none; }
.epe-timeline__step.is-visible::before { transform: scaleX(1); }

.epe-timeline__marker {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--epe-mint);
  border-radius: 50%;
  background: var(--epe-mint);
  box-shadow: 0 0 0 5px rgba(0, 194, 168, .14);
}
.epe-timeline__marker b {
  color: var(--epe-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.epe-timeline__key {
  display: block;
  margin: 20px 0 0;
  color: var(--epe-teal);
  font-size: var(--epe-type-label);
  font-weight: var(--epe-type-semibold);
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
}
.epe-timeline h3 {
  margin: 8px 0 10px;
  color: var(--epe-ink);
  letter-spacing: -.02em;
}
.epe-timeline p {
  margin: 0;
  color: var(--epe-copy);
}

/* ── 6. APPLICATIONS ───────────────────────────────────────── */

.epe-apps {
  padding: 58px 0 56px;
  background: linear-gradient(180deg, #FFFFFF 58%, var(--epe-soft) 100%);
}
.epe-sechead--apps { align-items: flex-end; }
.epe-sechead--apps > div:last-child { max-width: 400px; }
.epe-apps__kicker {
  margin: 0 0 8px;
  color: var(--epe-ink);
  letter-spacing: -.01em;
}
.epe-sechead--apps > div:last-child p:last-child {
  margin: 0;
  color: var(--epe-copy);
}

.epe-apps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 20px;
  align-items: stretch;
}
.epe-app {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--epe-line);
  border-radius: var(--epe-radius);
  background: #FFFFFF;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.epe-app:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(9, 43, 77, .1);
}
.epe-app__art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.85;
  background: #0D2C46;
}
.epe-app__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.epe-app__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
  background: rgba(7, 27, 49, .72);
  color: #BBDCE8;
  letter-spacing: .13em;
  text-transform: uppercase;
}
/* Title / kicker / description each occupy their own row so the three
   text blocks line up across every card in the row. */
.epe-app__body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  padding: 20px;
}
.epe-app__body h3 {
  margin: 0 0 12px;
  color: var(--epe-ink);
  letter-spacing: -.025em;
}
.epe-app__body b {
  display: block;
  margin-bottom: 9px;
  color: #29587B;
}
.epe-app__body p {
  margin: 0;
  color: var(--epe-copy);
}

/* ── 7. FEATURED PROJECT ───────────────────────────────────── */

.epe-project {
  --project-navy: #082b47;
  --project-teal: #007e72;
  position: relative;
  isolation: isolate;
  scroll-margin-top: var(--header-h, 72px);
  overflow: hidden;
  padding: clamp(48px, 3.65vw, 72px) 0 clamp(68px, 5vw, 100px);
  background:
    radial-gradient(ellipse at 94% 0%, #dceef7, transparent 52%),
    linear-gradient(125deg, #f2f8fb 22%, #eaf4fa 100%);
  color: var(--project-navy);
}
.epe-project::before,
.epe-project::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.epe-project::before {
  inset: -32% -9% auto auto;
  width: 68%;
  height: 84%;
  border: 3px solid #fff9;
  border-radius: 50%;
  background: linear-gradient(155deg, transparent 55%, #cfe5f159);
  transform: rotate(-25deg);
}
.epe-project::after {
  inset: auto 0 0;
  height: 22%;
  border-radius: 55% 45% 0 0;
  background: linear-gradient(165deg, #c8e2ef, #e6f2f9 85%);
}
@supports (clip-path: shape(from 0 50%, line to 100% 0, close)) {
  .epe-project::after {
    border-radius: 0;
    clip-path: shape(from 0 60%, curve to 26% 104% with 11% 72% / 15% 106%,
      curve to 49% 57% with 35% 103% / 40% 54%,
      curve to 69% 97% with 56% 57% / 61% 97%,
      curve to 100% 12% with 81% 97% / 87% 78%,
      line to 100% 100%, line to 0 100%, close);
  }
}
.epe-project > .epe-wrap {
  width: min(1600px, calc(100% - clamp(32px, 11vw, 195px)));
}
.epe-project__grid {
  display: grid;
  grid-template-columns: minmax(0, 48.5fr) minmax(0, 51.5fr);
  gap: clamp(26px, 4vw, 72px);
  align-items: center;
}
.epe-project__copy .epe-eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(10px, .9vw, 16px);
  margin-bottom: clamp(20px, 1.7vw, 30px);
  color: var(--project-teal);
  letter-spacing: 0;
}
.epe-project__copy .epe-eyebrow::after {
  content: '';
  flex: 0 1 73px;
  height: 1px;
  background: currentColor;
}
.epe-project .epe-h2 {
  color: var(--project-navy);
}
.epe-project__copy > p {
  margin: 0 0 var(--epe-type-paragraph-gap);
  color: #142e49;
}
.epe-project__copy > .epe-project__name {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.25vw, 22px);
  margin: clamp(20px, 1.7vw, 32px) 0 clamp(17px, 1.3vw, 24px);
  color: var(--project-teal);
  letter-spacing: -.035em;
}
.epe-project__name::before {
  content: '';
  flex: 0 0 clamp(4px, .36vw, 7px);
  height: .9em;
  background: currentColor;
}
.epe-project .epe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, .85vw, 15px);
  margin: clamp(22px, 1.85vw, 34px) 0 clamp(24px, 2.15vw, 38px);
  padding: 0;
  list-style: none;
}
.epe-project .epe-tags li {
  padding: .55em 1.15em;
  border: 1px solid #80bec2;
  border-radius: 999px;
  background: #e6f5f7;
  color: var(--project-navy);
}
/* Case-study actions: solid teal primary + outlined secondary, aligned */
.epe-project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 1.8vw, 30px);
}
.epe-project__cta {
  flex: 0 1 auto;
  min-height: 54px;
  padding: .65em 1.5em;
  border-radius: 8px;
  letter-spacing: -.01em;
}

.epe-boards {
  --board-width: 35%;
  margin: 0;
  padding: clamp(16px, 1.7vw, 30px) clamp(16px, 2vw, 36px) clamp(14px, 1.3vw, 24px);
  border: 1px solid #fff;
  border-radius: clamp(16px, 1.5vw, 27px);
  background: linear-gradient(135deg, #f4f9fc, #edf5fa);
  box-shadow: 0 12px 34px #123f5a24, 0 2px 6px #123f5a0b;
}
.epe-boards__item {
  display: grid;
  grid-template-columns: var(--board-width) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.1vw, 38px);
}
/* Board 02 is the wider photograph, so it gets the wider image column */
.epe-boards__item--brain { --board-width: 33%; }
.epe-boards__item--field { --board-width: 52%; }
/* No individual container: the transparent board photographs sit directly
   on the panel, with a soft drop shadow doing the lifting instead. */
.epe-boards__plate {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.epe-boards__plate img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(18, 63, 90, .22));
}
/* Board 02 is shown larger than Board 01, per the approved design */
.epe-boards__item--brain .epe-boards__plate img { max-width: 210px; }
.epe-boards__item--field .epe-boards__plate img { max-width: 360px; }
.epe-boards__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.3vw, 23px);
}
.epe-boards__icon {
  display: grid;
  place-items: center;
  width: clamp(32px, 3.85vw, 69px);
  aspect-ratio: 1;
  border-radius: 23%;
  background: #dcf6f6;
  color: #124f64;
  font-size: clamp(15px, 1.8vw, 32px);
}
.epe-boards__index {
  display: inline-block;
  margin-bottom: .4em;
  padding: .33em .9em;
  border-radius: 999px;
  background: var(--project-teal);
  color: #fff;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.epe-boards__name {
  max-width: 11ch;
  margin: 0;
  color: var(--project-navy);
  letter-spacing: -.04em;
}
.epe-boards__link {
  display: flex;
  align-items: center;
  gap: clamp(4px, .65vw, 12px);
  height: clamp(40px, 3.55vw, 64px);
  margin-left: calc(var(--board-width) / 2 - clamp(6px, .8vw, 15px));
}
.epe-boards__link span {
  position: relative;
  flex: 0 0 2px;
  height: 100%;
  overflow: hidden;
  background: #479f9e;
}
.epe-boards__link span::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 48%;
  background: #d3fffa;
  animation: epe-interboard 3.4s ease-in-out infinite;
}
.epe-boards__link span:nth-child(2)::after { animation-delay: .5s; }
.epe-boards__link span:nth-child(3)::after { animation-delay: 1s; }
.epe-boards__link i {
  position: relative;
  padding: .35em clamp(7px, 1.65vw, 30px);
  border: 1px solid #8dc4c7;
  border-radius: 999px;
  background: #f4fafc;
  color: var(--project-navy);
  font-style: normal;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.epe-boards__link i::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: clamp(4px, .65vw, 12px);
  border-top: 1px solid #8dc4c7;
}
.epe-boards__caption {
  margin: clamp(16px, 1.55vw, 28px) 0 0;
  padding-top: clamp(12px, 1.1vw, 20px);
  border-top: 1px solid #a6bece;
  color: #425e75;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ── Interactive 3D assembly viewer (static figure above is its fallback) ── */
.epe-project .epe-3d__hint {
  margin: 10px 0 0;
  color: #4B647A;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.epe-3d__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #a6bece;
  list-style: none;
}
.epe-3d__legend li { display: flex; align-items: center; gap: 10px; }
.epe-3d__legend b {
  padding: 3px 10px;
  border-radius: 999px;
  background: #007a6e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.epe-3d__legend span { color: #123550; font-size: 16px; font-weight: 600; }
.epe-project .epe-3d__caption {
  margin: 12px 0 0;
  color: #425e75;
  font-size: var(--epe-type-label);
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}
.epe-project .epe-3d__status {
  position: absolute;
  top: 12px;
  right: 14px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #c9dfe9;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #35546c;
  font-size: 13px;
  line-height: 1.4;
}
.epe-project .epe-3d__status:empty { padding: 0; border: 0; background: none; }

@media (max-width: 760px) {
  .epe-3d__legend { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1025px) {
  .epe-project__grid::before {
    content: '';
    position: absolute;
    inset: -8% auto auto 43%;
    z-index: -1;
    width: 40%;
    height: 82%;
    border: 1px dashed transparent;
    border-top-color: #31bfc0;
    border-radius: 50%;
    transform: rotate(-40deg);
    mask-image: linear-gradient(125deg, transparent 14%, #000 39%, transparent 66%);
    pointer-events: none;
  }
}
@media (max-width: 1024px) {
  .epe-project__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .epe-project__art { width: min(100%, 690px); }

}
@media (max-width: 700px) {
  .epe-boards__item--brain { --board-width: 38%; }
  .epe-boards__item--field { --board-width: 56%; }
}
@media (max-width: 460px) {
  .epe-boards__item--brain,
  .epe-boards__item--field { --board-width: 42%; }
  .epe-boards__item--brain .epe-boards__plate img { max-width: 130px; }
  .epe-boards__item--field .epe-boards__plate img { max-width: 100%; }
  .epe-boards__meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .epe-boards__icon { width: 26px; }
  .epe-boards__link i { letter-spacing: .035em; }
}

@keyframes epe-interboard {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(240%); }
}

/* ── 8. ENGINEERING INSIGHTS ───────────────────────────────── */

.epe-insights {
  --insights-navy: #082b47;
  --insights-teal: #007b73;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: var(--header-h, 72px);
  padding: clamp(46px, 4.2vw, 82px) 0 clamp(66px, 6vw, 116px);
  background:
    radial-gradient(ellipse at 66% 38%, #f5fbfe, transparent 56%),
    linear-gradient(125deg, #e7f0f8, #e0f1f8 46%, #ecf5fb);
}
.epe-insights::before,
.epe-insights::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.epe-insights::before {
  inset: -59% -12% auto auto;
  width: 72%;
  height: 114%;
  border-bottom: 3px solid #fff9;
  border-radius: 0 0 45% 80%;
  background: linear-gradient(165deg, transparent 48%, #a2d3e75c);
  transform: rotate(-24deg);
}
.epe-insights::after {
  inset: auto 0 0;
  height: 26%;
  border-radius: 52% 65% 0 0;
  background: linear-gradient(170deg, #abd7ecb0, #d9edf7 82%);
}
@supports (clip-path: shape(from 0 50%, line to 100% 0, close)) {
  .epe-insights::after {
    border-radius: 0;
    clip-path: shape(from 0 44%, curve to 33% 100% with 11% 24% / 21% 100%,
      curve to 58% 50% with 43% 100% / 49% 49%,
      curve to 80% 92% with 67% 50% / 72% 92%,
      curve to 100% 32% with 88% 92% / 95% 47%,
      line to 100% 100%, line to 0 100%, close);
  }
}
/* Standard page content width, matching every other section */
.epe-insights > .epe-wrap {
  width: min(var(--epe-max), calc(100% - 56px));
}
.epe-insights .epe-sechead {
  margin-bottom: clamp(24px, 2.2vw, 40px);
}
.epe-insights .epe-eyebrow {
  margin-bottom: 12px;
  color: var(--insights-teal);
  letter-spacing: .09em;
}
/* Two balanced lines on desktop, reflowing naturally below */
.epe-insights .epe-h2 {
  max-width: 24ch;
  color: var(--insights-navy);
  text-wrap: balance;
}
/* Full-width resource row: transparent, hairline border, no shadow.
   Cover left, then title / description / download button stacked beside it. */
.epe-guide {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 2.8vw, 48px);
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid #C6DCEA;
  border-radius: 8px;
  background: transparent;
}

/* Minimal dark navy book cover, drawn in CSS so it stays crisp.
   The real PDF is untouched and still what the button downloads. */
.epe-guide__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 172 / 220;
  padding: 18px 16px 16px 24px;
  overflow: hidden;
  background: #0E2B3B;
}
.epe-guide__cover::before {            /* teal spine accent */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: #1E9E86;
}
.epe-guide__cover-kicker {
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.epe-guide__cover-title {
  margin-top: 14px;
  color: #FFFFFF;
  font-family: var(--epe-type-family);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.26;
}
.epe-guide__cover-rule {
  width: 34px;
  height: 3px;
  margin-top: auto;
  background: #1E9E86;
}
.epe-guide__cover-foot {
  margin-top: 14px;
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.epe-guide__body { min-width: 0; }
.epe-guide__body h3 {
  margin: 0 0 12px;
  color: var(--insights-navy, var(--epe-ink));
  letter-spacing: -.025em;
}
.epe-guide__body p {
  margin: 0 0 24px;
  max-width: 78ch;
  color: var(--epe-copy);
}
.epe-guide__download {
  min-height: 54px;
  padding: .65em 1.5em;
  border-radius: 8px;
  white-space: nowrap;
}
.epe-guide__download i { font-size: 13px; }

@media (max-width: 760px) {
  .epe-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .epe-guide__cover { width: 150px; }
  .epe-guide__cover-title { font-size: 17px; }
  .epe-guide__download { width: 100%; max-width: 320px; white-space: normal; }
}
/* ── 9. PROJECT ENQUIRY ────────────────────────────────────── */

.epe-enquiry {
  padding: 58px 0 60px;
  background: var(--epe-soft);
  border-top: 1px solid var(--epe-line);
  scroll-margin-top: 84px;
}
.epe-enquiry__grid {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: stretch;          /* both cards share the row height */
}

.epe-enquiry__aside,
.epe-enquiry .epe-form {
  padding: clamp(18px, 2.4vw, 36px);
  border: 1px solid var(--epe-line-2);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(9, 43, 77, .05);
}
/* Column layout so the photograph can absorb any leftover height and the
   two cards finish level, with no dead space above the tagline. */
.epe-enquiry__aside {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(145deg, #fff 12%, #f2f8fc);
}
/* Project photograph, placed beneath the three steps */
.epe-enquiry__visual {
  flex: 1 1 auto;
  display: flex;
  min-height: 210px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid #D4E6EF;
  border-radius: 12px;
  background: #E8F4FA;
}
/* cover crops to fit the card; it never stretches the photograph */
.epe-enquiry__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: center;
}
.epe-enquiry__aside-lead {
  margin: 0;
  color: var(--epe-copy);
}

/* Three steps: minimal teal icon, number, label, hairline dividers */
.epe-enquiry__steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--epe-line);
}
.epe-enquiry__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--epe-line);
}
.epe-enquiry__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #BFE3DB;
  border-radius: 9px;
  background: #F0FAF7;
  color: var(--epe-teal);
  font-size: 13px;
}
.epe-enquiry__step-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.epe-enquiry__steps b {
  flex: 0 0 auto;
  color: var(--epe-teal);
  letter-spacing: .08em;
}
.epe-enquiry__steps .epe-enquiry__step-text > span {
  color: var(--epe-ink);
}
.epe-enquiry__sig {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--epe-line);
  color: #537B99;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Form */
.epe-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  gap: 18px;
  background: #FFFFFF;
}
/* align-content: start keeps the input under its label when a neighbouring
   field in the same row is taller (helper text below it) */
.epe-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.epe-field--project-type {
  padding: clamp(12px, 1.55vw, 22px);
  border: 1px solid #bfd8e9;
  border-radius: 10px;
  background: #eaf4fb;
}
.epe-enquiry .epe-field :is(label, input, select, textarea) {
  font-size: var(--epe-type-action);
}
.epe-field :is(input, select) {
  height: 52px;
}
.epe-field__selected { display: none; }
@media (max-width: 480px) {
  .epe-field__select { position: relative; }
  .epe-field__select:has(.epe-field__selected:not(:empty)) select { color: transparent; }
  .epe-field__select option { color: var(--epe-ink); }
  .epe-field__selected:not(:empty) {
    position: absolute;
    inset: 0 34px 0 14px;
    display: flex;
    align-items: center;
    color: var(--epe-ink);
    font-size: var(--epe-type-action);
    line-height: 1.25;
    pointer-events: none;
  }
}
.epe-field--project-type .epe-field__hint {
  min-height: 3em;
  color: #3c5a72;
  font-size: var(--epe-type-action);
  line-height: 1.5;
}
.epe-field--full { grid-column: 1 / -1; }
.epe-field label {
  color: var(--epe-ink);
  letter-spacing: .01em;
}
.epe-field label b { color: #C2410C; }
.epe-field__opt { color: var(--epe-muted); }
.epe-field input,
.epe-field select,
.epe-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #CFDCE8;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--epe-ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.epe-field textarea { min-height: 132px; resize: vertical; }
.epe-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234B647A' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
  text-overflow: ellipsis;
}
.epe-field input:focus,
.epe-field select:focus,
.epe-field textarea:focus {
  border-color: var(--epe-blue);
  box-shadow: 0 0 0 3px rgba(22, 102, 172, .12);
}
.epe-form.is-validated :invalid {
  border-color: #E07A5F;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, .12);
}
.epe-field__hint,
.epe-form__req {
  margin: 0;
  color: var(--epe-muted);
}
.epe-form__req {
  padding-top: 4px;
  border-top: 1px solid var(--epe-line);
}
.epe-form__req b { color: #C2410C; }

.nts-enquiry-phone input[aria-invalid="true"] {
  border-color: #E07A5F;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, .12);
}

/* Privacy notice */
.epe-form__privacy {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--epe-line);
  color: var(--epe-muted);
  font-size: 14px !important;
  line-height: 1.6 !important;
}
.epe-form__privacy a {
  color: var(--epe-blue);
  font-weight: var(--epe-type-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.epe-form__privacy a:hover { color: #0E4E87; }

.epe-form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.epe-enquiry .epe-btn--primary:disabled,
.epe-enquiry .epe-btn--solid:disabled { opacity: .62; cursor: wait; transform: none; box-shadow: none; }
.epe-form__status {
  margin: 0;
  flex: 1 1 200px;
  min-width: 0;
}
.epe-form__status:empty { flex-basis: 0; }
.epe-form__status.is-loading { color: var(--epe-blue); }
.epe-form__status.is-success {
  padding: 11px 13px;
  border: 1px solid #BFE4D5;
  border-radius: 8px;
  background: #EEF9F5;
  color: #17654C;
}
.epe-form__status.is-error {
  padding: 11px 13px;
  border: 1px solid #F1CDC2;
  border-radius: 8px;
  background: #FFF6F3;
  color: #8A3D2B;
}

/* ── 10. FAQ ───────────────────────────────────────────────── */

.epe-faq {
  padding: 58px 0 60px;
  background: #FFFFFF;
}
.epe-faq__list {
  border-top: 1px solid var(--epe-line);
}
.epe-faq__item { border-bottom: 1px solid var(--epe-line); }
.epe-faq__heading { margin: 0; }
.epe-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 4px;
  border: 0;
  background: none;
  color: var(--epe-ink);
  letter-spacing: -.02em;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.epe-faq__q:hover { color: var(--epe-blue); }
.epe-faq__q i {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--epe-line-2);
  border-radius: 50%;
  background: var(--epe-soft);
  transition: background-color .2s ease, border-color .2s ease, transform .3s ease;
}
.epe-faq__q i::before,
.epe-faq__q i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--epe-teal);
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, background-color .2s ease;
}
.epe-faq__q i::before { width: 10px; height: 1.5px; }
.epe-faq__q i::after  { width: 1.5px; height: 10px; }
.epe-faq__item.is-open .epe-faq__q i {
  background: var(--epe-mint);
  border-color: var(--epe-mint);
  transform: rotate(90deg);
}
.epe-faq__item.is-open .epe-faq__q i::before,
.epe-faq__item.is-open .epe-faq__q i::after { background: #042A26; }
.epe-faq__item.is-open .epe-faq__q i::after { opacity: 0; }

.epe-faq__a {
  padding: 0 4px 24px;
  max-width: 880px;
}
.epe-faq__a p {
  margin: 0;
  color: var(--epe-copy);
}
.epe-faq__a[hidden] { display: none; }

/* ── 11. FINAL CTA ─────────────────────────────────────────── */

.epe-cta {
  padding: 56px 0;
  background:
    radial-gradient(ellipse at 90% 20%, #10404F 0%, rgba(7, 27, 49, 0) 56%),
    linear-gradient(160deg, #081F38 0%, var(--epe-deep) 62%);
  color: #AFC6D6;
}
.epe-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.epe-cta__copy { max-width: 720px; }
.epe-cta__copy p {
  margin: 16px 0 0;
  color: inherit;
}
.epe-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 0 0 auto;
}
.epe-cta__actions .epe-btn { white-space: nowrap; }

/* ── Focus visibility ──────────────────────────────────────── */

.epe-hero :focus-visible,
.epe-intro :focus-visible,
.epe-paths :focus-visible,
.epe-pillars :focus-visible,
.epe-lifecycle :focus-visible,
.epe-apps :focus-visible,
.epe-project :focus-visible,
.epe-insights :focus-visible,
.epe-enquiry :focus-visible,
.epe-faq :focus-visible,
.epe-cta :focus-visible {
  outline: 3px solid var(--epe-mint);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 1600px) {
  .epe-hero,
  .epe-intro,
  .epe-paths,
  .epe-pillars,
  .epe-lifecycle,
  .epe-apps,
  .epe-project,
  .epe-insights,
  .epe-enquiry,
  .epe-faq,
  .epe-cta { --epe-max: 1420px; }
}

@media (max-width: 1200px) {
  .epe-pillars__grid { gap: 18px; }
  .epe-apps__grid { gap: 18px 16px; }
  .epe-app__body { padding: 17px; }

}

@media (max-width: 1024px) {
  .epe-wrap { width: min(var(--epe-max), calc(100% - 44px)); }

  .epe-sechead { flex-direction: column; align-items: flex-start; gap: 18px; }
  .epe-sechead > p { max-width: 640px; }
  .epe-sechead--apps > div:last-child { max-width: 640px; }

  .epe-intro__grid { grid-template-columns: 1fr; gap: 26px; }

  .epe-pillars__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
  .epe-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
  .epe-timeline__step:nth-child(2)::before { display: none; }
  .epe-apps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Stacked: no leftover height to absorb, so the photograph returns to its
     own proportions instead of being held at the fill min-height. */
  .epe-enquiry__grid { grid-template-columns: 1fr; gap: 24px; }
  .epe-enquiry__aside { height: auto; }
  .epe-enquiry__visual { flex: 0 0 auto; min-height: 0; }
  .epe-enquiry__visual img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1100 / 614;
  }

  .epe-cta__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 760px) {
  .epe-wrap { width: calc(100% - 32px); }

  .epe-eyebrow { letter-spacing: .14em; }

  /* Sections */
  .epe-intro,
  .epe-paths,
  .epe-pillars,
  .epe-lifecycle,
  .epe-apps,
  .epe-enquiry,
  .epe-faq { padding: 42px 0; }
  .epe-cta { padding: 46px 0; }


  .epe-paths__grid { grid-template-columns: 1fr; gap: 18px; }
  .epe-path { padding: 24px 20px; }

  .epe-pillars__grid { grid-template-columns: 1fr; gap: 0; }
  .epe-pillar {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 2px 14px;
    padding: 20px 0 22px;
    border-top: 1px solid var(--epe-line);
  }
  .epe-pillar:first-child { border-top: 2px solid #9FD9CF; }
  .epe-pillar__num { grid-row: span 2; padding-top: 4px; }
  .epe-pillar h3 { margin: 0 0 8px; }
  .epe-pillar p { grid-column: 2; }

  /* Timeline becomes vertical: connector runs down the left gutter */
  .epe-timeline { grid-template-columns: 1fr; gap: 0; }
  .epe-timeline__step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0 16px;
    padding: 0 0 26px;
  }
  .epe-timeline__step::before {
    top: 44px;
    bottom: 6px;
    left: 18px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--epe-mint) 0%, #BFE3DB 100%);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1) .15s;
  }
  .epe-timeline__step.is-visible::before { transform: scaleY(1); }
  .epe-timeline__step:last-child { padding-bottom: 0; }
  .epe-timeline__marker { grid-row: 1; grid-column: 1; }
  .epe-timeline__key { grid-column: 2; margin: 0 0 6px; align-self: center; }
  .epe-timeline h3 { grid-column: 2; margin: 0 0 8px; }
  .epe-timeline p { grid-column: 2; }

  .epe-apps__grid { grid-template-columns: 1fr; gap: 18px; }
  .epe-app__art { aspect-ratio: 2; }
  .epe-app__body { padding: 21px; }


  .epe-btn--dark { width: 100%; max-width: 300px; }

  .epe-form { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .epe-form__submit { flex-direction: column; align-items: stretch; }
  .epe-btn--wide { max-width: none; }

  .epe-faq__q { padding: 19px 2px; gap: 16px; }
  .epe-faq__a { padding: 0 2px 20px; }

  .epe-cta__actions { width: 100%; }
  .epe-cta__actions .epe-btn { width: 100%; }
}

/* ── Reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .epe-hero .fade-in,
  .epe-intro .fade-in,
  .epe-paths .fade-in,
  .epe-pillars .fade-in,
  .epe-lifecycle .fade-in,
  .epe-apps .fade-in,
  .epe-project .fade-in,
  .epe-insights .fade-in,
  .epe-enquiry .fade-in,
  .epe-faq .fade-in,
  .epe-cta .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .epe-path,
  .epe-app,
  .epe-btn,
  .epe-textlink { transition: none; }
  .epe-path:hover,
  .epe-app:hover,
  .epe-btn:hover { transform: none; }
  .epe-boards__link span::after { animation: none; }
  /* Timeline connectors draw instantly rather than animating */
  .epe-timeline__step::before { transition: none; transform: none; }
}
