/* =========================================================
   전효섭 스포츠활법마사지 — style.css
   무드: 스포티 / 키네틱 / 퍼포먼스 리커버리
   팔레트: 딥 잉크 + 에너제틱 오렌지 + 일렉트릭 블루 + 본 화이트
   ========================================================= */

/* ---------- 1. 변수 ---------- */
:root {
  --ink:      #0e0f13;   /* near-black */
  --ink-2:    #16181f;
  --bone:     #f3f1ea;   /* 본 화이트 */
  --bone-2:   #e8e4d8;
  --orange:   #ff4d17;   /* 에너제틱 오렌지 */
  --orange-d: #e63c08;
  --cobalt:   #2540ff;   /* 일렉트릭 블루 */
  --steel:    #8b9099;
  --text:     #14151a;
  --text-soft:#5b606b;
  --line:     rgba(14, 15, 19, .12);
  --white:    #ffffff;

  --font-sans:    'Noto Sans KR', sans-serif;
  --font-display: 'Anton', 'Noto Sans KR', sans-serif;
  --font-label:   'Archivo', 'Noto Sans KR', sans-serif;

  --maxw: 1280px;
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 70px rgba(14, 15, 19, .18);
  --shadow-sm: 0 12px 32px rgba(14, 15, 19, .12);
}

/* ---------- 2. 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: .92; text-transform: uppercase; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.05; }

/* ---------- 유틸 ---------- */
.container { width: min(92%, var(--maxw)); margin-inline: auto; }
.kr-head { font-family: var(--font-sans); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }

.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-label); font-weight: 600;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
  padding: .4rem .8rem; border: 1.5px solid var(--orange);
  border-radius: 100px;
}
.tag.on-dark { color: var(--orange); border-color: rgba(255,77,23,.5); }
.tag .dotk { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.h-xl { font-size: clamp(2.8rem, 9vw, 7rem); }
.h-lg { font-size: clamp(2rem, 5.2vw, 4rem); }
.lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--text-soft); max-width: 56ch; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.05rem 1.8rem; border-radius: 100px;
  font-family: var(--font-label); font-weight: 700; font-size: .98rem;
  border: 2px solid var(--ink); background: var(--ink); color: var(--bone);
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--orange:hover { box-shadow: 0 16px 36px rgba(255,77,23,.45); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost.on-dark { background: transparent; color: var(--bone); border-color: rgba(243,241,234,.35); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* =========================================================
   3. 스크롤 진행 바
   ========================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0%; background: var(--orange); z-index: 1000; }

/* =========================================================
   4. 헤더
   ========================================================= */
.header { position: fixed; inset: 0 0 auto 0; z-index: 900; padding: 1.4rem 0; transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease); }
.header.scrolled { padding: .7rem 0; background: rgba(243,241,234,.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .65rem; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--orange); color: var(--white); font-family: var(--font-display); font-size: 1.2rem;
  transform: skewX(-7deg);
}
.logo__txt { line-height: 1.05; }
.logo__txt b { display: block; font-weight: 900; font-size: 1.02rem; letter-spacing: -.02em; }
.logo__txt small { font-family: var(--font-label); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); }

.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__list a { font-weight: 500; font-size: .98rem; position: relative; }
.nav__list a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--orange); transition: width .3s var(--ease); }
.nav__list a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: .35s var(--ease); }

/* =========================================================
   5. 히어로 (다크 / 키네틱)
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 10rem 0 5rem; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, #1c2030 0%, var(--ink) 55%);
  color: var(--bone);
}
.hero__content { position: relative; z-index: 4; max-width: 980px; }
.hero__title { margin: 1.6rem 0; }
.hero__title .l1 { display: block; color: var(--bone); }
.hero__title .l2 { display: block; color: var(--orange); }
.hero__title .out { -webkit-text-stroke: 2px var(--bone); color: transparent; }
.hero__sub { color: rgba(243,241,234,.8); margin-bottom: 2.4rem; max-width: 50ch; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* 키네틱 배경 텍스트 (스크롤로 가로 이동) */
.kinetic {
  position: absolute; z-index: 1; left: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--font-display); text-transform: uppercase;
  -webkit-text-stroke: 1.5px rgba(243,241,234,.10); color: transparent;
  will-change: transform;
}
.kinetic--top { top: 9%; font-size: clamp(4rem, 14vw, 12rem); }
.kinetic--bottom { bottom: 5%; font-size: clamp(4rem, 14vw, 12rem); }

