@charset "UTF-8";
/* Pretendard는 각 페이지 <head>의 <link>로 로드합니다.
   CSS 안의 @import는 "style.css 다운로드 → import CSS 다운로드 → 폰트 파일"의
   3단 직렬 체인을 만들어 첫 렌더를 지연시킵니다. */

/* ==========================================================================
   IDEA 사업단 디자인 시스템
   - Institute for Design Engineering with AI
   - 브랜드 컬러: 로고(pde)에서 추출한 blue / teal / orange / gold
   ========================================================================== */

:root {
  /* ── 브랜드 ────────────────────────────────────────────────────────────
     4색은 IDEA 인재상(I·D·E·A) 레전드 한 곳에서만 함께 등장합니다.
     그 외 모든 곳의 액센트는 --accent 하나로 통일합니다. */
  --blue: #2e7de0;
  --teal: #16a085;
  --orange: #ee6b43;
  --gold: #f5a623;

  /* 단일 액센트. 브랜드를 바꾸려면 이 두 줄만 고치면 전 페이지가 따라옵니다.
     --accent 는 "칠하는 색"이자 "읽는 색" — 흰 글자를 얹어도(6.54:1),
     흰 배경에 글자로 올려도(6.54:1) AA를 통과하는 유일한 지점입니다.
     기존 --blue(#2e7de0)를 버튼 fill로 쓰면 흰 글자가 4.10:1로 미달이었습니다. */
  --accent: #1d5cb0;
  --accent-hover: #17498c;
  --accent-rgb: 46 125 224;                    /* 틴트·링 전용 밝은 원색 */
  --accent-tint: rgb(var(--accent-rgb) / 8%);
  --accent-tint-strong: rgb(var(--accent-rgb) / 14%);

  /* ── 텍스트: 별도 회색 팔레트가 아니라 잉크 한 색의 불투명도 램프 ──────
     실측 대비(흰 배경): 100%=17.75  82%=10.11  64%=5.35  ← 여기까지가 본문 하한
     그 아래(52%=3.60, 40%=2.53)는 AA 미달이라 "글자"에는 쓰지 않습니다. */
  --ink: 16 24 40;
  --text-primary:   rgb(var(--ink));
  --text-secondary: rgb(var(--ink) / 82%);
  --text-tertiary:  rgb(var(--ink) / 64%);
  --text-quiet:     rgb(var(--ink) / 44%);     /* 비텍스트 전용(구분선·아이콘) */

  /* 하위호환: 기존 규칙이 참조하는 이름을 램프에 매핑 */
  --ink-900: var(--text-primary);
  --ink-700: var(--text-secondary);
  --ink-500: var(--text-tertiary);
  --ink-300: var(--text-quiet);
  --ink-100: #eaecf0;
  --blue-700: var(--accent);
  --teal-700: #0d7059;

  /* ── 표면: 평면 ───────────────────────────────────────────────────────
     코드잇은 elevation/shadow 토큰을 아예 발행하지 않습니다. 이 사이트도
     카드 그림자를 걷어내고 헤어라인으로 면을 나눕니다. 그림자는 실제로
     떠 있는 것(드롭다운·라이트박스·토스트·모바일 메뉴)에만 남깁니다. */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-soft-2: #eef2f8;
  --border: #e6eaf1;
  --border-strong: rgb(var(--ink) / 14%);
  --hairline: rgb(var(--ink) / 8%);

  /* ── 라운드: 안쪽 박스는 바깥보다 한 단계 작게 ────────────────────────── */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;   /* 기본값 */
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* ── 간격 ─────────────────────────────────────────────────────────────
     섹션 여백을 3단으로 나눠 리듬을 만듭니다. 이전에는 전 섹션이 96px로
     균일해서 스크롤 내내 같은 박자가 반복됐습니다. */
  --section-xl: clamp(88px, 11vw, 168px);
  --section-lg: clamp(72px, 8vw, 120px);
  --section-md: clamp(56px, 6vw, 88px);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 56px;
  --space-8: 96px;

  /* ── 타이포 ───────────────────────────────────────────────────────────
     큰 글자일수록 자간을 조입니다(한글 디스플레이에서 특히 중요). */
  --fs-1: 13px;
  --fs-2: 14px;
  --fs-3: 16px;
  --fs-4: 18px;
  --fs-5: clamp(26px, 3vw, 36px);
  --fs-6: clamp(32px, 4.2vw, 52px);
  --fs-display: clamp(28px, 5.2vw, 64px);
  --track-display: -0.035em;
  --track-title: -0.025em;
  --track-body: -0.01em;

  --header-h: 78px;
  --sticky-stack: 150px;

  --shadow-sm: 0 1px 2px rgb(var(--ink) / 5%);
  --shadow-md: 0 8px 24px rgb(var(--ink) / 8%);
  --shadow-lg: 0 24px 48px -12px rgb(var(--ink) / 18%);

  --gradient-hero: linear-gradient(120deg, #12233f 0%, #16385f 45%, #1c4f6b 75%, #1a5457 100%);
  --gradient-brand: linear-gradient(90deg, var(--blue), var(--teal) 50%, var(--orange) 85%, var(--gold));

  --container: 1160px;
}


* { box-sizing: border-box; }
/* 스티키 헤더(78px) + 서브내비(약 59px) 아래로 앵커가 숨지 않도록 오프셋을 줍니다.
   이게 없으면 드롭다운/서브내비의 모든 #해시 링크가 제목을 가린 채 착지합니다. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-stack);
  /* 라이트박스 열 때 body overflow:hidden으로 스크롤바가 사라지며 생기는 가로 점프 방지 */
  scrollbar-gutter: stable;
}
@media (max-width: 960px) {
  /* 모바일에는 서브내비가 헤더에 붙어 스티키로 쌓이지 않으므로 오프셋을 줄입니다 */
  html { scroll-padding-top: 96px; }
}
[hidden] { display: none !important; }

