/* ═════════════════════════════════════════════
   v2 — motion layer & interactive widgets
   (loaded after styles.css)
   ═════════════════════════════════════════════ */

/* scroll progress + auto-hiding nav */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--lime)); transform: scaleX(0); transform-origin: left; }
.no-motion .scroll-progress { display: none; }
.nav { transition: transform .45s cubic-bezier(.2,.7,.2,1), background .3s; }
.nav.nav-hidden { transform: translateY(-110%); }
.nav-links a { white-space: nowrap; }

/* split text: masked lines keep Korean descenders */
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }
.has-motion .strip-track { animation: none; will-change: transform; }

/* spotlight that follows the pointer */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(215,255,60,.10), transparent 45%);
  opacity: 0; transition: opacity .35s ease;
}
.spot:hover::before { opacity: 1; }
html[data-theme="light"] .spot::before { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(141,169,0,.12), transparent 45%); }
.has-motion .btn.magnetic { transition: background .2s ease, border-color .2s ease, color .2s ease; }
.has-motion .btn.magnetic:hover { transform: none; }


/* eAI TWINZ: key figures */
.twin-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; }
.twin-stats > div { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-left: 1px solid var(--line); }
.twin-stats > div:first-child { border-left: 0; }
.twin-stats b { font-size: clamp(36px, 4vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--lime); font-variant-numeric: tabular-nums; }
.twin-stats span { font-family: var(--font-kr); font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.twin-stats small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .02em; }

/* eAI TWINZ: feature tour (pinned on desktop) */
.twin-tour { display: grid; grid-template-columns: minmax(280px, .78fr) 1.6fr; gap: 40px; align-items: center; margin-top: 56px; min-height: min(78vh, 760px); }
.tour-steps { display: grid; gap: 6px; }
.tour-step { position: relative; padding: 18px 20px 18px 24px; border-radius: 14px; cursor: pointer; transition: background .35s ease; }
.tour-step::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--line-2); transition: background .35s ease; }
.tour-step h3 { margin: 6px 0 0; font-family: var(--font-kr); font-size: 19px; letter-spacing: -.02em; color: var(--muted); transition: color .35s ease; }
.tour-step p { margin: 0; max-height: 0; overflow: hidden; color: var(--text-2); font-family: var(--font-kr); font-size: 14.5px; line-height: 1.65; opacity: 0; transition: max-height .5s ease, opacity .4s ease, margin .4s ease; }
.tour-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.tour-step:hover h3 { color: var(--text-2); }
.tour-step.active { background: rgba(255,255,255,.045); }
html[data-theme="light"] .tour-step.active { background: rgba(22,25,16,.05); }
.tour-step.active::before { background: var(--lime); }
.tour-step.active .tour-k { color: var(--orange); }
.tour-step.active h3 { color: var(--text); }
.tour-step.active p { max-height: 12em; opacity: 1; margin-top: 8px; }
.tour-stage { min-width: 0; }
.tour-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0d0f; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); }
.tour-frame .shot-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tour-frame .shot-bar em b { color: var(--lime); font-weight: 500; }
.tour-shots { position: relative; aspect-ratio: 16 / 10; background: #0d0d0f; }
.tour-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  opacity: 0; transform: scale(1.04); clip-path: inset(0 0 0 100%);
  transition: opacity .6s ease, transform 1.2s cubic-bezier(.2,.7,.2,1), clip-path .9s cubic-bezier(.65,0,.35,1); }
.tour-shots img.active { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); z-index: 1; }
.tour-progress { height: 3px; background: var(--line); }
.tour-progress i { display: block; height: 100%; background: var(--lime); transform: scaleX(.2); transform-origin: left; transition: transform .3s ease; }
.tour-mobile-copy { display: none; }
.tour-caption { margin: 12px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* eAI TWINZ: ECharts power chart */
.twin-echart { width: 100%; height: 340px; }
.chart-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); font-family: var(--font-kr); }

/* products: Embla carousel */
.product-carousel { margin-top: 40px; }
.embla__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.embla__container { display: flex; touch-action: pan-y pinch-zoom; }
.embla__slide { flex: 0 0 100%; min-width: 0; margin-top: 0; padding: 40px 6px 8px; border-top: 0; transition: opacity .5s ease; }
.embla__slide[aria-hidden="true"] { opacity: .35; }
.embla-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.embla-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 18px; transition: border-color .2s, color .2s, opacity .2s; }
.embla-btn:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.embla-btn:disabled { opacity: .3; cursor: default; }
.embla-dots { display: flex; gap: 8px; }
.embla-dot { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: var(--line-2); transition: background .3s, width .3s; }
.embla-dot[aria-selected="true"] { width: 48px; background: var(--lime); }
.product-index a.active { border-color: var(--lime); background: var(--bg-3); }
.product-index a.active b { color: var(--lime); }

