@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --bg: #0D0B08;
  --bg2: #121009;
  --bg3: #161209;
  --surface: #1c1710;
  --border: rgba(169,134,74,0.12);
  --text: #EBDECE;
  --text-muted: rgba(235,222,206,0.55);
  --text-dim: rgba(235,222,206,0.25);
  --gold: #A9864A;
  --gold-light: #C4A96A;
  --gold-dim: rgba(169,134,74,0.15);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease2: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t: all 0.4s var(--ease2);
}

/* ─── RESET ──────────────────────────────────────── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;font-size:16px;overflow-x:hidden;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  cursor:none;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
button{cursor:none;border:none;background:none;font-family:var(--font-sans);color:inherit;}
ul{list-style:none;}
input,textarea,select{font-family:var(--font-sans);}
.amp {
  font-family: "Baskerville", "Georgia", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.1em;
}

/* ─── CURSOR ─────────────────────────────────────── */
#cursor{
  width:10px;height:10px;
  background:var(--gold);
  border-radius:50%;
  position:fixed;top:0;left:0;
  pointer-events:none;z-index:999999;
  transform:translate(-50%,-50%);
  transition:width 0.25s var(--ease),height 0.25s var(--ease),opacity 0.25s,border-radius 0.25s;
  mix-blend-mode:difference;
}
#cursor-ring{
  width:44px;height:44px;
  border:1.5px solid rgba(169,134,74,0.35);
  border-radius:50%;
  position:fixed;top:0;left:0;
  pointer-events:none;z-index:999998;
  transform:translate(-50%,-50%);
  transition:width 0.5s var(--ease),height 0.5s var(--ease),border-color 0.3s,opacity 0.3s;
  will-change:transform;
}
body.cursor-hover #cursor{width:60px;height:60px;opacity:0.15;}
body.cursor-hover #cursor-ring{width:60px;height:60px;border-color:var(--gold);}
body.cursor-click #cursor{width:6px;height:6px;}
body.cursor-link #cursor{border-radius:4px;width:80px;height:30px;background:var(--gold);}

/* ─── LOADER ─────────────────────────────────────── */
#loader{
  position:fixed;inset:0;
  background:var(--bg);
  z-index:999999;
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;
  transition:opacity 0.9s var(--ease),visibility 0.9s;
}
#loader.hidden{opacity:0;visibility:hidden;pointer-events:none;}
.loader-inner{display:flex;flex-direction:column;align-items:center;gap:2rem;}
.loader-monogram{
  font-family:var(--font-serif);
  font-size:clamp(5rem,12vw,10rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-0.04em;
  color:var(--text);
  display:flex;align-items:baseline;gap:0.05em;
}
.lm-d{color:var(--text);}
.lm-v{color:var(--gold);}
.loader-progress-wrap{
  width:200px;height:1px;
  background:rgba(255,255,255,0.1);
  position:relative;overflow:hidden;border-radius:2px;
}
.loader-progress-bar{
  height:100%;width:0%;
  background:var(--gold);
  border-radius:2px;
  transition:width 0.1s linear;
}
.loader-counter{
  font-size:0.75rem;letter-spacing:0.3em;
  color:var(--text-muted);font-weight:300;
}

/* ─── NAVBAR ─────────────────────────────────────── */
nav#navbar{
  position:fixed;top:0;left:0;right:0;
  z-index:9000;
  padding:1.75rem 4rem;
  display:flex;align-items:center;justify-content:space-between;
  transition:padding 0.4s var(--ease2),background 0.4s;
}
nav#navbar.scrolled{
  background:rgba(13,11,8,0.88);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  padding:1.1rem 4rem;
  border-bottom:1px solid var(--border);
}
.nav-logo{
  font-family:var(--font-serif);
  font-size:1.4rem;font-weight:700;
  letter-spacing:-0.02em;
  color:var(--text);
  display:flex;align-items:baseline;gap:0;
  transition:var(--t);
}
.nav-logo em{color:var(--gold);font-style:italic;}
.nav-center{display:flex;gap:2.5rem;align-items:center;}
.nav-link{
  font-size:0.78rem;letter-spacing:0.1em;font-weight:500;
  text-transform:uppercase;color:var(--text-muted);
  position:relative;transition:color 0.3s;
}
.nav-link::after{
  content:'';position:absolute;bottom:-4px;left:0;
  width:0;height:1px;background:var(--gold);
  transition:width 0.3s var(--ease);
}
.nav-link:hover{color:var(--text);}
.nav-link:hover::after{width:100%;}
.nav-right{display:flex;align-items:center;gap:1.5rem;}
.nav-cta{
  display:inline-flex;align-items:center;gap:0.6rem;
  padding:0.65rem 1.4rem;
  background:var(--gold);color:#0D0B08;
  font-size:0.75rem;font-weight:700;
  letter-spacing:0.05em;text-transform:uppercase;
  border-radius:100px;
  transition:var(--t);position:relative;overflow:hidden;
}
.nav-cta::before{
  content:'';position:absolute;inset:0;
  background:var(--gold-light);
  transform:translateX(-110%);
  transition:transform 0.4s var(--ease);
  border-radius:100px;
}
.nav-cta:hover::before{transform:translateX(0);}
.nav-cta span,.nav-cta svg{position:relative;z-index:1;}

