/* ===== DESIGN TOKENS ===== */
:root {
  --noir: #070707;
  --blanc: #f0ebe0;
  --blanc-2: #c8c0b0;
  --or: #c9a84c;
  --or-dim: rgba(201,168,76,0.12);
  --or-line: rgba(201,168,76,0.25);
  --gris: #1a1a1a;
  --gris-2: #242424;
  --gris-t: #555;
  --gris-t2: #333;
  --vert: #5a8a6a;
  --transition: cubic-bezier(0.16,1,0.3,1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--noir);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  width: 7px; height: 7px;
  background: var(--or);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--transition), height .3s var(--transition);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--or-line);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .4s var(--transition), height .4s var(--transition), border-color .3s;
}
.cursor.h { width: 4px; height: 4px; }
.cursor-ring.h { width: 52px; height: 52px; border-color: var(--or); }

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  animation: grain .5s steps(2) infinite;
}
@keyframes grain {
  0%  { transform: translate(0,0); }
  25% { transform: translate(-2px,1px); }
  50% { transform: translate(1px,-2px); }
  75% { transform: translate(-1px,2px); }
  100%{ transform: translate(2px,-1px); }
}

/* ===== NAVIGATION ===== */
nav#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s, backdrop-filter .5s;
}
nav#mainNav.scrolled {
  background: rgba(7,7,7,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,.07);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-weight: 300;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--blanc); text-decoration: none;
  transition: color .3s;
}
.nav-logo:hover { color: var(--or); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gris-t); text-decoration: none;
  transition: color .3s; position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--blanc-2); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 100%; height: 1px; background: var(--or);
}
.nav-links a:not(.active)::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--or);
  transition: width .3s var(--transition);
}
.nav-links a:hover::after { width: 100%; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-sw {
  display: flex;
  border: 1px solid var(--gris-2);
  border-radius: 2px; overflow: hidden;
}
.lang-btn {
  font-size: 9px; letter-spacing: 2px;
  padding: 4px 10px; cursor: pointer;
  color: var(--gris-t); background: transparent;
  border: none; border-right: 1px solid var(--gris-2);
  font-family: 'DM Sans', sans-serif; transition: all .2s;
}
.lang-btn:last-child { border-right: none; }
.lang-btn.active { background: var(--or); color: var(--noir); }
.lang-btn:hover:not(.active) { color: var(--blanc); }

/* ===== BURGER ===== */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.bl { width: 22px; height: 1px; background: var(--blanc); transition: all .3s; }

/* ===== MOBILE NAV ===== */
.mnav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(7,7,7,.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mnav.open { opacity: 1; pointer-events: all; }
.mnav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300;
  color: var(--blanc-2); text-decoration: none;
  transition: color .3s; padding: 4px 0;
}
.mnav a:hover { color: var(--or); }
.mnav-lang { display: flex; gap: 10px; margin-top: 20px; }
.mnav-lb {
  font-size: 11px; letter-spacing: 3px; color: var(--gris-t);
  cursor: pointer; padding: 5px 12px;
  border: 1px solid var(--gris-2);
  background: transparent; font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.mnav-lb.active { border-color: var(--or); color: var(--or); }

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--transition), transform .9s var(--transition);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }
.rd4 { transition-delay: .32s; }

/* ===== SECTION EYEBROW ===== */
.eyebrow {
  font-size: 9px; letter-spacing: 5px; color: var(--or);
  text-transform: uppercase; display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--or); }

/* ===== FOOTER ===== */
footer {
  padding: 22px 48px;
  border-top: 1px solid var(--gris-2);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 10px; color: var(--gris-t); letter-spacing: 1px; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.social-link {
  color: var(--gris-t); transition: color .3s;
  display: flex; align-items: center;
}
.social-link:hover { color: var(--or); }
.footer-back {
  font-size: 9px; letter-spacing: 3px; color: var(--or);
  text-transform: uppercase; cursor: pointer; background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 8px; transition: gap .3s;
}
.footer-back:hover { gap: 12px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav#mainNav { padding: 0 32px; }
  footer { padding: 20px 32px; }
}
@media (max-width: 768px) {
  nav#mainNav { padding: 0 20px; height: 56px; }
  .nav-links { display: none; }
  .lang-sw { display: none; }
  .nav-burger { display: flex; }
  .mnav { display: flex; }
  footer { padding: 16px 20px; flex-direction: column; gap: 10px; text-align: center; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .grain { display: none; }
}
