/*
  Styles for the NOVUS narrative site.
  Focus on calm surfaces, generous spacing, and readable typography.
*/

:root {
  --bg-night: #0a0e14;
  --bg-tide: rgba(15, 20, 25, 0.75);
  --fg-primary: #f7f9fc;
  --fg-muted: rgba(247, 249, 252, 0.68);
  /* Dreamy color palette - Purple, Teal, Gold */
  --accent-purple: #a78bfa;
  --accent-teal: #5eead4;
  --accent-gold: #fbbf24;
  --accent-amber: #f7c770;
  --accent-rose: #f29cb7;
  --accent-cerulean: #5bb1f8;
  --surface-dawn: linear-gradient(135deg, rgba(253, 188, 113, 0.12), rgba(247, 224, 198, 0.06));
  --surface-ember: linear-gradient(135deg, rgba(236, 141, 104, 0.14), rgba(120, 45, 32, 0.28));
  --surface-noon: linear-gradient(135deg, rgba(90, 137, 255, 0.12), rgba(15, 18, 36, 0.6));
  --surface-twilight: linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(32, 22, 67, 0.55));
  --surface-night: linear-gradient(135deg, rgba(24, 27, 47, 0.64), rgba(9, 12, 23, 0.92));
  --surface-stone: linear-gradient(135deg, rgba(202, 213, 224, 0.12), rgba(128, 138, 150, 0.08));
  --max-width: 1120px;
  --header-height: 68px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', sans-serif;
  line-height: 1.65;
  color: var(--fg-primary);
  background: radial-gradient(circle at top, rgba(36, 46, 58, 0.55), transparent 55%), var(--bg-night);
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Global Light Effects ===== */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(91, 177, 248, 0.08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(242, 156, 183, 0.06), transparent 35%),
    radial-gradient(circle at 40% 70%, rgba(247, 199, 112, 0.07), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(91, 177, 248, 0.05), transparent 38%);
  animation: lightDrift 60s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Aurora Effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(
      135deg,
      transparent 0%,
      rgba(167, 139, 250, 0.08) 20%,
      rgba(94, 234, 212, 0.06) 40%,
      transparent 60%,
      rgba(251, 191, 36, 0.05) 80%,
      transparent 100%
    );
  animation: auroraDrift 45s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  filter: blur(60px);
}

@keyframes lightDrift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-5%, 5%) rotate(5deg);
  }
  50% {
    transform: translate(3%, -3%) rotate(-3deg);
  }
  75% {
    transform: translate(-3%, 3%) rotate(3deg);
  }
}

@keyframes auroraDrift {
  0% {
    transform: translateX(-10%) translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateX(10%) translateY(-5%) scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: translateX(-5%) translateY(5%) scale(0.95);
    opacity: 0.6;
  }
}

main {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

.container {
  width: min(var(--max-width), 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.88), rgba(15, 20, 25, 0.48));
  backdrop-filter: blur(16px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header[data-theme="transparent"] {
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.15), rgba(15, 20, 25, 0.65));
}

.site-header.is-scrolled {
  background: rgba(17, 24, 31, 0.92);
  border-bottom-color: rgba(247, 199, 112, 0.25);
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-primary);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(247, 199, 112, 0.28);
  background: rgba(17, 24, 31, 0.48);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  background: rgba(247, 199, 112, 0.12);
  border-color: rgba(247, 199, 112, 0.45);
}

.site-nav {
  position: absolute;
  inset: calc(var(--header-height) + 8px) 3vw auto 3vw;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(16, 21, 28, 0.92);
  border: 1px solid rgba(247, 199, 112, 0.12);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-amber);
}

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  color: var(--accent-amber);
}

.nav-link--accent {
  color: var(--accent-amber);
}

/* ===== Falling Stars Animation ===== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  will-change: transform;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--star-color, rgba(247, 199, 112, 0.9));
  border-radius: 50%;
  box-shadow: 0 0 6px var(--star-color, rgba(247, 199, 112, 0.8)),
              0 0 12px var(--star-glow, rgba(247, 199, 112, 0.4));
  animation: fall linear infinite;
  opacity: 0;
  filter: blur(0.5px);
}

.star::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  filter: blur(2px);
}

/* Floating Particles - 별보다 작고 은은한 빛 입자들 */
.particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: var(--particle-color, rgba(167, 139, 250, 0.6));
  border-radius: 50%;
  box-shadow: 0 0 3px var(--particle-glow, rgba(167, 139, 250, 0.4));
  animation: floatDrift 20s ease-in-out infinite;
  opacity: 0;
  filter: blur(0.5px);
}

@keyframes floatDrift {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  15% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
    transform: translate(var(--drift-x, 30px), var(--drift-y, -50px)) scale(1);
  }
  85% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x-end, -20px), var(--drift-y-end, -100px)) scale(0.3);
  }
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) translateX(var(--drift, 0)) scale(0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars-container {
    display: none;
  }
  .star {
    animation: none;
  }
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: clamp(88px, 14vh, 140px) 0;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-beam {
  position: absolute;
  inset: auto;
  width: min(460px, 60vw);
  height: 120vh;
  background: radial-gradient(circle at center, rgba(247, 199, 112, 0.38), rgba(247, 199, 112, 0) 68%);
  filter: blur(36px);
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.9;
}

.hero-stardust {
  position: absolute;
  inset: -40vh -20vw;
  background: radial-gradient(circle at 20% 30%, rgba(91, 177, 248, 0.28), transparent 55%),
              radial-gradient(circle at 80% 35%, rgba(242, 156, 183, 0.26), transparent 50%),
              radial-gradient(circle at 50% 60%, rgba(247, 199, 112, 0.18), transparent 65%);
  filter: blur(20px);
  opacity: 0.75;
}

.hero-content {
  display: grid;
  gap: 24px;
  max-width: 680px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-cerulean);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.75rem, 5.5vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-spacing: -0.05em;
}

