.enetech-case-page {
  --enetech-nav-space: calc(114px + env(safe-area-inset-top, 0px));
}

body.kwd-navigation.enetech-case-page:not(.mobile-nav-open) #topbar#topbar {
  position: absolute !important;
}

body.kwd-navigation.elite-detail-page.enetech-case-page #tresc {
  padding-top: var(--enetech-nav-space);
  background: linear-gradient(115deg, #0b1823, #070e15 75%) top / 100% var(--enetech-nav-space) no-repeat;
}

.enetech-case-page .hw-case {
  --hw-ink: #f1f6f3;
  --hw-muted: #afbcb5;
  --hw-accent: #46d49b;
  --hw-line: #a1c4b437;
  color: var(--hw-ink);
  background: #0b100e;
}

.enetech-wrap {
  width: min(1440px, calc(100% - 8vw));
  margin-inline: auto;
}

.enetech-opening {
  padding-block: 12px clamp(28px, 4vw, 58px);
  color-scheme: dark;
  color: #f1f6f3;
  background: #111a16;
}

.enetech-trail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: #a3b3a9;
  font-size: 12px;
}

.enetech-trail a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.enetech-opening__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px 5vw;
  margin-bottom: 20px;
}

.enetech-opening .hw-case__label {
  color: #63d6a8;
}

.enetech-case-page .enetech-opening h1 {
  margin-top: 8px;
  max-width: none;
  color: #f1f6f3;
  font-size: clamp(36px, 3.7vw, 56px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.06em;
}

.enetech-opening__scope > p {
  max-width: 42ch;
  color: #d0dcd5;
  font-size: 14px;
  line-height: 1.5;
}

.enetech-opening__scope dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.4;
}

.enetech-opening__scope dl > div {
  display: flex;
  gap: 6px;
}

.enetech-opening__scope dt {
  color: #8ea798;
}

.enetech-opening__scope dd {
  margin: 0;
}

.hw-case figure.enetech-hero-scene {
  position: relative;
  width: min(100%, calc((100svh - 280px) * 1.7768));
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #8ab59c30;
  border-radius: 7px;
  background: #203429;
}

.enetech-hero-scene a,
.enetech-hero-scene img,
.enetech-service-scene a,
.enetech-service-scene img,
.enetech-browser a,
.enetech-browser img,
.enetech-service__screen a,
.enetech-service__screen img,
.enetech-projects__screen a,
.enetech-projects__screen img {
  display: block;
  width: 100%;
  height: auto;
}

.enetech-home,
.enetech-projects {
  padding-block: clamp(50px, 7vw, 100px) clamp(62px, 9vw, 126px);
  color-scheme: dark;
  color: var(--hw-ink);
  background: #090e0b;
}

.enetech-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 20px 8vw;
  margin-bottom: clamp(28px, 4vw, 54px);
}

