/* darrellnelson.org — main stylesheet
   Dark, flat, professional. No blobs. */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Epilogue:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --bg:       #07090e;
  --surface:  #0c1018;
  --surface2: #101620;
  --border:   #1d2535;
  --border2:  #2b3a52;
  --text:     #dce4f4;
  --muted:    #68788f;
  --dim:      #3a4a5e;
  --accent:   #4f8ff7;
  --accent2:  #38c9a8;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Epilogue', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius:   3px;
  --max-w:    1100px;
  --t:        0.18s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }

/* ── NOISE GRAIN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
}

/* ── SKIP NAV ── */
.skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border2);
  z-index: 9999;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(7,9,14,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-bar {
  width: 3px;
  height: 36px;
  background: var(--accent);
  flex-shrink: 0;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--muted);
  transition: all var(--t);
}

/* ── DIVIDER ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── HERO ── */
.hero {
  padding: 72px 0 60px;
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem;
  align-items: start;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 6.5vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ── BUTTONS ── */
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius);
  transition: all var(--t);
  cursor: pointer;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { opacity: 0.86; }
.btn.full { width: 100%; }

/* ── SOCIAL CHIPS ── */
.social-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius);
  transition: all var(--t);
}
.chip:hover { color: var(--muted); border-color: var(--border2); }

/* ── PROFILE CARD ── */
.profile-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  position: sticky;
  top: 76px;
}

.profile-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background-image: url('../img/headshot.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border2);
  flex-shrink: 0;
}

.p-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1;
}
.p-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
}
.p-loc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
  margin-top: 2px;
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-k {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.stat-v {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.profile-actions {
  display: grid;
  gap: 8px;
}

/* ── SECTION WRAPPER ── */
.section {
  padding: 56px 0;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.section-head p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── VENTURES GRID ── */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.venture-card {
  background: var(--bg);
  padding: 28px;
  position: relative;
  transition: background var(--t);
}

.venture-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--dim);
  transition: background var(--t), box-shadow var(--t);
}
.venture-card:hover { background: var(--surface); }
.venture-card:hover::before { background: var(--accent); }

.venture-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.venture-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 4px 8px;
  border-radius: var(--radius);
  flex-shrink: 0;
  white-space: nowrap;
}

.venture-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.site-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: color var(--t);
}
.site-link:hover { color: var(--text); }

/* ── WORK / CLIENT SECTION ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  align-items: stretch;
}

.work-card {
  background: var(--bg);
  padding: 28px;
  position: relative;
  transition: background var(--t);
  display: flex;
  flex-direction: column;
}

.work-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--work-color, var(--dim));
  transition: opacity var(--t);
  opacity: 0.4;
}
.work-card:hover { background: var(--surface); }
.work-card:hover::before { opacity: 1; }

.work-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.work-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1;
}

.work-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

/* ── BIO ── */
.bio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: var(--radius);
}

.bio-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}
.bio-card p + p { margin-top: 14px; }

.bio-card p strong {
  color: var(--text);
  font-weight: 600;
}

.pullquote {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 300;
  color: var(--text);
  font-style: italic;
}

/* ── CONNECT ── */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.connect-card {
  background: var(--bg);
  padding: 28px;
  position: relative;
  transition: background var(--t);
}
.connect-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--dim);
  transition: background var(--t);
}
.connect-card:hover { background: var(--surface); }
.connect-card:hover::before { background: var(--accent2); }

.connect-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.connect-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.connect-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.connect-links .sep {
  color: var(--dim);
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.32s; }
.d4 { animation-delay: 0.44s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    position: static;
  }
  .avatar { width: 64px; height: 64px; }
}

@media (max-width: 680px) {
  .ventures-grid,
  .work-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }
  .logo-sub { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(7,9,14,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem 2rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
}
