:root {
  --bg: #0f1229;
  --bg-alt: #141936;
  --surface: #1b2247;
  --border: #2a3260;
  --text: #eef0fa;
  --text-dim: #a6adcf;
  --orange: #f5821f;
  --blue: #4d8dff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 18, 41, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav { display: flex; gap: 28px; }

.nav a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

.nav a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  background: radial-gradient(circle at 20% 20%, rgba(245, 130, 31, 0.12), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(77, 141, 255, 0.14), transparent 45%);
}

.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 16px; }

.hero-sub {
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover { transform: translateY(-1px); opacity: 0.92; }

.btn-primary { background: var(--orange); color: #12142a; }

.btn-ghost { border: 1px solid var(--border); color: var(--text); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Sections */
.section { padding: 88px 0; }

.section-alt { background: var(--bg-alt); }

.section-tag {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 28px; }

.lede { max-width: 700px; color: var(--text-dim); font-size: 1.05rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }

.timeline-item {
  position: relative;
  padding: 0 0 48px 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--bg-alt);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-date {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.timeline-body h3 { font-size: 1.25rem; margin-bottom: 4px; }

.timeline-org { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 12px; font-style: italic; }

.timeline-body p { color: var(--text-dim); }

.timeline-body ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-dim); }

.timeline-body li { margin-bottom: 8px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover { border-color: var(--orange); transform: translateY(-2px); }

.card-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.accent-orange { color: var(--orange); }
.accent-blue { color: var(--blue); }

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.card p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }

.tag-cloud span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Credentials */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.cred-col h3 {
  font-size: 1rem;
  color: var(--blue);
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.cred-list { list-style: none; margin: 0; padding: 0; color: var(--text-dim); font-size: 0.92rem; }

.cred-list li { margin-bottom: 12px; padding-left: 18px; position: relative; }

.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* Contact */
.contact-section { text-align: left; }

.contact-links { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Scroll fade-in */
.section, .hero { opacity: 1; }
.fade-target { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-target.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .card-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}
