/* 달의 이성 · 고려대 AMP 특별강연 — 시네마틱 슬라이드 인트로 */

* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body { font-family: var(--font-sans); color: #faf8f3; background: #06050a; -webkit-font-smoothing: antialiased; }

.stage {
  position: relative;
  width: 100vw; height: 100vh;
  overflow: hidden;
  transition: background 1.5s var(--ease-in-out);
}

.bg-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(232, 201, 122, 0.05) 1px, transparent 1.5px);
  background-size: 38px 38px;
  pointer-events: none; z-index: 1; mix-blend-mode: screen;
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(2, 1, 6, 0.7) 100%);
  pointer-events: none; z-index: 2;
}

/* ─── Persistent moon backdrop ─────────────────────── */
.moon-backdrop {
  position: absolute; inset: 0;
  z-index: 3;
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.moon-mount { width: 100%; height: 100%; }

/* corner deco */
.corner {
  position: absolute;
  width: 38px; height: 38px;
  border: 1px solid rgba(232, 201, 122, 0.35);
  pointer-events: none;
  z-index: 8;
}
.corner.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.corner.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.corner.br { bottom: 18px; right: 18px; border-left: none; border-top: none; }

/* ─── Topbar ───────────────────────────────────────── */
.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10; height: 60px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 56px;
  background: linear-gradient(180deg, rgba(6, 5, 10, 0.55) 0%, transparent 100%);
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo-glyph {
  font-size: 26px;
  color: var(--rm-gold-300);
  filter: drop-shadow(0 0 14px rgba(232, 201, 122, 0.6));
  animation: moonglow 5s ease-in-out infinite;
}
@keyframes moonglow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(232, 201, 122, 0.4)); }
  50%      { filter: drop-shadow(0 0 18px rgba(232, 201, 122, 0.85)); }
}
.brand-name { font-size: 13.5px; font-weight: 700; color: #faf8f3; letter-spacing: -0.005em; }
.brand-sub { font-size: 9.5px; color: var(--rm-gold-400); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }

.topbar-right { display: flex; gap: 14px; align-items: center; }
.slide-counter {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.sc-num { font-size: 18px; font-weight: 700; color: var(--rm-gold-300); }
.sc-sep { font-size: 14px; color: rgba(232, 201, 122, 0.4); margin: 0 1px; }
.sc-tot { font-size: 12px; color: rgba(232, 201, 122, 0.55); }
.sc-name { margin-left: 12px; font-size: 10.5px; letter-spacing: 0.25em; color: rgba(250, 248, 243, 0.55); font-weight: 600; }

.tw-btn {
  padding: 6px 16px; border-radius: 999px;
  background: rgba(232, 201, 122, 0.12);
  border: 1px solid rgba(232, 201, 122, 0.4);
  color: var(--rm-gold-300);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  cursor: pointer; transition: all .25s;
}
.tw-btn:hover { background: rgba(232, 201, 122, 0.22); }

.eyebrow.gold { color: var(--rm-gold-400); font-size: 10.5px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 14px; display: block; }

/* ─── Slide stage ──────────────────────────────────── */
.slide-stage {
  position: absolute;
  top: 60px; left: 0; right: 0; bottom: 80px;
  z-index: 5;
  pointer-events: none;
}
.slide-frame {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 30px 64px;
  pointer-events: none;
}
.slide-frame.on .slide-content {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.slide-content {
  width: 100%; max-width: 1280px;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s var(--ease-out), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* common slide-head */
.slide-head { margin-bottom: 36px; max-width: 720px; }
.slide-h {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 6px 0 14px;
  color: #faf8f3;
  text-shadow: 0 0 40px rgba(232, 201, 122, 0.15);
}
.slide-sub {
  font-size: 16px;
  color: rgba(250, 248, 243, 0.65);
  margin: 0;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.nowrap { white-space: nowrap; display: inline-block; }
.tl-progress-txt { font-family: var(--font-mono); color: var(--rm-gold-300); font-weight: 600; margin-left: 4px; }

/* ─── Slide 1 — Hero ───────────────────────────────── */
.hero-content {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; height: 100%;
  max-width: 760px;
  padding-left: 30px;
}
.kicker {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 201, 122, 0.45);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rm-gold-300);
  margin-bottom: 28px;
  background: rgba(232, 201, 122, 0.08);
  font-weight: 600;
  animation: fadeUp 0.9s var(--ease-out) 0.2s both;
}
.name-en {
  font-size: 14px; letter-spacing: 0.42em; font-weight: 600;
  color: var(--rm-gold-300);
  margin-bottom: 10px;
  animation: fadeUp 1s var(--ease-out) 0.3s both;
}
.name-divider {
  width: 70px; height: 1px;
  background: linear-gradient(90deg, var(--rm-gold-500), transparent);
  margin-bottom: 14px;
  animation: dividerExpand 1s var(--ease-out) 0.4s both;
}
@keyframes dividerExpand { from { width: 0; } to { width: 70px; } }
.name-ko {
  font-family: var(--font-display);
  font-size: clamp(72px, 9.5vw, 152px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: #f5ecd0;
  display: flex; align-items: baseline; gap: 0.02em;
  margin-bottom: 14px;
}
.name-char {
  display: inline-block;
  animation: charDrop 1s var(--ease-out) both;
  text-shadow: 0 0 30px rgba(232, 201, 122, 0.4);
}
.name-char:nth-child(1) { animation-delay: 0.5s; }
.name-char:nth-child(2) { animation-delay: 0.65s; }
.name-char:nth-child(4) { animation-delay: 0.85s; }
.name-char:nth-child(5) { animation-delay: 1.0s; }
.name-char-spacer { width: 0.32em; display: inline-block; }
@keyframes charDrop {
  from { opacity: 0; transform: translateY(-30px) rotate(-6deg); }
  to   { opacity: 1; transform: none; }
}
.name-person {
  font-size: 17px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 208, 0.75);
  font-weight: 500;
  animation: fadeUp 1s var(--ease-out) 1.2s both;
}
.hero-tag {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(250, 248, 243, 0.78);
  animation: fadeUp 1s var(--ease-out) 1.4s both;
}
.hero-tag span { display: inline; margin-right: 6px; }
.hero-tag .gold { color: var(--rm-gold-300); font-weight: 600; }

.hero-stats {
  margin-top: 38px;
  display: flex; align-items: center; gap: 28px;
  animation: fadeUp 1s var(--ease-out) 1.6s both;
}
.hs { display: flex; flex-direction: column; gap: 4px; }
.hs b { font-family: var(--font-display); font-size: 36px; color: var(--rm-gold-300); line-height: 1; font-weight: 700; }
.hs span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250, 248, 243, 0.55); font-weight: 600; }
.hs-divider { width: 1px; height: 36px; background: linear-gradient(180deg, transparent, rgba(232,201,122,0.4), transparent); }

/* ─── Slide 2 — Titles ─────────────────────────────── */
.titles-content { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.titles-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.title-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232, 201, 122, 0.12);
  border-radius: 12px;
  animation: tileIn 0.7s var(--ease-out) both;
}
@keyframes tileIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: none; }
}
.title-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--rm-gold-400);
  letter-spacing: 0.1em;
  width: 26px; flex-shrink: 0;
  padding-top: 2px;
}
.title-ko { font-size: 15px; font-weight: 600; color: #faf8f3; line-height: 1.35; letter-spacing: -0.005em; }
.title-en { font-size: 11px; color: rgba(232, 201, 122, 0.6); margin-top: 4px; letter-spacing: 0.05em; }

/* ─── Slide 3 — Pillars ────────────────────────────── */
.pillars-content { text-align: center; }
.pillars-content .slide-head { margin: 0 auto 44px; text-align: center; }
.pillar-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px; margin: 0 auto;
}
.pillar-tile {
  padding: 32px 28px;
  border: 1px solid rgba(232, 201, 122, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.01) 100%);
  text-align: left;
  animation: tileIn 0.8s var(--ease-out) both;
  position: relative;
  overflow: hidden;
}
.pillar-tile::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent, var(--rm-gold-400));
  opacity: 0.6;
}
.pillar-glyph {
  width: 50px; height: 50px;
  border: 1.5px solid var(--accent, var(--rm-gold-400));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: rgba(232, 201, 122, 0.06);
}
.pillar-num { font-size: 14px; font-weight: 700; color: var(--rm-gold-300); letter-spacing: 0.05em; font-family: var(--font-mono); }
.pillar-ko { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: #faf8f3; }
.pillar-en { font-size: 10.5px; letter-spacing: 0.22em; color: var(--rm-gold-400); margin-top: 8px; text-transform: uppercase; font-weight: 600; }
.pillar-desc { font-size: 12.5px; color: rgba(250, 248, 243, 0.65); margin-top: 16px; line-height: 1.55; }

/* ─── Slide 4 — Creativities ───────────────────────── */
.creat-content { text-align: center; }
.creat-content .slide-head { margin: 0 auto 40px; text-align: center; }
.creat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.creat-card.big {
  padding: 36px 28px 32px;
  background: linear-gradient(180deg, rgba(232, 201, 122, 0.08) 0%, rgba(232, 201, 122, 0.01) 100%);
  border: 1px solid rgba(232, 201, 122, 0.22);
  border-radius: 16px;
  animation: tileIn 0.8s var(--ease-out) both;
  text-align: left;
}
.creat-glyph {
  font-size: 44px;
  color: var(--rm-gold-300);
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(232, 201, 122, 0.45);
  display: inline-block;
}
.creat-ko { font-size: 22px; font-weight: 700; color: #faf8f3; letter-spacing: -0.015em; }
.creat-en { font-size: 11px; letter-spacing: 0.22em; color: var(--rm-gold-400); margin-top: 6px; text-transform: uppercase; font-weight: 600; }
.creat-desc { font-size: 13px; color: rgba(250, 248, 243, 0.7); margin-top: 16px; line-height: 1.6; }

.quote-strip {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--rm-gold-300);
  letter-spacing: -0.005em;
  text-shadow: 0 0 22px rgba(232, 201, 122, 0.3);
  animation: fadeUp 1s var(--ease-out) 0.9s both;
}

/* ─── Slide 5 — Books ──────────────────────────────── */
.books-content { text-align: center; }
.books-content .slide-head { margin: 0 auto 40px; text-align: center; }
.books-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1100px; margin: 0 auto;
  perspective: 1200px;
}
.book {
  position: relative;
  height: 320px;
  animation: bookIn 1.1s var(--ease-out) both;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}
