@charset "UTF-8";
/* ============================================================================
   2045 Fellowship — site.css
   기준: Figma "Web Design v2" 페이지의 ★ Web 규칙 팔레트 (단일 기준)
     1. 색 13개 · 2. 글자 8개 · 3. 간격 9단계 · 모서리 · 그림자 하나
     4. 페이지 규칙 · 5. 컴포넌트
   값을 바꿀 때는 아래 1번(Tokens)만 고치면 사이트 전체에 반영됩니다.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* 1. 색 — Web / Color · 13 */
  --surface-bg:      #FFFFFF;  /* 기본 바탕 · 카드 */
  --surface-muted:   #F7F9FB;  /* 섹션 번갈아 */
  --surface-subtle:  #EEF2F6;  /* 탭 바탕 */
  --surface-brand:   #E6F4FA;  /* 페이지 머리 · 카드 뒷면 · 배지 */
  --surface-inverse: #0F2348;  /* 푸터 · 주요 버튼 */
  --text:            #0F2348;  /* 제목 · 본문 */
  --text-muted:      #58667E;  /* 날짜 · 메타 · 보조 */
  --text-inverse:    #FFFFFF;  /* 남색 · 사진 위 글자 */
  --text-accent:     #2C68B6;  /* 링크 · 눈썹 · 라벨 */
  --border:          #E1E7EE;  /* 카드 · 구분선 */
  --brand-200:       #D4EDF5;  /* 일정 막대(매월 · 상시) */
  --brand-300:       #B3E0F0;  /* 따옴표 · 단계 선 */
  --brand-400:       #8FD3EC;  /* 하늘 그라데이션 시작 */
  /* 하늘 그라데이션 — Landing Deep Change · Apply 히어로 · CTA 에만 */
  --sky:   linear-gradient(160deg, var(--brand-400) 0%, var(--surface-brand) 71.4%);
  --sky-x: linear-gradient(90deg, var(--brand-400) 0%, var(--surface-brand) 100%);
  --overlay-photo:  rgba(10, 23, 48, .3);   /* 사진 위 글자: 막 inverse 30% */
  --overlay-dialog: rgba(15, 35, 72, .45);  /* 팝업 뒤 막 45% */

  /* 그림자 하나 — y1 · blur3 · 6% (카드만) */
  --shadow: 0 1px 3px rgba(15, 35, 72, .06);
  --shadow-dialog: 0 16px 48px rgba(10, 23, 48, .18);

  /* 2. 글자 — Web / 텍스트 스타일 · 8 (Desktop 값, Tablet · Mobile 은 맨 아래) */
  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-display: 64px;   /* 히어로 제목 */
  --fs-h40: 40px;       /* 페이지 · 섹션 제목 */
  --fs-h28: 28px;       /* 하위 제목 · 단계 이름 */
  --fs-title: 20px;     /* 카드 제목 · 이름 · 인용 */
  --fs-body: 16px;      /* 본문 · 버튼 · 탭 (Body / Body Strong) */
  --fs-caption: 13px;   /* 캡션 · 배지 · 날짜 · Label Mono */

  /* 3. 간격 9단계 */
  --s-1: 4px;    /* 아이콘-글자 */
  --s-2: 8px;    /* 라벨-값 · 제목 묶음 */
  --s-3: 12px;   /* 버튼 사이 */
  --s-4: 16px;   /* 블록 안 · 팝업 덩어리 사이 */
  --s-6: 24px;   /* 카드 안쪽 · 카드 사이 · 팝업 바깥 */
  --s-8: 32px;   /* 패널 안쪽 */
  --s-12: 48px;  /* 머리 → 내용 · 단계 사이 */
  --s-16: 64px;  /* 페이지 머리 위 */
  --s-24: 96px;  /* 섹션 위아래 */

  /* 모서리 */
  --r-sm: 8px;       /* 작은 칸 */
  --r-photo: 12px;   /* 사진 · 썸네일 */
  --r-img: 16px;     /* 큰 사진 · 로고 칸 */
  --r-card: 20px;    /* 카드 · 팝업 */
  --r-panel: 24px;   /* 패널 */
  --r-pill: 999px;   /* 버튼 · 배지 · 탭 */

  /* 4. 페이지 규칙 — 1440 · 내용 폭 1280 (양옆 80) */
  --shell: 1280px;
  --margin: 80px;
  --gutter: 24px;
  --section-y: var(--s-24);
  --head-gap: var(--s-12);
  --nav-h: 79px;

  --ease: cubic-bezier(.2, 0, 0, 1);
  --t-hover: 150ms var(--ease);
  --t-reveal: 300ms var(--ease);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--surface-bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--text-inverse); }
