/* ==========================================================================
   LUMINOS v4.2 — Pure Editorial Full-Bleed Photography & Staggered Text Motion
   ========================================================================== */

:root {
  --bg: #080808;
  --text: #f7f5f0;
  --muted: rgba(247, 245, 240, 0.72);
  --faint: rgba(247, 245, 240, 0.45);
  --gold: #d6b67c;
  --line: rgba(255, 255, 255, 0.16);
  --serif: 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Outfit', 'Pretendard', sans-serif;
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}

.snap-container {
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

section.slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 640px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* Slow Cinematic Ken Burns Drift on High-Res Photos */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.09);
  transition: transform 9s var(--ease-cinematic), opacity 1.1s ease;
  will-change: transform;
}
.slide.is-active .slide-bg {
  transform: scale(1.0);
}

/* Soft Architectural Vignette */
.slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.52) 0%, rgba(8, 8, 8, 0.18) 42%, rgba(8, 8, 8, 0.72) 100%),
    radial-gradient(circle at 50% 50%, rgba(8, 8, 8, 0.12) 0%, rgba(8, 8, 8, 0.62) 100%);
  pointer-events: none;
}
.slide-scrim-left {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.78) 0%, rgba(8, 8, 8, 0.42) 52%, rgba(8, 8, 8, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.45) 0%, rgba(8, 8, 8, 0.1) 40%, rgba(8, 8, 8, 0.65) 100%);
}

/* ==========================================================================
   Staggered Text Rise-In Choreography (Triggers cleanly on every slide)
   ========================================================================== */
.anim {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.95s var(--ease-cinematic),
    transform 1.05s var(--ease-cinematic);
  will-change: opacity, transform;
}
.slide.is-active .anim {
  opacity: 1;
  transform: translateY(0);
}
.slide.is-active .d1 { transition-delay: 0.12s; }
.slide.is-active .d2 { transition-delay: 0.28s; }
.slide.is-active .d3 { transition-delay: 0.46s; }
.slide.is-active .d4 { transition-delay: 0.64s; }
.slide.is-active .d5 { transition-delay: 0.80s; }

/* Hairline Grow Animation */
.anim-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 1.1s var(--ease-cinematic) 0.32s;
}
.slide.is-active .anim-line { width: 64px; }

/* ==========================================================================
   Minimalist Transparent Header & Full-Screen Mega Menu
   ========================================================================== */
header.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 26px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
header.top-nav > * { pointer-events: auto; }

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 5px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.top-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2px;
  transition: color 0.3s;
}
.top-links a:hover, .top-links a.active { color: #ffffff; }

.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.link-minimal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
}
.link-minimal::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: rgba(255, 255, 255, 0.45);
  transform-origin: left;
  transition: background 0.3s, transform 0.4s var(--ease-cinematic);
}
.link-minimal:hover::after {
  background: var(--gold);
  transform: scaleX(1.08);
}

.mega-btn {
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Mega Menu */
.mega-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 8vw;
}
.mega-overlay.open { display: flex; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: auto 0;
}
.mega-col h4 {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 2.8px;
  color: var(--gold);
  margin-bottom: 20px;
}
.mega-col a {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.25s, padding-left 0.25s;
}
.mega-col a:hover { color: var(--gold); padding-left: 8px; }

/* Right Minimalist Slide Rail */
.slide-rail {
  position: fixed;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.rail-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  transition: color 0.3s;
}
.rail-dot .bar {
  width: 14px; height: 1px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.4s var(--ease-cinematic), background 0.3s;
}
.rail-dot.active { color: #ffffff; }
.rail-dot.active .bar { width: 38px; background: var(--gold); height: 1.5px; }

/* ==========================================================================
   Slide Typography & Layouts (Restrained, Museum-Grade)
   ========================================================================== */
.slide-inner {
  position: relative;
  z-index: 3;
  width: min(1240px, 86vw);
  margin: 0 auto;
}
.align-center { text-align: center; }
.align-left { text-align: left; max-width: 680px; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.display-hero {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 28px;
  word-break: keep-all;
}
.display-sec {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 22px;
  word-break: keep-all;
}
.lead-copy {
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 36px;
  word-break: keep-all;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 3.2px;
  text-decoration: none;
}
.scroll-bar {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: breath 2.2s ease-in-out infinite;
}
@keyframes breath {
  0%, 100% { transform: scaleY(0.45); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Slide 03: Clean 3-Column Full-Bleed Architectural Lineup */
.triptych {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.triptych-col {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 48px 72px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.triptych-col:last-child { border-right: none; }
.triptych-col img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-cinematic), filter 0.8s ease;
  z-index: 0;
}
.triptych-col:hover img {
  transform: scale(1.09);
  filter: brightness(0.72);
}
.triptych-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.25) 0%, rgba(8, 8, 8, 0.86) 100%);
  z-index: 1;
}
.triptych-text {
  position: relative;
  z-index: 2;
}
.triptych-name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  font-weight: 600;
  margin-bottom: 10px;
}
.triptych-price {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.triptych-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  word-break: keep-all;
}

