
:root {
  --blue: #139CCB;
  --yellow: #FEDE2D;
  --dark: #0F172A;
  --text: #0F172A;
  --muted: #64748B;
  --bg: #F8FAFC;
  --max-width: 1040px;
  --radius-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--blue);
  color: white;
  padding: 16px 20px 32px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left img {
  height: 32px;
  width: auto;
}

.nav-brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.nav-links a {
  color: rgba(255,255,255,0.86);
  font-weight: 500;
}

.nav-links a:hover {
  color: white;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.12;
  margin: 0 0 8px;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.95;
  max-width: 32rem;
  margin-bottom: 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tag {
  background: rgba(15,23,42,0.12);
  color: white;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
}

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

.btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: white;
  color: var(--blue);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
}

.hero-meta {
  font-size: 0.8rem;
  opacity: 0.85;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  background: white;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 25px 50px rgba(15,23,42,0.33);
}

.hero-photo-inner {
  border-radius: 999px;
  overflow: hidden;
  width: 220px;
  height: 220px;
}

.hero-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */

section {
  padding: 48px 20px;
}

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

.section-header {
  margin-bottom: 20px;
}

.section-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.section-title {
  font-size: 1.6rem;
  margin: 6px 0 4px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
}

/* What I do */

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Impact */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.impact-pill {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.impact-metric {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 4px 0;
}

.impact-body {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Stories */

.story-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* About & interests */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: start;
}

.about-layout ul {
  padding-left: 18px;
  margin-top: 4px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 3px 9px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Talks */

.talk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Contact */

.contact-box {
  background: #0B1220;
  color: white;
  border-radius: 22px;
  padding: 24px 22px 20px;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 22px;
  align-items: center;
}

.contact-box p {
  font-size: 0.95rem;
  opacity: 0.92;
}

.contact-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Footer */

footer {
  padding: 24px 20px 32px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Back to top button */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--blue);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(15,23,42,0.35);
  text-decoration: none;
  z-index: 50;
}

.back-to-top:hover {
  text-decoration: none;
  background: #0f89b2;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* Responsive */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }
  .hero-photo-wrap {
    justify-content: flex-start;
  }
  .triptych,
  .impact-grid,
  .story-list,
  .projects-grid,
  .talk-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-box {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}

.section-top-link {
  margin-top: 18px;
  text-align: right;
}

.section-top-link a {
  font-size: 0.8rem;
  color: var(--muted);
}

.section-top-link a:hover {
  color: var(--blue);
}

