/* ============================================================
   Leta in studio — 다크 그런지 · 스텐실 타이포
   index.html + songbook.html 공용
   ============================================================ */

:root {
  --bg:        #0c0908;
  --bg-2:      #110d0b;
  --panel:     #1a1310;
  --panel-2:   #221913;
  --btn:       #2a1e16;
  --plate:     #86653f;
  --plate-2:   #5d4529;
  --tan:       #d6c19a;
  --tan-2:     #a5906a;
  --cream:     #ece2cd;
  --ink-2:     #a2968a;
  /* 가장 어두운 패널에서도 일반 텍스트 대비 4.5:1 이상 */
  --muted:     #8c8176;
  --line:      rgba(214, 193, 154, 0.16);
  --line-2:    rgba(214, 193, 154, 0.08);

  --wrap: 1060px;
  --pad: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --stencil: "Black Ops One", "Black Han Sans", sans-serif;
  --kr-heavy: "Black Han Sans", "Noto Sans KR", sans-serif;
  --script: "Kaushan Script", cursive;
  --serif: "EB Garamond", Georgia, serif;
  --body: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── 스크롤바 ───────────────────────────────────────────
   Chromium 은 scrollbar-width 가 지정돼 있으면 ::-webkit-* 를 무시하므로,
   표준 속성은 Firefox 에만 적용하고 나머지는 ::-webkit-* 로 그립니다. */

@supports (-moz-appearance: none) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--tan-2) var(--bg-2);
  }
}

::-webkit-scrollbar { width: 12px; height: 12px; }

::-webkit-scrollbar-track {
  background: var(--bg-2);
  box-shadow: inset 1px 0 0 var(--line-2);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg-2);      /* 트랙과 사이를 띄워 얇게 보이도록 */
  border-radius: 8px;
  background: linear-gradient(180deg, var(--tan-2), #6d5a3d);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--tan), var(--tan-2));
}
::-webkit-scrollbar-thumb:active { background: var(--tan); }

::-webkit-scrollbar-corner { background: var(--bg-2); }

::selection { background: var(--tan-2); color: #120d09; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageIn 0.5s ease both;
}
@keyframes pageIn { from { opacity: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2 { margin: 0; font-weight: 400; }
p, figure, dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--tan); color: #120d0a; padding: 10px 18px; font-size: 14px;
}
.skip:focus { left: 12px; }

.noscript {
  margin: 0; padding: 18px var(--pad);
  background: var(--panel); border-bottom: 1px solid var(--line-2);
  color: var(--cream); font-size: 14px; text-align: center;
}

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

/* ── 질감 ───────────────────────────────────────────── */

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 큰 글자만 살짝 갉아먹어 인쇄물 같은 질감을 만듭니다 */
.grunge {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='4'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.1 1.16'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='4'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.1 1.16'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-size: 240px 240px;
  mask-size: 240px 240px;
}

/* ── 입장 애니메이션 — 필름 글리치 컷 ──────────────────
   스텐실 LETA 가 스캔라인·노이즈와 함께 지직거리다
   플래시 두 번 뒤 한 번에 컷으로 사라집니다. (약 1.2초) */

.intro {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--bg);
  display: grid; place-items: center;
  overflow: hidden;
}

/* 흔들리는 필름 그레인 */
.intro__noise {
  position: absolute; inset: -6%; opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: introNoise 0.11s steps(3, end) infinite;
}
@keyframes introNoise {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1.5%); }
  66%  { transform: translate(1.5%, -2%); }
}

/* CRT 스캔라인 */
.intro__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 3px);
  animation: introScan 0.14s steps(2, end) infinite;
}
@keyframes introScan { 50% { opacity: 0.45; } }

/* 글자 — 본체는 깜빡이고, 앞뒤 레이어가 가로로 찢어집니다 */
.intro__word {
  position: relative;
  font-family: var(--stencil);
  font-size: clamp(42px, 11vw, 132px); line-height: 1;
  letter-spacing: 0.06em; color: var(--cream);
  text-shadow: 0 0 30px rgba(214, 193, 154, 0.3);
  animation: introFlick 1.1s steps(1, end) both;
}
@keyframes introFlick {
  0%, 5%    { opacity: 0; }
  7%        { opacity: 1; }
  9%        { opacity: 0.15; }
  11%       { opacity: 1; }
  25%       { opacity: 1; }
  27%       { opacity: 0.3; }
  29%       { opacity: 1; }
  62%       { opacity: 1; }
  64%       { opacity: 0.1; }
  66%, 100% { opacity: 1; }
}