.enetech-case-page .enetech-heading {
  font-size: clamp(34px, 4.5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.enetech-section-head h2,
.enetech-service h2 {
  margin-top: 14px;
}

.enetech-section-head p:not(.hw-case__label),
.enetech-service header > p:not(.hw-case__label) {
  max-width: 47ch;
  color: var(--hw-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.enetech-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 24px;
  margin-top: 12px;
  border-bottom: 1px solid var(--hw-accent);
  font-size: 14px;
}

.enetech-browser {
  overflow: hidden;
  border: 1px solid #789f8738;
  border-radius: 9px;
  background: #050b07;
  box-shadow: 0 24px 60px #0005;
}

.enetech-browser__bar,
.enetech-service__bar {
  display: grid;
  align-items: center;
  min-height: 34px;
  padding-inline: 16px;
  border-bottom: 1px solid #8bae9829;
  color: #a5c0af;
  background: #1a2920;
  font-size: 11px;
}

.enetech-browser__bar {
  grid-template-columns: 1fr auto 1fr;
}

.enetech-browser__bar > span:first-child {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #77a58b;
  box-shadow: 9px 0 #77a58b, 18px 0 #77a58b;
}

.enetech-browser__bar > span:last-child,
.enetech-service__bar > span:last-child {
  justify-self: end;
}

.enetech-offer {
  --hw-ink: #213328;
  --hw-muted: #586a60;
  --hw-accent: #167851;
  --hw-line: #2d735333;
  padding-block: clamp(62px, 9vw, 130px);
  color-scheme: light;
  color: var(--hw-ink);
  background: linear-gradient(110deg, #f2f6f1, #dce9de);
}

.enetech-offer .hw-case__label {
  color: #167851;
}

.enetech-offer__layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.enetech-service-index {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.enetech-service-index li {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--hw-line);
}

.enetech-service-index span {
  color: #28865e;
  font-size: 10px;
}

.enetech-service-index strong {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.enetech-offer-screen {
  display: block;
  padding: clamp(12px, 2vw, 26px);
  border: 1px solid #74987e6b;
  border-radius: 8px;
  background: #080e0a;
  box-shadow: 4px 24px 50px #1a442326;
  transform: rotate(-1.7deg);
}

.enetech-ui-crop {
  position: relative;
  overflow: hidden;
}

.enetech-ui-crop img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

/* The original service-card interface is cropped here and opens complete in the gallery. */
.enetech-ui-crop--offer {
  aspect-ratio: 1506 / 950;
}

.enetech-ui-crop--offer img {
  width: 133.67%;
  left: -14.08%;
  top: -82.53%;
}

.hw-case figure.enetech-service-scene {
  width: min(100%, 1120px);
  margin: clamp(42px, 7vw, 95px) auto 0;
  overflow: hidden;
  border: 1px solid #89a58c70;
  border-radius: 8px;
  background: #173a25;
}

.enetech-service {
  padding-block: clamp(70px, 10vw, 145px);
  color-scheme: dark;
  background: linear-gradient(125deg, #10251b, #1f3b2b);
}

.enetech-service__layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
}

.enetech-service header > p:not(.hw-case__label) {
  margin-top: 22px;
}

.enetech-service .hw-case__label {
  color: #79d5a9;
}

.enetech-service__screen {
  overflow: hidden;
  border: 1px solid #8bb59a66;
  border-radius: 9px;
  background: #0a130d;
  box-shadow: 8px 26px 55px #04160c70;
  transform: rotate(2deg);
}

.enetech-service__bar {
  grid-template-columns: 1fr auto;
}

.enetech-projects {
  background: #0a100d;
}

.enetech-projects__screen {
  overflow: hidden;
  border: 1px solid #719b813d;
  border-radius: 9px;
  background: #101b14;
}

.enetech-contact-path {
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  align-items: start;
  gap: 20px clamp(24px, 4vw, 60px);
  margin-top: clamp(40px, 6vw, 86px);
  padding-top: 24px;
  border-top: 1px solid var(--hw-line);
}

.enetech-contact-path h3 {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.enetech-contact-path > p:last-child {
  color: var(--hw-muted);
  font-size: 15px;
  line-height: 1.65;
}

.enetech-end {
  padding-block: clamp(42px, 6vw, 84px);
  color-scheme: light;
  color: #213328;
  background: #e6eee6;
}

.enetech-end__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px 40px;
}

.enetech-end__layout > p {
  font-size: clamp(29px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -.06em;
}

.enetech-end__layout > a:not(.enetech-end__back) {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  background: #176b49;
  font-size: 14px;
}

.enetech-end__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  grid-column: 1 / -1;
  min-height: 40px;
  color: #607468;
  font-size: 12px;
}

body.enetech-case-page:has(#topbar:not(.is-condensed)) .dock {
  visibility: hidden !important;
}

body.enetech-case-page:has(.hw-gallery[open]) {
  overflow: hidden;
}

body.enetech-case-page .hw-gallery {
  --hw-ink: #edf6ff;
  --hw-muted: #b6c4d0;
  --hw-line: #bcd9ef34;
}

body.enetech-case-page .hw-gallery[open],
body.enetech-case-page .hw-gallery[open] * {
  cursor: auto !important;
}

body.enetech-case-page .hw-gallery[open] button,
body.enetech-case-page .hw-gallery[open] button * {
  cursor: pointer !important;
}

body.enetech-case-page:has(.hw-gallery[open]) .kwd-cursor {
  visibility: hidden;
}

@media (max-width: 870px) {
  .enetech-case-page {
    --enetech-nav-space: calc(84px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 760px) {
  .enetech-opening__head,
  .enetech-section-head,
  .enetech-offer__layout,
  .enetech-service__layout,
  .enetech-contact-path,
  .enetech-end__layout {
    grid-template-columns: 1fr;
  }

  .hw-case figure.enetech-hero-scene {
    width: 100%;
  }

  .enetech-opening__head {
    gap: 16px;
  }

  .enetech-offer-screen,
  .enetech-service__screen {
    transform: none;
  }

  .enetech-end__layout > a:not(.enetech-end__back) {
    justify-self: start;
  }

  .enetech-end {
    padding-bottom: 110px;
  }
}
