@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #e9eef5;
  --border: #d4dde8;
  --text: #122033;
  --text-muted: #5a6778;
  --accent: #0f4c81;
  --accent-soft: #dbe8f4;
  --shadow: 0 18px 40px rgba(18, 32, 51, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1120px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

p,
li,
.fact-value,
.contact-value,
.detail-title {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", serif;
  text-wrap: balance;
}

ul {
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: rgba(244, 247, 251, 0.96);
  border-bottom: 1px solid rgba(212, 221, 232, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark,
.portrait-mark,
.card-badge,
.experience-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(18, 32, 51, 0.07);
}

.page-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.hero,
.section {
  scroll-margin-top: 7rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2rem 0 1rem;
}

.hero-copy {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-summary {
  color: var(--text-muted);
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.hero-panel,
.card,
.experience-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.hero-photo {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 28px rgba(18, 32, 51, 0.16);
}

.hero-logo {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
}

.fact-list {
  display: grid;
  gap: 1rem;
}

.fact-item {
  padding-top: 1rem;
  border-top: 1px solid var(--surface-muted);
}

.fact-item:first-child {
  padding-top: 0;
  border-top: none;
}

.fact-label,
.contact-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.fact-value {
  font-weight: 700;
}

.section {
  padding-top: 5rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
}

.about-grid,
.highlights-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.stack,
.experience-grid {
  display: grid;
  gap: 1.25rem;
}

.experience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.experience-card {
  padding: 1.5rem;
}

.card h3,
.experience-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.card p + p {
  margin-top: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tag-list li {
  padding: 0.6rem 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
}

.detail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.card-badge {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  flex-shrink: 0;
}

.detail-media {
  width: 120px;
  max-width: 120px;
  height: 120px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
  padding: 0.35rem;
}

.detail-media-small {
  width: 120px;
  max-width: 120px;
  height: 120px;
}

.detail-title {
  color: var(--text-muted);
  font-weight: 700;
}

.experience-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.experience-mark {
  min-width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  padding: 0 0.65rem;
  font-size: 0.9rem;
}

.experience-card-media {
  width: 100%;
  max-width: 220px;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.bullet-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-value {
  display: block;
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.28);
}

.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
}

@media (max-width: 920px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .about-grid,
  .highlights-grid,
  .experience-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem;
  }

  .page-shell {
    padding: 1.5rem 1rem 4rem;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .experience-card,
  .contact-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .detail-card,
  .experience-header {
    grid-template-columns: 1fr;
  }

  .detail-media,
  .experience-card-media {
    max-width: 100%;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}
