/* mujun.studio — Art Deco Ruin */
/* Colors: #5B8C6A #D6C9A8 #4A3B2A #F5EDD6 #C49B42 #D4A953 #F2E6C9 #2B1F0E #C47D5A */
/* Fonts: Poiret One, Fraunces, DM Sans */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #F5EDD6;
  color: #2B1F0E;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-conic-gradient(#4A3B2A 0% 25%, transparent 0% 50%) 0 0 / 4px 4px,
    radial-gradient(ellipse at center, transparent 50%, rgba(43, 31, 14, 0.08) 100%);
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: url(#grain);
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

/* ========== KEYSTONE NAVIGATION ========== */
.keystone-nav {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
}

.keystone-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 237, 214, 0.9);
  border: 1px solid #D4A953;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.keystone-icon:hover {
  background: rgba(212, 169, 83, 0.15);
  transform: scale(1.05);
}

.keystone-icon.active {
  background: #2B1F0E;
}

.keystone-icon.active svg polygon,
.keystone-icon.active svg circle,
.keystone-icon.active svg line {
  stroke: #F2E6C9;
}

.keystone-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: rgba(43, 31, 14, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 169, 83, 0.3);
  min-width: 160px;
}

.keystone-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.keystone-menu a {
  color: #D6C9A8;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.keystone-menu a:hover {
  color: #D4A953;
}

/* ========== PLATES (Full-Viewport Sections) ========== */
.plate {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5EDD6;
  z-index: 2;
  overflow: hidden;
}

.plate-dark {
  background-color: #2B1F0E;
  color: #F2E6C9;
}

.plate-inner {
  width: 100%;
  max-width: 1200px;
  padding: 80px 48px;
  position: relative;
  z-index: 3;
}

.plate-number {
  position: absolute;
  top: 40px;
  right: 48px;
  font-family: 'Poiret One', cursive;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #D4A953;
  opacity: 0.6;
}

/* ========== PLATE 1: HERO ========== */
#plate-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#plate-hero .plate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    rgba(212, 169, 83, 0.06) 0deg,
    transparent 8deg,
    transparent 12deg,
    rgba(212, 169, 83, 0.06) 20deg,
    transparent 28deg,
    transparent 32deg,
    rgba(212, 169, 83, 0.06) 40deg,
    transparent 48deg,
    transparent 52deg,
    rgba(212, 169, 83, 0.06) 60deg,
    transparent 68deg,
    transparent 72deg,
    rgba(212, 169, 83, 0.06) 80deg,
    transparent 88deg,
    transparent 92deg,
    rgba(212, 169, 83, 0.06) 100deg,
    transparent 108deg,
    transparent 112deg,
    rgba(212, 169, 83, 0.06) 120deg,
    transparent 128deg,
    transparent 132deg,
    rgba(212, 169, 83, 0.06) 140deg,
    transparent 148deg,
    transparent 152deg,
    rgba(212, 169, 83, 0.06) 160deg,
    transparent 168deg,
    transparent 172deg,
    rgba(212, 169, 83, 0.06) 180deg,
    transparent 188deg,
    transparent 192deg,
    rgba(212, 169, 83, 0.06) 200deg,
    transparent 208deg,
    transparent 212deg,
    rgba(212, 169, 83, 0.06) 220deg,
    transparent 228deg,
    transparent 232deg,
    rgba(212, 169, 83, 0.06) 240deg,
    transparent 248deg,
    transparent 252deg,
    rgba(212, 169, 83, 0.06) 260deg,
    transparent 268deg,
    transparent 272deg,
    rgba(212, 169, 83, 0.06) 280deg,
    transparent 288deg,
    transparent 292deg,
    rgba(212, 169, 83, 0.06) 300deg,
    transparent 308deg,
    transparent 312deg,
    rgba(212, 169, 83, 0.06) 320deg,
    transparent 328deg,
    transparent 332deg,
    rgba(212, 169, 83, 0.06) 340deg,
    transparent 348deg,
    transparent 352deg,
    rgba(212, 169, 83, 0.06) 360deg
  );
  opacity: 0;
  animation: sunburstFadeIn 1.2s ease-out 0.3s forwards;
  z-index: 0;
  pointer-events: none;
}

@keyframes sunburstFadeIn {
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 5;
}

.studio-name {
  font-family: 'Poiret One', cursive;
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.0;
  text-transform: uppercase;
  color: #2B1F0E;
  position: relative;
  animation: titleGlitchIn 0.8s ease-out;
}

.studio-name::before,
.studio-name::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.studio-name::before {
  color: #C49B42;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  transform: translateX(0);
  animation: glitchTop 4s infinite;
  animation-delay: 2s;
}

.studio-name::after {
  color: #5B8C6A;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  transform: translateX(0);
  animation: glitchBottom 4s infinite;
  animation-delay: 2.5s;
}

@keyframes glitchTop {
  0%, 93% { transform: translateX(0); }
  94% { transform: translateX(-4px) skewX(-2deg); }
  95% { transform: translateX(3px) skewX(1deg); }
  96% { transform: translateX(-2px); }
  97%, 100% { transform: translateX(0); }
}

@keyframes glitchBottom {
  0%, 91% { transform: translateX(0); }
  92% { transform: translateX(5px) skewX(3deg); }
  93% { transform: translateX(-3px) skewX(-1deg); }
  94% { transform: translateX(2px); }
  95%, 100% { transform: translateX(0); }
}

@keyframes titleGlitchIn {
  0% { opacity: 0; transform: translateY(20px); }
  30% { opacity: 1; transform: translateY(0) skewX(-2deg); }
  40% { transform: skewX(1deg); }
  50% { transform: skewX(0); }
  100% { transform: skewX(0); }
}

