/* SUIT 전용 — 다른 서체 혼용 금지 */
@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.css");

/* ===== Design tokens ===== */
:root {
  --paran-blue: #0B53E0;
  --paran-blue-dark: #0A3FA8;
  --paran-blue-soft: #4d86f0;
  --halo-suit: #b29ad8;   /* eclipse 무늬·퀴즈 강조 통일색(보라) */
  --ink: #111315;
  --ink-soft: #4a4f55;
  --ink-faint: #8a9099;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-glow: #eef3ff;

  --header-h: 64px;
  --maxw: 1120px;
  /* 레퍼런스(flatten)식 미니멀 — 라운드 더 작게, 그림자 없음 */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: none;
  --shadow-lg: none;

  --font: "SUIT Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* 식 蝕 → HALO 로 이어지는 '해'의 공유 크기·위치 (두 페이지 동일) */
  --halo-sun-size: clamp(150px, 42vw, 210px);
  --halo-sun-top: 24vh;
}

/* ===== Intro (index 진입 연출 — 스크롤 구동 sticky) =====
   #intro-zone 높이만큼의 스크롤이 O 확대/축소(zoom)를 만든다. */
#intro-zone {
  position: relative;
  /* 1화면 높이. --app-vh(JS가 px로 고정) > svh > vh 순으로 폴백 →
     카카오 인앱처럼 svh가 불안정한 웹뷰에서도 툴바 변화에 안 흔들림. */
  height: 100vh;
  height: 100svh;
  height: var(--app-vh, 100svh);
  background: #fff;
  /* 인트로 스킵(새로고침) 시 #intro-stage가 overflow:visible 이라, hero 물결 배경
     (.hero-keywords::before, 박스폭 240%)이 화면 밖으로 삐져나와 가로 스크롤이
     생김(모바일 좌우 흔들림). 세로 스크롤엔 영향 없이 가로만 잘라 차단. */
  overflow-x: clip;
}
#intro-stage {
  /* position: sticky 였으나, 풀하이트 sticky는 모바일 주소창 접힘/펼침 시
     브라우저가 위치를 재계산하며 "확확 튀는" 원인. 포털이 트리거 애니메이션으로 바뀌어
     sticky가 더는 필요 없으므로 relative 로 → 일반 블록처럼 스크롤되어 튐 제거. */
  position: relative;
  height: 100vh;
  height: 100svh;
  height: var(--app-vh, 100svh);
  overflow: hidden;
  background: #fff;
}
/* SVG(원 그리기/O)와 HERO를 같은 중앙 프레임에 겹쳐 둠 */
#intro-svg,
#intro-hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#intro-svg { z-index: 1; }
/* hero는 고정 헤더 높이만큼 위 여백을 둬 헤더에 안 가리고 그 아래 영역 기준 중앙 정렬 */
#intro-hero { z-index: 2; pointer-events: none; padding-top: calc(var(--header-h) + 28px); }   /* 숨김 동안 클릭은 아래(그리기)로 통과 */
body.hero-in #intro-hero { pointer-events: auto; }
/* 포털 통과(O 흩어짐) 시 중앙에서 확대되며 피어나는 HERO */
#intro-hero .container {
  opacity: 0;
  transform: scale(0.8);
  transform-origin: center center;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* 포털 통과 직후 바로 등장(약간의 딜레이만) */
body.hero-in #intro-hero .container {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
/* hero 뒤 물결 배경 — 파동 중앙을 키워드 허브(중앙 점)에 맞춤.
   .hero-keywords 의 허브 좌표(left/top)에 중심을 두고 크게 깔아 hero 전반에 퍼지게,
   radial 마스크로 가장자리를 페이드시켜 섹션 경계에서 딱 잘리지 않게. */
.hero-keywords::before {
  content: "";
  position: absolute;
  left: 48%;   /* 키워드 허브 center.x */
  top: 46%;    /* 키워드 허브 center.y */
  /* 뷰포트(vh/svh) 기준이면 모바일에서 화면 높이 변화에 배경이 커지거나 드리프트함.
     키워드 박스 기준 %로 고정 → 화면 높이와 완전히 무관(절대 안 커짐). */
  width: 240%;
  height: 240%;
  transform: translate(-50%, -34%);
  z-index: -1;
  pointer-events: none;
  background: url("/asset/review-hero-bg.png") center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
  -webkit-mask-image: radial-gradient(circle at center, #000 16%, transparent 56%);
          mask-image: radial-gradient(circle at center, #000 16%, transparent 56%);
}
body.hero-in .hero-keywords::before { opacity: 0.22; }
@media (prefers-reduced-motion: reduce) {
  .hero-keywords::before { transition: none; }
}
/* 표지 애니메이션 ① — 헤일로 글로우(빛의 고리 호흡) + 미세 플로팅. (cover형 hero 전체) */
.hero-cover {
  animation: coverFloat 4s ease-in-out infinite alternate,
             coverGlow 3.2s ease-in-out infinite;
  will-change: transform, box-shadow;
}
@keyframes coverFloat {
  from { transform: translateY(7px); }
  to   { transform: translateY(-7px); }
}
@keyframes coverGlow {
  0%, 100% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12), 0 0 42px 0 rgba(77, 134, 240, 0.10); }
  50%      { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12), 0 0 92px 14px rgba(77, 134, 240, 0.42); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cover { animation: none; }
}
/* 인트로 동안 스크롤 잠금 (원 그리기 + 포털 통과 전까지) —
   iOS/카카오 인앱 웹뷰는 body{overflow:hidden}이 안 먹혀 스크롤이 새고
   "스크롤바만 움직이고 내용은 안 움직이는" 상태가 됨 → position:fixed 로 확실히 잠금.
   인트로는 항상 최상단(scrollY 0)에서 진행 → 스크롤 위치 저장/복원 불필요. */
