/* ═══════════════════════════════════════════════════
   COMPONENTS — cursor, loader, nav, buttons, footer, mobile nav
═══════════════════════════════════════════════════ */

/* CURSOR */
#csr  { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: var(--white); pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .3s, height .3s; mix-blend-mode: difference; }
#csrR { position: fixed; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: all .3s; }
.csr-grow #csr  { width: 14px; height: 14px; }
.csr-grow #csrR { width: 56px; height: 56px; }

/* LOADER */
#loader {
  position: fixed; inset: 0; background: var(--black); z-index: 9000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px;
  transition: opacity 1s ease, visibility 1s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring   { position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); animation: ringExpand 2s .2s ease forwards; opacity: 0; }
.loader-ring-2 { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1);  animation: ringExpand 2s .5s ease forwards; opacity: 0; }
@keyframes ringExpand { 0%{opacity:0;transform:scale(.7)} 40%{opacity:1} 100%{opacity:.4;transform:scale(1)} }
.loader-logo { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loader-logo img {
  height: 120px; width: auto;
  opacity: 0; transform: scale(.85) translateY(10px);
  animation: logoReveal 1.2s .4s cubic-bezier(.16,1,.3,1) forwards;
  filter: drop-shadow(0 0 40px rgba(255,255,255,.12));
}
@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(.85) translateY(10px); filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
  60%  { opacity: 1; filter: drop-shadow(0 0 50px rgba(255,255,255,.2)); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: drop-shadow(0 0 20px rgba(255,255,255,.08)); }
}
.loader-tagline { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 300; letter-spacing: .45em; text-transform: uppercase; color: rgba(255,255,255,.35); opacity: 0; transform: translateY(6px); animation: taglineIn .8s 1s ease forwards; }
@keyframes taglineIn { to { opacity: 1; transform: translateY(0); } }
.loader-bar { width: 120px; height: 1px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; opacity: 0; animation: barAppear .5s .8s ease forwards; }
.loader-bar::after { content: ''; position: absolute; left: -100%; top: 0; height: 100%; width: 100%; background: linear-gradient(90deg, transparent, var(--white), transparent); animation: lBar 8s 1s ease forwards; }
@keyframes barAppear { to { opacity: 1; } }
@keyframes lBar { to { left: 200%; } }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 600; padding: 20px var(--pad-x); display: flex; align-items: center; justify-content: space-between; transition: padding .5s, background .5s; }
nav.scrolled { background: rgba(0,0,0,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 12px var(--pad-x); border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-logo img { height: 44px; width: auto; transition: height .4s; }
nav.scrolled .nav-logo img { height: 33px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); transition: color .25s; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--white); transition: width .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { border: 1px solid rgba(255,255,255,.45) !important; color: var(--white) !important; padding: 10px 24px !important; transition: background .3s, border-color .3s !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: rgba(255,255,255,.08) !important; border-color: var(--white) !important; }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: none; z-index: 601; padding: 10px; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--white); transition: .4s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BUTTONS */
.btn-g { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; padding: 15px 36px; transition: .3s; }
.btn-g.solid          { background: var(--white); color: var(--black); }
.btn-g.solid:hover    { background: var(--grey1); transform: translateY(-2px); }
.btn-g.outline        { border: 1px solid rgba(255,255,255,.45); color: var(--white); }
.btn-g.outline:hover  { background: rgba(255,255,255,.06); border-color: var(--white); transform: translateY(-2px); }

/* FOOTER */
footer { background: var(--black); padding: 40px var(--pad-x); border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo-link { display: block; opacity: .8; transition: opacity .25s; }
.footer-logo-link:hover { opacity: 1; }
.footer-copy { font-size: 10px; font-weight: 300; letter-spacing: .06em; color: rgba(255,255,255,.6); }

/* MOBILE NAV */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-links.mobile-open {
    display: flex !important; flex-direction: column;
    position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: rgba(0,0,0,.97); z-index: 550;
    align-items: center; justify-content: center;
    gap: clamp(20px, 5vh, 40px); padding: 80px 24px 40px;
    overflow-y: auto; list-style: none; margin: 0;
  }
  .nav-links.mobile-open li { list-style: none; text-align: center; }
  .nav-links.mobile-open li a {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(28px, 7vw, 42px) !important;
    font-weight: 300 !important; color: rgba(255,255,255,.75) !important;
    letter-spacing: .06em !important; text-transform: none !important;
    display: block; padding: 8px 0;
  }
  .nav-links.mobile-open li a:hover { color: var(--white) !important; }
  .nav-links.mobile-open li a::after { display: none !important; }
  .nav-links.mobile-open .nav-cta {
    border: 1px solid rgba(255,255,255,.35) !important; padding: 12px 32px !important;
    margin-top: 8px; font-size: clamp(11px, 3vw, 14px) !important;
    letter-spacing: .2em !important; font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important; color: var(--white) !important;
  }
  .rv, .rvL, .rvR { opacity: 1 !important; transform: none !important; }
  footer { flex-direction: column; text-align: center; align-items: center; }
  #csr, #csrR { display: none; }
  body { cursor: auto; }
}

/* Shared animations */
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.6); } }