.intro__word::before,
.intro__word::after {
  content: attr(data-word);
  position: absolute; left: 0; top: 0; width: 100%;
  pointer-events: none;
}
.intro__word::before {
  color: var(--tan);
  animation: introSliceA 0.85s steps(1, end) infinite;
}
.intro__word::after {
  color: #6f8fa6;
  animation: introSliceB 1.05s steps(1, end) infinite;
}
@keyframes introSliceA {
  0%        { clip-path: inset(10% 0 78% 0); transform: translateX(-7px); }
  15%       { clip-path: inset(46% 0 34% 0); transform: translateX(5px); }
  30%       { clip-path: inset(72% 0 10% 0); transform: translateX(-4px); }
  45%       { clip-path: inset(26% 0 62% 0); transform: translateX(8px); }
  60%       { clip-path: inset(86% 0 4% 0);  transform: translateX(-3px); }
  75%       { clip-path: inset(4% 0 88% 0);  transform: translateX(5px); }
  90%, 100% { clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes introSliceB {
  0%        { clip-path: inset(60% 0 26% 0); transform: translateX(6px); }
  18%       { clip-path: inset(16% 0 70% 0); transform: translateX(-8px); }
  36%       { clip-path: inset(38% 0 50% 0); transform: translateX(4px); }
  54%       { clip-path: inset(80% 0 8% 0);  transform: translateX(-6px); }
  72%       { clip-path: inset(2% 0 90% 0);  transform: translateX(7px); }
  88%, 100% { clip-path: inset(50% 0 50% 0); transform: none; }
}

/* 컷 직전의 플래시 두 번 */
.intro__flash {
  position: absolute; inset: 0; background: var(--cream); opacity: 0;
  animation: introFlash 1.18s steps(1, end) forwards;
}
@keyframes introFlash {
  0%, 84%   { opacity: 0; }
  86%       { opacity: 0.8; }
  89%       { opacity: 0; }
  93%       { opacity: 0.45; }
  96%, 100% { opacity: 0; }
}

/* ── 스크롤 진행 바 ─────────────────────────────────── */

.progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 70;
  background: rgba(214, 193, 154, 0.07);
}
.progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--tan-2), var(--tan));
  box-shadow: 0 0 12px rgba(214, 193, 154, 0.5);
}

/* ── 섹션 구분선 ────────────────────────────────────── */