/* 떠다니는 도형 (패럴랙스) */
.shape { position: absolute; z-index: 2; pointer-events: none; will-change: transform; }
.shape--ring { width: 220px; height: 220px; border: 2px solid rgba(255,77,23,.4); border-radius: 50%; top: 18%; right: 10%; }
.shape--blob { width: 300px; height: 300px; border-radius: 50%; bottom: -60px; right: 18%; background: radial-gradient(circle at 40% 40%, rgba(37,64,255,.5), transparent 70%); filter: blur(6px); }
.shape--plus { top: 26%; right: 30%; color: var(--orange); font-family: var(--font-display); font-size: 3rem; }

/* 회전 배지 */
.spin { position: absolute; z-index: 5; bottom: 9%; right: 7%; width: clamp(120px, 14vw, 168px); aspect-ratio: 1; will-change: transform; }
.spin svg text { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 2.5px; fill: var(--bone); }
.spin__c { position: absolute; inset: 0; margin: auto; width: 40%; height: 40%; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; }

.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 5; font-family: var(--font-label); font-size: .72rem; letter-spacing: .2em; color: rgba(243,241,234,.6); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero__scroll .line { width: 1px; height: 36px; background: rgba(243,241,234,.4); position: relative; overflow: hidden; }
.hero__scroll .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--orange); animation: drop 1.8s infinite; }
@keyframes drop { 0% { top: -50%; } 100% { top: 100%; } }

/* =========================================================
   6. 마퀴 티커
   ========================================================= */
.ticker { background: var(--orange); color: var(--ink); padding: 1.1rem 0; overflow: hidden; white-space: nowrap; }
.ticker--ink { background: var(--ink); color: var(--bone); }
.ticker__track { display: inline-flex; align-items: center; gap: 2.2rem; will-change: transform; animation: marq 22s linear infinite; }
.ticker--rev .ticker__track { animation-direction: reverse; }
.ticker__track span { font-family: var(--font-display); font-size: clamp(1.2rem, 2.8vw, 1.9rem); }
.ticker__track .s { font-family: var(--font-label); font-weight: 700; font-size: 1.1rem; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   7. 진입 애니메이션
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }

/* =========================================================
   8. About
   ========================================================= */
.about { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__body h2 { color: var(--ink); margin-bottom: 1.5rem; }
.about__body .lead { margin-bottom: 1.6rem; }
.about__visual { position: relative; }
.about__panel {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--ink) 0%, #1d2230 100%); color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem; box-shadow: var(--shadow);
}
.about__panel .big { font-family: var(--font-display); font-size: clamp(3.5rem, 11vw, 7rem); color: var(--orange); }
.about__panel .big span { color: var(--bone); -webkit-text-stroke: 1.5px var(--bone); }
.about__panel .cap { font-family: var(--font-label); letter-spacing: .22em; text-transform: uppercase; font-size: .74rem; color: rgba(243,241,234,.6); }
.about__chip { position: absolute; background: var(--orange); color: var(--white); border-radius: 12px; padding: .7rem 1.1rem; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); will-change: transform; transform: rotate(-4deg); }
.about__chip--a { top: 8%; right: -16px; }
.about__chip--b { bottom: 10%; left: -16px; background: var(--cobalt); transform: rotate(4deg); }

