/* ==========================================================================
   KAMI 메인 시안 — 공통 레이아웃 (S0~S9)
   정본: .claude/designs/001-main-layout.md
   이 파일에는 컬러를 직접 쓰지 않는다. 전부 theme-0X.css 의 CSS 변수를 참조한다.
   ========================================================================== */

/* ---------- 폰트 ---------- */
@font-face { font-family:'Pretendard'; font-weight:400; font-display:swap; src:url('../fonts/Pretendard-Regular.woff2') format('woff2'); }
@font-face { font-family:'Pretendard'; font-weight:500; font-display:swap; src:url('../fonts/Pretendard-Medium.woff2') format('woff2'); }
@font-face { font-family:'Pretendard'; font-weight:600; font-display:swap; src:url('../fonts/Pretendard-SemiBold.woff2') format('woff2'); }
@font-face { font-family:'Pretendard'; font-weight:700; font-display:swap; src:url('../fonts/Pretendard-Bold.woff2') format('woff2'); }
@font-face { font-family:'Pretendard'; font-weight:800; font-display:swap; src:url('../fonts/Pretendard-ExtraBold.woff2') format('woff2'); }

/* ---------- 레이아웃 상수 (designs/001 3절) ---------- */
:root{
  --container: 1200px;
  --gutter: 24px;
  --pad: 0px;              /* 브레이크포인트별 좌우 여백 */
  --rhythm: 120px;         /* 섹션 세로 리듬 */
  --header-h: 80px;
  --topbar-h: 0px;         /* GNB B안에서 40px */
  --hero-h: 800px;
  --marquee-h: 320px;
  --copy-h: 420px;
  --radius: 8px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:'Pretendard',-apple-system,'Segoe UI','Malgun Gothic',sans-serif;
  font-weight:400;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  word-break:keep-all;
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
ul,ol{ margin:0; padding:0; list-style:none; }

.container{ width:100%; max-width:var(--container); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad); }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- 섹션 공통 ---------- */
.section{ padding-block:var(--rhythm); }
.section--tint{ background:var(--surface); }

/* 섹션 타이틀 — 중앙 정렬 (시안 계승) */
.sec-head{ text-align:center; margin-bottom:56px; }
.sec-head .eyebrow{
  display:block; font-size:14px; font-weight:700; letter-spacing:.34em;
  color:var(--accent); margin-bottom:14px; text-transform:uppercase;
}
.sec-head .title{
  margin:0; font-size:40px; font-weight:800; letter-spacing:-.02em; line-height:1.25; color:var(--ink);
}
.sec-head .lead{ margin:14px 0 0; font-size:16px; color:var(--ink-60); }

/* 버튼 */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:52px; padding:0 34px; border-radius:999px;
  font-size:15px; font-weight:600; letter-spacing:-.01em;
  background:var(--btn-bg); color:var(--btn-fg);
  transition:filter .2s var(--ease), transform .2s var(--ease);
}
.btn:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.btn--ghost{ background:transparent; color:var(--ink); border:1px solid var(--line); }
.sec-foot{ margin-top:56px; text-align:center; }

/* 카테고리 뱃지 */
.badge{
  display:inline-flex; align-items:center; height:28px; padding:0 12px;
  border-radius:999px; font-size:12px; font-weight:600; letter-spacing:-.01em;
  background:var(--badge-bg); color:var(--badge-fg);
}

/* 16:9 썸네일 */
.thumb{ position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:var(--radius); background:var(--ph-bg); }
.thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.card:hover .thumb img{ transform:scale(1.04); }

/* noimage 플레이스홀더 (자료 미도착 구간 — designs/001 7절) */
.ph{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:10px;
  background:
    repeating-linear-gradient(135deg, var(--ph-line) 0 1px, transparent 1px 11px),
    var(--ph-bg);
  color:var(--ph-fg);
}
.ph svg{ width:34px; height:34px; opacity:.55; }
.ph span{ font-size:11px; font-weight:600; letter-spacing:.16em; }

/* ==========================================================================
   S0. 헤더 / GNB  — 6장 중 유일하게 형태가 갈리는 구간
   ========================================================================== */
