/* 기존 라이브(studio-frame.com)에서 옮겨 온 섹션: 소개 문구 스크롤 채움 + 진행 과정 데모 */
:root{--line:#E3E0D7}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.wrap.widest{max-width:1520px;padding:0 clamp(24px,4vw,64px)}

/* ---------- 스튜디오 소개 (스크롤 채움) ---------- */
.intro{min-height:200vh;padding:0 clamp(24px,6vw,96px);background:var(--white)}
.intro .sticky{
  position:sticky;top:0;min-height:100vh;
  display:flex;align-items:center;justify-content:center;
}
.fill-text{
  text-align:center;max-width:1000px;
  font-size:clamp(20px,2.9vw,38px);font-weight:700;
  letter-spacing:-.03em;line-height:1.78;word-break:keep-all;
}
.fill-text .w{color:#D6D3C9;transition:color .28s ease}
.fill-text .w.on{color:var(--ink)}
.fill-text .w.kw.on{color:var(--red)}
@media (max-width:760px){
  .intro{min-height:170vh}
  .fill-text{line-height:1.9}
}

/* ---------- 프로세스 (스크롤 연동 메소드 데모) ---------- */
  /* ================= process — 스크롤 연동 메소드 데모 (lukewebdesign 'The Method' 참조) ================= */
  .method { height: 480vh; }
  .method-sticky {
    position: sticky;
    top: 92px;
    height: calc(100vh - 116px);
    display: grid;
    grid-template-columns: minmax(250px, 330px) 1fr;
    gap: clamp(28px, 4.5vw, 80px);
    align-items: stretch;
  }
  .method-steps {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
  .m-step {
    appearance: none;
    background: none;
    border: 0;
    padding: 10px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font: inherit;
    color: inherit;
  }
  .m-step:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
  .m-step .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--red);
    flex: none;
    margin-top: 9px;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
  }
  .m-step .m-body { display: flex; flex-direction: column; gap: 6px; }
  .m-step .no {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ink-soft);
    transition: color .3s ease;
  }
  .m-step .m-title {
    display: block;
    font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #C9C5BA;
    transition: color .3s ease;
  }
  .m-step .m-desc,
  .m-step .m-craft {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s ease, opacity .35s ease;
  }
  .m-step .m-desc { font-size: 14.5px; color: #6B675E; line-height: 1.6; word-break: keep-all; max-width: 40ch; }
  .m-step .m-craft { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--red); }
  .m-step.active .dot { opacity: 1; transform: scale(1); }
  .m-step.active .no { color: var(--red); }
  .m-step.active .m-title { color: var(--ink); }
  .m-step.active .m-desc { max-height: 110px; opacity: 1; }
  .m-step.active .m-craft { max-height: 44px; opacity: 1; }
  .m-note {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .02em;
    color: var(--red);
  }

  /* 데모 브라우저 — 빈 페이지가 단계별로 완성됨 */
  .method-demo { display: flex; align-items: center; min-width: 0; }
  .m-browser {
    width: 100%;
    height: min(100%, 700px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(22,21,19,.10);
  }
  .m-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    flex: none;
  }
  .m-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
  .m-url { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); }
  .m-live { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--red); opacity: 0; transition: opacity .4s ease; }
  .method.s4 .m-live { opacity: 1; }
  .m-count { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-left: 14px; }
  .m-page { position: relative; flex: 1; padding: clamp(20px, 2.6vw, 40px); min-height: 0; }

  /* STAGE 0 — 킥오프: 빈 페이지 + 미팅 노트 */
  .m-notes {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    padding: 0 clamp(24px, 3vw, 48px);
    transition: opacity .4s ease;
  }
  .m-notes span:not(.m-caret) {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--ground);
    padding: 8px 14px;
    border-radius: 999px;
  }
  .m-caret { width: 10px; height: 18px; background: var(--red); animation: caret-blink .8s steps(2, start) infinite; }
  .method.s1 .m-notes { opacity: 0; pointer-events: none; }

  /* STAGE 1 — 와이어프레임: 회색 블록 스켈레톤 (기본 상태) */
  .m-site {
    opacity: 0;
    transition: opacity .5s ease;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vw, 34px);
    height: 100%;
  }
  .method.s1 .m-site { opacity: 1; }
  /* 와이어프레임 블록들이 사이드에서 하나씩 쭉 밀려 들어오며 자리 잡음 */
  @keyframes m-slide {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .method.s1 .m-nav  { animation: m-slide .45s cubic-bezier(.2,.8,.2,1) backwards; }
  .method.s1 .m-h1   { animation: m-slide .45s cubic-bezier(.2,.8,.2,1) .09s backwards; }
  .method.s1 .m-sub  { animation: m-slide .45s cubic-bezier(.2,.8,.2,1) .18s backwards; }
  .method.s1 .m-btn  { animation: m-slide .45s cubic-bezier(.2,.8,.2,1) .27s backwards; }
  .method.s1 .m-card:nth-child(1) { animation: m-slide .45s cubic-bezier(.2,.8,.2,1) .36s backwards; }
  .method.s1 .m-card:nth-child(2) { animation: m-slide .45s cubic-bezier(.2,.8,.2,1) .45s backwards; }
  .method.s1 .m-card:nth-child(3) { animation: m-slide .45s cubic-bezier(.2,.8,.2,1) .54s backwards; }
  .m-nav { display: flex; justify-content: space-between; align-items: center; flex: none; }
  .m-logo { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
  .m-links { display: flex; gap: 14px; }
  .m-links i { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
  .m-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 0; }
  .m-h1 { font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
  .m-h1 em { font-style: normal; transition: color .45s ease; }
  .m-sub { font-size: 13px; letter-spacing: .02em; }
  .m-btn { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; }
  .m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: none; }
  .m-card {
    aspect-ratio: 4 / 2.4;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    padding: 10px 12px;
    border: 1px solid transparent;
    transition: background-color .5s ease, border-color .5s ease;
  }
  .m-card span { font-size: 11px; font-weight: 700; letter-spacing: .04em; opacity: 0; transition: opacity .4s ease; }

  /* 스켈레톤 기본값 — 텍스트가 회색 블록으로 보임 */
  .m-logo, .m-links i, .m-h1, .m-sub, .m-btn {
    color: transparent;
    background: var(--line);
    border-radius: 4px;
    transition: color .45s ease, background-color .45s ease, border-color .45s ease;
  }
  .m-card { background: var(--line); }

  /* STAGE 2 — 디자인: 진짜 타이포 + 디자인 작업 흔적(아이브로·가이드라인·컬러 스와치) */
  .method.s2 .m-logo, .method.s2 .m-links i, .method.s2 .m-h1 { color: var(--ink); background: transparent; }
  .method.s2 .m-sub { color: var(--ink-soft); background: transparent; }
  .method.s2 .m-btn { color: var(--ink); background: transparent; border-color: var(--ink); }
  .method.s2 .m-card { background: transparent; border-color: var(--line); }
  .method.s2 .m-card span { opacity: 1; }
  .method.s2 .m-h1 em { text-decoration: underline; text-decoration-color: rgba(224,49,49,.4); text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .m-eyebrow {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--red);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .4s ease, transform .4s ease;
  }
  .method.s2 .m-eyebrow { opacity: 1; transform: none; }
  /* 디자인 툴 가이드라인 — 디자인 단계에서만 보이고 빌드에 들어가면 사라짐 */
  .m-guides { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
  .m-guides .gh { position: absolute; left: 0; right: 0; top: 36%; height: 1px; background: rgba(224,49,49,.32); }
  .m-guides .gv { position: absolute; top: 0; bottom: 0; left: clamp(20px, 2.6vw, 40px); width: 1px; background: rgba(224,49,49,.32); }
  .method.s2 .m-guides { opacity: 1; }
  .method.s3 .m-guides { opacity: 0; }
  /* 컬러 스와치 — 디자이너가 팔레트를 고르는 중, 빌드 단계에서 실제로 적용되며 사라짐 */
  .m-swatches {
    position: absolute;
    top: clamp(16px, 2vw, 28px);
    right: clamp(16px, 2vw, 28px);
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
  }
  .m-swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(22,21,19,.12); }
  .method.s2 .m-swatches { opacity: 1; transform: none; }
  .method.s3 .m-swatches { opacity: 0; }

  /* STAGE 3 — 빌드 & 모션: 요소들이 순차로 살아 움직이기 시작 */
  @keyframes m-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes m-breathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }
  .method.s3 .m-nav { animation: m-rise .5s ease backwards; }
  .method.s3 .m-h1 { animation: m-rise .5s ease .12s backwards; }
  .method.s3 .m-sub { animation: m-rise .5s ease .22s backwards; }
  .method.s3 .m-btn { animation: m-rise .5s ease .32s backwards, m-breathe 2.4s ease 1.2s infinite; }
  .method.s3 .m-card:nth-child(1) { animation: m-rise .5s ease .42s backwards; }
  .method.s3 .m-card:nth-child(2) { animation: m-rise .5s ease .52s backwards; }
  .method.s3 .m-card:nth-child(3) { animation: m-rise .5s ease .62s backwards; }

  /* 스와치의 컬러가 실제로 입혀짐 — 페이지가 다채로워지고, 목업이 진짜처럼 반응하기 시작 */
  .method.s3 .m-h1 em { color: var(--red); text-decoration: none; }
  .method.s3 .m-btn { color: #fff; background: var(--red); border-color: var(--red); cursor: pointer; }
  .method.s3 .m-btn:hover { background: #C22525; }
  /* 디자인·빌드 단계(STEP 03~04) — 스와치 컬러만 입혀짐 */
  .method.s3 .m-card.c1 { background: #E7EFD6; border-color: transparent; }
  .method.s3 .m-card.c2 { background: #DBE6F2; border-color: transparent; }
  .method.s3 .m-card.c3 { background: #F5E8CD; border-color: transparent; }
  .method.s3 .m-card.c1 span { color: #3F5A1E; }
  .method.s3 .m-card.c2 span { color: #1E3A5E; }
  .method.s3 .m-card.c3 span { color: #5C441C; }
  .method.s3 .m-links i { cursor: pointer; transition: color .25s ease; }
  .method.s3 .m-links i:hover { color: var(--red); }
  .method.s3 .m-card {
    cursor: pointer;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background-color .5s ease, border-color .5s ease;
  }
  .method.s3 .m-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(22,21,19,.14); }
  .m-card.sel { outline: 2px solid var(--red); outline-offset: 2px; }

  /* STAGE 4 — 출시 & 서포트: 색 블록 위로 실제 콘텐츠(사진)가 로드되며 진짜 서비스처럼 완성 */
  .method.s4 .m-card.c1 { background: linear-gradient(to top, rgba(20,18,15,.42), rgba(20,18,15,0) 58%), #E7EFD6 url("../img/proc-bouquet.jpg") center/cover no-repeat; }
  .method.s4 .m-card.c2 { background: linear-gradient(to top, rgba(20,18,15,.42), rgba(20,18,15,0) 58%), #DBE6F2 url("../img/proc-class.jpg") center/cover no-repeat; }
  .method.s4 .m-card.c3 { background: linear-gradient(to top, rgba(20,18,15,.42), rgba(20,18,15,0) 58%), #F5E8CD url("../img/proc-wedding.jpg") center/cover no-repeat; }
  .method.s4 .m-card.c1 span,
  .method.s4 .m-card.c2 span,
  .method.s4 .m-card.c3 span { color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.45); }

  /* STAGE 4 — 도착 액션(브라우저 팝 & 글로우) + 라이브 토스트 + 커서 팔로우 케어 배지 */
  .m-toast {
    position: absolute;
    top: clamp(14px, 1.8vw, 24px);
    right: clamp(14px, 1.8vw, 24px);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
    z-index: 2;
  }
  .method.s4 .m-toast { opacity: 1; transform: none; }
  .m-cursor {
    position: absolute;
    left: 50%; top: 50%;
    width: 74px; height: 74px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(.5);
    opacity: 0;
    transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
    z-index: 3;
  }
  .method.s4 .m-page { cursor: none; }
  .method.s4 .m-page:hover .m-cursor { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  @keyframes m-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.022); }
    100% { transform: scale(1); }
  }
  .m-browser { transition: box-shadow .6s ease, border-color .6s ease; }
  .method.s4 .m-browser {
    animation: m-pop .6s cubic-bezier(.2,.8,.2,1);
    border-color: rgba(224,49,49,.45);
    box-shadow: 0 30px 76px rgba(224,49,49,.14), 0 24px 60px rgba(22,21,19,.10);
  }


/* process — 모바일: 스크롤 연동 없이 정적 */
@media (max-width:860px){
  .method{height:auto}
  .method-sticky{position:static;height:auto;grid-template-columns:1fr;gap:36px}
  .method-steps{gap:30px}
  .m-step{cursor:default}
  .m-step .dot{display:none}
  .m-step .m-title{color:var(--ink)}
  .m-step .m-desc,.m-step .m-craft{max-height:none;opacity:1;overflow:visible}
  .m-browser{height:auto}
  .m-page{min-height:380px}
}
@media (prefers-reduced-motion:reduce){
  .method{height:auto}
  .method-sticky{position:static;height:auto}
  .m-step .m-desc,.m-step .m-craft{max-height:none;opacity:1;overflow:visible;transition:none}
  .m-step .m-title{color:var(--ink);transition:none}
  .m-caret{animation:none}
  .m-page *{animation:none !important}
}


/* Ver7 — 진행 과정 영역을 상단 메뉴 바·본문과 같은 폭으로. 단계 글줄은 본문 왼쪽 선에 맞추고 점만 바깥으로 */
@media (min-width:861px){
  #process .method-sticky{grid-template-columns:minmax(220px,290px) 1fr;gap:clamp(24px,3.2vw,48px)}
  #process .method-steps{margin-left:-24px}
}
/* 진행 과정 데모와 하단 검정 박스 사이 여백 */
#process{padding-bottom:clamp(120px,12vw,180px)}