::selection { background: var(--surface-inverse); color: var(--text-inverse); }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }
/* 운영진 결정: 기기의 '동작 줄이기' 설정과 상관없이 모든 움직임(흐르는 띠 · 히어로 영상 ·
   문화 사진 슬라이드 · 카드 뒷면 · 마우스 반응)을 똑같이 보여 줍니다. 그래서 그 설정용 규칙을 두지 않습니다. */

/* ---------- 3. Type — 텍스트 스타일 8개 ---------- */
.t-display { font-size: var(--fs-display); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.t-h40   { font-size: var(--fs-h40); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.t-h28   { font-size: var(--fs-h28); line-height: 1.3; font-weight: 700; }
.t-title { font-size: var(--fs-title); line-height: 1.4; font-weight: 700; }
.t-strong { font-size: var(--fs-body); line-height: 1.6; font-weight: 700; }
.t-body  { font-size: var(--fs-body); line-height: 1.6; }
.t-caption { font-size: var(--fs-caption); line-height: 1.5; }
.t-label { font-family: var(--mono); font-size: var(--fs-caption); line-height: 1.5; font-weight: 500; letter-spacing: .04em; color: var(--text-accent); }
.eyebrow { font-size: var(--fs-caption); line-height: 1.5; color: var(--text-muted); letter-spacing: .04em; }
.muted { color: var(--text-muted); }
.accent { color: var(--text-accent); }
.pre { white-space: pre-line; }
/* 관리자가 Enter 로 나눈 줄. 900px 이상(PC · 큰 태블릿)에서만 줄을 바꾸고, 그보다 좁으면 이어서 흐릅니다. */
.br { white-space: pre-line; }
@media (max-width: 899px) { .br { white-space: normal; } }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--shell) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--surface-muted); }
.section--brand { background: var(--surface-brand); }
.section--sky { background: var(--sky); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-8); }
.stack--head { gap: var(--head-gap); }
.stack > * { max-width: 100%; }
.head { display: flex; flex-direction: column; gap: var(--s-4); }
.measure { max-width: 860px; }

.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 200; background: var(--surface-inverse); color: var(--text-inverse); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); transition: top var(--t-hover); }
.skip:focus { top: var(--s-2); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 사진 자리. 사진이 없으면 연한 면만 남습니다. */
.ph { position: relative; background: var(--surface-subtle); overflow: hidden; border-radius: var(--r-photo); }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--fs-caption); color: var(--text-muted); }

