/* ==========================================================================
   갓테크 연혁 (Godtech History)
   디자인 : 연혁디자인02.pdf  /  모션 : 01 홈페이지_연혁.html

   - 모든 선택자는 .gth 루트 안으로 한정되어 있습니다 (전역 스타일 없음).
   - 클래스 접두어 : gth-
   - 좌표 단위 : PDF 설계 좌표(1366 × 4605) = "월드 px". 화면 크기에 맞춰 JS 가 --k 로 스케일합니다.
   - 수정 가능한 설정값은 아래 "설정" 블록의 CSS 변수만 사용하세요.
   ========================================================================== */

/* ===== Fonts : 첨부 원본 폰트(woff2 변환본)를 직접 로드 =====
   PDF 실측 : 연도·월 숫자 = KBL Jump R / 메인·연도 제목 = Pretendard Bold / 그 외 본문 = Pretendard Medium
   font-display:swap → 폰트 다운로드가 화면 표시를 막지 않도록 합니다. */
@font-face{font-family:'GTH Pretendard';font-style:normal;font-weight:500;font-display:swap;
  src:url(/godtech-history/assets/fonts/Pretendard-Medium.woff2) format('woff2')}
@font-face{font-family:'GTH Pretendard';font-style:normal;font-weight:700;font-display:swap;
  src:url(/godtech-history/assets/fonts/Pretendard-Bold.woff2) format('woff2')}
@font-face{font-family:'GTH KBL Jump';font-style:normal;font-weight:400;font-display:swap;
  src:url(/godtech-history/assets/fonts/KBLJump-R.woff2) format('woff2')}

/* ===== 루트 ===== */
.gth{
  /* ── 설정 ─────────────────────────────────────────────
     --gth-top : 사이트 상단 고정 헤더 높이. 화면 고정(sticky) 위치와 높이가 이만큼 내려갑니다.
                 예) .gth{ --gth-top: 80px; }  /  모바일만 다르면 미디어쿼리로 지정 */
  --gth-top:0px;
  --gth-bg:#030d1d;          /* 이미지 로딩 전·바깥 영역 배경색 */
  /* ── JS 가 매 프레임 갱신하는 값 (직접 수정 X) ───────────── */
  --k:1; --hair:1px; --tb:1;
  --rt-len:9999; --rt-off:9999;
  --cue-o:1; --dim:0;

  position:relative;
  height:1000vh;             /* JS 가 구간 스케줄에 맞춰 px 로 다시 설정 */
  background:var(--gth-bg);
  color:#fff;
  font-family:'GTH Pretendard',sans-serif;font-weight:500;
  font-synthesis:none;font-kerning:normal;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
  text-align:left;line-height:normal;letter-spacing:normal;text-transform:none;
}
.gth *,.gth *::before,.gth *::after{box-sizing:border-box}
/* 사이트 공통 CSS(h2/h3/p/img 리셋 등)가 섞여 들어오지 않도록 */
.gth h2,.gth h3,.gth p{margin:0;padding:0;border:0;background:none;color:#fff;font-family:inherit;text-transform:none}
.gth img{max-width:none;max-height:none;border:0;margin:0;padding:0}
.gth svg{max-width:none}
.gth.gth--dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}

/* ===== 화면 고정 : 하나의 progress 가 모든 상태를 결정한다 ===== */
.gth-pin{
  position:sticky;top:var(--gth-top);
  height:calc(100vh - var(--gth-top));
  height:calc(100svh - var(--gth-top));   /* 모바일 주소창이 움직여도 높이가 변하지 않는 기준 */
  overflow:hidden;
  background:var(--gth-bg);isolation:isolate;
}
/* 최초 진입: 엔진/API가 준비되기 전에도 첫 배경을 먼저 표시한다.
   PC의 배경 스케일은 엔진의 min(vw/1366, vh/490)에 맞춘다. */
.gth-pin::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-color:var(--gth-bg);
  background-image:url(/godtech-history/assets/img/bg-1.jpg);
  background-repeat:no-repeat;background-position:center top;
  background-size:min(100%,calc((100vh - var(--gth-top)) * 2.787755102)) auto;
  background-size:min(100%,calc((100svh - var(--gth-top)) * 2.787755102)) auto;
}
@media (max-width:900px){
  .gth-pin::before{
    background-image:url(/godtech-history/assets/img/banner-m.jpg);
    background-size:128% auto;
  }
}
.gth--m .gth-pin::before{
  background-image:url(/godtech-history/assets/img/banner-m.jpg);
  background-size:128% auto;
}
/* 첫 배경과 실제 월드의 교체만 즉시 처리. 기존 스크롤 리빌은 그대로 유지. */
.gth-pin__in{position:absolute;inset:0;opacity:0}
.gth--ready .gth-pin__in{opacity:1}
.gth--ready .gth-pin::before{visibility:hidden}

