:root {
  --surface-primary: #090a0f;
  --surface-elevated: #12141c;
  --surface-card: rgba(255, 255, 255, 0.03);
  --text-primary: #f5f2eb;
  --text-secondary: #a09c94;
  --accent-brand: #d4af37;
  --accent-action: #c9a84e;
  --accent-green: #10b981;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 24px;
  --radius-button: 9999px;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.4, 0, 0.2, 1);

  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Fluid Scale (Mobile-First Optimized) */
  --text-display: clamp(1.65rem, 5.5vw, 5.2rem);
  --text-h2: clamp(1.4rem, 3.8vw, 3.6rem);
  --text-h3: clamp(1.15rem, 2.2vw, 1.8rem);
  --text-body: clamp(0.88rem, 1.2vw, 1.05rem);
  --text-small: clamp(0.75rem, 1vw, 0.88rem);
  
  /* GPU-Accelerated Glass Tokens (Dark Mode) */
  --glass-bg-heavy: rgba(9, 10, 15, 0.85);
  --glass-blur-heavy: blur(24px) saturate(180%);
  --glass-bg-med: rgba(9, 10, 15, 0.65);
  --glass-blur-med: blur(12px);
  --glass-bg-light: rgba(255, 255, 255, 0.05);
  --glass-blur-light: blur(8px);
  
  /* Initialize current glass state to fallback to medium if unset */
  --current-glass-bg: var(--glass-bg-med);
  --current-glass-blur: var(--glass-blur-med);

  /* Border & Input tokens */
  --border-glass: rgba(255, 255, 255, 0.12);
  --surface-input: rgba(18, 20, 29, 0.6);
}

html[data-theme="light"] {
  --surface-primary: #f8f6f1;
  --surface-elevated: #ffffff;
  --surface-card: #ffffff;
  --surface-dark: #090a0f;
  --text-primary: #090a0f;
  --text-secondary: #68645d;
  --text-on-dark: #ece7df;
  --accent-brand: #b89635;
  --accent-action: #1d70b8;
  --border-subtle: rgba(9, 10, 15, 0.08);

  /* GPU-Accelerated Glass Tokens (Light Mode) */
  --glass-bg-heavy: rgba(250, 248, 244, 0.92);
  --glass-bg-med: rgba(250, 248, 244, 0.75);
  --glass-bg-light: rgba(0, 0, 0, 0.05);

  /* Border & Input tokens (Light Mode) */
  --border-glass: rgba(0, 0, 0, 0.09);
  --surface-input: rgba(255, 255, 255, 0.85);
}

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

/* Base GPU-Glass Utility Class */
.gpu-glass {
  background: var(--current-glass-bg) !important;
  -webkit-backdrop-filter: var(--current-glass-blur) !important;
  backdrop-filter: var(--current-glass-blur) !important;
  transform: translateZ(0); /* Force Hardware Acceleration */
  will-change: backdrop-filter, transform;
}

/* Glass Tiers */
.glass-tier-heavy {
  --current-glass-bg: var(--glass-bg-heavy);
  --current-glass-blur: var(--glass-blur-heavy);
}

.glass-tier-med {
  --current-glass-bg: var(--glass-bg-med);
  --current-glass-blur: var(--glass-blur-med);
}

.glass-tier-light {
  --current-glass-bg: var(--glass-bg-light);
  --current-glass-blur: var(--glass-blur-light);
}