/* ---------- 5. Components — 버튼 · 배지 · 탭 · 카드 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-6); border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: var(--fs-body); line-height: 1.6; white-space: nowrap;
  transition: background var(--t-hover), color var(--t-hover), border-color var(--t-hover);
}
.btn--primary { background: var(--surface-inverse); color: var(--text-inverse); }
.btn--primary:hover { background: #1C3562; }
.btn--secondary { background: var(--surface-bg); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--text); }
.btn--light { background: var(--surface-bg); color: var(--text); }
.btn--light:hover { background: var(--surface-brand); }
.btn--subtle { background: var(--surface-subtle); color: var(--text); }
.btn--subtle:hover { background: var(--brand-200); }
.btn--sm { height: 32px; padding: 0 14px; }
.btn--md { height: 36px; padding: 0 var(--s-4); }
.btn .arr { transition: transform var(--t-hover); }
.btn:hover .arr { transform: translateX(3px); }
.btn[aria-disabled="true"] { opacity: .5; cursor: default; }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-brand); color: var(--text-accent); font-size: var(--fs-caption); line-height: 1.5; white-space: nowrap; }
.badge--white { background: var(--surface-bg); }
.badge--inverse { background: var(--surface-inverse); color: var(--text-inverse); font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.pill { display: inline-flex; padding: 6px var(--s-4); border-radius: var(--r-pill); background: var(--brand-200); color: var(--text); font-size: var(--fs-caption); line-height: 1.5; }

/* 탭 — 연한 바탕 위에 고른 칸만 흰 알약 */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; padding: var(--s-1); border-radius: var(--r-pill); background: var(--surface-subtle); max-width: 100%; }
.seg-btn { padding: 6px var(--s-4); border-radius: var(--r-pill); font-size: var(--fs-caption); line-height: 1.5; color: var(--text-muted); transition: background var(--t-hover), color var(--t-hover), box-shadow var(--t-hover); }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: var(--surface-bg); color: var(--text); box-shadow: 0 1px 3px rgba(15, 35, 72, .08); }

.card { background: var(--surface-bg); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); }

.link { color: var(--text-accent); text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }

/* ---------- 6. Nav — 흰 80 · 아래 1px 테두리 · 메뉴 muted, 현재 페이지 Bold ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--surface-bg); border-bottom: 1px solid var(--border); color: var(--text); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: calc(var(--nav-h) - 1px); }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .logo-w { display: none; }
.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-menu a:not(.btn) { color: var(--text-muted); transition: color var(--t-hover); }
.nav-menu a:not(.btn):hover { color: var(--text); }
.nav-menu a[aria-current="page"]:not(.btn) { color: var(--text); font-weight: 700; }
.nav-menu .btn { padding-block: 6px; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; color: inherit; }
.burger span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform var(--t-hover), opacity var(--t-hover); }

/* 랜딩: 히어로 영상 위에서는 투명하게 겹치고, 지나면(.is-solid) 흰 메뉴 */
.nav--over { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; color: var(--text-inverse);
  transition: background var(--t-hover), border-color var(--t-hover), color var(--t-hover); }
.nav--over .nav-logo .logo-b { display: none; }
.nav--over .nav-logo .logo-w { display: block; }
.nav--over .nav-menu a:not(.btn) { color: rgba(255, 255, 255, .85); }
.nav--over .nav-menu a:not(.btn):hover { color: var(--text-inverse); }
.nav--over .btn--primary { background: var(--surface-bg); color: var(--text); }
.nav--over:not(.is-solid):not(.is-open) :focus-visible { outline-color: var(--text-inverse); }
.nav--over.is-solid, .nav--over.is-open { background: var(--surface-bg); border-bottom-color: var(--border); color: var(--text); }
.nav--over.is-solid .nav-logo .logo-b, .nav--over.is-open .nav-logo .logo-b { display: block; }
.nav--over.is-solid .nav-logo .logo-w, .nav--over.is-open .nav-logo .logo-w { display: none; }
.nav--over.is-solid .nav-menu a:not(.btn), .nav--over.is-open .nav-menu a:not(.btn) { color: var(--text-muted); }
.nav--over.is-solid .nav-menu a:not(.btn):hover, .nav--over.is-open .nav-menu a:not(.btn):hover { color: var(--text); }
.nav--over.is-solid .btn--primary, .nav--over.is-open .btn--primary { background: var(--surface-inverse); color: var(--text-inverse); }

