/* ═══════════════════════════════════════════
   ZERA STUDIOS — Shared Design System
   ═══════════════════════════════════════════ */
:root {
  --ink: #0a0a0a;
  --paper: #f5f2ed;
  --cream: #ece8e1;
  --accent: #c4553a;
  --accent-light: #e8725a;
  --muted: #8a8580;
  --light-muted: #b5b0aa;
  --white: #fefefe;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::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: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection {
  background: var(--accent);
  color: var(--white);
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10000;
  transition: transform 0.15s var(--ease-out-expo), opacity 0.3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10000;
  transition: transform 0.4s var(--ease-out-expo), width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
}
.cursor-ring.hovering { width: 64px; height: 64px; border-color: var(--accent-light); }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  transition: padding 0.4s var(--ease-out-expo);
}
.nav.scrolled { padding: 1rem 3rem; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-logo em {
  font-style: italic; font-weight: 400;
  letter-spacing: 0; opacity: 0.7;
  margin-left: 0.15em; font-size: 0.75em;
}
.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 1px;
  background: var(--accent-light);
  transition: width 0.4s var(--ease-out-expo);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  padding: 0.6rem 1.5rem;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out-expo);
}
.nav-cta:hover { background: var(--accent); color: var(--white); transform: scale(1.05); }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px; width: 28px; z-index: 200;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white); transition: transform 0.3s, opacity 0.3s;
}

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--ink); z-index: 150;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--paper);
  font-weight: 700; transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent); }

/* ── SECTION UTILITIES ── */
.section { padding: 8rem 5rem; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-cream { background: var(--cream); }

.section-header { margin-bottom: 5rem; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-eyebrow::before {
  content: ''; width: 30px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.03em;
}
.section-title .italic { font-style: italic; font-weight: 400; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(60px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 1rem 2.5rem;
  position: relative; overflow: hidden;
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out-expo);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: scale(1.02); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.7rem;
  transition: color 0.3s;
}
.btn-secondary:hover { color: var(--ink); }
.btn-secondary .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}
.btn-secondary:hover .arrow { transform: translateX(5px); }

/* ── MARQUEE ── */
.marquee-section {
  background: var(--ink); padding: 1.5rem 0;
  overflow: hidden; position: relative;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--paper); white-space: nowrap;
  padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
  font-weight: 300; letter-spacing: 0.05em;
}
.marquee-item .dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(245,242,237,0.08);
  padding: 2rem 5rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--light-muted);
}
.footer-copy { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s;
}
.footer-links a:hover { color: var(--paper); }
.footer-back-top {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--light-muted); transition: color 0.3s; cursor: pointer;
}
.footer-back-top:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .section { padding: 5rem 3rem; }
  .nav { padding: 1.25rem 2rem; }
  .footer { padding: 2rem 3rem; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 1.5rem; }
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .cursor-dot, .cursor-ring { display: none; }
  .footer { padding: 1.5rem; flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .section-header { margin-bottom: 3rem; }
  .section-eyebrow::before { width: 20px; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 1.25rem; }
  .nav { padding: 0.85rem 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
  .footer { padding: 1.25rem 1rem; }
  .footer-copy { font-size: 0.6rem; }
  .footer-links a { font-size: 0.6rem; }
  .mobile-nav a { font-size: 1.6rem; }
  .btn-primary { padding: 0.85rem 2rem; font-size: 0.68rem; }
}
