/* ─── Fonts ──────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg-primary:   #0f0f1a;
  --bg-card:      #1a1a2e;
  --bg-card-alt:  #21213a;
  --accent:       #FC4C02;
  --accent-dim:   rgba(252, 76, 2, 0.12);
  --accent-glow:  rgba(252, 76, 2, 0.35);
  --accent-border:rgba(252, 76, 2, 0.35);
  --text-primary: #ffffff;
  --text-sec:     #9999bb;
  --text-muted:   #55556a;
  --border:       rgba(255, 255, 255, 0.07);
  --radius:       12px;
  --radius-sm:    8px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --container:    1100px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { display: block; }

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

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-sec);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}
.section-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── Top Nav ────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 56px;
  animation: fadeInUp 0.45s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}
.hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
}
.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00d26a;
  border: 2px solid var(--bg-primary);
}
.hero-info { flex: 1; }
.role-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  margin-bottom: 14px;
}
.hero-name {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-sec);
  font-style: italic;
  margin-bottom: 16px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hero-meta .sep { color: var(--text-muted); }
.available { color: #00d26a; font-weight: 600; }
.hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sec);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: border-color 0.15s, color 0.15s;
}
.hero-link:hover { color: var(--text-primary); border-color: var(--accent-border); text-decoration: none; }
.hero-link--strava { color: var(--accent); border-color: var(--accent-border); }
.hero-link--strava:hover { background: var(--accent-dim); }

/* ─── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  border-right: 1px solid var(--border);
  flex: 1;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Trophy Wall ────────────────────────────────────────────────────────── */
.trophy-wall { background: var(--bg-primary); }
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.trophy-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}
.trophy-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.trophy-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.trophy-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.trophy-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.trophy-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.trophy-trait {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

/* ─── Experience (Activity Feed) ─────────────────────────────────────────── */
.experience { background: var(--bg-card); }
.activity-feed {
  position: relative;
  padding-left: 28px;
}
.activity-feed::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dim));
  border-radius: 2px;
}
.activity-card {
  position: relative;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: border-color 0.15s;
}
.activity-card:hover { border-color: var(--accent-border); }
.activity-card::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--accent-border);
}
.activity-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.company-logo-fallback {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
  user-select: none;
}
.activity-role {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
}
.activity-company {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.activity-sep { color: var(--text-muted); font-size: 0.85rem; }
.activity-date {
  font-size: 0.8rem;
  color: var(--text-sec);
}
.activity-metric {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 2px 10px;
}
.activity-desc {
  font-size: 0.88rem;
  color: var(--text-sec);
  margin-bottom: 12px;
  line-height: 1.5;
}
.activity-achievements {
  margin-bottom: 16px;
}
.activity-achievements li {
  font-size: 0.85rem;
  color: var(--text-primary);
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.5;
}
.activity-achievements li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sec);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* ─── Gear Locker ────────────────────────────────────────────────────────── */
.gear-locker { background: var(--bg-primary); }
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.gear-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.gear-cat-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.gear-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gear-item {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sec);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.gear-item.primary {
  color: var(--text-primary);
  background: var(--accent-dim);
  border-color: var(--accent-border);
  font-weight: 700;
}

/* ─── Key Systems ────────────────────────────────────────────────────────── */
.systems { background: var(--bg-card); }
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.system-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s;
}
.system-card:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); }
.system-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.system-org {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.system-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.system-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.system-desc {
  font-size: 0.84rem;
  color: var(--text-sec);
  line-height: 1.55;
  margin-bottom: 16px;
}
.system-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
}
.system-stat {
  color: var(--text-sec);
}
.system-stat strong { color: var(--text-primary); font-weight: 700; }
.system-stack {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-basis: 100%;
}

/* ─── Leadership ─────────────────────────────────────────────────────────── */
.leadership { background: var(--bg-primary); }
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.lead-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.lead-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.lead-desc {
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.55;
}

/* ─── Beyond the Code ────────────────────────────────────────────────────── */
.beyond { background: var(--bg-card); }
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.beyond-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.beyond-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.beyond-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.beyond-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.beyond-body {
  font-size: 0.84rem;
  color: var(--text-sec);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.beyond-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}
.beyond-link:hover { text-decoration: underline; }
.beyond-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; color: #fff; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  transition: background 0.15s;
  letter-spacing: 0.02em;
}
.btn-secondary:hover { background: var(--accent-dim); text-decoration: none; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .systems-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .beyond-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .topnav { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .hero-name { font-size: 2rem; }
  .hero-links { justify-content: center; }
  .stats-grid { flex-direction: column; gap: 20px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .trophy-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-metric { margin-left: 0; }
  .leadership-grid { grid-template-columns: 1fr; }
  .beyond-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.75rem; }
  .trophy-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trophy-card { padding: 16px 10px; }
  .trophy-img { width: 64px; height: 64px; }
  .gear-grid { grid-template-columns: 1fr; }
  .beyond-grid { grid-template-columns: 1fr; }
  .activity-feed { padding-left: 20px; }
  .activity-card { padding: 18px 16px; }
  .activity-card::before { left: -23px; }
  .activity-feed::before { left: 4px; }
}
