/* =========================================================
   Dreamy Noir Cinema — Core Style System
   ========================================================= */

:root {
  /* Base */
  --bg-0: #07070b;
  --bg-1: #09090f;
  --bg-2: #0d0d15;
  --bg-3: #13131c;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text-0: #f6f3ee;
  --text-1: #d8d5cf;
  --text-2: #a09ca6;
  --text-3: #6b6772;
  --text-4: #44414c;

  /* Accents — mist pink / violet / cold blue */
  --mist-pink: #f5c8d4;
  --mist-pink-glow: rgba(245, 200, 212, 0.55);
  --violet: #a78bfa;
  --violet-soft: #c4b5fd;
  --cold-blue: #88a8d8;
  --cold-blue-soft: #b8cce6;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --font-sans: 'Inter', 'Pretendard', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html, body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection {
  background: var(--mist-pink);
  color: var(--bg-0);
}

/* Subtle film grain across entire site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(7, 7, 11, 0.65);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Noto Serif KR', var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-0);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-text { display: inline-flex; flex-direction: column; line-height: 1; }
.nav-logo .logo-ko { font-weight: 500; }

.nav-logo .logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mist-pink);
  box-shadow: 0 0 12px var(--mist-pink-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.nav-logo em {
  font-style: normal;
  color: var(--mist-pink);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-menu a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease-out);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--mist-pink);
  transition: width 0.4s var(--ease-out);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-0);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-1);
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--text-0);
  color: var(--bg-0);
  border-color: var(--text-0);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.45s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--text-0);
  color: var(--bg-0);
  border: 1px solid var(--text-0);
}

.btn-primary:hover {
  background: var(--mist-pink);
  border-color: var(--mist-pink);
  box-shadow: 0 8px 40px var(--mist-pink-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-0);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* =========================================================
   Section helpers
   ========================================================= */
.section {
  padding: 140px 48px;
  position: relative;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--text-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-0);
}

.section-title em {
  font-style: italic;
  color: var(--mist-pink);
  font-weight: 300;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 80px 48px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 60px;
}

.footer-brand {
  font-family: 'Noto Serif KR', var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-0);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-brand em { font-style: normal; color: var(--mist-pink); font-weight: 600; }

.footer-tagline {
  color: var(--text-3);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--text-1);
  font-size: 14px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--mist-pink); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.footer-bottom .credits em { color: var(--mist-pink); font-style: normal; }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav, .nav.scrolled { padding: 20px 24px; }
  .section { padding: 100px 24px; }
  .footer { padding: 60px 24px 30px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .nav-menu { display: none; }
  .nav-menu.mobile-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(7,7,11,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 200;
  }
  .nav-menu.mobile-open a { font-size: 16px; }
  .nav-toggle {
    display: flex !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 250;
}
.nav-toggle span {
  width: 22px; height: 1px;
  background: var(--text-0);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