.header{
  position:absolute; top:0; left:0; right:0; z-index:50;
  color:#fff;                       /* 히어로 위 투명 오버레이 */
}
.header .topbar{ display:none; }
.header .bar{
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
}
.logo{ display:flex; align-items:center; }
.logo img{ height:34px; width:auto; filter:brightness(0) invert(1); }  /* 컬러 로고 → 화이트 */

.header nav[aria-label="주메뉴"]{ align-self:stretch; display:flex; }
.gnb{ display:flex; align-items:stretch; gap:40px; }
.gnb > li{ position:relative; display:flex; align-items:center; }
.gnb > li > a{
  display:inline-flex; align-items:center; gap:5px;
  font-size:16px; font-weight:600; letter-spacing:-.01em;
  padding:10px 0; position:relative;
}
.gnb > li > a::after{
  content:''; position:absolute; left:0; right:0; bottom:2px; height:2px;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform .25s var(--ease);
}
.gnb > li:hover > a::after{ transform:scaleX(1); }
.ext{ width:11px; height:11px; opacity:.8; flex:none; }

/* B안 — 상단 띠에 외부 채널 분리 (높이 40) */
.gnb-b .header .topbar{
  display:block; height:var(--topbar-h);
  background:rgba(0,0,0,.22);
  border-bottom:1px solid rgba(255,255,255,.16);
}
.gnb-b .header .topbar .container{ height:100%; display:flex; align-items:center; justify-content:flex-end; }
.gnb-b .topbar > .container > ul{ align-self:stretch; display:flex; align-items:stretch; gap:28px; }
.gnb-b .topbar > .container > ul > li{ position:relative; display:flex; align-items:center; }
.gnb-b .topbar > .container > ul > li > a{
  display:inline-flex; align-items:center; gap:5px;
  font-size:13px; font-weight:500; letter-spacing:.01em; opacity:.92;
}
.gnb-b .topbar > .container > ul > li > a:hover{ opacity:1; }
.gnb-b{ --topbar-h:40px; }

/* ---- 2depth 드롭다운 — A/B 공통 (designs/001 S0 · decisions/001 2·3절) ----
   KAMI 8개 · WOF 2개만 존재. 마우스오버(:hover) + 키보드(:focus-within) 양쪽으로 열린다. */
.caret{ width:11px; height:11px; flex:none; opacity:.7; transition:transform .25s var(--ease); }
.has-sub:hover > a .caret,
.has-sub:focus-within > a .caret{ transform:rotate(180deg); }