/* ---------- 7. Footer — inverse · 위 48 / 아래 32 · 저작권 60% ---------- */
.footer { background: var(--surface-inverse); color: var(--text-inverse); padding: var(--s-12) 0 var(--s-8); }
.footer-in { display: flex; flex-direction: column; gap: var(--s-8); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-6); }
.footer-brand { display: flex; flex-direction: column; gap: var(--s-4); }
.footer-brand img { height: 40px; width: auto; }
.footer-links { display: flex; gap: var(--s-6); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { font-size: var(--fs-caption); line-height: 1.5; opacity: .6; }

/* ---------- 8. Page head — brand 면 · 위 64 / 아래 48 · 제목 + 설명 한 줄 ---------- */
.phead { background: var(--surface-brand); padding: var(--s-16) 0 var(--s-12); }
.phead .wrap { display: flex; flex-direction: column; gap: var(--s-3); }
.phead .intro { color: var(--text-muted); max-width: 860px; }
.pbody { padding: var(--s-12) 0 var(--section-y); }

/* ---------- 9. Landing ---------- */
.hero { position: relative; min-height: 760px; display: flex; align-items: flex-end; color: var(--text-inverse); background: var(--surface-inverse); overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--overlay-photo); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6); padding-block: calc(var(--nav-h) + var(--s-12)) var(--s-24); }
.hero-in .t-display { max-width: 1000px; }
.hero-in .hero-desc { max-width: 760px; }

/* 파트너 로고 — 흐르는 띠(LED ticker) */
.partners-strip { padding-block: var(--s-12); border-bottom: 1px solid var(--border); }
.ticker { position: relative; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker-group { display: flex; flex: none; gap: var(--gutter); padding-right: var(--gutter); }
.ticker.is-running .ticker-track { animation: ticker var(--ticker-dur, 40s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker.is-focus .ticker-track { animation: none; }
.ticker.is-still { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
.logo-cell { flex: none; width: 302px; height: 80px; display: flex; align-items: center; justify-content: center; padding: var(--s-4) var(--s-6);
  background: var(--surface-bg); border: 1px solid var(--border); border-radius: var(--r-img); }
.logo-cell img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
.logo-cell span { font-size: var(--fs-caption); color: var(--text-muted); text-align: center; }

/* Deep Change — 하늘 그라데이션 */
.deep { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 680fr); gap: 80px; align-items: start; }
.deep-head { display: flex; flex-direction: column; gap: 20px; }
.deep-body { display: flex; flex-direction: column; gap: 20px; }

/* 활동 4가지 — 8칸+4칸 / 4칸+8칸 */
.acts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--gutter); width: 100%; }
.act { display: flex; flex-direction: column; gap: var(--s-3); grid-column: span 4; }
.act:nth-child(4n+1), .act:nth-child(4n+4) { grid-column: span 8; }
.act .ph { height: 300px; border-radius: var(--r-img); }

/* 문화 — 사진(여러 장이면 천천히 바뀜) + 가치 4가지 */
.culture { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 40px; align-items: start; }
.culture .ph { height: 560px; border-radius: var(--r-img); }
.slides img { opacity: 0; transition: opacity 1.2s ease; }
.slides img.is-on { opacity: 1; }
.culture-body { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.vals li { display: grid; grid-template-columns: 56px 100px minmax(0, 1fr); gap: var(--s-6); align-items: start;
  padding: 28px var(--s-4); margin-inline: calc(-1 * var(--s-4)); border-top: 1px solid var(--border); border-radius: var(--r-card);
  transition: background var(--t-hover), border-color var(--t-hover); }
.vals .no { font-size: var(--fs-title); line-height: 1.4; font-weight: 700; color: var(--text-muted); }
.vals .ko { font-size: var(--fs-h28); line-height: 1.3; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .vals li:hover { background: var(--surface-brand); border-top-color: transparent; }
  .vals li:hover .no { color: var(--text-accent); }
  .vals li:hover + li { border-top-color: transparent; }
}

/* Networking — 사진 위 글자 */
.net { position: relative; min-height: 640px; display: flex; align-items: center; color: var(--text-inverse); text-align: center; background: var(--surface-inverse); overflow: hidden; }
.net-bg { position: absolute; inset: 0; }
.net-bg img { width: 100%; height: 100%; object-fit: cover; }
.net-bg::after { content: ""; position: absolute; inset: 0; background: var(--overlay-photo); }
.net-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-6); padding-block: var(--section-y); }
.net-in .t-body { max-width: 720px; }