.divider {
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 26px);
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(10px, 2vw, 22px) var(--pad);
}
.divider span {
  flex: 1; height: 12px;
  background: repeating-linear-gradient(90deg,
    rgba(214, 193, 154, 0.28) 0 1px, transparent 1px 12px);
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) 0.1s;
}
.divider span:first-child {
  transform-origin: right;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%);
  mask-image: linear-gradient(90deg, transparent, #000 85%);
}
.divider span:last-child {
  transform-origin: left;
  -webkit-mask-image: linear-gradient(90deg, #000 15%, transparent);
  mask-image: linear-gradient(90deg, #000 15%, transparent);
}
.divider.is-in span, .divider:not(.reveal) span { transform: scaleX(1); }
.divider i {
  flex: none; width: 8px; height: 8px;
  border: 1px solid var(--tan-2); transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(214, 193, 154, 0.25);
}

/* ── 헤더 ───────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(12, 9, 8, 0.6);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-2);
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 12px var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.nav__brand {
  font-family: var(--script); font-size: 26px; line-height: 1;
  color: var(--cream); justify-self: start;
  transition: text-shadow 0.4s var(--ease);
}
.nav__brand:hover { text-shadow: 0 0 22px rgba(214, 193, 154, 0.55); }

.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: 13px; color: var(--ink-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color 0.3s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--tan); transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--tan); }

.nav__cta {
  justify-self: end;
  font-family: var(--stencil); font-size: 19px; letter-spacing: 0.02em;
  color: var(--cream); transition: color 0.3s var(--ease), text-shadow 0.4s var(--ease);
}
.nav__cta:hover { color: var(--tan); text-shadow: 0 0 20px rgba(214, 193, 154, 0.5); }
.nav__cta span { font-family: var(--body); font-weight: 700; }

/* 두 줄이 버튼 한가운데 6px 간격으로 붙어야 X 로 정확히 겹칩니다.
   (grid 로 두면 암묵 행이 늘어나 두 줄이 위아래 끝으로 벌어집니다) */
.nav__toggle {
  display: none; justify-self: end;
  width: 38px; height: 38px; padding: 0;
  background: none; border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 0.3s var(--ease);
}
.nav__toggle:hover { border-color: var(--tan-2); }
.nav__toggle span {
  display: block; width: 17px; height: 1px; background: var(--cream);
  transition: transform 0.35s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* 메뉴는 sticky 헤더 '안'에 있습니다. 그래야 스크롤할 때
   메뉴 바와 함께 따라 내려옵니다. */
.mobile {
  max-width: var(--wrap); margin-inline: auto;
  border-top: 1px solid var(--line-2);
  padding: 4px var(--pad) 22px; display: grid; gap: 2px; font-size: 15px;
  max-height: calc(100svh - 62px); overflow-y: auto;
}
.mobile[hidden] { display: none; }
.mobile a { padding: 12px 2px; border-bottom: 1px solid var(--line-2); }
.mobile__cta {
  margin-top: 12px; text-align: center;
  background: var(--btn); border: 1px solid var(--line) !important;
  font-family: var(--kr-heavy); color: var(--tan); letter-spacing: 0.02em;
}

/* ── HERO ───────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; }

/* aspect-ratio + max-height 를 함께 쓰면 브라우저가 비율을 지키려고 '너비'를
   줄여 버려서, 화면이 옆으로 길어질 때 그림이 왼쪽으로 몰립니다.
   높이를 직접 계산해 주고 너비는 항상 100% 로 둡니다. */
.hero__art {
  position: relative; width: 100%;
  height: clamp(320px, 56.25vw, 78vh);   /* 56.25vw = 16:9 */
  overflow: hidden;
}
.hero__pan { position: absolute; inset: 0; will-change: transform; }
.hero__pan picture { display: block; width: 100%; height: 100%; }
.hero__pan img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
/* 넓은 화면에서는 가로로 긴 그림이라 조금 더 가운데를 봅니다 */
@media (min-width: 1401px) {
  .hero__pan img { object-position: 50% 44%; }
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}
.hero__art.is-missing .hero__pan { display: none; }
.hero__art.is-missing {
  background:
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(6, 4, 3, 0.9) 44px 52px),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(6, 4, 3, 0.9) 78px 86px),
    linear-gradient(150deg, #6b5e51 0%, #3a3029 55%, #14100d 100%);
}
/* 가장자리 암부 — 원본의 창틀처럼 사방을 눌러 줍니다 */
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(12, 9, 8, 0.08) 17%, rgba(12, 9, 8, 0.08) 83%, var(--bg) 100%),
    linear-gradient(180deg, rgba(12, 9, 8, 0.5) 0%, transparent 22%, transparent 50%, rgba(12, 9, 8, 0.93) 100%);
}

/* 뷰파인더 코너 마크 */
.hero__marks { position: absolute; inset: clamp(14px, 2.4vw, 32px); z-index: 3; pointer-events: none; }
.hero__marks span {
  position: absolute; width: clamp(16px, 2.2vw, 28px); height: clamp(16px, 2.2vw, 28px);
  border: 1px solid rgba(236, 226, 205, 0.42); opacity: 0;
}
.hero__marks span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero__marks span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero__marks span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero__marks span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero.is-ready .hero__marks span { animation: markIn 0.7s var(--ease) forwards; }
.hero.is-ready .hero__marks span:nth-child(2) { animation-delay: 0.08s; }
.hero.is-ready .hero__marks span:nth-child(3) { animation-delay: 0.16s; }
.hero.is-ready .hero__marks span:nth-child(4) { animation-delay: 0.24s; }
@keyframes markIn {
  from { opacity: 0; transform: scale(1.7); }
  to   { opacity: 1; transform: none; }
}

.hero__body {
  position: absolute; inset: 0; z-index: 2;
  max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--pad) clamp(22px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: flex-end;
  pointer-events: none;
}

.hero__title {
  display: grid;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(50px, 9.5vw, 132px); line-height: 0.98;
  color: #fff;
  text-shadow: 0 10px 44px rgba(0, 0, 0, 0.6);
  margin-bottom: clamp(14px, 2.4vw, 34px);
}
.hero__line { display: block; }
.hero__line[data-line="2"] { justify-self: start; margin-left: clamp(56px, 26vw, 380px); }

