/* ============================================================
   AX HACKATHON 2026 · 시안2 — 테크 컨퍼런스
   Scroll-driven landing framework. Built on JoCoding AX tokens.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  /* tweakable runtime vars (driven by panel) */
  --accent:       var(--ax-orange);        /* #FBB03B */
  --accent-deep:  var(--ax-orange-hot);    /* #EA580C */
  --accent-glow:  rgba(251, 176, 59, .55);
  --grid-line:    transparent;             /* all-black: no grid texture */
  --si:           1;                        /* scroll-intensity multiplier (JS reads) */

  --ink:          #000000;
  --ink-2:        #000000;
  --ink-soft:     #0c0c10;
  --line-dark:    rgba(255, 255, 255, .12);
  --paper:        #000000;
  --paper-2:      #0c0c10;

  --maxw:         1200px;
  --ease:         cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* 한글은 어절(공백) 단위로만 줄바꿈 — 단어 중간 깨짐 방지(모바일 전역).
     긴 영문/URL 토큰만 break-word 폴백으로 오버플로 방지. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

::selection { background: var(--accent); color: var(--ink); }

.mono {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* ---------- shared section frame ---------- */
.section {
  position: relative;
  z-index: 1;
}
.wrap {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* dark vs light section bodies */
.section--dark  { background: var(--ink);   color: #fff; }
.section--ink2  { background: var(--ink-2);  color: #fff; }
.section--light { background: var(--paper);  color: var(--ax-ink); }

/* full-dark tweak: collapse light sections into dark */
[data-bgmode="dark"] .section--light { background: var(--ink-2); color: #fff; }
[data-bgmode="dark"] .section--light .why__card {
  background: var(--ink-soft);
  border-color: var(--line-dark);
  color: #fff;
}
[data-bgmode="dark"] .section--light .why__lede { color: #fff; }
[data-bgmode="dark"] .section--light .why__muted,
[data-bgmode="dark"] .section--light .why__card p { color: rgba(255,255,255,.6); }

/* ============================================================
   STICKY CHROME — header, progress bar, chapter rail
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled="true"] {
  background: rgba(7, 6, 12, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__dot {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  display: grid; place-items: center;
  font-weight: 900; font-size: 13px; letter-spacing: -.02em;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: box-shadow .5s var(--ease);
}
.brand:hover .brand__dot { box-shadow: 0 0 22px 0 var(--accent-glow); }
.brand__word { font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.brand__word b { color: var(--accent); }
/* Korean wordmark — Pretendard Black, tighter tracking for 한글 presence */
.brand__word--ko { font-weight: 900; font-size: 16px; letter-spacing: -.03em; }
.brand__word--ko b { font-weight: 900; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.6); text-decoration: none;
  transition: color .2s var(--ease);
}
.site-nav a:hover { color: #fff; }
.btn-apply {
  font-weight: 800; font-size: 13px;
  color: var(--ink);
  background: var(--accent);
  border: 0; border-radius: 999px;
  padding: 11px 20px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; box-sizing: border-box;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent-glow); }
@media (max-width: 760px) { .site-nav { display: none; } }

/* top progress bar */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--ax-purple), var(--accent));
  z-index: 70;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .1s linear;
}

/* chapter rail (right side, desktop) */
.chapter-rail {
  position: fixed;
  right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 55;
  display: flex; flex-direction: column; gap: 16px;
}
.chapter-rail button {
  all: unset;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  justify-content: flex-end;
}
.chapter-rail .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.28);
  transition: all .3s var(--ease);
  flex: none;
}
.chapter-rail .clabel {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.0);
  transform: translateX(6px);
  transition: all .3s var(--ease);
  white-space: nowrap;
  mix-blend-mode: difference;
}
.chapter-rail button:hover .clabel { color: rgba(255,255,255,.7); transform: translateX(0); }
.chapter-rail button[aria-current="true"] .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: scale(1.15);
}
.chapter-rail button[aria-current="true"] .clabel { color: #fff; transform: translateX(0); }
@media (max-width: 980px) { .chapter-rail { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 4vw, 48px) 80px;
  overflow: hidden;
  background: var(--ink);
}
/* parallax grid layer */
.hero__grid {
  position: absolute; inset: -20% -10%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, #000 35%, transparent 78%);
  will-change: transform;
  z-index: 0;
}
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 90vw; height: 90vw; max-width: 1100px; max-height: 1100px;
  left: 50%; top: 38%; transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(102,9,186,.42) 0%, transparent 58%),
    radial-gradient(circle at 62% 38%, var(--accent-glow) 0%, transparent 42%);
  filter: blur(20px);
  will-change: transform;
}
.hero__inner { position: relative; z-index: 2; width: min(100% - 0px, var(--maxw)); margin-inline: auto; }

.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(56px, 13.5vw, 210px);
  line-height: .86;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.hero__title .ln { display: block; will-change: transform; }
.hero__title .ln span { display: inline-block; }
.hero__title .ln--2 { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.45); text-stroke: 1.5px rgba(255,255,255,.45); }
.hero__title .ln--3 .hot { color: var(--accent); }

.hero__sub {
  margin: 30px 0 0;
  font-size: clamp(19px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.92);
}
.hero__sub .u {
  background: linear-gradient(transparent 62%, var(--accent-glow) 62%);
  padding: 0 .12em;
}
.hero__lede {
  margin: 18px 0 0;
  max-width: 32em;
  font-size: clamp(15.5px, 1.6vw, 19px);
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}
.hero__lede b { color: #fff; font-weight: 700; }

.hero__meta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.metachip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em;
  color: rgba(255,255,255,.82);
}
.metachip b { color: #fff; font-weight: 700; }
.metachip .k { color: var(--accent); }
.metachip--free { border-color: var(--accent); color: var(--accent); }
.metachip--free b { color: var(--accent); }

.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-primary {
  font-weight: 900; font-size: 16px;
  color: var(--ink);
  background: var(--accent);
  border: 0; border-radius: 999px;
  padding: 17px 30px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 38px -14px var(--accent-glow);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -12px var(--accent-glow); }
.btn-primary .arr { transition: transform .25s var(--ease); }
.btn-primary:hover .arr { transform: translateX(4px); }
.btn-ghost {
  font-weight: 700; font-size: 14px;
  color: rgba(255,255,255,.85);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 16px 26px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }

.hero__scrollcue {
  /* 하단 고정 CTA 바(높이 ~63px)에 가려 안 보이던 문제 → dock 위로 충분히 올려
     화면 하단 중앙에 또렷이 보이게. 색·그림자도 강화해 사진 배경 위 가독성 확보. */
  position: absolute; left: 50%; bottom: clamp(86px, 13vh, 132px); transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.hero__scrollcue .bar {
  width: 2px; height: 52px; border-radius: 2px;
  background: linear-gradient(rgba(255,255,255,.75), transparent);
  position: relative; overflow: hidden;
}
.hero__scrollcue .bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* terminal ticker under hero meta */
.term {
  margin-top: 30px;
  max-width: 540px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
  overflow: hidden;
  font-family: var(--font-mono); font-size: 13px;
}
.term__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-dark); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #3a3744; }
.term__bar i:first-child { background: var(--accent-deep); }
.term__bar span { margin-left: 8px; color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .05em; }
.term__body { padding: 13px 14px; color: rgba(255,255,255,.7); min-height: 44px; }
.term__body .p { color: var(--ax-purple-400); }
.term__body .g { color: var(--accent); }
.term__body .cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); margin-left: 2px; transform: translateY(2px); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   INTRO — pinned pure-black opener (word swap + tilted marquee)
   ============================================================ */
