/* =========================================================
   ICARUS — Light (white base, signature blue + brass)
   - 바탕은 흰색, 구분은 선이 아니라 여백과 배경 한 단계(--bg-alt)로.
   - 시그니처 블루는 코발트(#0047AB)로 확정. :root의 --brand* 토큰만 바꾸면 전체가 따라간다.
   - 브라스는 스파, 수상, 상시 모집 상태등, 유레카관 하이라이트에만.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  /* 보조 배경: 아주 약간 차가운 중성 회색. 블루와 같은 온도라 섞였을 때 탁해지지 않고,
     흰색 대비 단계가 한 번에 읽히는 정도(L* 약 96.6)만 낮췄다. */
  --bg-alt: #F3F5F8;
  --bg-deep: #E9EDF2;
  --ink: #191F28;            /* 16.6:1 on white */
  --ink-2: #4E5968;          /* 7.1:1 */
  --ink-3: #5F6B7A;          /* 5.4:1 on white, 5.0:1 on bg-alt */
  --hair: rgba(25, 31, 40, 0.08);
  --brass: #A27B33;          /* 스파·대형 요소(3.9:1, 큰 글자 전용) */
  --brass-text: #8A6828;     /* 작은 글자용 브라스 (5.2:1) */
  --brass-light: #CFAE6E;    /* 큰 장식 면 / 블루 위 */
  --warn: #C2410C;

  /* 시그니처 블루 = 코발트 #0047AB (확정). 대비: 흰 바탕 8.4:1, #F3F5F8 위 7.7:1, 브랜드 위 흰 글자 8.4:1 */
  --brand: #0047AB;
  --brand-ink: #003785;      /* hover·눌림 (11.1:1) */
  --brand-tint: #F0F4FA;     /* 6% 워시 — 브랜드 글자 7.6:1 */
  --brand-tint-2: #E0E9F5;   /* 12% — 칩·눌린 탭 바탕 */
  --brand-on: #FFFFFF;
  --brand-on-2: rgba(255, 255, 255, 0.84);  /* 코발트 밴드 위 보조 글자 6.4:1 */
  --brand-rgb: 0, 71, 171;
  --display-ink: var(--brand);

  --logo-ink: var(--brand);
  --logo-spar: var(--brass);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --gutter: 16px;
  --maxw: 1280px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 76px; } }

/* 팔레트 후보(참고용, 미사용): Ultramarine #120A8F · Klein #002FA7 · Sapphire #0F52BA · KAIST #004191.
   바꾸려면 :root의 --brand* 7개만 교체. */

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr, var(--header-h)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* 내비로 이동하는 섹션: 헤더 바로 아래에서 화면을 꽉 채움 (--hdr = 실제 헤더 높이, main.js가 측정).
   svh: 모바일 브라우저 바가 보일 때 기준이라 바가 접혀도 잘리지 않음. 내용이 더 길면 섹션 맨 위부터 시작(축소하지 않음). */