/* 후기 — 흐르는 띠 */
.rv-head { display: flex; flex-direction: column; gap: var(--s-4); }
.rv-head > * { max-width: 1000px; }
.rv-ticker { margin-top: var(--head-gap); }
.rv-card { flex: none; width: 410px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-8); padding: var(--s-8);
  transition: border-color var(--t-hover); }
.rv-card:hover { border-color: var(--brand-300); }
.rv-card .q { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.who { display: flex; align-items: center; gap: var(--s-3); }
.av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-brand); color: var(--text-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.rv-card .av { width: 44px; height: 44px; }
.who b { display: block; font-size: var(--fs-body); line-height: 1.6; }
.who div span { display: block; font-size: var(--fs-caption); line-height: 1.5; color: var(--text-muted); }

/* Q&A — 제목 380 / 목록 860 */
.qa { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 40px; align-items: start; }
.qa-body { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.qa-tabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-8); }
.qa-tabs button { color: var(--text-muted); transition: color var(--t-hover); }
.qa-tabs button:hover { color: var(--text); }
.qa-tabs button[aria-selected="true"] { color: var(--text); font-size: var(--fs-title); line-height: 1.4; font-weight: 700; }

.acc details { border-top: 1px solid var(--border); }
.acc details:last-child { border-bottom: 1px solid var(--border); }
.acc summary { display: flex; align-items: flex-start; gap: var(--s-6); padding-block: var(--s-6); cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .mk { flex: none; font-size: var(--fs-title); line-height: 1.3; font-weight: 700; }
.acc summary .tx { flex: 1; min-width: 0; }
.acc summary .pm { flex: none; transition: transform var(--t-hover); }
.acc details[open] summary .pm { transform: rotate(45deg); }
.acc summary:hover .tx { color: var(--text-accent); }
.acc .ans { display: flex; flex-direction: column; gap: var(--s-4); padding: 0 0 var(--s-6) calc(var(--s-6) + 1em); line-height: 1.7; }
.acc--plain summary { gap: var(--s-3); }
.acc--plain summary .mk { font-size: var(--fs-body); line-height: 1.6; font-weight: 400; }
.acc--plain .ans { padding-left: calc(var(--s-3) + 1em); }

/* ---------- 10. About ---------- */
.why { display: flex; flex-direction: column; gap: var(--s-8); max-width: 980px; }
.why .statement { font-size: var(--fs-h28); line-height: 1.3; font-weight: 700; }

/* 마우스를 올리면 나타나는 뒷면 — 앞뒤 같은 뼈대, 뒷면은 brand 면. 터치는 탭(site.js). */
.reveal { position: relative; overflow: hidden; }
.reveal-layer { position: absolute; inset: 0; z-index: 1; background: var(--surface-brand); border-radius: inherit;
  opacity: 0; visibility: hidden; transition: opacity var(--t-reveal), visibility 0s linear 300ms; }
.reveal.is-open .reveal-layer, .reveal:focus-visible .reveal-layer, .reveal-layer:focus-within { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .reveal:hover .reveal-layer { opacity: 1; visibility: visible; transition-delay: 0s; }
}

/* Builders — 가로 2열 · 628 × 220 */
.builders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); width: 100%; }
.builders > li { display: flex; min-width: 0; }
.builder, .builder .reveal-layer { display: flex; gap: 20px; padding: var(--s-3) 20px var(--s-3) var(--s-3); }
.builder { width: 100%; min-height: 220px; }
.builder .ph { flex: none; width: 196px; height: 196px; }
.builder .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); padding-top: 6px; }
.builder .id { flex: none; width: 196px; min-height: 196px; display: flex; flex-direction: column; gap: 6px; padding: var(--s-4); background: var(--surface-bg); border-radius: var(--r-photo); }
.builder .id .t-label { margin-bottom: auto; }
.builder .career { display: flex; flex-direction: column; gap: var(--s-1); }
.builder .bio { font-size: var(--fs-caption); line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.builder .links { margin-top: auto; display: flex; gap: var(--s-2); padding-top: var(--s-2); }

/* 생태계 — 사람 흐름(선발 → 수료 → 운영 참여) + 함께 만드는 사람들 */
.eco { display: flex; flex-direction: column; gap: var(--gutter); width: 100%; }
/* --k = 흐름 카드 수 - 1 (화살표 개수). site.js 가 넣습니다. */
.eco-flow { display: grid; grid-template-columns: repeat(var(--k, 2), minmax(0, 1fr) 124px) minmax(0, 1fr); align-items: center; }
.eco-node { display: flex; flex-direction: column; gap: var(--s-2); min-height: 172px; padding: var(--s-6); border-radius: var(--r-card); background: var(--surface-brand); transition: background var(--t-hover); }
.eco-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-inline: var(--s-2); color: var(--text-accent); font-size: var(--fs-caption); line-height: 1.5; text-align: center; }
.eco-arrow img { width: 104px; height: 10px; }
.eco-support { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-panel); background: var(--surface-muted); }
.eco-support-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); }
.eco-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.eco-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6); transition: background var(--t-hover), border-color var(--t-hover); }
@media (hover: hover) and (pointer: fine) {
  .eco-node:hover { background: var(--brand-200); }
  .eco-card:hover { background: var(--surface-brand); border-color: var(--surface-brand); }
}

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); width: 100%; }
.partner { display: flex; flex-direction: column; gap: var(--s-3); }
.partner .box { height: 140px; display: flex; align-items: center; justify-content: center; padding: var(--s-6); background: var(--surface-bg); border: 1px solid var(--border); border-radius: var(--r-img); transition: border-color var(--t-hover); }
a.partner:hover .box { border-color: var(--text-accent); }
.partner .box img { max-height: 64px; max-width: 80%; width: auto; object-fit: contain; }
.partner .nm { font-size: var(--fs-caption); line-height: 1.5; }

