/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f5f5;
  --fg:          #0f0f0f;
  --fg-muted:    #666666;
  --border:      #e5e5e5;
  --accent:      #0078d4;
  --accent-soft: rgba(0, 120, 212, 0.08);
  --card-bg:     #ffffff;
  --nav-bg:      rgba(255, 255, 255, 0.85);
  --shadow:      0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
}


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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

em { font-style: italic; }
strong { font-weight: 600; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 680px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--fg) !important;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--fg-muted); background: var(--accent-soft); opacity: 1; }

.btn-large { padding: 16px 32px; font-size: 16px; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg) !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted) !important;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg) !important; opacity: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-size: 16px;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--fg-muted); color: var(--fg); background: var(--accent-soft); }

/* ── Section shared ─────────────────────────────────────────── */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 48px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}


.hero-split {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 60px;
  align-items: end;
  position: relative;
}

.hero-inner {
  max-width: 600px;
}

.hero-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero photo */
.hero-photo {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-annotation {
  position: absolute;
  top: 14%;
  right: 32%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--accent);
  pointer-events: none;
}

.hero-annotation-text {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

.hero-annotation-arrow {
  margin-left: 12px;
}

.hero-headshot {
  width: 95%;
  object-fit: contain;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: max(32px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--fg-muted);
}

/* ── About ──────────────────────────────────────────────────── */

.about-currently {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1a7a52;
  background: rgba(26, 122, 82, 0.08);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.about-currently::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: livepulse 1.8s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.about-content h2 { margin-bottom: 24px; }

.about-content p {
  color: var(--fg-muted);
  margin-bottom: 20px;
  font-size: 17px;
}

.about-content p strong { color: var(--fg); }

.about-exploring {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-exploring-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.about-exploring-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-exploring-chips span {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

/* ── Work ───────────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}


.work-card-content h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.work-card-content p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0;
}

.work-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  margin-top: 8px;
}

.work-locked::before {
  content: '🔒';
  font-size: 12px;
}

.work-card-image {
  min-height: 300px;
}

.work-card-image-placeholder {
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-placeholder-inner {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.6;
  text-align: center;
  padding: 24px;
}

/* Half-width cards */
.work-card-half {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  color: var(--fg) !important;
  transition: box-shadow 0.3s, transform 0.3s;
}
.work-card-half:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  opacity: 1;
}

.work-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}

.work-card-meta {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-card-meta h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.01em;
}

.work-card-meta p {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
}

.work-card-img-microsoft {
  background: #f0f4ff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.work-card-img-hqo {
  background: #f0f7f4;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.work-card-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1a7a52;
  opacity: 0.6;
}


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

.timeline-item {
  display: flex;
  gap: 28px;
}

.timeline-dot {
  display: none;
}

.timeline-body {
  flex: 1;
  min-width: 0;
}

.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline-company {
  font-size: 19px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.timeline-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
}

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

.timeline-body > p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0;
}

/* Microsoft nested roles */
.timeline-roles {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

.timeline-role {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
}

.timeline-role:last-child { padding-bottom: 0; }

.timeline-role-dot {
  position: absolute;
  left: -25px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  z-index: 1;
}

.timeline-role-body { flex: 1; }

.timeline-role-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.timeline-role-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.timeline-role-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
}

.timeline-role-body p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0;
}

.timeline-role-summary {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0 0 10px;
}

.timeline-role-areas {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 12px;
}

.timeline-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.timeline-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
}

/* ── Community ──────────────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.community-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.community-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.community-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 4px 10px;
}

.community-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

.community-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.community-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.community-org {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-sub {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: 40px;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg) !important;
  text-decoration: none;
}

.contact-link:hover { opacity: 0.65; }

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

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* ── Fade-in animation ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { order: -1; }
  .hero-headshot { max-width: 240px; aspect-ratio: 1/1; border-radius: 50%; }
  .photo-placeholder { aspect-ratio: 1/1; max-width: 200px; }
  .work-card-image { min-height: 200px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .skills-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-inner { margin-left: 0; }
  .hero-scroll { display: none; }
  .work-card-content { padding: 28px; }
}
