:root {
  --bg: #f4efe6;
  --surface: rgba(255, 252, 247, 0.95);
  --surface-soft: rgba(244, 239, 230, 0.84);
  --surface-green: rgba(224, 235, 220, 0.72);

  --text: #253126;
  --text-soft: #4f5d50;
  --text-muted: #6d786d;

  --accent: #5d7b60;
  --accent-dark: #314235;
  --accent-soft: #dbe7d8;

  --border: rgba(69, 89, 71, 0.12);
  --border-strong: rgba(69, 89, 71, 0.18);

  --shadow-sm: 0 10px 26px rgba(38, 48, 35, 0.05);
  --shadow-md: 0 18px 40px rgba(38, 48, 35, 0.07);

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --max-width: 1380px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(219, 231, 216, 0.62), transparent 30%),
    radial-gradient(circle at bottom right, rgba(231, 221, 198, 0.42), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.bg-accent {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.42;
}

.bg-accent-1 {
  width: 260px;
  height: 260px;
  top: -50px;
  right: -60px;
  background: #d8e6d2;
}

.bg-accent-2 {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -40px;
  background: #e8dcc7;
}

.layout {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--space-6);
}

.sidebar {
  position: sticky;
  top: var(--space-6);
  align-self: start;
  height: calc(100vh - 48px);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
  padding-bottom: var(--space-8);
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-card,
.contact-card,
.summary-card,
.card,
.hero-card {
  padding: var(--space-7);
}

.profile-card {
  background: rgba(227, 236, 223, 0.9);
}

.card-soft {
  background: var(--surface-green);
}

.profile-image-wrap {
  width: 118px;
  height: 118px;
  margin-bottom: var(--space-5);
  border-radius: 24px;
  background: linear-gradient(145deg, #edf4e9, #dbe7d8);
  border: 1px solid rgba(69, 89, 71, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile-card h1 {
  margin: 12px 0 0;
  font-size: clamp(2.1rem, 1.5rem + 1.8vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.sidebar-intro {
  margin: var(--space-5) 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.sidebar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-6);
}

.sidebar-nav a {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  transition: 180ms ease;
}

.sidebar-nav a:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.section-heading-small {
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-5);
}

.section-heading-small h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.contact-list {
  display: grid;
  gap: var(--space-5);
}

.contact-item {
  display: grid;
  gap: 4px;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  color: var(--accent-dark);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.summary-card p:last-child {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.hero-card h2,
.card h2 {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 1.2rem + 1vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  margin: 18px 0 0;
  max-width: 72ch;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.card p:not(.section-kicker) {
  color: var(--text-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: 12px;
}

.section-head-simple {
  margin-bottom: 18px;
}

.section-head h2 {
  margin-top: 8px;
}

.section-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}

.job-title {
  margin: 0 0 var(--space-5);
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 700;
}

.job-intro {
  margin: 0 0 var(--space-6);
  max-width: 72ch;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-5);
}

.tag-list span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-dark);
  font-size: 14px;
  line-height: 1.5;
}

.responsibility-list {
  display: grid;
  gap: 16px;
}

.responsibility-item {
  padding: 18px 20px;
  border: 1px solid rgba(69, 89, 71, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.responsibility-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--accent-dark);
}

.responsibility-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.skill-box {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-dark);
  font-size: 14px;
  line-height: 1.65;
}

.list-block {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.compact-list {
  margin-top: 0;
}

.list-item {
  display: grid;
  gap: 4px;
}

.list-item strong {
  font-size: 15px;
  color: var(--text);
}

.list-item span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
  }
}

@media (max-width: 820px) {
  .layout {
    padding: var(--space-4);
    gap: var(--space-5);
  }

  .content,
  .sidebar-inner,
  .grid-two,
  .skills-grid {
    gap: var(--space-5);
  }

  .grid-two,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .contact-card,
  .summary-card,
  .card,
  .hero-card {
    padding: 22px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .profile-image-wrap {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  .sidebar-nav a,
  .tag-list span,
  .skill-box {
    font-size: 13px;
  }

  .responsibility-item {
    padding: 16px;
  }
}

.quick-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.quick-meta-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

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

.quick-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  transition: 180ms ease;
}

.btn-primary {
  background: var(--accent-dark);
  color: #f8f7f3;
  border-color: var(--accent-dark);
}

.btn-primary:hover {
  background: #253529;
  border-color: #253529;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

@media (max-width: 560px) {
  .quick-meta {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}