.hero__line { clip-path: inset(0 0 110% 0); transform: translateY(0.22em); opacity: 0; }
.hero.is-ready .hero__line {
  clip-path: inset(-30% -20% -30% -20%); transform: none; opacity: 1;
  transition: clip-path 1.15s var(--ease), transform 1.15s var(--ease), opacity 0.7s ease;
}
.hero.is-ready .hero__line[data-line="2"] { transition-delay: 0.16s; }

.hero__tag {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(13px, 1.6vw, 19px); line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(10px);
}
.hero.is-ready .hero__tag {
  opacity: 1; transform: none;
  transition: opacity 0.9s ease 0.5s, transform 0.9s var(--ease) 0.5s;
}
.hero__sign {
  align-self: flex-end; margin-top: 6px;
  font-size: 11px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5);
  opacity: 0;
}
.hero.is-ready .hero__sign { opacity: 1; transition: opacity 0.9s ease 0.75s; }

.hero__cue {
  position: absolute; left: 50%; bottom: clamp(10px, 1.6vw, 18px); z-index: 4;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 7px;
  font-size: 9.5px; letter-spacing: 0.34em; color: rgba(236, 226, 205, 0.55);
  opacity: 0;
}
.hero.is-ready .hero__cue { opacity: 1; transition: opacity 1s ease 1s; }
.hero__cue i {
  width: 1px; height: 30px; overflow: hidden;
  background: rgba(236, 226, 205, 0.16); position: relative;
}
.hero__cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--tan);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0%        { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ── TICKER ─────────────────────────────────────────── */

.ticker {
  border-block: 1px solid var(--line-2);
  background: linear-gradient(180deg, #16100c, #0e0a08);
  overflow: hidden; padding: 12px 0;
}
.ticker__track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.ticker__track span {
  display: inline-flex; align-items: center;
  padding: 0 clamp(28px, 5vw, 64px);
  font-family: var(--stencil); font-size: 15px; letter-spacing: 0.12em;
  color: var(--tan-2); white-space: nowrap;
  border-right: 1px solid var(--line-2);
}
.ticker__track span.kr { font-family: var(--kr-heavy); letter-spacing: 0.06em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── 섹션 공통 ──────────────────────────────────────── */

.section { position: relative; z-index: 0; padding: clamp(48px, 6.5vw, 86px) 0; }
.section--links { padding-top: clamp(34px, 4.5vw, 60px); }
.section--tail { padding-top: clamp(28px, 4vw, 48px); }
section[id] { scroll-margin-top: 72px; }

.head {
  position: relative;
  display: flex; align-items: baseline; gap: clamp(14px, 2.2vw, 26px);
  margin-bottom: clamp(24px, 3.4vw, 46px);
}
.head__title {
  font-family: var(--stencil); font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1; letter-spacing: 0.01em; color: var(--tan);
}
.head__bar {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) 0.15s;
}
.head.is-in .head__bar { transform: scaleX(1); }
.head__idx {
  font-family: var(--stencil); font-size: 13px;
  letter-spacing: 0.1em; color: var(--muted);
}
/* 헤딩 뒤에 크게 깔리는 아웃라인 워터마크 */
.head::after {
  content: attr(data-echo);
  position: absolute; right: 42px; top: 50%; z-index: -1;
  transform: translateY(-52%);
  font-family: var(--stencil); font-size: clamp(52px, 9.5vw, 116px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(214, 193, 154, 0.075);
  white-space: nowrap; pointer-events: none;
}

.note { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; margin-top: 18px; }
.note--lead { margin: 0 0 22px; color: var(--ink-2); font-size: 14px; }

.panel {
  background: var(--panel); border: 1px solid var(--line-2);
  padding: clamp(16px, 2vw, 24px);
  font-size: 13.5px; line-height: 1.95; color: var(--ink-2);
  text-align: justify;
}
.panel--sm { font-size: 13px; }

/* ── CHZZK 메인 버튼 ────────────────────────────────── */

.cta {
  position: relative; display: flex; align-items: stretch; overflow: hidden;
  min-height: clamp(64px, 8vw, 94px);
  margin-bottom: 12px;
  background: linear-gradient(180deg, #3c2c1e, #2b2016);
  border: 1px solid var(--line-2);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cta:hover { transform: translateY(-2px); border-color: var(--line); }

.cta__edge, .cta__plate {
  position: absolute; left: 0; top: 0; bottom: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 38px) 100%, 0 100%);
}
.cta__edge { width: calc(40% + 3px); background: var(--tan); }
.cta__plate {
  width: 40%;
  background: linear-gradient(180deg, var(--plate), var(--plate-2));
  display: grid; place-items: center;
}
.cta__plate span {
  font-family: var(--stencil);
  font-size: clamp(22px, 3.4vw, 42px); line-height: 1;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  padding-right: 18px;
}
.cta__body {
  position: relative; z-index: 2;
  margin-left: 40%; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 20px 10px 34px;
  font-family: var(--kr-heavy);
  font-size: clamp(17px, 2.6vw, 30px); letter-spacing: 0.01em;
  color: var(--cream);
}
.cta__body i { font-style: normal; transition: transform 0.35s var(--ease); }
.cta:hover .cta__body i { transform: translateX(5px); }

.cta__shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent 34%, rgba(255, 255, 255, 0.18) 50%, transparent 66%);
  transform: translateX(-130%);
}
.cta:hover .cta__shine, .cta.is-in .cta__shine { animation: shine 0.95s ease; }
@keyframes shine { to { transform: translateX(130%); } }

.cta--sm { min-height: clamp(56px, 6vw, 74px); margin-top: 6px; }
.cta--sm .cta__plate span { font-size: clamp(19px, 2.6vw, 30px); }
.cta--sm .cta__body { font-size: clamp(15px, 2vw, 22px); }

/* ── 링크 버튼 ──────────────────────────────────────── */

/* 칸 비율은 content.js 의 w 값에서 --cols 로 들어옵니다 */
.links {
  display: grid; gap: 12px; margin-bottom: 12px;
  grid-template-columns: var(--cols, 1fr);
}

.lk {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: clamp(58px, 7vw, 78px);
  background: var(--btn); border: 1px solid var(--line-2);
  font-family: var(--stencil); font-size: clamp(19px, 2.5vw, 30px);
  color: var(--cream); letter-spacing: 0.02em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.lk::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23b)'/%3E%3C/svg%3E");
}
.lk::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 34%, rgba(255, 255, 255, 0.15) 50%, transparent 66%);
  transform: translateX(-130%);
}
.lk:hover::after { animation: shine 0.85s ease; }
.lk:hover {
  background: var(--panel-2); border-color: var(--line);
  color: #fff; transform: translateY(-2px);
}
.lk em {
  font-family: var(--body); font-style: normal; font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; color: var(--tan-2); align-self: center;
}
.lk--stack { flex-direction: column; gap: 0; line-height: 1.05; }
.lk--stack em { margin-top: 4px; }

