/* ============================================================
   hey.way renewal mockup — design system
   ============================================================ */

:root {
  --bg: #08080a;
  --bg-2: #0e0e12;
  --bg-3: #15151b;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.06);
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.46);
  --accent: #8b5cf6;
  --accent-2: #c4b5fd;
  --brand: #51318f;
  --live: #2bffa3;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0b0e; }
::-webkit-scrollbar-thumb { background: #2a2a33; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a45; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header ---------- */
/* 헤더 치수는 기존 heyway.co.kr 헤더 실측을 따른다:
   컨테이너 1400px 중앙 / 높이 113px / 로고 206x57 / 메뉴 18px·400·우측 정렬.
   좌우 여백은 (100% - 1400px)/2 로 잡되 화면이 좁아지면 기본 여백으로 떨어뜨린다. */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: flex-start; gap: 40px;
  padding: 28px max(var(--pad), calc((100% - 1400px) / 2));
  transition: background 0.35s, backdrop-filter 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.hdr.solid {
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line-2);
  padding-top: 16px; padding-bottom: 16px;
}
/* 로고는 왼쪽 끝, 메뉴부터는 오른쪽으로 몰아 기존 배치를 맞춘다 */
.hdr .logo img { height: 57px; }
.hdr .gnb { margin-left: auto; }
/* BI — 화이트 워드마크 (어두운 배경 전용) */
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 26px; width: auto; transition: opacity 0.25s; }
.logo:hover img { opacity: 0.72; }
.ftr .logo img { height: 30px; }
.gnb { display: flex; gap: 27px; align-items: center; }
.gnb a {
  font-size: 18px; font-weight: 400; letter-spacing: 0.02em; padding: 15px 0;
  color: var(--ink-2); position: relative;
  transition: color 0.2s;
}
.gnb a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right 0.3s cubic-bezier(.2,.8,.2,1);
}
.gnb a:hover { color: #fff; }
.gnb a:hover::after, .gnb a.on::after { right: 0; }
.gnb a.on { color: #fff; }
.hdr-r { display: flex; align-items: center; gap: 10px; }
/* SNS — 기존 heyway.co.kr 헤더와 동일하게 42px 원형 아이콘 2개 */
.hdr .sns { display: block; line-height: 0; transition: opacity 0.25s; }
.hdr .sns img { width: 42px; height: 42px; }
.hdr .sns:hover { opacity: 0.72; }
.lang { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
.lang b { color: #fff; }
@media (max-width: 860px) { .gnb { display: none; } }
.menu_btn { display: none; }
@media (max-width: 860px) {
  .menu_btn { display: grid; gap: 5px; width: 36px; padding: 9px; border: 1px solid var(--line-2); background: transparent; color: #fff; }
  .menu_btn span { display: block; height: 1px; background: currentColor; }
  .hdr.menu-open .gnb { display: flex; position: absolute; top: 100%; left: 0; right: 0; padding: 18px var(--pad); background: rgba(8,8,10,.96); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .lang { display: none; }
  .hdr .logo img { height: 21px; }
  .hdr .btn { padding: 10px 16px; font-size: 12px; }
  .hdr .sns img { width: 32px; height: 32px; }
}

/* ---------- generic section ---------- */
.sec { padding: clamp(64px, 9vw, 132px) 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
h2.tt {
  margin: 0; font-size: clamp(30px, 4.6vw, 60px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.06;
}
.tt em { font-style: normal; color: var(--accent); }
.lead { color: var(--ink-2); font-size: clamp(14px, 1.2vw, 16px); line-height: 1.75; max-width: 56ch; margin: 16px 0 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
  border: 1px solid var(--line); color: #fff; background: transparent;
  transition: 0.25s; white-space: nowrap;
}
.btn:hover { background: #fff; color: #000; border-color: #fff; }
.btn.solid { background: var(--accent); border-color: var(--accent); }
.btn.solid:hover { background: #fff; border-color: #fff; color: #000; }
.btn svg { width: 15px; height: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: min(84vh, 680px); min-height: 480px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
}
.slide.on { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 7.5s linear;
}
.slide.on img { transform: scale(1.16); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to top, rgba(8,8,10,0.97) 4%, rgba(8,8,10,0.55) 42%, rgba(8,8,10,0.35) 70%, rgba(8,8,10,0.75) 100%),
    linear-gradient(to right, rgba(8,8,10,0.85) 0%, rgba(8,8,10,0.15) 55%, rgba(8,8,10,0.5) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px);
}

.hero-in {
  position: relative; z-index: 5; height: 100%;
  max-width: var(--max); margin: 0 auto; padding: 88px var(--pad) 100px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: flex-end; }

.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px;
  border-radius: 100px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em;
  border: 1px solid var(--line); background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.live { color: var(--live); border-color: rgba(43,255,163,0.4); }
.status.live .dot { background: var(--live); animation: pulse 1.6s infinite; }
.status.soon { color: var(--accent-2); border-color: rgba(196,181,253,0.4); }
.status.soon .dot { background: var(--accent-2); }
.status.done { color: var(--ink-2); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,255,163,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(43,255,163,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,255,163,0); }
}

.hero-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 22px 0 14px; font-size: 13px; color: var(--ink-2); }
.hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.hero-title {
  margin: 0; font-size: clamp(38px, 6.4vw, 92px); font-weight: 900;
  letter-spacing: -0.045em; line-height: 1.06;
  /* 항상 한 줄 — 실제 폰트 크기는 app.js의 fitOneLine()이 칼럼 폭에 맞춰 조정 */
  white-space: nowrap;
}
.hero-sub { color: var(--ink-2); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.7; margin: 20px 0 0; }
.hero-sub > p, .sig-summary > p, #sigLead > p { margin: 0; }
.hero-sub > p + p, .sig-summary > p + p, #sigLead > p + p { margin-top: 0.5em; }
#sigLead { max-width: none; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; padding-bottom: 6px; }
.hero-stats div span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; font-weight: 700; margin-bottom: 7px; }
.hero-stats div b { font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.hero-stats div b i { font-style: normal; font-size: 0.5em; color: var(--ink-3); margin-left: 3px; font-weight: 600; }

.hero-nav {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 44px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; gap: 10px; align-items: center;
}
.hn {
  flex: 1; max-width: 190px; text-align: left; background: none; border: 0; padding: 0;
  color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  transition: color 0.25s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hn .bar { display: block; height: 2px; background: rgba(255,255,255,0.18); margin-bottom: 9px; position: relative; overflow: hidden; }
.hn .bar i { position: absolute; inset: 0 100% 0 0; background: var(--accent); }
.hn.on { color: #fff; }
.hn.on .bar i { animation: fill 7s linear forwards; }
@keyframes fill { to { right: 0; } }
/* hover / focus 중 자동재생 정지 — 진행바도 함께 멈춘다 */
.hero.paused .hn.on .bar i { animation-play-state: paused; }
.hero { cursor: grab; }
.hero.grabbing { cursor: grabbing; }
.hero a, .hero button { cursor: pointer; }
@media (max-width: 760px) {
  .hero { height: auto; }
  .hero-in { height: auto; min-height: max(480px,min(84vh,680px)); }
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .hero-stats { gap: 22px; }
  .hn { font-size: 0; max-width: none; }
  .hn .bar { margin-bottom: 0; }
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: var(--bg-2); overflow: hidden; padding: 15px 0; position: relative;
}
.ticker-track { display: flex; gap: 46px; width: max-content; animation: roll 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.tk .tag { font-size: 10px; font-weight: 900; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 4px; }
.tk .tag.live { background: var(--live); color: #04160e; }
.tk .tag.soon { background: var(--accent-2); color: #1b1035; }
.tk .tag.done { background: rgba(255,255,255,0.14); color: var(--ink-2); }
.tk .where { color: var(--ink-3); font-weight: 500; }
.tk .star { color: var(--accent); }

/* ---------- impact counters ---------- */
.impact { background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.imp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; margin-top: 44px; }
.imp {
  background: var(--bg-2); padding: clamp(26px, 3.4vw, 46px);
  position: relative; overflow: hidden; transition: background 0.3s;
}
.imp:hover { background: var(--bg-3); }
.imp::after {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.6s;
}
.imp:hover::after { width: 100%; }
.imp .n { font-size: clamp(34px, 4.6vw, 62px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.imp .n i { font-style: normal; font-size: 0.42em; margin-left: 4px; color: var(--accent); font-weight: 800; }
.imp .l { margin-top: 14px; font-size: 13px; font-weight: 700; color: #fff; }
.imp .d { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 900px) { .imp-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- now & next ---------- */
.nn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.nn-grid .empty { grid-column: 1 / -1; }
.nn {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-2); transition: 0.35s; display: block;
}
.nn:hover { transform: translateY(-6px); border-color: var(--line); }
.nn .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.nn .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.nn:hover .ph img { transform: scale(1.07); }
.nn .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,0.9), transparent 60%); }
.nn .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.nn .dday {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; text-align: right;
  font-size: 30px; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
}
.nn .dday span { display: block; font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); font-weight: 800; margin-bottom: 4px; }
.nn .bd { padding: 20px 22px 24px; }
.nn h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.nn .row { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.nn .row b { color: var(--ink-2); font-weight: 600; min-width: 34px; }
.nn .prog { margin-top: 16px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.nn .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--live), #7cffcb); }
.nn .prog-l { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 7px; letter-spacing: 0.04em; }

/* ---------- signature ---------- */
.sig {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px;
}
@media (max-width: 980px) { .sig { grid-template-columns: 1fr; } }
.sig-main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px;
  display: flex; align-items: flex-end;
}
.sig-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.sig-main:hover img { transform: scale(1.05); }
.sig-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,0.95) 6%, rgba(8,8,10,0.2) 60%, rgba(8,8,10,0.5)); }
.sig-body { position: relative; z-index: 2; padding: clamp(24px, 3.4vw, 44px); width: 100%; }
.sig-body h3 { margin: 14px 0 0; font-size: clamp(26px, 3.4vw, 46px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
.sig-body .sig-summary { color: var(--ink-2); font-size: 14px; line-height: 1.7; margin: 14px 0 0; }
.sig-kpi { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.sig-kpi div b { display: block; font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; letter-spacing: -0.04em; }
.sig-kpi b i, .plist .kp b i, .ptl .n i { font-style: normal; font-size: 0.55em; margin-left: 2px; }
.sig-kpi div span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }
.sig-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; }
.sig-s {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 158px;
  display: flex; align-items: flex-end; border: 1px solid var(--line-2);
}
.sig-s img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; filter: grayscale(0.35); }
.sig-s:hover img { transform: scale(1.07); filter: grayscale(0); }
.sig-s::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,0.92), transparent 70%); }
.sig-s .b { position: relative; z-index: 2; padding: 18px 20px; }
.sig-s .b span { font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent); font-weight: 800; }
.sig-s .b h4 { margin: 7px 0 0; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.sig-s .b p { margin: 5px 0 0; font-size: 11.5px; color: var(--ink-3); }

/* ---------- timeline (main) ---------- */
.tl-scroll { overflow-x: auto; padding-bottom: 22px; margin-top: 44px; }
.tl-rail { display: flex; gap: 0; min-width: max-content; position: relative; padding-top: 66px; }
.tl-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 62px; height: 1px; background: var(--line); }
.tl-y { position: relative; padding: 0 clamp(18px, 2.6vw, 40px) 0 0; min-width: 210px; }
.tl-y .yr {
  position: absolute; top: -66px; left: 0; font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 900; letter-spacing: -0.05em; color: rgba(255,255,255,0.16); transition: color 0.3s;
}
.tl-y:hover .yr { color: var(--accent); }
.tl-y::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tl-y ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.tl-y li { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; display: flex; gap: 8px; }
.tl-y li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); margin-top: 7px; flex: none; }
.tl-y li b { color: #fff; font-weight: 600; }

/* ---------- CTA ---------- */
.cta { text-align: center; border-top: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.cta h2 { font-size: clamp(30px, 5vw, 66px); font-weight: 900; letter-spacing: -0.045em; margin: 0; line-height: 1.05; }
.cta p { color: var(--ink-2); margin: 20px auto 32px; max-width: 46ch; line-height: 1.75; font-size: 15px; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line-2); padding: 56px 0 64px; font-size: 12.5px; color: var(--ink-3); }
.ftr-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.ftr-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr-nav a { color: var(--ink-2); font-weight: 600; }
.ftr-nav a:hover { color: #fff; }
.ftr p { margin: 4px 0; line-height: 1.8; }

/* ============================================================
   PROJECT PAGE
   ============================================================ */
.p-hero { padding: clamp(104px, 9vw, 132px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line-2); }
.p-hero h1 { margin: 0; font-size: clamp(38px, 6.6vw, 96px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.96; }
.p-hero h1 em { font-style: normal; color: var(--accent); }
.p-hero .lead { margin-top: 22px; max-width: none; word-break: keep-all; }
.p-quick { display: flex; gap: clamp(22px, 4vw, 60px); margin-top: 40px; flex-wrap: wrap; }
.p-quick div b { display: block; font-size: clamp(24px, 3vw, 40px); font-weight: 900; letter-spacing: -0.04em; }
.p-quick div b i { font-style: normal; color: var(--accent); font-size: 0.5em; margin-left: 0.18em; letter-spacing: 0; }
.p-quick div span { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.08em; }

/* filter bar */
.fbar { position: sticky; top: 57px; z-index: 90; background: rgba(8,8,10,0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); padding: 16px 0; }
.frow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.frow + .frow { margin-top: 12px; }
.flabel { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-3); min-width: 52px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.chip {
  padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  transition: 0.2s; white-space: nowrap;
}
.chip:hover { border-color: var(--line); color: #fff; }
.chip.on { background: #fff; border-color: #fff; color: #000; font-weight: 800; }
.chip.on.live { background: var(--live); border-color: var(--live); color: #04160e; }
.search {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-2);
  border-radius: 100px; padding: 8px 16px; min-width: 220px; background: var(--bg-2);
}
.search input { background: none; border: 0; outline: none; color: #fff; font-size: 13px; width: 100%; font-family: inherit; }
.search svg { width: 14px; height: 14px; opacity: 0.5; flex: none; }
.views { display: flex; gap: 4px; border: 1px solid var(--line-2); border-radius: 100px; padding: 4px; }
.vb { border: 0; background: none; color: var(--ink-3); padding: 6px 13px; border-radius: 100px; font-size: 12px; font-weight: 700; transition: 0.2s; }
.vb.on { background: var(--accent); color: #fff; }
.selectw { position: relative; }
select.sel {
  appearance: none; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-2);
  padding: 9px 34px 9px 15px; border-radius: 100px; font-size: 12.5px; font-family: inherit; font-weight: 600; outline: none;
}
.selectw::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); font-size: 11px; }
.fcount { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.fcount b { color: #fff; font-weight: 800; }

/* ---- card grid ---- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; padding: 44px 0 0; }
.card {
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-2); display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
  animation: pop 0.45s cubic-bezier(.2,.8,.2,1) backwards;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px); } }
.card:hover { transform: translateY(-7px); border-color: var(--line); box-shadow: 0 22px 50px -22px rgba(0,0,0,0.9); }
/* hover 시 카드가 소수점 위치를 지나가며(ph 높이 296.75px 등) 확대 중인 사진(GPU 레이어)과
   그라데이션·본문(일반 페인트)의 아래 경계가 프레임마다 다르게 반올림돼 1px 밝은 줄이 튀었다.
   ① ph 를 한 레이어로 묶어 사진·그라데이션이 같이 반올림되게 하고
   ② 본문(.bd)을 1px 겹쳐 올려 남는 틈을 덮는다. (2026-10-12) */
.card .ph { position: relative; aspect-ratio: 4/2.6; overflow: hidden; background: #111; transform: translateZ(0); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.card:hover .ph img { transform: scale(1.08); }

/* ---- 마이크로 갤러리: hover 중 사진 순환 ---- */
.card .ph.multi img.sh { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.card .ph.multi img.sh.on { opacity: 1; }
.shots {
  position: absolute; right: 13px; bottom: 12px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-2);
  padding: 5px 9px; border-radius: 100px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(6px); transition: 0.3s;
}
.shots b { color: #fff; font-weight: 900; }
.card:hover .shots { opacity: 1; transform: none; }
.pips { display: flex; gap: 4px; }
.pips i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: 0.3s; }
.pips i.on { background: var(--accent); transform: scale(1.4); }
.card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,0.85), transparent 55%); }
.card .ph .top { position: absolute; top: 13px; left: 13px; right: 13px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.cat {
  /* .top 이 flex(stretch)라 옆의 .status 높이만큼 늘어난다 — 글자가 위로 붙지 않게 가운데 정렬 */
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; padding: 5px 11px;
  border-radius: 100px; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: #fff;
}
.card .ph .yr { position: absolute; left: 15px; bottom: 12px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent-2); }
.card .bd { position: relative; z-index: 1; margin-top: -1px; background: var(--bg-2); padding: 21px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.25; }
.card .sub { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.dl { display: grid; grid-template-columns: 46px 1fr; gap: 6px 10px; font-size: 12.5px; margin: 0; }
.dl dt { color: var(--ink-3); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink-2); line-height: 1.5; }
.kpis { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.kpis div b { display: block; font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.kpis div b i { font-style: normal; font-size: 0.55em; color: var(--ink-3); margin-left: 2px; }
.kpis div span { font-size: 10.5px; color: var(--ink-3); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.tg { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 5px; }
.tg:hover { color: #fff; border-color: var(--line); }
.card .more { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.card:hover .more { color: var(--accent); }
.card .more svg { width: 15px; height: 15px; transition: transform 0.3s; }
.card:hover .more svg { transform: translateX(5px); }

/* ---- list view ---- */
.plist { padding: 30px 0 0; }
.lrow {
  display: grid; grid-template-columns: 118px 1.4fr 1fr 0.9fr auto; gap: 22px; align-items: center;
  padding: 16px 10px; border-bottom: 1px solid var(--line-2); transition: 0.25s;
  animation: pop 0.4s cubic-bezier(.2,.8,.2,1) backwards;
}
.lrow:hover { background: var(--bg-2); padding-left: 18px; }
.lrow .th { width: 118px; height: 74px; border-radius: 9px; overflow: hidden; background: #111; }
.lrow .th img { width: 100%; height: 100%; object-fit: cover; }
.lrow h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.lrow .m { font-size: 12px; color: var(--ink-3); }
.lrow .m b { color: var(--ink-2); font-weight: 600; }
.lrow .kp { font-size: 12.5px; color: var(--ink-2); }
.lrow .kp b { font-size: 18px; font-weight: 900; letter-spacing: -0.03em; color: #fff; display: block; }
.lhead {
  display: grid; grid-template-columns: 118px 1.4fr 1fr 0.9fr auto; gap: 22px;
  padding: 0 10px 12px; border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-3);
}
@media (max-width: 860px) {
  .lhead { display: none; }
  .lrow { grid-template-columns: 84px 1fr; gap: 14px; }
  .lrow .kp, .lrow .go { display: none; }
  .lrow .th { width: 84px; height: 60px; }
}

/* ---- timeline view ---- */
.ptl { padding: 40px 0 0; position: relative; }
.ptl::before { content: ""; position: absolute; left: 88px; top: 50px; bottom: 20px; width: 1px; background: var(--line); }
.tly { position: relative; padding-left: 130px; margin-bottom: 46px; animation: pop 0.4s backwards; }
.tly > .y {
  position: absolute; left: 0; top: -4px; font-size: 30px; font-weight: 900;
  letter-spacing: -0.04em; color: var(--accent);
}
.tly > .y::after { content: ""; position: absolute; left: 84px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(139,92,246,0.18); }
.tli { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); align-items: center; transition: 0.25s; }
.tli:hover { transform: translateX(6px); }
.tli .d { font-size: 12px; color: var(--ink-3); min-width: 108px; font-weight: 600; }
.tli .th { width: 62px; height: 44px; border-radius: 7px; overflow: hidden; flex: none; }
.tli .th img { width: 100%; height: 100%; object-fit: cover; }
.tli h4 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.tli .p { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.tli .n { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 700px) {
  .ptl::before { left: 8px; }
  .tly { padding-left: 34px; }
  .tly > .y { font-size: 22px; left: 0; top: -34px; }
  .tly > .y::after { left: 4px; top: 44px; }
  .tli .d { min-width: 0; }
  .tli .n { display: none; }
}

.empty { text-align: center; padding: 90px 0; color: var(--ink-3); }
.empty b { display: block; font-size: 20px; color: #fff; margin-bottom: 10px; }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
/* index 히어로와 동일한 높이 규칙 + 수직 중앙 정렬 */
.d-hero { position: relative; height: min(84vh, 680px); min-height: 480px; display: flex; align-items: flex-start; overflow: hidden; }
.d-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 16s ease-out forwards; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,0.98) 5%, rgba(8,8,10,0.35) 55%, rgba(8,8,10,0.65)); }
.d-hero .in { position: relative; z-index: 3; width: 100%; max-width: var(--max); margin: 0 auto; padding: 110px var(--pad) 56px; }
.d-hero h1 { margin: 14px 0 0; font-size: clamp(32px, 5.6vw, 78px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.crumb { font-size: 12px; color: var(--ink-3); display: flex; gap: 9px; align-items: center; margin-bottom: 18px; }
.crumb a:hover { color: #fff; }

.d-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.d-meta div { background: var(--bg); padding: 26px var(--pad); }
.d-meta span { display: block; font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-3); font-weight: 800; margin-bottom: 9px; }
.d-meta b { font-size: 14.5px; font-weight: 700; line-height: 1.5; }

#dSummary p { color: var(--ink-2); line-height: 1.9; font-size: 15px; max-width: 68ch; }
#dKpiWrap { margin-top: clamp(34px, 4vw, 56px); }
/* 성과 지표 — 1단에 3개 항목. 관리자 설정으로 항목이 줄면 칸 수도 함께 줄어든다 */
.d-kpi {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); overflow: hidden;
}
.d-kpi div { background: var(--bg-2); padding: clamp(26px, 3vw, 38px) clamp(24px, 2.6vw, 34px); }
.d-kpi b { display: block; font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; letter-spacing: -0.045em; }
.d-kpi b i { font-style: normal; font-size: 0.45em; color: var(--accent); margin-left: 3px; }
.d-kpi div > span { font-size: 12px; color: var(--ink-3); display: block; margin-top: 8px; }


.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.gal a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gal a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: 4/3; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.gal a:hover img { transform: scale(1.07); }
@media (max-width: 700px) { .gal { grid-template-columns: repeat(2, 1fr); } }


.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }


/* reveal */
[data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1); }
[data-rv].in { opacity: 1; transform: none; }

/* ============================================================
   모션 최소화 선호 (KWCAG / prefers-reduced-motion)
   — 스크롤 리빌·카운트업은 즉시 최종 상태로, 자동 재생은 정지
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  .ticker-track { animation: none !important; transform: none !important; }
  .slide img, .d-hero > img { transform: none !important; }
  .card:hover { transform: none; }
  .card:hover .ph img, .sig-main:hover img, .sig-s:hover img,
  .nn:hover .ph img, .gal a:hover img { transform: none !important; }
  .hero { cursor: default; }
}

/* ============================================================
   관리자 설정 패널 (?admin=1)
   ============================================================ */
.admin {
  position: fixed; right: 18px; bottom: 18px; z-index: 300; width: 260px;
  background: rgba(14,14,18,0.96); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.9);
}
.admin-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.admin-hd b { font-size: 13px; font-weight: 800; }
.admin-hd span { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; }
.admin-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 0;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.admin-row:hover { color: #fff; }
.admin-row input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.admin-row.strong { font-weight: 700; color: #fff; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.admin-sub { padding: 6px 0 10px 22px; }
.admin-reset {
  width: 100%; margin-top: 6px; padding: 9px; border-radius: 8px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font-size: 11.5px; font-weight: 700; transition: 0.2s;
}
.admin-reset:hover { background: #fff; color: #000; border-color: #fff; }
.admin-note { margin: 12px 0 0; font-size: 10.5px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 640px) { .admin { left: 18px; width: auto; } }

/* Overview — 공식 인스타그램 바로가기 */
.btn.ig svg { width: 16px; height: 16px; }
.btn.ig:hover { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); border-color: transparent; color: #fff; }
