/* css/global.css */

:root {
  --obsidian: #0A0A0B;
  --void: #0D0D10;
  --surface: #111114;
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.70);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-06: rgba(255, 255, 255, 0.06);
  --gold: #C9A96E;
  --gold-light: #E8D5A3;
  --gold-dim: rgba(201, 169, 110, 0.35);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.10);
  
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --gut: clamp(24px, 5vw, 100px);
  --pad: clamp(80px, 12vw, 160px);
  --radius: 3px;
}

/* BASE RESET + BODY */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
}

body {
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none; /* Custom cursor used */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  cursor: none;
  font-family: var(--font-body);
}

/* TYPOGRAPHY CLASSES */
.t-overline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--white-40);
  text-transform: uppercase;
}

.t-display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 12vw, 180px);
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.t-display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(48px, 8vw, 120px);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.t-display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  color: var(--white);
  line-height: 1.05;
}

.t-display-sm {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 3vw, 44px);
  color: var(--white-70);
  line-height: 1.3;
}

.t-body-lg {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  color: var(--white-70);
  line-height: 1.8;
}

.t-body-md {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--white-70);
  line-height: 1.75;
}

.t-body-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--white-40);
  line-height: 1.6;
}

.t-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--white-40);
  text-transform: uppercase;
}

/* SHARED COMPONENT STYLES */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--obsidian);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 52px;
  border-radius: var(--radius);
  border: none;
  transition: background 0.3s, transform 0.3s;
  cursor: none;
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: scale(1.02);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 52px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--white-15);
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s;
  cursor: none;
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0.06;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-silk);
  z-index: -1;
}
.btn-ghost:hover {
  border-color: var(--white);
}
.btn-ghost:hover::before {
  transform: scaleX(1);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 52px;
  border-radius: var(--radius);
  border: none;
  background: var(--gold);
  color: var(--obsidian);
  transition: background 0.3s, transform 0.3s;
  cursor: none;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: scale(1.02);
}

.section-wrap {
  padding: var(--pad) var(--gut);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  /* transition is handled by GSAP */
}

/* CURSOR */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

#cursor-ring {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--white-40);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  transition: background 0.5s, border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom-color: var(--glass-border);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
}

.navbar-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  letter-spacing: 0.1em;
}

.navbar-logo-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 9px;
  color: var(--white-40);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  flex-direction: row;
  gap: 36px;
}

.navbar-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--white-40);
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.navbar-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-silk);
}
.navbar-link:hover, .navbar-link.active {
  color: var(--white);
}
.navbar-link:hover::after, .navbar-link.active::after {
  transform: scaleX(1);
}

.navbar-cta {
  padding: 9px 24px;
  font-size: 12px;
}

/* HAMBURGER (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  z-index: 1000;
  position: relative;
  cursor: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease-silk), opacity 0.4s;
}

#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.97);
  z-index: 997;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* FOOTER */
.footer {
  background: #060609;
  padding: 100px var(--gut) 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--white-40);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-col p, .footer-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--white-40);
  line-height: 1.6;
  margin-bottom: 12px;
  display: block;
}

.footer-link {
  transition: padding-left 0.3s var(--ease-silk), color 0.3s;
}
.footer-link:hover {
  padding-left: 4px;
  color: var(--white);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--white-06);
  margin-top: 80px;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--white-40);
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: var(--obsidian);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

#loader-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  color: var(--white);
  letter-spacing: 0.12em;
}

#loader-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  max-width: 180px;
  /* transition handled by GSAP */
}

#loader-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--white-40);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
}

/* PROGRESS DOTS */
.progress-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid var(--white-15);
  transition: all 0.4s;
}

.dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.5);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .navbar-links, .navbar-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .progress-dots {
    display: none;
  }
  body {
    cursor: auto;
  }
  #cursor-dot, #cursor-ring {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  /* Shared Mobile adjustments */
  .t-display-xl { font-size: clamp(56px, 10vw, 80px); }
  .t-display-lg { font-size: clamp(40px, 8vw, 64px); }
  .t-display-md { font-size: clamp(32px, 6vw, 48px); }
}
