/* ═══════════════════════════════════════════════════════════════
   VORN AUDIO — Landing Page
   Design System & Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Background — warm blacks, never blue-shifted */
  --bg-deepest:    #050403;
  --bg-deep:       #0a0806;
  --bg-mid:        #120e0a;
  --bg-warm:       #1a140e;
  --bg-line:       #2a1f14;

  /* Gold spectrum — bronze-deep to pale light */
  --gold-deep:     #6b4a1c;
  --gold-burn:     #8a6224;
  --gold-mid:      #b8893d;
  --gold-bright:   #d9b063;
  --gold-light:    #ecd08a;
  --gold-pale:     #fbe8b8;

  /* Functional gold */
  --gold-hairline: rgba(217, 176, 99, 0.25);
  --gold-hairline-soft: rgba(217, 176, 99, 0.12);
  --gold-glow:     rgba(236, 208, 138, 0.08);

  /* Text colors */
  --text-primary:  #f0ebe0;
  --text-warm:     #e8dfd0;
  --text-muted:    #9a8f7d;
  --text-subtle:   #6f6759;

  /* Typography */
  --font-display:  "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body:     "Cormorant Garamond", "Garamond", Georgia, serif;
  --font-label:    "Marcellus", "Cinzel", Georgia, serif;

  /* Spacing — 8px base unit */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   48px;
  --space-xl:   80px;
  --space-2xl:  120px;
  --space-3xl:  160px;

  /* Timing */
  --ease-out-refined: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-soft:    cubic-bezier(0.23, 1, 0.32, 1);
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-deepest);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}


/* ── ATMOSPHERIC LAYERS ─────────────────────────────────────── */

/* Film grain — analog warmth at 4% opacity */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.7  0 0 0 0 0.4  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Warm radial vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 25%,
      rgba(139, 98, 36, 0.06) 0%,
      rgba(10, 8, 6, 0) 60%),
    radial-gradient(ellipse 120% 100% at 50% 50%,
      transparent 30%,
      rgba(5, 4, 3, 0.5) 100%);
}


/* ── LAYOUT ─────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: clamp(24px, 5vw, 80px);
  padding-right: clamp(24px, 5vw, 80px);
}


/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background:
    radial-gradient(ellipse 60% 45% at 50% 40%,
      rgba(18, 14, 10, 0.8) 0%,
      var(--bg-deepest) 70%);
}

/* Subtle ambient glow behind logo */
.hero::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(184, 137, 61, 0.06) 0%,
    rgba(184, 137, 61, 0.02) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  opacity: 0;
  animation: heroReveal 2s 0.2s var(--ease-out-soft) forwards;
}

/* Canonical VORN Logo — Pablo's rendered SVG (1080×1080) */
.hero-mark {
  width: clamp(168px, 22vw, 288px);
  height: auto;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 0 60px rgba(184, 137, 61, 0.08));
}

.hero-mark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Visually hidden — accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Decorative line below wordmark */
.hero-rule {
  width: clamp(60px, 10vw, 120px);
  height: 1px;
  border: none;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-hairline),
    transparent);
  margin-bottom: var(--space-lg);
}

/* Subtitle */
.hero-subtitle {
  font-family: var(--font-label);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: var(--space-md);
  padding-right: 0.35em;
  opacity: 0;
  animation: textReveal 1.6s 1s var(--ease-out-soft) forwards;
}

/* Spanish cultural tagline */
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: textReveal 1.6s 1.3s var(--ease-out-soft) forwards;
}