/* 스킵 링크: 키보드 사용자가 내비게이션 링크 16개를 매 페이지 통과하지 않도록,
   Tab 첫 타에 나타나 본문으로 바로 건너뛸 수 있게 합니다. */
.skip-link {
  position: fixed; top: 12px; left: 50%; z-index: 3000;
  translate: -50% -200%;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink-900); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: translate .18s ease;
}
.skip-link:focus-visible { translate: -50% 0; outline: 2px solid #fff; outline-offset: 2px; }

/* 키보드로 탐색할 때(마우스 클릭 시에는 뜨지 않음) 지금 어디에 있는지 명확히 보이도록 */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 2px; }
.gallery-item:focus-visible .gallery-media { outline: 2px solid var(--blue); outline-offset: 2px; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; color: var(--text-primary); font-weight: 800; letter-spacing: var(--track-title); }
h1 { letter-spacing: var(--track-display); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 공통 유틸 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 0 var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-strong);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gradient-brand); }

.section { padding: var(--section-lg) 0; }
/* 섹션 여백 3단. 같은 박자가 9번 반복되던 스크롤에 강약을 만듭니다. */
.section--air  { padding: var(--section-xl) 0; }
.section--tight2 { padding: var(--section-md) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

.section-head { max-width: 720px; margin: 0 0 var(--space-7); }
.section-head h2 { font-size: var(--fs-5); line-height: 1.3; letter-spacing: var(--track-title); }
.section-head p { margin-top: var(--space-4); font-size: var(--fs-3); color: var(--text-tertiary); line-height: 1.7; }

/* 헤더 변주 — 9개 섹션이 전부 "eyebrow + h2 + p" 한 형태였습니다.
   --display 는 라벨 없이 큰 제목만으로 구간을 여는 형태,
   --center 는 페이지에서 한 번만 쓰는 중앙 정렬 모먼트입니다. */
.section-head--display { max-width: 880px; margin-bottom: var(--space-8); }
.section-head--display h2 {
  font-size: var(--fs-display); line-height: 1.18; letter-spacing: var(--track-display);
}
.section-head--display p { margin-top: var(--space-5); font-size: var(--fs-4); max-width: 620px; }
.section-head--center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
/* 흰 글자 대비: --blue(#2e7de0) 위에서는 4.10:1로 AA 미달이었습니다.
   --accent(#1d5cb0)에서 6.54:1. 그림자도 걷어 평면 기조에 맞춥니다. */
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--outline { background: #fff; color: var(--text-primary); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 13px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(228,233,242,0.6);
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; }
.brand-text span { font-size: 11px; color: var(--ink-500); font-weight: 600; letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; height: var(--header-h); padding: 0 18px;
  font-weight: 700; font-size: 15.5px; color: var(--ink-700);
  border-bottom: 2px solid transparent;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--blue); border-bottom-color: var(--blue); }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 210px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity .16s ease, translate .16s ease, visibility .16s;
}
/* :hover만 있으면 visibility:hidden 때문에 Tab 포커스가 하위 링크로 못 들어갑니다.
   :focus-within을 함께 걸어 키보드로도 하위 메뉴 9개에 접근할 수 있게 합니다. */
