/* 전기공사: 세 장의 카드가 순서대로 포개지는 장면 */
.ew-scene { --ew-stack-count:2; --ew-stack-gap:88px; --ew-stack-space:calc(var(--ew-stack-count) * var(--ew-stack-gap)); position:relative; background:#f7f7f2; color:var(--ink,#173d35); font-family:Gmarket,'Malgun Gothic',sans-serif; font-weight:300; }
.ew-scene,.ew-scene * { box-sizing:border-box; }
.ew-anchor { position:absolute; top:0; left:0; width:1px; height:1px; pointer-events:none; }
.ew-sticky { position:relative; padding:64px 4%; }
.ew-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.ew-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 2% 32px; }
.ew-intro .ew-eyebrow { margin:0; font:11px/1.5 Arial,sans-serif; letter-spacing:2.2px; }
.ew-intro .ew-summary { margin:0; font-size:13px; line-height:1.8; color:#576c5b; word-break:keep-all; }
.ew-deck { display:grid; gap:24px; }
.ew-card { position:relative; display:grid; grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr); grid-template-rows:52px 1fr; gap:24px 4%; padding:34px 36px 30px; border-radius:22px; overflow:hidden; }
.ew-card--first { background:#173d35; color:#f1f5ea; }
.ew-card--second { background:#e1e8d7; color:#173d35; }
.ew-card--third { background:#eeeae2; color:#173d35; }
.ew-card-heading { grid-column:1; display:flex; align-items:center; gap:20px; min-width:0; }
.ew-number { font:300 34px/1 Arial,sans-serif; letter-spacing:-1px; }
.ew-card-heading p { margin:0; font-size:15px; font-weight:500; white-space:nowrap; }
.ew-card-tag { margin-left:auto; font:8px/1.5 Arial,sans-serif; letter-spacing:1px; opacity:.7; }
.ew-card-copy { grid-column:1; grid-row:2; align-self:center; padding:0; min-width:0; }
.ew-card-copy h3 { margin:0 0 20px; font-size:clamp(28px,3vw,48px); font-weight:500; letter-spacing:-1.6px; line-height:1.5; word-break:keep-all; }
.ew-card-copy > p { margin:0 0 30px; font-size:15px; line-height:1.95; }
.ew-card--first .ew-card-copy > p { color:#d2ddc9; }
.ew-card--second .ew-card-copy > p { color:#52674f; }
.ew-services { margin:0 0 16px; }
.ew-services > div { padding:12px 0; border-top:1px solid #b6c6a833; }
.ew-services dt { font-size:15px; font-weight:500; line-height:1.6; margin:0 0 4px; }
.ew-services dd { margin:0; font-size:12px; line-height:1.8; word-break:keep-all; }
.ew-card--first .ew-services dd { color:#d2ddc9; }
.ew-card--second .ew-services dd,.ew-card--third .ew-services dd { color:#52674f; }
.ew-card--second .ew-services > div,.ew-card--third .ew-services > div { border-color:#95a58b66; }
.ew-card .ew-link { display:flex; align-items:center; justify-content:space-between; gap:20px; width:min(100%,250px); padding:15px 0; border-bottom:1px solid currentColor; font-size:12px; font-weight:500; line-height:1.8; text-decoration:none; color:inherit; }
.ew-link span { font:22px/1 Arial,sans-serif; }
.ew-card .ew-card-photo { grid-column:2; grid-row:1 / span 2; margin:0; display:flex; flex-direction:column; min-width:0; min-height:0; }
.ew-card-photo img { display:block; width:100%; height:100%; min-height:0; aspect-ratio:4/3; object-fit:cover; object-position:65% center; border-radius:12px; }
.ew-card-photo figcaption { flex:0 0 auto; margin-top:10px; font-size:9px; line-height:1.4; opacity:.7; text-align:right; }
.ew-footer,.ew-progress { display:none; }
body.motion .ew-scene.ew-ready { height:520svh; }
body.motion .ew-ready .ew-sticky { position:sticky; top:var(--header,82px); height:calc(100svh - var(--header,82px)); padding:26px 4% 46px; overflow:hidden; display:flex; flex-direction:column; }
body.motion .ew-ready .ew-intro { flex:0 0 auto; padding-bottom:24px; }
body.motion .ew-ready .ew-deck { position:relative; flex:1; min-height:0; display:block; }
body.motion .ew-ready .ew-card { position:absolute; inset:0 0 auto; height:calc(100% - var(--ew-stack-space)); }
body.motion .ew-ready .ew-card:not(:first-child) { transform:translate3d(0,calc(100% + var(--ew-stack-space) + 100px),0); will-change:transform; }
body.motion .ew-ready .ew-card-photo img { aspect-ratio:auto; flex:1; }
body.motion .ew-ready .ew-footer { display:flex; justify-content:space-between; position:absolute; left:6%; right:6%; bottom:17px; font:9px/1.5 Arial,sans-serif; letter-spacing:1.2px; color:#556b54; }
.ew-footer > span:last-child { font:10px/1.5 Gmarket,sans-serif; letter-spacing:0; }
.ew-footer i { margin-left:15px; font-style:normal; }
body.motion .ew-ready .ew-progress { display:block; position:absolute; bottom:0; left:0; right:0; height:2px; background:#81937522; }
.ew-progress i { display:block; height:100%; background:#819b66; transform:scaleX(0); transform-origin:left; }
@media (max-width:1000px) { .ew-card-tag { display:none; } .ew-card { gap:20px 4%; padding-inline:28px; } .ew-card-copy h3 { font-size:clamp(27px,3.25vw,38px); } }
@media (min-width:761px) and (max-height:800px) {
  .ew-card { padding:20px 26px; grid-template-rows:36px 1fr; gap:14px 4%; }
  .ew-card-copy { padding:0; }
  .ew-card-copy h3 { font-size:clamp(26px,2.4vw,36px); line-height:1.4; margin-bottom:15px; }
  .ew-services { margin-bottom:10px; }
  .ew-services > div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:0 12px; padding:8px 0; }
  .ew-services dt { font-size:12px; margin:0; }
  .ew-services dd { font-size:11px; line-height:1.6; }
  .ew-card .ew-link { padding-block:10px; }
}
@media (min-width:761px) and (max-height:700px) {
  .ew-scene { --ew-stack-gap:60px; }
  body.motion .ew-ready .ew-sticky { padding-top:18px; padding-bottom:32px; }
  body.motion .ew-ready .ew-intro { padding-bottom:14px; }
  .ew-card { padding:16px 22px; grid-template-rows:28px 1fr; gap:10px 4%; }
  .ew-number { font-size:28px; }
  .ew-card-heading p { font-size:13px; }
  .ew-card-copy h3 { font-size:27px; margin-bottom:10px; }
  .ew-services { margin-bottom:8px; }
  .ew-services > div { grid-template-columns:90px minmax(0,1fr); gap:0 8px; padding:4px 0; }
  .ew-card .ew-link { padding-block:6px; }
}
@media (max-width:760px) {
  .ew-scene { --ew-stack-gap:58px; }
  .ew-sticky { padding:50px 5%; }
  .ew-intro { align-items:flex-start; flex-direction:column; gap:12px; padding:0 2% 24px; }
  .ew-intro .ew-eyebrow { font-size:9px; letter-spacing:1.7px; }
  .ew-intro .ew-summary { font-size:12px; line-height:1.8; }
  .ew-intro .ew-summary br { display:none; }
  .ew-card { display:flex; flex-direction:column; gap:18px; padding:22px; border-radius:17px; }
  .ew-card-heading { flex:0 0 auto; gap:14px; height:32px; }
  .ew-number { font-size:27px; }
  .ew-card-heading p { font-size:12px; }
  .ew-card-copy { flex:0 0 auto; width:100%; padding:5px 0 0; }
  .ew-card-copy h3 { font-size:clamp(25px,6.3vw,36px); letter-spacing:-1.2px; margin-bottom:10px; }
  .ew-card-copy > p { font-size:12px; line-height:1.8; margin:0 0 8px; }
  .ew-services { margin:0 0 5px; }
  .ew-services > div { padding:7px 0; }
  .ew-services dt { font-size:13px; line-height:1.5; margin-bottom:2px; }
  .ew-services dd { font-size:11px; line-height:1.6; }
  .ew-card .ew-link { font-size:11px; width:100%; padding-block:9px; }
  .ew-card .ew-card-photo { flex:1; min-height:0; width:100%; }
  .ew-card-photo img { aspect-ratio:16/10; }
  .ew-card-photo figcaption { margin-top:7px; font-size:8px; }
  body.motion .ew-ready .ew-sticky { top:var(--header,70px); height:calc(100svh - var(--header,70px)); padding:20px 5% 35px; }
  body.motion .ew-ready .ew-intro { gap:9px; padding-bottom:17px; }
  body.motion .ew-ready .ew-footer { bottom:12px; left:7%; right:7%; }
  .ew-footer > span:last-child { display:none; }
}
@media (max-width:760px) and (max-height:700px) {
  .ew-scene { --ew-stack-gap:48px; }
  body.motion .ew-ready .ew-sticky { padding-top:13px; padding-bottom:28px; }
  body.motion .ew-ready .ew-intro { padding-bottom:12px; gap:6px; }
  .ew-intro .ew-summary { font-size:10px; }
  .ew-card { padding:16px 19px; gap:10px; }
  .ew-card-heading { height:28px; }
  .ew-card-copy h3 { font-size:25px; margin-bottom:5px; }
  .ew-card-copy > p { font-size:11px; margin-bottom:3px; }
  .ew-card-copy > p br { display:none; }
  .ew-services > div { display:grid; grid-template-columns:86px minmax(0,1fr); gap:0 8px; padding:5px 0; }
  .ew-services dt { font-size:11px; line-height:1.4; margin-bottom:2px; }
  .ew-services dd { font-size:10px; line-height:1.45; }
  .ew-card .ew-link { padding-block:6px; }
}
@media (prefers-reduced-motion:reduce),(max-height:599px) {
  body.motion .ew-scene.ew-ready { height:auto; }
  body.motion .ew-ready .ew-sticky { position:relative; top:auto; height:auto; display:block; overflow:visible; padding:50px 5%; }
  body.motion .ew-ready .ew-deck { display:grid; }
  body.motion .ew-ready .ew-card { position:relative; inset:auto; height:auto; transform:none!important; }
  body.motion .ew-ready .ew-card-photo img { aspect-ratio:4/3; }
  body.motion .ew-ready .ew-footer,body.motion .ew-ready .ew-progress { display:none; }
}