.hero h1 {
  max-width: 100%;
  hyphens: none;
}

.lead {
  color: var(--fg-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
}

.lead strong {
  color: var(--accent-cerulean);
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Hero Dialogue Styles */
.hero-dialogue {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(247, 199, 112, 0.15);
  border-bottom: 1px solid rgba(247, 199, 112, 0.15);
}

.dialogue-line {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--fg-muted);
}

.dialogue-line .speaker {
  display: inline-block;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-cerulean);
  margin-right: 8px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(91, 177, 248, 0.4);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn--primary {
  background: rgba(247, 199, 112, 0.16);
  border: 1px solid rgba(247, 199, 112, 0.45);
  color: var(--fg-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: rgba(247, 199, 112, 0.28);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(15, 21, 28, 0.2);
  border: 1px solid rgba(247, 199, 112, 0.18);
  color: var(--fg-muted);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(247, 199, 112, 0.35);
  color: var(--fg-primary);
  transform: translateY(-2px);
}

.story {
  position: relative;
  padding: clamp(96px, 18vh, 160px) 0;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.story.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Different animation rhythms per section */
.surface--dawn {
  transition-duration: 1.8s;
}

.surface--ember {
  transition-duration: 1.6s;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.surface--noon {
  transition-duration: 2s;
}

.surface--twilight {
  transition-duration: 1.7s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.surface--night {
  transition-duration: 2.2s;
}

.surface {
  background: rgba(15, 21, 28, 0.42);
}

.surface--dawn { background: var(--surface-dawn); }
.surface--ember { background: var(--surface-ember); }
.surface--noon { background: var(--surface-noon); }
.surface--twilight { background: var(--surface-twilight); }
.surface--night { background: var(--surface-night); }
.surface--stone { background: var(--surface-stone); }

.story-inner {
  display: grid;
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.story-inner--reverse {
  direction: rtl;
}

.story-inner--reverse .story-text {
  direction: ltr;
}

.story-text {
  display: grid;
  gap: 28px;
}

.story-text p {
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.story-text h2 {
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(247, 199, 112, 0.15);
}

.story-tag {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
  color: rgba(247, 249, 252, 0.55);
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.story-note {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: rgba(247, 249, 252, 0.78);
  line-height: 1.85;
  font-style: italic;
  margin-top: 12px;
}

/* Story Blockquote Styles */
.story-quote {
  margin: 32px 0;
  padding: 28px 32px;
  background: rgba(91, 177, 248, 0.06);
  border-left: 3px solid rgba(91, 177, 248, 0.5);
  border-radius: 0 8px 8px 0;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.story-quote:hover {
  background: rgba(91, 177, 248, 0.12);
  border-left-color: rgba(91, 177, 248, 0.8);
  box-shadow: 0 0 40px rgba(91, 177, 248, 0.3),
              inset 0 0 30px rgba(91, 177, 248, 0.1);
  transform: translateX(4px);
}

.story-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(91, 177, 248, 0.2);
  pointer-events: none;
  transition: color 0.6s ease;
}

.story-quote:hover::before {
  color: rgba(91, 177, 248, 0.4);
}

.story-quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--fg-primary);
  margin: 0;
  text-shadow: 0 0 30px rgba(91, 177, 248, 0.3);
  transition: text-shadow 0.6s ease;
}

.story-quote:hover p {
  text-shadow: 0 0 50px rgba(91, 177, 248, 0.6);
}

.story-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.interlude {
  text-align: center;
  padding: clamp(68px, 14vh, 124px) 0;
  background: rgba(15, 21, 28, 0.32);
}

.interlude-word {
  display: inline-flex;
  gap: clamp(16px, 4vw, 36px);
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.24em;
}

.interlude-word span {
  opacity: 0.4;
  transition: opacity 0.6s ease;
}

.interlude-word span.is-visible {
  opacity: 1;
}

.interlude-copy {
  margin: 28px auto 0;
  max-width: 620px;
  color: var(--fg-muted);
}

.manifesto {
  padding: clamp(72px, 14vh, 128px) 0;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.manifesto.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  list-style: none;
  counter-reset: manifesto;
}

.manifesto-list li {
  counter-increment: manifesto;
  padding-left: 36px;
  position: relative;
  color: var(--fg-muted);
}

.manifesto-list li::before {
  content: counter(manifesto, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: 'Playfair Display', serif;
  color: var(--accent-amber);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.section-intro {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(56px, 8vw, 88px);
}

.section-lead {
  max-width: 680px;
  color: var(--fg-muted);
  font-size: clamp(1.05rem, 2.3vw, 1.2rem);
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.works {
  padding: clamp(76px, 14vh, 128px) 0;
}

.work-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.work-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(17, 24, 31, 0.65);
  border: 1px solid rgba(247, 199, 112, 0.12);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s ease, 
              background 0.3s ease,
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(247, 199, 112, 0.45);
  background: rgba(17, 24, 31, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(247, 199, 112, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .work-card {
    transition: border-color 0.3s ease, background 0.3s ease;
  }
  .work-card:hover,
  .work-card:focus-within {
    transform: none;
  }
}

.studio {
  padding: clamp(72px, 14vh, 128px) 0;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(18, 24, 32, 0.62);
  border: 1px solid rgba(247, 199, 112, 0.16);
  min-height: 200px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(247, 199, 112, 0.32);
  background: rgba(18, 24, 32, 0.74);
}

.signals {
  padding: clamp(76px, 14vh, 132px) 0;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.signals.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.signals-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(17, 24, 31, 0.7);
  border: 1px solid rgba(247, 199, 112, 0.16);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.form-card:hover,
.form-card:focus-within {
  border-color: rgba(247, 199, 112, 0.3);
  transform: translateY(-2px);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 249, 252, 0.64);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(247, 199, 112, 0.22);
  background: rgba(15, 20, 25, 0.4);
  color: var(--fg-primary);
  font: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(247, 199, 112, 0.45);
  background: rgba(15, 20, 25, 0.6);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  min-height: 1.2em;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.form-message[data-tone="success"] {
  color: var(--accent-amber);
}

.form-message[data-tone="error"] {
  color: #ff9680;
}

.work-link {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.principles {
  padding: clamp(76px, 14vh, 128px) 0;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.principles.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.principle-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.principle-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 20px;
  background: rgba(18, 24, 32, 0.56);
  border: 1px solid rgba(247, 199, 112, 0.14);
  min-height: 180px;
}

.principle-icon {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--accent-amber);
}

.epilogue {
  padding: clamp(82px, 15vh, 132px) 0;
  text-align: center;
  opacity: 0;
  transform: scale(0.95) translateY(40px);
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.epilogue.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.epilogue .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.epilogue .section-intro {
  max-width: 720px;
  margin: 0 auto;
}

.epilogue-quote {
  margin: 32px 0;
  padding: 0;
  background: none;
  border: none;
  text-align: center;
}

.epilogue-quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--accent-cerulean);
  text-shadow: 0 0 40px rgba(91, 177, 248, 0.5);
  margin: 0;
}

.epilogue .section-lead {
  line-height: 1.9;
  margin-top: 24px;
}

.epilogue-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid rgba(247, 199, 112, 0.12);
  background: rgba(10, 14, 18, 0.88);
  padding: 32px 0 48px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.24em;
  font-size: 1.1rem;
}

.footer-copy {
  color: var(--fg-muted);
}

.footer-contact {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--fg-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-amber);
}

.footer-note {
  margin-top: 32px;
  text-align: center;
  color: rgba(247, 249, 252, 0.5);
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* ===== Interactive Tooltips ===== */
.thought-trigger {
  position: relative;
  display: inline-block;
  color: var(--accent-teal);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(94, 234, 212, 0.4);
  text-underline-offset: 3px;
  cursor: help;
  transition: all 0.3s ease;
}

.thought-trigger:hover {
  color: var(--accent-gold);
  text-decoration-color: rgba(251, 191, 36, 0.6);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.thought-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 12px 16px;
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fg-muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.thought-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(167, 139, 250, 0.4);
}

.thought-trigger:hover .thought-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.thought-tooltip .speaker {
  display: block;
  font-weight: 600;
  color: var(--accent-purple);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ===== Cursor Trail ===== */
.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.7;
  transform: scale(1);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  filter: blur(2px);
  box-shadow: 0 0 10px currentColor;
}

@media (pointer: coarse) {
  .cursor-trail {
    display: none;
  }
}

/* ===== Easter Egg Styles ===== */
.secret-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(94, 234, 212, 0.95));
  color: var(--bg-night);
  padding: 32px 48px;
  border-radius: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-align: center;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(167, 139, 250, 0.4);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Easter Egg 테마별 배경 */
.secret-message[data-theme="love"] {
  background: linear-gradient(135deg, rgba(242, 156, 183, 0.95), rgba(236, 72, 153, 0.95));
  color: #ffffff;
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4), 0 0 60px rgba(242, 156, 183, 0.6);
}

.secret-message[data-theme="night"] {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  color: #e0e7ff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(94, 234, 212, 0.3);
  border: 1px solid rgba(94, 234, 212, 0.3);
}

.secret-message[data-theme="stars"] {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.95), rgba(109, 40, 217, 0.95));
  color: #fef3c7;
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.5), 0 0 80px rgba(251, 191, 36, 0.4);
}

.secret-message[data-theme="dialogue"] {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.92), rgba(167, 139, 250, 0.92));
  color: var(--bg-night);
  box-shadow: 0 20px 60px rgba(94, 234, 212, 0.4), 0 0 40px rgba(167, 139, 250, 0.5);
}

.secret-message[data-theme="welcome"] {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.95));
  color: var(--bg-night);
  box-shadow: 0 20px 60px rgba(251, 191, 36, 0.5), 0 0 60px rgba(245, 158, 11, 0.6);
}

