/* Stephen Nickerson — Personal Brand Design System v1 */


/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- TOKENS ---- */
:root {
  --black: #060606;
  --surface-1: #0c0c0c;
  --surface-2: #111111;
  --surface-3: #181818;
  --surface-4: #202020;
  --border: #252525;
  --border-mid: #303030;
  --border-light: #3a3a3a;
  --gold: #c9a84c;
  --gold-muted: #a8853a;
  --gold-dim: #7a5f28;
  --gold-bright: #e2c06b;
  --gold-pale: #f0dda0;
  --white: #ffffff;
  --cream: #f0ece4;
  --text-primary: #e8e4dc;
  --text-muted: #b0aba5;
  --text-faint: #8f8a84;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;
  --sp-20: 10rem;

  --max-w: 1100px;
  --max-w-prose: 660px;
  --max-w-narrow: 800px;
  --max-w-xs: 620px;

  --radius: 0px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --transition: 0.35s var(--ease);
}

/* ---- BASE ---- */
body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1.25rem;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  color: var(--white);
}

h1, .hero-quote {
  font-family: var(--font-display);
}

h2, h3 {
  font-family: var(--font-body);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }

p, li {
  font-size: 1.25rem;
  line-height: 1.65;
}

p {
  color: var(--text-muted);
}
p + p { margin-top: 1.1em; }

strong { color: var(--text-primary); font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--sp-3);
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
}

.motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-muted);
  letter-spacing: 0.04em;
  display: block;
  margin-top: var(--sp-3);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.6rem;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-gold:hover::after { opacity: 1; }
.btn-gold span { position: relative; z-index: 1; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.07);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-bright);
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}
.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}
.container-xs {
  max-width: var(--max-w-xs);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* ---- SECTION FLAVORS ---- */
.section-black { background: var(--black); }
.section-s1 { background: var(--surface-1); }
.section-s2 { background: var(--surface-2); }
.section-ruled {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-accent { background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%); }
.section-gold-band {
  background: var(--gold);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-inset {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-inset::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
}

/* ---- DIVIDER ---- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: var(--sp-4) 0;
}
.divider-center { margin: var(--sp-4) auto; }
.divider-lg {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: var(--sp-4) 0;
}

/* ---- SECTION HEADER ---- */
.section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-header.center { text-align: center; }
.section-header.center .divider { margin: var(--sp-3) auto; }
.section-header .lead { margin-top: var(--sp-3); max-width: 600px; }
.section-header.center .lead { margin-left: auto; margin-right: auto; }

/* ---- CARD ---- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: clamp(2rem, 3vw, 3rem);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover { border-color: var(--border-light); background: var(--surface-3); }
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-2px); }

.card h3 { color: var(--white); }
.card p { color: var(--text-muted); margin-top: var(--sp-2); }

/* ---- FEATURED CARD ---- */
.card-featured {
  background: var(--surface-3);
  border: 1px solid var(--gold-dim);
}
.card-featured::before { transform: scaleX(1); }

/* ---- GRID UTILITIES ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.grid-5-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5-2 { grid-template-columns: 1fr; }
}

/* ---- SPLIT LAYOUT ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: center;
}
.split-wide { grid-template-columns: 1.1fr 0.9fr; }
.split-portrait { grid-template-columns: 0.75fr 1.25fr; }

@media (max-width: 860px) {
  .split, .split-wide, .split-portrait {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .split-reverse-mobile > *:first-child { order: 2; }
  .split-reverse-mobile > *:last-child { order: 1; }
}

/* ---- CHECK LIST ---- */
.check-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: var(--sp-3); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; padding-bottom: 0; }
.check-list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9a84c' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}

/* ---- BLOCKQUOTE ---- */
blockquote {
  border-left: 2px solid var(--gold);
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  background: var(--surface-3);
  position: relative;
}
blockquote::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--gold-dim);
  font-family: var(--font-display);
  line-height: 1;
  opacity: 0.5;
}

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