/* ===== World : PDF 좌표계 그대로 (1366 × 4605) ===== */
.gth-world{
  position:absolute;left:0;top:0;width:1366px;height:4605px;
  transform-origin:0 0;will-change:transform;
}
.gth-bg{position:absolute;inset:0}
.gth-bg__t{position:absolute;left:0;width:1366px;height:1160px;display:block;user-select:none;-webkit-user-drag:none}
/* 타일 경계 = 정수 좌표(1152px 간격). 각 타일은 다음 타일 밑으로 8px 겹쳐 있어 경계에 틈(검은 선)이 생기지 않는다.
   ※ 타일 이미지를 교체할 때도 이 규칙(1728px 간격으로 자르고 12px 더 포함)을 지켜야 합니다. README 참고 */
.gth-bg__t--1{top:0}
.gth-bg__t--2{top:1152px}
.gth-bg__t--3{top:2304px}
.gth-bg__t--4{top:3456px;height:1149px}
/* 배너(GODTECH) 구간이 화면을 벗어날 때 살짝 어두워진다 — 01 의 banner dim */
.gth-bg__dim{position:absolute;left:0;top:0;width:1366px;height:600px;background:linear-gradient(#000 80%,rgba(0,0,0,0));opacity:var(--dim,0);pointer-events:none}
.gth-world--edge{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%)}

/* ===== 산맥 루트 (흰 길) ===== */
.gth-route{position:absolute;left:0;top:0;width:1366px;height:4605px;overflow:visible;pointer-events:none}
.gth-route path{
  fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:var(--rt-len);stroke-dashoffset:var(--rt-off);
}

/* ===== 공통 등장 모션 (01 의 opacity · translateY · blur) ===== */
.gth-tx{
  opacity:var(--o,0);
  transform:translate3d(0,var(--y,0px),0);
  filter:blur(var(--b,0px));
  will-change:opacity,transform,filter;
}

/* ===== 도입부 ===== */
.gth-intro{position:absolute;left:0;top:0;width:1366px;height:0}
.gth-it{position:absolute;left:0;width:1366px;margin:0;text-align:center;white-space:nowrap;color:#fff;
  /* PDF 의 드롭섀도를 텍스트 자체에 — 글자와 함께 이동·블러되므로 잔상이 남지 않는다 */
  text-shadow:0 1px 4px rgba(0,0,0,.55),0 1px 10px rgba(0,0,0,.45)}
.gth-it--p{font-weight:500;font-size:30px;line-height:50px;letter-spacing:-.043em}
.gth-it--t{font-weight:700;font-size:60px;line-height:60px;letter-spacing:-.043em}
.gth-it--d{font-weight:500;font-size:30px;line-height:30px;letter-spacing:-.043em}
.gth-it .gth-br{display:block}

/* ===== 연도 챕터 (데스크톱 : 월드 좌표에 절대배치) ===== */
.gth-ch{position:absolute;left:0;top:0;width:1366px;height:0}
.gth-g{position:absolute;left:0;top:0;width:1366px;height:0;transform:scale(var(--tb));transform-origin:var(--ox) var(--oy)}

/* STEP 01 : 가로선 — 루트와 만나는 접점에서 연도 쪽으로 뻗어 나간다 */
.gth-ln{
  position:absolute;height:var(--hair);background:#fff;
  transform:scaleX(var(--ls,0));transform-origin:100% 50%;
}
/* STEP 02 : 연도 오도미터 */
.gth-yr{
  position:absolute;display:flex;align-items:flex-start;
  font-family:'GTH KBL Jump',sans-serif;font-weight:400;
  font-size:40px;line-height:40px;height:40px;white-space:nowrap;
  letter-spacing:-.908px;color:#fff;
  opacity:var(--yo,0);
}
.gth-yr__fix{display:block}
.gth-yr__reel{display:block;height:40px;overflow:visible;clip-path:inset(0 -24px 0 -24px)}
.gth-yr__reel i{display:block;font-style:normal;will-change:transform}
.gth-yr__reel b{display:block;font-weight:400;height:40px;line-height:40px}
/* STEP 03 : 제목 / 부제목 */
.gth-ttl{position:absolute;margin:0;font-weight:700;font-size:25px;line-height:25px;letter-spacing:-.0233em;white-space:nowrap}
.gth-sub{position:absolute;margin:0;font-weight:500;font-size:20px;line-height:30px;letter-spacing:-.0234em;white-space:nowrap}
.gth-sub .gth-br{display:block}
/* STEP 04 : 월 / 사건 */
.gth-row{display:contents}
.gth-mon{
  position:absolute;font-family:'GTH KBL Jump',sans-serif;font-weight:400;
  font-size:16px;line-height:16px;white-space:nowrap;color:#fff;
}
.gth-bul{position:absolute;width:3.013px;height:3.013px;background:#fff;opacity:var(--o2,0)}
.gth-txt{
  position:absolute;font-size:15px;line-height:20px;white-space:nowrap;color:#fff;
  opacity:var(--o2,0);transform:translate3d(0,var(--y2,0px),0);filter:blur(var(--b2,0px));
  will-change:opacity,transform,filter;
}
.gth-txt .gth-br{display:block}
.gth-ch--r .gth-txt{text-align:right}

/* ===== 스크롤 큐 ===== */
.gth-cue{
  position:absolute;z-index:6;left:50%;bottom:30px;transform:translateX(-50%);
  opacity:var(--cue-o);display:flex;flex-direction:column;align-items:center;gap:10px;
  font-size:11px;letter-spacing:.22em;color:rgba(255,255,255,.72);pointer-events:none;
}
.gth-cue i{display:block;width:1px;height:44px;background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,0));animation:gthCueMove 2.2s ease-in-out infinite}
@keyframes gthCueMove{0%,100%{transform:scaleY(.35);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}}

