/* ==========================================================================
   Velvet Local — style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --wine:          #6B2737;
  --wine-soft:     #8B3F50;
  --cream:         #F5F0E6;
  --cream-light:   #FAF6EE;
  --charcoal:      #2A2A2A;
  --charcoal-soft: #5A5A5A;
  --brass:         #A48556;
  --rule:          #D9CFBE;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur:      220ms;
  --dur-slow: 400ms;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--wine);
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }

a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--wine-soft); }

::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  color: var(--wine);
  letter-spacing: 0.02em;
}
.loader-track {
  width: 180px;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
#loader-bar {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--wine);
  transition: right 0.08s linear;
}
#loader-percent {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--charcoal-soft);
}

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur-slow) var(--ease), backdrop-filter var(--dur-slow);
}
.site-header.scrolled {
  background: rgba(245, 240, 230, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-link { display: block; flex-shrink: 0; line-height: 1; text-decoration: none; }
.logo-mark {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--wine);
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--wine); }
.site-nav .nav-cta {
  background: var(--wine);
  color: var(--cream) !important;
  padding: 8px 18px;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease) !important;
}
.site-nav .nav-cta:hover { background: var(--wine-soft) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transform-origin: center;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Shared Button Styles
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--wine);
  color: var(--cream);
  border-color: var(--wine);
}
.btn-primary:hover {
  background: var(--wine-soft);
  color: var(--cream);
  border-color: var(--wine-soft);
}
.btn-secondary {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}
.btn-secondary:hover {
  background: var(--wine);
  color: var(--cream);
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--charcoal-soft);
  font-size: 14px;
  font-family: var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.btn-link:hover { color: var(--wine); }

/* --------------------------------------------------------------------------
   Hero Standalone
   -------------------------------------------------------------------------- */
.hero-standalone {
  position: relative;
  height: 100vh;
  min-height: 580px;
  z-index: 10;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 5vw 0;
  text-align: center;
}
.hero-inner {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(260px, 52vw, 680px);
  height: auto;
  margin-bottom: 36px;
}

.hero-deck {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 44px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  opacity: 0.6;
}
.scroll-line {
  width: 32px;
  height: 1px;
  background: var(--charcoal-soft);
  opacity: 0.4;
  animation: pulseWidth 2s ease-in-out infinite;
}
@keyframes pulseWidth {
  0%, 100% { width: 32px; opacity: 0.4; }
  50% { width: 16px; opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   Canvas
   -------------------------------------------------------------------------- */
#canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path, opacity;
}
canvas#canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Dark Overlay
   -------------------------------------------------------------------------- */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(30, 4, 14, 1);
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee-wrap {
  position: fixed;
  inset: auto 0;
  bottom: 8vh;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}
.marquee-text {
  white-space: nowrap;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 12vw;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
  will-change: transform;
  opacity: 0.85;
}
.marquee-text .dot { color: var(--brass); margin: 0 0.3em; }

/* --------------------------------------------------------------------------
   Scroll Container
   -------------------------------------------------------------------------- */
#scroll-container {
  position: relative;
  height: 800vh;
  z-index: 4;
}

/* --------------------------------------------------------------------------
   Scroll Sections
   -------------------------------------------------------------------------- */
.scroll-section {
  position: absolute;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  will-change: opacity;
}
.scroll-section.s-visible { pointer-events: auto; }

/* Side alignment zones — text lives in outer 40% */
.align-left  { padding-left: 5vw;  padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw;  }

.align-left  .section-inner,
.align-right .section-inner {
  max-width: 42vw;
  background: rgba(245, 240, 230, 0.82);
  border: none;
  border-radius: 0;
  padding: 44px 52px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Stats section — centered, dark overlay handles background */
.section-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
}

/* CTA persist section */
.section-cta {
  padding-left: 5vw;
  padding-right: 55vw;
}
.section-cta .section-inner {
  max-width: 44vw;
  background: rgba(245, 240, 230, 0.82);
  border: none;
  border-radius: 0;
  padding: 52px 56px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Section typography */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-heading {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--wine);
  margin-bottom: 16px;
}
.section-body {
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}
.section-note {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
  opacity: 0.7;
  margin-top: 16px;
  line-height: 1.5;
}
.section-rule {
  height: 1px;
  background: rgba(164, 133, 86, 0.4);
  width: 36px;
  border: none;
  margin: 16px 0;
}