.secret-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sparkle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--accent-gold), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: sparkleOut 1s ease-out forwards;
}

@keyframes sparkleOut {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .secret-message {
    transition-duration: 0.2s;
  }
  .sparkle {
    display: none;
  }
}

/* ===== Fast Scroll Effects ===== */
body.fast-scroll .star,
body.fast-scroll .particle {
  animation-duration: 0.5s !important;
}

body.fast-scroll .story {
  transition-duration: 0.6s;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 960px) {
  .menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    gap: 28px;
    padding: 0;
    background: transparent;
    border: none;
  }

  .site-nav a {
    font-size: 0.82rem;
  }
}

/* ===== Tablet Responsive ===== */
@media (max-width: 1024px) and (min-width: 721px) {
  h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }
  
  h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  
  .lead, .section-lead {
    font-size: 1.05rem;
  }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 720px) {
  /* 모바일 헤더 최적화 */
  .header-content {
    gap: 12px;
    padding: 0 12px;
  }

  .site-logo {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    flex-shrink: 0;
  }

  .menu-button {
    padding: 8px 14px;
    flex-shrink: 0;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.2;
  }
  
  h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  
  .lead, .section-lead {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .hero-content {
    gap: 20px;
    max-width: 100%;
  }

  .cta-group {
    width: 100%;
  }

  .cta-group .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .story-inner {
    grid-template-columns: 1fr;
  }

  .work-card,
  .principle-card,
  .feature-card,
  .form-card {
    padding: 24px;
  }

  .footer-content {
    align-items: flex-start;
  }

  .feature-grid,
  .signals-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Falling letter chip */
.drop{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  top:-10vh;
  font-family:'Playfair Display',serif;
  color:#ffe9c8;
  font-size:48px;
  opacity:.0;
  filter:blur(0.4px);
  z-index:2;
  font-weight:600;
}
@keyframes fall{
  0%{
    transform:translate(-50%,-20vh) scale(0.9);
    opacity:0;
  }
  20%{
    opacity:.9;
  }
  100%{
    transform:translate(-50%,110vh) scale(1.05);
    opacity:0;
  }
}

/* Interlude (NOVUS assembly) - Seamless integration */
#interlude{
  background:transparent;
  padding:15vh 0;
}
#interlude .word{
  display:flex;
  gap:0.08em;
  justify-content:center;
  align-items:flex-end;
  margin-top:10px;
}
#interlude .word span{
  font-family:'Playfair Display',serif;
  font-size:clamp(64px,12vw,160px);
  color:#faf8f3;
  opacity:.3;
  letter-spacing:.02em;
  transition:opacity .9s ease, text-shadow .9s ease;
  font-weight:600;
}
#interlude .word span.glow{
  opacity:1;
  text-shadow:0 0 24px rgba(215,180,122,.45),0 0 80px rgba(215,180,122,.25);
}
#interlude .mantra{
  font-size:clamp(20px,3.2vw,38px);
  letter-spacing:.06em;
  text-shadow:0 0 20px rgba(215,180,122,.28);
  margin-top:16px;
  font-weight:400;
}
#interlude .transition-msg{
  margin-top:32px;
  font-size:clamp(16px,2.2vw,22px);
  color:var(--ink-d);
  font-style:italic;
  opacity:0;
  transition:opacity 1.5s ease;
}
#interlude .transition-msg.show{
  opacity:1;
}