.book:hover { transform: rotateY(-10deg) translateY(-8px); }
.book-spine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #14110a 0%, #2a2114 50%, #1a140c 100%);
  border: 1px solid rgba(232, 201, 122, 0.35);
  border-left: 5px solid var(--rm-gold-500);
  border-radius: 4px 8px 8px 4px;
  padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow:
    0 0 0 1px rgba(232, 201, 122, 0.1) inset,
    0 16px 40px rgba(0,0,0,0.7),
    0 0 80px rgba(232, 201, 122, 0.1);
  overflow: hidden;
  text-align: left;
}
.book-spine::before {
  content: ''; position: absolute; top: 16px; right: 16px;
  width: 22px; height: 22px;
  border: 1px solid rgba(232, 201, 122, 0.5);
  border-radius: 999px;
}
.book-spine::after {
  content: '☾';
  position: absolute; top: 14px; right: 18px;
  font-size: 16px; color: var(--rm-gold-400);
}
.book-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; color: var(--rm-gold-300); line-height: 1.22;
  letter-spacing: -0.01em;
}
.book-sub { font-size: 12px; color: rgba(250, 248, 243, 0.55); margin-top: 8px; letter-spacing: 0.04em; line-height: 1.45; }
.book-year {
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--rm-gold-500);
  letter-spacing: 0.12em;
  border-top: 1px solid rgba(232, 201, 122, 0.18);
  padding-top: 12px;
  font-weight: 600;
}
@keyframes bookIn {
  from { opacity: 0; transform: translateY(80px) rotateY(-25deg); }
  to   { opacity: 1; transform: none; }
}

