:root {
  --color-primary: #3A86C1;
  --color-accent: #8DD2F5;
  --color-highlight: #F6C545;
  --color-dark: #000000;
  --color-bg: #ffffff;
  --color-muted: #f5f7fa;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
  --radius-xl: 18px;
}

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

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-placeholder {
  width: 150px;
  height: 48px;
  border: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-dark);
  background: transparent;
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
}

.header-tagline {
  font-size: 13px;
  opacity: 0.8;
}

.header-links {
  display: flex;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-links a {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* SECTIONS */

main {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

section {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title span.badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 500;
}

/* TABLES */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

th {
  background: var(--color-muted);
  font-weight: 600;
}

tr:nth-child(even) {
  background: var(--color-muted);
}

/* HERO / PROFILE */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: center;
}

.headshot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.headshot {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.role {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  color: #555;
}

.contact-list {
  margin-top: 10px;
  font-size: 14px;
  display: grid;
  gap: 5px;
  text-align: center;
}

.contact-list a {
  word-break: break-all;
}

.hero-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-summary p {
  font-size: 15px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--color-highlight);
  font-weight: 500;
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* EXPERTISE */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 4px;
}

.expertise-category h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.pill {
  background: var(--color-muted);
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.05);
  white-space: nowrap;
}

.language-list li {
  font-size: 13px;
  margin-bottom: 5px;
}

/* EMPLOYMENT HISTORY */

.timeline {
  margin-top: 4px;
  border-left: 2px solid var(--color-accent);
  padding-left: 14px;
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding-left: 4px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-highlight);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

.timeline-role {
  font-size: 15px;
  font-weight: 600;
}

.timeline-company {
  font-size: 13px;
  font-weight: 500;
  color: #444;
}

.timeline-meta {
  font-size: 12px;
  color: #777;
  margin: 2px 0 6px;
}

.timeline ul {
  margin-left: 16px;
  font-size: 13px;
}

.timeline li + li {
  margin-top: 3px;
}

/* GALLERY */

.gallery {
  margin-top: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06);
  background: #eee;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: 'View';
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  color: #fff;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ffffff;
  border-radius: 999px;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* FOOTER */

footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-placeholder {
  width: 300px;
  height: 97px;
  border-radius: 8px;
  border-width: 0px;
  font-size: 12px;
}

.footer-logo span {
  font-weight: 500;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-contact a {
  text-decoration: none;
}

/* BLOG INDEX */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}

.blog-year-header {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--color-primary);
  padding: 8px 16px;
  border-radius: 10px;
  margin-top: 8px;
}

.blog-year-header:first-child {
  margin-top: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--color-muted);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--color-accent);
  text-decoration: none;
}

.blog-card-date {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
  letter-spacing: 0.03em;
}

.blog-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.35;
  margin-top: 2px;
}

.blog-card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE */

@media (max-width: 740px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .headshot {
    width: 150px;
    height: 150px;
  }

  .page {
    padding-inline: 16px;
  }

  section {
    padding-inline: 18px;
  }
}

@media (max-width: 480px) {
  .header-links {
    justify-content: flex-start;
  }

  .hero-meta {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