/* Manifesto */
#manifesto .typewriter{
  font-size:clamp(16px,2.5vw,22px);
  line-height:1.9;
  max-width:900px;
  margin:24px auto;
  opacity:0;
  transition:opacity .6s ease;
  font-weight:300;
  color:var(--ink);
}
#manifesto .typewriter.show{
  opacity:1;
}

/* Works */
.grid{
  display:grid;
  gap:32px;
  margin-top:48px;
}
.cols-3{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}
.card{
  position:relative;
  border:1px solid rgba(215,180,122,.2);
  border-radius:20px;
  padding:32px 28px;
  background:rgba(255,255,255,.03);
  backdrop-filter:blur(8px);
  transition:.4s ease;
  overflow:hidden;
  transform-style:preserve-3d;
  cursor:pointer;
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition:opacity .6s ease;
  background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.08) 30%,rgba(215,180,122,.25) 50%,rgba(255,255,255,.08) 70%,transparent 100%);
  transform:translateX(-100%);
}
.card:hover::before{
  opacity:.9;
  animation:shine 1.6s cubic-bezier(.22,.61,.36,1);
}
@keyframes shine{
  from{
    transform:translateX(-120%);
  }
  to{
    transform:translateX(120%);
  }
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(215,180,122,.4);
}
.card h3{
  margin:0 0 12px;
  color:var(--gold);
}
.card p{
  color:#e8e3d6;
  opacity:1;
  font-size:15px;
  line-height:1.7;
  font-weight:300;
}
.card .principles-tag{
  margin-top:16px;
  font-size:12px;
  color:var(--gold);
  opacity:.7;
  letter-spacing:.05em;
}

/* Principles */
.cols-2{
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}
.principle-card{
  border:1px solid rgba(215,180,122,.18);
  border-radius:16px;
  padding:28px 24px;
  background:rgba(255,255,255,.02);
  backdrop-filter:blur(6px);
  transition:.35s ease;
}
.principle-card:hover{
  background:rgba(215,180,122,.08);
  border-color:rgba(215,180,122,.35);
}
.principle-card h3{
  font-size:clamp(18px,2.8vw,24px);
  margin-bottom:12px;
}
.principle-card p{
  font-size:15px;
  line-height:1.8;
  color:#e8e3d6;
  font-weight:300;
}

/* Epilogue - Flowing end */
#epilogue{
  background:transparent;
  padding:15vh 0 30vh 0;
}
#epilogue .epilogue-content{
  max-width:720px;
}
#epilogue .main-msg{
  font-size:clamp(22px,3.5vw,38px);
  line-height:1.6;
  margin-bottom:32px;
  font-family:'Playfair Display',serif;
  color:var(--gold);
  font-weight:400;
}
#epilogue .sub-msg{
  font-size:clamp(16px,2.2vw,20px);
  line-height:1.8;
  margin-bottom:40px;
  color:var(--ink-d);
  font-weight:300;
}
#epilogue .brand-close{
  margin-top:48px;
  padding-top:32px;
  border-top:1px solid rgba(215,180,122,.2);
}
#epilogue .brand-close .tagline{
  font-size:clamp(18px,2.8vw,28px);
  font-family:'Playfair Display',serif;
  color:var(--gold);
  margin-bottom:12px;
  font-weight:400;
}
#epilogue .brand-close .subtitle{
  font-size:14px;
  color:var(--ink-d);
  opacity:.8;
  line-height:1.8;
  font-weight:300;
}

/* Controls */
.controls{
  position:fixed;
  top:24px;
  right:24px;
  z-index:10;
  display:flex;
  gap:8px;
}
.control-btn{
  padding:8px 16px;
  border-radius:999px;
  background:rgba(23,19,15,.7);
  border:1px solid rgba(215,180,122,.3);
  color:var(--ink);
  backdrop-filter:blur(8px);
  font-size:13px;
}
.control-btn:hover{
  background:rgba(23,19,15,.9);
  border-color:var(--gold);
}

