/* =========================================================
   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.25; stroke-opacity: .9; fill: none; vector-effect: non-scaling-stroke; }
.m-leader-dot { fill: #fff; }
.m-card { filter: drop-shadow(0 3px 8px rgba(10, 20, 50, .22)); }

/* 문의 메일 + 복사 */
.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); }
}

/* ===== QA (모바일 탭 대상 ≥ 44px, 본문 ≥ 16px, 줄바꿈) ===== */
.about-years .years-sub { margin-top: 20px; }
.lesson .state, .chip-s, .badge, .chip { white-space: nowrap; }
@media (max-width: 767px) {
  .brand { display: flex; align-items: center; min-height: 44px; }
  .archive-head .link, .lesson-nav a, .todo-mini .more a, .footer-credit a, .footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col li + li { margin-top: 0; }
  .scroll-cue { min-height: 44px; }
  .study-page .tb-btn { height: 44px; }
  .seg button, .vbtn, .pg input { height: 44px; min-width: 44px; }
  .lang-toggle button { min-height: 44px; }
  .nf-logo { display: inline-flex; align-items: center; min-height: 44px; }
  .team-goal, .lesson-cross, .study-page .week-summary { font-size: 16px; }
  .hero-kicker { font-size: 13px; }
}
/* 문장·구절 단위 줄바꿈 (main.js가 쉼표·문장 끝에서 나눠 .ph로 감쌈) */
.ph { display: inline-block; max-width: 100%; }
html[lang="en"] p, html[lang="en"] dd, html[lang="en"] li { hyphens: auto; -webkit-hyphens: auto; }
/* 스크롤 신호 아이콘: 데스크톱 = 마우스, 모바일 = 쉐브론 (.cue-ico의 display보다 우선) */
@media (max-width: 767px) { .scroll-cue .cue-ico.d-only { display: none; } }
@media (min-width: 768px) { .scroll-cue .cue-ico.m-only { display: none; } }

/* =========================================================
   맺음말 — 이카로스 (closing.js). 레이어드 벡터 일러스트: 해·빛무리, 뒷모습의 이카로스, 깃털 날개(첫째·둘째 날개깃, 덮깃, 깃대·깃가지), 밀랍 묶음.
   따뜻한 그라데이션은 이 섹션 안에서만. 색은 모두 --cl-* 변수 → 라이트/다크가 그대로 따라감.
   정적 구성(동작 줄이기·JS 없음): 이카로스 + 해 + 로고 단면 + 두 줄
   ========================================================= */
