:root {
  --bg: #f4f1ea;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --sidebar: linear-gradient(180deg, #0f4c5c 0%, #0a2d36 100%);
  --sidebar-text: #f6f6f1;
  --ink: #19323c;
  --muted: #5f6e76;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.16);
  --border: rgba(25, 50, 60, 0.12);
  --shadow: 0 24px 60px rgba(15, 38, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 20%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: relative;
  background: var(--sidebar);
  color: var(--sidebar-text);
  overflow: hidden;
}

.sidebar::before,
.sidebar::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar::before {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -70px;
}

.sidebar::after {
  width: 160px;
  height: 160px;
  bottom: 40px;
  left: -60px;
}

.sidebar__inner {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 2rem;
  min-height: 100vh;
}

.avatar {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.eyebrow,
.section-tag {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.eyebrow {
  color: rgba(246, 246, 241, 0.7);
}

.profile-block h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.profile-role,
.profile-location {
  margin: 1rem 0 0;
  line-height: 1.6;
  color: rgba(246, 246, 241, 0.86);
}

.sidebar-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.sidebar-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.sidebar-card ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.8;
  color: rgba(246, 246, 241, 0.86);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a {
  min-width: 48px;
  height: 48px;
  padding: 0 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.sidebar-card .button-link {
  margin-top: 1rem;
}

.content {
  padding: 1.75rem 2rem 3rem;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  margin-bottom: 1.5rem;
}

.topbar nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(25, 50, 60, 0.1);
}

.topbar a {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  color: #0f4c5c;
  font-weight: 700;
}

.topbar a:hover,
.topbar a:focus-visible {
  background: rgba(15, 76, 92, 0.08);
  outline: none;
}

.panel {
  margin: 0 auto 1.5rem;
  max-width: 1040px;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 2.5rem;
}

.section-tag {
  color: var(--accent);
}

.panel h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.lead,
.panel p,
.timeline p,
.info-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats article,
.info-card,
.project-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.hero-stats article {
  padding: 1.35rem;
}

.stat-value {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-card {
  padding: 1.4rem;
}

.info-card h3,
.project-card h3,
.timeline h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.timeline-year {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a5800;
  font-weight: 800;
  font-size: 0.9rem;
}

.button-link {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  background: #0f4c5c;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 76, 92, 0.2);
}

.button-link--secondary {
  background: var(--accent-soft);
  color: #9a5800;
  box-shadow: none;
}

.button-link--light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
}

.button-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.project-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.grid-two--spaced {
  margin-top: 1rem;
}

.project-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
}

.project-card a {
  flex-shrink: 0;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a5800;
  font-weight: 700;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar__inner {
    position: static;
    min-height: auto;
  }

  .content {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .content,
  .sidebar__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar nav {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .panel,
  .hero-panel {
    padding: 1.4rem;
  }

  .hero-stats,
  .grid-two,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