/* Progress indicator - REMOVED */

/* Modal */
#overlay{
  position:fixed;
  inset:0;
  background:rgba(10,8,6,.75);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:50;
  opacity:0;
  transition:opacity .3s ease;
}
#overlay.show{
  display:flex;
  opacity:1;
}
#modal{
  max-width:680px;
  margin:0 16px;
  border:1px solid rgba(215,180,122,.3);
  border-radius:20px;
  background:rgba(23,19,15,.95);
  padding:40px;
  backdrop-filter:blur(12px);
}
#modal h3{
  color:var(--gold);
  margin-bottom:16px;
  font-size:clamp(22px,3.5vw,32px);
}
#modal p{
  color:var(--ink-d);
  line-height:1.8;
  margin-bottom:12px;
  font-weight:300;
}
#modal .modal-footer{
  margin-top:24px;
  display:flex;
  gap:12px;
}
#closeModal{
  background:rgba(215,180,122,.15);
  border:1px solid var(--gold);
}
#closeModal:hover{
  background:rgba(215,180,122,.3);
}

/* Easter Egg Story Modal - Fullscreen */
#storyModal{
  position:fixed;
  inset:0;
  z-index:100;
  background:linear-gradient(180deg,#0a0806,#17130f);
}

.story-container{
  position:relative;
  overflow-y:auto;
  overflow-x:hidden;
  height:100vh;
  padding-bottom:100vh;
}
.story-container::-webkit-scrollbar{
  width:8px;
}
.story-container::-webkit-scrollbar-track{
  background:rgba(23,19,15,.3);
}
.story-container::-webkit-scrollbar-thumb{
  background:rgba(215,180,122,.3);
  border-radius:4px;
}
.story-container::-webkit-scrollbar-thumb:hover{
  background:rgba(215,180,122,.5);
}

.story-orbits{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
}
.story-orbit{
  position:absolute;
  border-radius:50%;
  filter:blur(20px);
}
.story-orbit-s{
  width:180px;
  height:180px;
  background:radial-gradient(circle,var(--s-color),transparent 70%);
  left:10%;
  bottom:10%;
  animation:orbit-s-float 8s ease-in-out infinite;
}
.story-orbit-h{
  width:180px;
  height:180px;
  background:radial-gradient(circle,var(--h-color),transparent 70%);
  right:10%;
  top:10%;
  animation:orbit-h-float 10s ease-in-out infinite;
}
@keyframes orbit-s-float{
  0%,100%{
    transform:translate(0,0) rotate(0deg);
  }
  50%{
    transform:translate(20px,-30px) rotate(180deg);
  }
}
@keyframes orbit-h-float{
  0%,100%{
    transform:translate(0,0) rotate(0deg);
  }
  50%{
    transform:translate(-30px,20px) rotate(-180deg);
  }
}

.story-section{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:2;
  padding:80px 40px;
}
.story-text{
  max-width:700px;
  text-align:center;
  opacity:0;
  transform:translateY(40px);
  transition:opacity 1.2s ease,transform 1.2s ease;
}
.story-text.visible{
  opacity:1;
  transform:translateY(0);
}
.story-text p{
  font-size:clamp(20px,3.5vw,28px);
  line-height:2.2;
  color:var(--ink);
  margin-bottom:32px;
  font-weight:300;
}
.story-text p.highlight{
  color:var(--gold);
  font-size:clamp(24px,4vw,36px);
  font-weight:400;
  text-shadow:0 0 24px rgba(215,180,122,.4);
}
.story-text .signature{
  font-style:italic;
  font-size:clamp(18px,3vw,24px);
  color:var(--gold);
  opacity:.8;
  margin-top:56px;
}

.story-particles{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.story-particle{
  position:absolute;
  width:3px;
  height:3px;
  background:var(--gold);
  border-radius:50%;
  opacity:0;
  animation:sparkle 3s ease-in-out infinite;
  box-shadow:0 0 4px var(--gold);
}
@keyframes sparkle{
  0%,100%{
    opacity:0;
    transform:scale(1);
  }
  50%{
    opacity:.7;
    transform:scale(1.5);
  }
}

.close-story{
  position:fixed;
  top:32px;
  right:32px;
  z-index:10;
  width:56px;
  height:56px;
  border-radius:50%;
  background:rgba(23,19,15,.7);
  border:1px solid rgba(215,180,122,.3);
  color:var(--gold);
  font-size:28px;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.3s ease;
  backdrop-filter:blur(10px);
}
.close-story:hover{
  background:rgba(23,19,15,1);
  border-color:var(--gold);
  transform:scale(1.1);
  box-shadow:0 0 16px rgba(215,180,122,.4);
}

footer{
  padding:64px 0;
  text-align:center;
  background:linear-gradient(180deg,rgba(215,180,122,.08),rgba(215,180,122,.02));
  color:#d6c7b0;
  font-size:14px;
}
footer a{
  color:var(--gold);
  text-decoration:none;
}
footer a:hover{
  text-decoration:underline;
}

body.menu-open,
body.overlay-open {
  overflow: hidden;
}

.work-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9, 12, 17, 0.76);
  backdrop-filter: blur(10px);
  padding: 24px;
  z-index: 60;
  transition: opacity 0.3s ease;
}

.work-overlay[hidden] {
  display: none;
}

.work-overlay__backdrop {
  position: absolute;
  inset: 0;
}