.closing {
  --cl-sky-0: rgba(255, 192, 104, .55); --cl-sky-1: rgba(255, 168, 80, .2);
  --cl-halo-0: rgba(255, 238, 196, 1); --cl-halo-1: rgba(255, 178, 88, .46);
  --cl-disc-0: #FFF6E0; --cl-disc-1: #F0AC46;
  --cl-aura-0: rgba(255, 206, 130, .42); --cl-aura-1: rgba(255, 176, 90, .1);
  --cl-f0: #FFF8EC; --cl-f1: #F6DDAE; --cl-f2: #E9A456; --cl-fc0: #FFFDF8;
  --cl-line: rgba(138, 104, 40, .55); --cl-rachis: rgba(138, 104, 40, .55); --cl-barb: rgba(138, 104, 40, .28);
  --cl-figure: #4A3427; --cl-hair: #2E2017; --cl-backline: rgba(255, 226, 180, .28); --cl-rimlight: rgba(255, 210, 140, .9);
  --cl-wax: #CFAE6E; --cl-sea: rgba(236, 196, 140, .22);   /* 바다 쪽 아주 옅은 안개 (선 없음) */
  --cl-grain-blend: multiply; --cl-grain-a: .06;
  /* 하늘: 따뜻한 아이보리 → 해 가까이 아주 옅은 금빛 (선·윤곽 없이 빛만) */
  background:
    radial-gradient(52% 50% at 76% 22%, rgba(255, 214, 150, .3), rgba(255, 214, 150, 0) 72%),
    linear-gradient(180deg, #FFFAF0 0%, #FFFDF8 55%, var(--bg) 100%);
  position: relative;
}
[data-theme="dark"] .closing {
  --cl-sky-0: rgba(255, 170, 72, .5); --cl-sky-1: rgba(214, 100, 30, .2);
  --cl-halo-0: rgba(255, 248, 226, 1); --cl-halo-1: rgba(255, 186, 88, .5);
  --cl-disc-0: #FFFCF2; --cl-disc-1: #FFD27A;
  --cl-aura-0: rgba(255, 168, 70, .5); --cl-aura-1: rgba(214, 104, 36, .16);
  --cl-f0: #FFE9BE; --cl-f1: #F6B862; --cl-f2: #DE782C; --cl-fc0: #FFF3D8;
  --cl-line: rgba(110, 62, 22, .8); --cl-rachis: rgba(140, 82, 28, .75); --cl-barb: rgba(110, 62, 22, .45);
  --cl-figure: #120B07; --cl-hair: #070403; --cl-backline: rgba(255, 168, 80, .3); --cl-rimlight: rgba(255, 196, 110, .95);
  --cl-wax: #F0C979; --cl-sea: rgba(196, 104, 40, .2);
  --cl-grain-blend: overlay; --cl-grain-a: .1;
  background:
    radial-gradient(62% 58% at 76% 20%, rgba(255, 160, 70, .28), rgba(255, 160, 70, 0) 74%),
    radial-gradient(80% 60% at 20% 100%, rgba(150, 70, 28, .2), rgba(150, 70, 28, 0) 70%),
    var(--bg);
}
.closing-pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr, 64px) + 12px) 0 clamp(28px, 5svh, 56px); }
.closing-inner { display: grid; justify-items: center; text-align: center; gap: clamp(8px, 2svh, 20px); position: relative; }
.closing-art { position: relative; width: min(1100px, 100%, calc((100vh - 360px) * 1.667)); width: min(1100px, 100%, calc((100svh - 360px) * 1.667)); }
/* 아주 옅은 종이 결 (한 번 그려 캐시되는 배경 이미지 — 스크럽 중 다시 그리지 않음) */
.closing-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--cl-grain-a); mix-blend-mode: var(--cl-grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .12 0 0 0 1.4 -.35'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%);
}
@media (max-width: 767px) { .closing-art { width: 100%; } }
.cl-scene { width: 100%; height: auto; overflow: visible; }
.cl-warn { font-size: 15px; color: var(--ink-3); letter-spacing: -0.01em; font-style: italic; }
.closing-line { font-size: clamp(30px, 5vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.16; text-wrap: balance; max-width: 16em; }
.closing-line .cl1 { color: var(--ink); } .closing-line .cl2 { color: var(--brand); }
html[lang="en"] .closing-line { letter-spacing: -0.035em; }
/* 해 */
.cl-trail { fill: none; stroke: none; }   /* 오름 궤적: 보이지 않는 운동 경로(closing.js) — 배경에 선은 그리지 않음 */
/* 이카로스 */
.cl-aura { fill: url(#cl-aura-g); }
.cl-fp { fill: url(#cl-fp-g); stroke: var(--cl-line); stroke-width: .9; stroke-linejoin: round; }
.cl-fs { fill: url(#cl-fs-g); stroke: var(--cl-line); stroke-width: .9; stroke-linejoin: round; }
.cl-fc { fill: url(#cl-fc-g); stroke: var(--cl-line); stroke-width: .8; stroke-linejoin: round; }
.cl-rachis { fill: none; stroke: var(--cl-rachis); stroke-width: .8; stroke-linecap: round; }
.cl-barb { fill: none; stroke: var(--cl-barb); stroke-width: .6; stroke-linecap: round; }
.cl-arm { fill: none; stroke: var(--cl-figure); stroke-width: 8; stroke-linecap: round; }
.cl-hand, .cl-skin { fill: var(--cl-figure); }
.cl-hair { fill: var(--cl-hair); }
.cl-back { fill: none; stroke: var(--cl-backline); stroke-width: 1.4; stroke-linecap: round; }
.cl-rim { fill: none; stroke: var(--cl-rimlight); stroke-width: 2; stroke-linecap: round; }
.cl-wax { fill: none; stroke: var(--cl-wax); stroke-width: 2.6; stroke-linecap: round; }
.cl-drip { fill: var(--cl-wax); }
/* 계산된 날개: 로고 단면(정확한 경로)을 가운데에 크게 */
.cl-sym { --logo-ink: var(--brand); --logo-spar: var(--brass); }
/* 정적 구성 (동작 줄이기·JS 없음): 이카로스(날개 그대로) + 해 + 로고 단면, 떨어지는 것들은 숨김 */
.closing:not(.cl-live) .cl-drip { display: none; }
.closing:not(.cl-live) .cl-symwrap { transform: translate(356px, 63px) scale(.69); }   /* 정적: 날개 단면은 작게, 이카로스 오른쪽 아래(해 아래)로 비켜 겹치지 않게 */
@media (max-width: 767px) {
  .closing-pin { min-height: 0; padding: 64px 0 72px; }
  .closing-line { font-size: clamp(28px, 8.4vw, 38px); }
  .cl-warn { font-size: 16px; }
}

/* ==== 푸터: 거대 워드마크를 페이지 맨 아래에 딱 붙이고(아래 틈 0), 위 정보 블록은 넉넉하게 (2026-11-16) ====
   워드마크 SVG의 viewBox는 글자 아래로 3 단위(=폭의 3/364.9) 여유가 있어 그만큼 음수 여백으로 당긴다.
   데스크톱: 위 블록 + 워드마크가 헤더 아래 한 화면 (워드마크 폭 = min(100 %, 남은 높이 × 3.443)) */
:root { --fw-w: 100%; }
@media (min-width: 768px) {
  :root { --fw-w: min(100%, calc((100vh - var(--hdr, 76px) - var(--foot-upper, 300px)) * 3.443)); --fw-w: min(100%, calc((100svh - var(--hdr, 76px) - var(--foot-upper, 300px)) * 3.443)); }
}
.site-footer { padding: clamp(56px, 10svh, 120px) 0 0; }
.footer-top { gap: 32px 24px; }
@media (min-width: 900px) { .footer-top { column-gap: clamp(32px, 4vw, 64px); } }
.footer-top .logo { height: 42px; margin-bottom: 20px; }
.footer-top p { line-height: 1.75; }
.footer-col h4 { margin-bottom: 12px; }
.footer-col li + li { margin-top: 4px; }
.footer-bottom { margin-top: clamp(36px, 6svh, 64px); padding-top: 20px; box-shadow: 0 -1px 0 var(--hair); }
.footer-word { margin-top: clamp(24px, 4svh, 48px); padding-bottom: 0; }
.footer-word .logo { width: var(--fw-w); margin: 0 0 calc(var(--fw-w) * -0.00822); }
@media (max-width: 767px) {
  .site-footer { padding-top: 64px; }
  .footer-col li + li { margin-top: 0; }
}
/* 낮은 데스크톱 화면(1280×720 등): 간격을 조금 줄여 워드마크가 너무 작아지지 않게 */
@media (min-width: 768px) and (max-height: 820px) {
  .site-footer { padding-top: 40px; }
  .footer-top .logo { margin-bottom: 14px; }
  .footer-col h4 { margin-bottom: 6px; }
  .footer-col li + li { margin-top: 0; }
  .footer-col a { line-height: 1.7; }
  .footer-bottom { margin-top: 24px; padding-top: 14px; }
  .footer-word { margin-top: 18px; }
}

/* ==== 푸터 문의 메일: 한 줄 유지 (2026-11-16) ====
   데스크톱: '연락' 열을 내용 폭(max-content)으로 잡아 주소가 접히지 않게 한다.
   모바일: '연락' 열을 한 줄 전체로 펼쳐 주소와 복사 버튼이 한 줄에 들어가게 한다. */
.site-footer .mail-wrap { flex-wrap: nowrap; white-space: nowrap; }
.site-footer .mail-wrap .js-mail { white-space: nowrap; }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) max-content minmax(0, 3fr); }
}
@media (max-width: 899px) {
  .footer-col:has(.mail-wrap) { grid-column: 1 / -1; }
}
@media (max-width: 374px) {
  .site-footer .mail-wrap .js-mail { font-size: 13.5px; }
}

/* =========================================================
   다크 테마 — "해 질 녘 이카로스" (수채화의 황금·호박·주황 노을빛, 밝은 해, 세피아·엄버 그림자)
   <html data-theme="dark"> (theme.js가 head에서 붙임, data-themeable 페이지만).
   - 바탕: 깊은 엄버 잉크 + 은은한 따뜻한 빛무리. 글자: 아이보리. 강조: 브라스/금빛이 주인공.
   - 코발트 자리는 금빛(#F0C979)으로: 링크·포인트·버튼·유선 강조 모두 같은 강조 토큰. 하늘색은 쓰지 않음. 워드마크: I = 금빛 스파, 글자 = 따뜻한 아이보리.
   - 대비: 본문 아이보리 15:1, 보조 9.6:1, 흐린 글자 5.6:1, 금빛 강조·링크 12.3:1, 금빛 글자 9.3:1 (모두 #17110C 기준)
   ========================================================= */
:root {
  /* 히어로 유동(flow.js) 토큰 — 라이트 */
  --flow-stream-rgb: 0, 71, 171; --flow-fast-rgb: 162, 123, 51; --flow-accent-rgb: 0, 71, 171;
  --flow-ink-rgb: 25, 31, 40; --flow-ink2-rgb: 78, 89, 104; --flow-ink3-rgb: 95, 107, 122;
  --flow-brass-rgb: 162, 123, 51; --flow-brass-text-rgb: 138, 104, 40; --flow-halo-rgb: 255, 255, 255;
  --flow-foil: #FFFFFF; --flow-foil-a0: .035; --flow-foil-a1: .075; --flow-trail-gain: 1;
  --flow-wake-rgb: 74, 98, 142; --flow-rev-rgb: 162, 123, 51; --flow-wake-gain: 1; --flow-wake-fill: .11;   /* 박리 후류: 느린 후류 = 탁한 코발트, 역류 = 브라스 */
  --word-ink: var(--display-ink);   /* 대형 워드마크 글자 */
  --surface: #FFFFFF;               /* 카드 안 흰 면(칩·탭·배지) */
  --glass: rgba(255, 255, 255, .86);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17110C;
  --bg-alt: #201710;
  --bg-deep: #2E2218;
  --ink: #F4EBDC;
  --ink-2: #D6C6AC;
  --ink-3: #AE9C80;
  --hair: rgba(244, 235, 220, .1);
  --brass: #D9A54A;
  --brass-text: #E6B866;
  --brass-light: #F0C979;
  --warn: #F08A4B;
  --brand: #F0C979;            /* 금빛 강조: 링크·포인트·버튼 (라이트의 코발트 자리, 다크에서는 하늘색 없음) 12.3:1 */
  --brand-ink: #F8DDA6;
  --brand-tint: rgba(240, 201, 121, .08);
  --brand-tint-2: rgba(240, 201, 121, .14);
  --brand-on: #1A120B;
  --brand-on-2: rgba(244, 235, 220, .8);
  --brand-rgb: 240, 201, 121;
  --display-ink: #E8B65E;      /* 섹션 대형 제목·큰 숫자 = 금빛 */
  --word-ink: #F4E6CC;         /* 워드마크 글자 = 따뜻한 아이보리 */
  --logo-ink: #F4E6CC;
  --logo-spar: #D9A54A;
  --surface: #2A1F16;
  --glass: rgba(23, 17, 12, .82);
  --glow-sun: rgba(255, 178, 84, .26);
  --glow-ember: rgba(214, 108, 40, .14);
  --flow-stream-rgb: 236, 176, 92; --flow-fast-rgb: 255, 224, 164; --flow-accent-rgb: 246, 222, 172;
  --flow-ink-rgb: 244, 235, 220; --flow-ink2-rgb: 214, 198, 172; --flow-ink3-rgb: 174, 156, 128;
  --flow-brass-rgb: 228, 172, 80; --flow-brass-text-rgb: 240, 196, 120; --flow-halo-rgb: 23, 17, 12;
  --flow-foil: #241A12; --flow-foil-a0: .05; --flow-foil-a1: .11; --flow-trail-gain: 1.18;
  --flow-wake-rgb: 184, 160, 128; --flow-rev-rgb: 255, 190, 96; --flow-wake-gain: 1.05; --flow-wake-fill: .12;
}
/* 테마 전환 순간만 색을 부드럽게 (동작 줄이기면 위 전역 규칙이 즉시로 만듦) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease, box-shadow .35s ease !important;
}

/* 테마 버튼 (KO|EN 옆) */
.theme-toggle { width: 44px; height: 44px; flex: none; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ink-2); transition: color .2s, background-color .2s; }
.theme-toggle:hover { color: var(--ink); background: var(--bg-alt); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity .3s, transform .45s var(--ease); }
.theme-toggle .ic-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-theme="dark"] .theme-toggle .ic-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-theme="dark"] .theme-toggle .ic-sun { opacity: 1; transform: none; color: var(--brass-light); }
@media (max-width: 1023px) { .site-header .theme-toggle { width: 40px; height: 40px; } }
@media (pointer: coarse) { .site-header .theme-toggle { width: 44px; height: 44px; } }
.notfound .theme-toggle { margin: 0 0 24px 8px; vertical-align: top; }

/* 다크: 구성 요소 */
[data-theme="dark"] .skip-link { color: var(--bg); }
[data-theme="dark"] .site-header.is-scrolled { background: var(--glass); box-shadow: 0 1px 0 var(--hair); }
[data-theme="dark"] .mobile-menu, [data-theme="dark"] .menu-open .site-header { background: var(--bg); }
[data-theme="dark"] .hero {
  background:
    radial-gradient(70% 62% at 84% 6%, var(--glow-sun), rgba(255, 178, 84, 0) 70%),
    radial-gradient(46% 40% at 88% 2%, rgba(255, 226, 168, .16), rgba(255, 226, 168, 0) 70%),
    radial-gradient(80% 60% at 6% 100%, var(--glow-ember), rgba(214, 108, 40, 0) 72%),
    var(--bg);
}
[data-theme="dark"] .hero-word .logo, [data-theme="dark"] .footer-word .logo { --logo-ink: var(--word-ink); }
[data-theme="dark"] .chip, [data-theme="dark"] .tabs, [data-theme="dark"] .badge, [data-theme="dark"] .lesson { background: var(--surface); }
[data-theme="dark"] .badge.award { background: rgba(217, 165, 74, .14); }
[data-theme="dark"] .btn-primary { background: var(--brass-light); color: var(--brand-on); }
[data-theme="dark"] .btn-primary:hover { background: #F6D898; }
[data-theme="dark"] .btn-soft { background: rgba(240, 201, 121, .14); color: var(--brass-light); }
[data-theme="dark"].intro-pending .intro { background: var(--bg); }
[data-theme="dark"] .tc-block rect { fill: var(--bg); }
[data-theme="dark"] .tc-pulse { stroke: var(--bg); }
[data-theme="dark"] .scroll-cue { background: var(--glass); box-shadow: 0 4px 18px -8px rgba(0, 0, 0, .6); }
[data-theme="dark"] .scroll-cue .cue-mouse, [data-theme="dark"] .cue-chev i { border-color: var(--brass-light); }
[data-theme="dark"] .cue-wheel { background: var(--brass-light); }
[data-theme="dark"] .lang-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--brass-light); box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .5); }
[data-theme="dark"] .toast { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .team-card, [data-theme="dark"] .faq-list details { background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--hair); }
[data-theme="dark"] .lessons-teaser .lesson { background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--hair); }
[data-theme="dark"] .lessons-teaser a.lesson:hover { background: var(--bg-deep); }
[data-theme="dark"] .lesson .state { background: var(--bg-deep); }
[data-theme="dark"] .about-years .years-num { color: var(--display-ink); }
[data-theme="dark"] .statement em { color: var(--brass-light); }
/* 지원 띠: 코발트 대신 해 질 녘 하늘 (엄버 → 호박빛), 글자 아이보리 */
[data-theme="dark"] .join {
  background:
    radial-gradient(60% 70% at 92% 0%, rgba(255, 190, 100, .22), rgba(255, 190, 100, 0) 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(150, 70, 28, .3), rgba(150, 70, 28, 0) 70%),
    linear-gradient(165deg, #241810 0%, #2E1D12 50%, #3A2414 100%);
  color: var(--ink);
}
[data-theme="dark"] .join .display { color: var(--display-ink); }
[data-theme="dark"] .join ::selection { background: var(--brass-light); color: #1A120B; }
[data-theme="dark"] .btn-light { background: var(--brass-light); color: #1A120B; }
[data-theme="dark"] .btn-light:hover { background: #F6D898; }
[data-theme="dark"] .ig-link:hover svg { color: var(--brass-light); }
[data-theme="dark"] .m-card-bg { fill: #2A1F16; }
[data-theme="dark"] .m-card-t1 { fill: var(--brass-light); }
[data-theme="dark"] .m-pin-dot { fill: #1A120B; }
[data-theme="dark"] .site-footer {
  background:
    radial-gradient(90% 70% at 70% 120%, rgba(232, 150, 70, .16), rgba(232, 150, 70, 0) 70%),
    var(--bg-alt);
}
[data-theme="dark"] .footer-col a:hover, [data-theme="dark"] .faq-list a { color: var(--brand); }
[data-theme="dark"] .menu-toggle span, [data-theme="dark"] .menu-toggle span::before, [data-theme="dark"] .menu-toggle span::after { background: var(--ink); }
[data-theme="dark"] .menu-open .menu-toggle span { background: transparent; }
[data-theme="dark"] .notfound { background: radial-gradient(70% 60% at 85% 0%, var(--glow-sun), rgba(255, 178, 84, 0) 70%), var(--bg); }

/* =========================================================
   ABOUT (소개) — 12칸 정렬 (about_proto 옵션 1)
   - ABOUT·그림: 1–5칸 / 제목: 6–12칸 / 본문: 6–11칸
   - ABOUT 대문자 윗선 = 제목 첫 줄 대문자 윗선 (Pretendard 실측: 어센트 .952, 디센트 .241, 대문자 높이 .719)
   - 그림 윗변 = 본문 첫 줄 글자 윗변, 그림 폭 = ABOUT 글자 폭(3.15 × 글자 크기)
   - 휴대폰: ABOUT → 제목 → 그림 → 본문
   ========================================================= */
.about2 {
  --d: clamp(56px, 8vw, 128px);          /* .display 와 같은 값 */
  --h: clamp(22px, 2.5vw, 36px);         /* .sec-head .statement 와 같은 값 */
  --row: 48px;
  --body-fs: 18px;
  --body-lead: 7px;                       /* 본문 박스 윗변 → 첫 줄 한글 윗변 */
}
.about2 .a-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.about2 .a-display { font-size: var(--d); margin: 0 0 calc(var(--d) * -0.1645); }
.about2 .a-head {
  font-size: var(--h); line-height: 1.38; letter-spacing: -0.045em; font-weight: 700; max-width: none;
  margin: calc(24px - var(--h) * 0.3265) 0 calc(var(--h) * -0.3345);
  text-wrap: balance;
}
.about2 .a-head .hl { display: inline; }
.about2 .a-head .ph, .about2 .a-body .ph { display: inline-block; white-space: nowrap; max-width: 100%; }
@media (max-width: 767px) { html[lang="en"] .about2 .a-body .ph { white-space: normal; } }
.about2 .a-head .word { transition: color .45s var(--ease); }
.about2 .a-head .word.is-on { color: var(--brand); }
[data-theme="dark"] .about2 .a-head .word.is-on { color: var(--brass-light); }
.about2 .a-fig { margin: 40px 0 0; max-width: 520px; }
.about2 .a-body { margin-top: 32px; display: grid; gap: 24px; color: var(--ink-2); font-size: var(--body-fs); line-height: 1.7; max-width: 36em; }
.about2 .a-body p { text-wrap: pretty; }
@media (min-width: 768px) and (max-width: 1023px) { .about2 .a-fig { max-width: 560px; } }
@media (min-width: 1024px) {
  .about2 .a-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: var(--row); align-items: start; }
  .about2 .a-display { grid-column: 1 / span 5; grid-row: 1; }
  .about2 .a-head { grid-column: 6 / -1; grid-row: 1; margin-top: calc(var(--d) * 0.1365 - var(--h) * 0.3265); }
  .about2 .a-head .hl { display: block; }
  .about2 .a-fig { grid-column: 1 / span 5; grid-row: 2; margin: var(--body-lead) 0 0; width: calc(var(--d) * 3.15); max-width: 100%; }
  .about2 .a-body { grid-column: 6 / span 6; grid-row: 2; margin: 0; max-width: none; }
}
html[lang="en"] .about2 .a-head { letter-spacing: -0.028em; }
/* 그림 */
.fx { display: block; width: 100%; height: auto; overflow: visible; }
.fx * { vector-effect: non-scaling-stroke; }
.fx text { vector-effect: none; font-family: var(--font); fill: var(--ink-2); letter-spacing: -0.01em; }
.fx .ln { fill: none; stroke: var(--brand); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.fx .hair { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.fx .brass { fill: var(--brass); }
.fx .brass-l { fill: var(--brass-light); }
.fx .fx-grid { fill: none; stroke: var(--brand); stroke-width: 1; }
.fx .fx-handle { fill: var(--bg); stroke: var(--brand); stroke-width: 1; }
.fx .fx-block { fill: var(--brand); fill-opacity: .05; }
.fx .fx-paper { fill: var(--bg); }
.fx .fx-dot { fill: var(--brand); } .fx .fx-dot-halo { fill: var(--brand); fill-opacity: .12; }
.fx .fade { transition: opacity .25s var(--ease); }
[data-theme="dark"] .fx .ln, [data-theme="dark"] .fx .fx-grid, [data-theme="dark"] .fx .fx-handle { stroke: var(--brass-light); }
[data-theme="dark"] .fx .fx-block, [data-theme="dark"] .fx .fx-dot, [data-theme="dark"] .fx .fx-dot-halo { fill: var(--brass-light); }
/* 단계 표시 (제목 동사와 연동) */
.cyc { display: flex; gap: 0; margin-top: 8px; padding: 0; list-style: none; }
.cyc li { flex: 1 1 0; min-width: 0; }
.cyc button {
  position: relative; display: block; width: 100%; min-height: 44px; padding: 14px 0 0; text-align: left;
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-3); transition: color .2s var(--ease);
}
.cyc button::before { content: ""; position: absolute; left: 0; right: 8px; top: 0; height: 2px; border-radius: 1px; background: var(--bg-deep); }
.cyc button::after { content: ""; position: absolute; left: 0; right: 8px; top: 0; height: 2px; border-radius: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.cyc button.is-done::after, .cyc button.is-on::after { transform: scaleX(1); }
.cyc button.is-on { color: var(--brand); }
.cyc button:hover { color: var(--ink); }
.cyc button.is-on:hover { color: var(--brand); }
.cyc li:last-child button::before, .cyc li:last-child button::after { right: 0; }
[data-theme="dark"] .cyc button::after { background: var(--brass-light); }
[data-theme="dark"] .cyc button.is-on, [data-theme="dark"] .cyc button.is-on:hover { color: var(--brass-light); }
@media (prefers-reduced-motion: reduce) { .fx .fade, .about2 .a-head .word, .cyc button, .cyc button::after { transition: none; } }
/* 좁은 휴대폰(≤ 400 px): 헤더 한 줄에 로고 · KO|EN · 달/해 · 메뉴가 넘치지 않게 간격만 조금 줄임 (버튼은 44 px 유지) */
@media (max-width: 400px) {
  .header-inner { gap: 12px; }
  .header-cta { gap: 2px; }
  .brand .logo { height: 31px; }
}
/* 404: KO|EN · 달/해 한 줄, 그 아래 로고 */
.notfound .lang-toggle-nf, .notfound .theme-toggle { vertical-align: middle; margin-bottom: 24px; }
.notfound .nf-logo { display: flex; width: max-content; }

/* ==== 푸터 = 화면 한 장 (2026-11-16 오너 요청) ====
   맨 아래로 내렸을 때 헤더 아래가 전부 푸터가 되게: 높이를 화면(헤더 제외)에 맞추고,
   위 정보 블록은 위에, 거대 워드마크는 맨 아래에 붙인다 (남는 공간은 둘 사이에). 워드마크 크기 규칙(--fw-w)은 그대로. */
@media (min-width: 768px) {
  .site-footer { min-height: calc(100vh - var(--hdr, 76px)); min-height: calc(100svh - var(--hdr, 76px));
                 display: flex; flex-direction: column; box-sizing: border-box; }
  .site-footer > .container { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }   /* 정보 블록 → (빈칸) → 워드마크 */
  .site-footer .footer-word { margin-top: auto; padding-top: clamp(24px, 4svh, 48px); }   /* 이 위 간격은 main.js --foot-upper 에 포함 */
}
