:root {
  --bg-0: #eef2f4;
  --bg-1: #f7f9fa;
  --surface: rgba(255, 255, 255, 0.78);
  --ink: #1a2428;
  --ink-soft: #4a5a62;
  --line: rgba(26, 36, 40, 0.12);
  --accent: #0f6b5c;
  --accent-soft: #d7efe9;
  --accent-deep: #0a4d42;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(26, 36, 40, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --sidebar: 300px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9ebe6 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #dfe8ef 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 107, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 107, 92, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  z-index: 0;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--accent);
}

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

.site-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.65rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand:hover {
  color: var(--accent-deep);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.profile {
  animation: rise 520ms ease both;
}

@media (min-width: 960px) {
  .profile {
    position: sticky;
    top: 1.25rem;
  }
}

.profile-card {
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(15, 107, 92, 0.15);
}

.profile-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.15;
}

.profile-role {
  margin: 0.4rem 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}

.profile-meta {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.profile-meta a {
  text-decoration: none;
  font-weight: 600;
}

.profile-meta a:hover {
  text-decoration: underline;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(15, 107, 92, 0.35);
  color: var(--accent-deep);
}

.profile-blurb {
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.content {
  min-width: 0;
  display: grid;
  gap: 1.75rem;
}

.hero {
  animation: rise 620ms ease both;
  animation-delay: 60ms;
}

.hero-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 18ch;
}

.hero p {
  margin: 0.85rem 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section {
  padding-top: 0.25rem;
  animation: rise 700ms ease both;
}

.section:nth-of-type(2) { animation-delay: 100ms; }
.section:nth-of-type(3) { animation-delay: 160ms; }
.section:nth-of-type(4) { animation-delay: 220ms; }
.section:nth-of-type(5) { animation-delay: 280ms; }

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.prose p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.highlight-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.highlight-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink);
  font-weight: 600;
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--accent-soft);
  display: grid;
  gap: 1.15rem;
}

.timeline li {
  position: relative;
  padding-left: 1.15rem;
  animation: rise 560ms ease both;
}

.timeline li:nth-child(1) { animation-delay: 80ms; }
.timeline li:nth-child(2) { animation-delay: 120ms; }
.timeline li:nth-child(3) { animation-delay: 160ms; }
.timeline li:nth-child(4) { animation-delay: 200ms; }
.timeline li:nth-child(5) { animation-delay: 240ms; }
.timeline li:nth-child(6) { animation-delay: 280ms; }
.timeline li:nth-child(7) { animation-delay: 320ms; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

@media (max-width: 639px) {
  .site-wrap {
    width: min(100% - 1.25rem, var(--wrap));
    padding-top: 0.85rem;
  }

  .site-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .profile-card {
    padding: 1.15rem 1rem 1.25rem;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .cta-row .btn {
    flex: 1 1 auto;
  }

  .job-dates {
    width: 100%;
  }

  .hero h2 {
    max-width: none;
  }
}

.job-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.job-dates {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.job-role {
  margin: 0.15rem 0 0;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.job-tech {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.edu-list,
.cert-list,
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.cert-list {
  margin-top: 1rem;
}

.edu-list li,
.cert-list li,
.service-list li {
  display: grid;
  gap: 0.15rem;
}

.edu-list strong,
.cert-list strong,
.service-list strong {
  font-weight: 700;
}

.edu-list span,
.cert-list span,
.service-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

@media (min-width: 640px) {
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contact-card:hover {
  border-color: rgba(15, 107, 92, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(26, 36, 40, 0.06);
  color: inherit;
  text-decoration: none;
}

.contact-card-wa {
  border-color: rgba(37, 211, 102, 0.35);
  background: linear-gradient(180deg, #f3fbf6 0%, #fff 70%);
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-deep);
  word-break: break-word;
}

.contact-card-wa .contact-value {
  color: #128c7e;
}

.site-footer {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0 0 0.55rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .profile,
  .hero,
  .section,
  .timeline li,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