.work-overlay__dialog {
  position: relative;
  width: min(520px, 94vw);
  border-radius: 24px;
  border: 1px solid rgba(247, 199, 112, 0.25);
  background: rgba(17, 24, 31, 0.92);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.work-overlay__header {
  display: grid;
  gap: 10px;
}

.work-overlay__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 199, 112, 0.68);
}

.work-overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247, 199, 112, 0.25);
  background: rgba(15, 20, 25, 0.8);
  font-size: 1.4rem;
  line-height: 1;
}

.work-overlay__close:hover,
.work-overlay__close:focus-visible {
  background: rgba(247, 199, 112, 0.22);
}

.work-overlay__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 1s ease,transform 1s ease;
}
.reveal.show{
  opacity:1;
  transform:translateY(0);
}

/* Scroll progress bar */
.scroll-progress{
  position:fixed;
  top:0;
  left:0;
  height:2px;
  background:linear-gradient(90deg,var(--gold),var(--s-color));
  z-index:100;
  width:0%;
  transition:width .1s ease;
}

/* Custom cursor - Removed, using default */
*{
  cursor: auto !important;
}

/* Remove custom cursor pseudo-elements */
body::before{
  display: none;
}

body::after{
  display: none;
}

/* Floating light whispers in background */
@keyframes float-whisper-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  15% { opacity: 0.4; }
  50% { transform: translate(80px, -120px) scale(1.2); opacity: 0.3; }
  85% { opacity: 0.1; }
  100% { transform: translate(160px, -240px) scale(0.8); opacity: 0; }
}

@keyframes float-whisper-2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  20% { opacity: 0.35; }
  50% { transform: translate(-100px, 80px) scale(1.1); opacity: 0.25; }
  80% { opacity: 0.05; }
  100% { transform: translate(-200px, 160px) scale(0.9); opacity: 0; }
}

@keyframes float-whisper-3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 0.45; }
  50% { transform: translate(50px, 150px) scale(1.15); opacity: 0.35; }
  90% { opacity: 0.08; }
  100% { transform: translate(100px, 300px) scale(0.85); opacity: 0; }
}

@keyframes float-whisper-4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  25% { opacity: 0.38; }
  50% { transform: translate(-120px, -60px) scale(1.18); opacity: 0.28; }
  75% { opacity: 0.1; }
  100% { transform: translate(-240px, -120px) scale(0.8); opacity: 0; }
}

/* Falling stars animation */
@keyframes fall-star {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 200px)) scale(0.8);
    opacity: 0;
  }
}

/* Twinkling stars */
@keyframes twinkle-star {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Falling stars container */
.falling-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 238, 210, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(215, 180, 122, 0.5);
  opacity: 0.5;
  animation: twinkle-star 3s ease-in-out infinite;
}

/* Light whisper particles container */
body::before{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: 
    radial-gradient(600px 400px at 20% 30%, rgba(215, 180, 122, 0.25) 0%, transparent 100%),
    radial-gradient(500px 500px at 80% 60%, rgba(215, 180, 122, 0.18) 0%, transparent 100%),
    radial-gradient(700px 350px at 50% 80%, rgba(215, 180, 122, 0.12) 0%, transparent 100%);
  background-attachment: fixed;
  animation: float-whisper-1 12s ease-in-out infinite;
}

/* Additional whisper layer */
body::after{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(650px 380px at 70% 25%, rgba(215, 180, 122, 0.22) 0%, transparent 100%),
    radial-gradient(550px 550px at 25% 70%, rgba(215, 180, 122, 0.16) 0%, transparent 100%),
    radial-gradient(600px 400px at 60% 40%, rgba(215, 180, 122, 0.14) 0%, transparent 100%);
  background-attachment: fixed;
  animation: float-whisper-2 14s ease-in-out infinite 2s;
}

/* Mobile mini nav - HIDDEN */
.mobile-nav{
  display:none !important;
}

/* Season input */
.season-input{
  margin-top:32px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}
.season-input input{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(215,180,122,.3);
  border-radius:12px;
  padding:12px 20px;
  color:var(--ink);
  font-family:'Pretendard',sans-serif;
  font-size:15px;
  text-align:center;
  max-width:300px;
  width:100%;
  outline:none;
  transition:.3s ease;
}
.season-input input:focus{
  border-color:var(--gold);
  background:rgba(255,255,255,.08);
}
.season-input input::placeholder{
  color:var(--ink-d);
  opacity:.6;
}

/* Easter egg - orbit clicked state */
.orbit.clicked{
  opacity:.9;
  filter:blur(8px) brightness(1.3) !important;
}

/* Light burst particles */
.burst-particle{
  position:fixed;
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--gold);
  pointer-events:none;
  z-index:1000;
  opacity:1;
  animation:burst 1s ease-out forwards;
}
@keyframes burst{
  0%{
    transform:translate(0,0) scale(1);
    opacity:1;
  }
  100%{
    transform:translate(var(--dx),var(--dy)) scale(0);
    opacity:0;
  }
}

@media (prefers-reduced-motion: reduce){
  .verse .line,.prologue-text,.reveal{
    transition:none;
  }
}
@media(max-width:880px){
  .cols-3,.cols-2{
    grid-template-columns:1fr;
  }
  
  /* Hide scroll arrows on mobile - too cluttered */
  .scroll-arrow,
  .scroll-hint{
    display:none;
  }
  
  .mobile-nav{
    display:flex;
  }
  
  .controls{
    top:auto;
    bottom:16px;
    right:16px;
    flex-direction:column;
  }
  
  #orbit-s,#orbit-h{
    width:100px;
    height:100px;
    filter:blur(10px) !important;
  }
  
  /* Improve spacing on mobile */
  section{
    padding:10vh 0;
  }
  
  .verse .line{
    font-size:clamp(16px, 5vw, 24px);
    margin: 6vh 0;
  }
  
  h1{
    font-size:clamp(28px, 8vw, 56px);
  }
  
  h2{
    font-size:clamp(20px, 5vw, 36px);
  }
  
  /* Better touch targets */
  .btn,
  .control-btn{
    padding:12px 18px;
    font-size:14px;
  }
  
  .card,
  .principle-card{
    padding:24px 16px;
  }
  
  /* Clearer story text on mobile */
  .story-text p{
    font-size:clamp(18px, 5vw, 24px);
  }
  
  /* Mobile-friendly modal */
  #modal{
    padding:24px;
    margin:16px;
    max-width:100%;
  }
}