/* Service list */
.service-list {
  margin-top: 14px;
}
.service-list li {
  font-size: 14px;
  color: var(--charcoal);
  padding: 9px 0;
  border-bottom: 1px solid rgba(217, 207, 190, 0.7);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service-list li:last-child { border-bottom: none; }
.service-list li strong { color: var(--wine); font-weight: 600; font-size: 13px; }

/* Proof cards */
.proof-cards { display: flex; flex-direction: column; gap: 0; margin-top: 20px; border-top: 1px solid rgba(217, 207, 190, 0.5); }
.proof-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(217, 207, 190, 0.5);
  border-radius: 0;
  padding: 18px 0;
}
.proof-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.55;
  margin-bottom: 6px;
}
.proof-card cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--charcoal-soft);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.proof-card .card-metric {
  font-size: 11px;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Stats grid */
.stats-grid {
  display: flex;
  gap: 72px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number-wrap {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}
.stat-number { display: inline-block; }
.stat-suffix { font-size: 0.48em; color: var(--cream); opacity: 0.75; }
.stat-label {
  font-size: 10px;
  font-family: var(--font-sans);
  color: var(--cream);
  opacity: 0.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 130px;
  margin: 0 auto;
  line-height: 1.5;
}
.stats-caption {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.35;
  text-align: center;
  margin-top: 52px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA scroll section */
.cta-heading {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--wine);
  margin-bottom: 12px;
}
.cta-deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin-bottom: 32px;
}
.cta-button { display: inline-block; }
.cta-sub {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--charcoal-soft);
}
.cta-sub a { color: var(--charcoal-soft); font-size: 13px; }

/* --------------------------------------------------------------------------
   Static Sections
   -------------------------------------------------------------------------- */
.static-section {
  position: relative;
  z-index: 5;
  background: var(--cream);
  padding: 120px 5vw;
}
.static-section.bg-light { background: var(--cream-light); }

.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--wine);
  margin-bottom: 10px;
}
.section-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin-bottom: 52px;
  max-width: 560px;
}
.rule-accent {
  height: 1px;
  background: rgba(164, 133, 86, 0.4);
  width: 40px;
  border: none;
  margin: 22px 0;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}
.faq-item { border-bottom: 1px solid var(--rule); }

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 28px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-q {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.35;
  transition: color var(--dur) var(--ease);
}
.faq-trigger:hover .faq-q { color: var(--wine); }

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  color: var(--wine);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 1.5px; }
.faq-icon::after  {
  width: 1.5px; height: 14px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease);
}
.faq-panel-inner {
  padding-bottom: 28px;
  font-size: 15px;
  color: var(--charcoal-soft);
  line-height: 1.8;
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   Final CTA + Form
   -------------------------------------------------------------------------- */
.cta-static-section { text-align: center; }

.cta-static-section .section-h2 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 8px;
}
.cta-static-section .rule-accent {
  margin: 20px auto;
}
.cta-static-section .section-lede { margin: 0 auto 32px; }
.cta-static-section .btn-primary { font-size: 17px; padding: 16px 36px; }
.cta-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-trust {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--charcoal-soft);
  line-height: 1.5;
}
.cta-static-section .form-trust { margin-top: 32px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 5;
  background: var(--charcoal);
  color: var(--cream);
  padding: 64px 5vw 40px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(217, 207, 190, 0.12);
}
.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: rgba(245, 240, 230, 0.85);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  display: block;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(245, 240, 230, 0.5);
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(245, 240, 230, 0.65);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(245, 240, 230, 0.3); }
.footer-address { font-size: 11px; color: rgba(245, 240, 230, 0.25); text-align: right; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .align-left, .align-right, .section-cta {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .align-left .section-inner,
  .align-right .section-inner,
  .section-cta .section-inner {
    max-width: 100%;
  }
  .stats-grid { gap: 48px; }
}

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

  .site-nav {
    display: none;
    position: fixed;
    inset: 0 0 auto;
    top: 66px;
    background: rgba(245, 240, 230, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 5vw;
    gap: 20px;
    border-top: 1px solid var(--rule);
    backdrop-filter: blur(12px);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }

  .hero-standalone { padding-top: 100px; }

  .marquee-text { font-size: 18vw; }
  .stats-grid { flex-direction: column; gap: 32px; align-items: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
  .footer-address { text-align: left; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; }
  .section-cta .section-inner { padding: 36px 28px; }
  .static-section { padding: 72px 5vw; }
}