/* ── PROFILE ────────────────────────────────────────── */

.profile {
  display: grid; grid-template-columns: minmax(210px, 300px) 1fr;
  gap: clamp(20px, 3.4vw, 44px); align-items: start;
}
.shot {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border: 1px solid var(--line-2); background: #efeae2;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.profile__figure:hover .shot img { transform: scale(1.04); }
.shot.is-missing img { display: none; }
.shot.is-missing {
  background:
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(20, 15, 11, 0.1) 20px 23px),
    linear-gradient(160deg, #e6e0d6, #cfc6b8);
}
.shot.is-missing::after {
  content: "LETA"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--stencil); font-size: 28px; color: rgba(30, 22, 16, 0.28);
}
/* 사진 위 얇은 코너 틱 */
.shot__tick {
  position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px;
  border-right: 1px solid rgba(236, 226, 205, 0.7);
  border-bottom: 1px solid rgba(236, 226, 205, 0.7);
}

.profile__main { display: grid; }
.profile__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

.spec {
  background: var(--panel); border: 1px solid var(--line-2);
  padding: clamp(14px, 1.8vw, 20px); font-size: 13px; line-height: 1.6;
}
.spec > div {
  display: grid; grid-template-columns: 76px 1fr; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--line-2);
  transition: padding-left 0.35s var(--ease);
}
.spec > div:hover { padding-left: 5px; }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); font-size: 12px; }
.spec dd { color: var(--cream); display: flex; align-items: center; gap: 7px; }
.chip {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--tan-2); border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── RULES ──────────────────────────────────────────── */