.nav > li:hover .dropdown,
.nav > li:focus-within .dropdown { opacity: 1; visibility: visible; translate: 0 0; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-700); }
.dropdown a:hover { background: var(--bg-soft-2); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-actions .tag {
  font-size: 12px; font-weight: 700; color: var(--teal-700); background: rgba(22,160,133,.09);
  border: 1px solid rgba(22,160,133,.22); padding: 6px 12px; border-radius: 999px;
}
.mju-badge { height: 30px; width: auto; display: block; }
@media (max-width: 600px) {
  .mju-badge { display: none; }
}

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content:""; display:block; width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px; }
.nav-toggle span { margin: 4px 0; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 84px;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(238,107,67,.35), transparent 65%);
  filter: blur(10px);
  animation: bubble-float-a 16s ease-in-out infinite;
}
.hero::after {
  content: "";
  position: absolute; left: -10%; bottom: -30%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(22,160,133,.35), transparent 65%);
  animation: bubble-float-b 20s ease-in-out infinite;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; letter-spacing: .02em;
}
.hero h1 { color: #fff; font-size: var(--fs-6); line-height: 1.28; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 22px; font-size: 17px; color: rgba(255,255,255,.82); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }

/* ---------- 히어로 사진 스트립 ----------
   헤더에 이미 있는 로고를 한 번 더 띄우던 자리를, 실제 공간·활동 사진이
   천천히 흐르는 세로 스트립으로 바꿉니다.

   앞서 제거한 마퀴 티커와의 차이: 티커는 헤더 태그와 중복되는 "글자"를 굴려
   정보량이 0이었고, 이건 정적으로는 전달할 수 없는 "사진 증거"를 보여줍니다.
   그래도 움직임이므로 WCAG 2.2.2에 맞춰 (1) 일시정지 버튼, (2) 마우스·키보드
   포커스 시 자동 정지, (3) prefers-reduced-motion 시 정지 + 수동 스크롤을 모두 둡니다. */
.hero-strip {
  position: relative;
  width: min(440px, 100%);
  height: clamp(360px, 40vw, 500px);   /* 다음 사진이 살짝 걸쳐 보여 "더 있다"는 신호를 줍니다 */
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.5);
  background: rgba(255,255,255,.06);
}
/* 프레임에서 잘리는 위/아래를 눌러, 사진이 흘러 들어오고 나가는 것처럼 보이게 */
.hero-strip::before, .hero-strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 58px; z-index: 2; pointer-events: none;
}
.hero-strip::before { top: 0;    background: linear-gradient(180deg, rgba(13,29,52,.9), transparent); }
.hero-strip::after  { bottom: 0; background: linear-gradient(0deg,   rgba(13,29,52,.9), transparent); }

.hero-strip-track {
  display: flex; flex-direction: column; gap: 12px;
  /* 이동 거리는 "그룹 1개 높이 + 간격"이어야 이음매가 없습니다.
     translateY(-50%) 같은 어림값은 padding·gap 때문에 어긋나므로,
     main.js가 실측해 --strip-shift에 넣어줍니다. */
  animation: hero-strip-scroll var(--strip-duration, 56s) linear infinite;
}
.hero-strip-group { display: flex; flex-direction: column; gap: 12px; }
@keyframes hero-strip-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-1 * var(--strip-shift, 0px))); }
}
/* JS가 실측을 마치기 전에는 애니메이션을 걸지 않습니다(어긋난 채로 도는 것 방지) */
.hero-strip:not(.is-ready) .hero-strip-track { animation: none; }
.hero-strip.is-paused .hero-strip-track,
.hero-strip:hover .hero-strip-track,
.hero-strip:focus-within .hero-strip-track { animation-play-state: paused; }

.hero-shot { margin: 0; position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(16,24,40,.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.3;
}
.hero-shot figcaption .ic { width: 13px; height: 13px; flex: none; }
a.hero-shot:hover img { filter: brightness(1.06); }
a.hero-shot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hero-strip-toggle {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 999px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,24,40,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.28); color: #fff; cursor: pointer;
  transition: background .18s ease;
}
.hero-strip-toggle:hover { background: rgba(16,24,40,.85); }
.hero-strip-toggle .ic { width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) {
  /* 움직임을 끄고, 대신 손으로 훑어볼 수 있게 합니다 */
  .hero-strip-track { animation: none !important; }
  .hero-strip { overflow-y: auto; overscroll-behavior: contain; }
  .hero-strip-toggle { display: none; }
  /* 위/아래 페이드는 "흐르고 있음"을 암시하는 장치인데, 스크롤 컨테이너 안에서는
     내용과 함께 밀려 올라가 어색해집니다. 움직임이 없으므로 함께 끕니다. */
  .hero-strip::before, .hero-strip::after { content: none; }
}
@media (max-width: 960px) {
  .hero-strip { width: min(520px, 100%); height: clamp(260px, 52vw, 340px); }
}

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; position: relative; z-index: 1; }
.hero-stats .stat {
  text-align: left; padding: 18px 20px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.hero-stats .stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.36); }
.hero-stats .stat b { display: block; font-size: 30px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.68); }

/* ---------- 페이지 상단 (서브페이지) ---------- */
.page-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 68px 0 54px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; left: -6%; bottom: -55%; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(22,160,133,.28), transparent 65%);
  animation: bubble-float-b 18s ease-in-out infinite;
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -40%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(245,166,35,.3), transparent 65%);
  animation: bubble-float-a 14s ease-in-out infinite;
}

@keyframes bubble-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.06); }
}
@keyframes bubble-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -18px) scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .page-hero::before, .page-hero::after { animation: none; }
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); position: relative; z-index: 1; }
.page-hero p { margin-top: 12px; color: rgba(255,255,255,.78); max-width: 620px; position: relative; z-index: 1; }