/* Hamburger */
.nav-hamburger{
  display:none;flex-direction:column;gap:6px;
  width:28px;padding:4px 0;
}
.nav-hamburger span{
  display:block;width:100%;height:1.5px;
  background:var(--text);
  transition:var(--t);transform-origin:center;
}
.nav-hamburger.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg);}
.nav-hamburger.open span:nth-child(2){transform:translateY(-7.5px) rotate(-45deg);}

/* Mobile menu */
.mobile-menu{
  position:fixed;inset:0;
  background:var(--bg);
  z-index:8999;
  display:flex;flex-direction:column;justify-content:center;
  padding:2rem;
  transform:translateX(-100%);
  transition:transform 0.5s var(--ease);
}
.mobile-menu.open{transform:translateX(0);}
.mobile-menu-inner{display:flex;flex-direction:column;gap:1.5rem;}
.mobile-link{
  font-family:var(--font-serif);
  font-size:clamp(2rem,10vw,4rem);
  font-weight:700;
  color:var(--text);
  line-height:1;
  transition:color 0.3s;
  display:inline-block;
}
.mobile-link:hover{color:var(--lime);}
.mobile-link-cta{color:var(--lime)!important;font-style:italic;}
.mobile-menu-footer{
  position:absolute;bottom:2rem;left:2rem;right:2rem;
  display:flex;justify-content:space-between;
  font-size:0.8rem;color:var(--text-muted);
}

/* ─── GLOBAL UTILITIES ───────────────────────────── */
.section-tag{
  display:inline-flex;align-items:center;gap:1rem;
  font-size:0.72rem;letter-spacing:0.25em;text-transform:uppercase;
  color:var(--text-muted);font-weight:500;
  margin-bottom:2rem;
}
.section-tag span:first-child{
  color:var(--lime);font-weight:700;
}
.section-tag-light{color:rgba(8,8,8,0.5);}
.section-tag-light span:first-child{color:var(--bg);}

/* REVEAL */
.reveal{opacity:0;transform:translateY(50px);transition:opacity 0.9s var(--ease),transform 0.9s var(--ease);}
.reveal.active{opacity:1;transform:translateY(0);}
.reveal-delay-1{transition-delay:0.12s;}
.reveal-delay-2{transition-delay:0.24s;}
.reveal-delay-3{transition-delay:0.36s;}
.reveal-delay-4{transition-delay:0.48s;}

/* BUTTONS */
.btn-primary{
  display:inline-flex;align-items:center;gap:0.75rem;
  padding:1rem 2rem;
  background:var(--gold);color:#0D0B08;
  font-size:0.82rem;font-weight:700;
  letter-spacing:0.05em;text-transform:uppercase;
  border-radius:100px;
  position:relative;overflow:hidden;
  transition:transform 0.3s var(--ease),box-shadow 0.3s;
}
.btn-primary::before{
  content:'';position:absolute;inset:0;
  background:var(--gold-light);transform:translateX(-110%);
  transition:transform 0.4s var(--ease);border-radius:100px;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 40px rgba(169,134,74,0.3);}
.btn-primary:hover::before{transform:translateX(0);}
.btn-primary span,.btn-primary svg{position:relative;z-index:1;}

.btn-ghost{
  display:inline-flex;align-items:center;gap:0.5rem;
  padding:1rem 2rem;
  font-size:0.82rem;font-weight:500;
  color:var(--text-muted);
  border:1px solid var(--border);
  border-radius:100px;
  transition:var(--t);
}
.btn-ghost:hover{border-color:var(--text-muted);color:var(--text);}

/* WA FLOAT */
#wa-float{
  position:fixed;bottom:2rem;right:2rem;z-index:8000;
  width:52px;height:52px;border-radius:50%;
  background:#25D366;color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 24px rgba(37,211,102,0.35);
  transition:transform 0.3s var(--ease),box-shadow 0.3s;
  animation:waPulse 3s ease infinite;
}
#wa-float:hover{transform:scale(1.1) translateY(-3px);box-shadow:0 8px 32px rgba(37,211,102,0.5);}
@keyframes waPulse{
  0%,100%{box-shadow:0 4px 24px rgba(37,211,102,0.35),0 0 0 0 rgba(37,211,102,0.2);}
  50%{box-shadow:0 4px 24px rgba(37,211,102,0.35),0 0 0 12px rgba(37,211,102,0);}
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media(max-width:900px){
  nav#navbar{padding:1.2rem 1.5rem;}
  nav#navbar.scrolled{padding:1rem 1.5rem;}
  .nav-center{display:none;}
  .nav-cta{display:none;}
  .nav-hamburger{display:flex;}
  /* Hide custom cursor on touch/mobile */
  #cursor, #cursor-ring { display: none !important; }
  body { cursor: auto; }
  button { cursor: pointer; }
}
@media(max-width:480px){
  .btn-primary,.btn-ghost{padding:0.85rem 1.5rem;font-size:0.75rem;}
  /* Global overflow safeguard */
  html, body { overflow-x: hidden; max-width: 100vw; }
  section { overflow-x: hidden; }
}