/* ---------- 11. Fellows — 세로 4열 · 302 × 392 · 사진 정사각 ---------- */
.fellows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); width: 100%; }
.fellows > li { display: flex; min-width: 0; }
.fellow, .fellow .reveal-layer { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-2) var(--s-2) 20px; }
.fellow { width: 100%; min-height: 392px; }
.fellow .ph { aspect-ratio: 1 / 1; width: 100%; }
.fellow .reveal-layer .ph { background: var(--brand-300); }
.fellow .ph .tag { position: absolute; z-index: 1; top: var(--s-3); left: var(--s-3); padding: var(--s-1) 10px; border-radius: var(--r-pill); background: var(--surface-bg); }
.fellow .info { display: flex; flex-direction: column; gap: 6px; padding-inline: var(--s-1); }
.name-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.name-row .sp { flex: 1; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.empty-note { padding-block: var(--s-16); color: var(--text-muted); text-align: center; grid-column: 1 / -1; width: 100%; }

/* ---------- 12. Programs — 갤러리 + 상세 팝업 ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--gutter); width: 100%; }
.post { display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; }
.post .ph { height: 300px; width: 100%; border-radius: var(--r-img); }
.post .ph img { transition: transform 600ms var(--ease); }
.post:hover .ph img { transform: scale(1.03); }
.post:hover .t-title { color: var(--text-accent); }
.more { display: flex; justify-content: center; width: 100%; }

/* 상세 팝업 — Desktop ≥1200: 1040 · 왼쪽 글 300 / 오른쪽 사진 · 바깥 24 · 덩어리 사이 16 · 최대 높이 80vh */
.dlg-back { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--s-6); background: var(--overlay-dialog); }
.dlg { width: 100%; max-width: 1040px; max-height: 80vh; display: flex; flex-direction: column; gap: var(--s-4); padding-top: var(--s-6);
  background: var(--surface-bg); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-dialog); overflow: hidden; }
