#scrollstory,
#scrollstory *{
  font-family:"Wanted Sans",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
}

#scrollstory{
  --panel:#0d1218;
  --line:#18202d;
  --ink:#e9edf2;
  --muted:#9aa6b2;
  --title:clamp(38px, 6.8vw, 92px);

  position:relative;
  height:100vh;
  height:100svh;
  overflow:hidden;
  isolation:isolate;
  z-index:20;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.04), transparent 30%),
    linear-gradient(180deg, #090d12 0%, #0b1016 100%);
}

#scrollstory *{
  box-sizing:border-box;
}

#scrollstory .scrollstory__stage{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  width:100%;
  height:100%;
  overflow:hidden;
}

#scrollstory .scrollstory__media{
  position:relative;
  height:100%;
  overflow:hidden;
  background:#000;
}

#scrollstory .scrollstory__img-stack{
  position:relative;
  width:100%;
  height:100%;
}

#scrollstory .scrollstory__figure{
  position:absolute;
  inset:0;
  margin:0;
  opacity:0;
  visibility:hidden;
  transform:scale(1.04);
  will-change:transform, opacity;
}

#scrollstory .scrollstory__figure.is-active{
  opacity:1;
  visibility:visible;
}

#scrollstory .scrollstory__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

#scrollstory .scrollstory__scrim{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.04) 0%,
    rgba(0,0,0,.16) 50%,
    rgba(0,0,0,.34) 100%
  );
}

#scrollstory .scrollstory__content{
  position:relative;
  height:100%;
  background:var(--panel);
  border-left:1px solid #0a0f14;
  overflow:hidden;
  padding-right:72px;
}

#scrollstory .scrollstory__step{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  padding:0 4.2vw;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(28px);
  will-change:transform, opacity;
}

#scrollstory .scrollstory__step.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

#scrollstory .scrollstory__inner{
  width:100%;
  max-width:720px;
}

#scrollstory .scrollstory__eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
}

#scrollstory .scrollstory__dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#cfd7df;
  box-shadow:0 0 0 4px rgba(207,215,223,.14);
}

#scrollstory .scrollstory__title{
  margin:.36em 0 .34em;
  font-size:var(--title);
  line-height:1.02;
  letter-spacing:-.03em;
  font-weight:900;
  color:var(--ink);
}

#scrollstory .scrollstory__rail{
  position:relative;
  width:100%;
  height:1px;
  margin:18px 0 24px;
  background:#1b2433;
}

#scrollstory .scrollstory__rail::after{
  content:"";
  position:absolute;
  left:0;
  top:-1px;
  width:160px;
  height:2px;
  border-radius:999px;
  background:#e7edf5;
}

#scrollstory .scrollstory__desc{
  max-width:62ch;
  color:#b7c3cf;
  font-size:18px;
  line-height:1.72;
}

#scrollstory .scrollstory__desc b{
  color:#f3f6fa;
  font-weight:800;
}

#scrollstory .scrollstory__bullets{
  list-style:none;
  margin:18px 0 0;
  padding:0;
  color:#c4cfdb;
}

#scrollstory .scrollstory__bullets li{
  display:flex;
  gap:10px;
  margin:10px 0;
  line-height:1.68;
}

#scrollstory .scrollstory__bullets li::before{
  content:"▹";
  color:#9aa3ad;
  flex:0 0 auto;
}

#scrollstory .scrollstory__cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:28px;
  padding:14px 18px;
  border-radius:999px;
  border:1px solid #2b3447;
  background:#0f1622;
  color:#e9edf2;
  text-decoration:none;
  font-weight:700;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

#scrollstory .scrollstory__cta:hover{
  transform:translateY(-1px);
  background:#141d2b;
  border-color:#3b465d;
}

#scrollstory .scrollstory__cta:focus-visible{
  outline:2px solid #dfe7f2;
  outline-offset:3px;
}

#scrollstory .scrollstory__progress{
  position:absolute;
  top:50%;
  right:28px;
  transform:translateY(-50%);
  width:2px;
  height:180px;
  z-index:10;
}

#scrollstory .scrollstory__progress-track{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.14);
  border-radius:999px;
}

#scrollstory .scrollstory__progress-bar{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:0%;
  background:#f3f6fa;
  border-radius:999px;
}

#scrollstory .scrollstory__m-media{
  display:none;
}

@media (max-width:1023.98px){
  #scrollstory{
    height:auto;
    overflow:visible;
    isolation:auto;
  }

  #scrollstory .scrollstory__stage{
    grid-template-columns:1fr;
    height:auto;
    overflow:visible;
  }

  #scrollstory .scrollstory__media{
    display:none;
  }

  #scrollstory .scrollstory__content{
    height:auto;
    min-height:auto;
    overflow:visible;
    border-left:none;
    padding-right:0;
  }

  #scrollstory .scrollstory__progress{
    display:none;
  }

  #scrollstory .scrollstory__step{
    position:relative;
    inset:auto;
    display:block;
    min-height:auto;
    height:auto;
    padding:0;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:none !important;
  }

  #scrollstory .scrollstory__step + .scrollstory__step{
    margin-top:16px;
  }

  #scrollstory .scrollstory__m-media{
    display:block;
    position:relative;
    height:56svh;
    overflow:hidden;
  }

  #scrollstory .scrollstory__m-media img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  #scrollstory .scrollstory__m-media .scrollstory__scrim{
    position:absolute;
    inset:0;
    background:linear-gradient(
      180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.15) 60%,
      rgba(0,0,0,.35) 100%
    );
  }

  #scrollstory .scrollstory__inner{
    padding:8svh 6vw;
    background:var(--panel);
    border-top:1px solid var(--line);
  }

  #scrollstory .scrollstory__title{
    font-size:clamp(30px, 8.5vw, 54px);
  }

  #scrollstory .scrollstory__desc{
    font-size:16px;
  }
}

@media (max-width:1023.98px){
  #scrollstory .scrollstory__eyebrow{
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 600;
  }

   #scrollstory .scrollstory__title{
    font-size: clamp(34px, 9.2vw, 48px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.05em;
  }

  #scrollstory .scrollstory__desc{
    font-size: 16px;
    line-height: 1.72;
    letter-spacing: -0.02em;
    font-weight: 500;
    word-break: keep-all;
  }

  #scrollstory .scrollstory__bullets{
    margin-top: 16px;
  }

  #scrollstory .scrollstory__bullets li{
    font-size: 15px;
    line-height: 1.68;
    letter-spacing: -0.02em;
  }

  #scrollstory .scrollstory__cta{
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
}