/* ============================================================
   AURUM & NOIR — Design System
   Swiss luxury watch brand
   ============================================================ */

:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --gold: #c8a45c;
  --gold-light: #e0c87a;
  --gold-dim: rgba(200, 164, 92, 0.3);
  --gold-subtle: rgba(200, 164, 92, 0.08);
  --text: #e8e4dd;
  --text-dim: #706c64;
  --white: #f5f3ef;
  --border: rgba(200, 164, 92, 0.12);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', 'Helvetica Neue', sans-serif;
  --transition: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (hover: hover) and (pointer: fine) { body { cursor: none; } }

::selection { background: rgba(200, 164, 92, 0.3); color: var(--white); }

/* ========== CUSTOM CURSOR ========== */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s, width 0.3s, height 0.3s, background 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
}
.cursor.hover {
  width: 60px; height: 60px;
  background: rgba(200, 164, 92, 0.1);
  border-color: var(--gold-light);
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 1s, visibility 1s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  animation: preloadPulse 2s ease-in-out infinite;
}
.preloader-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin-top: 1.5rem;
  animation: preloadLine 1.5s ease-out forwards 0.3s;
}
@keyframes preloadPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes preloadLine {
  to { width: 80px; }
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: background 0.5s, padding 0.5s;
  mix-blend-mode: difference;
}
.nav.scrolled {
  background: rgba(5,5,5,0.95);
  backdrop-filter: blur(20px);
  padding: 0.7rem 3rem 0.7rem;
  border-bottom: 1px solid var(--border);
  mix-blend-mode: normal;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}
.nav.scrolled .nav-logo { margin-bottom: 0; }
.nav.scrolled .nav-links { margin-top: 0; }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: all 0.4s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}
.nav-hamburger span {
  width: 24px; height: 1px;
  background: var(--gold);
  transition: 0.3s;
}
@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; flex-direction: row; justify-content: space-between; align-items: center; gap: 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(5,5,5,0.98);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

/* ========== 3D CANVAS CONTAINER ========== */
.canvas-3d {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  pointer-events: none;
}
.canvas-3d canvas { display: block; }

/* ========== HERO ========== */
.hero-3d {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hero-content {
  text-align: center;
  z-index: 3;
  padding: 2rem;
}
.hero-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0;
}
.hero-title .noir {
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  margin-top: 1.5rem;
  text-transform: uppercase;
  opacity: 0;
}
.hero-cta {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.5s;
  opacity: 0;
  background: transparent;
  font-family: var(--sans);
  cursor: pointer;
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--bg);
}
.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}
.hero-scroll span {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  z-index: 2;
  padding: 10rem 3rem;
}
@media (max-width: 768px) { .section { padding: 5rem 1.5rem; } }
.section-dark { background: var(--bg); }
.section-darker { background: #030303; }
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--white);
}
.section-text {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 500px;
}
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin: 2rem 0;
}

/* ========== SPECS ROW ========== */
.specs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
  max-width: 900px;
  margin: 4rem auto 0;
  text-align: center;
}
.spec-card {
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  transition: border-color 0.5s;
}
.spec-card:hover { border-color: var(--gold-dim); }
.spec-value {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.spec-unit { font-size: 1rem; font-weight: 300; }
.spec-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ========== SHOP GRID ========== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.5s, transform 0.5s;
}
.product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image canvas {
  width: 100%; height: 100%;
}
.product-info {
  padding: 2rem;
}
.product-collection {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.product-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
}
.product-price {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ========== ABOUT ========== */
.about-hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-hero canvas { position: absolute; inset: 0; }
.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.about-content p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 2rem;
}
.timeline {
  max-width: 600px;
  margin: 5rem auto;
}
.timeline-item {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.timeline-year {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 300;
  min-width: 70px;
}
.timeline-text h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 300;
}
.timeline-text p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  line-height: 1.6;
}

/* ========== CONTACT ========== */
.contact-hero {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.contact-form-wrap {
  max-width: 500px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.form-group {
  margin-bottom: 2rem;
}
.form-group label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.8rem 0;
  transition: border-color 0.4s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 1rem 3rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s;
  width: 100%;
}
.form-submit:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ========== FOOTER ========== */
.footer {
  padding: 6rem 3rem 3rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer { padding: 4rem 1.5rem 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .shop-grid { grid-template-columns: 1fr; }
  .specs-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section-heading br { display: none; }
  .hero-title br { display: none; }
  .hero-scroll { bottom: 1.5rem; }
  .nav.scrolled { padding: 0.8rem 1.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.5rem; }
  .page-hero { height: 40vh; padding: 2rem 1.5rem 3rem; }
  .filter-bar { gap: 1rem; padding: 1.5rem; overflow-x: auto; flex-wrap: nowrap; }
  .timeline-item { flex-direction: column; gap: 0.5rem; }
  .timeline-year { min-width: auto; }
  .values-grid { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .craft-section { padding: 3rem 1.5rem; }
  .craft-section p { font-size: 1rem; }
  .atelier-quote { padding: 1.5rem; }
  .atelier-quote p { font-size: 1.15rem; }
  .shop-section { padding: 2rem 1rem 5rem; }
  .spec-value { font-size: 2rem; }
  .hero-content { padding: 1rem; }
  .hero-cta { padding: 0.7rem 1.5rem; font-size: 0.6rem; }
  .experience-badge { position: relative; top: auto; right: auto; text-align: center; padding: 0 1.5rem 1rem; order: -1; }
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.footer-heading {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1100px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ========== UTILITIES ========== */
.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8rem; }
.mb-4 { margin-bottom: 4rem; }
.fade-up { opacity: 0; transform: translateY(30px); }
.fade-up.visible { opacity: 1; transform: translateY(0); transition: 1s cubic-bezier(0.25, 0.1, 0.25, 1); }
