/* ============================================
   nVelocity — Stuart Hall
   "Quiet Authority" Design System
   ============================================ */

:root {
  /* Colors */
  --bg:           #0C0B09;
  --bg-surface:   #151412;
  --text:         #E8E4DD;
  --text-muted:   #A8A29E;
  --accent:       #C4A265;
  --accent-hover: #D4B87A;
  --accent-dim:   rgba(196, 162, 101, 0.12);
  --border:       #1F1D1A;

  /* Typography */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body:    'Hanken Grotesk', -apple-system, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 7rem;

  /* Layout */
  --container-max: 720px;
  --container-wide: 960px;
  --container-pad: 1.5rem;
}


/* ---- Reset & Base ---- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}


/* ---- Brand Pinstripe ---- */

.pinstripe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 50%, var(--accent) 100%);
  z-index: 200;
}


/* ---- Container ---- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--wide {
  max-width: var(--container-wide);
}


/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background-color: rgba(12, 11, 9, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__wordmark {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__wordmark:hover {
  color: var(--accent-hover);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  color: var(--accent) !important;
}

.nav__cta:hover {
  color: var(--accent-hover) !important;
}

/* Mobile toggle */
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__mobile-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav__mobile-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}


/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
}

.hero__watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16rem, 30vw, 28rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  max-width: 800px;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  padding-left: 2rem;
  position: relative;
}

.hero__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
}

.hero__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-md);
  font-variation-settings: "opsz" 96;
}

.hero__sub {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}


/* ---- Buttons ---- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.875rem 2rem;
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn--dark {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--bg);
}

.btn--dark:hover {
  background: #1a1815;
  border-color: #1a1815;
}


/* ---- Sections (shared) ---- */

.section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.section__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-lg);
  font-variation-settings: "opsz" 72;
  font-style: normal;
}

.section__heading--small {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.section__body p {
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.section__body p:last-child {
  margin-bottom: 0;
}

.section__body .btn {
  margin-top: var(--space-sm);
}

.section__proof {
  color: var(--text-muted);
  font-size: 0.9375rem !important;
  border-left: 2px solid var(--accent);
  padding-left: var(--space-sm);
}


/* ---- Section: Foundation (pull-quote layout) ---- */

.section--foundation {
  border-top: none;
  padding: var(--space-xl) 0;
  background: var(--bg-surface);
  position: relative;
}

.section--foundation::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
  opacity: 0.3;
}

.foundation__layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.foundation__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--accent);
  padding-top: 0.3em;
  font-variation-settings: "opsz" 24;
}

.foundation__quote {
  border: none;
  margin: 0;
  padding: 0;
}

.foundation__quote p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.foundation__quote p:last-child {
  margin-bottom: 0;
}

.foundation__current {
  color: var(--text);
  font-weight: 400;
}


/* ---- Section: Coaching ---- */

.section--coaching {
  position: relative;
}

.section--coaching::after {
  content: '';
  position: absolute;
  right: 0;
  top: var(--space-xl);
  width: 4px;
  height: 60px;
  background: var(--accent);
  opacity: 0.2;
}


/* ---- Section: AI (alternate bg) ---- */

.section--ai {
  background: var(--bg-surface);
  position: relative;
}


/* ---- Section: Proof (subdued) ---- */

.section--proof {
  padding: var(--space-lg) 0;
}

.section__body--subdued {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.section__body--subdued p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.proof-links {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
}

.proof-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.proof-links a:hover {
  color: var(--text);
  text-decoration-color: var(--text-muted);
}

.proof-links__sep {
  color: var(--border);
  margin: 0 0.5rem;
}


/* ---- Email Capture ---- */

.email-capture {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--border);
  background: rgba(12, 11, 9, 0.5);
  position: relative;
}

.email-capture::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.email-capture__prompt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: var(--space-xs) !important;
  font-variation-settings: "opsz" 36;
  font-style: normal;
}

.email-capture__detail {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm) !important;
}

.email-capture .btn {
  display: inline-block;
}


/* ---- Contact Section (inverted) ---- */

.section--contact {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: var(--accent);
  border-top: none;
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  color: var(--bg);
  margin-bottom: var(--space-sm);
  font-variation-settings: "opsz" 96;
}

.contact__sub {
  font-size: 1.0625rem;
  color: rgba(12, 11, 9, 0.7);
  margin-bottom: var(--space-md);
}


/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.footer__inner {
  max-width: var(--container-wide);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--accent);
}


/* ---- Fade-in Animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ---- Responsive ---- */

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 11, 9, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    z-index: 99;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: 1rem;
  }

  .nav__mobile-toggle {
    display: flex;
    z-index: 101;
  }

  .hero__heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__watermark {
    font-size: 14rem;
    right: -10%;
  }

  .foundation__layout {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .foundation__label {
    display: flex;
    gap: 0.5ch;
  }

  .foundation__label br {
    display: none;
  }

  .section--coaching::after {
    display: none;
  }

  .email-capture__form {
    flex-direction: column;
  }

  .email-capture__form .btn {
    width: 100%;
    text-align: center;
  }

  .section__heading {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 1.25rem;
    --space-xl: 3.5rem;
    --space-2xl: 4.5rem;
  }

  .hero {
    min-height: 85vh;
  }

  .hero__watermark {
    font-size: 10rem;
  }
}