.rules { display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: clamp(48px, 6vw, 66px) 1fr; gap: 12px; }
.rules__no {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--plate-2), #3d2c1d);
  border: 1px solid var(--line-2);
  font-family: var(--stencil); font-weight: 400;
  font-size: clamp(22px, 3vw, 32px); color: var(--cream);
  transition: background 0.4s var(--ease);
}
.rules li:hover .rules__no { background: linear-gradient(160deg, var(--plate), var(--plate-2)); }
.rules__bar {
  display: flex; align-items: center;
  padding: clamp(14px, 1.8vw, 20px) clamp(40px, 5vw, 60px) clamp(14px, 1.8vw, 20px) clamp(16px, 2.4vw, 28px);
  background: linear-gradient(90deg, #33251a, #1d1611 72%);
  border: 1px solid var(--line-2);
  font-size: clamp(14px, 1.7vw, 17px); color: var(--cream); font-weight: 400;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.95s var(--ease) 0.1s;
}
.reveal.is-in .rules__bar,
.rules li:not(.reveal) .rules__bar {
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}

/* ── SCHEDULE ───────────────────────────────────────── */

.week { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px); border-color: var(--line);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}
/* 요일 — 획이 뭉치지 않도록 Black Han Sans 대신 Noto Sans KR 를 씁니다 */
.card__day {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #b09a72, #937f5d);
  color: #120d09; font-weight: 400; font-size: 13.5px;
  padding: 10px 0 11px; letter-spacing: 0.01em;
}
.card__day i {
  font-family: var(--body); font-style: normal; font-weight: 700;
  font-size: 21px; line-height: 1; letter-spacing: -0.01em;
}
.card__body { padding: clamp(14px, 2vw, 22px) 10px clamp(16px, 2.2vw, 24px); text-align: center; }
.card__body p + p { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.card__time {
  display: block; font-family: var(--stencil);
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; color: var(--cream);
}
.card__body em {
  display: block; font-style: normal; margin-top: 2px;
  font-size: 10px; letter-spacing: 0.22em; color: var(--muted);
}
.card.is-today { border-color: rgba(214, 193, 154, 0.42); }
.card.is-today .card__day {
  background: linear-gradient(180deg, #e3cda3, #b39c74);
  animation: glow 3.4s ease-in-out infinite;
}
.card.is-today .card__time { color: var(--tan); }
@keyframes glow { 50% { filter: brightness(1.16); } }

/* ── SONGBOOK 페이지 ────────────────────────────────── */

.page {
  position: relative; overflow: hidden;
  padding: clamp(50px, 9vw, 110px) 0 clamp(32px, 5vw, 58px);
  border-bottom: 1px solid var(--line-2);
}
.page__bars {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 40px, rgba(214, 193, 154, 0.07) 40px 44px);
  -webkit-mask-image: radial-gradient(70% 120% at 20% 50%, #000, transparent 75%);
  mask-image: radial-gradient(70% 120% at 20% 50%, #000, transparent 75%);
}
.page__inner { position: relative; }
.page__back {
  display: inline-block; font-size: 12px; letter-spacing: 0.12em; color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.35s var(--ease);
}
.page__back:hover { color: var(--tan); transform: translateX(-4px); }
.page__title {
  font-family: var(--stencil); font-size: clamp(38px, 8.4vw, 92px); line-height: 1;
  color: var(--tan); margin: 14px 0 12px;
  animation: titleIn 1s var(--ease) both 0.1s;
}
@keyframes titleIn {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(14px); }
  to   { opacity: 1; clip-path: inset(-20% 0 -20% 0); transform: none; }
}
.page__tag {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(14px, 1.8vw, 20px); color: var(--ink-2);
  animation: fadeUp 0.9s var(--ease) both 0.45s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
}

.sb__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.sb__search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 11px;
  background: var(--panel); border: 1px solid var(--line-2); padding: 11px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.sb__search:focus-within { border-color: var(--line); background: var(--panel-2); }
.sb__search input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--cream); font-family: var(--body); font-size: 14px; font-weight: 300;
}
.sb__search input::placeholder { color: var(--muted); }
.sb__ico {
  flex: none; position: relative; width: 12px; height: 12px;
  border: 1px solid var(--tan-2); border-radius: 50%;
}
.sb__ico::after {
  content: ""; position: absolute; right: -4px; bottom: -3px;
  width: 6px; height: 1px; background: var(--tan-2); transform: rotate(45deg);
}
.sb__count b {
  font-family: var(--stencil); font-size: 22px; color: var(--tan);
  font-variant-numeric: tabular-nums;
}
.sb__count span { font-size: 12px; color: var(--muted); margin-left: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip-btn {
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-2);
  padding: 7px 16px; font-family: var(--body); font-size: 13px; font-weight: 300;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip-btn:hover { color: var(--cream); border-color: var(--line); transform: translateY(-1px); }
.chip-btn.is-on,
.chip-btn[aria-pressed="true"] { background: var(--tan-2); border-color: var(--tan-2); color: #17110c; }

.sb { border-top: 1px solid var(--line-2); }
.sb li {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px;
  padding: 15px 6px; border-bottom: 1px solid var(--line-2);
  animation: rowIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 26ms);
  transition: background 0.3s var(--ease), padding-inline 0.3s var(--ease);
}
.sb li:hover { background: var(--panel); padding-inline: 14px; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.sb__no { font-family: var(--stencil); font-size: 13px; color: var(--muted); }
.sb__title { color: var(--cream); font-size: 15px; line-height: 1.5; }
.sb__artist { display: block; font-size: 12px; color: var(--muted); }
.sb__tag {
  font-size: 11px; letter-spacing: 0.1em; color: var(--tan-2);
  border: 1px solid var(--line-2); padding: 4px 11px; white-space: nowrap;
}
.sb__empty { text-align: center; color: var(--muted); font-size: 14px; padding: 44px 0; }

/* ── 푸터 ───────────────────────────────────────────── */

.foot { padding: clamp(34px, 5vw, 60px) 0 clamp(30px, 4vw, 48px); border-top: 1px solid var(--line-2); }
.foot__inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.foot__word {
  font-family: var(--stencil); font-size: clamp(46px, 10vw, 116px); line-height: 0.82;
  color: transparent; -webkit-text-stroke: 1px rgba(214, 193, 154, 0.22);
}
.foot__side { display: grid; gap: 6px; text-align: right; margin-left: auto; }
.foot__link {
  font-family: var(--kr-heavy); font-size: 14px; color: var(--tan);
  transition: transform 0.35s var(--ease); display: inline-block;
}
.foot__link:hover { transform: translateX(4px); }
.foot p { font-size: 11.5px; letter-spacing: 0.14em; color: var(--muted); }

/* ── 등장 애니메이션 ────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .intro { display: none; }   /* JS 에서도 만들지 않지만 이중으로 막아 둡니다 */
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .hero__pan img, .hero__cue i::after,
  .card.is-today .card__day, .cta__shine, .lk::after { animation: none; }
  .hero__line { clip-path: none; opacity: 1; transform: none; }
  .hero__tag, .hero__sign, .hero__cue { opacity: 1; transform: none; }
  .hero__marks span { opacity: 1; }
  .head__bar, .divider span { transform: none; }
  .rules__bar { clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%); }
  .page__title, .page__tag, .sb li { animation: none; opacity: 1; }
}