.feature-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list .n { flex: 0 0 auto; font-family: var(--font-display); font-size: 1.1rem; color: var(--orange); line-height: 1.4; }
.feature-list b { display: block; }
.feature-list p { color: var(--text-soft); font-size: .95rem; }

.stats { display: flex; gap: 2.6rem; margin-top: 2.6rem; flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ink); display: block; line-height: 1; }
.stat b .u { color: var(--orange); }
.stat small { font-family: var(--font-label); letter-spacing: .04em; color: var(--text-soft); font-size: .82rem; }

/* =========================================================
   9. 프로그램 (넘버드 리스트 / 스포티)
   ========================================================= */
.programs { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.programs .kinetic { -webkit-text-stroke: 1.5px rgba(243,241,234,.07); }
.programs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; position: relative; z-index: 2; }
.programs__head h2 { color: var(--bone); }
.programs__head .lead { color: rgba(243,241,234,.7); }

.prog-list { position: relative; z-index: 2; border-top: 1px solid rgba(243,241,234,.16); }
.prog-row {
  display: grid; grid-template-columns: 80px 1.1fr 2fr auto; gap: 1.5rem; align-items: center;
  padding: 1.8rem 0; border-bottom: 1px solid rgba(243,241,234,.16);
  transition: background .3s, padding .3s var(--ease);
}
.prog-row:hover { background: rgba(243,241,234,.04); padding-inline: 1.2rem; }
.prog-row .pn { font-family: var(--font-display); font-size: 1.6rem; color: var(--orange); }
.prog-row h3 { font-size: 1.45rem; color: var(--bone); }
.prog-row .pd { color: rgba(243,241,234,.65); font-size: .95rem; }
.prog-row .pp { font-family: var(--font-label); font-weight: 700; font-size: 1.1rem; color: var(--bone); white-space: nowrap; }
.prog-row .pp small { color: rgba(243,241,234,.5); font-weight: 500; display: block; font-size: .76rem; text-align: right; }

/* =========================================================
   10. 프로세스 (스텝)
   ========================================================= */
.process { padding: clamp(5rem, 10vw, 9rem) 0; }
.process__head { text-align: center; max-width: 620px; margin: 0 auto 3.4rem; }
.process__head h2 { color: var(--ink); }
.process__head .lead { margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 2rem 1.6rem; }
.step .sn { font-family: var(--font-display); font-size: 2.4rem; color: var(--bone-2); line-height: 1; }
.step.is-accent .sn { color: var(--orange); }
.step h4 { font-size: 1.2rem; color: var(--ink); margin: .8rem 0 .5rem; }
.step p { color: var(--text-soft); font-size: .92rem; }
.step .ic { position: absolute; top: 1.6rem; right: 1.6rem; font-size: 1.5rem; }

/* =========================================================
   11. 왜 (가로 패럴랙스 행)
   ========================================================= */
.why { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--bone-2); overflow: hidden; }
.why__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.why__head h2 { color: var(--ink); }
.why__row { display: flex; gap: 1.3rem; will-change: transform; }
.why-card { flex: 0 0 290px; background: var(--white); border-radius: var(--r-md); padding: 2rem; border: 1px solid var(--line); }
.why-card .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; background: var(--bone); margin-bottom: 1.1rem; }
.why-card h4 { font-size: 1.18rem; color: var(--ink); margin-bottom: .5rem; }
.why-card p { color: var(--text-soft); font-size: .93rem; }

/* =========================================================
   12. CTA
   ========================================================= */
.cta { padding: clamp(4rem, 8vw, 7rem) 0; }
.cta__card { position: relative; overflow: hidden; background: var(--orange); color: var(--white); border-radius: var(--r-lg); padding: clamp(2.6rem, 6vw, 5rem); text-align: center; }
.cta__card .kinetic { top: 50%; transform: translateY(-50%); -webkit-text-stroke: 1.5px rgba(255,255,255,.18); }
.cta__card h2 { color: var(--white); margin-bottom: 1rem; position: relative; z-index: 2; }
.cta__card .lead { color: rgba(255,255,255,.9); margin: 0 auto 2rem; position: relative; z-index: 2; }
.cta__card .hero__actions { justify-content: center; position: relative; z-index: 2; }
.cta__card .btn--ink { background: var(--ink); border-color: var(--ink); color: var(--bone); }

