/* 전기차 도입 — 사진이 좌우에서 들어와 크기·기울기가 바뀌는 스크롤 장면.
   기존 태양광·전기공사 장면과 선택자를 공유하지 않습니다. */
.evc-scene { position:relative; color:var(--ink,#173d35); background:#fafbf7; }
.evc-anchor { position:absolute; top:0; left:0; width:1px; height:1px; pointer-events:none; }
.evc-sticky { position:relative; padding:95px 6% 70px; isolation:isolate; }
.evc-copy { position:relative; z-index:2; text-align:center; margin:auto; max-width:850px; }
.evc-eyebrow { font:11px/1.5 Arial,sans-serif; letter-spacing:2.2px; margin:0 0 25px; color:#64765e; }
.evc-copy h2 { margin:0 0 25px; font-size:clamp(44px,5.8vw,88px); line-height:1.35; letter-spacing:-.055em; font-weight:500; word-break:keep-all; }
.evc-copy h2 > span { display:block; }
.evc-copy h2 > span:last-child { color:var(--green,#768b58); }
.evc-description { font-size:14px; line-height:1.95; color:#5d6d5c; margin:0; word-break:keep-all; }
.evc-copy .evc-link { display:flex; justify-content:space-between; align-items:center; gap:24px; width:min(100%,260px); margin:25px auto 0; padding:14px 0; border-bottom:1px solid #a3b19b; font-size:12px; line-height:1.8; font-weight:500; }
.evc-link > span { font:22px/1 Arial,sans-serif; }
.evc-photos { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; max-width:1440px; margin:0 auto 60px; }
.evc-photo { margin:0; min-width:0; }
.evc-photo img { display:block; width:100%; height:auto; aspect-ratio:1672/941; object-fit:cover; border-radius:8px; }
.evc-photo figcaption { display:flex; align-items:center; gap:12px; font-size:10px; line-height:1.5; color:#62735c; padding-top:10px; white-space:nowrap; }
.evc-photo figcaption > span { font:9px/1.5 Arial,sans-serif; letter-spacing:1px; }
.evc-foot,.evc-progress { display:none; }

/* JS가 준비되고 기존 main-long.js가 body.motion을 켠 경우에만 붙습니다. */
body.motion .evc-scene.evc-ready { height:340svh; }
body.motion .evc-ready .evc-sticky { position:sticky; top:var(--header,82px); height:calc(100svh - var(--header,82px)); padding:0; overflow:hidden; display:grid; place-items:center; }
body.motion .evc-ready .evc-copy { width:88%; max-width:850px; }
body.motion .evc-ready .evc-photos { position:absolute; inset:0; margin:0; max-width:none; display:block; z-index:1; pointer-events:none; }
body.motion .evc-ready .evc-photo { position:absolute; width:min(24vw,calc((100svh - var(--header,82px)) * .38),360px); will-change:transform; transform-origin:center; }
body.motion .evc-ready .evc-photo--1 { left:4%; top:7%; }
body.motion .evc-ready .evc-photo--2 { right:6%; top:2%; width:min(21vw,calc((100svh - var(--header,82px)) * .34),310px); }
body.motion .evc-ready .evc-photo--3 { left:1%; top:73%; }
body.motion .evc-ready .evc-photo--4 { right:2%; top:77%; width:min(26vw,calc((100svh - var(--header,82px)) * .40),390px); }
body.motion .evc-ready .evc-copy h2 > span { will-change:transform; }
body.motion .evc-ready .evc-foot { position:absolute; z-index:3; inset:auto 4% 20px; display:flex; justify-content:center; align-items:center; font:9px/1.5 Arial,sans-serif; letter-spacing:1.5px; color:#5e7159; pointer-events:none; }
.evc-foot > span:first-child { display:none; }
.evc-foot > span:last-child { font:10px/1.5 Gmarket,sans-serif; letter-spacing:0; }
.evc-foot i { font:16px/1 Arial,sans-serif; margin-left:12px; }
body.motion .evc-ready .evc-progress { display:block; position:absolute; inset:auto 0 0; height:2px; z-index:3; background:#81937522; }
.evc-progress i { display:block; height:100%; background:#819b66; transform:scaleX(0); transform-origin:left; }

@media (max-width:1000px) and (min-width:761px) {
  .evc-copy h2 { font-size:clamp(44px,5.5vw,58px); }
  .evc-description { font-size:12px; }
}
@media (max-height:700px) and (min-width:761px) {
  body.motion .evc-ready .evc-copy h2 { font-size:clamp(40px,4.6vw,62px); margin-bottom:16px; }
  .evc-eyebrow { margin-bottom:16px; }
  .evc-description { font-size:12px; }
  .evc-copy .evc-link { margin-top:16px; padding:10px 0; }
}
@media (max-width:760px) {
  .evc-sticky { padding:60px 6% 65px; }
  .evc-copy h2 { font-size:clamp(31px,9.2vw,56px); letter-spacing:-.055em; line-height:1.45; margin-bottom:20px; }
  .evc-eyebrow { font-size:9px; letter-spacing:1.7px; margin-bottom:20px; }
  .evc-description { font-size:12px; line-height:1.95; }
  .evc-copy .evc-link { width:235px; font-size:11px; margin-top:20px; padding:12px 0; }
  .evc-photos { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 16px; margin-bottom:45px; }
  .evc-photo img { border-radius:6px; }
  .evc-photo figcaption { font-size:8px; gap:8px; padding-top:7px; }
  .evc-photo figcaption > span { font-size:8px; }
  body.motion .evc-scene.evc-ready { height:320svh; }
  body.motion .evc-ready .evc-copy { width:92%; }
  body.motion .evc-ready .evc-photo { width:min(39vw,calc((100svh - var(--header,70px)) * .38)); }
  body.motion .evc-ready .evc-photo--1 { left:3%; top:8%; }
  body.motion .evc-ready .evc-photo--2 { right:3%; top:3%; }
  body.motion .evc-ready .evc-photo--3 { left:1%; top:78%; }
  body.motion .evc-ready .evc-photo--4 { right:1%; top:76%; }
  body.motion .evc-ready .evc-foot { display:none; }
  .evc-foot > span:last-child { font-size:8px; }
}
@media (max-width:760px) and (max-height:700px) {
  body.motion .evc-ready .evc-copy h2 { font-size:clamp(28px,7.8vw,44px); margin-bottom:12px; }
  body.motion .evc-ready .evc-description { font-size:11px; }
  body.motion .evc-ready .evc-eyebrow { margin-bottom:12px; }
  body.motion .evc-ready .evc-copy .evc-link { margin-top:12px; padding:9px 0; }
  body.motion .evc-ready .evc-photo--1 { top:4%; }
  body.motion .evc-ready .evc-photo--2 { top:0; }
  body.motion .evc-ready .evc-photo--3,body.motion .evc-ready .evc-photo--4 { top:81%; }
}
/* CSS-only safety as well as JS: no hidden content when motion is unavailable. */
@media (prefers-reduced-motion:reduce), (max-height:599px) {
  body.motion .evc-scene.evc-ready { height:auto; }
  body.motion .evc-ready .evc-sticky { position:relative; top:auto; height:auto; padding:60px 6%; display:block; overflow:visible; }
  body.motion .evc-ready .evc-photos { position:relative; display:grid; gap:24px; margin:0 auto 45px; }
  body.motion .evc-ready .evc-photo { position:static; width:auto; transform:none!important; }
  body.motion .evc-ready .evc-copy h2 > span { transform:none!important; }
  body.motion .evc-ready .evc-foot,body.motion .evc-ready .evc-progress { display:none; }
}