.intro { position: relative; height: 520vh; background: #000; }
.intro__stage {
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
  background: #000;
  display: grid; place-items: center;
}

.intro__words { grid-area: 1 / 1; position: relative; z-index: 2; display: grid; place-items: center; width: 100%; padding: 0 16px; transform: translateY(-6vh); transition: opacity .4s var(--ease); }
.intro__stage.reveal-on .intro__words { opacity: 0; }
.intro__words .word {
  grid-area: 1 / 1;
  margin: 0; text-align: center;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(58px, 15vw, 240px); line-height: .9; letter-spacing: -.05em;
  color: #fff;
  opacity: 0; transform: translateY(70px); filter: blur(6px);
  transition: opacity .72s var(--ease), transform .72s var(--ease), filter .72s var(--ease);
  will-change: transform, opacity;
}
.intro__words .word .hot { color: var(--accent); }
.intro__words .word.is-active { opacity: 1; transform: none; filter: none; }
.intro__words .word.is-past   { opacity: 0; transform: translateY(-70px); filter: blur(6px); }
.intro__words .word.is-next   { opacity: 0; transform: translateY(70px); filter: blur(6px); }

/* intro KING 모핑 — TREKKING의 KING이 "AX 해커톤의 KING이 되세요"로 자연 연계 */
.intro__king-col {
  grid-area: 1 / 1; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 1.6vh, 22px); padding: 0 20px; width: 100%;
  transform: translateY(-6vh);
  opacity: 0; transition: opacity .6s var(--ease); pointer-events: none;
}
.intro__stage.king-on .intro__king-col { opacity: 1; }
.intro__stage.king-on .intro__words { opacity: 0; }
.ik-row { display: flex; align-items: center; justify-content: center; }
.ik-trek, .ik-king {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(58px, 15vw, 240px); line-height: .9; letter-spacing: -.05em;
}
.ik-king { color: var(--accent); }
.ik-trek {
  color: #fff; display: inline-block; max-width: 4.2em; overflow: hidden; white-space: nowrap;
  transition: max-width .9s var(--ease), opacity .6s var(--ease);
}
.intro__stage.king-reveal .ik-trek { max-width: 0; opacity: 0; }
.ik-pre, .ik-post {
  font-weight: 800; font-size: clamp(22px, 3.6vw, 50px); letter-spacing: -.02em; color: #fff;
  opacity: 0; transform: translateY(10px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.intro__stage.king-reveal .ik-pre, .intro__stage.king-reveal .ik-post { opacity: 1; transform: none; }
/* 자막+마퀴가 드러나면 KING 메시지는 사라짐 */
.intro__stage.reveal-on .intro__king-col { opacity: 0; }

.intro__reveal {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(18px, 3.4vh, 40px);
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.intro__stage.reveal-on .intro__reveal { opacity: 1; transform: none; }
.intro__stage.reveal-on .hero__scrollcue { opacity: 0; }
.intro__sub {
  margin: 0; text-align: center;
  font-weight: 800; font-size: clamp(26px, 5vw, 60px); letter-spacing: -.03em; color: #fff;
}
.intro__sub .u { background: linear-gradient(transparent 62%, var(--accent-glow) 62%); padding: 0 .12em; }
/* 인트로 카피("당신은 이 기업들의" / "선택을 받을 수 있나요?") — 기본 sub보다 살짝 크게 */
.intro__sub--lg { font-size: clamp(30px, 5.7vw, 68px); }
.intro__caption { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: -8px; }
/* 캡션 글자만 제거하고, 캡션이 차지하던 공백(텍스트 높이 + flex gap)은 그대로 유지 */
.intro__caption-spacer { height: 14px; margin-top: -8px; pointer-events: none; }

/* 15° tilted company marquee */
.tilt { width: 132%; margin-left: -16%; display: flex; flex-direction: column; gap: 18px; transform: rotate(-11deg); }
.tilt__band { width: 100%; overflow: hidden; }
.tilt__row { display: flex; gap: 16px; width: max-content; will-change: transform; }
.tcard {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: clamp(116px, 12.5vw, 156px);
  height: clamp(116px, 12.5vw, 156px);
  display: flex; flex-direction: column; align-items: stretch;
  padding: 16px 14px 13px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.035);
}
/* logo / wordmark area — fills the square, centered (logos sit larger inside the same box) */
.tcard__logo { flex: 1; min-height: 0; display: grid; place-items: center; }
.tcard__logo img { max-width: 92%; max-height: 78%; width: auto; height: auto; object-fit: contain; display: block; }
/* text wordmark fallback (no logo file) */
.tcard__logo .mark { font-weight: 900; font-size: clamp(15px, 1.5vw, 21px); letter-spacing: -.02em; color: #fff; text-align: center; line-height: 1.12; }
/* company name — bottom of the box, high-contrast label */
.tcard__name { flex: 0 0 auto; height: 18px; margin-top: 9px; text-align: center; font-family: var(--font-sans); font-weight: 700; font-size: 12.5px; line-height: 18px; letter-spacing: -.01em; color: rgba(255,255,255,.96); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* long names (e.g. 조코딩AX파트너스) — shrink to stay on a single line */
.tcard__name--long { font-size: 10.5px; letter-spacing: -.04em; }
.tcard--hot { border-color: var(--accent); background: rgba(251,176,59,.06); }
.tcard--hot .tcard__name { color: var(--accent); }
.tcard--ok  .tcard__name { color: #fff; }
.tcard--dim .tcard__logo img { opacity: .85; }
.tcard--dim .tcard__name { color: rgba(255,255,255,.82); }
@media (max-width: 700px) { .tilt { width: 156%; margin-left: -28%; } }

/* ============================================================
   SIFT — 스크롤 고정(pin): 학벌·경력·커리어가 대각선으로 등장 →
   연기처럼 소멸 → 중앙에 "필요 없습니다" → "AI 역량만 보여주세요"
   (intro 다음 · LEAD 직전, pure-black)
   ============================================================ */
.sift { position: relative; height: 460vh; background: #000; }
.sift__stage {
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
  background: #000;
}
.sift__grid { position: absolute; inset: 0; }
.sift__word {
  position: absolute; margin: 0;
  font-weight: 900; letter-spacing: -.05em; line-height: .9; color: #fff;
  font-size: clamp(56px, 12vw, 184px);
  opacity: 0; transform: translateY(64px); filter: blur(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  will-change: transform, opacity, filter;
}
.sift__word.in { opacity: 1; transform: none; filter: none; }
/* 연기처럼 소멸 — 위로 떠오르며 크게 번지고 흐려짐 */
.sift__word.out { opacity: 0; transform: translateY(-46px) scale(1.08); filter: blur(26px); }
/* 대각선 고정 위치: 학벌(좌·상) → 경력(우·중) → 커리어(좌·하) */
.sift__word--a { top: 22%; left: clamp(16px, 5vw, 96px); }
.sift__word--b { top: 44%; right: clamp(16px, 5vw, 96px); }
.sift__word--c { top: 66%; left: clamp(40px, 13vw, 210px); }

/* 중앙 마무리 카피 — 소멸 후 순차 등장 */
.sift__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(16px, 3.4vh, 44px); pointer-events: none;
}
.sift__line {
  text-align: center; margin: 0;
  font-weight: 800; letter-spacing: -.03em; line-height: 1.16; color: #fff;
  font-size: clamp(30px, 5.6vw, 68px);
  opacity: 0; transform: translateY(30px); filter: blur(8px);
  transition: opacity .62s var(--ease), transform .62s var(--ease), filter .62s var(--ease);
}
.sift__line.in { opacity: 1; transform: none; filter: none; }
@media (max-width: 700px) {
  .sift__word--c { left: clamp(24px, 10vw, 140px); }
}

/* LEAD — body hero */
.lead {
  position: relative; min-height: 64svh;
  display: flex; align-items: center;
  padding: 118px clamp(20px, 4vw, 48px) 56px;
  overflow: hidden; background: var(--ink);
}
.lead__title {
  margin: 22px 0 22px;
  font-weight: 900; font-size: clamp(34px, 5.4vw, 78px); line-height: 1.04; letter-spacing: -.035em;
  max-width: 16ch;
}
.lead__title .mark { color: var(--accent); }
.lead__hot { background: linear-gradient(90deg, #B66162 0%, #F6A235 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ============================================================
   reveal utility (JS toggles .in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   STATS BAND (countup)
   ============================================================ */
.stats { padding: clamp(70px, 10vw, 130px) 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { position: relative; padding-left: 22px; }
.stat::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--accent); border-radius: 2px;
}
.stat__num {
  font-weight: 900;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -.04em;
  display: flex; align-items: baseline;
}
.stat__num .suf { font-size: .42em; margin-left: .12em; color: var(--accent); }
.stat__label { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.5; }
.stat__label b { color: #fff; font-weight: 700; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }

/* ============================================================
   WHY (light) — 차별점
   ============================================================ */
.why { padding: clamp(90px, 13vw, 170px) 0; }
.why__head { max-width: 34em; }
.why__lede {
  margin: 22px 0 0;
  font-weight: 900;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.why__lede .mark {
  background: linear-gradient(90deg, #B66162 0%, #F6A235 100%) left bottom / 100% 40% no-repeat;
  padding: 0 .08em;
}
.why__muted { margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: var(--ax-grey-500); max-width: 34em; }
.why__cards {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.why__card {
  background: var(--paper-2);
  border: 1px solid var(--ax-grey-200);
  border-radius: 22px;
  padding: 34px;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why__card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -24px rgba(102,9,186,.3); }
.why__card .tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ax-purple);
}
.why__card h3 { margin: 14px 0 10px; font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
.why__card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ax-grey-500); }
.why__card .big {
  position: absolute; right: 18px; bottom: -18px;
  font-weight: 900; font-size: 120px; line-height: 1;
  color: rgba(102,9,186,.07); letter-spacing: -.05em;
  pointer-events: none;
}
@media (max-width: 760px) { .why__cards { grid-template-columns: 1fr; } }

/* compare strip */
.compare { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare__col { border-radius: 18px; padding: 24px; }
.compare__col--old { background: rgba(14,14,14,.04); border: 1px solid var(--ax-grey-200); }
.compare__col--new { background: var(--ax-ink); color: #fff; }
.compare__col h4 { margin: 0 0 14px; font-size: 13px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.compare__col--old h4 { color: var(--ax-grey-500); }
.compare__col--new h4 { color: var(--accent); }
.compare__col li { list-style: none; padding: 9px 0 9px 26px; position: relative; font-size: 14.5px; line-height: 1.4; border-top: 1px solid; }
.compare__col--old li { border-color: var(--ax-grey-200); color: var(--ax-grey-700); }
.compare__col--new li { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.92); }
.compare__col ul { margin: 0; padding: 0; }
.compare__col li::before { position: absolute; left: 0; top: 9px; font-weight: 800; }
.compare__col--old li::before { content: "✕"; color: var(--ax-grey-400); }
.compare__col--new li::before { content: "✓"; color: var(--accent); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ============================================================
   HOW — pinned 3-step sequence
   ============================================================ */
.pin-track { position: relative; height: 360vh; background: var(--ink-2); }
.pin-stage {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.pin-stage__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.pin-inner { position: relative; z-index: 2; width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.pin-stage__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.pin-stage__head .eyebrow { margin: 0; }

/* step progress pills */
.stepbar { display: flex; gap: 10px; }
.stepbar .pill {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: rgba(255,255,255,.4);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-dark);
  transition: all .4s var(--ease);
}
.stepbar .pill.on { color: var(--ink); background: var(--accent); border-color: var(--accent); }

.steps { position: relative; min-height: 46vh; }
.step {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  opacity: 0; transform: translateY(40px) scale(.98);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step__no {
  font-weight: 900; font-size: clamp(60px, 9vw, 150px); line-height: .9;
  letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px var(--accent); text-stroke: 2px var(--accent);
}
.step__k { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 18px 0 8px; }
.step h3 { margin: 0 0 14px; font-weight: 900; font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -.03em; line-height: 1.04; }
.step p { margin: 0; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.65; color: rgba(255,255,255,.66); max-width: 26em; }
.step__visual {
  aspect-ratio: 4/3;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 25%, rgba(102,9,186,.3), transparent 60%),
    var(--ink-soft);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.step__visual .ph {
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.34);
  letter-spacing: .08em; text-transform: uppercase;
}
.step__visual .ico { width: 30%; height: 30%; color: var(--accent); opacity: .9; }
.step__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px);
}
@media (max-width: 820px) {
  .pin-track { height: 320vh; }
  .step { grid-template-columns: 1fr; gap: 22px; }
  .step__visual { display: none; }
  .pin-stage__head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HIRE — killer hook (dark)
   ============================================================ */
.hire { padding: clamp(90px, 14vw, 190px) 0; position: relative; overflow: hidden; background: var(--ink); }
.hire__glow {
  position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(102,9,186,.32), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hire__inner { position: relative; z-index: 2; }
.hire__big {
  margin: 24px 0 0;
  font-weight: 900;
  font-size: clamp(34px, 6.6vw, 92px);
  line-height: 1.02; letter-spacing: -.04em;
  max-width: 16ch;
}
.hire__big .flow {
  display: inline-flex; align-items: center; gap: .3em; flex-wrap: wrap;
}
.hire__big .chip {
  color: var(--accent);
}
.hire__big .arrow { color: var(--ax-purple-400); }
.hire__row { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hire__cell {
  border: 1px solid var(--line-dark); border-radius: 18px;
  padding: 26px; background: rgba(255,255,255,.02);
}
.hire__cell .n { font-weight: 900; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.03em; }
.hire__cell .n .suf { color: var(--accent); font-size: .55em; }
.hire__cell .t { margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.55; }
@media (max-width: 760px) { .hire__row { grid-template-columns: 1fr; } }

/* ============================================================
   PARTNERS — horizontal logo wall (pinned)
   ============================================================ */
.hwall-track { position: relative; height: 320vh; background: var(--paper); }
[data-bgmode="dark"] .hwall-track { background: var(--ink-2); }
.hwall-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hwall-head { width: min(100% - 48px, var(--maxw)); margin: 0 auto 44px; }
.hwall-head h2 { margin: 16px 0 0; font-weight: 900; font-size: clamp(28px, 4.6vw, 60px); letter-spacing: -.03em; color: var(--ax-ink); }
[data-bgmode="dark"] .hwall-head h2 { color: #fff; }
.hwall-head .eyebrow { margin: 0; }
.hwall-viewport { width: 100%; overflow: hidden; }
.hwall-row { display: flex; gap: 26px; padding-left: max(24px, calc((100vw - var(--maxw)) / 2)); will-change: transform; }
.logo-card {
  flex: 0 0 auto;
  width: 320px; height: 200px;
  border-radius: 22px;
  background: var(--paper-2);
  border: 1px solid var(--ax-grey-200);
  padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
[data-bgmode="dark"] .logo-card { background: var(--ink-soft); border-color: var(--line-dark); }
.logo-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo-card__mark {
  font-weight: 900; font-size: 26px; letter-spacing: -.03em; color: var(--ax-ink);
  word-break: keep-all;   /* 한글 어절 단위 줄바꿈 — '조코딩AX파트/너스' 같은 단어 중간 깨짐 방지 */
}
/* 긴 사명(조코딩AX파트너스)은 로고와 한 줄에 들어오도록 한 줄 고정 — 모바일에선 폭이 좁아
   폰트를 줄여 카드 한 칸에 깔끔히 수용한다(데스크탑은 카드가 넓어 26px로도 한 줄에 들어감). */
.logo-card__mark--long { white-space: nowrap; }
@media (max-width: 820px) { .logo-card__mark--long { font-size: 20px; } }
[data-bgmode="dark"] .logo-card__mark { color: #fff; }
/* 로고 자리: 정사각형 박스 제거. 각 로고의 원래 비율을 그대로 두고
   높이만 맞춰서(폭은 auto) 카드 우상단에 자연스럽게 배치한다.
   카드 크기·텍스트 위치는 건드리지 않음. */
.logo-card__logo {
  flex: 0 0 auto;
  height: 34px; max-width: 156px;
  display: flex; align-items: center; justify-content: flex-end;
  overflow: visible;
}
.logo-card__logo img,
.logo-card__logo svg {
  height: 100%; width: auto;
  max-width: 156px; max-height: 100%;
  object-fit: contain; display: block;
}
.logo-card__desc { font-size: 13.5px; line-height: 1.5; color: var(--ax-grey-500); word-break: keep-all; }
[data-bgmode="dark"] .logo-card__desc { color: rgba(255,255,255,.55); }
.logo-card__desc b { color: var(--ax-ink); font-weight: 700; }
[data-bgmode="dark"] .logo-card__desc b { color: #fff; }
/* desc + 채용 검토 라인을 카드 하단에 함께 묶음 (top 은 위, foot 은 아래로 space-between 유지) */
.logo-card__foot { display: flex; flex-direction: column; }
/* 채용 검토 라인을 기업소개(desc) 위로 올리고 흰색으로 표기 */
.logo-card__hire { order: -1; margin: 0 0 7px; font-size: 12.5px; font-weight: 800; color: #fff; letter-spacing: -.01em; line-height: 1.4; word-break: keep-all; }
.logo-card__hire span { font-weight: 700; opacity: .65; }
.logo-card--cta {
  background: var(--ax-purple); color: #fff;
  justify-content: center; align-items: flex-start;
}
.logo-card--cta .logo-card__mark { color: #fff; }
.logo-card--cta p { font-size: 14px; color: rgba(255,255,255,.78); margin: 8px 0 0; }
@media (max-width: 820px) { .hwall-track { height: 260vh; } .logo-card { width: 260px; height: 180px; } .logo-card__logo { height: 28px; max-width: 124px; } }

/* ============================================================
   FAQ — accordion (partners 다음 · apply 직전)
   ============================================================ */
.faq { padding: clamp(28px, 4vw, 56px) 0 clamp(80px, 12vw, 150px); background: var(--ink-2); color: #fff; }
.faq__wrap { width: min(100% - 48px, 920px); }
.faq__head { margin-bottom: clamp(34px, 5vw, 56px); }
.faq__head h2 { margin: 18px 0 0; font-weight: 900; font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -.03em; color: #fff; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--line-dark); border-radius: 16px;
  background: var(--ink-soft); overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq__item:hover { border-color: rgba(255,255,255,.22); }
.faq__item[open] { border-color: rgba(251,176,59,.45); }
.faq__q {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px);
  font-weight: 700; font-size: clamp(16px, 1.9vw, 20px); letter-spacing: -.01em; color: #fff;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { flex: 0 0 auto; position: relative; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after  { top: 0; left: 9px; width: 2px; height: 20px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a {
  padding: 0 clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 26px);
  font-size: clamp(14px, 1.6vw, 16px); line-height: 1.72; color: rgba(255,255,255,.62);
}
.faq__item[open] .faq__a { animation: faqIn .42s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq__a b { color: rgba(255,255,255,.92); font-weight: 700; }
.faq__a a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(251,176,59,.4); }
.faq__a a:hover { border-bottom-color: var(--accent); }

/* ============================================================
   VENUE — D-DAY 카운트다운(좌) + 본선 장소 약도(우)
   선발 여정(JOURNEY) 바로 아래
   ============================================================ */
.venue { padding: clamp(56px, 8vw, 110px) 0; background: var(--ink-2); color: #fff; }
.venue__grid {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(24px, 4vw, 44px);
}

/* 좌: D-DAY (박스 없이 텍스트·시계만) */
.venue__dday {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(16px, 2.4vh, 26px);
}
/* 타임라인 카드 제목(.tl-card__top h3, "결승 · 결과") 텍스트 스타일 차용 */
.venue__dline { margin: 0; font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; color: #fff; }
.venue__dline b { color: #FF4D4D; font-weight: 800; }
.countdown__clock { display: flex; align-items: flex-start; gap: clamp(11px, 1.5vw, 22px); }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: clamp(11px, 1.2vw, 16px); }
/* flip-clock tile — matte two-flap body split by a mechanical seam (Solari / split-flap) */
.cd-tile {
  position: relative;
  width: clamp(68px, 7.6vw, 108px);
  height: clamp(82px, 9.2vw, 126px);
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(180deg, #2c2c30 0%, #242428 49.6%, #19191c 50.4%, #101012 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 2px 3px rgba(0,0,0,.45),
    0 20px 32px -16px rgba(0,0,0,.9);
  overflow: hidden;
}
/* upper flap drops a soft shadow onto the lower flap, just below the seam */
.cd-tile::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 16px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.42), transparent);
}
/* the split line (hairline gap + lower-flap top highlight) */
.cd-tile::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; transform: translateY(-1px); z-index: 3; pointer-events: none;
  background: rgba(0,0,0,.85);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.cd-num {
  position: relative; z-index: 1;
  font-family: "Oswald", var(--font-sans);
  font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(50px, 6.6vw, 86px); line-height: 1; letter-spacing: .01em;
  /* satin metal, slightly shadowed below the seam — flatter than a glossy gradient */
  background: linear-gradient(180deg, #fcfcfd 0%, #ededee 50%, #cfcfd3 50%, #f1f1f3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.35));
}
.cd-cap {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(9px, 1vw, 12px); letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent);
}
.venue__date { margin: 0; font-family: var(--font-mono); font-size: clamp(11px, 1.3vw, 14px); letter-spacing: .03em; color: rgba(255,255,255,.55); }

/* 우: 본선 장소 — 실제 네이버 지도 박스(폴백 약도 포함)
   ※ 명시적 width/height(정사각형)로 둠 — aspect-ratio 부모 안의
     position:absolute 지도 컨테이너가 높이를 0으로 받는 버그 회피 */
.venue__map {
  position: relative; overflow: hidden;
  /* 선발여정 카드(≈452×190)와 비율 통일: 높이=카드 높이, 너비=카드 너비×2 */
  width: clamp(300px, 71vw, 904px); height: clamp(170px, 14.8vw, 190px);
  border: 1px solid var(--line-dark); border-radius: 12px;
  color: #fff; isolation: isolate;
}
/* 드래그=지도 이동. 라벨/지도 텍스트가 ::selection(액센트 보색)으로 강조되지 않도록 선택 차단 */
.venue__map, .venue__map * { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.venue-map__live { position: absolute; inset: 0; width: 100%; height: 100%; background: #0c0c10; }
.venue-map__live > * { border-radius: inherit; }
.venue-map__fallback { position: absolute; inset: 0; display: none; }
.venue__map.is-fallback .venue-map__live { display: none; }
.venue__map.is-fallback .venue-map__fallback { display: block; }
.venue-map__canvas {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(251,176,59,.14), transparent 58%),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 46px),
    #0c0c10;
}
/* 가상의 주요 도로 2줄(약도 느낌) */
.venue-map__canvas::before, .venue-map__canvas::after {
  content: ""; position: absolute; background: rgba(255,255,255,.09);
}
.venue-map__canvas::before { left: 0; right: 0; top: 46%; height: 10px; transform: rotate(-7deg); }
.venue-map__canvas::after  { top: 0; bottom: 0; left: 50%; width: 8px; transform: translateX(-50%) rotate(6deg); }
/* 중앙 핀 */
.venue-map__pin {
  position: absolute; left: 50%; top: 46%; width: 18px; height: 18px;
  transform: translate(-50%, -50%); z-index: 2;
  background: var(--accent); border-radius: 50% 50% 50% 0;
  box-shadow: 0 0 0 4px rgba(251,176,59,.22), 0 6px 16px -4px rgba(0,0,0,.6);
}
.venue-map__pin::after { content: ""; position: absolute; left: 50%; top: 46%; width: 6px; height: 6px; background: #0c0c10; border-radius: 50%; transform: translate(-50%,-50%) rotate(45deg); }
.venue-map__pulse {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(251,176,59,.5);
  animation: venuePulse 2.2s ease-out infinite;
}
@keyframes venuePulse { 0% { transform: translate(-50%,-50%) scale(1); opacity: .6; } 100% { transform: translate(-50%,-50%) scale(5.5); opacity: 0; } }
.venue-map__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  margin: 12px; padding: 12px 14px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; color: #fff;
  background: rgba(8,8,12,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark);
  transition: border-color .25s var(--ease);
}
/* 전역 a:hover(보라색·밑줄)가 라벨 텍스트에 새어 나오지 않도록 모든 상태에서 흰색 고정 */
.venue-map__label,
.venue-map__label:link,
.venue-map__label:visited,
.venue-map__label:hover,
.venue-map__label:focus,
.venue-map__label:active { color: #fff; text-decoration: none; }
.venue-map__label:hover { border-color: rgba(251,176,59,.55); }
.venue-map__label b,
.venue-map__label:hover b { color: #fff; font-weight: 800; font-size: clamp(15px, 1.8vw, 19px); letter-spacing: -.01em; }
.venue-map__addr { font-size: clamp(11.5px, 1.3vw, 13px); color: rgba(255,255,255,.6); }
.venue-map__cta { margin-top: 3px; font-family: var(--font-mono); font-size: clamp(11px, 1.2vw, 13px); letter-spacing: .04em; color: var(--accent); }
.venue-map__label:hover .venue-map__cta { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .venue-map__pulse { animation: none; } }
@media (max-width: 760px) {
  .venue__grid { grid-template-columns: 1fr; gap: clamp(28px, 7vw, 44px); justify-items: start; }
  .venue__map { width: 100%; height: clamp(190px, 52vw, 240px); }
}
@media (max-width: 420px) { .countdown__clock { gap: 8px; } }

/* ============================================================
   FINAL CTA + footer
   ============================================================ */
.final { position: relative; padding: clamp(100px, 16vw, 220px) 0 0; background: var(--ink); text-align: center; }
.final__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
}
.final__inner { position: relative; z-index: 2; }
.final h2 {
  margin: 22px auto 0; max-width: 16ch;
  font-weight: 900; font-size: clamp(40px, 8vw, 124px); line-height: .96; letter-spacing: -.045em;
  text-transform: uppercase;
}
.final h2 .hot { color: var(--accent); }
.final__kicker { font-family: var(--font-mono); font-size: clamp(12px, 1.4vw, 15px); letter-spacing: .2em; color: rgba(255,255,255,.5); margin-bottom: clamp(16px, 2vw, 28px); }
.final__king { color: var(--accent); animation: kingGlow 2.4s var(--ease) infinite; }
@keyframes kingGlow { 0%, 100% { text-shadow: 0 0 16px var(--accent-glow); } 50% { text-shadow: 0 0 42px var(--accent-glow), 0 0 10px var(--accent-glow); } }
@media (prefers-reduced-motion: reduce) { .final__king { animation: none; } }

/* final CTA — scroll word sequence + KING morph */
.final { padding: 0; }
.final__pin { position: relative; height: 400vh; }
.final__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--ink); }

/* phase 0-1: HACKING / MAKING */
/* HACKING·MAKING은 TRACKING(fk-row)과 정확히 같은 화면 중앙에 와야 한다.
   (예전 translateY(-64px)는 단어를 64px 위로 올려, MAKING→TRACKING 전환 때
    TRACKING이 갑자기 64px 아래로 떨어져 보이는 버그를 유발했음 → 제거) */
.final__words { grid-area: 1 / 1; position: relative; z-index: 2; display: grid; place-items: center; width: 100%; padding: 0 16px; transition: opacity .35s var(--ease); }
.final__sticky.king-on .final__words { opacity: 0; }
.final__words .fword { grid-area: 1 / 1; margin: 0; text-align: center; font-weight: 900; text-transform: uppercase; font-size: clamp(54px, 14vw, 200px); line-height: .9; letter-spacing: -.05em; color: #fff; opacity: 0; transform: translateY(70px); filter: blur(6px); transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease); }
.final__words .fword.is-active { opacity: 1; transform: none; filter: none; }
.final__words .fword.is-past { opacity: 0; transform: translateY(-70px); filter: blur(6px); }
.final__words .fword.is-next { opacity: 0; transform: translateY(70px); filter: blur(6px); }

/* phase 2-3: KING composition (KING persists from TREKKING) */
.final__king-col { grid-area: 1 / 1; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(6px, 1.2vh, 16px); padding: 0 20px; opacity: 0; transition: opacity .4s var(--ease); }
.final__sticky.king-on .final__king-col { opacity: 1; }
.fk-row { display: flex; align-items: center; justify-content: center; }
.fk-trek, .fk-king { font-weight: 900; text-transform: uppercase; font-size: clamp(54px, 14vw, 200px); line-height: .9; letter-spacing: -.05em; }
.fk-king { color: var(--accent); }
.fk-trek { color: #fff; display: inline-block; max-width: 4em; overflow: hidden; white-space: nowrap; transition: max-width .6s var(--ease), opacity .45s var(--ease); }
.final__sticky.reveal-on .fk-trek { max-width: 0; opacity: 0; }
.fk-ijen, .fk-post { font-weight: 700; font-size: clamp(20px, 3vw, 40px); letter-spacing: -.02em; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.final__sticky.reveal-on .fk-ijen, .final__sticky.reveal-on .fk-post { opacity: 1; transform: none; }
/* 하단 고정 CTA — HACKING이 뜨는 순간(섹션 핀)부터 끝까지 상시 노출 */
.final__cta { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 4; margin: 0; padding: 0 16px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.final__sticky.cta-on .final__cta { opacity: 1; transform: none; pointer-events: auto; }
/* 스크롤 안내 — HACKING·MAKING 구간(핀됨 & 아직 king-on 아님)에서만 노출, CTA 위에 위치 */
.final__scrollcue { position: absolute; left: 50%; bottom: clamp(188px, 26vh, 240px); transform: translateX(-50%); z-index: 4; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.final__sticky.cta-on:not(.king-on) .final__scrollcue { opacity: 1; }
.fbox { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: clamp(190px, 22vw, 280px); min-height: clamp(62px, 8vh, 86px); padding: 16px 28px; border-radius: 16px; font-weight: 800; font-size: clamp(15px, 1.6vw, 18px); text-decoration: none; transition: transform .2s var(--ease), box-shadow .3s var(--ease); }
.fbox--primary { background: linear-gradient(95deg, var(--ax-purple-600) 0%, var(--accent) 90%); color: #fff; box-shadow: 0 14px 34px -14px var(--accent-glow); }
.fbox--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px var(--accent-glow); color: #fff; text-decoration: none; }
.fbox--primary .arr { transition: transform .25s var(--ease); }
.fbox--primary:hover .arr { transform: translateX(4px); }
.fbox--ghost { background: transparent; border: 1px solid var(--line-dark); color: #fff; }
.fbox--ghost:hover { border-color: rgba(255,255,255,.5); }
@media (max-width: 560px) { .fbox { min-width: 80vw; } }
.final p { margin: 22px auto 0; max-width: 30em; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.6); }
.final__deadline { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: rgba(255,255,255,.45); }
.final__deadline b { color: var(--accent); }

.site-footer {
  position: relative; z-index: 2;
  margin-top: clamp(90px, 12vw, 150px);
  border-top: 1px solid var(--line-dark);
  padding: 48px clamp(20px, 4vw, 48px) 40px;
  text-align: left;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.site-footer .f-brand { display: flex; align-items: center; gap: 11px; }
.site-footer .f-meta { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); }
.site-footer .f-meta b { color: #fff; font-weight: 600; }
.site-footer .f-contact { font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.8; text-align: right; }
.site-footer .f-contact a { color: var(--accent); text-decoration: none; }
@media (max-width: 700px) { .site-footer .f-contact { text-align: left; } }

/* tweaks mount */
.brand__mark { width: 32px; height: 32px; display: block; flex: none; }
#tweaks-root { position: fixed; z-index: 90; }

/* ============================================================
   JOURNEY — 선발 여정 alternating timeline
   ============================================================ */
.journey { padding: clamp(80px, 12vw, 160px) 0; background: #000; }
.journey__head { text-align: center; margin-bottom: clamp(48px, 7vw, 90px); }
.journey__title { font-weight: 700; font-size: clamp(30px, 5vw, 64px); letter-spacing: -.03em; color: #fff; margin: 0; }
.journey__sub { margin: 14px 0 0; font-size: clamp(14px, 1.6vw, 18px); color: rgba(255,255,255,.55); }

.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.tl-line { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--line-dark) 8%, var(--line-dark) 92%, transparent); }

.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 90px); margin-bottom: clamp(28px, 4vw, 56px); }
.tl-item:last-child { margin-bottom: 0; }
.tl-node { position: absolute; left: 50%; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: #0c0c10; border: 2px solid var(--accent); transform: translateX(-50%); z-index: 2; }
.tl-node--final { background: var(--accent); box-shadow: 0 0 0 5px rgba(251,176,59,.18); }

.tl-card { grid-column: 1; background: #0c0c10; border: 1px solid var(--line-dark); border-radius: 18px; padding: clamp(22px, 2.4vw, 30px); }
.tl-item--right .tl-card { grid-column: 2; }
.tl-date { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--accent); margin-bottom: 12px; }
.tl-card__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tl-card__top h3 { margin: 0; font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; color: #fff; }
.tl-badge { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: rgba(255,255,255,.7); }
.tl-card p { margin: 0; font-size: clamp(14px, 1.5vw, 15.5px); line-height: 1.65; color: rgba(255,255,255,.6); }
.tl-card p b { color: #fff; font-weight: 600; }

.tl-card--final {
  background:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.36) 100%),
    linear-gradient(125deg, var(--ax-purple-deep) 0%, var(--ax-purple) 52%, var(--accent-deep) 112%);
  border: 0; background-clip: padding-box;
}
.tl-card--final .tl-date--final { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tl-card--final h3 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.38); }
.tl-badge--final { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.38); color: #fff; backdrop-filter: blur(2px); }
.tl-card--final p { color: rgba(255,255,255,.94); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tl-meta { margin-top: 18px; border-radius: 12px; background: rgba(0,0,0,.22); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(255,255,255,.82); }
.tl-meta__k { color: var(--accent); font-weight: 600; margin-right: 8px; }

/* scroll reveal — alternate slide-in direction */
.tl-item.reveal { opacity: 0; }
.tl-item--right.reveal { transform: translate(120px, 24px); }
.tl-item--left.reveal { transform: translate(-120px, 24px); }
.tl-item.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .tl-line { left: 7px; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-card, .tl-item--right .tl-card { grid-column: 1; margin-left: 30px; }
  .tl-node { left: 7px; }
  .tl-item--right.reveal, .tl-item--left.reveal { transform: translate(0, 20px); }
}

/* ============================================================
   ALL-BLACK OVERRIDE — pure #000, mono, single rare accent
   (숏테인먼트 reference direction)
   ============================================================ */
body { background: #000; }
.section--light { background: #000; color: #fff; }

/* kill atmospheric glows — pure flat black */
.hero__glow, .hire__glow { display: none !important; }

/* WHY cards → dark surface */
.why__lede { color: #fff; }
.why__muted { color: rgba(255,255,255,.58); }
.why__card { background: var(--paper-2); border-color: var(--line-dark); }
.why__card:hover { box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); transform: translateY(-5px); }
.why__card .tag { color: var(--accent); }
.why__card h3 { color: #fff; }
.why__card p { color: rgba(255,255,255,.58); }
.why__card .big { color: rgba(255,255,255,.05); }

/* compare strip → dark */
.compare__col--old { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.compare__col--old h4 { color: rgba(255,255,255,.5); }
.compare__col--old li { border-color: var(--line-dark); color: rgba(255,255,255,.66); }
.compare__col--old li::before { color: rgba(255,255,255,.32); }
.compare__col--new { background: #0c0c10; border: 1px solid var(--line-dark); }

/* partners wall → dark */
.hwall-track { background: #000; }
.hwall-head h2 { color: #fff; }
.logo-card { background: var(--paper-2); border-color: var(--line-dark); }
.logo-card__mark { color: #fff; }
.logo-card__desc { color: rgba(255,255,255,.55); }
.logo-card__desc b { color: #fff; }
.logo-card__logo { border: 0; background: none; }

/* stats / hire borders softer on pure black */
.stats { border-color: var(--line-dark); }

/* ============================================================
   IMPACT — 숏테인먼트 reference layout, all-black
   ============================================================ */
.impact { padding: clamp(16px, 2.5vw, 36px) 0 clamp(80px, 12vw, 150px); }
.impact__kicker { text-align: center; font-weight: 700; font-size: clamp(20px, 3vw, 40px); letter-spacing: -.01em; color: #fff; margin-bottom: clamp(28px, 4vw, 56px); }

/* full-bleed 9:16 content strip — bigger boxes, horizontal slide */
/* pinned horizontal photo slide */
.impact__strip-pin { position: relative; height: 200vh; }
.impact__strip-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.impact__strip {
  display: flex; gap: 14px; align-items: stretch;
  width: max-content; height: clamp(380px, 46vw, 600px);
  padding: 0 clamp(20px, 5vw, 80px); margin: 0;
  will-change: transform;
}
/* 카드 = 원래 9:16 박스 그대로(이전 위치·간격 복구). 캡션은 absolute로 박스 밖에 띄워 레이아웃에 영향 0 */
.impact__strip .wave-card {
  flex: 0 0 auto; width: auto; height: 100% !important;
  aspect-ratio: 9 / 16; display: block; position: relative;
  scroll-snap-align: center; animation: none;
}
.impact__strip .wave-card__box {
  width: 100%; height: 100%; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line-dark); background: #0c0c10;
}
.impact__strip .wave-card__box > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.impact__strip .wave-card__box.is-split { display: flex; flex-direction: column; }
.impact__strip .wave-card__box.is-split img { width: 100%; height: 50%; object-fit: cover; display: block; }
/* 출처/연도 caption — 박스 바로 아래에 absolute로 배치(레이아웃 너비/높이 영향 없음). 카드 내부라 함께 슬라이드 */
.impact__strip .wave-card__src {
  position: absolute; top: calc(100% + clamp(7px, 0.9vw, 11px)); left: 0; width: 100%;
  text-align: center; white-space: nowrap;
  font-size: clamp(11px, 1.05vw, 13px); line-height: 1.3; letter-spacing: .01em;
  color: rgba(255, 255, 255, .55); padding: 0 4px;
}
@media (max-width: 720px) {
  .impact__strip { height: 132vw; padding: 0 12px; }
  .impact__strip .wave-card__src { font-size: 11px; }
}

/* board: metrics (left) · climax (right) · rising graph (behind) */
.impact__board-board-placeholder {}
.impact__title {
  margin: 0 0 clamp(32px, 4vw, 56px);
  font-weight: 700; font-size: clamp(26px, 3.8vw, 50px);
  line-height: 1.22; letter-spacing: -.02em; color: #fff;
}

/* board: metrics (left) · climax (right) · rising graph (behind) */
/* board: metrics (left) · climax (right) · rising graph (behind) */
.impact__pin { position: relative; height: 340vh; }
.impact__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.impact__strip-layer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; will-change: transform, opacity; }
.impact__board-layer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 10vh, 110px) 0 40px; opacity: 0; will-change: transform, opacity; }
.impact__board-layer > .wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.impact__board { position: relative; min-height: clamp(360px, 42vw, 540px); }
.impact__graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; opacity: 0; }
#linePath { fill: none; stroke: url(#lineGrad); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 11px var(--accent-glow)); stroke-dasharray: 4000; stroke-dashoffset: 4000; }
#lineA { stop-color: var(--accent); }
#lineB { stop-color: #ffe0a6; }
#areaPath { fill: url(#areaGrad); }
#areaTop { stop-color: var(--accent); stop-opacity: .16; }
#areaBtm { stop-color: var(--accent); stop-opacity: 0; }
#lineDot { fill: #fff; opacity: 0; filter: drop-shadow(0 0 7px var(--accent)); }

.impact__metrics {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, minmax(0, 190px));
  gap: clamp(28px, 4vw, 46px) clamp(40px, 6vw, 84px);
  max-width: 480px;
}
.metric__label { display: block; font-size: 14.5px; color: rgba(255,255,255,.85); margin-bottom: 8px; font-weight: 600; }
.metric__num { font-weight: 800; font-size: clamp(28px, 3.6vw, 50px); letter-spacing: -.02em; display: flex; align-items: baseline; color: #fff; white-space: nowrap; }
.metric__num .suf { font-size: .42em; margin-left: .14em; color: rgba(255,255,255,.78); font-weight: 600; white-space: nowrap; }
.impact__note { position: relative; z-index: 2; margin-top: clamp(34px, 5.5vw, 72px); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em; color: rgba(255,255,255,.62); }

.impact__climax { position: absolute; right: clamp(44px, 8vw, 150px); top: 50%; transform: translateY(-42%); text-align: center; z-index: 2; }
.plabel { display: block; font-size: clamp(13px, 1.4vw, 17px); color: rgba(255,255,255,.72); margin-bottom: 10px; font-weight: 500; }
.pnum { font-weight: 800; font-size: clamp(48px, 7.6vw, 118px); letter-spacing: -.03em; line-height: .95; display: inline-flex; align-items: baseline; color: #fff; }
.pnum .suf { font-size: .28em; margin-left: .1em; color: rgba(255,255,255,.6); font-weight: 500; }

@media (max-width: 760px) {
  .impact__board { min-height: 0; }
  .impact__metrics { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .impact__climax { position: static; transform: none; text-align: left; margin-top: clamp(40px, 8vw, 60px); }
  .impact__graph { position: relative; height: 200px; margin-top: 28px; }
}

/* terminal relocated into HOW · 풀이 step visual */
.step__visual--term { background: #0c0c10 !important; padding: 0 !important; }
.step__visual--term::before { display: none; }
.step__visual--term .term { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; background: transparent; }
/* 터미널이 4:3 박스의 위·아래를 꽉 채우도록 : 박스 높이를 가득 채우고(코드 로그를 여러 줄로 표시)
   본문 라인을 세로 중앙 정렬해 빈 공간 최소화. 글자도 박스 폭에 맞춰 키운다. */
.step__visual--term .term { display: flex; flex-direction: column; height: 100%; font-size: clamp(13px, 1.05vw, 16px); }
.step__visual--term .term__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(5px, 1.7vw, 22px); min-height: 0; padding-block: clamp(14px, 2.4vw, 28px); }
.term__ln { white-space: nowrap; line-height: 1.5; color: rgba(255,255,255,.84); overflow: hidden; text-overflow: ellipsis; }
/* real photos in HOW · 출제 / 평가 steps */
.step__visual--img { padding: 0 !important; background: #0c0c10 !important; }
.step__visual--img::before { display: none; }
.step__visual--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   TYPOGRAPHY CLEANUP — lighter, cleaner (reference feel)
   ============================================================ */
.lead__title, .why__lede, .hire__big, .hwall-head h2, .final h2, .step h3, .why__card h3 {
  font-weight: 700; letter-spacing: -.02em;
}
.lead__title, .why__lede { line-height: 1.18; }
.why__lede { font-size: clamp(28px, 4.2vw, 54px); }
.why__lede { position: sticky; top: clamp(68px, 9vh, 104px); z-index: 3; background: #000; padding: 14px 0 18px; }
.lead__title { white-space: nowrap; max-width: none; }
@media (max-width: 640px) { .lead__title { white-space: normal; font-size: clamp(24px, 7vw, 38px); } }
.stat__num, .hire__cell .n, .step__no { font-weight: 700; }
.metric__num, .pnum { font-weight: 800; }
.eyebrow { font-weight: 600; }

/* ============================================================================
   INTERVIEWS — 스크롤 고정 가로 슬라이더 (hwall-track 패턴 차용)
   섹션이 길고(track), 내부 stage가 sticky 로 화면을 고정한 뒤
   scroll.js 가 #ividRow 를 translateX 로 밀어 가로 슬라이드한다.
   ============================================================================ */
.ivid-track { position: relative; height: 240vh; background: #000; }
/* 상단 고정 헤더(65px)·하단 CTA 바(63px) 사이 안전영역에 콘텐츠를 두어 큰 카드도 안 잘리게 함 */
/* 브라우저 줌 100%↑(=svh 축소) 시 고정 px 패딩이 안 줄어 카드 하단이 잘리던 문제 → 패딩을 svh 비례로 */
.ivid-stage { position: sticky; top: 0; box-sizing: border-box; height: 100svh; padding: clamp(12px, 4svh, 70px) 0 clamp(12px, 4svh, 66px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.ivid-head { width: min(100% - 48px, var(--maxw)); margin: 0 auto clamp(8px, 2svh, 40px); }
.ivid-head .eyebrow { margin: 0; color: rgba(255, 255, 255, .5); }
/* 제목 크기·두께를 '.hwall-head h2'(AX인재전쟁에서 채용 중인 기업들)와 동일하게: 700 / clamp(28,4.6vw,60) / -.02em */
.ivid-head h2 { margin: 0; font-weight: 700; font-size: clamp(28px, 4.6vw, 60px); letter-spacing: -.02em; line-height: 1.06; color: #fff; word-break: keep-all; }
.ivid-head__sub { margin: 12px 0 0; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.55; color: rgba(255, 255, 255, .56); word-break: keep-all; }

.ivid-viewport { width: 100%; overflow: hidden; }
.ivid-row { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); padding-inline: max(24px, calc((100vw - var(--maxw)) / 2)); will-change: transform; }

/* 카드 = 영상 새 탭 링크. 전역 a:hover(보라/밑줄)가 새지 않도록 상태 고정 */
.ivid-card, .ivid-card:link, .ivid-card:visited, .ivid-card:hover, .ivid-card:focus, .ivid-card:active {
  position: relative; flex: 0 0 auto; display: block; text-decoration: none; color: #fff;
  /* 줌 시에도 헤더+패딩+진행바 오버헤드(≈248px)를 뺀 가용 높이로 캡 → 절대 100svh 초과 안 함(상한 600px 불변) */
  height: min(600px, calc(100svh - 248px)); border-radius: 18px; overflow: hidden;
  background: #16161b; border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
}
.ivid-card--soon, .ivid-phone { aspect-ratio: 9 / 16; }
.ivid-phone { container-type: inline-size; background: #000; }
.ivid-card:hover { transform: translateY(-8px); border-color: rgba(251, 176, 59, .6); box-shadow: 0 40px 72px -28px rgba(0, 0, 0, .95); z-index: 5; }

/* 공개 예정 카드 — 기업 로고를 흐릿하게 + '공개 예정' */
.ivid-card--soon { background: linear-gradient(160deg, #1b1b22, #0d0d11); cursor: default; }
.ivid-card--soon .ivid-card__logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ivid-card--soon .ivid-card__logo img { width: 60%; max-height: 30%; object-fit: contain; filter: blur(5px) brightness(1.15); opacity: .5; }
/* 텍스트는 상단으로 정렬 (기업명·서브 제거, COMING SOON 만 노출) */
.ivid-card__veil { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0 18px clamp(34px, 12%, 76px); }
/* COMING SOON — 정갈한 산세리프 대문자, 좁은 자간, 한 줄 고정(절대 줄바꿈 없음) */
.ivid-soon-title { font-family: var(--font-sans); font-weight: 600; font-size: clamp(21px, 3.3vw, 26px); line-height: 1; letter-spacing: .06em; text-indent: .06em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }

/* ============================================================================
   인터뷰 카드 — 실제 휴대폰으로 보는 듯한 화면 UI (릴스 / 유튜브)
   모든 치수는 cqw(카드 폭 기준 %)라 카드가 커지든 작아지든 UI 가 비례 유지된다.
   ============================================================================ */
.phone-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .82) 100%); }

/* --- Instagram 릴스 화면 (실제 UI 재현 · 우측 액션 카운트 + 하단 캡션) --- */
.ig-rail { position: absolute; right: 3.5cqw; bottom: 28cqw; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4.2cqw; color: #fff; }
.ig-rail__i { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; }
.ig-rail__ic { width: 7.6cqw; height: 7.6cqw; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }
.ig-rail__n { font-size: 3.3cqw; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.ig-rail__avatar { width: 8.6cqw; height: 8.6cqw; border-radius: 2.6cqw; overflow: hidden; background: #000; border: .6cqw solid #fff; flex: 0 0 auto; }
.ig-rail__avatar img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.ig-bottom { position: absolute; left: 0; right: 17cqw; bottom: 15cqw; z-index: 3; padding: 0 5cqw; color: #fff; display: flex; flex-direction: column; gap: 2cqw; }
.ig-uava { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; overflow: hidden; background: #fff; flex: 0 0 auto; margin-right: 2.4cqw; }
.ig-uava img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.ig-user { display: flex; align-items: center; font-size: 3.9cqw; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.ig-user__sub { font-weight: 400; color: rgba(255, 255, 255, .92); margin-left: .8cqw; }
.ig-cap { font-size: 3.6cqw; line-height: 1.3; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-cmt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 2.6cqw 4cqw 4cqw; }
.ig-cmt__ph { display: block; border: .3cqw solid rgba(255, 255, 255, .28); border-radius: 99px; padding: 3cqw 4.6cqw; font-size: 3.4cqw; color: rgba(255, 255, 255, .6); }

/* --- YouTube 시청 화면 --- */
.ivid-phone--yt { background: #0f0f0f; }
.yt-player { position: absolute; top: 0; left: 0; right: 0; z-index: 1; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 17cqw; height: 12cqw; border-radius: 26% / 38%; background: #ff0000; display: flex; align-items: center; justify-content: center; transition: filter .25s var(--ease); }
.yt-play svg { width: 44%; height: 44%; margin-left: 4%; }
.ivid-phone--yt:hover .yt-play { filter: brightness(1.12); }
/* ChatGPT 톤 Q&A 패널 (유튜브 썸네일 아래) — OpenAI 로고 + 중립 색, 폰트 확대 */
.gem { position: absolute; top: 56.25cqw; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; padding: 5cqw 4.5cqw 4cqw; background: #212121; color: #ececec; }
.gem__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 3.4cqw; border-bottom: .3cqw solid rgba(255, 255, 255, .1); }
.gem__title { font-size: 4cqw; font-weight: 600; color: #fff; }
.gem__x { font-size: 4cqw; color: #aaa; }
.gem__chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 3.4cqw; padding: 1cqw 0 3.6cqw; }
.gem__q { align-self: flex-end; max-width: 84%; background: #303030; color: #fff; font-size: 4.3cqw; line-height: 1.4; padding: 2.8cqw 4cqw; border-radius: 5.5cqw; }
.gem__a { display: flex; gap: 3cqw; }
.gem__spark { flex: 0 0 auto; width: 5.6cqw; height: 5.6cqw; margin-top: .4cqw; color: #fff; }
.gem__atext { font-size: 4.2cqw; line-height: 1.55; color: #ececec; word-break: keep-all; }
.gem__atext b { color: #fff; font-weight: 700; }
.gem__li { display: block; margin-top: 2.2cqw; padding-left: 3.8cqw; position: relative; }
.gem__li::before { content: "•"; position: absolute; left: .4cqw; color: rgba(255, 255, 255, .5); }
.gem__actions { display: flex; gap: 5cqw; padding: 2.6cqw 0; color: #aaa; }
.gem__actions svg { width: 5cqw; height: 5cqw; }
.gem__input { display: flex; align-items: center; gap: 2cqw; border: .3cqw solid rgba(255, 255, 255, .2); border-radius: 99px; padding: 3.2cqw 4.6cqw; }
.gem__input-ph { flex: 1; font-size: 4cqw; color: rgba(255, 255, 255, .5); }
.gem__send { width: 5cqw; height: 5cqw; color: #aaa; flex: 0 0 auto; }

/* 진행 표시 바 */
.ivid-progress { width: min(100% - 48px, var(--maxw)); margin: clamp(8px, 1.6svh, 36px) auto 0; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ivid-progress__bar { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }

@media (max-width: 820px) {
  /* 트랙을 길게 — 세로 스크롤 대비 가로 이동(감도)을 ~0.7로 낮춰 슬라이드가 천천히,
     각 카드(릴스·메디테라피 등)가 오래 머물러 스크롤 중 놓치지 않게 함 */
  .ivid-track { height: 260vh; }
  /* 콘텐츠를 '약간 아래로 치우친 중앙'에 고정: 하단 정렬하되 바닥 여백을 크게 줘
     ① 화면 맨 아래(고정 CTA 바)와 겹치지 않고 ② WHY 와의 거리(=바닥 여백)도 적당히 유지. */
  .ivid-stage { justify-content: flex-end; padding-bottom: clamp(96px, 17vh, 160px); }
  /* 모바일/태블릿: 모든 카드(릴스·유튜브·공개예정) 높이 동일하게 통일. width 는 aspect-ratio(9:16) 자동.
     ※ <a> 카드는 base 의 .ivid-card:link 가 height 를 잡으므로 동일 컴파운드로 눌러야 한다. */
  .ivid-card, .ivid-card:link, .ivid-card:visited, .ivid-card:hover, .ivid-card:focus, .ivid-card:active { height: min(92vw, 440px); width: auto; }
  /* 커진 공개예정 카드 폭에 맞춰 COMING SOON 텍스트도 키움 */
  .ivid-soon-title { font-size: clamp(16px, 4.6vw, 22px); letter-spacing: .05em; text-indent: .05em; }
  .ivid-card__veil { padding: 0 12px clamp(18px, 6%, 36px); }
  /* 모바일 폰 카드 폭이 좁아(cqw 기준) 챗 글자가 작던 문제 →
     컨테이너 쿼리 폰트값을 키워 가독성 확보(콘텐츠도 핵심만 남겨 패널에 여유). */
  .gem { padding: 5cqw 5cqw 4cqw; }
  .gem__chat { gap: 3.2cqw; padding: 1cqw 0 3.2cqw; }
  .gem__q { font-size: 5.4cqw; padding: 3cqw 4.2cqw; border-radius: 6.5cqw; }
  .gem__spark { width: 6.6cqw; height: 6.6cqw; }
  .gem__atext { font-size: 5.3cqw; line-height: 1.5; }
  .gem__li { margin-top: 2.2cqw; padding-left: 4.2cqw; }
  /* 모바일은 세로 공간이 빠듯해 장식용 액션 버튼(좋아요·복사)은 숨겨 답변 공간 확보 */
  .gem__actions { display: none; }
  .gem__input { padding: 3.6cqw 5cqw; }
  .gem__input-ph { font-size: 5cqw; }
  .gem__send { width: 5.6cqw; height: 5.6cqw; }
}