.dlg:focus { outline: none; }
.dlg-head { display: flex; align-items: flex-start; gap: var(--s-3); padding-inline: var(--s-6); }
.dlg-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dlg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.dlg-close { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-photo); color: var(--text-muted); transition: background var(--t-hover), color var(--t-hover); }
.dlg-close:hover { background: var(--surface-subtle); color: var(--text); }
.dlg-content { flex: 1; min-height: 0; overflow-y: auto; display: flex; gap: var(--s-6); padding-inline: var(--s-6); }
.dlg-body { flex: none; width: 300px; white-space: pre-line; }
@media (max-width: 1199px) { .dlg-body:empty { display: none; } }
.dlg-pics { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.dlg-pics .main { aspect-ratio: 668 / 376; width: 100%; }
.dlg-pics .thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.dlg-pics .thumbs button { aspect-ratio: 217 / 130; width: 100%; border-radius: var(--r-sm); }
.dlg-pics .thumbs button[aria-current="true"] { outline: 2px solid var(--text-accent); outline-offset: -2px; }
.dlg-foot { display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-6) var(--s-6); }
.dlg-foot .sp { flex: 1; }

/* ---------- 13. Review — 3열 · 따옴표 → 인용 → 본문 → 아바타 ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); width: 100%; align-items: start; }
.review { display: flex; flex-direction: column; gap: var(--s-3); min-height: 280px; padding: var(--s-6); }
.review .mark { font-size: var(--fs-h40); line-height: 1; height: .6em; font-weight: 700; color: var(--brand-300); }
.review .bd { color: var(--text-muted); display: flex; flex-direction: column; gap: var(--s-3); }
.review .bd.clamp { max-height: calc(1.6em * 5); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.review .link { align-self: flex-start; }
.review .who { margin-top: auto; padding-top: var(--s-3); }

/* ---------- 14. Apply ---------- */
.apply-hero { background: var(--sky); padding-block: var(--s-24); }
.apply-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); width: 100%; }
.ov li { display: flex; flex-direction: column; gap: var(--s-3); min-height: 152px; padding: var(--s-6); }

.phase { display: flex; flex-direction: column; gap: var(--s-4); width: 100%; }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.legend { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); color: var(--text-muted); font-size: var(--fs-caption); }
.legend i { display: inline-block; width: 20px; height: 10px; border-radius: var(--r-pill); background: var(--surface-inverse); }
.legend i.on { background: var(--brand-200); }
.legend i + span { margin-right: var(--s-2); }

/* 모집 — 4단계 */
.stepper { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); padding: var(--s-8); border-radius: var(--r-panel); background: var(--surface-muted); width: 100%; }
.step { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.step-top { display: flex; align-items: center; }
.step-dot { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--brand-300); background: var(--surface-bg); color: var(--text-accent); font-weight: 700; }
.step:last-child .step-dot { border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-inverse); }
.step-line { flex: 1; height: 2px; background: var(--brand-300); }
.step-txt { display: flex; flex-direction: column; gap: var(--s-1); padding-right: var(--s-4); }
.step-txt .t-label { color: var(--text-muted); }

/* 프로그램 — 월별 막대 */
.tl-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-panel); }
.tl { position: relative; display: grid; grid-template-columns: 198px repeat(var(--m, 8), minmax(0, 1fr)); row-gap: 20px; padding: var(--s-6) 40px var(--s-6) var(--s-8);
  border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface-muted); min-width: 860px; }
.tl-month { display: flex; flex-direction: column; padding: 0 0 var(--s-2) 10px; font-family: var(--mono); font-size: var(--fs-caption); line-height: 1.5; font-weight: 500; letter-spacing: .04em; color: var(--text-muted); }
.tl-lines { grid-column: 2 / -1; grid-row: 2 / -1; margin-bottom: calc(-1 * var(--s-2));
  background: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px calc(100% / var(--m, 8))); border-right: 1px solid var(--border); }
.tl-name { grid-column: 1; display: flex; flex-direction: column; justify-content: center; min-height: 40px; }
.tl-bar { position: relative; z-index: 1; align-self: center; height: 40px; margin-inline: 6px; border-radius: var(--r-pill); background: var(--surface-inverse); }
.tl-bar.on { background: var(--brand-200); }