/* =========================================================
   13. 오시는 길
   ========================================================= */
.contact { padding: clamp(5rem, 10vw, 9rem) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__info h2 { color: var(--ink); margin-bottom: 1.4rem; }
.info-list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.info-item { display: flex; gap: 1.1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; background: var(--ink); color: var(--orange); display: grid; place-items: center; font-size: 1.2rem; }
.info-item h4 { font-family: var(--font-label); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .3rem; font-weight: 600; }
.info-item p, .info-item a { font-size: 1.08rem; color: var(--text); }
.info-item a { font-weight: 700; }
.info-item a:hover { color: var(--orange); }

.contact__map { border-radius: var(--r-lg); overflow: hidden; min-height: 380px; position: relative; background: linear-gradient(155deg, var(--ink), #1d2230); color: var(--bone); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; }
.contact__map .grid-lines { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(243,241,234,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(243,241,234,.6) 1px, transparent 1px); background-size: 44px 44px; }
.contact__map .pin { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%); font-size: 2.4rem; will-change: transform; }
.contact__map b { position: relative; font-size: 1.15rem; }
.contact__map p { position: relative; color: rgba(243,241,234,.8); font-size: .95rem; }

/* =========================================================
   14. 푸터
   ========================================================= */
.footer { background: var(--ink); color: rgba(243,241,234,.72); padding: 4.5rem 0 2.2rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(243,241,234,.14); }
.footer .logo__txt b { color: var(--bone); }
.footer__brand p { max-width: 32ch; font-size: .92rem; margin-top: 1.1rem; }
.footer__sns { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer__sns a { width: 42px; height: 42px; border-radius: 50%; background: rgba(243,241,234,.08); color: var(--bone); display: grid; place-items: center; font-family: var(--font-label); font-size: .76rem; font-weight: 700; transition: background .3s, color .3s, transform .3s; }
.footer__sns a:hover { background: var(--orange); color: var(--white); transform: translateY(-3px); }
.footer__col h5 { font-family: var(--font-label); color: var(--orange); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.footer__col a, .footer__col p { display: block; font-size: .92rem; margin-bottom: .6rem; color: rgba(243,241,234,.7); }
.footer__col a:hover { color: var(--orange); }
.footer__biz { margin-top: 2rem; font-size: .84rem; line-height: 1.9; color: rgba(243,241,234,.55); }
.footer__biz strong { color: rgba(243,241,234,.82); font-weight: 600; }
.footer__bottom { margin-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-label); font-size: .8rem; color: rgba(243,241,234,.45); }

/* =========================================================
   15. 반응형
   ========================================================= */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 440px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .prog-row { grid-template-columns: 56px 1fr auto; }
  .prog-row .pd { display: none; }
}
@media (max-width: 768px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80%, 320px); background: var(--ink-2); color: var(--bone); transform: translateX(100%); transition: transform .45s var(--ease); padding: 6rem 2rem 2rem; box-shadow: -20px 0 60px rgba(0,0,0,.4); }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .nav__list a { color: var(--bone); font-size: 1.15rem; }
  .nav__toggle { display: flex; z-index: 950; }
  .nav__toggle.active span { background: var(--bone); }
  .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .spin, .shape--ring, .shape--plus { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .stats { gap: 1.6rem; }
  .prog-row { grid-template-columns: 44px 1fr; }
  .prog-row .pp { grid-column: 2; text-align: left; }
  .prog-row .pp small { text-align: left; }
}

/* 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .kinetic, .shape, .spin, .about__chip, .why__row, .pin { transform: none !important; }
}
