/* yongzoon.xyz — skeuomorphic split-screen cabinet, brass + parchment */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #1a1420;
  --wood: #2a2030;
  --parchment: #f0e8d4;
  --drawer: #e8dcc8;
  --brass: #c8a050;
  --brass-light: #e0c878;
  --neon-blue: #00aaff;
  --neon-pink: #ff44aa;
  --text-dark: #2a2020;
  --text-light: #e0d8cc;
}

html, body {
  background: var(--parchment);
  color: var(--text-dark);
  font-family: 'Merriweather', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  height: 100vh;
  overflow: hidden;
}

body {
  display: flex;
  position: relative;
}

/* LEFT PANEL */
.left-panel {
  position: relative;
  width: 40vw;
  height: 100vh;
  background:
    radial-gradient(ellipse at 30% 20%, var(--wood) 0%, var(--dark) 70%),
    repeating-linear-gradient(90deg,
      rgba(200, 160, 80, 0.03) 0 1px,
      transparent 1px 6px),
    var(--dark);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 40px);
  z-index: 2;
  overflow: hidden;
}

.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bubbles span {
  position: absolute;
  bottom: -40px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(0,170,255,0.4) 60%, rgba(0,170,255,0) 80%);
  animation: bubble-rise linear infinite;
}
@keyframes bubble-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.85; }
  100% { transform: translate(var(--dx, 0), -120vh); opacity: 0; }
}

.vertical-title {
  font-family: 'Poiret One', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.2em;
  color: var(--brass-light);
  margin: 0;
  text-shadow: 0 0 12px rgba(200, 160, 80, 0.35);
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 220px;
  position: relative;
  z-index: 2;
}

.nav-btn {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  background: linear-gradient(180deg, #2a2030 0%, #1a1420 100%);
  color: var(--text-light);
  border: 1px solid var(--brass);
  border-radius: 6px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(224, 200, 120, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    0 3px 6px rgba(0, 0, 0, 0.5);
  transition: all 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-btn:hover {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow:
    inset 0 1px 0 rgba(0, 170, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    0 3px 12px rgba(0, 170, 255, 0.4);
}
.nav-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.7),
    inset 0 -1px 0 rgba(224, 200, 120, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

.panel-meta {
  font-family: 'Fira Sans', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass);
  position: relative;
  z-index: 2;
}

/* DIVIDER */
.divider {
  position: absolute;
  left: calc(40vw - 40px);
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.divider path {
  animation: divider-shift 15s ease-in-out infinite;
}
@keyframes divider-shift {
  0%, 100% { d: path("M 0 0 C 60 100 40 300 70 400 C 100 500 30 700 60 800 L 100 800 L 100 0 Z"); }
  50% { d: path("M 0 0 C 70 120 30 280 80 400 C 110 520 20 680 70 800 L 100 800 L 100 0 Z"); }
}

/* RIGHT PANEL */
.right-panel {
  flex: 1;
  background: var(--parchment);
  height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 2;
  padding: 0 0 40px 0;
}

/* Brass header rail */
.brass-rail {
  position: sticky;
  top: 0;
  height: 48px;
  background:
    linear-gradient(180deg,
      var(--brass-light) 0%,
      var(--brass) 50%,
      #8a6818 100%);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.18);
}
.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    0 0 6px currentColor;
}
.led-blue { background: var(--neon-blue); color: var(--neon-blue); animation: led-flicker-b 2s ease-in-out infinite; }
.led-pink { background: var(--neon-pink); color: var(--neon-pink); animation: led-flicker-p 3s ease-in-out infinite; }
@keyframes led-flicker-b {
  0%,100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes led-flicker-p {
  0%,100% { opacity: 1; }
  60% { opacity: 0.5; }
}
.rail-label {
  font-family: 'Fira Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-left: 8px;
}

/* DRAWERS */
.drawer {
  max-width: 580px;
  margin: 32px clamp(24px, 4vw, 60px);
  padding: 28px 32px 32px;
  background: var(--drawer);
  border-radius: 8px;
  border: 1px solid rgba(200, 160, 80, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 12px rgba(74, 56, 24, 0.20),
    0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  scroll-margin-top: 64px;
}
.drawer::before {
  /* brass handle */
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 14px;
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 50%, #8a6818);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.18);
}

.drawer-header { margin-bottom: 18px; }

.drawer-tag {
  display: inline-block;
  font-family: 'Fira Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}

.drawer-h {
  font-family: 'Poiret One', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.drawer p { margin-bottom: 1em; }
.drawer p em { color: var(--neon-pink); font-style: italic; }
.drawer p strong { color: var(--neon-blue); }

.works-list {
  list-style: none;
  margin: 12px 0;
}
.works-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(200, 160, 80, 0.4);
  font-size: 16px;
}
.works-list li strong {
  font-family: 'Poiret One', sans-serif;
  font-weight: 400;
  color: var(--neon-blue);
  letter-spacing: 0.04em;
  margin-right: 12px;
}

.closer {
  text-align: center;
  margin: 60px clamp(24px, 4vw, 60px) 0;
  padding: 24px;
  border-top: 1px dashed rgba(200, 160, 80, 0.4);
}
.closer p {
  font-family: 'Fira Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass);
}

@media (max-width: 720px) {
  html, body { height: auto; overflow: auto; }
  body { flex-direction: column; }
  .left-panel { width: 100%; height: auto; min-height: 60vh; padding: 60px 32px; }
  .vertical-title { writing-mode: horizontal-tb; flex: none; margin: 24px 0; }
  .right-panel { width: 100%; height: auto; }
  .divider { display: none; }
}