/* Legacy Tailwind Glass Overrides (Forcing into our new token system) */
.glass-card-editorial, .glass-card-cyan, .glass-card-sandstone {
  background: var(--glass-bg-med) !important;
  -webkit-backdrop-filter: var(--glass-blur-med) !important;
  backdrop-filter: var(--glass-blur-med) !important;
  transform: translateZ(0);
  will-change: backdrop-filter;
}
html[data-theme="light"] .glass-card-editorial, 
html[data-theme="light"] .glass-card-cyan {
  background: var(--glass-bg-med) !important;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--surface-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.15;
  /* background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); */
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.02em;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent-brand);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-expanded {
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: clamp(60px, 10vw, 120px) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-brand {
  background: linear-gradient(135deg, #d4af37, #c9a84e);
  color: #090a0f;
}

.btn-brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.btn-brand:hover {
  background: #fff;
  color: #090a0f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-brand:hover::after {
  left: 150%;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-brand);
  border: 1px solid var(--accent-brand);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

.spotlight-card {
  position: relative;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Custom Cursor */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent-brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), background-color 0.3s var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: bold;
}

.cursor-ring.hover-expand {
  width: 60px;
  height: 60px;
  background-color: rgba(212, 175, 55, 0.1);
  backdrop-filter: var(--glass-blur-light);
            transform: translateZ(0);
            will-change: backdrop-filter, transform;
}

.cursor-ring.hover-loupe {
  width: 80px;
  height: 80px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23d4af37" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-primary);
}

body.custom-cursor * {
  cursor: none !important;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* GLOBAL AMBIENT MESH */
.global-ambient-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.global-grid-overlay {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    /* Dark mode: subtle white lines */
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

/* Light mode: very subtle dark lines — keep near-invisible like dark mode */
html[data-theme="light"] .global-grid-overlay {
    background-image: 
        linear-gradient(to right, rgba(9, 10, 15, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(9, 10, 15, 0.02) 1px, transparent 1px);
}

.global-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    transition: background 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: background, opacity, transform;
}

/* Light mode orbs: stronger & wider to visually wash out the grid like home page hero images do */
html[data-theme="light"] .global-orb {
    opacity: 0.7;
    filter: blur(180px);
}

.global-orb-1 {
    top: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(201, 168, 124, 0.5) 0%, transparent 70%);
}

.global-orb-2 {
    top: 25%;
    right: -10%;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(232, 185, 138, 0.4) 0%, transparent 70%);
}

.global-orb-3 {
    bottom: -15%;
    left: 15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232, 185, 138, 0.4) 0%, transparent 70%);
}

@media (pointer: coarse) {
  .cursor-ring {
    display: none !important;
  }
  body.custom-cursor * {
    cursor: auto !important;
  }
}

/* Sticky Purchase Bar */
.sticky-purchase-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: rgba(18, 20, 28, 0.85);
  backdrop-filter: var(--glass-blur-med);
            transform: translateZ(0);
            will-change: backdrop-filter, transform;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 900;
  opacity: 0;
  transition: transform 0.5s var(--ease-smooth), opacity 0.5s ease;
}

html[data-theme="light"] .sticky-purchase-bar {
  background: rgba(248, 246, 241, 0.85);
}

.sticky-purchase-bar.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border-subtle);
  z-index: 950;
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 10px;
  gap: 4px;
}

.mobile-bottom-nav .nav-item svg {
  width: 20px;
  height: 20px;
}

.mobile-bottom-nav .fab-wrapper {
  position: relative;
  top: -20px;
}

.mobile-bottom-nav .fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #c9a84e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  color: #090a0f;
  text-decoration: none;
}

@media (max-width: 767px) {
  header#main-header,
  header,
  .top-banner { display: none !important; }
  .hamburger { display: none !important; }
  .sticky-purchase-bar { display: none !important; }
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 64px; }
  .container { padding: 0 16px; }
}

/* Smart Bottom Drawer */
/* Live Order Toast */
.live-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--surface-card);
  backdrop-filter: var(--glass-blur-med);
            transform: translateZ(0);
            will-change: backdrop-filter, transform;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 850;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.5s var(--ease-smooth), opacity 0.5s ease;
}

.live-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.live-toast-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

/* Footer Canvas */
.footer-section {
  position: relative;
  background: var(--surface-primary);
  color: var(--text-primary);
  overflow: hidden;
  padding: 80px 0 40px;
  text-align: center;
}

.footer-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 64px);
  font-style: italic;
  margin-bottom: 40px;
  color: var(--accent-brand);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-brand);
}