/* ─── Slide 6 — Projects ───────────────────────────── */
.proj-content .slide-head { margin: 0 auto 36px; max-width: 760px; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
}
.proj-card {
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(232, 201, 122, 0.08), rgba(232, 201, 122, 0.01));
  border: 1px solid rgba(232, 201, 122, 0.2);
  border-radius: 14px;
  animation: tileIn 0.7s var(--ease-out) both;
  transition: all 0.3s;
}
.proj-card:hover { border-color: rgba(232, 201, 122, 0.55); transform: translateY(-3px); }
.proj-year {
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--rm-gold-400);
  letter-spacing: 0.16em; font-weight: 600;
}
.proj-name { font-size: 18px; font-weight: 700; color: #faf8f3; margin-top: 10px; letter-spacing: -0.01em; }
.proj-desc { font-size: 12.5px; color: rgba(250, 248, 243, 0.65); margin-top: 12px; line-height: 1.55; }

/* ─── Slide 7 — Timeline ───────────────────────────── */
.tl-content .slide-head { text-align: center; margin: 0 auto 34px; }
.tl-track {
  position: relative;
  display: flex; flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 8px 16px;
  margin: 0 -32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 201, 122, 0.3) transparent;
}
.tl-track::-webkit-scrollbar { height: 4px; }
.tl-track::-webkit-scrollbar-thumb { background: rgba(232, 201, 122, 0.3); border-radius: 2px; }
.tl-track::before {
  content: '';
  position: absolute;
  top: 50%; left: 32px; right: 32px;
  height: 1px;
  background: rgba(232, 201, 122, 0.18);
  z-index: 0;
}
.tl-fill {
  position: absolute;
  top: 50%; left: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--rm-gold-500), var(--rm-gold-300));
  box-shadow: 0 0 14px var(--rm-gold-400);
  z-index: 1;
  transform: translateY(-1px);
  transition: width 0.18s linear;
}
.tl-node {
  position: relative;
  min-width: 160px;
  flex-shrink: 0;
  padding: 0 8px;
  animation: fadeUp 0.6s var(--ease-out) both;
  text-align: center;
}
.tl-node:nth-child(odd) .tl-year { margin-bottom: 8px; }
.tl-node:nth-child(odd) .tl-text { margin-top: 8px; }
.tl-node:nth-child(even) { padding-top: 0; }
.tl-node:nth-child(even) .tl-year { order: 3; margin-top: 8px; }
.tl-node:nth-child(even) .tl-text { order: 1; margin-bottom: 8px; }
.tl-node:nth-child(even) .tl-dot { order: 2; }
.tl-node { display: flex; flex-direction: column; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(232, 201, 122, 0.25);
  margin: 0 auto;
  position: relative; z-index: 2;
  transition: all 0.3s var(--ease-out);
}
.tl-node.lit .tl-dot {
  width: 12px; height: 12px;
  background: var(--rm-gold-300);
  box-shadow: 0 0 14px var(--rm-gold-500), 0 0 0 4px rgba(232, 201, 122, 0.12);
}
.tl-node.now .tl-dot {
  width: 14px; height: 14px;
  background: #fff8d8;
  box-shadow: 0 0 22px var(--rm-gold-300), 0 0 0 6px rgba(232, 201, 122, 0.18);
  animation: tlPulse 1.2s ease-in-out infinite;
}
@keyframes tlPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
.tl-year {
  font-family: var(--font-mono); font-size: 14px;
  color: rgba(232, 201, 122, 0.35);
  letter-spacing: 0.1em; font-weight: 700;
  transition: color 0.3s;
}
.tl-text { font-size: 12px; color: rgba(250, 248, 243, 0.35); line-height: 1.45; transition: color 0.3s; }
.tl-node.lit .tl-year { color: var(--rm-gold-300); }
.tl-node.lit .tl-text { color: rgba(250, 248, 243, 0.78); }
.tl-node.now .tl-year { color: #fff8d8; }
.tl-node.now .tl-text { color: #fff; font-weight: 600; }

/* ─── Slide 8 — Manifesto ──────────────────────────── */
.manif-content {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 50px;
  height: 100%;
}
.manifesto { max-width: 900px; }
.manif-line { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.manif-line.l1 { font-size: clamp(28px, 4vw, 56px); color: rgba(250, 248, 243, 0.85); animation: fadeUp 1s var(--ease-out) 0.2s both; }
.manif-line.l2 { font-size: clamp(40px, 5.6vw, 80px); margin: 8px 0; animation: fadeUp 1s var(--ease-out) 0.5s both; }
.manif-line.l3 { font-size: clamp(28px, 4vw, 56px); color: rgba(250, 248, 243, 0.85); animation: fadeUp 1s var(--ease-out) 0.8s both; }
.manif-sub {
  font-size: 12px; letter-spacing: 0.32em; color: var(--rm-gold-400);
  margin-top: 24px; text-transform: uppercase; font-weight: 600;
  animation: fadeUp 1s var(--ease-out) 1.1s both;
}

.gh-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 201, 122, 0.3);
  border-radius: 999px;
  text-align: left;
  animation: fadeUp 1s var(--ease-out) 1.3s both;
}
.gh-mark {
  font-size: 22px; color: var(--rm-gold-300);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232, 201, 122, 0.3);
  border-radius: 999px;
}
.gh-lbl { font-size: 9.5px; letter-spacing: 0.3em; color: var(--rm-gold-500); text-transform: uppercase; font-weight: 700; }
.gh-url { font-family: var(--font-mono); font-size: 14px; color: #faf8f3; margin-top: 3px; }

.closing-thanks {
  display: flex; align-items: center; gap: 18px;
  font-size: 11.5px; letter-spacing: 0.32em; color: var(--rm-gold-400);
  text-transform: uppercase; font-weight: 600;
  animation: fadeUp 1s var(--ease-out) 1.5s both;
}
.ct-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rm-gold-500), transparent);
}

