/* =========================================================
   천안가구 전람회 2026 — 공유 스타일 (Premium ver.)
   - 무채색 / 단일 톤 / 가구 피사체 중심
   - 이미지 영역은 .img-ph 플레이스홀더로 비워둠
   - 스크롤 리빌(AOS류) 지원: [data-reveal]
   ========================================================= */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --bg: #e9eaec;
  --bg-soft: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --ink: #121417;
  --ink-2: #44484e;
  --muted: #969ba1;
  --line: #e3e6e9;
  --line-2: #d9dde1;
  --dark: #121316;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 1px 2px rgba(18,20,23,.04);
  --shadow: 0 2px 6px rgba(18,20,23,.04), 0 18px 50px -12px rgba(18,20,23,.12);
  --shadow-lg: 0 30px 80px -24px rgba(18,20,23,.28);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
  word-break: keep-all;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: #121417; color: #fff; }

/* 스크롤바 — 투명 트랙 + 검정 thumb (슬림) */
html { scrollbar-width: thin; scrollbar-color: #121417 transparent; background: transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #121417; border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #000; }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(72px, 12vw, 140px) 0; }
.eyebrow {
  display: block;
  text-align: center;
  margin: 0 auto;
  font-size: 18px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; text-align: center;
}
.muted { color: var(--muted); }

/* ---------------------------------------------------------
   스크롤 리빌 (AOS류)
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.5s var(--ease), transform 1.5s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(.965); }
[data-reveal="fade"]  { transform: none; }   /* 큰 블록용: 이동 없이 페이드만 */
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------------------------------------------------------
   이미지 플레이스홀더
   --------------------------------------------------------- */
.img-ph {
  position: relative;
  background:
    radial-gradient(120% 120% at 70% 20%, #f1f2f4 0%, #e7e9eb 55%, #dde0e3 100%);
  overflow: hidden;
  isolation: isolate;
}
.img-ph::after {
  content: "이미지 영역 · " attr(data-prompt);
  position: absolute;
  left: 16px; bottom: 14px;
  max-width: calc(100% - 32px);
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: #a7adb3;
  background: rgba(255,255,255,.6);
  border: 1px dashed #ccd1d6;
  border-radius: 8px;
  padding: 5px 9px;
  backdrop-filter: blur(3px);
  z-index: 2;
  pointer-events: none;
}
/* 실제 이미지가 들어오면 플레이스홀더 위에 덮임. 파일 없으면 onerror로 숨겨져 그라데이션 폴백 */
.img-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.img-ph.dark { background: radial-gradient(120% 120% at 70% 20%, #26292e 0%, #1c1f23 60%, #141619 100%); }
.img-ph.dark::after { color: #6b7177; background: rgba(0,0,0,.3); border-color: #3a3e43; }
body.clean .img-ph::after { display: none; }

/* ---------------------------------------------------------
   헤더 / 네비
   --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233,234,236,0);
  backdrop-filter: blur(0px);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(233,234,236,.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.brand .logo { font-size: 20px; letter-spacing: -.02em; }
.brand .yr { font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .22em; }
/* 이미지 로고 (Allone-Web, 가로형) */
.brand-logo { height: 24px; width: auto; display: block; }
.site-footer .brand-logo { height: 22px; }
.admin-side .brand-logo { height: 22px; filter: brightness(0) invert(1); } /* 다크 배경 → 흰색 반전 */
.nav-menu {
  display: flex; align-items: center; gap: 34px;
  padding: 12px 26px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 60px;
}
.nav-menu.scrolled{
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}
.nav-menu a {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  position: relative; transition: color .2s var(--ease);
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--ink); transition: width .3s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.6); border-radius: 50%;
  color: var(--ink-2); transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s;
}
.icon-btn:hover { border-color: var(--ink); transform: translateY(-1px); background: #fff; }
.nav-toggle { display: none; }

/* ---------------------------------------------------------
   HERO — 풀 뷰포트 / 좌측 텍스트 + 우측 가구
   --------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin-top: -77px;            /* 헤더 뒤로 끌어올려 풀블리드 */
  overflow: hidden;
  background: linear-gradient(125deg, #e4e6e9 0%, #eef0f2 42%, #d8dbdf 100%);
}
.hero::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 800px;
  height: 100%;
  background: linear-gradient(90deg, #000000a6 0%, #d8dbdf00 100%);
  z-index: 1;
}
/* 슬라이드쇼 (켄번스 줌 + 크로스페이드) */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide img { transform: scale(1.05); }
.hero-slide.active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16); } }
.hero .hero-img::after { left: auto; right: clamp(20px, 4vw, 48px); bottom: 22px; }

/* eyebrow 가독성: 좌측 배경은 이미지 컬러 그대로 두고 글자 색만 진하게 */
.hero .eyebrow { color:#fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide.active img { animation: none; } }
.hero-inner {
  position: relative; z-index: 2;
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  padding: clamp(112px, 16vh, 172px) 0 clamp(52px, 9vh, 92px);
  display: flex; flex-direction: column;
  justify-content: center;
  min-height: 100svh;
}
.hero-top { flex: 0 0 auto; }
.hero-top .subtt{
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.expo-date{
  font-size: 40px;
  color: #fff;
  font-weight: 600;
  margin-top: 40px;
}
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-mid { margin-top: auto; }
.hero h2 {
  font-size: clamp(56px, 10.5vw, 100px); font-weight: 800; color: #fff;  line-height: 1;
  display: block;
  width: fit-content;
  background-color: #231300;
  padding: 12px 16px;
}
.hero h2:nth-of-type(1){
  border-radius: 10px 10px 0 0;
}
.hero h2:nth-of-type(2){
  border-radius: 0 10px 10px;
  position: relative;
}
.hero h2:nth-of-type(2)::after{
  content: '';
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 10px;
  height: 52px;
  border-radius: 20px;
  background: #231300;
}
.hero h2:nth-of-type(2)::before{
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 10px;
  height: 52px;
  border-radius: 20px;
  background: #231300;
}
.hero-top p {
  display: block; font-size: clamp(13px, 1.4vw, 32px); font-weight: 600;
  letter-spacing: .04em; color: #fff;
  margin-top: 20px;
  margin-bottom: 8px;
}
.hero .kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; font-weight: 700; }
.hero .tagline { margin-top: 10px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.hero .tagline .sub { display: block; font-size: 14px; font-weight: 500; color: #fff; margin-top: 8px; letter-spacing: -.01em; }

/* 통계 카드 */
.stat-cards { display: flex; gap: 14px; margin-top: clamp(24px, 3vw, 38px); flex-wrap: wrap; }
.stat-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow-sm), 0 16px 40px -20px rgba(18,20,23,.25);
  border-radius: 14px; padding: 18px 26px; min-width: 158px;
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .big { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-card .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ===== 개요 섹션 (#overview) — 미니멀 통계 밴드 ===== */
#overview { padding: clamp(72px, 11vw, 70px) 0; background: #fff;}
#overview .tagline {
  width: min(100% - 48px, var(--maxw));
  margin: 0 auto;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.25;
  color: var(--ink);
}
#overview .tagline .sub {
  display: block;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  color: var(--muted);
  margin-top: 14px;
}
#overview .hero-mid {
  width: min(100% - 48px, var(--maxw));
  margin: clamp(44px, 6vw, 72px) auto 0;
}
#overview .stat-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
#overview .stat-card {
  background: none; border: none; box-shadow: none; backdrop-filter: none;
  border-radius: 0; min-width: 0;
  text-align: center;
  padding: clamp(36px, 5vw, 60px) 16px;
}
#overview .stat-card:hover { transform: none; box-shadow: none; }
#overview .stat-card + .stat-card { border-left: 1px solid var(--line-2); }
#overview .stat-card .big { font-size: clamp(40px, 6vw, 64px); line-height: 1.1; }
#overview .stat-card .lbl { font-size: 13px; margin-top: 12px; letter-spacing: .02em; }
@media (max-width: 720px) {
  #overview .stat-cards { grid-template-columns: 1fr; }
  #overview .stat-card + .stat-card { border-left: none; border-top: 1px solid var(--line-2); }
}

/* 스크롤 인디케이터 */
.scroll-hint { position: absolute; right: clamp(24px,5vw,72px); bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.scroll-hint .bar { width: 1px; height: 42px; background: linear-gradient(var(--ink-2), transparent); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--ink); animation: scrolldown 2s var(--ease) infinite; }
@keyframes scrolldown { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------------------------------------------------------
   소개 (가운데 텍스트 블록)
   --------------------------------------------------------- */
.intro { text-align: center; padding: clamp(96px, 15vw, 168px) 0; background: var(--surface); }
.intro .eyebrow { display: block; margin-bottom: 28px; }
.intro h2 {
  font-size: clamp(24px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.035em; margin: 0 auto 32px; line-height: 1.32;
}
.intro p { color: var(--muted); margin: 8px auto; font-size: 18px; line-height: 1.5; }

/* 제목 속 롤링 단어 */
.rotator {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 4em; padding: .12em .6em; border-radius: 999px;
  color: #fff; vertical-align: middle; line-height: 1.15; overflow: hidden;
  background-color: #2a2d31;   /* 이미지 없을 때 폴백 */
}
.rotator-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rotator::before { content: ""; position: absolute; inset: 0; background: rgba(12,14,17,.38); z-index: 1; } /* 다크 필터 */
.rotator-word { position: relative; z-index: 2; display: inline-block; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); will-change: transform, opacity; }

/* 하단: 참가 브랜드 로고 월 + 액션 배지 */
.marquee { background:#fff; color: var(--dark); overflow: hidden; white-space: nowrap; padding: 20px 0 40px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.marquee .eyebrow{
  margin-bottom: 40px;
}
.marquee .track { display: inline-block; padding-left: 100%; animation: marquee 18s linear infinite; }
.marquee .track span { margin: 0 34px; color: #c7ccd1; }
.marquee .track span b { color: #fff; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.no-select { user-select: none !important; -webkit-user-select: none !important; }

.intro-foot { margin-top: clamp(52px, 8vw, 92px); }
.intro-foot-label { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 26px; }
.logo-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-track { display: flex; width: max-content; animation: logoscroll 34s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-group { display: flex; align-items: center; gap: clamp(40px, 5vw, 68px); padding-right: clamp(40px, 5vw, 68px); }
.logo-group .lg {
  font-size: 48px; font-weight: 800; letter-spacing: -.02em;
  color: #b7bdc4; white-space: nowrap; transition: color .3s var(--ease);
}
.logo-marquee:hover .lg { color: #9aa0a6; }
@keyframes logoscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.action-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: clamp(34px, 5vw, 56px); }
.badge-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-2); border-radius: 15px; padding: 12px 22px;
  background: var(--surface); color: var(--ink); text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.badge-btn:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.badge-btn .ic { position: relative; width: 24px; height: 24px; flex: 0 0 auto; color: var(--ink); }
.badge-btn .ic img, .badge-btn .ic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 업로드한 아이콘 이미지가 있으면 SVG 위에 덮임(없으면 onerror로 제거 → SVG 표시) */
.badge-btn .bt { display: flex; flex-direction: column; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.badge-btn .bt small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .rotator-word { transition: none !important; }
}

/* ---------------------------------------------------------
   대형 쇼케이스
   --------------------------------------------------------- */
.showcase {
  background: linear-gradient(180deg, #ffffff 0%, #e6e8eb 100%);
  position: relative;            /* overflow:hidden 제거 — sticky 핀이 동작하도록 */
  padding: clamp(72px, 10vw, 128px) 0 0;
}
/* 스크롤 핀 구간: 높이만큼 스크롤하는 동안 내부가 화면에 고정됨 */
.showcase .sc-scroll { position: relative; height: 280vh; }
.showcase .sc-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;             /* 워터마크가 넓게 벌어져도 화면 밖은 클립 */
}
.showcase .sc-head { position: relative; z-index: 3;}
.showcase .sc-head h3 { font-size: clamp(18px, 2vw, 48px); font-weight: 800; letter-spacing: .02em; margin: 0; text-align: center;}
.showcase .sc-head p { color: var(--muted); font-size: 16px; margin: 5px 0 50px; text-align: center;}
.showcase .sc-index { font-size: 12px; color: var(--muted); letter-spacing: .1em; font-weight: 700; }
.showcase .watermark {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(24px, 4vw, 14px);
}
.showcase .watermark.front { z-index: 3; }   /* 양쪽 도착 후 이미지(z2)보다 위 */
.showcase .wm-line {
  display: block; white-space: nowrap;
  font-size: clamp(50px, 13vw, 140px); font-weight: 800; 
  line-height: .9; color: #cdd2d8;
  will-change: transform;
}
.showcase .wm-top { transform: translateX(calc(var(--split, 0px) * -1)); }   /* 좌측으로 */
.showcase .wm-bot { transform: translateX(var(--split, 0px)); }              /* 우측으로 */
/* 앞으로 모일 때: 글자 안에서 컬러 그라데이션이 흐름 */
.showcase .watermark.front .wm-line {
  background: linear-gradient(90deg, #14161a 0%, #a87b50 22%, #5b6770 46%, #7a8b6f 70%, #14161a 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: wmflow 4.5s linear infinite;
}
@keyframes wmflow { from { background-position: 0% 0; } to { background-position: 280% 0; } }
.showcase .sc-img {
  position: relative; z-index: 2;
  width: min(680px, 100%); margin: 20px auto 0;
  height: clamp(360px, 48vw, 540px); border-radius: var(--radius);
}
.sc-img.img-ph{
  overflow: visible;
}
.sc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.sc-slide.active { opacity: 1; }
.sc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase .sc-foot { position: relative; z-index: 3; margin-top: 20px; font-size: 12px; color: var(--muted); letter-spacing: .02em; text-align: center; }

/* 스크롤 스택 카드 — sc-slide와 동일한 크기의 솔리드 카드가 각자 각도로 한 장씩 위에 쌓임 */
.showcase .sc-stack { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.showcase .sc-float {
  position: absolute; inset: 0;            /* sc-slide와 동일 크기 */
  border-radius: var(--radius); overflow: hidden;
  border: 8px solid #fff;                  /* 카드끼리 구분되는 흰 프레임 */
  box-shadow: var(--shadow-lg);
  background: var(--surface);              /* 이미지 로드 전/실패 시에도 솔리드 */
  transform-origin: center center;
  /* 등장 전: 살짝 아래·축소 상태 */
  opacity: 0;
  transform: translateY(34px) scale(.96) rotate(var(--ang, 0deg));
  transition: opacity .55s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
/* 등장: 제자리로 떠오르며 페이드 인 (각도는 카드별 고정) */
.showcase .sc-float.in {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--ang, 0deg));
}
.showcase .sc-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 카드별 고정 각도 (등장 지점은 JS가 .in 토글로 제어) */
.showcase .sc-float-1 { --ang: -6deg; }
.showcase .sc-float-2 { --ang:  5deg; }
.showcase .sc-float-3 { --ang: -9deg; }
@media (prefers-reduced-motion: reduce) {
  /* 애니메이션 없이 카드를 제자리에 모두 표시 */
  .showcase .sc-float { opacity: 1; transform: rotate(var(--ang, 0deg)); transition: none; }
}

/* ---------------------------------------------------------
   벤토 그리드 — grid-template-areas 로 비율 고정
   --------------------------------------------------------- */
.bento {
  display: grid; gap: 16px; margin-top: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "big prog prog num1"
    "big num2 exp  exp";
  grid-auto-rows: clamp(180px, 22vw, 230px);
}
.cell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 2vw, 28px);
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cell:not(.img):hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cell.img { padding: 0; }
.cell.img:hover .img-ph { transform: scale(1.04); }
.cell .img-ph { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.cell .tag { font-size: 14px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cell h4 { margin: 10px 0 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 800; letter-spacing: -.02em; }
.cell .cap { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.cell .num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cell .num-cap { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 500; }
.cell.img .overlay {
  position: absolute; left: 22px; bottom: 18px; z-index: 3; color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.cell .grad { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); pointer-events: none; }
.area-big  { grid-area: big; }
.area-prog { grid-area: prog; }
.area-num1 { grid-area: num1; }
.area-num2 { grid-area: num2; }
.area-exp  { grid-area: exp; }

/* ---------------------------------------------------------
   다크 CTA + 푸터
   --------------------------------------------------------- */
.cta-dark {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: clamp(84px, 11vw, 156px) 0;
}
.cta-dark .cta-bg { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.cta-dark .cta-in { position: relative; z-index: 2; max-width: 620px; }
.cta-dark h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.04em; margin: 18px 0 16px; line-height: 1.04; }
.cta-dark p { color: #b3b8be; font-size: 15.5px; margin: 0 0 32px; line-height: 1.7; }
.cta-dark .eyebrow { color: #8b9097; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #121417; font-weight: 700; 
    font-size: 18px;
    padding: 16px 32px;
  border-radius: 999px; border: 1px solid transparent;
  transition: 0.5s all;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.btn.ghost { background: rgba(35 19 0 / 50%); color: #fff; border-color: rgba(255,255,255,.28); }
.btn.ghost:hover { background:rgb(35 19 0); }

/* ---------------------------------------------------------
   고정 참가신청 버튼 (#fixedBtn)
--------------------------------------------------------- */
#fixedBtn .fixed-apply {
  position: fixed; right: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 36px); z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
#fixedBtn .fixed-apply:hover { transform: translateY(-3px); background: var(--dark); box-shadow: 0 24px 60px -18px rgba(18,20,23,.5); }
#fixedBtn .fixed-apply svg { width: 18px; height: 18px; flex: 0 0 auto; }
@media (max-width: 600px) {
  #fixedBtn .fixed-apply { padding: 14px; font-size: 0; gap: 0; }
  #fixedBtn .fixed-apply svg { width: 20px; height: 20px; }
}

/* ---------------------------------------------------------
   오시는 길 (.visit)
--------------------------------------------------------- */
.visit { padding: clamp(72px, 12vw, 140px) 0; }
.visit-head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 56px); }
.visit-head .eyebrow { display: block; margin-bottom: 14px; }
.visit-head h3 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 14px; color: var(--ink); }
.visit-head p { margin: 0; color: var(--ink-2); font-size: 16px; }
.visit-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.visit-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; display: block; }
.visit-info { display: flex; flex-direction: column; gap: 18px; }
.visit-item { display: flex; gap: 16px; align-items: flex-start; }
.visit-item .vi-ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--ink);
}
.visit-item .vi-ic svg { width: 22px; height: 22px; }
.visit-item h4 { margin: 2px 0 6px; font-size: 16px; color: var(--ink); }
.visit-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.visit-btn { margin-top: 6px; align-self: flex-start; background: var(--ink); color: #fff; font-size: 16px; }
.visit-btn:hover { background: var(--dark); }
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { min-height: 320px; }
  .visit-map iframe { min-height: 320px; }
}

footer.site-footer { padding: 60px 0 72px; color: var(--ink-2); font-size: 13px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.foot-grid .col h5 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot-grid .col a { display: block; color: var(--ink-2); padding: 4px 0; transition: color .2s; }
.foot-grid .col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------
   관리자 공통 레이아웃
   --------------------------------------------------------- */
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-side { background: var(--dark); color: #cfd3d7; padding: 26px 18px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { color: #fff; margin-bottom: 30px; }
.admin-side .brand .yr { color: #7d838a; }
.admin-side nav { display: flex; flex-direction: column; gap: 4px; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; font-size: 14px; font-weight: 600; color: #aab0b6; transition: background .2s, color .2s; }
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side nav a.active { background: #fff; color: #14161a; }
.admin-side .side-foot { margin-top: 30px; font-size: 11px; color: #6b7177; line-height: 1.6; }
.admin-main { padding: 36px 42px 88px; background: var(--bg); }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-head h1 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 5px; }
.admin-head p { margin: 0; color: var(--muted); font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card .card-h { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card .card-h h3 { margin: 0; font-size: 16px; font-weight: 800; }
.card .card-b { padding: 24px; }

.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: #19a36a; margin-top: 4px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em; background: var(--surface-2); }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: var(--bg-soft); }
table.data td .who { font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: #19a36a; background: #e7f7ef; }
.badge.wait { color: #c98a00; background: #fdf3da; }
.badge.no { color: #d04545; background: #fbe9e9; }
.badge.gray { color: #6b7177; background: #eef0f2; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field label .req { color: #d04545; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; padding: 13px 15px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18,20,23,.06); }
/* select 커스텀 화살표 (우측 여백 확보) */
.select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2344484e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-right: 42px;
}
textarea.input { resize: vertical; min-height: 104px; line-height: 1.6; }
.seg { display: flex; gap: 9px; flex-wrap: wrap; }
.seg label { border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 17px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; background: var(--surface); transition: all .2s var(--ease); }
.seg label:hover { border-color: var(--ink); }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.check input { margin-top: 3px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ---------------------------------------------------------
   apply.html — 페이지 전체 단일 배경 이미지 + 흰 인트로
   --------------------------------------------------------- */
.apply-body { background: #16181b; }
.apply-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image: url("../images/apply-bg.png");   /* apply 전용 단일 배경 (CSS 기준 상대경로) */
  background-size: cover; background-position: center;
}
.apply-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,18,21,.46) 0%, rgba(16,18,21,.38) 28%, rgba(16,18,21,.74) 100%);
}
/* 배경 위에서 헤더는 항상 밝게(로고·메뉴 가독성) */
.apply-body .site-header { background: rgba(233,234,236,.82); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }

.apply-intro { padding: clamp(40px, 7vw, 76px) 0 8px; color: #fff; }
.apply-intro .eyebrow { color: rgba(255,255,255,.72); margin: 0;    display: inline;}
.apply-intro h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; margin: 16px 0 14px; line-height: 1.1; color: #fff; }
.apply-intro p { color: rgba(255,255,255,.84); max-width: 460px; line-height: 1.7; margin: 0; }
.apply-intro p b { color: #fff; }
.apply-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.apply-stats b { display: block; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.apply-stats span { font-size: 12px; color: rgba(255,255,255,.62); }

/* ---------------------------------------------------------
   관리자 — 사이드바 아이콘 / 캠페인 카드 / 발송 / 토스트
   --------------------------------------------------------- */
.admin-side nav a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-head .ttl-ic { display: inline-flex; vertical-align: -3px; margin-right: 8px; }

/* 테이블 헤더 가운데 정렬 + 셀 헬퍼 */
table.data th { text-align: center; }
table.data td.c, table.data th.c { text-align: center; }

/* 캠페인(전시) 카드 */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.camp-card {
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; font-family: inherit; color: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.camp-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.camp-card.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.camp-card .cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.camp-card h4 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.camp-card .cc-period { font-size: 12px; color: var(--muted); margin-top: 4px; }
.camp-card .cc-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 16px 0 9px; }
.camp-card .cc-bar span { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .4s var(--ease); }
.camp-card .cc-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.camp-card .cc-meta b { font-weight: 800; }
.camp-card.add { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 700; border-style: dashed; min-height: 132px; }
.camp-card.add:hover { color: var(--ink); border-color: var(--ink); }

/* 상태 변경 셀렉트 (작게) */
.status-select { font-size: 12px; font-weight: 700; padding: 7px 28px 7px 12px; border-radius: 999px; background-position: right 9px center; min-width: 116px; }

/* 알림톡 수동 발송 */
.send-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.recipients { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.recipients .cnt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.recipients .cnt b { color: #19a36a; }
.send-preview { background: linear-gradient(180deg, #bcd0e1, #aac2d6); border-radius: 18px; padding: 16px 14px 22px; }
.send-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.log-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.log-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.log-list li:last-child { border-bottom: 0; }
.log-list li time { color: var(--muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.log-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

/* 토스트 */
.toast-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastin .35s var(--ease); }
.toast svg { width: 18px; height: 18px; flex: 0 0 auto; color: #6ee7a8; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 토글 스위치 + 자동발송 규칙 */
.switch { position: relative; display: inline-block; width: 46px; height: 27px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: absolute; inset: 0; background: #d4d8dd; border-radius: 999px; transition: background .25s var(--ease); cursor: pointer; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(19px); }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule .rule-t { font-weight: 700; font-size: 14px; }
.rule .rule-d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tmpl-pick { width: 100%; margin-top: 12px; }

@media (max-width: 920px) {
  .send-grid { grid-template-columns: 1fr; }
}

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .search { position: relative; }
.toolbar .search .input { padding-left: 38px; min-width: 230px; }
.toolbar .search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; color: var(--ink); transition: all .2s var(--ease); }
.btn-sm:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-sm.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm.primary:hover { box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }

/* ---------------------------------------------------------
   알림톡
   --------------------------------------------------------- */
.talk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.phone { background: linear-gradient(180deg,#bcd0e1,#aac2d6); border-radius: 30px; padding: 18px 14px 26px; box-shadow: var(--shadow); }
.phone .pbar { display: flex; align-items: center; gap: 8px; color: #34424f; font-size: 12px; font-weight: 700; padding: 4px 6px 14px; }
.phone .pbar .dot { width: 27px; height: 27px; border-radius: 50%; background: #f7e600; display: grid; place-items: center; font-weight: 800; color: #3a1d1d; font-size: 11px; }
.alimtalk { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.alimtalk .at-head { background: #fae100; color: #3c1e1e; font-weight: 800; font-size: 13px; padding: 11px 16px; display: flex; align-items: center; gap: 8px; }
.alimtalk .at-body { padding: 16px 16px 6px; font-size: 13.5px; color: #2a2d31; line-height: 1.66; }
.alimtalk .at-body h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.alimtalk .at-body .row { display: flex; gap: 8px; padding: 3px 0; }
.alimtalk .at-body .row b { color: #6b7177; font-weight: 600; min-width: 64px; flex: 0 0 auto; }
.alimtalk .at-body .divider { height: 1px; background: #eef0f2; margin: 12px 0; }
.alimtalk .at-foot { padding: 12px 16px 16px; }
.alimtalk .at-btn { display: block; text-align: center; background: #f3f4f5; border-radius: 11px; padding: 12px; font-weight: 700; font-size: 13px; color: #14161a; margin-top: 8px; transition: background .2s; }
.alimtalk .at-btn:hover { background: #e9eaec; }
.alimtalk .at-time { font-size: 11px; color: var(--muted); padding: 2px 16px 14px; }

/* ---------------------------------------------------------
   입장 QR
   --------------------------------------------------------- */
.qr-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg,#e9eaec,#dfe1e4); }
.qr-main { flex: 1; display: grid; place-items: center; padding: 48px 20px; }
.ticket { width: min(420px, 92vw); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; user-select: none; -webkit-user-select: none; }
.ticket .t-top { background: var(--dark); color: #fff; padding: 24px 26px; }
.ticket .t-top .who { font-size: 11px; color: #9aa0a6; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.ticket .t-top h2 { margin: 8px 0 0; font-size: 23px; font-weight: 800; letter-spacing: -.025em; }
.ticket .t-meta { display: flex; gap: 26px; padding: 20px 26px; border-bottom: 1px dashed var(--line-2); }
.ticket .t-meta div .k { font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.ticket .t-meta div .v { font-size: 14px; font-weight: 700; margin-top: 4px; }
.ticket .qr-zone { padding: 34px 26px 20px; display: grid; place-items: center; position: relative; }
.qr-box { width: 244px; height: 244px; border-radius: 18px; position: relative; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.qr-box .qr-img { width: 210px; height: 210px; }
.qr-box .qr-wm { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: rgba(18,20,23,.06); transform: rotate(-18deg); letter-spacing: .1em; pointer-events: none; }
.ticket .t-id { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0 24px; letter-spacing: .14em; font-weight: 600; }

/* 입장권 — 라이브 요소 */
.t-top-row { display: flex; align-items: center; justify-content: space-between; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #7fe0a8; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.ticket-holo { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; overflow: hidden; }
.ticket-holo::before { content: ""; position: absolute; top: -50%; left: -40%; width: 55%; height: 200%; background: linear-gradient(90deg, transparent, rgba(120,160,255,.10), rgba(255,170,210,.12), transparent); transform: rotate(8deg); animation: holo 6.5s linear infinite; }
@keyframes holo { from { transform: translateX(0) rotate(8deg); } to { transform: translateX(360%) rotate(8deg); } }

.qr-ring { position: relative; width: 268px; height: 268px; display: grid; place-items: center; }
.qr-ring .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.qr-ring .ring circle { fill: none; stroke-width: 5; }
.qr-ring .ring .bg { stroke: #eef0f2; }
.qr-ring .ring .fg { stroke: #15171a; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.qr-ring .qr-box { width: 212px; height: 212px; }
.qr-ring .qr-box .qr-img { width: 184px; height: 184px; }
.qr-box .scan { position: absolute; left: 12px; right: 12px; top: 6%; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, rgba(21,23,26,.7), transparent); animation: qrscan 2.8s ease-in-out infinite; }
@keyframes qrscan { 0%, 100% { top: 6%; } 50% { top: 90%; } }
.qr-timer { font-size: 12px; color: var(--muted); margin-top: 16px; font-weight: 600; text-align: center; }
.qr-timer b { color: var(--ink); font-variant-numeric: tabular-nums; }
.qr-hint { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0 18px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .ticket-holo::before, .qr-box .scan, .live i { animation: none; } }

/* QR 반응형 (모바일 입장권) */
@media (max-width: 480px) {
  .qr-main { padding: 26px 14px; }
  .ticket { width: min(420px, 94vw); border-radius: 22px; }
  .ticket .t-top { padding: 20px 20px; }
  .ticket .t-top h2 { font-size: 20px; }
  .ticket .t-meta { gap: 14px; padding: 16px 20px; }
  .ticket .t-meta div .v { font-size: 13px; }
  .qr-zone { padding: 26px 18px 16px; }
  .qr-ring { width: min(232px, 70vw); height: min(232px, 70vw); }
  .qr-ring .qr-box { width: 74%; height: 74%; }
  .qr-ring .qr-box .qr-img { width: 84%; height: 84%; }
  .marquee { font-size: 12px; padding: 12px 0; }
}
@media (max-width: 360px) {
  .ticket .t-meta { flex-wrap: wrap; }
}


/* ---------------------------------------------------------
   데모 인덱스
   --------------------------------------------------------- */
.demo-hero { padding: 96px 0 48px; text-align: center; }
.demo-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; margin: 16px 0 12px; }
.demo-hero p { color: var(--muted); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* 데모 인덱스 상단 배너 */
.demo-banner {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 28px 0 40px;
  min-height: clamp(300px, 40vw, 460px);
  box-shadow: var(--shadow);
}
.demo-banner .banner-img { position: absolute; inset: 0; }
.demo-banner .banner-img::after { left: auto; right: 16px; bottom: 14px; }
.demo-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(18,20,23,.12) 0%, rgba(18,20,23,.30) 45%, rgba(18,20,23,.66) 100%);
}
.banner-overlay {
  position: relative; z-index: 3;
  min-height: inherit; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 5vw, 56px); color: #fff;
}
.banner-overlay .eyebrow { color: rgba(255,255,255,.7); }
.banner-overlay h1 { color: #fff; font-size: clamp(28px, 5vw, 54px); font-weight: 800; letter-spacing: -.04em; margin: 16px 0 12px; line-height: 1.05; }
.banner-overlay p { color: rgba(255,255,255,.82); max-width: 600px; margin: 0; line-height: 1.7; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 20px; padding-bottom: 96px; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.demo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.demo-card .thumb { height: 160px; }
.demo-card .dc-b { padding: 20px 22px 24px; }
.demo-card .tag { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.demo-card h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.demo-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------
   반응형
   --------------------------------------------------------- */
@media (max-width: 920px) {
  .nav-menu { display: none; }
  .nav-toggle { display: grid; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "big big" "prog prog" "num1 num2" "exp exp"; grid-auto-rows: 200px; }
  .form-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2,1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: none; }
  .expo-date{
    font-size: 24px;
  }
  #overview{
    padding: 40px 0 ;
  }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "big" "prog" "num1" "num2" "exp"; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .stat-card { min-width: 0; flex: 1 1 44%; }
  .hero h1 { font-size: clamp(52px, 17vw, 82px); }
  .intro p{
    font-size: 14px;
    line-height: 1.25;
  }
}
