/* ============================================
   MXM. ARTIZT — Global Styles
   Brand: Luxury Art / Norwegian Origin
   Colors: Burgundy, Black, Gold, Ivory
   ============================================ */

/* --- CSS Variables --- */
:root {
  --burgundy: #5C1A1E;
  --burgundy-light: #7A2E33;
  --burgundy-dark: #3D1114;
  --black: #0A0A0A;
  --charcoal: #1A1A1A;
  --dark-grey: #2A2A2A;
  --mid-grey: #666666;
  --light-grey: #999999;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --ivory: #F5F0EB;
  --white: #FAFAFA;
  --cream: #F0EBE3;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-accent: 'Cormorant Garamond', 'Georgia', serif;

  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Loading Screen --- */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 80px;
  height: 80px;
  animation: pulse 2s infinite ease-in-out;
}

.loading-logo svg {
  fill: var(--burgundy);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background var(--transition-medium), padding var(--transition-medium);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo .moon-icon {
  width: 32px;
  height: 32px;
}

.nav-logo .dot {
  color: var(--burgundy);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-grey);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-medium);
}

.nav-links a:hover {
  color: var(--ivory);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

/* Audio Toggle */
.audio-toggle {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
}

.audio-toggle:hover {
  border-color: var(--gold);
}

.audio-toggle svg {
  width: 16px;
  height: 16px;
  fill: var(--light-grey);
  transition: fill var(--transition-fast);
}

.audio-toggle:hover svg {
  fill: var(--gold);
}

/* Mobile Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-hamburger span {
  width: 24px;
  height: 1px;
  background: var(--ivory);
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(0.8);
  transform: scale(1.1);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.4) 0%,
    rgba(10,10,10,0.2) 40%,
    rgba(10,10,10,0.6) 80%,
    rgba(10,10,10,1) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-moon {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 1.2s 0.5s forwards;
}

.hero-moon svg {
  fill: var(--burgundy);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ivory);
  opacity: 0;
  animation: fadeUp 1.2s 0.8s forwards;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 1.2s 1.1s forwards;
}

.hero-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 1.2s 1.4s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1.2s 1.7s forwards;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Section Commons --- */
.section {
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--light-grey);
  max-width: 650px;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Collection Grid --- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.artwork-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color var(--transition-medium);
}

.artwork-card:hover {
  border-color: rgba(196, 162, 101, 0.3);
}

.artwork-card-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.artwork-card:hover .artwork-card-image {
  transform: scale(1.03);
}

.artwork-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10,10,10,0.95), transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-medium);
}

.artwork-card:hover .artwork-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

.artwork-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.artwork-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.artwork-card-price {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Scarcity Counter */
.scarcity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.scarcity-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}

.scarcity-bar-fill {
  height: 100%;
  background: var(--burgundy);
  transition: width 1s ease;
}

.scarcity-text {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-grey);
  white-space: nowrap;
}

/* --- Featured / Full Width Artwork --- */
.featured-artwork {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.featured-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-artwork-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%);
}

/* --- Press Bar --- */
.press-bar {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  overflow: hidden;
}

.press-bar-label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 2rem;
}

.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 0 3rem;
}

.press-logos span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: rgba(255,255,255,0.2);
  font-style: italic;
  letter-spacing: 0.05em;
  transition: color var(--transition-medium);
}

.press-logos span:hover {
  color: rgba(255,255,255,0.5);
}

/* --- Originals Section --- */
.original-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
  align-items: center;
}

.original-card:nth-child(even) {
  direction: rtl;
}

.original-card:nth-child(even) > * {
  direction: ltr;
}

.original-image {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

.original-info {
  padding: 2rem;
}

.original-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--ivory);
  margin-bottom: 1rem;
}

.original-materials {
  font-size: 0.85rem;
  color: var(--mid-grey);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.original-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid;
  margin-bottom: 1.5rem;
}

.original-status.inquire {
  color: var(--gold);
  border-color: var(--gold);
}

.original-status.reserved {
  color: var(--burgundy-light);
  border-color: var(--burgundy-light);
}

/* --- CTA Button --- */
.btn {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--burgundy);
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-medium);
  font-family: var(--font-body);
}

.btn:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-filled {
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-filled:hover {
  background: var(--burgundy-light);
  border-color: var(--burgundy-light);
}

/* --- Email Capture --- */
.email-section {
  text-align: center;
  padding: 6rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 500px;
  margin: 2rem auto 0;
}

.email-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.email-input::placeholder {
  color: var(--mid-grey);
}

.email-input:focus {
  border-color: var(--burgundy);
}

.email-submit {
  padding: 1rem 2rem;
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.email-submit:hover {
  background: var(--burgundy-light);
}

/* --- World / About Section --- */
.world-section {
  background: var(--charcoal);
}

.world-quote {
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--ivory);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 6rem 2rem;
}

.world-quote .highlight {
  color: var(--gold);
}

/* --- Coordinates Detail --- */
.coordinates {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--mid-grey);
  text-transform: uppercase;
}

/* --- Footer --- */
.footer {
  padding: 4rem 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--mid-grey);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--ivory);
}

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom span {
  font-size: 0.75rem;
  color: var(--mid-grey);
}

.footer-origin {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .original-card {
    grid-template-columns: 1fr;
  }
  .original-card:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .press-logos {
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .email-form {
    flex-direction: column;
  }

  .email-input {
    border-right: 1px solid rgba(255,255,255,0.1);
  }
}