/* ─── Progress rail ─────────────────────────────────── */
.prog-rail {
  position: absolute; top: 60px; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 9;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rm-gold-500), var(--rm-gold-300));
  box-shadow: 0 0 14px var(--rm-gold-400);
  transition: width 0.05s linear;
}

/* ─── Chapter nav (bottom) ─────────────────────────── */
.chapter-nav {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 6px;
  padding: 8px;
  background: rgba(6, 5, 10, 0.7);
  border: 1px solid rgba(232, 201, 122, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}
.ch-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: rgba(250, 248, 243, 0.55);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s;
  overflow: hidden;
  min-width: 64px;
}
.ch-btn:hover { color: #faf8f3; background: rgba(232, 201, 122, 0.06); }
.ch-btn.done { color: rgba(232, 201, 122, 0.6); }
.ch-btn.on { color: var(--rm-gold-300); background: rgba(232, 201, 122, 0.12); }
.ch-num { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; }
.ch-label { font-size: 11px; font-weight: 600; }
.ch-prog {
  position: absolute; bottom: 2px; left: 12px;
  height: 1.5px;
  background: var(--rm-gold-400);
  transition: width 0.05s linear;
  box-shadow: 0 0 6px var(--rm-gold-400);
}

/* ─── Play control (bottom-left) ───────────────────── */
.play-control {
  position: absolute;
  bottom: 22px; left: 56px;
  z-index: 10;
  display: flex; align-items: center; gap: 8px;
}
.pp-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(232, 201, 122, 0.12);
  border: 1px solid rgba(232, 201, 122, 0.4);
  color: var(--rm-gold-300);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.pp-btn:hover { background: rgba(232, 201, 122, 0.22); }
.pp-btn.small { width: 32px; height: 32px; font-size: 10px; padding: 0; }
.kbd-hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(232, 201, 122, 0.45);
  letter-spacing: 0.1em;
  margin-left: 10px;
  display: none;
}
@media (min-width: 1280px) { .kbd-hint { display: block; } }

