@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Cinzel:wght@400;600;900&family=Space+Grotesk:wght@300;400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 2px;
  transition: top 200ms;
}
.skip-link:focus { top: 8px; }

/* ── Noise grain overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.preloader-word {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--gold);
  line-height: 1;
  min-height: 1.2em;
}
.preloader-bar-wrap {
  width: 200px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.preloader-bar {
  position: absolute;
  inset: 0;
  background: var(--gold);
  width: 0;
  transform-origin: left;
}
.preloader-bar.running {
  animation: load-bar 2.2s var(--ease-out) forwards;
}
#preloader.exit {
  animation: preloader-exit 700ms var(--ease-out) forwards;
}
@keyframes preloader-exit {
  from { clip-path: inset(0 0 0% 0); }
  to   { clip-path: inset(0 0 100% 0); }
}

/* ── Navbar ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms, border-color 300ms, backdrop-filter 300ms;
}
#nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  transition: color var(--dur-fast);
  z-index: 101;
}
.nav-logo:hover { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color var(--dur-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--dur-med) var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color var(--dur-fast);
}
.nav-cart-btn:hover { color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 16px; height: 16px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  transition: opacity var(--dur-fast);
}
.cart-badge[data-count="0"] { opacity: 0; pointer-events: none; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 350ms var(--ease-out), opacity 200ms;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 500ms var(--ease-out);
}
.nav-overlay.open { clip-path: inset(0 0 0% 0); }
.nav-overlay a {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--dur-fast);
}
.nav-overlay a:hover { color: var(--gold); }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px clamp(20px, 4vw, 48px) 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold);
  display: block;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.footer-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}
.footer-social a {
  color: var(--muted);
  display: flex;
  transition: color var(--dur-fast);
}
.footer-social a:hover { color: var(--gold); }
.footer-social svg { fill: currentColor; }
.footer-marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.footer-marquee span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  text-align: center;
  padding: 20px;
}

/* ── Custom cursor ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transition: opacity 300ms;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  opacity: 0.35;
  transform: translate(-50%, -50%);
  transition: transform 80ms, opacity 300ms, width 200ms, height 200ms;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  opacity: 0.6;
}
html.cursor-active { cursor: none; }
html.cursor-active a,
html.cursor-active button { cursor: none; }

/* ── Section separators ── */
.section-angled {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  padding: clamp(80px, 10vw, 120px) 0;
  margin: -40px 0;
  position: relative;
  z-index: 2;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ── Section labels ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

/* ── Page hero shared ── */
.page-hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) clamp(20px, 4vw, 48px) 64px;
  position: relative;
  overflow: hidden;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  color: var(--white);
  line-height: 0.9;
}
.page-hero-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 24px;
}

/* ── Focus visible global ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social { justify-content: center; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 100ms !important;
  }
  .cursor-dot, .cursor-ring { display: none !important; }
}