.header ul.subnav{
  position:absolute; top:100%; left:-18px; z-index:60;
  display:block; min-width:188px; padding:10px 0;
  background:var(--bg); color:var(--ink);
  border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 18px 40px rgba(15,23,51,.18);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub:hover > .subnav,
.has-sub:focus-within > .subnav{ opacity:1; visibility:visible; transform:translateY(0); }

.header ul.subnav > li{ display:block; }
.header ul.subnav a{
  display:flex; align-items:center; gap:6px;
  padding:9px 18px; opacity:1;
  font-size:15px; font-weight:500; letter-spacing:-.01em; white-space:nowrap;
  color:var(--ink-80);
  transition:color .18s var(--ease), background .18s var(--ease);
}
.header ul.subnav a:hover,
.header ul.subnav a:focus-visible{ color:var(--primary); background:var(--surface); }
.header ul.subnav .ext{ opacity:.5; }

/* 캡처 전용(?open=<메뉴>) — 마우스오버 없이 드롭다운을 열어둔다.
   정지 JPG 에는 열린 드롭다운이 안 담기므로 협회 제출본용으로 따로 찍는다 (logs/2026-08-31) */
.has-sub.is-open > .subnav{ opacity:1; visibility:visible; transform:translateY(0); }
.has-sub.is-open > a .caret{ transform:rotate(180deg); }
.gnb-shot-label{
  position:fixed; left:0; right:0; bottom:0; z-index:200;
  padding:11px 20px; background:#0f1733; color:#fff;
  font-size:14px; font-weight:500; letter-spacing:-.01em; text-align:center;
}
.gnb-shot-label b{ font-weight:700; }
.gnb-shot-label .s{ opacity:.4; }

/* ==========================================================================
   S1. HERO — 풀블리드 롤링 3장 · 하단 직선
   ========================================================================== */
/* 가로 제스처는 스와이프 핸들러가 가져가고, 세로 스크롤만 브라우저에 맡긴다 (decisions/001 7-2) */
.hero{ touch-action:pan-y; }
.hero{
  position:relative; height:calc(var(--hero-h) + var(--topbar-h));
  overflow:hidden; background:var(--ink);
}
.hero__slide{
  position:absolute; inset:0; opacity:0; transition:opacity 600ms var(--ease);
}
.hero__slide.is-active{ opacity:1; }
.hero__media{ position:absolute; inset:0; }
.hero__media img{ width:100%; height:100%; object-fit:cover; }
/* 컬러안별 트리트먼트 — theme-0X.css 가 --hero-wash / --hero-blend 를 정의 */
.hero__media::after{
  content:''; position:absolute; inset:0;
  background:var(--hero-wash);
  mix-blend-mode:var(--hero-blend);
}
.hero__scrim{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.34) 46%, rgba(0,0,0,0) 78%);
}
.hero__inner{
  position:relative; z-index:2; height:100%;
  display:flex; align-items:center;
  padding-top:var(--topbar-h);
}
.hero__copy{ width:calc((100% - 11 * var(--gutter)) / 12 * 7 + 6 * var(--gutter)); color:#fff; }
.hero__label{
  display:block; font-size:14px; font-weight:700; letter-spacing:.22em;
  color:var(--hero-label); margin-bottom:22px;
}
.hero__title{
  margin:0 0 22px; font-size:56px; font-weight:800; line-height:1.28; letter-spacing:-.03em;
  text-shadow:0 2px 26px rgba(0,0,0,.32);
}
.hero__sub{
  margin:0 0 38px; font-size:17px; font-weight:400; line-height:1.72; color:rgba(255,255,255,.9);
  max-width:34em;
}

/* 컨트롤 — 좌우 화살표 + 하단 인디케이터 (시안 계승) */
.hero__arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:52px; height:52px; display:grid; place-items:center;
  color:#fff; opacity:.72; transition:opacity .2s var(--ease);
}
.hero__arrow:hover{ opacity:1; }
.hero__arrow svg{ width:30px; height:30px; }
.hero__arrow--prev{ left:34px; }
.hero__arrow--next{ right:34px; }
.hero__dots{
  position:absolute; left:50%; bottom:38px; transform:translateX(-50%); z-index:3;
  display:flex; gap:10px;
}
.hero__dots button{
  width:9px; height:9px; border-radius:999px; background:rgba(255,255,255,.44);
  transition:width .3s var(--ease), background .3s var(--ease);
}
.hero__dots button.is-active{ width:30px; background:var(--hero-dot); }

/* ==========================================================================
   S2. 외부 채널 배너 — 16:9 3분할
   ========================================================================== */
.channels{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gutter); }
.channel{ position:relative; display:block; overflow:hidden; border-radius:var(--radius); }
.channel .thumb{ border-radius:var(--radius); }
.channel__veil{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.72) 100%), var(--channel-wash);
}
.channel__body{
  position:absolute; left:0; right:0; bottom:0; padding:26px 26px 24px; color:#fff;
}
.channel__name{
  display:flex; align-items:center; gap:8px;
  font-size:22px; font-weight:800; letter-spacing:-.01em; margin:0 0 6px;
}
.channel__desc{ margin:0; font-size:14px; color:rgba(255,255,255,.84); }
.channel__ext{ width:14px; height:14px; opacity:.9; }
.channel:hover .thumb img{ transform:scale(1.05); }

/* ==========================================================================
   S3. PROJECT 사업 카드 — 3열 · 개수 가변(최대 6) · 마지막 행 좌측 정렬
   ========================================================================== */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:44px var(--gutter); justify-content:start; }
.card{ display:block; }
.card__badge{ position:absolute; top:12px; right:12px; z-index:2; }
.card__foot{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-top:18px; }
.card__title{
  margin:0; font-size:17px; font-weight:600; letter-spacing:-.01em; color:var(--ink);
  display:flex; align-items:center; gap:6px; min-width:0;
}
.card__title span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card__year{ flex:none; font-size:13px; font-weight:500; color:var(--accent); }

/* ==========================================================================
   S4. 지난 행사 포스터 marquee — 풀블리드
   ========================================================================== */