.cta-band { background: var(--sky-x); padding-block: 80px; text-align: center; }
.cta-band .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s-6); }

/* ---------- 15. 404 ---------- */
.nf { min-height: 50vh; display: flex; align-items: center; }
.nf .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6); }

/* ============================================================================
   Tablet 768–1279
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --fs-display: 52px; --fs-h40: 34px; --fs-h28: 24px; --margin: 40px; --section-y: 80px; --head-gap: 40px; }
  .nav-menu { gap: var(--s-6); }
  .hero { min-height: 640px; }
  .deep, .culture, .qa { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .culture .ph { height: auto; aspect-ratio: 4 / 3; }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act, .act:nth-child(4n+1), .act:nth-child(4n+4) { grid-column: auto; }
  .fellows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builders { grid-template-columns: minmax(0, 1fr); }
  .eco-flow { grid-template-columns: minmax(0, 1fr); }
  .eco-arrow { flex-direction: row; justify-content: center; padding-block: var(--s-3); }
  .eco-arrow img { transform: rotate(90deg); width: 40px; height: 10px; }
  .rv-card { width: 360px; }
  .logo-cell { width: 260px; }
}

/* 상세 팝업 Tablet: 폭 90% · 사진 위 → 글 아래 */
@media (max-width: 1199px) {
  .dlg { max-width: 90vw; }
  .dlg-content { flex-direction: column-reverse; justify-content: flex-end; }
  .dlg-body { width: auto; }
}

/* 메뉴가 한 줄에 안 들어가는 폭부터 햄버거로 */
@media (max-width: 899px) {
  .burger { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface-bg); border-bottom: 1px solid var(--border); padding: var(--s-2) var(--margin) var(--s-6);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--t-hover), transform var(--t-hover), visibility 0s linear 150ms;
  }
  .nav.is-open .nav-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-menu a:not(.btn) { padding-block: var(--s-4); border-bottom: 1px solid var(--surface-subtle); }
  .nav-menu .btn { margin-top: var(--s-4); }
  .nav.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .fellows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================================
   Mobile 0–767
   ========================================================================== */
@media (max-width: 767px) {
  :root { --fs-display: 38px; --fs-h40: 28px; --fs-h28: 22px; --fs-title: 18px; --margin: 20px; --gutter: 16px; --section-y: 64px; --head-gap: 32px; --nav-h: 65px; }
  .nav-logo img { height: 28px; }
  .footer-brand img { height: 34px; }
  .hero { min-height: 560px; }
  .hero-in { padding-bottom: var(--s-16); gap: var(--s-4); }
  .hero-in .hero-desc.pre { white-space: normal; }
  .partners-strip { padding-block: var(--s-8); }
  .logo-cell { width: 200px; height: 68px; }
  .logo-cell img { max-height: 36px; }
  .acts, .fellows, .partners, .posts, .reviews, .ov, .eco-cards { grid-template-columns: minmax(0, 1fr); }
  .act .ph, .post .ph { height: auto; aspect-ratio: 4 / 3; }
  .vals li { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-1) var(--s-3); padding-block: var(--s-4); }
  .vals .desc { grid-column: 2; }
  .net { min-height: 520px; }
  .rv-card { width: 290px; padding: var(--s-6); }
  .builder { flex-direction: column; min-height: 0; }
  .builder .reveal-layer { flex-direction: column; overflow-y: auto; }
  .builder .ph { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .builder .id { width: 100%; min-height: 0; }
  .fellow { min-height: 0; }
  .stepper { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6); }
  .step-line { display: none; }
  .legend { margin-left: 0; width: 100%; }
  .tl { padding-left: var(--s-6); }
  .dlg-back { padding: 5vw; }
  .dlg-title .t-h28 { font-size: var(--fs-title); line-height: 1.4; }
  .dlg-foot { flex-wrap: wrap; }
  .dlg-foot .sp { display: none; }
  .dlg-foot .count { width: 100%; }
  .dlg-foot .btn { flex: 1; }
  .footer-top { flex-direction: column; }
  .cta-band { padding-block: var(--s-16); }
}
