/* GW컨설팅 — 트랙 위 프로모 릴 */
:root {
  --paper: #f4f4f2;
  --ink: #0d0d0d;
  --signal: #ff4b1f;
  --signal-deep: #e23a10;
  --lane: #1f5fe0;
  --sky-top: #ff4b1f;
  --sky-low: #7a1806;
  --line: rgba(13, 13, 13, .14);
  --gutter: clamp(16px, 4vw, 56px);
  --page: 1440px;
  --latin: "Inter Tight", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --kr: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--kr);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.m { display: none; }
@media (max-width: 640px) { .m { display: inline; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* 헤더: 어떤 장면 위에서도 읽히도록 difference 블렌드 */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  color: var(--ink); --dot: var(--signal);
  pointer-events: none;
  background: var(--head-bg, transparent);
  transition: color .25s, background-color .25s;
}
/* 아래 장면 배경에 맞춰 JS가 톤을 바꾼다 */
.site-head[data-tone="light"] { color: var(--paper); }
.site-head[data-tone="signal"] { --dot: var(--paper); }
.site-head[data-tone="contact"] { --dot: var(--paper); }
.site-head > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--latin); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .mark { width: 62px; height: 28px; }
.site-head nav { display: flex; gap: 28px; margin-left: auto; }
.site-head nav a, .cta-mini { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; position: relative; }
.site-head nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.site-head nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.cta-mini { border: 1px solid currentColor; padding: 9px 14px; font-family: var(--kr); font-size: 13px; letter-spacing: 0; font-weight: 600; transition: background .3s, color .3s; }
.cta-mini:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.site-head[data-tone="light"] .cta-mini:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (max-width: 760px) { .site-head nav { display: none; } .cta-mini { margin-left: auto; } }

/* ───────── 릴 ───────── */
.reel { position: relative; height: 640vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--paper); color: var(--ink);
  contain: layout paint;
}
.scene { position: absolute; inset: 0; visibility: hidden; }

/* 레지스트레이션 마크 */
.marks { position: absolute; inset: clamp(14px, 3vw, 34px); z-index: 6; pointer-events: none; }
.marks i { position: absolute; width: 7px; height: 7px; background: currentColor; transition: background .2s; }
.marks i:nth-child(1) { left: 0; top: 0; } .marks i:nth-child(2) { right: 0; top: 0; }
.marks i:nth-child(3) { left: 0; bottom: 0; } .marks i:nth-child(4) { right: 0; bottom: 0; }
.marks i:nth-child(5) { left: 0; top: 50%; } .marks i:nth-child(6) { right: 0; top: 50%; }
.marks i:nth-child(7) { left: 50%; top: 0; } .marks i:nth-child(8) { left: 50%; bottom: 0; }
.stage[data-scene="2"] .marks, .stage[data-scene="6"] .marks { color: var(--paper); }
.stage[data-scene="3"] .marks, .stage[data-scene="4"] .marks, .stage[data-scene="5"] .marks { color: var(--paper); }

/* 장면 1·2 포스터 */
.s-poster { visibility: visible; display: grid; place-items: center; text-align: center; padding: 12vh var(--gutter); transition: background .01s; }
.stage[data-scene="2"] .s-poster { background: var(--ink); color: var(--paper); }
.stage:not([data-scene="1"]):not([data-scene="2"]) .s-poster { visibility: hidden; }
.poster-mark { position: absolute; top: 15vh; left: 50%; width: 74px; height: 34px; translate: -50% 0; }
.poster-title {
  font-family: var(--latin); font-weight: 800; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(46px, 8.6vw, 148px);
  display: grid; gap: .06em; justify-items: center;
}
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.ln + .dist + .ln > span { animation-delay: .14s; }
@keyframes rise { to { transform: none; } }
.poster-title { position: relative; }
.poster-title .ln { transition: transform .5s var(--ease); }
.dist { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; line-height: 1; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.stage[data-scene="2"] .dist { opacity: 1; }
.stage[data-scene="2"] .poster-title .ln:first-child { transform: translateY(-.22em); }
.stage[data-scene="2"] .poster-title .ln:last-child { transform: translateY(.22em); }
.dist b { font-weight: 500; font-variant-numeric: tabular-nums; display: inline-block; min-width: 4ch; text-align: right; }
.poster-sub { position: absolute; left: 0; right: 0; bottom: 20vh; font-size: clamp(14px, 1.3vw, 18px); opacity: 0; animation: fade .8s .6s forwards; }
.poster-foot { position: absolute; left: 0; right: 0; bottom: 12vh; font-family: var(--latin); font-size: 15px; font-weight: 800; letter-spacing: -.01em; text-transform: none; }
.poster-foot sup { font-size: .55em; }
@keyframes fade { to { opacity: 1; } }

/* 장면 3 트랙 */
.stage[data-scene="3"] .s-track { visibility: visible; }
.s-track { --r: 0; background: var(--ink); }
.lanes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  clip-path: inset(calc((1 - var(--r)) * 34%) calc((1 - var(--r)) * 36%) round calc((1 - var(--r)) * 6px));
  transform: scale(calc(1.18 - var(--r) * .18));
  will-change: clip-path, transform;
}
.track-label { text-transform: none; position: absolute; left: 50%; bottom: 9vh; translate: -50% 0; color: var(--paper); white-space: nowrap; opacity: var(--r); }