.subnav {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: calc(var(--header-h) + 1px); z-index: 90;
}
.subnav ul {
  display: flex; gap: 4px; overflow-x: auto;
  /* 좁은 화면에서 탭이 넘칠 때 스크롤바 트랙이 UI 요소처럼 보였습니다.
     스크롤은 유지하고 막대만 숨긴 뒤, 오른쪽 페이드로 "더 있음"을 알립니다. */
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { scroll-snap-align: start; }
.subnav .container { position: relative; }
.subnav .container::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 36px;
  background: linear-gradient(90deg, transparent, #fff 70%);
  pointer-events: none;
}
@media (min-width: 961px) {
  .subnav .container::after { display: none; }
}
.subnav a { display: inline-flex; padding: 16px 18px; font-weight: 700; font-size: 14.5px; color: var(--ink-500); border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover, .subnav a.active { color: var(--blue-700); border-bottom-color: var(--blue); }

/* ---------- 카드 그리드 ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-6); transition: border-color .2s ease, background .2s ease;
}
/* 평면 표면: 그림자 대신 헤어라인. 카드가 "떠 있다"는 신호는 실제로 떠 있는
   것(드롭다운·라이트박스·토스트)에만 남기고, 본문 카드는 면으로 구분합니다. */
.card:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.card .icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; margin-bottom: 18px;
  transition: background .2s ease, color .2s ease;
  /* 색은 아래 .icon--* 모디파이어가 정합니다. 여기서 color를 지정하면
     (.card .icon 이 .icon--neutral 보다 우선순위가 높아) 모디파이어가 무력화됩니다. */
}
/* 인라인 SVG 아이콘. currentColor를 쓰므로 칩의 color만 바꾸면 아이콘 색도 따라옵니다.
   기존 이모지는 OS마다 다른 그림으로 렌더링되어(🏛️는 Windows·Apple·Android가 전부 다름)
   브랜드 통일성을 유지할 수 없었습니다. */
.ic { width: 24px; height: 24px; flex: none; }
.ic--sm { width: 15px; height: 15px; }
.ic--inline { width: 18px; height: 18px; vertical-align: -3px; }

/* 컬러 위계: 4색(blue·teal·orange·gold)을 동시에 쓰는 곳은 IDEA 인재상 4글자 한 곳뿐입니다.
   그 외 카드 아이콘은 전부 이 뉴트럴 칩으로 통일했습니다.
   같은 4색이 "IDEA 역량 / 참여학과 / G·R·O·W 전략"이라는 서로 다른 세 분류를
   동시에 가리키고 있어서 색이 아무 의미도 전달하지 못하던 문제를 해결합니다. */
.icon--neutral { background: var(--bg-soft-2); color: var(--blue-700); }
.card:hover .icon--neutral { background: rgba(46, 125, 224, 0.14); }
.icon--letter { background: var(--bg-soft-2); color: var(--blue-700); font-size: 20px; letter-spacing: -0.02em; }

.card h3 { font-size: var(--fs-4); margin-bottom: var(--space-3); }
/* 카드 상단의 분류 라벨. "유형 — 이름"처럼 대시로 잇던 제목을
   유형(작은 라벨) + 이름(제목) 2단으로 나눠 위계를 만듭니다.
   섹션 eyebrow와 달리 대문자·자간 처리를 하지 않아 리듬을 흐리지 않습니다. */
.card-kicker {
  display: block; font-size: var(--fs-1); font-weight: 700;
  color: var(--accent); letter-spacing: 0; margin-bottom: var(--space-1);
}
.card p { font-size: 15px; line-height: 1.7; color: var(--text-tertiary); margin: 0; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.card .tags span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft-2); color: var(--ink-700); }

/* ---------- 필요성 / 인용구 ---------- */
.quote-card {
  background: var(--bg-soft); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 24px; font-size: 15px; color: var(--ink-700);
}
.quote-card cite { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-500); font-style: normal; }

/* ---------- IDEA 인재상 ---------- */
.idea-letters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.idea-letter { text-align: center; padding: 32px 20px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; }
.idea-letter .letter {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
}
/* 브랜드 4색의 유일한 레전드: I=blue, D=teal, E=orange, A=gold.
   사이트 전체에서 이 네 색이 함께 등장하는 곳은 이 섹션뿐이며,
   그래서 이 섹션이 시각적 시그니처 역할을 합니다. */
