/* Edition 08 / Original EMS case: manual images, no live or simulated values. */
.energy-case, .energy-case-teaser {
  --energy-ink: var(--navy, #1c2e51);
  --energy-text: var(--text, #526174);
  --energy-accent: var(--cyan, #29ace3);
  --energy-line: #dbe3e9;
  color: var(--energy-ink);
  font-family: inherit;
  background: #fff;
}
.energy-case { padding: clamp(58px, 6.5vw, 92px) 0; scroll-margin-top: 32px; }
.energy-case-wrap { width: min(var(--max, 1360px), calc(100% - var(--gutter, 24px) - var(--gutter, 24px))); margin-inline: auto; }
.energy-case-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "introduction gallery" "steps gallery"; gap: 32px clamp(36px, 5vw, 76px); align-items: start; }
.energy-case-introduction { grid-area: introduction; min-width: 0; }
.energy-case-kicker { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--energy-text); letter-spacing: .025em; }
.energy-case-introduction h2 { margin: 0 0 26px; font-size: clamp(34px, 3.7vw, 53px); line-height: 1.13; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.energy-case-lead { margin: 0; font-size: 20px; line-height: 1.65; color: var(--energy-text); }
.energy-case-steps { grid-area: steps; min-width: 0; }
.energy-case-step + .energy-case-step { margin-top: 25px; }
.energy-case-step h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.4; letter-spacing: -.015em; font-weight: 700; }
.energy-case-step p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--energy-text); }
.energy-case-gallery { grid-area: gallery; min-width: 0; position: sticky; top: 164px; align-self: start; }
.energy-case-tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--energy-line); }
.energy-case-tab { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 10px 0 12px; font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--energy-text); text-decoration: none; }
.energy-case-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--energy-accent); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.energy-case-tab[aria-selected="true"] { color: var(--energy-ink); }
.energy-case-tab[aria-selected="true"]::after { transform: scaleX(1); }
.energy-case-tab:hover { color: var(--cyan-deep, #087ba9); }
.energy-case-static { margin: 13px 0 17px; font-size: 14px; line-height: 1.5; color: var(--energy-text); }
.energy-case-panel { min-width: 0; margin: 0; scroll-margin-top: 125px; }
.energy-case:not([data-energy-case-enhanced]) .energy-case-panel + .energy-case-panel { margin-top: 30px; }
.energy-case[data-energy-case-enhanced] .energy-case-panels { display: grid; }
.energy-case[data-energy-case-enhanced] .energy-case-panel { grid-area: 1 / 1; }
.energy-case[data-energy-case-enhanced] .energy-case-panel[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.energy-case-viewer { display: block; color: var(--energy-ink); text-decoration: none; }
.energy-case-image-surface { display: grid; place-items: center; width: 100%; height: clamp(340px, 32vw, 470px); padding: 10px; box-sizing: border-box; background: #f4f6f7; }
.energy-case-image-surface img { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.energy-case-enlarge-label { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 0 8px; font-size: 16px; line-height: 1.5; }
.energy-case-viewer:hover .energy-case-enlarge-label { color: var(--cyan-deep, #087ba9); text-decoration: underline; text-underline-offset: 4px; }
.energy-case-enlarge-label svg, .energy-case-arrow { flex: none; }
.energy-case-panel figcaption { margin: 0; font-size: 16px; line-height: 1.6; color: var(--energy-text); }
.energy-case-foot { max-width: 92ch; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--energy-line); }
.energy-case-foot p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--energy-text); }
.energy-case-source { display: inline-flex; align-items: baseline; gap: 10px; font-size: 16px; line-height: 1.6; text-decoration: underline; text-underline-offset: 4px; }
.energy-case-source .energy-case-arrow { width: 16px; height: 16px; align-self: center; }
.energy-case-source:hover { color: var(--cyan-deep, #087ba9); }
.energy-case :is(a, button, [tabindex]):focus-visible, .energy-case-teaser a:focus-visible { outline: 2px solid var(--energy-accent); outline-offset: 5px; }

/* Native modal: the existing body:has(dialog[open]) rule owns scroll locking. */
dialog.energy-case-dialog { width: min(1640px, calc(100vw - 40px)); max-width: calc(100vw - 24px); height: min(94dvh, 1160px); max-height: 94dvh; padding: 0; margin: auto; border: 0; color: var(--energy-ink); background: #fff; overflow: hidden; box-sizing: border-box; overscroll-behavior: contain; }
.energy-case-dialog[open] { display: flex; flex-direction: column; animation: energy-case-dialog-in 220ms ease-out; }
.energy-case-dialog::backdrop { background: #0c1d35bf; backdrop-filter: blur(6px); }
.energy-case-dialog-header { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 26px 12px; }
.energy-case-dialog-header p { margin: 0 0 6px; font-size: 14px; line-height: 1.4; color: var(--energy-text); }
.energy-case-dialog-header h3 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }
.energy-case-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--energy-line); border-radius: 50%; color: var(--energy-ink); background: #fff; cursor: pointer; }
.energy-case-close:hover { color: #fff; background: var(--energy-ink); border-color: var(--energy-ink); }
.energy-case-dialog-tools { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; padding: 0 26px 14px; }
.energy-case-zoom { min-height: 42px; border: 1px solid var(--energy-line); border-radius: 2px; padding: 7px 14px; background: #fff; color: var(--energy-ink); font-family: inherit; font-size: 16px; line-height: 1.5; cursor: pointer; }
.energy-case-zoom[aria-pressed="true"] { border-color: var(--energy-ink); background: var(--energy-ink); color: #fff; }
.energy-case-original { display: inline-flex; gap: 9px; align-items: center; font-size: 16px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.energy-case-dialog-viewport { flex: 1 1 auto; display: grid; place-items: center; min-height: 0; min-width: 0; width: 100%; padding: 14px; box-sizing: border-box; overflow: hidden; background: #f3f5f6; overscroll-behavior: contain; }
.energy-case-dialog-viewport img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.energy-case-dialog.energy-case-zoomed .energy-case-dialog-viewport { display: block; overflow: auto; }
.energy-case-dialog.energy-case-zoomed .energy-case-dialog-viewport img { width: var(--energy-case-original-width); height: auto; max-width: none; max-height: none; object-fit: contain; }
.energy-case-dialog-caption { flex: none; max-height: 17dvh; overflow-y: auto; margin: 0; padding: 16px 26px 20px; color: var(--energy-text); font-size: 17px; line-height: 1.55; }
@keyframes energy-case-dialog-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.energy-case-teaser { padding: 30px 0 50px; }
.energy-case-teaser-copy { max-width: 850px; border-top: 1px solid var(--energy-line); padding-top: 26px; }
.energy-case-teaser .energy-case-kicker { margin-bottom: 13px; }
.energy-case-teaser h3 { margin: 0 0 14px; font-size: clamp(25px, 2.6vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -.03em; }
.energy-case-teaser-copy > p:not(.energy-case-kicker) { margin: 0 0 18px; font-size: 20px; line-height: 1.65; color: var(--energy-text); }
.energy-case-teaser-link { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; }
.energy-case-teaser-link:hover { color: var(--cyan-deep, #087ba9); }

@media (max-width: 1050px) {
  .energy-case-layout { column-gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .energy-case-tabs { gap: 4px 18px; }
  .energy-case-tab { font-size: 16px; }
}
@media (max-width: 900px) {
  .energy-case-layout { grid-template-columns: 1fr; grid-template-areas: "introduction" "gallery" "steps"; gap: 30px; }
  .energy-case-gallery { position: static; }
  .energy-case-introduction h2 { font-size: 44px; }
  .energy-case-image-surface { height: 430px; }
  .energy-case-step + .energy-case-step { margin-top: 23px; }
}
@media (max-width: 600px) {
  body:has(.energy-case) .service-subnav .wrap { justify-content: flex-start; gap: 24px; overflow-x: auto; scrollbar-width: thin; }
  body:has(.energy-case) .service-subnav a { flex: 0 0 auto; white-space: nowrap; font-size: 14px; }
  .energy-case { padding: 48px 0; scroll-margin-top: 40px; }
  .energy-case-kicker { font-size: 14px; margin-bottom: 17px; }
  .energy-case-introduction h2 { font-size: clamp(33px, 8.7vw, 42px); line-height: 1.15; margin-bottom: 22px; }
  .energy-case-lead, .energy-case-step p, .energy-case-teaser-copy > p:not(.energy-case-kicker) { font-size: 19px; line-height: 1.6; }
  .energy-case-step h3 { font-size: 20px; }
  .energy-case-tabs { gap: 3px 19px; }
  .energy-case-tab { min-height: 44px; padding: 9px 0 11px; font-size: 16px; }
  .energy-case-image-surface { height: clamp(320px, 90vw, 390px); padding: 7px; }
  .energy-case-static { font-size: 13px; margin: 12px 0 14px; }
  .energy-case-panel figcaption, .energy-case-foot p { font-size: 15px; }
  .energy-case-enlarge-label { font-size: 16px; }
  .energy-case-foot { margin-top: 28px; padding-top: 19px; }
  .energy-case-source { font-size: 15px; }
  dialog.energy-case-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: 94dvh; }
  .energy-case-dialog-header { padding: 17px 15px 10px; gap: 12px; }
  .energy-case-dialog-header h3 { font-size: 22px; }
  .energy-case-dialog-header p { font-size: 12px; max-width: 28ch; }
  .energy-case-dialog-tools { padding: 0 15px 12px; gap: 10px 16px; }
  .energy-case-zoom, .energy-case-original { font-size: 14px; }
  .energy-case-original .energy-case-arrow { width: 17px; height: 17px; }
  .energy-case-dialog-viewport { padding: 7px; }
  .energy-case-dialog-caption { padding: 13px 15px 17px; font-size: 15px; max-height: 20dvh; }
  .energy-case-teaser { padding: 24px 0 38px; }
  .energy-case-teaser h3 { font-size: 26px; }
  .energy-case-teaser-link { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .energy-case-tab::after { transition: none; }
  .energy-case-dialog[open] { animation: none; }
}
