/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg:              #141414;
  --surface:         #1c1c1c;
  --surface-2:       #242424;
  --surface-3:       #2c2c2c;
  --text:            #f0efed;
  --text-secondary:  #999999;
  --text-muted:      #666666;
  --accent:          #3b82f6;
  --accent-dim:      rgba(59, 130, 246, 0.12);
  --accent-border:   rgba(59, 130, 246, 0.3);
  --border:          #2a2a2a;
  --border-subtle:   #222222;
  --max-w:           860px;
  --nav-h:           60px;
  --radius:          8px;
  --radius-sm:       4px;
  --transition:      0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover { opacity: 0.8; }

ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ============================================================
   Section titles
   ============================================================ */
.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

/* ============================================================
   Navigation
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

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

.nav-logo {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo:hover { opacity: 1; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 80px;
  border-top: none;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

#hero h1 {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 520px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-stat strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

/* ============================================================
   About
   ============================================================ */
#about p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 700px;
}

#about p + p {
  margin-top: 16px;
}

/* ============================================================
   Experience
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.job {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  position: relative;
}

.job::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.job:hover::before {
  background: var(--accent);
  border-color: var(--accent);
}

.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.job-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.job-dates {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.job-role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.job-role + .job-role,
.job-role.job-role--sub {
  margin-top: 24px;
}

.job-role-dates {
  color: var(--text-muted);
  font-weight: 400;
}

.job-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}

.job-bullets {
  padding-left: 16px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-bullets li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Education
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.edu-card:hover {
  border-color: var(--accent-border);
}

.edu-degree {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.edu-field {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.edu-school {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.edu-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-details li {
  font-size: 12px;
  color: var(--text-muted);
}

.edu-details li::before {
  content: '— ';
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .edu-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Skills
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.skill-group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--text);
  opacity: 1;
}

.contact-link-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}

.form-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-note a {
  color: var(--text-muted);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
  opacity: 1;
}

/* ============================================================
   Utilities
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  section { padding: 56px 0; }
  #hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 56px; }
}

/* ============================================================
   Hero statement (WS-002)
   ============================================================ */
.hero-statement {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
  max-width: 600px;
  letter-spacing: -0.01em;
}

/* ============================================================
   How I Lead (WS-002)
   ============================================================ */
.lead-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lead-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

.lead-card:hover {
  border-color: var(--accent-border);
}

.lead-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.lead-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .lead-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   What They're Saying (WS-002)
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin: 0;
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: var(--accent-border);
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--accent-border);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 20px;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-more {
  display: flex;
  justify-content: flex-start;
}

/* ============================================================
   Beyond the Role (WS-002)
   ============================================================ */
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.beyond-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

.beyond-item:hover {
  border-color: var(--accent-border);
}

.beyond-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.beyond-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.beyond-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .beyond-grid { grid-template-columns: 1fr; gap: 32px; }
}