.marquee{
  --marquee-duration:250s;
  --marquee-duration-reduced:650s;
  position:relative; overflow:hidden;
  height:var(--marquee-h); background:var(--marquee-bg);
}
.marquee__track{
  display:flex; flex-wrap:nowrap; gap:0;
  height:100%; align-items:center;
  width:max-content;
  animation:marquee var(--marquee-duration, 250s) linear infinite;
}
.marquee__band{
  display:flex; flex:none; flex-wrap:nowrap; flex-shrink:0;
  height:100%; align-items:center;
  gap:20px; padding-inline:10px;
}
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (hover:hover){
  .marquee:hover .marquee__track{ animation-play-state:paused; }
}
.marquee:has(:focus-visible) .marquee__track{ animation-play-state:paused; }
.poster{
  flex:none; flex-shrink:0; height:calc(var(--marquee-h) - 72px); aspect-ratio:3/4;
  border-radius:6px; overflow:hidden; position:relative; background:var(--ph-bg);
}
.marquee .poster img{width:100%;height:100%;object-fit:cover;display:block}
.marquee__fade{ position:absolute; top:0; bottom:0; width:120px; z-index:2; pointer-events:none; }
.marquee__fade--l{ left:0;  background:linear-gradient(90deg, var(--marquee-bg), transparent); }
.marquee__fade--r{ right:0; background:linear-gradient(270deg, var(--marquee-bg), transparent); }
@media (max-width:1024px){
  .marquee{
    --marquee-duration:200s;
    --marquee-duration-reduced:530s;
  }
}
@media (max-width:768px){
  .marquee{
    --marquee-duration:140s;
    --marquee-duration-reduced:370s;
  }
}

/* ==========================================================================
   S5. NEWS — 좌 타이틀 / 우 리스트 2칼럼
   ========================================================================== */
.news{ display:grid; grid-template-columns:calc((100% - 11 * var(--gutter)) / 12 * 4 + 3 * var(--gutter)) 1fr; gap:var(--gutter); }
.news__head .eyebrow{
  display:block; font-size:14px; font-weight:700; letter-spacing:.34em; color:var(--accent); margin-bottom:14px;
}
.news__head .title{ margin:0 0 26px; font-size:40px; font-weight:800; letter-spacing:-.02em; color:var(--ink); }
.news__list{ border-top:2px solid var(--ink); }
.news__list li + li{ border-top:1px solid var(--line); }
.news__row{ display:flex; align-items:center; gap:18px; flex:none; }
.news__item{ display:flex; align-items:center; gap:26px; padding:22px 4px; }
.news__date{ flex:none; width:64px; text-align:center; }
.news__date strong{ display:block; font-size:26px; font-weight:700; letter-spacing:-.02em; color:var(--ink); line-height:1.1; }
.news__date span{ display:block; font-size:12px; color:var(--ink-45); margin-top:4px; }
.news__badge{ flex:none; }
.news__title{
  margin:0; font-size:16px; font-weight:500; color:var(--ink-80);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;
}
.news__item:hover .news__title{ color:var(--accent); }
.news__more{ display:inline-flex; align-items:center; gap:8px; font-size:15px; font-weight:600; color:var(--ink); }
.news__more:hover{ color:var(--accent); }

/* ==========================================================================
   S6. LIBRARY 최신 영상 슬라이드 — 1줄 · 수동
   ========================================================================== */
