@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Outfit:wght@200;300;400;500&display=swap');

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

:root {
  --dark:       #12100d;
  --dark-warm:  #161310;
  --dark-hero:  #13110e;
  --cream:      #f7f2e8;
  --cream-border: #e0d5c0;
  --gold:       #d4a853;
  --gold-muted: rgba(212,168,83,0.6);
  --gold-faint: rgba(212,168,83,0.22);
  --gold-dim:   rgba(212,168,83,0.04);
  --text-light: #f5ede0;
  --text-mid:   rgba(237,231,220,0.52);
  --text-dim:   rgba(237,231,220,0.45);
  --text-cream: #72623f;
  --text-cream-mid: #7a6545;
  --serif: 'Cormorant Garamond', serif;
  --sans:  'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--dark);
  color: #ede7dc;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 3rem;
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  animation: fadeIn 1s ease 0.2s both;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(15,13,9,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.logo { display: flex; align-items: baseline; gap: 0.45rem; text-decoration: none; }
.logo-word { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: #ede7dc; letter-spacing: 0.06em; }
.logo-word span { color: var(--gold); }
.logo-kanji { font-size: 1rem; color: rgba(212,168,83,0.4); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.65rem;
  color: rgba(237,231,220,0.28);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: rgba(237,231,220,0.7); }
.nav-links a.active { color: var(--gold-muted); }
.nav-cta {
  font-size: 0.65rem !important;
  color: var(--gold) !important;
  border: 0.5px solid var(--gold-faint);
  padding: 0.35rem 0.9rem;
  border-radius: 1px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: rgba(212,168,83,0.08) !important; color: var(--gold) !important; }

/* ── SECTION LABELS ── */
.slabel-d, .slabel-l {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.slabel-d { color: var(--gold-muted); }
.slabel-d::after { content: ''; width: 32px; height: 0.5px; background: rgba(212,168,83,0.25); }
.slabel-l { color: rgba(154,124,62,0.7); }
.slabel-l::after { content: ''; width: 32px; height: 0.5px; background: rgba(154,124,62,0.2); }

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: stretch;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
  text-decoration: none;
}
.btn-bar {
  width: 3px;
  background: var(--gold);
  flex-shrink: 0;
  transition: width 0.3s ease;
}
.btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--dark);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  transition: background 0.2s, gap 0.3s, color 0.2s;
}
.btn:hover .btn-bar { width: 6px; }
.btn:hover .btn-inner { background: #1e1a12; gap: 1.1rem; color: #e8c06a; }
.btn-inner i { transition: transform 0.3s; font-size: 0.85rem; }
.btn:hover .btn-inner i { transform: translateX(4px); }

/* ── FOOTER ── */
.footer {
  padding: 1.5rem 2.5rem;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dark);
}
.footer-left { display: flex; align-items: baseline; gap: 0.5rem; }
.footer-logo { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: rgba(237,231,220,0.25); letter-spacing: 0.06em; }
.footer-logo span { color: rgba(212,168,83,0.3); }
.footer-kanji { font-size: 0.85rem; color: rgba(212,168,83,0.15); }
.footer-right { font-size: 0.65rem; color: rgba(237,231,220,0.15); letter-spacing: 0.08em; text-align: right; line-height: 1.8; }
.footer-nav { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
.footer-nav a { font-size: 0.63rem; color: rgba(237,231,220,0.2); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: rgba(237,231,220,0.5); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes expandLine { from { width: 0; } to { width: 40px; } }
@keyframes kanjiFloat {
  0%   { transform: translateY(-52%) rotateY(0deg) rotateX(0deg); }
  25%  { transform: translateY(-52%) rotateY(12deg) rotateX(6deg); }
  50%  { transform: translateY(-52%) rotateY(0deg) rotateX(10deg); }
  75%  { transform: translateY(-52%) rotateY(-12deg) rotateX(6deg); }
  100% { transform: translateY(-52%) rotateY(0deg) rotateX(0deg); }
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
  position: relative;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(212,168,83,0.7);
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-hamburger span:nth-child(2) { width: 65%; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

/* ── MOBILE OVERLAY — hidden on desktop, never affects layout ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #0f0d09;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  /* Hidden entirely on desktop */
  visibility: hidden;
}
.mobile-overlay::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 70%; height: 65%;
  background: radial-gradient(ellipse at 70% 20%, rgba(201,148,62,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}
.mobile-overlay-kanji {
  position: absolute;
  bottom: -2rem; right: -1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18rem;
  font-weight: 600;
  color: rgba(212,168,83,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.mobile-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}
.mobile-overlay-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 600;
  color: rgba(240,224,192,0.25);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(12px);
  transition: color 0.2s, transform 0.4s ease, opacity 0.4s ease;
}
.mobile-overlay.open .mobile-overlay-links a { opacity: 1; transform: translateY(0); }
.mobile-overlay.open .mobile-overlay-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-overlay.open .mobile-overlay-links a:nth-child(2) { transition-delay: 0.14s; }
.mobile-overlay.open .mobile-overlay-links a:nth-child(3) { transition-delay: 0.20s; }
.mobile-overlay.open .mobile-overlay-links a:nth-child(4) { transition-delay: 0.26s; }
.mobile-overlay-links a:hover { color: rgba(240,224,192,0.75); }
.mobile-overlay-links a.mobile-cta {
  color: #d4a853 !important;
  margin-top: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 0.5px solid rgba(212,168,83,0.3);
  padding: 0.75rem 1.25rem;
  border-radius: 1px;
  width: fit-content;
}
.mobile-overlay-sub {
  margin-top: 3rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212,168,83,0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}
.mobile-overlay.open .mobile-overlay-sub { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.6rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