/* 장면 4 주황 */
.stage[data-scene="4"] .s-flood { visibility: visible; }
.s-flood { background: var(--signal); color: var(--paper); display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.words { font-family: var(--latin); font-weight: 800; letter-spacing: -.05em; line-height: .95; font-size: clamp(56px, 12vw, 210px); }
.words span { display: inline-block; opacity: 0; transform: translateY(.18em); transition: opacity .25s, transform .45s var(--ease); }
.words span.on { opacity: 1; transform: none; }

/* 장면 5 계단 그리드 */
.stage[data-scene="5"] .s-stair { visibility: visible; }
.s-stair { background: var(--signal); color: var(--paper); }
.stair-grid { position: absolute; inset: 9vh 8vw; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4vh 4vw; }
.stair-grid p { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; font-family: var(--latin); font-weight: 800; letter-spacing: -.04em; line-height: .92; font-size: clamp(18px, 3.1vw, 50px); }
.stair-grid span { opacity: 0; transform: translateX(.4em); transition: opacity .2s, transform .35s var(--ease); }
.stair-grid span.on { opacity: 1; transform: none; }
.o { position: absolute; font-style: normal; font-family: var(--latin); font-weight: 800; font-size: clamp(18px, 3.1vw, 50px); line-height: 1; }
.o1 { left: 8vw; top: 46%; } .o2 { left: 54vw; top: 46%; } .o3 { left: 8vw; bottom: 8vh; } .o4 { left: 54vw; bottom: 8vh; }

/* 장면 6 노을 */
.stage[data-scene="6"] .s-final { visibility: visible; }
.s-final { --f: 0; background: linear-gradient(180deg, var(--sky-top) 0%, #f0431a 38%, var(--sky-low) 78%, #2a0a04 100%); color: var(--paper); }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38vh; transform: translateY(calc((1 - var(--f)) * 8%)); }
.float-mark {
  position: absolute; left: 50%; top: 50%; width: clamp(180px, 30vw, 420px); aspect-ratio: 140 / 64; height: auto;
  --dot: var(--ink);
  transform: translate(-50%, calc(-50% + (1 - var(--f)) * 30vh)) rotate(calc((1 - var(--f)) * -14deg));
  filter: drop-shadow(0 30px 40px rgba(60, 8, 0, .45));
  will-change: transform;
}
.final-lockup { position: absolute; left: 0; right: 0; top: 17vh; text-align: center; opacity: var(--f); }
.final-lockup .mono { color: var(--ink); }
.final-line { margin-top: 10px; font-weight: 700; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.03em; }
.scroll-cue { color: var(--paper); position: absolute; left: 50%; bottom: 5vh; translate: -50% 0; opacity: var(--f); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 7; }
.reel-progress i { display: block; height: 100%; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.stage[data-scene="4"] .reel-progress i, .stage[data-scene="5"] .reel-progress i, .stage[data-scene="6"] .reel-progress i { background: var(--paper); }

/* ───────── 본문 공통 ───────── */
section:not(.reel) { position: relative; }
.about, .record { background: var(--paper); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 4vw, 56px); }
.eyebrow span { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; background: var(--ink); color: var(--paper); }
.sec-title { font-weight: 800; font-size: clamp(38px, 6.2vw, 104px); line-height: 1.04; letter-spacing: -.045em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* About */
.about { padding-block: clamp(110px, 16vw, 220px) clamp(90px, 12vw, 170px); }
.statement { font-weight: 800; font-size: clamp(40px, 6.8vw, 116px); line-height: 1.04; letter-spacing: -.05em; }
.statement em { font-style: normal; color: var(--signal); }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); max-width: 980px; margin: clamp(40px, 6vw, 88px) 0 0 auto; color: #333; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 10vw, 140px); border-top: 2px solid var(--ink); }
.stats > div { padding: 22px 22px 0 0; border-right: 1px solid var(--line); }
.stats > div + div { padding-left: 22px; }
.stats > div:last-child { border-right: 0; }
.stats dd { font-family: var(--latin); font-weight: 800; font-size: clamp(56px, 8vw, 128px); letter-spacing: -.06em; line-height: 1; margin: 18px 0 14px; font-variant-numeric: tabular-nums; }
.stats dd sup { font-size: .4em; color: var(--signal); vertical-align: top; position: relative; top: .3em; }
.stats p { font-size: 14px; color: #555; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.badges li { border: 1px solid var(--ink); padding: 8px 12px; text-transform: none; }

/* 레인 */
.lanes-sec { background: var(--ink); color: var(--paper); padding-block: clamp(100px, 13vw, 180px) 0; }
.lanes-sec .eyebrow span { background: var(--signal); }
.lane-list { margin-top: clamp(50px, 7vw, 100px); border-top: 1px solid rgba(244, 244, 242, .25); }
.lane {
  position: relative; display: grid; grid-template-columns: clamp(70px, 10vw, 150px) minmax(220px, 1.1fr) 1.4fr 1fr; gap: 24px 40px; align-items: start;
  padding: clamp(30px, 4vw, 52px) var(--gutter); border-bottom: 1px solid rgba(244, 244, 242, .25);
  isolation: isolate; overflow: hidden;
}
.lane::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.lane:hover::before, .lane:focus-within::before { transform: scaleY(1); }
.lane-no { font-family: var(--latin); font-weight: 900; font-size: clamp(56px, 7vw, 110px); line-height: .8; letter-spacing: -.06em; color: var(--signal); transition: color .4s; }
.lane:hover, .lane:focus-within { color: var(--ink); }
.lane:hover .lane-no, .lane:focus-within .lane-no { color: var(--ink); }
.lane:hover .tags li, .lane:focus-within .tags li { border-color: var(--ink); }
.lane-head h3 { font-weight: 800; font-size: clamp(26px, 2.8vw, 42px); letter-spacing: -.04em; line-height: 1.1; }
.lane-head p { margin-top: 8px; opacity: .7; }
.lane-desc { color: rgba(244, 244, 242, .82); font-size: 16px; }
.lane:hover .lane-desc, .lane:focus-within .lane-desc { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 5px 11px; border: 1px solid rgba(244, 244, 242, .4); border-radius: 99px; }
@media (max-width: 980px) {
  .lane { grid-template-columns: 64px 1fr; }
  .lane-desc, .tags { grid-column: 2; }
}

/* 진행 과정: 세로 스크롤을 가로 이동으로 */
.run { height: 340vh; background: var(--lane); color: var(--paper); }
.run-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(36px, 6vh, 70px); }
.run .eyebrow { margin-bottom: 20px; }
.run .eyebrow span { background: var(--paper); color: var(--lane); }
.run-track { --x: 0; position: relative; }
.run-line { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: rgba(244, 244, 242, .35); }
.run-line::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(var(--x)); transform-origin: left; }
.runner { position: absolute; top: -8px; left: calc(var(--x) * 100%); width: 18px; height: 18px; margin-left: -9px; background: var(--signal); border: 3px solid var(--paper); border-radius: 50%; }
.splits {
  display: flex; gap: clamp(28px, 4vw, 64px); padding-left: var(--gutter); width: max-content;
  transform: translateX(calc(var(--x) * var(--shift, 0px) * -1)); will-change: transform;
}
.splits li { width: clamp(270px, 34vw, 500px); padding-top: 70px; position: relative; }
.splits li::before { content: ""; position: absolute; top: 22px; left: 0; width: 2px; height: 20px; background: var(--paper); }
.split-dist { font-size: 13px; opacity: .8; }
.splits h3 { font-weight: 800; font-size: clamp(44px, 6vw, 96px); letter-spacing: -.05em; line-height: 1; margin: 10px 0 20px; }
.splits li p:last-child { color: rgba(244, 244, 242, .86); max-width: 34ch; }

/* 실적 */
.record { padding-bottom: clamp(100px, 13vw, 180px); }
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 22px; margin-bottom: clamp(90px, 11vw, 150px); }
.marquee-in { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-in span { font-family: var(--latin); font-size: clamp(22px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.03em; text-transform: none; padding-inline: clamp(20px, 3vw, 44px); white-space: nowrap; }
.marquee-in span::after { content: "●"; color: var(--signal); font-size: .4em; vertical-align: middle; margin-left: clamp(20px, 3vw, 44px); }
.marquee:hover .marquee-in { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.splits-table { margin-top: clamp(40px, 6vw, 80px); border-top: 2px solid var(--ink); }
.splits-table li { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.splits-table li > * { transition: transform .4s var(--ease), color .3s; }
.splits-table li:hover > * { transform: translateX(16px); }
.splits-table li:hover b { color: var(--signal-deep); }
.splits-table b { font-size: clamp(18px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.03em; }
.splits-table em { font-style: normal; font-size: 14px; color: #666; }
@media (max-width: 640px) {
  .splits-table li { grid-template-columns: 1fr; gap: 4px; }
}

/* 상담 신청 */
.contact { background: var(--signal); color: var(--ink); padding-block: clamp(100px, 12vw, 170px); }
.contact .eyebrow span { background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); }
.contact-title { font-family: var(--latin); font-weight: 800; font-size: clamp(64px, 10vw, 170px); line-height: .9; letter-spacing: -.055em; }
.contact-title em { font-style: normal; color: var(--paper); }
.contact-lead { margin-top: clamp(40px, 6vw, 80px); max-width: 26ch; padding-top: 14px; border-top: 2px solid var(--ink); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.02em; }

.apply { display: grid; gap: 22px; align-content: start; }
.apply label > span, .apply legend { display: block; margin-bottom: 8px; }
.apply input:not([type="radio"]):not([type="checkbox"]), .apply textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); padding: 8px 0 10px; border-radius: 0; resize: vertical;
}
.apply input:focus, .apply textarea:focus { outline: 0; border-bottom-color: var(--paper); }
.apply fieldset { border: 0; padding: 0; margin: 0; }
.stage-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-pick label { position: relative; }
.stage-pick input { position: absolute; opacity: 0; }
.stage-pick span { display: block; padding: 9px 15px; border: 1.5px solid var(--ink); border-radius: 99px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s; }
.stage-pick input:checked + span { background: var(--ink); color: var(--signal); }
.stage-pick input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 22px; margin-top: 10px;
  font: 700 17px var(--kr); color: var(--paper); background: var(--ink); border: 0; padding: 18px 26px; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: none; }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(6px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply .agree > span { display: inline; margin: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-note { min-height: 1.7em; font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.site-foot { background: var(--ink); color: rgba(244, 244, 242, .7); padding-block: 40px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot-in .mark { width: 62px; height: 28px; color: var(--paper); }
.foot-in .mono { margin-left: auto; text-transform: none; }

@media (max-width: 760px) {
  .about-body { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .stair-grid { inset: 13vh 7vw 9vh; grid-template-columns: 1fr; }
  .stair-grid p:nth-child(even), .o2, .o4 { display: none; }
  .stair-grid p, .o { font-size: 9.4vw; }
  .o1 { left: 7vw; top: 47%; } .o3 { left: 7vw; bottom: 6vh; }
  .run { height: 420vh; }
  .splits li { width: 78vw; }
  .foot-in .mono { margin-left: 0; }
}

/* 움직임 줄이기: 릴을 펼친 포스터로, 가로 트랙을 세로 목록으로 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel { height: auto; }
  .stage { position: relative; height: 100svh; }
  .ln > span, .poster-sub { animation: none; transform: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-in, .scroll-cue { animation: none; }
  .run { height: auto; }
  .run-stage { position: relative; height: auto; padding-block: 100px; }
  .run-line { display: none; }
  .splits { flex-direction: column; width: auto; transform: none; padding-inline: var(--gutter); }
  .splits li { width: auto; }
}