/* ==========================================================================
   Secret Access System - S & H Only 🔐💎
   로고 변신 + 다이아몬드 + 비밀 메뉴
   ========================================================================== */

/* 로고 글자 준비 */
.logo-letter,
.logo-o,
.logo-dot,
.logo-n-placeholder {
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* O → 💗 변신 애니메이션 */
.logo-o.transform-to-heart {
  animation: heartTransform 0.5s ease forwards;
}

@keyframes heartTransform {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.5;
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.8));
  }
  100% {
    transform: scale(1.2) rotate(360deg);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.5));
  }
}

/* 다이아몬드/별 아이콘 - 로고 바로 아래 떠 있음 */
.secret-star-btn {
  position: fixed;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
  display: inline-block;
  line-height: 1;
  transform-origin: center;
  pointer-events: auto;
}

.secret-star-btn.star-appear {
  animation: starAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes starAppear {
  0% {
    opacity: 0;
    font-size: 0;
    transform: translateX(-50%) rotate(0deg) scale(0);
  }
  60% {
    opacity: 1;
    font-size: 1.8rem;
    transform: translateX(-50%) rotate(180deg) scale(1.2);
  }
  100% {
    opacity: 1;
    font-size: 1.5rem;
    transform: translateX(-50%) rotate(360deg) scale(1);
  }
}

.secret-star-btn:hover {
  transform: translateX(-50%) scale(1.2) rotate(15deg);
  filter: drop-shadow(0 0 25px rgba(251, 191, 36, 1));
}

/* 구형 다이아몬드 아이콘 (사용 안 함) */
.diamond-icon {
  display: none;
}

/* 배경 분위기 변화 */
body.secret-atmosphere {
  position: relative;
}

body.secret-atmosphere::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, 
    rgba(236, 72, 153, 0.05) 0%, 
    rgba(167, 139, 250, 0.03) 50%, 
    transparent 100%);
  pointer-events: none;
  z-index: 1;
  animation: atmosphereGlow 3s ease-in-out infinite;
}

@keyframes atmosphereGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* 하트 파티클 (배경) */
.heart-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.heart-particle {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.4;
  animation: heartFloat 4s ease-in-out infinite;
}

@keyframes heartFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.6;
  }
}

/* 하트 폭발 효과 */
.heart-explosion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.explosion-particle {
  position: fixed;
  animation: explode 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes explode {
  0% {
    transform: translate(0, 0) scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(
      calc(var(--end-x) - var(--end-x)),
      calc(var(--end-y) - var(--end-y))
    ) scale(1.5) rotate(720deg);
    opacity: 0;
  }
}

/* Secret Stars (별자리 시퀀스) - 사용 안 함, 보존 */
.secret-star {
  position: fixed;
  width: 30px;
  height: 30px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  z-index: 100;
  user-select: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none; /* 숨김 */
}

/* Secret Progress Indicator - 사용 안 함 */
.secret-progress {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 101;
  pointer-events: none;
}

.secret-progress.visible {
  opacity: 0.6;
}

.progress-dot {
  width: 14px;
  height: 14px;
  background: rgba(167, 139, 250, 0.3);
  border: 2px solid rgba(167, 139, 250, 0.5);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-dot.active {
  background: linear-gradient(135deg, #a78bfa, #5eead4);
  border-color: #5eead4;
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.8);
  transform: scale(1.3);
}

/* Secret Menu - 팝오버 스타일 */
.secret-menu.secret-popover {
  position: fixed;
  top: var(--star-top, 4rem);
  left: var(--star-left, 100px);
  z-index: 10000;
  display: none;
}

.secret-menu.secret-popover.is-active {
  display: block;
  animation: popoverAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popoverAppear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popover-content {
  background: linear-gradient(135deg, 
    rgba(30, 30, 46, 0.98), 
    rgba(20, 20, 36, 0.98)
  );
  border: 2px solid rgba(236, 72, 153, 0.4);
  border-radius: 16px;
  padding: 0.8rem;
  min-width: 220px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
              0 0 80px rgba(236, 72, 153, 0.4),
              0 0 40px rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(20px);
}

/* 화살표 제거 (로고 아래 배치이므로 불필요) */
.popover-arrow {
  display: none;
}

.popover-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.popover-link:last-child {
  margin-bottom: 0;
}

.popover-link:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(236, 72, 153, 0.3);
}

.popover-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.popover-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.popover-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
}

.popover-text small {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* 구형 드롭다운 스타일 (사용 안 함) */
.secret-menu.secret-dropdown {
  display: none;
}

/* Secret Menu - 드롭다운 스타일 */
.secret-menu.secret-dropdown {
  position: fixed;
  top: var(--logo-top, 4rem);
  left: var(--logo-left, 2rem);
  width: auto;
  min-width: 280px;
  max-width: 350px;
  z-index: 10000;
  display: none;
}

.secret-menu.secret-dropdown.is-active {
  display: block;
  animation: dropdownSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.secret-panel-dropdown {
  background: linear-gradient(135deg, 
    rgba(30, 30, 46, 0.98), 
    rgba(20, 20, 36, 0.98)
  );
  border: 2px solid rgba(236, 72, 153, 0.4);
  border-radius: 16px;
  padding: 0.8rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
              0 0 60px rgba(236, 72, 153, 0.3),
              0 0 30px rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(20px);
}

.secret-links-compact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.secret-card-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.secret-card-compact:hover {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.4);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(236, 72, 153, 0.3);
}

.card-icon-small {
  font-size: 2rem;
  flex-shrink: 0;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.card-content p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* 기존 풀스크린 메뉴 스타일 (사용 안 함, 보존) */
.secret-menu:not(.secret-dropdown):not(.secret-popover) {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.secret-menu:not(.secret-dropdown):not(.secret-popover).is-active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.secret-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  cursor: pointer;
  display: none; /* 드롭다운에서는 사용 안 함 */
}

.secret-panel {
  position: relative;
  max-width: 700px;
  width: 90%;
  background: linear-gradient(135deg, 
    rgba(30, 30, 46, 0.98), 
    rgba(20, 20, 36, 0.98)
  );
  border: 2px solid rgba(236, 72, 153, 0.4);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
              0 0 100px rgba(236, 72, 153, 0.4),
              0 0 50px rgba(251, 191, 36, 0.2);
  animation: menuSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
  display: none; /* 드롭다운에서는 사용 안 함 */
}

@keyframes menuSlideUp {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(100px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.secret-header {
  text-align: center;
  margin-bottom: 3rem;
}

.secret-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.secret-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #a78bfa, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.secret-subtitle {
  color: #a78bfa;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* Secret Links */
.secret-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.secret-card {
  background: rgba(167, 139, 250, 0.1);
  border: 2px solid rgba(167, 139, 250, 0.3);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.secret-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(167, 139, 250, 0.2), 
    rgba(94, 234, 212, 0.2)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.secret-card:hover::before {
  opacity: 1;
}

.secret-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 10px 40px rgba(236, 72, 153, 0.5),
              0 0 30px rgba(251, 191, 36, 0.3);
}

.card-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  animation: cardIconFloat 3s ease-in-out infinite;
}

@keyframes cardIconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.secret-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.secret-card p {
  color: #94a3b8;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.card-hearts {
  margin-top: 1rem;
  font-size: 1.2rem;
  opacity: 0.6;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.5));
}

/* Close Button */
.secret-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.secret-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Quick Access Button (언락 후) */
.quick-access-btn {
  width: 36px;
  height: 36px;
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 50%;
  color: #a78bfa;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(167, 139, 250, 0);
  }
}

.quick-access-btn:hover {
  background: rgba(167, 139, 250, 0.3);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
}

/* Hint Message */
.secret-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(94, 234, 212, 0.95));
  color: white;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  z-index: 10001;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: hintPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hintPopIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Mobile Hint - 더블탭 안내 */