/* Status indicator */
.hero-status {
  font-family: var(--font-label);
  font-size: clamp(0.625rem, 0.9vw, 0.75rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-right: 0.4em;
  opacity: 0;
  animation: textReveal 1.6s 1.6s var(--ease-out-soft) forwards;
}

.hero-status::before {
  content: "◆";
  font-size: 0.4em;
  vertical-align: middle;
  margin-right: 1em;
  color: var(--gold-mid);
}

.hero-status::after {
  content: "◆";
  font-size: 0.4em;
  vertical-align: middle;
  margin-left: 1em;
  color: var(--gold-mid);
}


/* ── MANIFESTO SECTION ──────────────────────────────────────── */
.manifesto {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.manifesto-content {
  max-width: 640px;
  text-align: center;
  opacity: 0;
  animation: sectionReveal 1.8s 0.3s var(--ease-out-soft) forwards;
  animation-play-state: paused;
}

.manifesto-content.visible {
  animation-play-state: running;
}

.manifesto-text {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-warm);
  letter-spacing: 0.015em;
}

.manifesto-text em {
  font-style: italic;
  color: var(--gold-light);
}

.manifesto-emphasis {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-top: var(--space-lg);
  padding-right: 0.2em;
}


/* ── DIVIDER ────────────────────────────────────────────────── */
.divider {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.divider-line {
  width: clamp(40px, 6vw, 80px);
  height: 1px;
  border: none;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-hairline),
    transparent);
}


/* ── STATUS SECTION ─────────────────────────────────────────── */
.status {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.status-content {
  text-align: center;
  opacity: 0;
  animation: sectionReveal 1.8s 0.3s var(--ease-out-soft) forwards;
  animation-play-state: paused;
}

.status-content.visible {
  animation-play-state: running;
}

.status-label {
  font-family: var(--font-label);
  font-size: clamp(0.625rem, 0.9vw, 0.75rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--space-md);
  padding-right: 0.5em;
}

.status-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  padding-right: 0.15em;
}


/* ── CONTACT SECTION ────────────────────────────────────────── */
.contact {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  animation: sectionReveal 1.8s 0.3s var(--ease-out-soft) forwards;
  animation-play-state: paused;
}

.contact-content.visible {
  animation-play-state: running;
}

.contact-item {
  text-align: center;
}

.contact-label {
  font-family: var(--font-label);
  font-size: clamp(0.625rem, 0.8vw, 0.7rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--space-xs);
  padding-right: 0.4em;
}

.contact-link {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-warm);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.4s var(--ease-out-refined);
}

.contact-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out-refined);
}

.contact-link:hover {
  color: var(--gold-light);
}

.contact-link:hover::after {
  transform: scaleX(1);
}

.contact-link:focus-visible {
  outline: 1px solid var(--gold-hairline);
  outline-offset: 6px;
  color: var(--gold-light);
}


/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
  text-align: center;
}

.footer-primary {
  font-family: var(--font-label);
  font-size: clamp(0.625rem, 0.8vw, 0.7rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-right: 0.4em;
}

.footer-secondary {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-subtle);
  opacity: 0.6;
  margin-top: var(--space-sm);
  letter-spacing: 0.03em;
}

.footer-rule {
  width: clamp(30px, 4vw, 50px);
  height: 1px;
  border: none;
  background: var(--gold-hairline-soft);
  margin: var(--space-md) auto 0;
}


/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Small phones */
@media (max-width: 480px) {
  .hero {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .hero-mark {
    width: 156px;
  }

  .manifesto {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .contact-content {
    gap: var(--space-md);
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-mark {
    width: 192px;
  }
}

/* Small desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-mark {
    width: 228px;
  }
}

/* Large desktop */
@media (min-width: 1441px) {
  .section {
    padding-left: clamp(80px, 10vw, 200px);
    padding-right: clamp(80px, 10vw, 200px);
  }
}

/* Ultra-wide */
@media (min-width: 1921px) {
  .hero-content {
    max-width: 900px;
  }

  .manifesto-content {
    max-width: 720px;
  }
}


/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  body::before,
  body::after,
  .hero::before {
    display: none;
  }

  body {
    background: #fff;
    color: #1a1a1a;
  }

  .hero-wordmark {
    color: #1a1a1a;
    background: none;
    -webkit-background-clip: unset;
            background-clip: unset;
  }

  .contact-link {
    color: #1a1a1a;
  }

  .contact-link::after {
    display: none;
  }
}
