/* ============================================
   NIKKI MATLOCK — Scroll-Driven Website
   Aesthetic: Warm minimal, editorial luxury
   ============================================ */

:root {
  --bg-cream: #f4f1eb;
  --bg-dark: #0e0e0e;
  --bg-warm: #e8e2d8;
  --text-dark: #1a1714;
  --text-light: #f0ede8;
  --text-muted: #8a8279;
  --accent: #c4875a;
  --accent-hover: #d4975a;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

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

/* ============================================
   LOADER
   ============================================ */

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  width: 280px;
}

.loader-brand {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.loader-bar-track {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

#loader-percent {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  mix-blend-mode: difference;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

.nav-cta {
  padding: 0.6rem 1.4rem !important;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 0;
  transition: background 0.3s ease, border-color 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent) !important;
  opacity: 1 !important;
}

/* ============================================
   HERO (standalone 100vh)
   ============================================ */

.hero-standalone {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-dark);
  padding: 0 5vw;
  z-index: 5;
}

.hero-content {
  max-width: 900px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--text-light);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-heading .word {
  display: inline-block;
  margin-right: 0.2em;
  opacity: 0;
  transform: translateY(60px);
}

.hero-heading .italic {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  opacity: 0;
  transform: translateY(30px);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  right: 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   SECTION LABELS (shared)
   ============================================ */

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ============================================
   CANVAS
   ============================================ */

.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   DARK OVERLAY
   ============================================ */

#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  z-index: 3;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 400;
  line-height: 1;
  color: var(--text-light);
  white-space: nowrap;
  will-change: transform;
  opacity: 0.12;
}

.marquee-outline {
  -webkit-text-stroke: 1px var(--text-light);
  color: transparent;
  opacity: 0.08;
}

/* ============================================
   SCROLL CONTAINER
   ============================================ */

#scroll-container {
  position: relative;
  width: 100%;
  height: 900vh;
  z-index: 4;
}

/* ============================================
   SCROLL SECTIONS
   ============================================ */

.scroll-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 4;
}

.scroll-section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Side alignment */
.align-left {
  justify-content: flex-start;
  padding-left: 5vw;
  padding-right: 55vw;
}

.align-right {
  justify-content: flex-end;
  padding-left: 55vw;
  padding-right: 5vw;
}

.section-inner {
  max-width: 40vw;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem 2.8rem;
  border-left: 2px solid var(--accent);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.section-heading em {
  font-style: italic;
  color: var(--accent);
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240, 237, 232, 0.75);
  max-width: 380px;
}

.section-note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 135, 90, 0.25);
}

/* ============================================
   STATS SECTION
   ============================================ */

.section-stats {
  justify-content: center;
  padding: 0 8vw;
}

.stats-grid {
  display: flex;
  gap: 6vw;
  align-items: flex-start;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text-light);
  display: inline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--accent);
  vertical-align: super;
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* ============================================
   PRICING
   ============================================ */

.pricing-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.price-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item.featured {
  border-bottom-color: var(--accent);
}

.price-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.price-detail {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(240, 237, 232, 0.6);
  line-height: 1.5;
}

.price-item.featured .price-amount {
  color: var(--accent);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--accent);
  padding: 1.1rem 2.8rem;
  text-decoration: none;
  margin-top: 2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ============================================
   PRICING BUY BUTTONS
   ============================================ */

.price-buy {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  margin-top: 0.8rem;
  padding: 0.6rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.price-buy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.featured-buy {
  background: var(--accent);
  border-color: var(--accent);
}

.featured-buy:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ============================================
   INQUIRY FORM
   ============================================ */

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.inquiry-form input,
.inquiry-form textarea {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-light);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: var(--text-muted);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--accent);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 80px;
}

.inquiry-form .cta-button {
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.form-status {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  min-height: 1.2em;
}

.form-status.success {
  color: #7ec88b;
}

.form-status.error {
  color: #e87c6c;
}

.form-success {
  text-align: center;
  padding: 1.5rem 0;
}

.form-success-check {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  line-height: 1;
}

.form-success-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-success-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  padding: 4rem 5vw 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(138, 130, 121, 0.5);
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* ============================================
   MOBILE (< 768px)
   ============================================ */

@media (max-width: 768px) {
  #scroll-container {
    height: 600vh;
  }

  .hero-heading {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .align-left,
  .align-right {
    padding: 0 6vw;
    justify-content: flex-start;
  }

  .section-inner {
    max-width: 100%;
    padding: 1.8rem;
  }

  .section-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .stats-grid {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }

  .marquee-text {
    font-size: 18vw;
  }

  .site-header {
    padding: 1rem 4vw;
  }

  .footer-links {
    gap: 1.2rem;
  }
}

/* ============================================
   GRAIN OVERLAY (atmosphere)
   ============================================ */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.03;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}