/* ─── Tweaks panel ─────────────────────────────────── */
.tweaks-panel {
  position: absolute;
  bottom: 70px; right: 56px;
  width: 320px;
  background: rgba(6, 5, 10, 0.94);
  border: 1px solid rgba(232, 201, 122, 0.3);
  border-radius: 16px;
  padding: 20px;
  z-index: 50;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px -16px rgba(0,0,0,0.65);
  animation: fadeUp 0.4s var(--ease-out);
  max-height: 80vh; overflow-y: auto;
}
.tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.tw-close { background: none; border: none; color: rgba(250,248,243,0.5); cursor: pointer; font-size: 14px; padding: 4px 8px; }
.tw-close:hover { color: var(--rm-gold-400); }
.tw-row { margin-top: 16px; }
.tw-row label { display: block; font-size: 11.5px; color: rgba(250,248,243,0.85); margin-bottom: 8px; font-weight: 500; letter-spacing: 0.04em; }
.tw-row label .dim { color: var(--rm-gold-400); margin-left: 6px; font-family: var(--font-mono); font-size: 11px; }
.tw-row input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 3px; background: rgba(255,255,255,0.08); border-radius: 999px; outline: none;
}
.tw-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 999px; background: var(--rm-gold-400);
  border: 2px solid #06050a; cursor: pointer;
  box-shadow: 0 0 10px rgba(232, 201, 122, 0.6);
}
.tw-row input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--rm-gold-400); border: 2px solid #06050a; cursor: pointer;
}
.toggle-row { display: flex; gap: 8px; }
.toggle-chip {
  padding: 8px 18px; border-radius: 999px;
  background: rgba(232, 201, 122, 0.06);
  border: 1px solid rgba(232, 201, 122, 0.2);
  color: rgba(250, 248, 243, 0.6);
  font-size: 11.5px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.toggle-chip.on { background: rgba(232, 201, 122, 0.2); border-color: var(--rm-gold-500); color: var(--rm-gold-300); }
.palette-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pal-sw {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232, 221, 176, 0.1);
  border-radius: 10px; color: #faf8f3;
  cursor: pointer; font-size: 11.5px; transition: all .2s;
}
.pal-sw:hover { border-color: rgba(232, 201, 122, 0.5); }
.pal-sw.on { border-color: var(--rm-gold-500); background: rgba(201, 169, 77, 0.12); }
.pal-sw .sw { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.pal-name { margin-left: 4px; font-weight: 500; }

/* ─── Animations ───────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.gold-shimmer {
  background: linear-gradient(90deg, var(--rm-gold-600) 0%, var(--rm-gold-300) 40%, #f5e4a8 50%, var(--rm-gold-300) 60%, var(--rm-gold-600) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

@media (max-width: 1100px) {
  .titles-content { grid-template-columns: 1fr; gap: 30px; }
  .titles-list { grid-template-columns: 1fr; }
  .pillar-quad, .creat-grid, .books-stack { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