/* ===== 모바일 (컴포넌트 폭 ≤ 900px, JS 가 .gth--m 부여)
   텍스트는 화면 좌표에서 흐름 배치, 세로 위치만 월드(산맥)에 묶인다 ===== */
.gth-ov{position:absolute;inset:0;z-index:4;pointer-events:none;display:none}
.gth--m .gth-ov{display:block}
/* 모바일 배너 : 같은 배경 원본의 상단(GODTECH)을 화면 폭에 맞춰 별도 레이어로 */
.gth-mcover{position:absolute;left:0;top:0;width:1366px;height:660px;background:linear-gradient(#000b1b 0,#000b1b 600px,rgba(0,11,27,0) 660px);display:none;pointer-events:none}
.gth--m .gth-mcover{display:block}
.gth-mban{position:absolute;left:-14%;top:0;width:128%;aspect-ratio:2049/930;background:url(/godtech-history/assets/img/banner-m.jpg) center top/100% 100% no-repeat;pointer-events:none;will-change:transform,opacity}
.gth-mban::after{content:"";position:absolute;inset:0;background:#000;opacity:var(--dim,0)}
.gth--m .gth-intro{left:6%;width:88%;height:auto;transform-origin:50% 0}
.gth--m .gth-it{position:relative;left:auto;top:auto !important;width:auto;white-space:normal;word-break:keep-all}
.gth--m .gth-it--p{font-size:clamp(15px,4.3vw,19px);line-height:1.8}
.gth--m .gth-it--p + .gth-it--p{margin-top:1.8em}
.gth--m .gth-it--t{font-size:clamp(25px,7.4vw,34px);line-height:1.25;margin-top:clamp(56px,12vh,96px)}
.gth--m .gth-it--d{font-size:clamp(13px,3.7vw,16px);line-height:1.7;margin-top:14px}
.gth--m .gth-it .gth-br{display:inline}
.gth--m .gth-it--p .gth-br{display:block}

.gth--m .gth-ch{left:22px;width:calc(100% - 44px);height:auto;transform-origin:0 0}
.gth--m .gth-g{position:relative;width:auto;height:auto;transform:none}
.gth--m .gth-yr{position:relative;left:auto !important;top:auto !important;font-size:36px;line-height:36px;height:36px}
.gth--m .gth-yr__reel,.gth--m .gth-yr__reel b{height:36px;line-height:36px}
.gth--m .gth-ln{position:relative;left:auto !important;top:auto !important;width:var(--lnw,60vw) !important;height:1px;margin:7px 0 0}
.gth--m .gth-ttl{position:relative;left:auto !important;top:auto !important;font-size:21px;line-height:1.3;margin-top:16px}
.gth--m .gth-sub{position:relative;left:auto !important;top:auto !important;font-size:15px;line-height:1.6;margin-top:6px;white-space:normal;word-break:keep-all}
.gth--m .gth-g-ev{margin-top:22px}
.gth--m .gth-row{display:flex;align-items:flex-start;margin-top:9px}
.gth--m .gth-row--m{margin-top:16px}
.gth--m .gth-row:first-child{margin-top:0}
.gth--m .gth-mon,.gth--m .gth-bul,.gth--m .gth-txt{position:relative;left:auto !important;top:auto !important;right:auto !important}
.gth--m .gth-mon{flex:none;width:26px;font-size:14px;line-height:21px;letter-spacing:0 !important;padding-top:1px}
.gth--m .gth-bul{flex:none;width:3px;height:3px;margin:12px 9px 0 0}
.gth--m .gth-txt{flex:1;min-width:0;font-size:13.5px;line-height:21px;white-space:normal;word-break:keep-all;text-align:left !important;letter-spacing:-.04em !important}
.gth--m .gth-txt .gth-br{display:inline}
.gth--m .gth-txt .gth-br::before{content:" "}
.gth--m .gth-ch .gth-tx,.gth--m .gth-ch .gth-txt,.gth--m .gth-intro .gth-tx{text-shadow:0 1px 10px rgba(0,0,0,.45)}

@media (prefers-reduced-motion:reduce){ .gth-cue i{animation:none} .gth-pin__in{transition:none} }
.gth-api-status{position:absolute;z-index:20;left:50%;bottom:24px;transform:translateX(-50%);padding:10px 16px;border-radius:24px;color:#fff;background:rgba(0,0,0,.65);font:14px sans-serif;white-space:nowrap}

/* End the journey with the same quiet black screen as the original page. */
.gth-after{background:#050810;color:rgba(255,255,255,.4);font-family:'GTH Pretendard',sans-serif;font-size:13px;font-weight:500;letter-spacing:.2em;display:flex;align-items:center;justify-content:center}
.gth-after{position:relative;min-height:60vh}