.mobile-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: hintSlideUp 0.5s ease;
}

.hint-content {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(94, 234, 212, 0.95));
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
  backdrop-filter: blur(10px);
}

.mobile-hint.fade-out {
  animation: hintFadeOut 0.5s ease forwards;
}

@keyframes hintSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes hintFadeOut {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* Mobile Keypad - 모바일 숫자패드 */
.mobile-keypad {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-keypad.is-active {
  opacity: 1;
}

.keypad-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.keypad-panel {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, 
    rgba(30, 30, 46, 0.98), 
    rgba(20, 20, 36, 0.98)
  );
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-keypad.is-active .keypad-panel {
  transform: translateY(0);
}

.keypad-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.keypad-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.keypad-header h3 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0;
}

.keypad-display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.display-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.display-dot.filled {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  border-color: #a78bfa;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
  animation: dotPulse 0.3s ease;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.keypad-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  max-width: 300px;
  margin: 0 auto;
}

.keypad-btn {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.keypad-btn:active {
  transform: scale(0.9);
  background: rgba(167, 139, 250, 0.3);
  border-color: rgba(167, 139, 250, 0.5);
}

.keypad-clear,
.keypad-close {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.keypad-clear:active,
.keypad-close:active {
  background: rgba(239, 68, 68, 0.3);
}

/* Success Animation */
.secret-success {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.success-particle {
  position: absolute;
  font-size: 2rem;
  animation: successFloat 2s ease-out forwards;
}

@keyframes successFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0);
  }
  50% {
    transform: translateY(-100px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0.5);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* 모바일에서 별 크기 조정 */
  .secret-star-btn {
    font-size: 1.3rem;
  }

  .secret-star-btn.star-appear {
    animation: starAppearMobile 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }

  @keyframes starAppearMobile {
    0% {
      opacity: 0;
      font-size: 0;
      transform: translateX(-50%) rotate(0deg) scale(0);
    }
    60% {
      opacity: 1;
      font-size: 1.6rem;
      transform: translateX(-50%) rotate(180deg) scale(1.2);
    }
    100% {
      opacity: 1;
      font-size: 1.3rem;
      transform: translateX(-50%) rotate(360deg) scale(1);
    }
  }

  .secret-menu.secret-popover {
    left: 50% !important;
    transform: translateX(-50%);
    right: auto;
    max-width: calc(100vw - 2rem);
  }

  .popover-content {
    min-width: 200px;
    padding: 0.6rem;
  }

  .popover-link {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .popover-icon {
    font-size: 1.5rem;
  }

  .popover-text strong {
    font-size: 1rem;
  }

  .popover-text small {
    font-size: 0.75rem;
  }

  .popover-arrow {
    left: 50px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .logo-o,
  .diamond-icon,
  .secret-panel,
  .secret-icon,
  .card-icon,
  .progress-dot,
  .quick-access-btn {
    animation: none;
  }

  .secret-star:hover,
  .secret-card:hover {
    transform: none;
  }
}