body.intro-active,
body.intro-portal-lock {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* 개발용 인트로 스킵(localStorage.skipIntro): 스크롤 연출 없이 hero를 일반 섹션으로 배치 */
body.intro-skip #intro-zone   { height: auto; }
body.intro-skip #intro-stage  { position: static; height: auto; overflow: visible; }
body.intro-skip #intro-svg    { display: none; }
body.intro-skip #intro-hero   { position: static; }
/* hero 완성 시 스크롤 고정은 JS(휠/터치 preventDefault + 위치 재고정)로 처리.
   .hero-lock 은 상태 마커(필요 시 스타일 훅) */

/* ===== Reset ===== */
* { box-sizing: border-box; }
/* 모바일 탭 시 파란/회색 하이라이트 플래시 제거 */
* { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }   /* .btn/.unlock-form 등 display 규칙이 hidden 속성을 덮지 않도록 */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 한국어: 띄어쓰기 없는 단어 중간에서 줄바꿈되지 않게(어절 단위로만 줄바꿈).
     단, 공백 없는 아주 긴 토큰(URL 등)은 overflow-wrap으로 넘침 방지. */
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 본문 단락 고아줄(orphan) 방지 — 마지막 줄에 단어 하나만 떨어지는 것 완화 */
.hero p.lead, .page-hero p, .h-hero .lead, .home-hero-copy p, .prod-desc,
.page-sub, .ecl-story, .about-copy, .feature p, .section-head p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== /n-je → /n-je/eclipse 전환 (흰 화면 다리) =====
   클릭 → /n-je 하얗게 → 이클립스 페이지 하얗게 시작 → 검은 배경으로 → 요소 등장 */
/* (1) /n-je 나갈 때: 화면이 하얗게 덮임 */
.nav-fade {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
.nav-fade.show { opacity: 1; pointer-events: auto; }
/* (2) eclipse 진입: 첫 페인트부터 흰 화면으로 덮고 콘텐츠는 숨김 (JS가 흰→검 전환 후 등장) */
.enter-cover {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; opacity: 0; pointer-events: none;
}
html.eclipse-enter .enter-cover { opacity: 1; }
/* 진입: 한 번에 '덩' 대신 요소들이 순차로 촤라락 떠오른다 (원→제목→안내→점→카드) */
html.eclipse-enter .nje-eclipse .eclipse,
html.eclipse-enter .nje-eclipse #ecl-title,
html.eclipse-enter .nje-eclipse .ecl-story,
html.eclipse-enter .nje-eclipse .pw-dots,
html.eclipse-enter .nje-eclipse .pw-viewport { opacity: 0; transform: translateY(16px); }
html.eclipse-revealed .nje-eclipse .eclipse,
html.eclipse-revealed .nje-eclipse #ecl-title,
html.eclipse-revealed .nje-eclipse .ecl-story,
html.eclipse-revealed .nje-eclipse .pw-dots,
html.eclipse-revealed .nje-eclipse .pw-viewport {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.eclipse-revealed .nje-eclipse .eclipse     { transition-delay: 0.04s; }
html.eclipse-revealed .nje-eclipse #ecl-title   { transition-delay: 0.18s; }
html.eclipse-revealed .nje-eclipse .ecl-story   { transition-delay: 0.30s; }
html.eclipse-revealed .nje-eclipse .pw-dots     { transition-delay: 0.42s; }
html.eclipse-revealed .nje-eclipse .pw-viewport { transition-delay: 0.54s; }
/* (3) eclipse → /n-je/halo 전환: 같은 흰 화면 다리 — halo는 밝은 페이지라
   흰색을 유지한 채 커버가 걷히며 글씨만 떠오른다 */
html.halo-enter .enter-cover { opacity: 1; }
html.halo-enter .halo-reveal .container { opacity: 0; transform: translateY(10px); }
html.halo-revealed .halo-reveal .container {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .nav-fade, .enter-cover { display: none; }
  html.eclipse-enter .nje-eclipse .eclipse,
  html.eclipse-enter .nje-eclipse #ecl-title,
  html.eclipse-enter .nje-eclipse .ecl-story,
  html.eclipse-enter .nje-eclipse .pw-dots,
  html.eclipse-enter .nje-eclipse .pw-viewport { opacity: 1; transform: none; }
  html.halo-enter .halo-reveal .container { opacity: 1; transform: none; }
}

/* ===== Header ===== */
/* 서브페이지(홈 외): 헤더를 감싼 #site-header 래퍼가 헤더 높이만큼이라
   내부 sticky 가 버틸 공간이 없어 스크롤 시 같이 사라짐 → 래퍼를 sticky 로 고정. */
body:not(.has-intro) #site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 24px; width: auto; }
.brand .brand-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.active { color: var(--paran-blue); }
/* 개발 중(준비중) 메뉴 — 흐리게 */
.nav a.soon { opacity: 0.4; }
.nav a.soon:hover { opacity: 0.6; }
.mm-sub.soon { opacity: 0.4; }
.mm-sub.soon::after {
  content: "준비중";
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

/* 인트로 페이지(index)에서만: 헤더를 fixed로 두고, 포털 통과 시 상단에 고정 등장.
   (스크롤 ↑로 O가 작아지면 다시 숨김 — 가역) 서브페이지는 위 sticky 헤더 그대로. */
body.has-intro .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}
body.has-intro.portal-passed .site-header {
  transform: translateY(0);
  opacity: 1;
}

/* 헤더 색 토글 — 다크 섹션 위를 지날 때 흰 로고/흰 네비(레퍼런스식) */
.site-header,
.site-header .brand img,
.brand .brand-sub,
.nav a {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
}
body.header-on-dark .site-header {
  background: rgba(10, 10, 10, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.header-on-dark .site-header .brand img { filter: brightness(0) invert(1); } /* 로고 → 흰색 */
body.header-on-dark .site-header .brand .brand-sub { color: rgba(255, 255, 255, 0.85); }
body.header-on-dark .site-header .nav a { color: rgba(255, 255, 255, 0.82); }
body.header-on-dark .site-header .nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
body.header-on-dark .site-header .nav a.active { color: #fff; }
body.header-on-dark .site-header .nav-toggle { color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--paran-blue); color: #fff; }
.btn-primary:hover { background: var(--paran-blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn:disabled,
.btn.is-disabled { background: var(--bg-soft); color: var(--ink-faint); box-shadow: none; cursor: not-allowed; pointer-events: none; }

/* ===== Halo glow background (재사용 유틸) =====
   밝은 블루 radial glow — Linear/Vercel의 '헤드라인 뒤 광원'을 밝은 톤으로. */
.halo-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.halo-bg::before {
  /* 빛 번짐 광원 */
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 620px;
  background:
    radial-gradient(620px 420px at 50% 8%, rgba(11, 83, 224, 0.18), transparent 70%),
    radial-gradient(900px 500px at 50% -160px, rgba(120, 170, 255, 0.28), transparent 72%);
  z-index: -2;
  pointer-events: none;
}
.halo-bg::after {
  /* 동심원 링 모티프 (HALO) */
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(11, 83, 224, 0.07) 0 1px,
      transparent 1px 58px);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 55%, transparent 72%);
          mask-image: radial-gradient(circle at center, #000 0 55%, transparent 72%);
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}

/* ===== Hero (홈) ===== */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--paran-blue);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.25;
}
.hero p.lead {
  margin: 0 auto 34px;
  max-width: 620px;
  font-size: 18px;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Page hero (서브페이지 공통, 작게) ===== */
.page-hero {
  padding: 72px 0 40px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--paran-blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero h1 { margin: 0 0 14px; font-size: clamp(24px, 4vw, 44px); line-height: 1.25; }
.page-hero p { margin: 0 auto; max-width: 600px; color: var(--ink-soft); font-size: 17px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(26px, 3.5vw, 36px); }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ===== Cards (진입 카드 그리드) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(11, 83, 224, 0.25); }
.card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--paran-blue);
  background: rgba(11, 83, 224, 0.09);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 21px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .card-foot {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--paran-blue);
}

/* ===== Teaser banner (N제 떡밥) ===== */
.teaser {
  margin: 8px auto 0;
  max-width: var(--maxw);
}
.teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(11, 83, 224, 0.35);
  background: linear-gradient(120deg, var(--bg-glow), #fff);
}
.teaser-inner .t-copy { display: flex; flex-direction: column; gap: 4px; }
.teaser-inner .t-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--paran-blue); }
.teaser-inner .t-title { font-size: 18px; font-weight: 800; }

/* ===== Download / 자료 리스트 ===== */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.dl-item .dl-meta { display: flex; flex-direction: column; gap: 2px; }
.dl-item .dl-name { font-size: 17px; font-weight: 700; }
.dl-item .dl-sub { font-size: 13px; color: var(--ink-faint); }
.dl-count { font-size: 13px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* 아카이브 리스트 (학력평가 해설) */
.entry-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.entry {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.18s, transform 0.18s;
}
.entry:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.entry .e-date { font-size: 13px; font-weight: 700; color: var(--paran-blue); }
.entry .e-title { margin: 6px 0 0; font-size: 19px; font-weight: 800; }
.entry .e-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ===== Unlock UI (N제 시즌1 잠금해제) ===== */
.unlock {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-glow), #fff);
}
.unlock h3 { margin: 0 0 10px; font-size: 24px; }
.unlock p { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }
.unlock-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.unlock-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 0.18em;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.unlock-form input:focus { outline: 2px solid rgba(11, 83, 224, 0.4); border-color: transparent; }
.unlock-msg { margin-top: 16px; font-size: 14px; font-weight: 600; min-height: 20px; }
.unlock-msg.ok { color: #138a4e; }
.unlock-msg.err { color: #d23b3b; }

/* ===== Coming soon (판매 자리 프레임) ===== */
.coming-soon {
  text-align: center;
  padding: 56px 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.coming-soon .cs-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.coming-soon h3 { margin: 0 0 8px; font-size: 22px; color: var(--ink); }

/* ===== Generic content blocks (구조 프레임) ===== */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p { color: var(--ink-soft); }
.placeholder-note {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ===== CTA band ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--paran-blue);
  color: #fff;
  text-align: center;
  padding: 68px 0;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 360px;
  background: radial-gradient(500px 260px at 50% 0, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 0 0 26px; opacity: 0.92; }
.cta-band .btn-primary { background: #fff; color: var(--paran-blue); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eef2ff; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #1c1c1c;
  background: #0a0a0a;
  color: #fff;
  padding: 56px 0 40px;
}
.site-footer .brand img { filter: brightness(0) invert(1); }
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: start;
}
.site-footer .brand img { height: 22px; }
.footer-contact { display: grid; gap: 6px; font-size: 14px; }
.footer-contact .fc-head { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #7a7a7a; text-transform: uppercase; }
.footer-contact .fc-row { display: flex; gap: 12px; color: #b8b8b8; }
.footer-contact .fc-row span:first-child { width: 76px; color: #7a7a7a; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #b8b8b8; }
.footer-links a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; font-size: 13px; color: #7a7a7a; border-top: 1px solid #1c1c1c; padding-top: 18px; }

/* =========================================================
   Home — reference(flatten) 스타일
   초대형 타이포 + 다크/라이트 교차 + 화살표 리스트 + 넉넉한 여백
   ========================================================= */
.home .eyebrow,
.h-hero .eyebrow,
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paran-blue);
}

/* Hero */
.h-hero { padding: clamp(32px, 6vh, 72px) 0 clamp(24px, 4.5vh, 56px); }
.h-hero .eyebrow { margin-bottom: 22px; }
.h-hero h1 {
  margin: 0 0 30px;
  font-weight: 900;
  font-size: clamp(52px, 11vw, 150px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}
.h-hero .lead {
  margin: 0 0 38px;
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink-soft);
}
.h-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Statement (dark) */
.statement { background: #0a0a0a; color: #fff; padding: clamp(96px, 17vh, 190px) 0; }
.statement .label { color: #6f9bff; margin-bottom: 24px; }
.statement h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

/* Section (home) */
.h-sec { padding: clamp(72px, 12vh, 140px) 0; }
.h-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.h-sec-head .label { margin-bottom: 10px; }
.h-sec-head h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.02;
}
.h-sec-head .note { margin: 0; color: var(--ink-faint); font-size: 15px; }

/* Solutions list (화살표 행) */
.sol-list { border-top: 1px solid var(--ink); }
.sol-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 42px) 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease, background 0.25s ease;
}
.sol-row .idx { font-size: 14px; font-weight: 800; color: var(--ink-faint); }
.sol-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paran-blue);
  margin-bottom: 10px;
}
.sol-title {
  display: block;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.05;
  color: var(--ink);
  transition: color 0.2s ease;
}
.sol-desc {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.4vw, 17px);
}
.sol-arrow {
  font-size: clamp(26px, 3.4vw, 42px);
  color: var(--ink-faint);
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}
a.sol-row:hover {
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(11, 83, 224, 0.05), transparent 55%);
}
a.sol-row:hover .sol-title { color: var(--paran-blue); }
a.sol-row:hover .sol-arrow { transform: translateX(10px); color: var(--paran-blue); }