/* references map */
.refs-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 48px; }
.refs-map { position: relative; min-height: 460px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background:
  repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 32px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 32px), var(--bg-2); }
.refs-map-fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.refs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.refs-list li { display: grid; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.refs-list li:hover { border-color: var(--line-2); transform: translateX(3px); }
.refs-list li.active { border-color: var(--lime); background: var(--bg-3); }
.refs-list b { font-family: var(--font-kr); font-size: 18px; letter-spacing: -.02em; }
.refs-list small { color: var(--text-2); font-family: var(--font-kr); font-size: 13.5px; }
.ref-status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.ref-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.ref-status.live { color: var(--lime); }
.ref-status.live::before { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.ref-status.next { color: var(--orange); }
.ref-status.next::before { background: var(--orange); }
.ref-status.hq { color: var(--text); }
.ref-status.hq::before { border-radius: 2px; background: linear-gradient(135deg, #2bb24c 0 50%, var(--orange) 50% 100%); }
.refs-list li.hq { border-style: dashed; }
.refs-list li.hq.active { border-style: solid; }
.ref-marker.flip { flex-direction: row-reverse; }
.ref-marker.hq i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #0c0c0d; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.ref-marker.hq i img { width: 22px; height: 22px; display: block; }
.ref-marker.hq i::after { inset: -5px; color: #ffffff; border-radius: 11px; }
html[data-theme="light"] .ref-marker.hq i { background: #ffffff; border-color: var(--line-2); }
.ref-marker.hq span { border-color: rgba(255,255,255,.35); }
.footer-addr { margin: 14px 0 0; font-style: normal; font-size: 13.5px; line-height: 1.7; color: var(--text-2); font-family: var(--font-kr); }
.footer-addr a:hover { color: var(--lime); }
.refs-note { margin: 14px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ref-marker { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; }
.ref-marker i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #d7ff3c; box-shadow: 0 0 0 4px rgba(215,255,60,.25); }
.ref-marker.next i { background: #f26a21; box-shadow: 0 0 0 4px rgba(242,106,33,.25); }
.ref-marker i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: #d7ff3c; animation: ping 2s ease-out infinite; }
.ref-marker.next i::after { color: #f26a21; }
.ref-marker span { padding: 5px 10px; border-radius: 8px; background: rgba(12,12,13,.86); border: 1px solid rgba(255,255,255,.14); color: #ededE8; font: 600 12.5px var(--font-kr); white-space: nowrap; opacity: .85; transition: opacity .2s, border-color .2s; }
.ref-marker.active span, .ref-marker:hover span { opacity: 1; border-color: #d7ff3c; }
.refs-map .maplibregl-ctrl-group { background: rgba(12,12,13,.8); border: 1px solid rgba(255,255,255,.14); }
.refs-map .maplibregl-ctrl-group button span { filter: invert(1); }
html[data-theme="light"] .refs-map .maplibregl-ctrl-group { background: #fff; border-color: var(--line-2); }
html[data-theme="light"] .refs-map .maplibregl-ctrl-group button span { filter: none; }
html[data-theme="light"] .ref-marker span { background: rgba(255,255,255,.94); color: #20231c; border-color: var(--line-2); }
html[data-theme="light"] .tour-frame, html[data-theme="light"] .tour-shots { background: #e9eae4; }
html[data-theme="light"] .shot-bar { background: #f3f4ef; border-color: var(--line); }
html[data-theme="light"] .shot-bar i { background: #d6d8d0; }
html[data-theme="light"] .shot-bar i:first-child { background: var(--orange); }
html[data-theme="light"] .twin-stats b { color: #7f9800; }

@media (max-width: 999px) {
  .twin-stats { grid-template-columns: repeat(3, 1fr); }
  .twin-stats > div:nth-child(4) { border-left: 0; }
  .twin-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .twin-tour { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
  .tour-stage { order: -1; }
  .tour-steps { order: -2; }                 /* step numbers sit above the screen */
  .tour-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .tour-step { padding: 14px 10px 12px; border-radius: 10px; }
  .tour-step::before { left: 10px; right: 10px; top: 0; bottom: auto; width: auto; height: 2px; }
  .tour-step h3 { font-size: 13.5px; }
  .tour-step p, .tour-step.active p { display: none; }
  .tour-mobile-copy { display: block; margin: 14px 0 0; color: var(--text-2); font-family: var(--font-kr); font-size: 14.5px; line-height: 1.65; min-height: 4.9em; }
  .tour-mobile-copy b { display: block; margin-bottom: 4px; color: var(--text); font-size: 17px; }
  .refs-grid { grid-template-columns: 1fr; }
  .refs-map { min-height: 360px; }
}
@media (max-width: 640px) {
  .twin-stats { grid-template-columns: 1fr 1fr; }
  .twin-stats > div { padding: 20px 18px; }
  .twin-stats > div:nth-child(odd) { border-left: 0; }
  .twin-stats > div:nth-child(4) { border-left: 1px solid var(--line); }
  .twin-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .twin-stats > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .tour-step { padding: 12px 6px 10px; }
  .tour-step .tour-k { font-size: 9px; letter-spacing: .04em; }
  .tour-step h3 { display: none; }
  .twin-echart { height: 280px; }
  .embla__slide { padding-top: 28px; }
  .refs-map { min-height: 300px; }
}

/* ───────── solution chapters: 01 · 02 · 03 read as separate products ───────── */
#energy { --accent: var(--orange); --accent-rgb: 242,106,33; }
#twin   { --accent: var(--lime);   --accent-rgb: 215,255,60; }
#hpc    { --accent: #c9ccc4;       --accent-rgb: 201,204,196; }
html[data-theme="light"] #twin { --accent-rgb: 141,169,0; }
html[data-theme="light"] #hpc  { --accent: #5d6168; --accent-rgb: 93,97,104; }
.section.solution { position: relative; padding-top: 96px; border-top: 1px solid var(--line); }
.section.solution::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; pointer-events: none;
  background: radial-gradient(55% 100% at 12% 0%, rgba(var(--accent-rgb), .10), transparent 70%);
}
.section.solution > .container { position: relative; }
.chapter { position: relative; display: flex; align-items: flex-end; gap: 28px; padding-bottom: 26px; margin-bottom: 72px; border-bottom: 1px solid var(--line-2); }
.chapter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(var(--p, 1)); transform-origin: left; }
.has-motion .chapter::after { transform: scaleX(var(--p, 0)); }
.chapter-no { font-size: clamp(84px, 12vw, 176px); font-weight: 800; line-height: .78; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.6px var(--accent); font-variant-numeric: tabular-nums; }
.chapter-meta { display: grid; gap: 8px; padding-bottom: 6px; min-width: 0; }
.chapter-k { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--accent); }
.chapter-meta b { font-family: var(--font-kr); font-size: clamp(24px, 2.8vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.chapter-tag { margin-left: auto; margin-bottom: 8px; padding: 8px 14px; border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 999px; color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.section.solution .sol-tag b { background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.section.solution .checks li::before { border-color: var(--accent); }

/* left rail: where am I among the three solutions */
.sol-rail { position: fixed; left: 22px; top: 50%; z-index: 40; display: grid; gap: 4px; transform: translate(-16px, -50%); opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.sol-rail.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.sol-rail a { position: relative; display: flex; align-items: center; gap: 12px; padding: clamp(9px, .6vw, 13px) 14px clamp(9px, .6vw, 13px) 18px; border-radius: 12px; color: var(--muted); font-family: var(--font-kr); font-size: clamp(14px, .86vw, 18px); font-weight: 600; transition: color .3s ease, background .3s ease; }
.sol-rail a::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--line-2); transition: background .3s ease; }
.sol-rail b { font-family: var(--mono); font-size: clamp(14px, .86vw, 18px); font-weight: 600; }
.sol-rail span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .4s ease, opacity .3s ease; }
.sol-rail:hover span, .sol-rail a.active span { max-width: 160px; opacity: 1; }
.sol-rail a.active { color: var(--text); background: var(--bg-2); }
.sol-rail a[data-sec="energy"].active::before { background: var(--orange); }
.sol-rail a[data-sec="twin"].active::before { background: var(--lime); }
.sol-rail a[data-sec="hpc"].active::before { background: #c9ccc4; }
html[data-theme="light"] .sol-rail a[data-sec="hpc"].active::before { background: #5d6168; }
@media (max-width: 1359px) { .sol-rail { display: none; } }
@media (max-width: 640px) {
  .chapter { flex-wrap: wrap; gap: 14px 18px; margin-bottom: 48px; }
  .chapter-tag { margin-left: 0; order: 3; }
  .section.solution { padding-top: 72px; }
}

/* ───────── 01 energy: architecture + track record ───────── */
.energy-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.energy-refs article { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
.energy-refs b { font-family: var(--font-kr); font-size: 22px; letter-spacing: -.02em; }
.energy-refs p { margin: 0; color: var(--text-2); font-family: var(--font-kr); font-size: 14.5px; line-height: 1.6; }
.energy-ref-tag { justify-self: start; margin-top: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .45); color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }

/* ───────── 03 HPC: real eAI Forge screen ───────── */
.hpc-shot { min-width: 0; }
.hpc-frame .shot-view img { object-position: top left; }
.hpc-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.hpc-stats > div { display: grid; gap: 4px; padding: 16px 18px; border-left: 1px solid var(--line); }
.hpc-stats > div:first-child { border-left: 0; }
.hpc-stats b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.hpc-stats b small { margin-left: 2px; font-size: 15px; color: var(--muted); }
.hpc-stats span { font-family: var(--font-kr); font-size: 12.5px; color: var(--muted); }
.hpc-caption { margin: 10px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ───────── products: two-screen galleries ───────── */
.shot-view.gallery { overflow: hidden; }
.shot-view.gallery::before { display: none; }
.shot-view.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.shot-view.gallery img.active { opacity: 1; transform: scale(1); }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: var(--bg-2); border-top: 1px solid var(--line); }
.gallery-tabs button { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--font-kr); font-size: 12.5px; transition: color .2s, border-color .2s, background .2s; }
.gallery-tabs button:hover { color: var(--text); }
.gallery-tabs button.active { color: #101204; background: #d7ff3c; border-color: #c6ee2a; }

@media (max-width: 999px) {
  .energy-refs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hpc-stats { grid-template-columns: 1fr 1fr; }
  .hpc-stats > div:nth-child(3) { border-left: 0; }
  .hpc-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ───────── contact: phone + CEO / CTO mail ───────── */
.cta-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin: 40px auto 0; }
.cta-contacts a { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.02); text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.cta-contacts a:hover { border-color: var(--lime); background: var(--bg-3); transform: translateY(-2px); }
.cta-contacts span { font-family: var(--font-kr); font-size: 12.5px; color: var(--muted); }
.cta-contacts b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.footer-addr a { color: inherit; }
@media (max-width: 760px) { .cta-contacts { grid-template-columns: 1fr; } }

/* ───────── hero: labels that ride on the video's scan line (hero.js) ───────── */
.hero-hud { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hud-chip {
  position: absolute; top: 22px; left: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; white-space: nowrap;
  background: rgba(12,12,13,.72); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px);
  transition: opacity .35s ease; will-change: transform;
}
.hud-chip i { width: 6px; height: 6px; border-radius: 50%; }
.hud-twin { color: #d7ff3c; }
.hud-twin i { background: #d7ff3c; box-shadow: 0 0 8px #d7ff3c; }
.hud-real { color: #b9b9b2; }
.hud-real i { background: #f26a21; }
.hud-chip.off { opacity: 0; }
@media (max-width: 640px) { .hud-chip { top: 16px; padding: 5px 10px; font-size: 10px; letter-spacing: .08em; } }

/* ───────── references: site photo over the map ───────── */
.refs-stage { position: relative; display: grid; }
.refs-photo { position: absolute; left: 16px; bottom: 16px; z-index: 3; width: min(46%, 380px); margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); background: #0c0c0d; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .35s ease; pointer-events: none; }
.refs-photo.in { opacity: 1; transform: none; }
.refs-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.refs-photo figcaption { padding: 10px 14px; font: 600 13px var(--font-kr); color: #ededE8; }
html[data-theme="light"] .refs-photo { background: #fff; border-color: var(--line-2); box-shadow: 0 18px 40px -18px rgba(25,32,12,.35); }
html[data-theme="light"] .refs-photo figcaption { color: var(--text); }
@media (max-width: 640px) {
  .refs-photo { position: static; width: 100%; margin-top: 10px; transform: none; }
  .refs-photo[hidden] { display: none; }
}

/* ───────── solution 01: architecture flow (FIELD → DATA → EDGE AI → ACTION) ───────── */
.energy-intro { align-items: end; }
.energy-intro .checks { margin-top: 0; }
.flow { --flow-line: #4f5c1f; --flow-hi: var(--lime); --flow-node: #111213; margin-top: 64px; padding: 28px 28px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 50% 0%, rgba(215,255,60,.05), transparent 60%), var(--bg-2); }
html[data-theme="light"] .flow { --flow-line: #c5cf98; --flow-node: #fff; }
.flow-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 26px; }
.flow-head-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.flow-title { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--accent); }
.flow-sub { font-family: var(--font-kr); font-size: 14.5px; color: var(--text-2); }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 13px var(--font-kr); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.flow-tabs button:hover { color: var(--text); border-color: rgba(215,255,60,.5); }
.flow-tabs button.active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
html[data-theme="light"] .flow-tabs button.active { background: #d7ff3c; border-color: #b9dc1f; color: #101204; }

.flow-stage { position: relative; display: grid; grid-template-columns: minmax(150px, 190px) minmax(170px, 220px) minmax(180px, 230px) minmax(200px, 250px); justify-content: space-between; column-gap: 44px; padding: 34px 4px 8px; }
.flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-wire { fill: none; stroke: var(--flow-line); stroke-width: 1.5; transition: stroke .3s, opacity .3s; }
.flow-wire.arrow { marker-end: url(#flowArrow); }
.flow-wire.dash { stroke-dasharray: 4 5; }
.flow-mk path { fill: var(--flow-line); }
.flow-mk.hi path { fill: var(--flow-hi); }
.flow-wire.hl { stroke: var(--flow-hi); }
.flow-wire.arrow.hl { marker-end: url(#flowArrowHi); }
.flow-stage.focus .flow-wire:not(.hl) { opacity: .28; }
.flow-pkt.data { fill: var(--lime); filter: drop-shadow(0 0 5px var(--lime)); }
.flow-pkt.faint { fill: var(--lime); opacity: .55; }
.flow-pkt.ctrl { fill: var(--orange); filter: drop-shadow(0 0 6px var(--orange)); }
html[data-theme="light"] .flow-pkt.data, html[data-theme="light"] .flow-pkt.faint { fill: #7e9800; filter: none; }

.flow-col { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.flow-k { position: absolute; top: -34px; left: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--muted); }
.flow-node { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--flow-line); border-radius: 8px; background: var(--flow-node); color: var(--text); font-family: var(--font-kr); text-align: left; cursor: pointer; transition: border-color .6s ease, box-shadow .8s ease, opacity .4s ease; }
.flow-node .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(215,255,60,.08); color: var(--lime); }
.flow-node .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flow-node b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.flow-node small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.flow-cat .v { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.flow-cat .txt { min-width: 0; }
.flow-node:hover, .flow-node.hl { border-color: var(--flow-hi); }
.flow-stage.focus .flow-node:not(.hl), .flow-stage.focus .flow-core:not(.hl) { opacity: .38; }
.flow-node.lit { border-color: var(--flow-hi); box-shadow: 0 0 0 1px rgba(215,255,60,.25), 0 0 26px -6px rgba(215,255,60,.55); }

.flow-src { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 20px; min-height: 210px; justify-content: center; background: linear-gradient(160deg, rgba(215,255,60,.09), transparent 70%), var(--flow-node); }
.flow-src .ic { width: 56px; height: 56px; border-radius: 12px; }
.flow-src .ic svg { width: 32px; height: 32px; stroke-width: 1.4; }
.flow-src b { font-size: 20px; letter-spacing: -.02em; margin-top: 4px; }
.flow-src em { font-style: normal; font-size: 11.5px; color: var(--accent); margin-top: 6px; }

.flow-core { flex: none; position: relative; display: grid; place-items: center; align-content: center; gap: 4px; width: 200px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; border: 1.5px solid var(--flow-hi); background: radial-gradient(circle at 50% 40%, rgba(215,255,60,.12), transparent 70%), var(--flow-node); text-align: center; cursor: default; transition: box-shadow .9s ease, opacity .4s ease; }
.flow-core::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed var(--flow-line); animation: flowSpin 30s linear infinite; }
.flow-core img { width: 44px; height: auto; margin-bottom: 4px; }
.flow-core b { font-family: var(--font); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.flow-core small { font: 12px var(--font-kr); color: var(--text-2); }
.flow-core.lit { box-shadow: 0 0 0 6px rgba(215,255,60,.08), 0 0 50px -6px rgba(215,255,60,.55); }
@keyframes flowSpin { to { transform: rotate(360deg); } }
.flow-desk { align-self: center; margin-top: 30px; gap: 10px; padding: 11px 16px; border-color: rgba(215,255,60,.45); text-decoration: none; }
.flow-desk .spark { width: 9px; height: 9px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 10px var(--lime); transform: rotate(45deg); }
.flow-desk small { color: var(--lime); }
html[data-theme="light"] .flow-desk small, html[data-theme="light"] .flow-node .ic { color: #6f8600; }
html[data-theme="light"] .flow-desk .spark { background: #8da900; box-shadow: none; }

.flow-acts { display: grid; gap: 12px; }
.flow-act { padding: 11px 14px; gap: 11px; }
.flow-act .ic { width: 30px; height: 30px; background: transparent; border: 1px solid var(--line-2); color: var(--text-2); }
.flow-act .ic svg { width: 17px; height: 17px; }
.flow-act b { font-size: 13.5px; font-weight: 600; }
.flow-act .res { position: absolute; right: 10px; top: -10px; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 10.5px var(--font-kr); opacity: 0; transform: translateY(4px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; white-space: nowrap; }
.flow-act.fired { border-color: var(--orange); box-shadow: 0 0 0 1px rgba(242,106,33,.3), 0 0 28px -8px rgba(242,106,33,.7); }
.flow-act.fired .ic { color: var(--orange); border-color: rgba(242,106,33,.5); }
.flow-act.fired .res { opacity: 1; transform: none; }
.flow-act.fired.warn .res { background: #e0442a; }

.flow-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.flow-caption { margin: 0; min-height: 1.6em; font: 14px/1.6 var(--font-kr); color: var(--text-2); }
.flow-demo { flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }

/* entrance: columns appear left to right the first time the diagram is seen */
.flow .flow-col, .flow .flow-wires { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.flow.in .flow-col, .flow.in .flow-wires { opacity: 1; transform: none; }
.flow.in [data-col="cats"] { transition-delay: .12s; }
.flow.in [data-col="core"] { transition-delay: .24s; }
.flow.in [data-col="acts"] { transition-delay: .36s; }
.flow.in .flow-wires { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .flow .flow-col, .flow .flow-wires { opacity: 1; transform: none; } .flow-core::before { animation: none; } }

@media (max-width: 1100px) {
  .flow-stage { column-gap: 30px; grid-template-columns: minmax(130px, 170px) minmax(160px, 200px) minmax(160px, 190px) minmax(180px, 220px); }
  .flow-core { width: 168px; }
  .flow-core b { font-size: 19px; }
}
@media (max-width: 899px) {
  .flow { padding: 22px 16px 18px; }
  .flow-stage { grid-template-columns: 1fr; row-gap: 58px; padding: 30px 0 4px; }
  .flow-col { gap: 10px; }
  .flow-k { top: -26px; }
  .flow-src { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 16px; }
  .flow-src .ic { width: 46px; height: 46px; }
  .flow-src b { margin: 0; }
  .flow-src small { flex-basis: auto; }
  .flow-src em { flex-basis: 100%; margin: 0; }
  [data-col="cats"] { display: grid; grid-template-columns: 1fr 1fr; }
  [data-col="cats"] .flow-k { grid-column: 1 / -1; }
  .flow-cat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .flow-cat .txt { width: 100%; }
  .flow-core { width: 160px; }
  .flow-desk { margin-top: 20px; }
  .flow-acts { padding-left: 30px; }
  .flow-foot { flex-direction: column; align-items: flex-start; }
}

/* ───────── eAI Desk: domains (applied / running ones stand out) ───────── */
.product-domains { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 18px 0 0; list-style: none; }
.product-domains li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--muted); font: 600 12.5px var(--font-kr); }
.product-domains li.on { padding: 5px 6px 5px 12px; border: 1px solid rgba(215,255,60,.55); background: linear-gradient(90deg, rgba(215,255,60,.16), rgba(215,255,60,.04)); color: var(--text); box-shadow: 0 0 22px -10px rgba(215,255,60,.8); }
.product-domains li.on i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: domainPing 2.2s ease-out infinite; }
.product-domains li.on small { padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 800 11px var(--font-kr); }
.product-domains li.run { border-color: rgba(242,106,33,.55); background: linear-gradient(90deg, rgba(242,106,33,.16), rgba(242,106,33,.04)); box-shadow: 0 0 22px -10px rgba(242,106,33,.8); }
.product-domains li.run i { background: var(--orange); animation-name: domainPingO; }
.product-domains li.run small { background: var(--orange); color: #fff; }
.product-domains li.more { border: 0; padding-left: 4px; color: var(--text-2); font-weight: 500; }
.product-domains li.more::before { content: "+"; margin-right: 2px; color: var(--lime); font-weight: 800; }
@keyframes domainPing { 0% { box-shadow: 0 0 0 0 rgba(215,255,60,.6); } 100% { box-shadow: 0 0 0 8px rgba(215,255,60,0); } }
@keyframes domainPingO { 0% { box-shadow: 0 0 0 0 rgba(242,106,33,.6); } 100% { box-shadow: 0 0 0 8px rgba(242,106,33,0); } }
html[data-theme="light"] .product-domains li.on small { background: #d7ff3c; color: #101204; }
html[data-theme="light"] .product-domains li.on { border-color: rgba(141,169,0,.55); }
html[data-theme="light"] .product-domains li.run small { background: var(--orange); color: #fff; }
@media (max-width: 1080px) { .energy-refs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .energy-refs { grid-template-columns: 1fr; } }

/* ───────── phones: a shorter page ─────────
   .m-hide drops a block on phones (repeated or desktop-only copy); .m-only shows a short phone version. */
.m-only { display: none; }
.tour-k b { font-weight: inherit; }
.tour-k em { font-style: normal; }
@media (max-width: 640px) {
  .m-hide { display: none !important; }
  .m-only { display: inline; }
  .announce a { padding: 8px 0; }
  /* tour: just the step numbers, big enough to tap */
  .tour-step { padding: 14px 4px 12px; text-align: center; }
  .tour-step .tour-k { font-size: 0; letter-spacing: 0; }
  .tour-step .tour-k b { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
  .tour-step .tour-k em { display: none; }
  /* carousel dots: thin bars with a taller touch area */
  .embla-dot { position: relative; }
  .embla-dot::after { content: ""; position: absolute; inset: -14px -4px; }
  .footer-cols a { padding: 5px 0; }
  .cta-contacts a { padding-block: 4px; }
}

/* ───────── phones: controls above the content they switch, compact solution-01 steps ───────── */
.flow-mini { display: none; }
@media (max-width: 640px) {
  .product-carousel { display: flex; flex-direction: column; }
  .product-carousel .embla-controls { order: -1; margin: 0 0 6px; }
  .product-shot { display: flex; flex-direction: column; }
  .product-shot .shot-bar { order: -2; }
  .product-shot .gallery-tabs { order: -1; border-top: 0; border-bottom: 1px solid var(--line); }

  .flow-mini { display: grid; gap: 0; list-style: none; margin: 40px 0 0; padding: 0; counter-reset: none; }
  .flow-mini li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 0 0 22px; }
  .flow-mini li:last-child { padding-bottom: 0; }
  .flow-mini li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 2px; width: 1px; background: linear-gradient(var(--lime), rgba(215,255,60,.15)); }
  .flow-mini li:last-child::before { display: none; }
  .flow-mini span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(215,255,60,.55); color: var(--lime); font: 600 13px var(--mono); background: var(--bg-2); }
  .flow-mini li.act span { border-color: rgba(242,106,33,.7); color: var(--orange); }
  .flow-mini b { display: block; margin-top: 2px; font: 700 16px var(--font-kr); letter-spacing: -.01em; }
  .flow-mini p { margin: 4px 0 0; color: var(--text-2); font: 14px/1.55 var(--font-kr); }
  .flow-mini em { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--lime); background: var(--lime-soft); border: 1px solid rgba(215,255,60,.35); }
  html[data-theme="light"] .flow-mini span, html[data-theme="light"] .flow-mini em { border-color: rgba(141,169,0,.45); }
}
@media (max-width: 640px) {
  /* references: no map on phones; the site photo leads the list */
  .refs-photo { margin-top: 0; }
  .refs-grid { margin-top: 32px; gap: 12px; }
}