.frame {
  scroll-margin-top: var(--hdr, var(--header-h));
  min-height: calc(100vh - var(--hdr, var(--header-h)));
  min-height: calc(100svh - var(--hdr, var(--header-h)));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(40px, 7svh, 104px);
}
.frame > .container { width: 100%; }
.num { font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---- logo (build_logo.py 주입) ---- */
.logo { overflow: visible; }
.lg-ink-fill, .lg-ink-fill path { fill: var(--logo-ink); }
.lg-ink-stroke, .lg-ink-stroke path { stroke: var(--logo-ink); }
.lg-spar-fill { fill: var(--logo-spar); }
.lg-divider { stroke: var(--logo-ink); stroke-opacity: .3; fill: none; }

/* ---- buttons / links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-on); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-soft { background: var(--brand-tint-2); color: var(--brand); }
.btn-soft:hover { background: var(--brand-tint); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-tint); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; text-decoration: none;
}
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.link:hover { color: var(--brand-ink); }

/* ---- header ---- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--hair); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; text-decoration: none; }
.brand .logo { height: 34px; width: auto; }
@media (min-width: 768px) { .brand .logo { height: 40px; } }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a.is-active, .nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { margin-left: 8px; }
}
.menu-toggle { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), background-color .2s; content: ""; }
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
@media (max-width: 1023px) { .header-cta .btn { display: none; } }
.mobile-menu {
  position: fixed; inset: var(--hdr, var(--header-h)) 0 0; z-index: 99; background: #fff;
  padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .3s;
}
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 60px; padding: 8px 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.mobile-menu a:not(.btn)::after { content: ""; margin-left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: 0; transition: opacity .2s; }
.mobile-menu a[aria-current="page"], .mobile-menu a.is-active { color: var(--brand); }
.mobile-menu a.is-active::after, .mobile-menu a[aria-current="page"]::after { opacity: 1; }
.mobile-menu .btn { height: 56px; font-size: 17px; }
.mobile-menu .btn { margin-top: 24px; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open .site-header { background: #fff; }
.menu-open { overflow: hidden; }

/* ---- hero ---- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 var(--hero-bot);
  background: #fff;
}
.hero-flow { position: absolute; inset: 0; z-index: 1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 워드마크 위 "하늘": 짧은 화면에서도 익형이 들어갈 높이를 보장 (flow.js가 이 영역 안에서만 익형을 그림) */
/* 익형의 하늘: 최소 높이를 보장 (1440×900·1920×1080에선 한 화면에 다 들어가고, 짧은 화면만 히어로가 길어짐) */
.hero-sky { flex: 1 0 auto; min-height: calc(var(--hdr, var(--header-h)) + var(--sky-min)); }
@media (max-width: 767px) { .hero-sky { min-height: calc(var(--hdr, var(--header-h)) + 420px); } }
.aoa-gauge { position: absolute; z-index: 4; cursor: ns-resize; touch-action: none; border-radius: 12px; }
.aoa-gauge:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.hero-inner { position: relative; z-index: 2; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
/* 큰 익형이 하늘을 쓰도록 소개 한 줄은 히어로 아래 왼쪽, 스크롤 신호는 아래 오른쪽 */
.hero-kicker { position: absolute; z-index: 3; bottom: calc(var(--hero-bot) / 2 - 10px); left: 0; right: 0; font-size: 14px; color: var(--ink-2); font-weight: 500; pointer-events: none; }
@media (max-width: 420px) { .hero-kicker { font-size: 13px; padding-right: 64px; } }
.hero-word { margin: 0; line-height: 0; }
/* 대형 워드마크 = min(폭 기준 93%, 높이 기준). 높이 기준 = 화면 − 헤더 − 아래 여백 − 익형 하늘 최소치 → 넓고 낮은 화면에서도 잘리지 않음 */
:root { --hero-bot: max(64px, 8vh); --hero-bot: max(64px, 8svh); --sky-min: clamp(260px, 38vh, 460px); --sky-min: clamp(260px, 38svh, 460px); }
.hero-word .logo { height: auto; --logo-ink: var(--display-ink); width: 100%; }
@media (min-width: 768px) {
  .hero-word .logo { width: min(93%, calc((100vh - var(--hdr, 76px) - var(--hero-bot) - var(--sky-min)) * 3.443));
                     width: min(93%, calc((100svh - var(--hdr, 76px) - var(--hero-bot) - var(--sky-min)) * 3.443)); }
}

/* ---- section rhythm ---- */
.sec { padding: clamp(96px, 12vw, 168px) 0; position: relative; }
.sec-alt { background: var(--bg-alt); }
.sec-tight { padding-top: 0; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.04em; line-height: 1.2; }
.h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); line-height: 1.7; }
.kicker { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 16px; letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }

/* ---- about ---- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: repeat(12, 1fr); } .about-grid .about-body { grid-column: 6 / span 7; } }
.statement { font-size: clamp(28px, 4.2vw, 56px); line-height: 1.3; letter-spacing: -0.045em; font-weight: 700; }
.statement .word { transition: opacity .2s; }
.statement em { font-style: normal; color: var(--brand); }
.about-body { display: grid; gap: 20px; color: var(--ink-2); font-size: 18px; }

/* ---- teams ---- */
.teams-head { display: grid; gap: 16px; margin-bottom: 56px; max-width: 760px; }
.teams { display: grid; gap: 20px; }
@media (min-width: 900px) { .teams { grid-template-columns: 1fr 1fr; gap: 24px; } }
.team-card { background: var(--bg-alt); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.team-art { aspect-ratio: 16 / 10; position: relative; color: var(--brand); }
.team-art svg { width: 100%; height: 100%; }
.team-body { padding: 8px 32px 36px; display: grid; gap: 14px; }
@media (max-width: 600px) { .team-body { padding: 4px 22px 28px; } .team-card { border-radius: 22px; } }
.team-tag { font-size: 15px; font-weight: 600; color: var(--brand); }
.team-body p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: #fff; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.team-goal { font-size: 15px; color: var(--ink-3); }
.team-goal b { color: var(--ink); font-weight: 600; margin-left: 6px; }

/* ---- history ---- */
.history-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: end; margin-bottom: 48px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #fff; }
.tab { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--brand); color: var(--brand-on); }
.tab:not([aria-selected="true"]):hover { color: var(--ink); }
.tl-wrap { position: relative; padding-left: 36px; }
@media (min-width: 900px) { .tl-wrap { padding-left: 56px; } }
.alt-track { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--bg-deep); }
.alt-fill { position: absolute; inset: 0; background: var(--brand); border-radius: 2px; transform-origin: 50% 0; transform: scaleY(1); }
.has-motion .alt-fill { transform: scaleY(0); }
.timeline { display: grid; gap: 0; }
.timeline[hidden] { display: none; }
.tl-row { position: relative; display: grid; gap: 4px 40px; padding: 22px 0; }
@media (min-width: 900px) { .tl-row { grid-template-columns: 140px 1fr auto; align-items: baseline; padding: 28px 0; } }
.tl-row::before {
  content: ""; position: absolute; left: -36px; top: 33px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); box-shadow: inset 0 0 0 2px var(--bg-deep); transition: box-shadow .4s, background-color .4s;
}
@media (min-width: 900px) { .tl-row::before { left: -56px; top: 38px; } }
.tl-row.is-passed::before, .no-motion .tl-row::before { background: var(--brand); box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 5px var(--brand-tint-2); }
.tl-row.award.is-passed::before { background: var(--brass); box-shadow: inset 0 0 0 2px var(--brass), 0 0 0 5px rgba(207,174,110,.25); }
.tl-year { font-size: 15px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.tl-desc { color: var(--ink-2); margin-top: 4px; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.badge.award { color: var(--brass-text); background: #FBF6EC; }

/* ---- archive preview ---- */
.archive-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.cards { display: grid; gap: 40px 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; text-align: left; color: inherit; width: 100%; }
.card-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--bg-alt); color: var(--brand); transition: background-color .3s; }
.card-thumb > svg, .card-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-thumb { background: var(--brand-tint-2); }
.card-thumb .badge { position: absolute; left: 14px; top: 14px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.card-title { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; margin-top: 4px; transition: color .2s; }
.card:hover .card-title { color: var(--brand); }
.card-summary { color: var(--ink-2); font-size: 15px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plot path, .plot circle, .plot ellipse, .plot rect { vector-effect: non-scaling-stroke; }

/* ---- join (full-bleed brand band) ---- */
.join { background: var(--brand); color: var(--brand-on); padding: clamp(96px, 11vw, 160px) 0; position: relative; overflow: hidden; }
.join ::selection { background: #fff; color: var(--brand); }
.join-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .join-grid { grid-template-columns: 6fr 6fr; gap: 64px; align-items: start; } }
.join h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.045em; line-height: 1.15; }
.join .lead { color: var(--brand-on-2); margin-top: 24px; max-width: 30em; }
.join-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; }
.status-light { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--brass-light); flex: none; }
.status-light::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--brass-light); opacity: .35; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.6); opacity: 0; } 50% { transform: scale(1.15); opacity: .45; } }
.info { margin-top: 48px; display: grid; gap: 0; }
.info > div { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 0; }
.info > div + div { box-shadow: 0 -1px 0 rgba(255,255,255,.14); }
.info dt { font-size: 15px; color: var(--brand-on-2); padding-top: 1px; }
.info dd { font-size: 17px; font-weight: 600; }
.info dd small { display: block; font-size: 15px; font-weight: 400; color: var(--brand-on-2); margin-top: 4px; line-height: 1.6; }
.ig-link { display: inline-flex; align-items: flex-start; gap: 10px; text-decoration: none; transition: color .2s; }
.ig-link svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.ig-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.ig-link:hover svg { color: var(--brass-light); }