.footer-dot {
  width: 4px;
  height: 4px;
  background: var(--accent-brand);
  border-radius: 50%;
}

.footer-newsletter {
  max-width: 400px;
  margin: 0 auto 40px;
  display: flex;
  border-bottom: 1px solid var(--accent-brand);
  padding-bottom: 8px;
}

.footer-newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-size: 16px;
}

.footer-newsletter button {
  background: transparent;
  border: none;
  color: var(--accent-brand);
  cursor: pointer;
}


/* =========================================
   GLOBAL ANIMATION ENGINE
   ========================================= */

/* Base Transition Physics (GPU Accelerated) */
.reveal, .reveal-left, .reveal-right, .reveal-stagger > * {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Hidden States */
.reveal { transform: translateY(32px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-stagger > * { transform: translateY(32px); }

/* Visible States */
.reveal.visible, 
.reveal-left.visible, 
.reveal-right.visible, 
.reveal-stagger.visible > * {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger Delays (up to 12 children) */
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 640ms; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 720ms; }
.reveal-stagger.visible > *:nth-child(11) { transition-delay: 800ms; }
.reveal-stagger.visible > *:nth-child(12) { transition-delay: 880ms; }

/* Global Keyframes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Aurora Glassmorphism Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Behind canvas and content */
    overflow: hidden;
    pointer-events: none;
    background-color: var(--surface-primary);
}

.aurora-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: aurora-move 20s infinite alternate ease-in-out;
}

.aurora-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(212, 175, 55, 0.25); /* Gold */
    animation-delay: 0s;
}

.aurora-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(70, 130, 180, 0.25); /* Blue */
    animation-delay: -5s;
}

.aurora-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: rgba(128, 0, 128, 0.15); /* Purple */
    animation-delay: -10s;
}

@keyframes aurora-move {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10vw, 5vh) scale(1.2); }
    100% { transform: translate(-5vw, 15vh) scale(0.9); }
}

/* Kinetic Text Engine */
.kinetic-word { display: inline-block; white-space: nowrap; overflow: hidden; }
.kinetic-char { display: inline-block; opacity: 0; transform: translateY(100%); }
.kinetic-active .kinetic-char { animation: charReveal 0.6s var(--ease-snappy) forwards; }
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   GLOBAL FOOTER STYLES
   ========================================================================== */
footer {
    background: var(--surface-dark);
    color: var(--text-on-dark);
    padding: 100px 0 40px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}
.footer-links a {
    color: var(--text-on-dark);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-links a:hover {
    opacity: 1;
    color: #fff;
}
html[data-theme="light"] footer {
    background: #eee9df;
    color: #090a0f !important;
    border-top: 1px solid rgba(9, 10, 15, 0.1);
}
html[data-theme="light"] footer p,
html[data-theme="light"] footer div {
    color: #090a0f !important;
}
html[data-theme="light"] .footer-col-title {
    color: #090a0f !important;
}
html[data-theme="light"] .footer-links a {
    color: #374151 !important;
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gpu-glass, .glass-card-editorial, .glass-card-cyan, .glass-card-sandstone {
    background: rgba(15, 17, 23, 0.92) !important;
  }
  html[data-theme="light"] .gpu-glass,
  html[data-theme="light"] .glass-card-editorial,
  html[data-theme="light"] .glass-card-cyan,
  html[data-theme="light"] .glass-card-sandstone {
    background: rgba(248, 246, 241, 0.95) !important;
  }
}

/* Hide Desktop Top Navigation Header & Announcement Banner on Mobile View */
@media (max-width: 767px) {
    header#main-header,
    header,
    .top-banner {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        overflow: hidden !important;
    }
}
/* Dual-Color Accent Heading EM Styling */
.hero-title em,
.kinetic-title em,
h1 em,
h2 em,
.section-title em,
.oura-card-title em {
    font-style: italic;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #c9a050 !important;
    background: none;
    -webkit-text-fill-color: initial;
    display: inline;
}