/* Slide 04: Minimal Monumental Numbers (No heavy boxes!) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(3rem, 5.4vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 12px;
}
.stat-num span { color: var(--gold); font-size: 0.45em; margin-left: 4px; }
.stat-lbl { font-size: 0.96rem; font-weight: 700; margin-bottom: 6px; }
.stat-sub { font-size: 0.84rem; color: var(--muted); line-height: 1.65; word-break: keep-all; }

/* Slide 05: Real Archive Quiet Gallery Switcher */
.archive-footer-bar {
  position: absolute;
  bottom: 44px;
  left: 7vw; right: 7vw;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.archive-index-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.archive-idx-btn {
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px 0 0;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
  cursor: pointer;
  min-width: 140px;
  transition: color 0.3s, border-color 0.3s;
}
.archive-idx-btn.active, .archive-idx-btn:hover {
  color: #ffffff;
  border-color: var(--gold);
}
.archive-idx-btn small {
  display: block;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 1.6px;
  color: var(--gold);
  margin-bottom: 4px;
}
.archive-idx-btn span {
  font-size: 0.84rem;
  font-weight: 600;
}

/* Slide 06: Closing HQ & B2B */
.closing-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}
.hq-meta {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--faint);
}

/* Concierge Modal (Quiet Dark Editorial) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  width: min(480px, 94vw);
  background: #121212;
  border: 1px solid rgba(214, 182, 124, 0.32);
  padding: 40px 34px;
  position: relative;
}
.modal-input {
  width: 100%;
  padding: 13px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.94rem;
  margin-bottom: 18px;
  outline: none;
}
.modal-input:focus { border-bottom-color: var(--gold); }
.btn-submit {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  background: var(--gold);
  color: #0b0b0b;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
}

/* ==========================================================================
   Minimal Dark Editorial Slide-Over Drawers (Reviews / Q&A / 24h AI Concierge)
   ========================================================================== */
.quiet-ai-trigger {
  position: fixed;
  right: 34px;
  bottom: 30px;
  z-index: 920;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(214, 182, 124, 0.38);
  color: #f7f5f0;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-cinematic);
}
.quiet-ai-trigger:hover {
  border-color: var(--gold);
  background: rgba(18, 17, 15, 0.92);
  transform: translateY(-2px);
}
.quiet-ai-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(214, 182, 124, 0.8);
}

.ed-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(6, 6, 6, 0.68);
  backdrop-filter: blur(8px);
  display: none;
}
.ed-drawer-backdrop.open { display: block; }

.ed-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(500px, 100vw);
  height: 100vh;
  z-index: 2600;
  background: rgba(13, 13, 13, 0.97);
  border-left: 1px solid rgba(214, 182, 124, 0.24);
  display: flex;
  flex-direction: column;
  transform: translateX(104%);
  transition: transform 0.48s var(--ease-cinematic);
}
.ed-drawer.open { transform: translateX(0); }

.ed-drawer-head {
  padding: 28px 30px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ed-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ed-drawer-foot {
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #0b0b0b;
}

/* Minimal List Items inside Drawers */
.ed-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.ed-item-meta {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.ed-item-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.ed-item-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.68;
  word-break: keep-all;
}
.ed-reply-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(214, 182, 124, 0.06);
  font-size: 0.83rem;
  color: #f0ece4;
  line-height: 1.65;
}

/* AI Chat Bubbles (Editorial Minimal) */
.ed-chat-msg {
  max-width: 90%;
  padding: 12px 15px;
  font-size: 0.86rem;
  line-height: 1.62;
  white-space: pre-line;
  word-break: keep-all;
}
.ed-chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.ed-chat-msg.user {
  align-self: flex-end;
  background: rgba(214, 182, 124, 0.16);
  border: 1px solid rgba(214, 182, 124, 0.45);
  color: #ffffff;
}
.ed-chat-input-row {
  display: flex;
  gap: 10px;
}
.ed-chat-input-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
}
.ed-chat-input-row input:focus { border-color: var(--gold); }
.ed-chat-input-row button {
  padding: 11px 18px;
  background: var(--gold);
  color: #0b0b0b;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 960px) {
  html, body { overflow: auto; height: auto; }
  .snap-container { height: auto; overflow: visible; scroll-snap-type: none; }
  section.slide { height: auto; min-height: 100vh; padding: 120px 0 84px; }
  header.top-nav { padding: 18px 22px; }
  .top-links, .slide-rail { display: none; }
  .triptych { position: relative; grid-template-columns: 1fr; }
  .triptych-col { min-height: 400px; border-right: none; border-bottom: 1px solid var(--line); }
  .stat-row, .closing-cols, .mega-grid { grid-template-columns: 1fr; gap: 32px; }
  .archive-footer-bar { position: relative; bottom: auto; left: auto; right: auto; margin-top: 40px; }
}