.map-panel { position: relative; border-radius: 28px; overflow: hidden; background: rgba(255,255,255,.06); }
.map-panel svg { width: 100%; height: auto; aspect-ratio: 1 / 1; }
@media (min-width: 1024px) { .join-map { position: sticky; top: calc(var(--header-h) + 24px); } }
.m-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.m-campus { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.28); stroke-width: 1; stroke-dasharray: 2 4; }
.m-green path { fill: rgba(255,255,255,.05); }
.m-water path { fill: rgba(255,255,255,.12); }
.m-road path { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-minor path { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.m-bld path { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.2); stroke-width: .6; }
.m-eureka-fill { fill: rgba(207,174,110,.5); }
.m-eureka { fill: none; stroke: var(--brass-light); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.m-eureka.is-shimmer { animation: shimmer 3.2s ease-in-out infinite; }
@keyframes draw-on { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes shimmer {
  0%, 100% { stroke-opacity: 1; filter: drop-shadow(0 0 0 rgba(207,174,110,0)); }
  50% { stroke-opacity: .65; filter: drop-shadow(0 0 6px rgba(207,174,110,.9)); }
}
.m-pin-dot { fill: var(--brass-light); }
.m-pin-ring { fill: none; stroke: var(--brass-light); stroke-width: 1.5; }
.m-label { font: 600 15px var(--font); fill: #fff; letter-spacing: -0.02em; }
.m-sub { font: 500 13px var(--font); fill: rgba(255,255,255,.75); }
.m-north { font: 600 12px var(--font); fill: rgba(255,255,255,.6); }
.footer-credit { font-size: 12px; color: var(--ink-3); }
.footer-credit a { color: inherit; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
.map-cap { margin-top: 14px; font-size: 15px; color: var(--brand-on-2); }

/* ---- FAQ ---- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 48px; } }
.faq-list details { border-radius: 18px; background: var(--bg-alt); margin-bottom: 10px; transition: background-color .2s; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; position: relative; border-radius: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 24px 24px; color: var(--ink-2); }
.faq-list a { color: var(--brand); font-weight: 600; }

/* ---- footer ---- */
.site-footer { background: var(--bg-alt); padding: 80px 0 0; overflow: hidden; }
.footer-top { display: grid; gap: 40px; }
.footer-top { grid-template-columns: 1fr 1fr; }
.footer-top > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 5fr 2fr 2fr 3fr; gap: 32px; } .footer-top > div:first-child { grid-column: auto; } }
.footer-top .logo { height: 44px; width: auto; margin-bottom: 24px; }
.footer-top p { color: var(--ink-2); font-size: 15px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 14px; letter-spacing: -0.01em; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; color: var(--ink); font-size: 15px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 64px; font-size: 14px; color: var(--ink-3); }
.footer-word { margin-top: 40px; line-height: 0; transform-origin: 50% 100%; }
.footer-word .logo { width: 100%; height: auto; --logo-ink: var(--display-ink); }

/* ---- reveal (짧고 작게, 제목에만) ---- */
.has-motion [data-rise] { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.has-motion [data-rise].is-in { opacity: 1; transform: none; }

/* ---- intro overlay ---- */
.intro { display: none; }
.intro-pending .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 500; background: #fff; cursor: pointer;
}
.intro-stage { width: min(78vw, 760px); transform-origin: 0 0; }
.intro-stage .logo { width: 100%; height: auto; }
.intro-skip { position: absolute; right: 20px; bottom: 20px; font-size: 13px; color: var(--ink-3); padding: 8px 12px; border-radius: 10px; }
.intro-skip:hover { color: var(--ink); background: var(--bg-alt); }
.intro-pending .site-header .brand { visibility: hidden; }

/* ---- projects page ---- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(48px, 6vw, 80px); }
.page-title { font-size: clamp(56px, 11vw, 168px); font-weight: 800; letter-spacing: -0.06em; line-height: .95; color: var(--display-ink); }
.course { background: var(--bg-alt); border-radius: 32px; padding: clamp(24px, 4vw, 56px); display: grid; gap: 40px; }
@media (min-width: 1024px) { .course { grid-template-columns: 5fr 7fr; gap: 56px; } }
.course-term { font-size: 15px; font-weight: 600; color: var(--brand); }
.course h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.04em; margin-top: 8px; }
.course .lead { margin-top: 16px; font-size: 17px; }
.course-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.course-note { margin-top: 24px; font-size: 14px; color: var(--ink-3); }
.lessons { display: grid; gap: 10px; }
.lesson { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: #fff; }
.lesson .n { font-size: 15px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.lesson b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.lesson span.s { font-size: 14px; color: var(--ink-3); }
.lesson .state { font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--bg-alt); border-radius: 8px; padding: 4px 10px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .status-light::after { display: none; }
  .m-eureka { stroke-dashoffset: 0 !important; }
}

/* 인트로 초기 상태 (GSAP가 인라인 스타일로 덮어씀) */
.intro-pending .intro .lg-l, .intro-pending .intro .lg-xbar, .intro-pending .intro .lg-divider,
.intro-pending .intro .lg-tag, .intro-pending .intro .lg-foil, .intro-pending .intro .lg-spar, .intro-pending .intro .lg-I { opacity: 0; }
.intro-pending [data-hero-in], .intro-pending .hero-word { opacity: 0; }
.intro-flow-wait .hero-flow { opacity: 0; }
.intro-ghost { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.lg-plane-body { opacity: 0; }   /* 인트로에서만 잠깐 보임 */
.m-pin-pulse { fill: none; stroke: var(--brass-light); stroke-width: 1.5; opacity: 0; }

/* 프레임 섹션 패딩 (일반 .sec/.join 패딩보다 우선) */
.sec.frame, .join.frame { padding-block: clamp(40px, 7svh, 104px); }
@media (max-width: 767px) { .sec.frame, .join.frame { padding-block: 40px 56px; } }


/* =========================================================
   섹션 헤더 패턴 (내비 목적지 = 한 화면짜리 "페이지")
   영문 대형 제목: 오너가 좋아한 ARCHIVE 헤더 그대로 — Pretendard 800, 자간 -0.06em (새 서체 없음. ICARUS 워드마크는 항상 로고 원본 경로)
   한글 부제: Pretendard 700, 22-32px, 자간 -0.035em. 본문 17px / 1.7.
   ========================================================= */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: clamp(20px, 3vw, 48px); row-gap: 10px; margin-bottom: clamp(28px, 4.5svh, 60px); }
.display { margin: 0; font-family: var(--font); font-weight: 800; font-size: clamp(56px, 8vw, 128px); line-height: .92; letter-spacing: -0.06em; color: var(--display-ink); overflow: hidden; padding: .04em .04em .06em 0; }
.display > span { display: inline-block; }
.sec-head h2 { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.32; letter-spacing: -0.035em; font-weight: 700; padding-bottom: .3em; max-width: 24em; }
.sec-head .statement { font-size: clamp(22px, 2.5vw, 36px); line-height: 1.38; max-width: 22em; }
.about-grid .about-head { grid-column: 1 / -1; }

.join .display { color: #fff; }
.join-head { align-items: center; margin-bottom: 20px; }
.join h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1.25; }
.page-display { font-size: clamp(80px, 13vw, 200px); }
.page-sub { margin-top: 14px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.03em; }
.page-lead { margin-top: 18px; max-width: 34em; }
@media (min-width: 900px) { .team-art { aspect-ratio: 16 / 8; } }
@media (max-width: 767px) {
  .sec-head { flex-direction: column; align-items: flex-start; }

}

/* =========================================================
   푸터: 맨 아래에서 위 블록 + 거대 워드마크가 한 화면에.
   워드마크 = min(폭, 남은 높이 x 3.443) — 글자 아래 잘림 없음. --foot-upper = 워드마크를 뺀 푸터 높이 (main.js 측정)
   ========================================================= */
.site-footer { padding: 44px 0 0; }
.footer-top { gap: 24px; }
.footer-top .logo { height: 38px; margin-bottom: 14px; }
.footer-col h4 { margin-bottom: 8px; }
.footer-col li + li { margin-top: 2px; }
.footer-col a { font-size: 14px; line-height: 1.75; }
.footer-bottom { margin-top: 26px; font-size: 13px; }
.footer-word { margin-top: 18px; padding-bottom: 14px; }
.footer-word .logo { margin: 0; width: 100%; }
@media (min-width: 768px) {
  .footer-word .logo { width: min(100%, calc((100vh - var(--foot-upper, 300px) - 6px) * 3.443));
                       width: min(100%, calc((100svh - var(--foot-upper, 300px) - 6px) * 3.443)); }
}
.lg-plane-accent { stroke: var(--brass); }

/* HISTORY 여는 "N년째" (현재 연도 − 1996, main.js 계산) + 오른쪽 아래 시기 탭 */
.history-open { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(24px, 4svh, 48px); }
.history-open .tabs { margin-bottom: 6px; }
.about-years .years-num { font-weight: 800; font-size: clamp(88px, 11vw, 168px); line-height: .9; letter-spacing: -0.06em; color: var(--brand); font-variant-numeric: tabular-nums; }
.about-years .years-num .unit { font-size: .26em; letter-spacing: -0.03em; margin-left: .12em; font-weight: 700; color: var(--ink); }
.about-years .years-sub { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.nw { white-space: nowrap; }
.d-only { display: inline; } .m-only { display: none; }
@media (max-width: 767px) { .d-only { display: none; } .m-only { display: inline; } }

/* 스크롤 신호: 히어로 아래 오른쪽(눈금 열 아래). 흐름 위에서도 읽히게 흰 알약 + 블러.
   데스크톱 "스크롤해서 둘러보기"(마우스 아이콘·휠 점), 모바일 "아래로 넘겨 보기"(쉐브론 두 개) — 둘 다 '더 볼 것이 있다'는 초대형 문장.
   인트로가 끝나고 0.6 s 뒤 나타나 한 번 살짝 맥박, 이후 1.6 s 루프. 40 px 넘게 스크롤하면 사라짐 */
:root { --foil-dx: 0.025; --foil-dy: 0.025; }   /* 히어로 익형 미세 이동: 콘텐츠 폭·화면 높이 비율 (flow.js가 읽음) */
.scroll-cue { position: absolute; z-index: 3; left: auto; transform: none; width: auto; height: auto;
  right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--hero-bot) / 2 - 22px);
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px -8px rgba(25, 31, 40, .25);
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: .01em; transition: opacity .4s, color .2s; }
.scroll-cue:hover { color: var(--brand); }
.has-motion .scroll-cue { opacity: 0; }
.scroll-cue.is-hidden { opacity: 0 !important; pointer-events: none; }
.cue-ico { display: inline-block; flex: none; }
.cue-mouse { position: relative; width: 18px; height: 27px; border: 2px solid var(--brand); border-radius: 10px; }
.cue-wheel { position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--brand); }
.cue-chev { position: relative; width: 16px; height: 22px; }
.cue-chev i { position: absolute; left: 3px; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); }
.cue-chev i:first-child { top: 0; } .cue-chev i:last-child { top: 7px; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .cue-wheel { animation: cue-wheel 1.6s ease-in-out infinite; }
  .cue-chev i { animation: cue-chev 1.6s ease-in-out infinite; }
  .cue-chev i:last-child { animation-delay: .15s; }
}
@keyframes cue-wheel { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
@keyframes cue-chev { 0%, 100% { transform: translateY(-2px) rotate(45deg); } 50% { transform: translateY(3px) rotate(45deg); } }
@media (max-width: 767px) { .scroll-cue { font-size: 14px; padding: 7px 13px 7px 9px; } }

/* 지도 표시: 핀(브라스 몸체 + 코발트 점), 라벨 카드(흰 바탕 · 코발트/잉크 글자), 리더선 */
.m-pin-body { fill: var(--brass-light); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.m-pin-dot { fill: var(--brand); }
.m-pin-pulse { fill: none; stroke: var(--brass-light); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: 0; }
.m-card-bg { fill: #fff; }
.m-card-t1 { font-family: var(--font); font-weight: 700; fill: var(--brand); letter-spacing: -0.02em; }
.m-card-t2 { font-family: var(--font); font-weight: 500; fill: var(--ink-2); letter-spacing: -0.01em; }
.m-leader { stroke: #fff; stroke-width: 1.2; stroke-opacity: .85; fill: none; vector-effect: non-scaling-stroke; }

/* 문의 메일 + 복사 */
.mail-wrap { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mail-row { display: flex; align-items: flex-start; gap: 8px; }
.copy-mail { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; color: inherit; opacity: .75; flex: none; }
.copy-mail:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
.copy-mail svg { width: 17px; height: 17px; }
.join .copy-mail { margin-top: 2px; }
.mail-addr { display: block; }
.site-footer .mail-addr { display: inline; }
.mail-fallback { font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); z-index: 400;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 줄바꿈: 한국어 어절 단위(keep-all), 아주 긴 토큰만 강제 줄바꿈. 제목은 균형, 문단은 고아 줄 방지 */
body { overflow-wrap: anywhere; }
h1, h2, h3, .statement, .page-sub, .tl-title, .card-title, .team-tag { text-wrap: balance; }
p, dd, li, figcaption, .tl-desc, .card-summary { text-wrap: pretty; }
.br-d { display: inline; } .br-m { display: none; }
@media (max-width: 767px) { .br-d { display: none; } .br-m { display: inline; } }

/* 팀 카드 그림: 선 1.25 / 2 px, 코발트(currentColor) + 브라스(스파·되먹임) */
.ta { width: 100%; height: 100%; transition: transform .6s var(--ease); transform-origin: 50% 60%; }
.team-card:hover .ta-structures { transform: perspective(900px) rotateY(-7deg) rotateX(4deg) translateY(-4px); }
.ta-rib { stroke: currentColor; stroke-width: 1.25; fill: none; }
.ta-root { fill: rgba(var(--brand-rgb), .06); stroke-width: 2; }
.ta-edge { stroke: currentColor; stroke-width: 2; }
.ta-stringer { stroke: currentColor; stroke-width: 1.25; stroke-opacity: .55; }
.ta-dbox { fill: rgba(var(--brand-rgb), .12); stroke: none; }
.ta-spar-web { fill: var(--brass-light); fill-opacity: .55; stroke: none; }
.ta-spar-cap { stroke: var(--brass); stroke-width: 2.5; }
.ta-labels path { stroke: var(--ink-3); stroke-width: 1; }
.ta-labels text, .tc-t3 { font: 500 13px var(--font); fill: var(--ink-2); stroke: none; letter-spacing: -0.01em; }
.tc-block rect { fill: #fff; stroke: currentColor; stroke-width: 1.25; }
.tc-t1 { font: 500 12px var(--font); fill: var(--ink-3); stroke: none; }
.tc-t2 { font: 700 15px var(--font); fill: var(--brand); stroke: none; letter-spacing: -0.02em; }
.tc-wire { stroke: currentColor; stroke-width: 2; }
.tc-head { fill: currentColor; stroke: none; }
.tc-fb { stroke: var(--brass); stroke-width: 2; }
.tc-head-fb { fill: var(--brass); }
.tc-pulse { fill: var(--brass); stroke: #fff; stroke-width: 1.5; }
.tc-axis { stroke: var(--ink-3); stroke-width: 1.25; }
.tc-set { stroke: var(--brass); stroke-width: 1.25; stroke-dasharray: 4 5; }
.tc-resp { stroke: currentColor; stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .team-card:hover .ta-structures { transform: none; } }

/* 연혁: 연도 · 한 줄 */
.milestones { display: grid; gap: 0; max-width: 980px; }
.milestones li { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px 24px; align-items: baseline; padding: 14px 0; }
.milestones li + li { box-shadow: 0 -1px 0 var(--hair); }
.m-year { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.milestones p { font-size: 17px; }
.milestones li.award .m-year { color: var(--brass-text); }
@media (max-width: 600px) { .milestones li { grid-template-columns: 1fr auto; } .m-year { grid-column: 1 / -1; } }
.muted-h { color: var(--ink-3); font-size: .6em; font-weight: 600; letter-spacing: -0.02em; }
.lessons-teaser { max-width: 980px; }
.lessons-teaser .lesson { text-decoration: none; color: inherit; background: var(--bg-alt); transition: background-color .2s; }
.lessons-teaser a.lesson:hover { background: var(--brand-tint-2); }
.lesson.is-soon b { color: var(--ink-2); }
.lesson { grid-template-columns: 52px 1fr auto; }

/* ===== ARCHIVE = 수업 허브 ===== */
.course-hub { padding-top: 0; }
.notice { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 18px; margin-bottom: 20px; border-radius: 14px; background: var(--brand-tint); color: var(--ink); font-size: 15px; }
.notice b { color: var(--brand); }
.notice time { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: 4px; }
.course-card { display: grid; gap: 24px; align-items: end; padding: clamp(22px, 3.5vw, 40px); border-radius: 28px; background: var(--bg-alt); }
@media (min-width: 900px) { .course-card { grid-template-columns: 1fr auto; } }
.course-title { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; margin-top: 6px; }
.course-meta { display: grid; gap: 6px; margin-top: 18px; }
.course-meta div { display: grid; grid-template-columns: 48px 1fr; gap: 12px; }
.course-meta dt { color: var(--ink-3); font-size: 15px; }
.course-meta dd { font-size: 16px; font-weight: 600; }
.course-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lessons-h { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.03em; margin: 48px 0 16px; }
.lessons-list { display: grid; gap: 10px; }
.lesson-row { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "n t s" "n need s"; gap: 2px 18px; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--bg-alt); text-decoration: none; color: inherit; transition: background-color .2s; }
a.lesson-row:hover { background: var(--brand-tint-2); }
.lesson-row .ln { grid-area: n; font-weight: 800; font-size: 20px; color: var(--brand); font-variant-numeric: tabular-nums; }
.lesson-row .lt { grid-area: t; } .lesson-row .lt b { font-size: 18px; letter-spacing: -0.02em; } .lesson-row .lt small { display: block; color: var(--ink-3); }
.lesson-row .lneed { grid-area: need; font-size: 14px; color: var(--ink-3); }
.lesson-row .ls { grid-area: s; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: #fff; color: var(--ink-3); white-space: nowrap; }
.lesson-row .ls.is-open { color: var(--brand); }
.lesson-row.is-soon { opacity: .75; }
@media (max-width: 600px) { .lesson-row { grid-template-columns: 44px 1fr; grid-template-areas: "n t" "n need" "n s"; } .lesson-row .ls { justify-self: start; margin-top: 6px; } }
.crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; } .crumb a { color: var(--brand); text-decoration: none; font-weight: 600; }
.lesson-head { margin-bottom: 24px; display: grid; gap: 10px; }
.lesson-goal { color: var(--ink-2); font-size: 17px; max-width: 40em; }
.done-toggle { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--bg-alt); font-weight: 600; cursor: pointer; }
.done-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.viewer { border-radius: 22px; background: var(--bg-deep); overflow: hidden; }
.viewer:fullscreen { overflow: auto; border-radius: 0; }
.viewer-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 14px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg-alt); }
.seg button { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.pg { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); min-width: 4.5em; }
.viewer-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vbtn { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-alt); font-size: 17px; }
.vbtn:hover { background: var(--brand-tint-2); }
.vlink { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 38px; color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: none; }
.vlink svg { width: 15px; height: 15px; }
.pages { display: flex; flex-direction: column; gap: 14px; padding: 16px; max-height: min(78svh, 900px); overflow-y: auto; touch-action: pan-x pan-y pinch-zoom; }
.viewer:fullscreen .pages { max-height: none; }
.page { margin: 0; flex: none; width: 100%; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px -6px rgba(25,31,40,.35); overflow: hidden; }
.page canvas { width: 100%; height: 100%; display: block; }
.pages-msg { padding: 40px 16px; text-align: center; color: var(--ink-2); }
.lesson-side { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 900px) { .lesson-side { grid-template-columns: 1fr 1fr; } }
.lesson-side h3 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 12px; }
.todo { display: grid; gap: 8px; counter-reset: t; }
.todo li { display: grid; grid-template-columns: 28px auto 1fr; gap: 10px; align-items: center; counter-increment: t; }
.todo li::before { content: counter(t); width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.todo code { font: 600 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 4px 8px; border-radius: 8px; background: var(--bg-alt); white-space: nowrap; }
.todo span { color: var(--ink-2); font-size: 15px; }
.concepts { display: grid; gap: 8px; }
.concepts li { padding-left: 16px; position: relative; } .concepts li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* 아카이브: 이번 주 카드 · 이어서 보기 · 상태 칩 · 회차 이동 · 모바일 하단 바 */
.proj-list { display: grid; gap: 20px; }
.proj-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.proj-tabs a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 12px; background: var(--bg-alt); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.proj-tabs a[aria-selected="true"] { background: var(--brand); color: #fff; }
.course-sum { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 40em; }
.week-card { margin-top: 20px; padding: clamp(22px, 3.5vw, 40px); border-radius: 28px; background: var(--brand); color: #fff; display: grid; gap: 14px; }
.week-card .course-term { color: rgba(255,255,255,.84); }
.week-card .course-sum { color: rgba(255,255,255,.88); }
.week-title { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.15; }
.week-card .btn-primary { background: #fff; color: var(--brand); }
.week-card .btn-primary:hover { background: var(--brand-tint); }
.week-card .btn-soft { background: rgba(255,255,255,.14); color: #fff; }
.week-card .btn-soft:hover { background: rgba(255,255,255,.22); }
.btn-lg { height: 56px; padding: 0 26px; font-size: 17px; }
.todo-mini { margin-top: 6px; }
.todo-mini li::before { background: #fff; color: var(--brand); }
.todo-mini code { background: rgba(255,255,255,.14); color: #fff; }
.todo-mini span { color: rgba(255,255,255,.88); }
.todo-mini .more { display: block; } .todo-mini .more::before { display: none; }
.todo-mini .more a { color: #fff; font-weight: 600; }
.resume { display: grid; gap: 2px; margin-top: 14px; padding: 16px 20px; border-radius: 18px; background: var(--brand-tint); text-decoration: none; color: var(--ink); min-height: 44px; }
.resume span { font-size: 14px; color: var(--brand); font-weight: 700; } .resume small { color: var(--ink-3); }
.chip-s { grid-area: s; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--ink-3); white-space: nowrap; }
.chip-s.now { background: var(--brand); color: #fff; } .chip-s.open { color: var(--brand); }
.lesson-row { min-height: 64px; }
.lesson-row .lt small { font-size: 14px; }
.lesson-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lesson-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--bg-alt); color: var(--brand); font-weight: 600; text-decoration: none; }
.lesson-nav span { display: flex; gap: 8px; }
.pg input { width: 3.4em; height: 36px; border: 0; border-radius: 8px; background: var(--bg-alt); text-align: center; font: inherit; font-weight: 700; }
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 6px; padding: 8px max(12px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--hair); }
  .mbar a { flex: 1; min-height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-alt); color: var(--brand); font-weight: 700; text-decoration: none; }
  .course-hub { padding-bottom: 96px; }
  .pages { max-height: none; overflow: visible; padding: 8px; }
  .viewer-tools .vbtn[data-fs] { display: none; }
}

/* 부원 전용(스터디) 내비 표시: 작은 자물쇠 */
.nav-members { display: inline-flex; align-items: center; gap: 5px; }
.nav-members .lock { width: 12px; height: 12px; opacity: .7; }
.mobile-menu .nav-members small { margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--brass-text); background: #FBF6EC; padding: 3px 9px; border-radius: 99px; letter-spacing: -0.01em; }
.footer-col small { font-size: 11px; color: var(--brass-text); margin-left: 4px; }
.notfound { min-height: 100svh; display: flex; align-items: center; padding: 64px 0; }
.nf-logo { display: inline-block; margin-bottom: 40px; } .nf-logo .logo { height: 40px; width: auto; }
.lesson-cross { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: #FBF6EC; color: var(--ink); font-size: 15px; }
.lesson-cross a { color: var(--brass-text); font-weight: 700; }

/* 한/영 전환 (KO | EN) — 번역이 끝날 때까지 영어 페이지 본문 잠깐 숨김 */
.i18n-wait body { visibility: hidden; }
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-alt); gap: 2px; flex: none; }
.lang-toggle button { min-width: 40px; height: 38px; padding: 0 9px; border-radius: 9px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); }
.lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--brand); box-shadow: 0 1px 4px -1px rgba(25,31,40,.2); }
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle-menu { margin-top: 20px; align-self: flex-start; }
.lang-toggle-menu button { height: 44px; min-width: 56px; font-size: 15px; }
.lang-toggle-nf { margin-bottom: 24px; }
@media (max-width: 1023px) { .site-header .lang-toggle button { height: 34px; min-width: 38px; } }
@media (pointer: coarse) { .site-header .lang-toggle button { min-height: 44px; } .site-header .lang-toggle { padding: 0; } }
/* 좁은 데스크톱(1024–1279): 내비 간격 줄이고, 스터디 헤더의 '부원 전용' 배지는 본문 제목 옆에만 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav a { padding: 8px 9px; }
  .site-header .members-badge { display: none; }
}
/* 모바일: 히어로 아래 소개 한 줄이 오른쪽 스크롤 신호와 겹치지 않게 */
@media (max-width: 767px) {
  .hero-kicker { padding-right: calc(var(--gutter) + 168px); font-size: 12.5px; line-height: 1.45; bottom: calc(var(--hero-bot) / 2 - 16px); }
}