.lib__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:44px; }
.lib__head .sec-head{ margin:0 auto; text-align:center; flex:1; }
.lib__nav{ display:flex; gap:10px; flex:none; padding-bottom:6px; }
.lib__nav button{
  width:44px; height:44px; border-radius:999px; border:1px solid var(--line);
  display:grid; place-items:center; color:var(--ink); background:var(--bg);
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lib__nav button:hover{ background:var(--accent); border-color:var(--accent); color:var(--btn-fg); }
.lib__nav svg{ width:18px; height:18px; }
.lib__viewport{ overflow:hidden; touch-action:pan-y; }   /* 가로 제스처는 JS 가 가져간다 */
.lib__track{ display:flex; gap:var(--gutter); transition:transform .45s var(--ease); }
.lib__slide{ flex:none; width:calc((100% - 3 * var(--gutter)) / 4); }
.play{
  position:absolute; inset:0; display:grid; place-items:center; z-index:2;
  background:rgba(0,0,0,.14);
}
.play i{
  width:54px; height:54px; border-radius:999px; display:grid; place-items:center;
  background:rgba(255,255,255,.92);
}
.play svg{ width:18px; height:18px; margin-left:3px; color:var(--ink); }
.lib__meta{ margin-top:16px; }
.lib__title{
  margin:10px 0 0; font-size:15px; font-weight:600; line-height:1.5; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.lib__year{ font-size:13px; color:var(--ink-45); margin-top:8px; display:block; }

/* ==========================================================================
   S7. 카피 비주얼 — 풀블리드 · 아크로스틱 K/A/M/I
   ========================================================================== */
.copyvis{ position:relative; height:var(--copy-h); overflow:hidden; background:var(--ink); }
.copyvis__media{ position:absolute; inset:0; }
.copyvis__media img{ width:100%; height:100%; object-fit:cover; }
.copyvis__media::after{
  content:''; position:absolute; inset:0;
  background:var(--copy-wash); mix-blend-mode:var(--copy-blend);
}
.copyvis__scrim{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.24) 52%, rgba(0,0,0,0) 82%);
}
.copyvis__inner{ position:relative; z-index:2; height:100%; display:flex; align-items:center; }
.acrostic{ width:calc((100% - 11 * var(--gutter)) / 12 * 6 + 5 * var(--gutter)); color:#fff; }
.acrostic p{
  margin:0; font-size:38px; font-weight:800; line-height:1.32; letter-spacing:-.01em;
  text-shadow:0 2px 22px rgba(0,0,0,.3);
}
.acrostic em{ font-style:normal; color:var(--accent-on-dark); }
.acrostic .tagline{
  margin-top:24px; font-size:16px; font-weight:400; letter-spacing:-.01em;
  color:rgba(255,255,255,.9); text-shadow:0 1px 14px rgba(0,0,0,.4);
}

/* ==========================================================================
   S8. 배너 2개 + top 버튼
   ========================================================================== */
.banners{ padding-block:64px; }
.banners .container{ display:flex; align-items:center; justify-content:center; gap:24px; position:relative; }
.banner{
  width:300px; height:100px; border:1px solid var(--line); border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center; gap:12px;
  font-size:16px; font-weight:600; color:var(--ink); background:var(--bg);
  transition:border-color .2s var(--ease);
}
.banner:hover{ border-color:var(--accent); }
.banner .mark{ width:34px; height:34px; display:grid; place-items:center; flex:none; }
.banner .mark svg{ width:100%; height:100%; }
.banner--mof{ min-width:0; }
.banner__logo{ display:block; width:210px; max-width:calc(100% - 24px); height:auto; }
.gotop{
  position:absolute; right:0; width:56px; height:56px; border-radius:999px;
  border:1px solid var(--line); display:grid; place-items:center; color:var(--ink); background:var(--bg);
}
.gotop:hover{ border-color:var(--accent); color:var(--accent); }
.gotop svg{ width:20px; height:20px; }

/* ==========================================================================
   S9. 푸터
   ========================================================================== */
.footer{ background:var(--footer-bg); color:rgba(255,255,255,.66); padding-block:52px; }
.footer .container{ display:flex; justify-content:space-between; gap:40px; align-items:flex-start; }
.footer__logo img{ height:32px; width:auto; filter:brightness(0) invert(1); opacity:.9; margin-bottom:20px; }
.footer__info{ font-size:13px; line-height:1.9; }
.footer__info .sep{ margin:0 8px; opacity:.4; }
.footer__copy{ margin-top:10px; font-size:12px; color:rgba(255,255,255,.4); }
.footer__right{ display:flex; flex-direction:column; align-items:flex-end; gap:22px; flex:none; }
.footer__sns{ display:flex; gap:12px; }
.footer__sns a{
  width:34px; height:34px; border-radius:999px; display:grid; place-items:center;
  background:rgba(255,255,255,.1); color:#fff;
}
.footer__sns a:hover{ background:var(--accent); }
.footer__sns svg{ width:16px; height:16px; }
.footer__nts{ display:inline-flex; align-items:center; gap:6px; font-size:13px; }
.footer__nts:hover{ color:#fff; }

/* ==========================================================================
   시안 식별 라벨 — 캡처본에서 어느 안인지 알아보게 (실제 사이트에는 없음)
   ========================================================================== */
.mock-tag{
  position:fixed; right:20px; bottom:20px; z-index:900;
  display:flex; align-items:center; gap:10px;
  height:38px; padding:0 16px; border-radius:999px;
  background:rgba(15,20,32,.82); color:#fff; font-size:12px; font-weight:600; letter-spacing:.02em;
  backdrop-filter:blur(6px);
}
.mock-tag b{ color:var(--accent-on-dark); font-weight:700; }
.mock-tag .dot{ width:8px; height:8px; border-radius:999px; background:var(--accent); }
body.is-shooting .mock-tag,
body.mmenu-open .mock-tag{ display:none; }

/* 캡처본 하단 식별 바 — 협회 제출 JPG 에서 어느 안인지 바로 보이게 */
.shoot-label{
  display:flex; align-items:center; justify-content:center; gap:14px;
  flex-wrap:wrap; text-align:center; min-height:64px; padding:16px 20px; background:var(--surface); color:var(--ink-60);
  font-size:14px; font-weight:600; letter-spacing:.01em;
  border-top:1px solid var(--line);
}
.shoot-label b{ color:var(--accent); font-weight:700; }
.shoot-label .s{ opacity:.35; }

/* ==========================================================================
   브레이크포인트 (designs/001 3절)
   ========================================================================== */
@media (max-width:1440px){
  :root{ --pad:40px; }
  .container{ max-width:none; }
}
@media (max-width:1024px){
  :root{
    --pad:32px; --rhythm:80px; --hero-h:600px; --marquee-h:260px; --copy-h:340px;
  }
  .sec-head{ margin-bottom:40px; }
  .sec-head .title,.news__head .title{ font-size:32px; }
  .hero__title{ font-size:42px; }
  .hero__copy{ width:78%; }
  .cards{ grid-template-columns:repeat(2,1fr); gap:36px var(--gutter); }
  .lib__slide{ width:calc((100% - 2 * var(--gutter)) / 3); }
  .acrostic{ width:74%; }
  .acrostic p{ font-size:30px; }
  .news{ grid-template-columns:1fr; gap:32px; }
  .footer .container{ flex-direction:column; }
  .footer__right{ align-items:flex-start; }
}
@media (max-width:768px){
  :root{
    --pad:20px; --rhythm:56px; --hero-h:480px; --marquee-h:200px; --copy-h:280px;
    --gutter:16px; --header-h:64px;
  }
  .gnb{ display:none; }
  .gnb-b .header .topbar{ display:none; }
  .gnb-b{ --topbar-h:0px; }
  .m-only{ display:flex !important; }
  .sec-head .title,.news__head .title{ font-size:26px; }
  .sec-head .eyebrow,.news__head .eyebrow{ font-size:12px; letter-spacing:.28em; }
  .hero__title{ font-size:29px; }
  .hero__sub{ font-size:15px; margin-bottom:28px; }
  .hero__copy{ width:100%; }
  .hero__arrow{ display:none; }
  .channels{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr; gap:28px; }
  .lib__slide{ width:76%; }
  .lib__head{ flex-direction:column; align-items:stretch; }
  .lib__nav{ display:none; }
  .acrostic{ width:100%; }
  .acrostic p{ font-size:23px; }
  .banner{ width:auto; flex:1; height:76px; font-size:13px; }
  .banners .container{ gap:12px; padding-right:72px; }
  .gotop{ width:48px; height:48px; }
  .news__item{ align-items:flex-start; flex-direction:column; gap:8px; padding:18px 2px; }
  .news__row{ display:flex; align-items:center; gap:12px; }
  .news__date{ width:auto; text-align:left; display:flex; align-items:baseline; gap:6px; }
  .news__date strong{ font-size:15px; }
  .news__title{ white-space:normal; }
}

/* 모바일 GNB 가로 스크롤 탭바 (decisions/001 7절) */
.menu-label--mobile{ display:none; }
.m-tabs{ display:none; }
@media (max-width:768px){
  :is(.m-tabs,.mmenu) .menu-label--desktop{ display:none; }
  :is(.m-tabs,.mmenu) .menu-label--mobile{ display:inline; }
  .m-tabs{
    display:flex; gap:22px; overflow-x:auto; scrollbar-width:none;
    height:46px; align-items:center; padding-inline:var(--pad);
    border-top:1px solid rgba(255,255,255,.22);
  }
  .m-tabs::-webkit-scrollbar{ display:none; }
  .m-tabs a{ flex:none; font-size:14px; font-weight:600; white-space:nowrap; }
  .header{ height:calc(var(--header-h) + 46px); }
  .hero{ height:calc(var(--hero-h) + 46px); }
  .hero__inner{ padding-top:46px; }
}
.burger{ display:none; width:40px; height:40px; place-items:center; }
@media (max-width:768px){ .burger{ display:grid; } }
.burger svg{ width:24px; height:24px; }

/* ==========================================================================
   모바일 전체메뉴 오버레이 (designs/001 S0 — 모바일 S)
   1depth 6개 + 2depth(KAMI 8 · WOF 2)를 접지 않고 한 번에 펼친다.
   배경은 테마별 딥 컬러(--footer-bg) — 헤더의 흰 로고·흰 글씨를 그대로 쓴다.
   ========================================================================== */
.mmenu{
  position:fixed; inset:0; z-index:300;
  display:flex; flex-direction:column;
  background:var(--footer-bg); color:#fff;
  overflow-y:auto; overscroll-behavior:contain;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  /* 닫힐 때만 visibility 를 늦춘다. 열 때 즉시 visible 이어야 닫기 버튼에 포커스가 들어간다 */
  transition:opacity .24s var(--ease), transform .24s var(--ease), visibility 0s .24s;
}
.mmenu.is-open{
  opacity:1; visibility:visible; transform:none;
  transition:opacity .24s var(--ease), transform .24s var(--ease), visibility 0s;
}
@media (min-width:769px){ .mmenu{ display:none; } }

.mmenu__bar{
  flex:none; height:var(--header-h); padding-inline:var(--pad);
  display:flex; align-items:center; justify-content:space-between;
}
.mmenu__close{ width:40px; height:40px; display:grid; place-items:center; color:#fff; }
.mmenu__close svg{ width:24px; height:24px; }

.mmenu__nav{ padding:8px var(--pad) 24px; }
.mmenu__nav > ul > li + li{ border-top:1px solid rgba(255,255,255,.14); }
.mmenu__1{
  display:flex; align-items:center; gap:8px;
  padding:16px 0 10px;
  font-size:21px; font-weight:700; letter-spacing:-.02em; color:#fff;
}
.mmenu__1 .ext{ width:14px; height:14px; opacity:.5; }
.mmenu .caret{ display:none; }          /* 항상 펼쳐두므로 여는 표시가 필요 없다 */
.mmenu__sub{ padding:0 0 10px; }
.mmenu__sub a{
  display:flex; align-items:center; gap:6px; padding:6px 0;
  font-size:15px; font-weight:500; letter-spacing:-.01em; color:rgba(255,255,255,.62);
}
.mmenu__sub .ext{ width:12px; height:12px; opacity:.45; }
body.mmenu-open{ overflow:hidden; }

/* 접근성 — 움직임 최소화 (designs/001 S1·S4) */
@media (prefers-reduced-motion:reduce){
  .marquee__track{
    animation-duration:var(--marquee-duration-reduced, 650s);
  }
  .hero__slide{ transition:none; }
  .lib__track{ transition:none; }
  *{ scroll-behavior:auto !important; }
}

/* Missing originals use the same portrait band, with an explicit visible label. */
.marquee--empty .ph{padding:12px;color:#fff;text-align:center}
.marquee--empty .ph span{font-size:14px;line-height:1.6;letter-spacing:0;overflow-wrap:anywhere}
.marquee--empty .ph svg{opacity:.75}
.card__year{max-width:45%;overflow-wrap:anywhere;text-align:right}
.thumb .image-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:16px;background:var(--surface);color:var(--ink);font-size:14px;text-align:center}
.thumb .image-fallback__icon{font-size:30px}
.thumb.has-image-fallback .play{display:none}

@media(max-width:600px){
  .banners .container{flex-wrap:wrap}
  .banners .banner{flex:0 0 100%;min-width:0}
}