.studio-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 1.8vw, 18px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8B7355;
  margin-top: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.studio-tagline {
  font-family: 'Fraunces', serif;
  font-size: clamp(14px, 2vw, 20px);
  font-style: italic;
  font-weight: 300;
  color: #4A3B2A;
  margin-top: 8px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1.0s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Deco Borders */
.deco-border-top,
.deco-border-bottom {
  width: 200px;
  height: 2px;
  margin: 20px auto;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.deco-border-top::before,
.deco-border-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #D4A953, transparent);
}

.deco-border-top::after,
.deco-border-bottom::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #D4A953;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Deco Divider */
.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

.deco-divider.centered {
  justify-content: center;
}

.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: #D4A953;
}

.light .divider-line,
.deco-divider.light .divider-line {
  background: #C49B42;
}

.divider-diamond {
  display: block;
  width: 8px;
  height: 8px;
  background: #D4A953;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.deco-divider.light .divider-diamond {
  background: #C49B42;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1.4s forwards;
}

.scroll-chevron {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 1px solid #D4A953;
  border-bottom: 1px solid #D4A953;
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-chevron:nth-child(2) { animation-delay: 0.15s; opacity: 0.7; }
.scroll-chevron:nth-child(3) { animation-delay: 0.3s; opacity: 0.4; }

@keyframes scrollBounce {
  0%, 60%, 100% { transform: rotate(45deg) translateY(0); }
  30% { transform: rotate(45deg) translateY(4px); }
}

/* ========== PLATE 2: PHILOSOPHY ========== */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.philosophy-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.deco-bracket {
  font-family: 'Poiret One', cursive;
  font-size: 48px;
  color: #D4A953;
  line-height: 1;
  opacity: 0.6;
}

.section-title {
  font-family: 'Poiret One', cursive;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #2B1F0E;
}

.section-title.light,
.plate-dark .section-title {
  color: #F2E6C9;
}

.section-title.centered {
  text-align: center;
}

.body-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #4A3B2A;
  margin-bottom: 20px;
}

.plate-dark .body-text,
.body-text.light {
  color: #D6C9A8;
}

.accent-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: #C49B42;
  line-height: 1.5;
}

.plate-dark .accent-text {
  color: #D4A953;
}

/* Glitch Stripe */
.glitch-stripe {
  width: 100%;
  height: 3px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.glitch-stripe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #D4A953 0px,
    #D4A953 4px,
    transparent 4px,
    transparent 8px,
    #5B8C6A 8px,
    #5B8C6A 10px,
    transparent 10px,
    transparent 16px
  );
  animation: glitchStripeMove 3s linear infinite;
}

@keyframes glitchStripeMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(33.33%); }
}

/* ========== PLATE 3: WORK GRID ========== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.work-card {
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(43, 31, 14, 0.03);
  border: 1px solid rgba(212, 169, 83, 0.3);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

.work-card:hover {
  border-color: #C47D5A;
  background: rgba(212, 169, 83, 0.05);
}

.work-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px;
  position: relative;
  z-index: 2;
}

.work-card-deco {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-card-deco {
  opacity: 1;
}

.deco-pattern {
  width: 100%;
  height: 100%;
}

.work-title {
  font-family: 'Poiret One', cursive;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2B1F0E;
  margin-bottom: 8px;
}

.work-category {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B7355;
}

/* Glitch hover effect for work cards */
.work-card.glitching {
  animation: cardGlitch 0.15s steps(2) infinite;
}

@keyframes cardGlitch {
  0% { transform: translate(0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(1px, 1px); }
}

.work-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(212, 169, 83, 0.03) 2px,
    rgba(212, 169, 83, 0.03) 4px
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover::after {
  opacity: 1;
}

/* ========== PLATE 4: PROCESS ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
}

.step-number {
  font-family: 'Poiret One', cursive;
  font-size: 36px;
  color: #D4A953;
  margin-bottom: 16px;
}

.step-deco-line {
  width: 40px;
  height: 1px;
  background: rgba(212, 169, 83, 0.4);
  margin: 0 auto 20px;
}

.step-title {
  font-family: 'Poiret One', cursive;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F2E6C9;
  margin-bottom: 12px;
}

.step-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #D6C9A8;
}

/* ========== PLATE 5: ABOUT ========== */
.about-layout {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.about-deco-column {
  display: flex;
  justify-content: center;
}

.about-ornament {
  width: 60px;
  height: 400px;
}

.about-content {
  padding-right: 48px;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(212, 169, 83, 0.3);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: 'Poiret One', cursive;
  font-size: 48px;
  color: #D4A953;
  line-height: 1;
}

.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B7355;
  margin-top: 4px;
}

/* ========== PLATE 6: CONTACT ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B7355;
}

.contact-link {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: #D4A953;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #F2E6C9;
}

.contact-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #D6C9A8;
}

.deco-footer-ornament {
  margin: 32px 0;
}

.footer-deco {
  width: 200px;
  height: 40px;
}

.copyright {
  margin-top: 16px;
}

.copyright-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8B7355;
}

/* ========== SCROLL REVEAL ========== */
.plate-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.plate-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

#plate-hero .plate-inner {
  opacity: 1;
  transform: none;
}

/* ========== GLITCH SCAN LINE ========== */
.glitch-scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(212, 169, 83, 0.15);
  z-index: 999;
  pointer-events: none;
  transform: translateY(-100%);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .plate-inner {
    padding: 60px 24px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-deco-column {
    display: none;
  }

  .about-content {
    padding-right: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .keystone-nav {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
}