.letter--i { background: linear-gradient(135deg, var(--blue), #5aa4ef); }
.letter--d { background: linear-gradient(135deg, var(--teal), #3fc8a8); }
.letter--e { background: linear-gradient(135deg, var(--orange), #f79a70); }
.letter--a { background: linear-gradient(135deg, var(--gold), #ffcf70); }
.idea-letter h4 { font-size: 16px; margin-bottom: 8px; }
.idea-letter p { font-size: 13.5px; color: var(--ink-500); margin: 0; }

/* ---------- 프로세스 / 로드맵 ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.roadmap-step { padding: 28px; border: 1px solid var(--border); background: #fff; position: relative; }
.roadmap-step:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.roadmap-step:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.roadmap-step + .roadmap-step { border-left: none; }
.roadmap-step .step-no { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: .06em; }
.roadmap-step h4 { margin-top: 8px; font-size: 18px; }
.roadmap-step p { font-size: var(--fs-2); color: var(--ink-500); margin-top: var(--space-2); }

/* ---------- π(파이)형 인재 모델 다이어그램 ----------
   사업단의 핵심 논리("T자형을 넘어 π형 인재")가 지금까지 문장으로만 설명되어 있었습니다.
   SVG 대신 박스 레이아웃으로 그린 이유: 한글 라벨이 길어 줄바꿈이 필요하고,
   그래야 화면 폭에 따라 라벨이 자연스럽게 흐르며 확대/스크린리더에도 그대로 읽힙니다.
   가로 막대(공유 교차영역 지식) + 세로 기둥 2개(두 개의 깊은 전문성) = π 형태. */
.pi-model {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) auto minmax(320px, 1.28fr);
  align-items: start;
  gap: 28px;
}
.pi-figure { margin: 0; }
.pi-bar {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 10px 16px; border-radius: var(--radius-xs);
  font-size: 12.5px; font-weight: 700; line-height: 1.35;
}
/* 기둥은 가로 막대에 붙어 있어야 π 형태로 읽힙니다(margin-top: 0).
   좌우를 안쪽으로 들여(padding) 막대가 기둥보다 넓어 보이게 하고,
   기둥 사이 간격을 충분히 벌려 "두 개의 기둥"임이 드러나게 합니다. */
.pi-legs { display: grid; gap: 34px; margin-top: 0; padding: 0 7%; }
.pi-leg {
  display: flex; flex-direction: column; gap: 5px; justify-content: flex-start;
  min-height: 138px; padding: 14px 14px 16px; border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  font-size: 12px; line-height: 1.5;
}
.pi-leg b { font-size: 13px; letter-spacing: -0.01em; }
.pi-caption { margin-top: 14px; text-align: center; }
.pi-caption b { display: block; font-size: 14.5px; color: var(--ink-900); }
.pi-caption span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-500); }
.pi-arrow {
  align-self: start; margin-top: 92px; font-size: 26px; font-weight: 700; color: var(--ink-300);
}

/* 왼쪽: 기존 모델(T자형) — 회색조로 두어 "넘어서야 할 상태"임을 드러냅니다 */
.pi-figure--t .pi-bar { background: var(--ink-100); color: var(--ink-500); }
.pi-figure--t .pi-legs { grid-template-columns: 1fr; padding: 0 26%; }
.pi-figure--t .pi-leg { background: var(--bg-soft-2); color: var(--ink-500); align-items: center; text-align: center; }

/* 오른쪽: 목표 모델(π형) — 브랜드 컬러로 강조 */
.pi-figure--pi .pi-bar { background: var(--gradient-brand); color: #fff; }
.pi-figure--pi .pi-legs { grid-template-columns: 1fr 1fr; }
.pi-figure--pi .pi-leg { border: 1px solid var(--border); border-top: 0; background: var(--bg-soft); color: var(--ink-500); }
.pi-leg--design b { color: var(--teal-700); }
.pi-leg--eng b { color: var(--blue-700); }

@media (max-width: 860px) {
  .pi-model { grid-template-columns: 1fr; gap: 8px; }
  .pi-arrow { margin: 4px auto 12px; transform: rotate(90deg); }
  .pi-figure--t .pi-legs { padding: 0 30%; }
  .pi-figure--t .pi-leg { min-height: 86px; }
}
@media (max-width: 520px) {
  .pi-figure--pi .pi-legs { grid-template-columns: 1fr; }
  .pi-figure--pi .pi-leg { border-top: 1px solid var(--border); border-radius: var(--radius-xs); min-height: 0; }
}

/* ---------- 로드맵을 실제 프로세스로 ----------
   기존에는 테두리를 공유한 박스 3개가 나란히 있을 뿐, 단계가 이어진다는 신호가 없었습니다.
   단계 번호 배지와 단계 사이 연결선/화살표를 넣어 흐름이 읽히게 합니다. */
.roadmap-step { padding-top: 34px; }
.roadmap-step .step-badge {
  position: absolute; top: -14px; left: 28px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 0 0 4px #fff;
  font-variant-numeric: tabular-nums;
}
.roadmap-step + .roadmap-step::before {
  content: ""; position: absolute; left: -1px; top: 50%; width: 1px; height: 0;
}
.roadmap-step:not(:last-child)::after {
  content: ""; position: absolute; right: -7px; top: 50%; z-index: 2;
  width: 13px; height: 13px; margin-top: -7px;
  background: #fff; border-right: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
@media (max-width: 1024px) {
  /* 세로로 쌓이면 단계 번호 배지만으로 순서가 충분히 읽히고,
     화살표는 배지와 위치가 겹쳐 오히려 지저분해지므로 숨깁니다. */
  .roadmap-step:not(:last-child)::after { content: none; }
}

/* ---------- 타임라인 (진로 파이프라인 등) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item .label { font-size: 13px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.timeline-item .label small { display: block; font-size: 12px; color: var(--ink-500); font-weight: 600; margin-top: 4px; text-transform: none; }
.timeline-item h4 { font-size: 17px; margin-bottom: 8px; }
.timeline-item p { font-size: 14.5px; color: var(--ink-500); margin: 0; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table th, table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table th { background: var(--bg-soft); font-weight: 700; color: var(--ink-700); font-size: 13.5px; }
table tr:last-child td { border-bottom: none; }
table td.center, table th.center { text-align: center; }

/* ---------- 부서/학과 카드 ---------- */
.dept-card { display: flex; flex-direction: column; gap: 14px; }
.dept-card .dept-head { display: flex; align-items: center; justify-content: space-between; }
/* 재학생 수 배지는 "수량"을 나타내므로 학과별로 색을 달리하지 않습니다.
   학과 구분은 제목과 아이콘이 이미 하고 있습니다. */
.dept-card .badge {
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-xs);
  color: var(--text-secondary); background: var(--bg-soft-2); font-variant-numeric: tabular-nums;
}

/* ---------- 프로필(교수) ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: #fff;
  display: flex; gap: 16px; align-items: flex-start;
}
.person .avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft-2); color: var(--blue-700); font-weight: 800; font-size: 16px;
}
.stat-num { display: block; font-size: 32px; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-500); font-size: 14px; }

/* 스크린리더 전용 텍스트 (아이콘만 있는 컨트롤의 이름) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.person .name { font-size: 16px; font-weight: 800; color: var(--ink-900); }
.person .dept { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.person .role { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--teal-700); background: rgba(22,160,133,.09); padding: 3px 10px; border-radius: 999px; }

/* ---------- 소식/공지 ---------- */
.news-list { display: flex; flex-direction: column; }
.news-entry { border-bottom: 1px solid var(--border); }
.news-entry:last-child { border-bottom: none; }
.news-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; width: 100%; }
.news-entry:first-child .news-item { padding-top: 0; }
.news-item .date { font-size: 13px; color: var(--ink-500); font-weight: 600; }
.news-item .badge-cat { font-size: 11.5px; font-weight: 800; color: var(--blue-700); background: rgba(46,125,224,.08); padding: 4px 10px; border-radius: 999px; display: inline-block; margin-bottom: 8px; width: fit-content; }
.news-item h4 { font-size: 15.5px; font-weight: 700; color: var(--ink-900); }
.news-item .arrow { color: var(--ink-500); display: inline-flex; align-items: center; transition: transform .15s ease; }
.news-item:hover h4 { color: var(--blue); }

button.news-item.is-button {
  background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
button.news-item.is-button[aria-expanded="true"] .arrow { transform: rotate(90deg); }
.news-body {
  padding: 0 0 24px; margin-top: -6px; color: var(--ink-700); font-size: 14.5px; line-height: 1.85;
}
.news-body p { margin: 0 0 12px; }
.news-body p:last-child { margin-bottom: 0; }
.news-body img { width: 100%; height: auto; border-radius: var(--radius-md); margin-bottom: 20px; border: 1px solid var(--border); }

/* ---------- 포토갤러리 (매소너리) ---------- */
.gallery-grid { columns: 3 260px; column-gap: 28px; }
.gallery-item {
  display: block; width: 100%; break-inside: avoid; margin: 0 0 28px; position: relative;
  border: 0; background: none; padding: 0; text-align: left; font: inherit; cursor: pointer;
}
/* 여러 장짜리 게시물은 카드 뒤로 살짝 겹쳐 비치는 사진 겹침 효과로 암시 (뱃지 대신) */
.gallery-item.has-multiple::before,
.gallery-item.has-multiple::after {
  content: ""; position: absolute; inset: 0; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.gallery-item.has-multiple::before { transform: rotate(1.4deg) translate(6px, 5px); z-index: 0; }
.gallery-item.has-multiple::after { transform: rotate(-1.6deg) translate(-5px, 7px); z-index: -1; }
.gallery-media {
  position: relative; z-index: 1; display: block; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); background: #fff;
}
.gallery-media img {
  display: block; width: 100%; height: auto; transition: transform .35s ease;
  /* width/height 속성이 함께 있으면 브라우저가 비율을 미리 알아 자리를 잡습니다.
     속성이 없는 과거 데이터에 대비해 기본 비율을 지정해 컬럼 재배치를 줄입니다. */
  background: var(--bg-soft-2);
}
.gallery-media img:not([width]) { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item:hover .gallery-media img { transform: scale(1.045); }
.gallery-overlay {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px;
}
.gallery-overlay .tag {
  display: inline-flex; align-items: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}
.gallery-item:hover .gallery-overlay .tag { transform: translateY(-2px); }
.gallery-overlay .tag--date {
  padding: 5px 12px; border-radius: 999px; background: rgba(16,24,40,.6); border: 1px solid rgba(245,166,35,.5);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.gallery-overlay .tag--caption {
  padding: 6px 13px; border-radius: var(--radius-sm); background: rgba(255,255,255,.94);
  color: var(--ink-900); font-size: 13px; font-weight: 600; line-height: 1.4; white-space: normal;
}
@media (max-width: 960px) {
  .gallery-grid { columns: 2 200px; column-gap: 20px; }
  .gallery-item { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .gallery-grid { columns: 1; }
}

/* ---------- 포토갤러리 라이트박스(캐러셀) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(10,14,20,.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox .lightbox-img { transform: scale(.965); transition: transform .18s ease; }
.lightbox.is-open .lightbox-img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox .lightbox-img { transition: none; }
}
.lightbox-img { max-width: 88vw; max-height: 78vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 22px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 26px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-meta {
  position: absolute; bottom: 22px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center;
  gap: 4px; color: rgba(255,255,255,.85); font-size: 13.5px; text-align: center; padding: 0 60px;
}
.lightbox-counter { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 700; }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 22px; }
}

/* ---------- CTA 배너 ---------- */
.cta-banner {
  background: var(--gradient-hero); color: #fff; border-radius: var(--radius-lg);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::after { content:""; position:absolute; right:-6%; top:-60%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(245,166,35,.35), transparent 65%); }
.cta-banner h3 { color: #fff; font-size: 26px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,.75); margin-top: 8px; position: relative; z-index: 1; }
.cta-banner .actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 라운지 공간 안내 (사진 + 시설 스펙) ----------
   예약 화면에 오기 전까지 "IDEA 라운지가 어떤 공간인지"를 보여주는 자료가
   사이트 어디에도 없었습니다. 사진 1장과 스펙 목록으로 그 공백을 채웁니다. */
.space-intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.space-photo {
  margin: 0; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-soft-2);
}
.space-photo img { display: block; width: 100%; height: auto; }
.space-photo figcaption {
  padding: 10px 14px; font-size: 12.5px; color: var(--ink-500);
  background: #fff; border-top: 1px solid var(--border);
}
.space-specs { display: grid; gap: 2px; }
.space-specs li {
  display: grid; grid-template-columns: 26px 96px 1fr; align-items: start; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.space-specs li:last-child { border-bottom: 0; }
.space-specs .ic { width: 20px; height: 20px; color: var(--blue-700); margin-top: 1px; }
.space-specs dt, .space-specs b { color: var(--ink-900); font-weight: 800; font-size: 13.5px; }
.space-specs span { color: var(--ink-500); }
@media (max-width: 860px) {
  .space-intro { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .space-specs li { grid-template-columns: 24px 1fr; row-gap: 2px; }
  .space-specs b { grid-column: 2; }
  .space-specs span { grid-column: 2; }
}

/* ---------- 지도 / 오시는길 ---------- */
.map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); height: 380px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.info-list b { min-width: 84px; color: var(--ink-900); font-weight: 800; }

/* ---------- 관리자 페이지 ---------- */
.admin-bar { background: var(--ink-900); }
.admin-bar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.admin-bar .brand-mini { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 15px; }
.admin-bar .brand-mini img { height: 26px; }
.admin-bar a.back { font-size: 13.5px; color: rgba(255,255,255,.7); }
.admin-bar a.back:hover { color: #fff; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-700); }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--ink-900); background: #fff;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(46,125,224,.3); border-color: var(--blue); }
.field label .hint { font-size: 12px; font-weight: 500; color: var(--ink-500); }
.field .hint { font-size: 12.5px; color: var(--ink-500); }

.admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.admin-row:last-child { border-bottom: none; }
.admin-row .meta { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.admin-row .title { font-weight: 700; color: var(--ink-900); font-size: 14.5px; }

.btn--danger { background: #fff; color: #d92d20; border-color: #fecdca; }
.btn--danger:hover { background: #fef3f2; }

.status-msg { display: none; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.status-msg.show { display: block; }
.status-msg.success { background: rgba(22,160,133,.08); color: var(--teal-700); border: 1px solid rgba(22,160,133,.25); }
.status-msg.error { background: rgba(217,45,32,.08); color: #d92d20; border: 1px solid rgba(217,45,32,.25); }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.68); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-brand-logos img { height: 32px; margin: 0; }
.mju-affiliate {
  display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 7px 14px;
}
.mju-affiliate img { height: 18px; width: auto; display: block; margin: 0; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 13.5px; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 16px; }
.footer-bottom .badges { display: flex; align-items: center; gap: 14px; }
.footer-bottom .badges img { height: 30px; background: #fff; border-radius: 6px; padding: 4px 8px; }
.footer-bottom small { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ---------- 액체 유리 카드 (색이 있는 배경 위에 얹는 반투명 카드) ---------- */
.glass-card {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow-lg);
}

/* ---------- 로딩 스켈레톤 ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--bg-soft-2); display: inline-block; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: translateX(-100%); animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
}

/* ---------- 맨 위로 가기 버튼 ---------- */
.scroll-top-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 500;
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink-700); font-size: 18px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md); padding: 0;
  opacity: 0; visibility: hidden; translate: 0 12px;
  transition: opacity .25s ease, translate .25s ease, visibility .25s, background .2s ease, color .2s ease, border-color .2s ease;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; translate: 0 0; }
.scroll-top-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 600px) {
  .scroll-top-btn { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ---------- 스크롤 리빌 ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .6s ease; }
.reveal.is-revealed { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: 0 0; transition: none; }
}

/* ---------- 토스트 알림 ---------- */
.toast-stack {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none; width: min(92vw, 420px);
}
.toast {
  pointer-events: auto; width: 100%; padding: 14px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.5); box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600; color: var(--ink-900);
  opacity: 0; translate: 0 12px; transition: opacity .25s ease, translate .25s ease;
}
.toast.show { opacity: 1; translate: 0 0; }
.toast.toast--error { color: #92140c; border-color: rgba(217,45,32,.35); background: rgba(255,241,240,.85); }
.toast.toast--success { color: #0d5c48; border-color: rgba(22,160,133,.35); background: rgba(236,253,248,.85); }

/* ---------- 스크롤 연동 텍스트 리빌 ---------- */
/* 투명도로 단어를 흐리게 하면 미점등 상태의 대비가 기준(4.5:1) 아래로 떨어집니다
   (기존 .22 = 1.32:1, .45로 올려도 1.85:1). 스크롤을 멈춘 사용자에게는 그 문단이
   그냥 읽히지 않는 회색 덩어리가 됩니다.
   그래서 "흐림 → 선명" 대신 "기본 본문색 → 진한 잉크색"으로 바꿔,
   단어가 차례로 진해지는 효과는 그대로 두고 모든 순간이 대비 기준을 넘도록 했습니다.
   (ink-500 4.97:1 → ink-900 15.9:1) */
.scroll-reveal-text .word { color: var(--ink-500); transition: color .3s ease; }
.scroll-reveal-text .word.is-lit { color: var(--ink-900); }
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-text .word { color: var(--ink-700); transition: none; }
}

/* ---------- 매그네틱 버튼 ----------
   will-change를 상시 걸면 컴포지터 레이어를 영구 점유하므로 hover 시점에만 켭니다.
   카드 3D 틸트는 제거했습니다: 회전 레이어에서 서브픽셀 렌더링이 깨져
   한글 본문이 흐려지고, 마우스를 움직이는 동안 계속 흔들려 가독성을 해쳤습니다. */
.btn:hover { will-change: transform; }

/* ---------- 반복되던 인라인 스타일을 걷어낸 유틸리티 ----------
   같은 값이 여러 페이지에 흩어져 있어서 여백/톤 규칙을 한 곳에서 바꿀 수 없었습니다. */
.u-center { text-align: center; }
.u-center-cta { text-align: center; margin-top: var(--space-6); }
.u-mt-5 { margin-top: var(--space-5); }
.u-mb-6 { margin-bottom: var(--space-6); }

/* 목록이 비었을 때 / 불러오는 중일 때의 안내문 */
.list-empty {
  color: var(--ink-500); text-align: center; padding: 40px 0; grid-column: 1 / -1;
}

/* 예약·관리자 패널의 소제목과 보조 설명 */
.panel-title { font-size: var(--fs-3); margin-bottom: var(--space-2); }
.panel-hint { font-size: 13.5px; color: var(--ink-700); margin-bottom: var(--space-4); }

/* 스켈레톤 막대 (로딩 자리표시) */
.skeleton-line { display: block; height: 13px; border-radius: 4px; margin-bottom: 6px; }
.skeleton-line--title { height: 18px; width: 60%; margin-bottom: 12px; }
.skeleton-line--wide { width: 90%; }
.skeleton-line--short { width: 50%; margin-bottom: 0; }

/* ---------- 반응형 ---------- */
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

@media (max-width: 1100px) {
  .header-actions .tag { display: none; }
}

/* 태블릿 구간: 기존에는 960px에서 grid--4가 4열 → 바로 1열로 떨어져
   아이패드 세로(768px)에서 카드가 한 줄로 늘어지며 스크롤이 4배가 됐습니다. */
@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap-step, .roadmap-step:first-child, .roadmap-step:last-child { border-radius: var(--radius-md); }
  .roadmap-step + .roadmap-step { border-left: 1px solid var(--border); border-top: none; margin-top: -1px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  /* 열린 모바일 메뉴는 자체 스크롤을 가져야 합니다. 기존에는 높이 제한이 없어
     메뉴(809px)가 뷰포트를 넘으면 하단 항목에 절대 도달할 수 없었습니다.
     참고: 헤더에 backdrop-filter가 걸려 있어 position:fixed의 containing block이
     뷰포트가 아니라 헤더가 됩니다(높이 79px). 그래서 fixed 대신 헤더 기준
     absolute + max-height로 처리합니다. 메뉴가 열려 있는 동안 헤더는 sticky로
     화면 최상단에 고정되어 있으므로 이 값이 실제 가용 높이와 일치합니다. */
  .nav.nav--open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h) - 1px);
    max-height: calc(100dvh - var(--header-h) - 1px);
    background: #fff; border-top: 1px solid var(--border); padding: 8px 16px 32px;
    box-shadow: var(--shadow-md);
    overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav.nav--open > li { width: 100%; }
  .nav.nav--open > li > a { height: auto; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav.nav--open .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; translate: 0;
    box-shadow: none; border: none; padding: 0 0 8px 12px; display: block;
  }
  .nav-toggle { display: flex; flex-direction: column; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .grid--2 { grid-template-columns: 1fr; }
  .idea-letters { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .cta-banner { padding: 36px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .people-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  /* 모바일에서도 강약은 남깁니다. 전부 같은 값으로 눌러버리면
     좁은 화면에서 섹션 경계가 사라져 한 덩어리로 읽힙니다. */
  .section { padding: 64px 0; }
  .section--air { padding: 88px 0; }
  .section--tight2 { padding: 48px 0; }
}