/* ---- STAT BLOCK ---- */
.stat-block { text-align: center; padding: var(--sp-3); }
.stat-block .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-block .stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-top: 0.6rem;
}

/* ---- NUMBERED STEP ---- */
.step-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  color: var(--gold-dim);
  line-height: 0.8;
  opacity: 0.35;
  display: block;
  margin-bottom: var(--sp-2);
  transition: opacity var(--transition), color var(--transition);
}
.card:hover .step-num { opacity: 0.6; color: var(--gold); }

/* ---- LARGE PULL QUOTE ---- */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.4;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.pull-quote-sm {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1.5;
}

/* ---- HORIZONTAL RULE ---- */
.hr-gold {
  border: none;
  border-top: 1px solid var(--border-mid);
  margin: var(--sp-8) 0;
  position: relative;
}
.hr-gold::after {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 60px;
  height: 1px;
  background: var(--gold);
}

/* ---- SITE NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
}
.site-nav.scrolled {
  background: rgba(6, 6, 6, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem clamp(1.5rem, 4vw, 4rem);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color var(--transition);
}
.nav-logo span { color: var(--gold); }
.nav-logo:hover { color: var(--cream); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.8rem);
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: all var(--transition);
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 6, 6, 0.98);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-4) clamp(1.5rem, 4vw, 4rem);
    gap: var(--sp-3);
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,6,6,0.88) 0%,
    rgba(6,6,6,0.70) 50%,
    rgba(6,6,6,0.45) 100%
  );
}
.hero-content { position: relative; z-index: 1; }
.hero-inner {
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.hero-centered {
  text-align: center;
}
.hero-centered .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero {
  min-height: 70vh;
}

/* ---- SCROLL FADE IN ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---- GOLD BAND ---- */
.gold-band {
  background: var(--gold);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  text-align: center;
}
.gold-band h2, .gold-band h3, .gold-band p, .gold-band .pull-quote {
  color: var(--black);
}
.gold-band .eyebrow { color: rgba(0,0,0,0.55); }
.gold-band .pull-quote { color: var(--black); }
.gold-band .btn-outline {
  color: var(--black);
  border-color: rgba(0,0,0,0.4);
}
.gold-band .btn-outline:hover {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
}

/* ---- ECOSYSTEM FOOTER ---- */
.ecosystem-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}
.eco-footer-top {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
}
.eco-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
}
.eco-footer-brand .nav-logo {
  font-size: 1.3rem;
  margin-bottom: var(--sp-3);
  display: block;
  letter-spacing: 0.01em;
}
.eco-footer-brand > p {
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--sp-3);
  max-width: 300px;
}
.eco-footer-brand .motto { font-size: 1rem; color: var(--gold-dim); margin-top: var(--sp-2); }
.eco-footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}
.eco-footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.eco-footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}
.eco-footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.eco-footer-col ul li small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-faint);
  opacity: 0.5;
  margin-top: 0.1rem;
}

.eco-footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-benediction {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-muted);
}

.eco-footer-bottom p {
  font-size: 1rem;
  color: var(--text-faint);
}
.eco-footer-bottom a { color: var(--text-faint); transition: color var(--transition); }
.eco-footer-bottom a:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .eco-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (max-width: 600px) {
  .eco-footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .eco-footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- TEXTURE OVERLAY ---- */
.has-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border-mid); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ---- SELECTION ---- */
::selection { background: var(--gold); color: var(--black); }

/* ---- INLINE GOLD LINK ---- */
a.gold-link {
  color: var(--gold-muted);
  border-bottom: 1px solid var(--gold-dim);
  transition: color var(--transition), border-color var(--transition);
  padding-bottom: 1px;
}
a.gold-link:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---- RESPONSIVE HELPERS ---- */
@media (max-width: 640px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero-inner { padding-top: 7rem; }
  .pull-quote { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