/* Feature (dark) */
.feature { background: #0a0a0a; color: #fff; padding: clamp(90px, 15vh, 170px) 0; }
.feature .label { color: #6f9bff; margin-bottom: 22px; }
.feature h2 {
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(34px, 6.4vw, 84px);
  line-height: 1.0;
}
.feature p {
  margin: 0 0 34px;
  color: #b8b8b8;
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 460px;
}

/* Final CTA (light) */
.h-cta { padding: clamp(80px, 13vh, 150px) 0; text-align: center; }
.h-cta .label { margin-bottom: 18px; }
.h-cta h2 {
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 5vw, 60px);
}
.h-cta p { margin: 0 0 30px; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 18px); }

/* Button — 다크 섹션용 라이트 버튼 */
.btn-light { background: #fff; color: #0a0a0a; box-shadow: none; }
.btn-light:hover { background: #e9e9e9; }

/* ===== 섹션 공통 타이틀 (Our product › / About › / FAQ ›) ===== */
.sec-title {
  margin: 0 0 clamp(32px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(32px, 6vw, 80px);
  line-height: 1.02;
}
.sec-title .chev { color: var(--ink-faint); font-weight: 400; }
/* 클릭 가능한 섹션 제목(Our product=메뉴 열기, About=소개 링크) */
.sec-title--action { cursor: pointer; }
.sec-title-link { color: inherit; text-decoration: none; cursor: pointer; }
.sec-title--action .chev,
.sec-title-link .chev { display: inline-block; transition: transform 0.2s ease; }
.sec-title--action:hover .chev,
.sec-title-link:hover .chev { transform: translateX(5px); }

/* ===== N제 Season 1 프로모 ===== */
.home-hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(12px, 2.4vw, 32px);
  align-items: center;
}
/* 표지를 링크로 감쌀 때(클릭 이동) — 앵커 박스는 없애 그리드 아이템은 그대로 img 가 되게 */
.hero-cover-link { display: contents; cursor: pointer; }
.hero-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: #fff;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}
.home-hero-copy { text-align: center; }
.home-hero-copy h1 {
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  font-size: clamp(24px, 4vw, 52px);
}
.home-hero-copy p { margin: 0 0 34px; color: var(--ink-soft); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; }
/* 밑줄형 CTA(박스 없이 가벼운 강조) — review hero 등 */
.cta-underline {
  display: inline-block;
  color: var(--paran-blue);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 17px);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.cta-underline:hover { text-decoration-thickness: 2px; }
/* 페이지 내 앵커(#method)로 스크롤 시 상단 헤더에 가리지 않게 여유 */
#method { scroll-margin-top: 84px; }
/* hero(포털 중앙)로 쓸 때 표지 높이 제한해 화면에 맞춤 (svh로 모바일 주소창 변화 무시) */
#intro-hero .hero-cover { aspect-ratio: 3 / 4; height: min(45vh, 368px); height: min(45svh, 368px); width: auto; justify-self: start; }

/* ===== 해설hero: 키워드 흩뿌림 비주얼 ===== */
.hero-keywords {
  position: relative;
  isolation: isolate;   /* ::before(z-index:-1) 배경을 자체 스태킹 컨텍스트에 고정 —
                           인트로 스킵(#intro-hero position:static)으로 받침 컨텍스트가
                           사라져도 새로고침 시 hero 배경이 흰 배경에 안 덮이게. */
  aspect-ratio: 1 / 1;
  width: 100%;
  justify-self: center;
}
#intro-hero .hero-keywords { height: min(56vh, 460px); height: min(56svh, 460px); width: auto; aspect-ratio: 1 / 1; }

/* 단어와 선이 같은 타이밍/위상으로 움직이게 묶는 컨테이너(애니는 자식에) */
.hero-keywords .pk-item { position: absolute; inset: 0; }

/* 가속도: ease-in-out + alternate → 위/아래 끝에서 느려지고 중간에서 빨라짐 */
/* 선 — 중앙 끝(transform-origin)은 고정, 바깥 끝만 단어를 따라 회전 */
.hero-keywords .pk-line {
  position: absolute;
  height: 1.5px;
  margin-top: -0.75px; /* 세로 중심을 중앙 점에 정렬 */
  background: #000;
  border-radius: 3px;
  transform-origin: 0 50%; /* 중앙 끝을 축으로 회전 → 그 끝은 항상 고정 */
  animation: pkLine var(--fdur, 4s) cubic-bezier(0.65, 0, 0.35, 1) var(--fd, 0s) infinite alternate;
  will-change: transform;
  /* GPU 합성 레이어로 승격 → 회전 시 서브픽셀 보간이 매끄러워져 선 두께 떨림 완화 */
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
@keyframes pkLine {
  from { transform: rotate(var(--rd)) translateZ(0); }
  to   { transform: rotate(var(--ru)) translateZ(0); }
}
/* 단어 — 위아래로 흔들림(흔들림 폭 = --amp) */
.hero-keywords .pk-word {
  position: absolute;
  color: var(--ink);
  font-weight: 400;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.1em;
  font-size: clamp(22px, 3.6vw, 42px);
  transform: translate(-50%, -50%);
  animation: pkWord var(--fdur, 4s) cubic-bezier(0.65, 0, 0.35, 1) var(--fd, 0s) infinite alternate;
  will-change: transform;
}
@keyframes pkWord {
  from { transform: translate(-50%, calc(-50% + var(--amp, 16px))); }
  to   { transform: translate(-50%, calc(-50% - var(--amp, 16px))); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-keywords .pk-line,
  .hero-keywords .pk-word { animation: none; }
}

/* ===== Our product 리스트 ===== */
.prod-list { border-top: 1px solid var(--ink); }
.prod-item {
  display: block;
  padding: clamp(28px, 3.6vw, 44px) 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease, background 0.25s ease;
}
/* hover 반응은 마우스(PC)에서만 — 모바일 탭에서 hover가 들러붙어 파랗게 반응하던 문제 방지 */
@media (hover: hover) and (pointer: fine) {
  a.prod-item:hover {
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(11, 83, 224, 0.05), transparent 55%);
  }
  a.prod-item:hover .prod-name { color: var(--paran-blue); }
}
.prod-name {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 4.6vw, 60px);
  color: var(--ink);
  transition: color 0.2s ease;
}
.prod-logo { height: clamp(28px, 4vw, 48px); width: auto; }
.prod-desc { margin: 16px 0 0; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 19px); max-width: 680px; line-height: 1.5; }
.prod-status { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; }
.ps-row { display: inline-flex; align-items: center; gap: 10px; }
.ps-label { min-width: 64px; font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 2px;
}
.badge-live { background: var(--paran-blue); color: #fff; }
.badge-soon { background: var(--bg-soft); color: var(--ink-faint); border: 1px solid var(--line); }
.badge-new { background: var(--paran-blue-dark); color: #fff; }

/* ===== About paran.lab (다크) ===== */
.about { background: #0a0a0a; color: #fff; }
.about .sec-title { color: #fff; }
.about .sec-title .chev { color: rgba(255, 255, 255, 0.5); }
.about-logo { height: clamp(126px, 15vw, 210px); width: auto; margin: 8px 0 28px; }
.about-copy { margin: 0 0 32px; max-width: 560px; color: #b8b8b8; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; }

/* ===== FAQ (다크, About에 이어짐) ===== */
.faq { background: #0a0a0a; color: #fff; padding-top: 0; }
.faq .sec-title { color: #fff; }
.faq .sec-title .chev { color: rgba(255, 255, 255, 0.5); }
.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 40px);
  background: #fff;
  color: var(--ink);
}
.faq-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.faq-card-title { font-size: clamp(20px, 2.5vw, 30px); font-weight: 800; color: var(--ink); }
.faq-card-count { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.06em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 2px;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
}
.faq-idx { font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.faq-text { flex: 1; font-size: clamp(16px, 1.9vw, 21px); font-weight: 700; }
.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-faint);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.faq-q[aria-expanded="true"] .faq-toggle { transform: rotate(45deg); color: var(--paran-blue); border-color: var(--paran-blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { margin: 0 2px 20px; max-width: 680px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* ===== N제 Eclipse 잠금 해제 (식蝕 — 달이 지나간다) ===== */
.eclipse-sec {
  background: radial-gradient(125% 85% at 50% 0%, #14183a 0%, #0a0a16 55%, #060608 100%);
  color: #fff;
  text-align: center;
  /* 세로 패딩도 --app-vh(px 고정) 기준 → 인앱 툴바 변화에 위아래로 안 튐 (vh/svh 폴백) */
  padding: clamp(72px, 13vh, 150px) 0;
  padding: clamp(72px, calc(var(--app-vh, 100svh) * 0.13), 150px) 0;
}
.eclipse {
  position: relative;
  width: var(--halo-sun-size);
  aspect-ratio: 1;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.ecl-corona {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(160, 190, 255, 0.45);
  box-shadow: 0 0 30px rgba(111, 155, 255, 0.3);
  opacity: 0.45;
  transition: opacity 0.9s ease, box-shadow 0.9s ease;
}
/* 검은 원 (자물쇠 받침) */
.ecl-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #1b2030, #0a0c14 60%, #050608);
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.6), inset 0 0 54px rgba(90, 120, 190, 0.12);
  transition: opacity 1.1s ease;
}
/* 검은 원 위 자물쇠 — 고리(shackle)/몸통(body)을 같은 PNG에서 위아래로 잘라 2겹으로.
   해제 시 고리만 위로 pop + 살짝 회전해 '열린' 느낌을 낸다. */
.ecl-lock {
  position: absolute;
  left: 50%; top: 50%;
  width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 3;
}
.ecl-lock img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(1.9) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}
/* 해제: 살짝 흔들린 뒤 그대로 사라진다 (고리 분리 X) */
.eclipse.unlocking .ecl-lock { animation: ecl-lock-shake 0.5s ease; }
.eclipse.unlocked .ecl-lock { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
@keyframes ecl-lock-shake {
  0%, 100% { transform: translate(-50%, -50%) rotate(0); }
  20%, 60% { transform: translate(calc(-50% - 5px), -50%) rotate(-4deg); }
  40%, 80% { transform: translate(calc(-50% + 5px), -50%) rotate(4deg); }
}
/* 조각이 모일수록 코로나(빛)가 밝아진다 */
.eclipse[data-found="1"] .ecl-corona { opacity: 0.62; box-shadow: 0 0 38px rgba(111, 155, 255, 0.4); }
.eclipse[data-found="2"] .ecl-corona { opacity: 0.78; box-shadow: 0 0 48px rgba(111, 155, 255, 0.55); }
.eclipse[data-found="3"] .ecl-corona { opacity: 0.92; box-shadow: 0 0 58px rgba(111, 155, 255, 0.7); }
/* 해제(모두 도착): 코로나 만개 */
.eclipse.removed .ecl-corona { opacity: 1; box-shadow: 0 0 64px rgba(111, 155, 255, 0.8); }
/* 오답: 흔들림 */
.eclipse.shake { animation: ecl-shake 0.5s; }
@keyframes ecl-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.eclipse-ui .ecl-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #6f9bff;
  margin-bottom: 16px;
}
.eclipse-sec h2 { margin: 0 0 18px; font-weight: 900; letter-spacing: -0.03em; font-size: clamp(24px, 5vw, 52px); }
.ecl-story { max-width: 500px; margin: 0 auto 30px; color: #b8b8b8; font-size: clamp(14px, 1.5vw, 16px); line-height: 1.75; }
.ecl-story p { margin: 0 0 10px; }
/* 힌트 안내 앞 열쇠 아이콘 (폴더 열쇠 PNG) */
.ecl-key-ico { display: inline-block; width: 34px; height: 34px; object-fit: contain; vertical-align: -11px; filter: brightness(1.12); }
.eclipse-sec .unlock-form { justify-content: center; max-width: 440px; margin: 0 auto; }
.eclipse-sec .unlock-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  letter-spacing: 0.18em;
}
.eclipse-sec .unlock-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.eclipse-sec .unlock-msg.err { color: #ff9a9a; }
.eclipse-sec .unlock-msg.ok { color: #8ad0ff; }
@media (prefers-reduced-motion: reduce) {
  .ecl-corona, .ecl-shard, .ecl-disc, .ecl-lock { transition: none; }
  .eclipse.shake, .eclipse.unlocking .ecl-lock { animation: none; }
}

/* ===== N제 랜딩 (/n-je) — exam/lab 디자인 계열 ===== */
.nje-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paran-blue);
}
.nje-lead-sec { padding-top: clamp(8px, 2vw, 16px); }

/* 안내(위장) CTA — 눈에 띄지 않는 담담한 notice 톤 */
.nje-cta { padding: clamp(32px, 5vw, 56px) 20px clamp(48px, 7vw, 88px); }
.nje-cta-box {
  position: relative;
  padding: clamp(22px, 3.5vw, 32px) clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: 0 0 20px rgba(11, 83, 224, 0.10);   /* 상시 은은한 glow */
}
/* glow 펄스는 box-shadow가 아니라 가상요소의 opacity로 — box-shadow 애니메이션은
   카카오 등 인앱 웹뷰에서 재페인트로 '떨림'을 유발. opacity는 컴포지터라 매끄럽다. */
.nje-cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 38px rgba(11, 83, 224, 0.30);
  opacity: 0;
  animation: nje-cta-glow 2.8s ease-in-out infinite;
  will-change: opacity;
}
@keyframes nje-cta-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .nje-cta-box::after { animation: none; opacity: 0.6; }
}
.nje-cta-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.nje-cta-title { margin: 0 0 10px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.nje-cta-desc { margin: 0 0 18px; max-width: 540px; color: var(--ink-soft); font-size: clamp(14px, 1.6vw, 16px); line-height: 1.7; }

/* 식(蝕) — 빛의 조각 4개(트럼프 무늬) + 달의 단계적 후퇴.
   12시(♠)→3시(◆)→6시(♣)→9시(♥) 시계방향(스·다·클·하)으로 점등 */
.ecl-shards { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ecl-shard {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: var(--sc, var(--halo-suit));  /* --sc = 무늬별 색(인라인), 카드와 동일 */
  -webkit-mask: var(--sm) center / contain no-repeat;
          mask: var(--sm) center / contain no-repeat;
  opacity: 0.28;                                  /* 흐릿하게 떠 있음 */
  transform: scale(0.78);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}
.ecl-shard[data-shard="0"] { top: -15px; left: 50%; margin-left: -15px; }    /* 12시 스페이드 */
.ecl-shard[data-shard="1"] { top: 50%; right: -15px; margin-top: -15px; }    /* 3시 다이아 */
.ecl-shard[data-shard="2"] { top: 50%; left: -15px; margin-top: -15px; }     /* 9시 하트 */
.ecl-shard[data-shard="3"] { bottom: -15px; left: 50%; margin-left: -15px; } /* 6시 클로버 */
/* 조각 도착 → 또렷 + 빛 (통일색 라벤더 글로우) */
.ecl-shard.lit {
  opacity: 1;
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(185, 150, 225, 0.95));
}
/* 카드에서 원으로 날아가는 조각 클론 (WAAPI로 포물선 이동) — pw-suit 마스크/색 그대로 유지 */
.ecl-fly { position: fixed; z-index: 60; pointer-events: none; will-change: transform; }

/* 퍼즐 전용 페이지(/n-je/eclipse) — 화면을 꽉 채움 */
.nje-eclipse .eclipse-sec { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); min-height: calc(var(--app-vh, 100svh) - var(--header-h)); display: flex; align-items: center; }
/* 상단 헤더 바를 페이지 배경(식 蝕 상단 톤)과 동일하게 — 흰 바 제거, 이음새 없이 */
body.eclipse-page .site-header {
  background: #14183a;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

/* 비밀번호 조각 — 트럼프 4무늬 STAGE 캐러셀 (한 장씩, 맞아야 다음으로) */
.pw { max-width: 440px; margin: 0 auto; }
/* 진행 점 — 탭하면 해당 STAGE로 이동 */
.pw-dots { display: flex; gap: 9px; justify-content: center; margin-bottom: 20px; }
.pw-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.pw-dot:focus-visible { outline: 2px solid rgba(111, 155, 255, 0.6); outline-offset: 3px; }
.pw-dot.active { background: rgba(207, 224, 255, 0.6); transform: scale(1.25); }
.pw-dot.done { background: #cfe0ff; box-shadow: 0 0 10px rgba(143, 178, 255, 0.9); }
/* 뷰포트 + 트랙 (좌우 화살표·스와이프로 자유 이동) */
.pw-viewport { position: relative; }
/* 네이티브 스크롤 + scroll-snap 캐러셀 — 가로/세로 축 분리·관성·스냅을 전부 브라우저
   컴포지터에 맡긴다. JS 드래그(pointer events + transform)는 touch-action pan-y와의
   pointercancel 레이스 때문에 비스듬히 시작한 스와이프를 브라우저가 세로 스크롤로
   뺏어가 씹혔다(w3c/pointerevents#303 — iOS는 "아주 똑바른 가로"가 아니면 취소).
   네이티브 스크롤은 인앱 브라우저 툴바 토글(높이만 변함)에도 영향이 없다. */
.pw-track {
  display: flex;
  gap: clamp(14px, 3.5vw, 22px); /* 카드 사이 여백 — 스냅 간격은 JS stride()가 실측 */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; /* 가로 플링이 페이지/웹뷰 제스처로 번지지 않게 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pw-track::-webkit-scrollbar { display: none; }
/* PC 마우스 드래그 어포던스 (터치엔 영향 없음) */
.pw-track { cursor: grab; }
.pw-track.dragging { cursor: grabbing; scroll-behavior: auto; }
.pw-track.dragging, .pw-track.dragging * { user-select: none; }
/* PC 좌우 화살표 — 카드 양옆 여백에서 클릭 이동 (모바일은 스와이프라 숨김) */
.pw-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  z-index: 5;
}
.pw-arrow:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.pw-arrow:active { transform: translateY(-50%) scale(0.9); }
.pw-arrow:disabled { opacity: 0.22; cursor: default; pointer-events: none; }
.pw-arrow-prev { left: -68px; }
.pw-arrow-next { right: -68px; }
@media (max-width: 760px) { .pw-arrow { display: none; } }
.pw-card {
  flex: 0 0 100%; /* 트랙(스크롤포트) 폭과 1:1 — 스냅 위치가 index×폭으로 떨어진다 */
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always; /* 빠른 플릭에도 정확히 한 장씩 (iOS 15+) */
  box-sizing: border-box;
  padding: clamp(26px, 5vw, 38px) clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}
.pw-card.wrong { animation: ecl-shake 0.45s; border-color: rgba(255, 154, 154, 0.6); }
/* 무늬 아이콘 — 다이아/하트 웜, 스페이드/클로버 쿨 */
/* 무늬는 PNG를 마스크로 써서 단색(--halo-suit)으로 통일 — 원본 PNG색(회색/보라) 무관하게 같은 색 */
.pw-suit {
  width: clamp(44px, 11vw, 68px); height: clamp(44px, 11vw, 68px);
  display: block; margin: 0 auto;
  background-color: var(--sc, var(--halo-suit)); /* --sc = 무늬별 색(인라인) */
  -webkit-mask: var(--sm) center / contain no-repeat;
          mask: var(--sm) center / contain no-repeat;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.pw-stage-name { margin: 12px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.pw-stage-sub { margin: 0 0 20px; font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.pw-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.12em;
}
.pw-input::placeholder { color: rgba(255, 255, 255, 0.4); letter-spacing: 0.04em; }
.pw-input:focus { outline: 2px solid rgba(111, 155, 255, 0.5); border-color: transparent; }
.pw-input:disabled { opacity: 0.9; }
/* 입력줄 — 읽기전용 표시창 + 지우기(⌫). 입력은 아래 숫자 패드로 (모바일 키보드 안 띄움) */
.pw-entry { display: flex; gap: 8px; align-items: stretch; }
.pw-entry .pw-input { flex: 1; min-width: 0; }
.pw-back {
  flex: 0 0 auto; width: 48px; padding: 0; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75); font-size: 18px; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pw-back:active { background: rgba(255, 255, 255, 0.16); }
/* 숫자 패드 — 원형 키 두 줄 (0 1 2 3 4 / 5 6 7 8 9) */
.pw-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(6px, 1.8vw, 10px); justify-items: center; margin: 14px 0 0; }
.pw-key {
  width: 100%; max-width: 56px; aspect-ratio: 1 / 1; min-height: 42px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff; font-family: inherit; font-size: clamp(15px, 4vw, 18px); line-height: 1; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pw-key:active { background: rgba(143, 178, 255, 0.3); transform: scale(0.92); }
/* 번호 입력/삭제 빠르게 연타할 때 더블탭 줌으로 확대되는 것 방지 (핀치줌은 유지) */
.pw-key, .pw-back, .pw-submit, .pw-dot, .pw-arrow, .pw-input { touch-action: manipulation; }
.pw-card.found .pw-key, .pw-card.found .pw-back { opacity: 0.35; pointer-events: none; }
/* CTA — 각 카드의 '정답 맞추기' */
.pw-submit { min-width: 200px; margin-top: 18px; }
/* 맞은 조각 → 무늬가 빛남 */
.pw-card.found { border-color: rgba(143, 178, 255, 0.55); background: linear-gradient(180deg, rgba(111, 155, 255, 0.18), rgba(111, 155, 255, 0.05)); }
/* 정답: 조각이 원으로 날아가 빠진 느낌 — 카드의 무늬는 흐릿한 잔상만 */
.pw-card.found .pw-suit { opacity: 0.16; transform: scale(0.9); }
.pw-card.found .pw-input { border-color: rgba(143, 178, 255, 0.5); background: rgba(111, 155, 255, 0.12); }
.pw-card.found .pw-submit { opacity: 0.85; }

/* ===== 공개 페이지 (/n-je/halo) — 토큰 게이트 ===== */
.halo-reveal { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); min-height: calc(var(--app-vh, 100svh) - var(--header-h)); display: flex; }
.hr-state { width: 100%; display: flex; align-items: center; }
.hr-checking-text { text-align: center; color: var(--ink-faint); padding: 120px 0; font-size: 16px; width: 100%; }
.hr-open { text-align: center; padding: clamp(76px, 14vh, 168px) 0; }
/* eyebrow — 양옆 얇은 라인 + 넓은 자간 (프리미엄 라벨) */
.hr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-indent: 0.34em;            /* 끝 글자 자간 보정 */
  color: var(--paran-blue);
}
.hr-eyebrow::before,
.hr-eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 127, 224, 0.55));
}
.hr-eyebrow::after { background: linear-gradient(90deg, rgba(91, 127, 224, 0.55), transparent); }
/* 헤드라인 — 로고와 같은 톤(얇은 굵기 + 아이시→딥블루 그라데이션) */
.hr-title {
  margin: 0 0 22px;
  font-size: clamp(26px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
  background: linear-gradient(176deg, #2a3a64 0%, #3f63c8 58%, #5e81e3 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hr-sub { margin: 0 auto 36px; max-width: 460px; color: var(--ink-soft); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.75; word-break: keep-all; }
/* CTA — 프리미엄 필 버튼 + 부드러운 글로우/호버 리프트 */
/* 깔끔한 텍스트형 CTA — 밑줄 + 다운로드 아이콘 (사이트 .link-cta 톤) */
.hr-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 2px 5px;
  background: none;
  color: var(--paran-blue);
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 700;
  border-bottom: 1.5px solid var(--paran-blue);
  transition: gap 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hr-download:hover { gap: 13px; color: var(--paran-blue-dark); border-color: var(--paran-blue-dark); }
.hr-dl-icon { flex: none; transition: transform 0.15s ease; }
.hr-download:hover .hr-dl-icon { transform: translateY(2px); }
.hr-note { margin: 22px 0 0; font-size: 13px; color: var(--ink-faint); }

/* ===== 모바일 풀스크린 네비게이션 ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  padding: clamp(84px, 14vh, 120px) 28px 48px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mm-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.mm-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 5vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.mm-top,
.mm-head {
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}
.mm-group { display: flex; flex-direction: column; gap: 8px; }
.mm-head { margin-bottom: 2px; }
.mm-sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 5.2vw, 24px);
  font-weight: 600;
  color: var(--ink);
}
.mm-sub::before { content: "›"; color: var(--ink-faint); font-weight: 400; }
.mm-top.is-active,
.mm-sub.is-active { color: var(--paran-blue); }
body.menu-open { overflow: hidden; }
@media (min-width: 761px) { .mobile-menu { display: none; } }

/* ===== HALO 모의고사 페이지 (/exam) ===== */
.container.narrow { max-width: 740px; }
.page-hero { padding: clamp(48px, 8vh, 88px) 0 clamp(24px, 4vw, 36px); text-align: left; overflow-x: clip; }
/* 로고: 해무리 사진을 뒤에 깔고 중앙 정렬.
   해무리 링 중심(이미지 기준 ≈ 46%/49%)을 로고 중앙에 정확히 맞춤. */
.page-logo-wrap {
  position: relative;
  isolation: isolate;            /* 뒤 이미지(z-index:-1)가 페이지 뒤로 사라지지 않게 */
  display: flex;
  align-items: center;           /* 로고를 글로우 영역 세로 중앙에 → 많이 내려옴 */
  justify-content: center;
  /* 글로우 영역 세로 높이 = review hero 비주얼과 동일 (데스크톱 48svh, 모바일은 아래 미디어쿼리서 vw) */
  min-height: min(48svh, 400px);
  margin-bottom: clamp(20px, 3vw, 36px);
}
/* 로고 뒤 부드러운 해무리 글로우 — 투명 PNG라 가장자리가 자연 소멸해 경계가 안 보임 */
.page-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(135vw, 560px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(0.62);
  z-index: -1;
  pointer-events: none;
  background: url("/asset/halo-glow.png") center / contain no-repeat;
  opacity: 0;
  /* 로고 등장(reveal .in) 시 글로우가 피어나듯 확대+페이드 */
  transition: opacity 1s ease 0.12s, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s;
}
.page-logo-wrap.in::before { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
/* 로고 이미지도 살짝 확대되며 등장 */
.page-logo-img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s; }
.page-logo-wrap:not(.in) .page-logo-img { transform: scale(0.92); }
@media (prefers-reduced-motion: reduce) {
  .page-logo-wrap::before { opacity: 0.9; transform: translate(-50%, -50%); transition: none; }
  .page-logo-wrap .page-logo-img { transform: none; transition: none; }
}
.page-logo-img { display: block; height: clamp(96px, 18vw, 160px); width: auto; margin: 0; }
/* 로고: 이미지 + 보조텍스트(해설 등) */
.page-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 40px); }
.page-logo img { height: clamp(44px, 7vw, 68px); width: auto; }
.page-logo span { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.01em; }
/* review hero(.home-hero-copy h1/p)와 글씨/행간/자간 통일 */
.page-headline { margin: 0 0 24px; font-size: clamp(24px, 4vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.25; text-align: center; }
.page-sub { margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; text-align: center; }

/* ===== review 히어로: page-hero 골격 + 키워드 흩뿌림 비주얼 ===== */
.page-hero--review { text-align: center; }
.page-hero--review .page-hero-visual { display: flex; justify-content: center; margin-bottom: clamp(20px, 3vw, 36px); }
.page-hero--review .hero-keywords { height: min(48svh, 400px); width: auto; aspect-ratio: 1 / 1; }
.page-hero--review .hero-keywords::before { opacity: 0.22; }   /* 물결 배경 — hero-in 게이트 없이 바로 표시 */
.page-hero--review .cta-underline { margin-top: clamp(18px, 2.6vw, 26px); }
@media (max-width: 760px) {
  .page-hero--review .hero-keywords { height: auto; width: min(82vw, 360px); }
}

/* 표지 패널: 연한 박스 위에 표지를 그림자와 함께 띄움 */
.page-cover-box {
  display: flex;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
  margin: clamp(28px, 5vw, 52px) 0 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.page-cover {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.10);
}
.page-lead { margin: 0 0 6px; font-size: clamp(16px, 1.7vw, 19px); font-weight: 700; line-height: 1.6; }
.page-lead-sub { margin: 0; color: var(--ink-soft); font-size: clamp(14px, 1.5vw, 16px); }

.page-dl {
  padding: clamp(32px, 5vw, 56px) 20px clamp(64px, 9vw, 100px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
  scroll-margin-top: calc(var(--header-h) + 16px);   /* hero CTA(#download) 점프 시 헤더에 안 가리게 */
}
.page-dl .dl-block { border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 32px); }
.page-dl .dl-block h3 { margin: 0 0 8px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.01em; }
.page-dl .dl-block p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.page-dl .dl-count { display: block; margin-top: 10px; min-height: 1.25em; font-size: 13px; color: var(--ink-faint); }
/* 최신 회차 강조 카드 */
.page-dl .dl-block--new {
  border-top: 2px solid var(--paran-blue);
  background: var(--bg-glow);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
}
.page-dl .dl-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paran-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ===== Paran Lab 페이지 (/lab) — exam 형식 계열, SUIT 전용 ===== */
.lab .page-hero { text-align: left; padding-bottom: clamp(8px, 2vw, 20px); position: relative; isolation: isolate; }
/* 로고 뒤 물결 배경 — 옅게 깔고 가장자리는 radial 마스크로 페이드 */
.lab .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/asset/lab-hero-bg.jpg") center / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at center, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 70% at center, #000 20%, transparent 72%);
}
.lab-hero-logo {
  display: block;
  width: clamp(150px, 20vw, 240px);
  height: auto;
  margin: 0 auto clamp(20px, 3.5vw, 36px);
}
/* 빗금 3개: 왼쪽부터 위→아래로 '그려지듯' 순차 등장 */
.lab-hero-logo .lhl-bar {
  clip-path: inset(0 0 100% 0);
  animation: lhlDraw 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.lab-hero-logo .lhl-bar3 { animation-delay: 0.05s; }  /* 왼쪽 */
.lab-hero-logo .lhl-bar2 { animation-delay: 0.22s; }  /* 가운데 */
.lab-hero-logo .lhl-bar1 { animation-delay: 0.39s; }  /* 오른쪽 */
/* 워드마크: 빗금 뒤에 부드럽게 따라 올라옴 */
.lab-hero-logo .lhl-word {
  opacity: 0;
  transform: translateY(10px);
  animation: lhlWord 0.6s ease 0.62s forwards;
}
@keyframes lhlDraw {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes lhlWord {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-hero-logo .lhl-bar  { clip-path: none; animation: none; }
  .lab-hero-logo .lhl-word { opacity: 1; transform: none; animation: none; }
}
/* 히어로 헤드라인: 로고(빗금→워드마크 ~1.22s)가 다 그려진 뒤 등장 (스크롤 reveal과 무관한 로드 기반 연출) */
.lab .page-hero .page-headline {
  text-align: center;                         /* 중앙 정렬 */
  margin-top: clamp(40px, 8vw, 88px);         /* 로고와 간격 — 아래로 많이 내림(하단 섹션도 그만큼 내려감) */
  opacity: 0;
  transform: translateY(20px);
  animation: labHeadline 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 1.25s forwards;
}
@keyframes labHeadline { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lab .page-hero .page-headline { opacity: 1; transform: none; animation: none; }
}
.lab-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paran-blue);
}
.lab-sec { padding: clamp(40px, 6vw, 72px) 20px; border-top: 1px solid var(--line); }
/* 마지막 섹션은 푸터와 너무 붙지 않게 아래 여백 추가 */
.lab .lab-sec:last-child { padding-bottom: clamp(88px, 14vw, 160px); }
/* 섹션 헤더: 큰 번호 + (라벨/제목 2행) 좌측 정렬 */
.lab-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  margin-bottom: clamp(20px, 3vw, 28px);
}
.lab-num {
  font-size: clamp(56px, 11vw, 112px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #1a3170;
}
.lab-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.lab-label b { color: var(--paran-blue); font-weight: 800; margin-right: 8px; }
.lab-head .lab-title { margin: 0; }
.lab-title {
  margin: 0 0 24px;
  font-size: clamp(22px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.lab-body p { margin: 0 0 14px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8; color: var(--ink-soft); }
.lab-body p:last-child { margin-bottom: 0; }
.lab-body .muted { color: var(--ink-faint); }

.lab-principles { display: flex; flex-direction: column; gap: clamp(20px, 3.2vw, 32px); padding-left: clamp(12px, 3vw, 32px); }
.lab-pr {
  display: grid;
  grid-template-columns: clamp(28px, 4vw, 40px) 1fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: baseline;
  padding-top: clamp(18px, 2.6vw, 26px);
}
.lab-pr-num {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  font-variant-numeric: lining-nums;
}
.lab-pr-name { margin: 0 0 8px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; letter-spacing: -0.01em; }
.lab-pr-copy { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }

.lab-cta { padding: 0 20px clamp(64px, 9vw, 100px); }

/* ===== N제 Coming Soon 페이지 (/n-je) ===== */
.cs-hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  min-height: calc(var(--app-vh, 100svh) - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
  padding: clamp(64px, 12vh, 140px) 0;
}
.cs-hero .container { display: flex; flex-direction: column; align-items: center; }
.cs-eyebrow {
  display: inline-block;
  font-size: clamp(12px, 1.6vw, 14px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paran-blue);
}
.cs-title {
  margin: 18px 0 28px;
  font-size: clamp(64px, 16vw, 184px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.cs-sub {
  margin: 0 0 36px;
  max-width: 540px;
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ===== Text+line CTA (박스 없는 밑줄형 링크) ===== */
.page-hero-cta { margin-top: clamp(24px, 3vw, 32px); text-align: left; }
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.link-cta .arrow { transition: transform 0.15s ease; }
.link-cta:hover { color: var(--paran-blue); border-color: var(--paran-blue); gap: 12px; }
.link-cta:hover .arrow { transform: translateX(3px); }

/* ===== 해설 방식 섹션 (preview 변환) — 다크 밴드로 구분 ===== */
.method-sec {
  background: #0e0f12;
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 100px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.method-head {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.method-note {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* 대표 문항 */
.method-problem { margin: 0 0 clamp(40px, 6vw, 64px); }
.mp-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* 터치-공개 이미지 프레임 */
.reveal-img {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.reveal-img img { width: 100%; height: auto; }
.reveal-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 0.3s ease;
}
.reveal-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 20, 24, 0.55);
}
.reveal-cover > * { position: relative; z-index: 1; }
.reveal-img.is-revealed .reveal-cover { opacity: 0; pointer-events: none; }

/* 정답 보기 */
.answer-zone { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.answer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.answer-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.answer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.answer-pill .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paran-blue-soft);
}
.answer-zone.is-on .answer-pill { opacity: 1; transform: none; }

/* 탭: 풀이전 가이드 | 전체 해설 */
.method-tabs {
  display: flex;
  gap: 4px;
  margin: clamp(40px, 6vw, 64px) 0 clamp(24px, 3vw, 32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.method-tab {
  position: relative;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
}
.method-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.method-tab:hover { color: rgba(255, 255, 255, 0.78); }
.method-tab.is-on { color: #fff; }
.method-tab.is-on::after { transform: scaleX(1); }
.method-pane.is-hidden { display: none; }

/* 해설 방식 리스트 */
.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.method-item { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: clamp(20px, 3vw, 28px); }
.mi-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mi-num {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}
.mi-name { font-size: clamp(17px, 2vw, 21px); font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.mi-name .en { color: var(--paran-blue-soft); margin-right: 6px; }

/* ===== Scroll reveal (fadeup) — 레퍼런스식 진입 애니메이션 ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.22s; }
.reveal.d4 { transition-delay: 0.30s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .sol-row { grid-template-columns: 1fr auto; }
  .sol-row .idx { display: none; }
  .h-sec-head { align-items: flex-start; }
  .home-hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 7vw, 44px); }   /* 모바일: 표지 ↔ 카피 세로 간격 */
  .hero-cover { max-width: 320px; }
  .hero-keywords { max-width: 360px; }
  /* 모바일: hero 비주얼을 가로폭(vw) 기준으로 고정 → 주소창 접힘/펼침(뷰포트 높이 변화)에 흔들리지 않음 */
  /* home 인트로 히어로(#intro-hero)도 동일하게 — 포털 통과 후 스크롤 시 표지 크기 변동 방지 */
  #intro-hero .hero-cover { width: min(58vw, 280px); height: auto; justify-self: center; }
  #intro-hero .hero-keywords { width: min(82vw, 360px); height: auto; }
  /* exam 로고 영역 세로도 review 키워드 비주얼과 동일(모바일 vw 기준) */
  .page-logo-wrap { min-height: min(82vw, 360px); }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 8px; }
  .cards, .cards.cols-3, .entry-list { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* 모바일·인앱 웹뷰(카카오 등) 스크롤 끊김 방지:
   sticky 헤더의 backdrop-filter(blur)는 스크롤 매 프레임마다 뒤 배경을 다시 블러 처리해
   인앱 WebView에서 심한 버벅임을 만든다. 터치(거친 포인터) 환경에선 블러를 끄고
   불투명 배경으로 대체해 합성 비용을 없앤다(데스크톱은 기존 프로스티드 효과 유지). */
@media (hover: none) and (pointer: coarse) {
  .site-header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
}

/* ===== 해설 아카이브 상태 메시지 ===== */
.archive-status { color: var(--ink-faint); font-size: 15px; padding: 8px 0; }

/* ===== 해설 상세 페이지 (/review/article.html) ===== */
.article { padding: clamp(32px, 5vw, 56px) 20px clamp(64px, 9vw, 100px); }
.article-loading, .article-empty { color: var(--ink-faint); padding: 40px 0; }
.article-head { margin-bottom: clamp(28px, 4vw, 44px); }
.article-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.article-back:hover { color: var(--paran-blue); }
.article-meta {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paran-blue);
  text-transform: uppercase;
}
.article-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.article-date { margin: 0; font-size: 14px; color: var(--ink-faint); }

.article-body { max-width: none; margin: 0 0 clamp(40px, 6vw, 64px); }
.article-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 14px; }
.article-body h3 { font-size: clamp(18px, 2.2vw, 22px); margin: 28px 0 10px; }
.article-body p { color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.8; margin: 0 0 16px; }
.article-body ul, .article-body ol { color: var(--ink-soft); padding-left: 22px; margin: 0 0 16px; line-height: 1.8; }
.article-body img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); margin: 8px 0; }
.article-body a { color: var(--paran-blue); text-decoration: underline; }
.article-body blockquote {
  margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--line);
  color: var(--ink-soft); background: var(--bg-soft); border-radius: 0 6px 6px 0;
}
.article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }

.article-h2 { font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; margin: 0 0 16px; }
.article-gallery, .article-files { margin-top: clamp(40px, 6vw, 56px); }
/* PDF 다운로드를 본문 위로 올린 경우: 위 여백 제거 + 본문과의 간격 */
.article-files--top { margin-top: 0; margin-bottom: clamp(32px, 5vw, 48px); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-cell { margin: 0; }
.gallery-cell img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  cursor: zoom-in; transition: opacity 0.15s ease;
}
.gallery-cell img:hover { opacity: 0.88; }
.gallery-cell figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-faint); }

.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px;
}
.file-label { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; word-break: keep-all; }
/* 다운로드 버튼은 항상 한 줄(줄바꿈 방지) */
.file-row .btn { flex: none; white-space: nowrap; }
/* 아이콘 전용 다운로드 버튼(정사각형, 글씨 없음) */
.file-dl { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 10px; }
.file-dl svg { display: block; }

/* 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 12, 15, 0.88);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer;
}
/* 넘겨보기 화살표 — 이미지가 2장 이상(.has-nav)일 때만 표시 */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox.has-nav .lightbox-nav { display: flex; }
.lightbox-count {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
}

/* ===== N제 HALO 브랜드 비주얼 — 발광 로고 · 오브 글로우 · 오로라 (2026-06) =====
   세 페이지(/n-je 랜딩 · /n-je/eclipse · /n-je/halo)에만 적용되도록 전부 스코프.
   공통 자산: halo-logo-glow.png(발광 워드마크), halo-orb.png(무지갯빛 구체), halo-aurora-bg.jpg */

/* 코너 장식용 오브 글로우 — 콘텐츠 뒤에서 빛만 번진다(클릭 막지 않음) */
.brand-orb {
  position: absolute;
  width: min(72vw, 520px);
  aspect-ratio: 1;
  background: url("/asset/halo-orb.png") center / contain no-repeat;
  filter: blur(3px);
  pointer-events: none;
  z-index: -1;
}

/* --- 랜딩(/n-je): 표지 시안처럼 로고 뒤 '중앙 구체' + HALO 아래 'N제' --- */
.nje { position: relative; z-index: 0; overflow-x: clip; }
.nje .page-logo-wrap { flex-direction: column; margin-bottom: clamp(34px, 7vw, 60px); } /* 구체 ↔ 헤드라인 간격 */
/* 발광 로고가 구체 위에서도 또렷하게 뜨도록 부드러운 글로우 */
.nje .page-logo-img { filter: drop-shadow(0 4px 24px rgba(120, 150, 235, 0.55)); }
/* 로고 뒤 무지갯빛 구체(오비트 라인·반짝임 포함). 표지처럼 워드마크가
   구체의 아래쪽 푸른 호에 얹히도록 구체 중심을 살짝 위로 올린다. */
.nje .page-logo-wrap::before {
  width: min(98vw, 580px);
  top: 48%;                /* HALO가 구체 중앙에 얹히게 */
  background: url("/asset/halo-orb.png") center / contain no-repeat;
  filter: saturate(1.08);
}
/* 히어로 옅은 오로라 배경 — 콘텐츠 뒤, 아래로 페이드 */
.nje .page-hero { position: relative; }
.nje .page-hero > .container { position: relative; z-index: 1; }
.nje-aurora {
  position: absolute;
  inset: 0;
  background: url("/asset/halo-aurora-bg.jpg") center top / cover no-repeat;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 96%);
          mask-image: linear-gradient(#000 60%, transparent 96%);
  pointer-events: none;
  z-index: 0;
}
.nje .page-logo-wrap.in::before { opacity: 0.95; }

/* ===== 히어로 첫 등장 시퀀스: 구체 → HALO N제 → headline → sub =====
   로고 블록은 통째로 페이드하지 않고 자식별로 시간차 등장(.in 은 reveal.js가 부여). */
.nje .page-logo-wrap.reveal { opacity: 1; transform: none; transition: none; }
/* 1) 구체(orb) — 가장 먼저 핀다 */
.nje .page-logo-wrap::before {
  transition: opacity 0.9s ease 0.05s, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s;
}
/* 2) HALO 로고 + N제 — 구체 다음에 떠오른다 */
.nje .page-logo-wrap .page-logo-img,
.nje .page-logo-wrap .nje-logo-tag {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nje .page-logo-wrap.in .page-logo-img { opacity: 1; transform: none; transition-delay: 0.40s; }
.nje .page-logo-wrap.in .nje-logo-tag  { opacity: 1; transform: none; transition-delay: 0.55s; }
/* 3~4) headline → sub — 로고 다음 (reveal 기본 딜레이를 더 늦게 덮어씀) */
.nje .page-headline.reveal { transition-delay: 0.75s; }
.nje .page-sub.reveal { transition-delay: 0.90s; }
/* 5) 그 아래 표지 — 스크롤(드래그) 의존 없이 '로드 시퀀스'로 자동 등장(sub 다음).
   reveal(스크롤 진입)에 맡기면 드래그해야 뜨고 딜레이까지 겹쳐 늦으므로,
   로드 즉시 재생되는 keyframe으로 대체해 항상 순서대로 뜨게 한다. */
.nje .page-cover-box.reveal { animation: njeSeqIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.95s both; }
@keyframes njeSeqIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nje .page-cover-box.reveal { animation: none; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nje .page-logo-wrap .page-logo-img,
  .nje .page-logo-wrap .nje-logo-tag { opacity: 1; transform: none; transition: none; }
}
/* PC: 구체가 헤드라인과 겹치지 않게 히어로 세로를 넓히고 구체를 약간 줄임 */
@media (min-width: 761px) {
  .nje .page-logo-wrap { min-height: min(60svh, 560px); }
  .nje .page-logo-wrap::before { width: min(58vw, 540px); top: 45%; }
}
/* HALO 아래 'N제' — 흰색(구체 위에서 뜨도록 부드러운 글로우) */
.nje-logo-tag {
  margin-top: clamp(4px, 1.4vw, 12px);
  font-size: clamp(30px, 7vw, 50px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(90, 120, 215, 0.55), 0 1px 3px rgba(60, 90, 170, 0.45);
}

/* ===== 식 蝕(/n-je/eclipse) → HALO(/n-je/halo) 연속 전환 — 단계적·느리게 ===== */
/* 여명 오버레이 — 마지막에 배경이 하얗게 차오른다 */
.ecl-dawn {
  position: fixed; inset: 0; z-index: 5; opacity: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -120px, rgba(120, 170, 255, 0.30), transparent 72%),
    radial-gradient(620px 420px at 50% 6%, rgba(11, 83, 224, 0.13), transparent 70%),
    #ffffff;
  transition: opacity 1.2s ease;
}

/* (1) 해가 전부 드러난 뒤 → HALO 구체로 천천히 모핑 (해는 사라지지 않음) */
.ecl-orb {
  position: absolute; inset: 0;
  background: url("/asset/halo-orb.png") center / contain no-repeat;
  filter: drop-shadow(0 0 36px rgba(150, 180, 255, 0.55));
  opacity: 0; transition: opacity 1.1s ease;
}
body.ecl-morph .ecl-orb { opacity: 1; }                                    /* 구체 페이드인 */
body.ecl-morph .ecl-lock { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } /* 자물쇠 사라짐 */
body.ecl-morph .ecl-disc { opacity: 0; }                                   /* 검은 원 페이드아웃 → HALO 구체만 */

/* (2) 그다음 주변 요소(텍스트·카드·조각·코로나 링)가 사라진다 */
body.ecl-clear .eclipse-ui { opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
body.ecl-clear .ecl-shards { opacity: 0; transition: opacity 0.6s ease; }
body.ecl-clear .eclipse.removed .ecl-corona { opacity: 0; transition: opacity 0.7s ease; }

/* (3) 마지막에 배경이 하얗게 + 구체를 HALO와 공유하는 위치로 옮긴다(FLIP) */
body.ecl-dawn-on .ecl-dawn { opacity: 1; }
.eclipse.to-halo-sun { position: fixed !important; margin: 0 !important; z-index: 30; }
.eclipse.to-halo-sun .ecl-moon-clip { opacity: 0; transition: opacity 0.4s ease; }
/* 네비게이션 바도 여명과 함께 하얗게 — halo 의 밝은 헤더로 자연스럽게 이어짐 */
body.eclipse-page.ecl-dawn-on .site-header,
body.eclipse-page.ecl-dawn-on .site-header .brand img,
body.eclipse-page.ecl-dawn-on .brand .brand-sub,
body.eclipse-page.ecl-dawn-on .nav a {
  transition: background 1.1s ease, border-color 1.1s ease, color 1.1s ease, filter 1.1s ease;
}
body.eclipse-page.ecl-dawn-on .site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: var(--line);
}
body.eclipse-page.ecl-dawn-on .site-header .brand img { filter: none; }
body.eclipse-page.ecl-dawn-on .site-header .brand .brand-sub { color: var(--ink-soft); }
body.eclipse-page.ecl-dawn-on .site-header .nav a { color: var(--ink-soft); }
body.eclipse-page.ecl-dawn-on .site-header .nav a:hover { color: var(--ink); background: var(--bg-soft); }
body.eclipse-page.ecl-dawn-on .site-header .nav a.active { color: var(--paran-blue); }
body.eclipse-page.ecl-dawn-on .site-header .nav-toggle { color: var(--ink); }

/* --- 복원(/n-je/halo): 해가 같은 자리에 박히고, 뒤에 구체, 아래로 글이 촤라락 --- */
/* 도착 즉시 보이는 무대: 밝은 글로우 + 해 + 구체 (이클립스 식에서 연속) */
/* 무대(구체)는 페이지와 함께 스크롤되도록 absolute — 위로 드래그하면 구체도 같이 올라간다.
   (fixed면 뷰포트에 박혀 안 움직임). .halo-reveal 이 position:relative 라 그 기준. */
.hr-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hr-stage.is-hidden { display: none; }
.hr-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 50% -120px, rgba(120, 170, 255, 0.30), transparent 72%),
    radial-gradient(620px 420px at 50% 6%, rgba(11, 83, 224, 0.13), transparent 70%);
}
.hr-sun-wrap {
  position: absolute; top: var(--halo-sun-top); left: 50%;
  transform: translateX(-50%);
  width: var(--halo-sun-size); aspect-ratio: 1;
}
/* HALO 구체 — 이클립스에서 모핑돼 넘어온 그 구체(같은 크기·이미지). 천천히 호흡 */
.halo-orb-main {
  position: absolute; inset: 0;
  background: url("/asset/halo-orb.png") center / contain no-repeat;
  filter: drop-shadow(0 0 36px rgba(150, 180, 255, 0.55));
  animation: hr-breathe 7s ease-in-out infinite;
}
@keyframes hr-breathe {
  0%, 100% { transform: scale(1);    opacity: 0.95; }
  50%      { transform: scale(1.045); opacity: 1; }
}
/* (4) 도착 후 구체 주변으로 은은한 글로우가 퍼진다 */
.hr-orb-glow {
  position: absolute; top: 50%; left: 50%;
  width: 300%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 180, 255, 0.5) 0%, rgba(150, 180, 255, 0.16) 38%, transparent 66%);
  transform: translate(-50%, -50%) scale(0.45);
  opacity: 0; z-index: -1; pointer-events: none;
  animation: hr-glow-spread 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
@keyframes hr-glow-spread {
  0%   { transform: translate(-50%, -50%) scale(0.45); opacity: 0; }
  60%  { opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.8; }
}
/* 떠다니는 반짝임 입자(해 주변) */
.hr-sparkles { position: absolute; inset: 0; pointer-events: none; }
.hr-sparkles span {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(170, 200, 255, 0.9);
  opacity: 0;
  animation: hr-twinkle 4s ease-in-out infinite;
}
.hr-sparkles span:nth-child(1) { top: 20%; left: 38%; animation-delay: 0s; }
.hr-sparkles span:nth-child(2) { top: 30%; left: 64%; animation-delay: 1.1s; transform: scale(0.7); }
.hr-sparkles span:nth-child(3) { top: 42%; left: 44%; animation-delay: 2.2s; transform: scale(0.85); }
.hr-sparkles span:nth-child(4) { top: 26%; left: 57%; animation-delay: 3s; transform: scale(0.6); }
@keyframes hr-twinkle { 0%, 100% { opacity: 0; } 50% { opacity: 0.9; } }

/* 텍스트 블록 — 해 아래에서 시작(위에서부터 가운데 정렬 흐름) */
.halo-reveal .hr-open {
  display: block;
  text-align: center;
  padding: calc(var(--halo-sun-top) + var(--halo-sun-size) + clamp(26px, 6vh, 60px)) 20px clamp(72px, 14vh, 140px);
}
.halo-reveal .hr-open > .container { position: relative; z-index: 1; }
/* 헤드라인 — 아이시 그라데이션 위로 밝은 빛이 가로지름(샤인 스윕) */
.halo-reveal .hr-title {
  background: linear-gradient(110deg, #2a3a64 0%, #3f63c8 38%, #a9c2f5 50%, #3f63c8 62%, #2a3a64 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  animation: hr-shine 3.2s ease-in-out infinite;
}
@keyframes hr-shine {
  0%   { background-position: 130% 50%; }
  100% { background-position: -30% 50%; }
}
/* (5) 글이 천천히 형성 — 헤드라인→서브→버튼→안내 순으로 떠오름 */
html.halo-enter .halo-reveal .hr-open .container > * { opacity: 0; transform: translateY(20px); }
html.halo-revealed .halo-reveal .hr-open .container > * {
  opacity: 1; transform: none;
  transition: opacity 0.85s ease, transform 0.95s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.halo-revealed .hr-open .hr-title    { transition-delay: 0s; }
html.halo-revealed .hr-open .hr-sub      { transition-delay: 0.18s; }
html.halo-revealed .hr-open .hr-download { transition-delay: 0.36s; }
html.halo-revealed .hr-open .hr-note     { transition-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  .halo-orb-main,
  .halo-reveal .hr-title,
  .hr-sparkles span { animation: none; }
  html.halo-enter .halo-reveal .hr-open .container > * { opacity: 1; transform: none; }
}