/* ── 반응형 ─────────────────────────────────────────── */

@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; }
  .profile__figure { max-width: 300px; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__toggle { display: flex; }

  .hero__art { height: min(125vw, 86vh); }   /* 125vw = 4:5 */
  .hero__pan img { object-position: 50% 32%; }
  .hero__line[data-line="2"] { margin-left: clamp(30px, 16vw, 110px); }
  .hero__cue { display: none; }

  .cta { flex-direction: column; min-height: 0; }
  .cta__edge { display: none; }
  .cta__plate {
    position: static; width: 100%; clip-path: none;
    padding: 12px 0 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  }
  .cta__plate span { padding-right: 0; }
  .cta__body { margin-left: 0; padding: 12px 16px 14px; }

  /* 좁은 화면에서는 --cols 를 무시하고 2칸, 홀수 줄의 마지막은 가로로 채웁니다 */
  .links { grid-template-columns: 1fr 1fr; }
  .links > li:last-child:nth-child(odd) { grid-column: span 2; }

  .profile__grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .rules li { grid-template-columns: 44px 1fr; gap: 8px; }
  .reveal.is-in .rules__bar { clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }

  .sb li { grid-template-columns: 32px 1fr; gap: 4px 12px; }
  .sb__tag { grid-column: 2; justify-self: start; margin-top: 6px; }
  .head::after { display: none; }
}
