:root {
  --bg: #f7f7f2;
  --bg-soft: #ffffff;
  --text: #17211f;
  --muted: #5c6865;
  --line: #dde3df;
  --accent: #0f766e;
  --accent-dark: #0b4f49;
  --accent-soft: #e3f5f2;
  --gold: #b7791f;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(183, 121, 31, 0.10), transparent 26rem),
    var(--bg);
  line-height: 1.6;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 1000;
  background: var(--text);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.section-pad {
  padding: 6rem 0;
}

.section-pad.compact {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(247, 247, 242, 0.78);
  border-bottom: 1px solid rgba(221, 227, 223, 0.75);
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.brand-text {
  font-size: 1.03rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 0.65rem;
  box-shadow: 0 10px 25px rgba(23, 33, 31, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.82rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-dark);
  color: white;
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.24);
}

.btn-primary:hover {
  color: white;
  background: var(--accent);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.hero-tags span,
.project-meta span,
.chip-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.44rem 0.7rem;
}

.profile-card,
.content-card,
.skill-card,
.project-card,
.contact-card,
.metric {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(221, 227, 223, 0.88);
  box-shadow: var(--shadow);
}

.profile-card {
  border-radius: var(--radius-xl);
  padding: 1.4rem;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.profile-top h2 {
  margin: 0;
  font-size: 1.45rem;
}

.profile-top p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.avatar {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(11, 79, 73, 0.95)),
    repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255, 255, 255, 0.12) 4px, rgba(255, 255, 255, 0.12) 8px);
  font-weight: 900;
  font-size: 1.25rem;
}

.profile-list {
  margin: 1rem 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.5rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid rgba(221, 227, 223, 0.8);
}

.profile-list dt {
  color: var(--muted);
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.status-box {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.95rem;
  border-radius: var(--radius-lg);
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 760;
}

.pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.13);
}

.metrics {
  margin-top: -2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.metric strong {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-weight: 760;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 2rem;
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 105px;
}

.section-heading.centered {
  position: static;
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-note {
  margin: 0 auto;
  color: var(--muted);
  max-width: 640px;
}

.content-card {
  border-radius: var(--radius-xl);
  padding: clamp(1.35rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

.skill-card {
  border-radius: var(--radius-xl);
  padding: 1.35rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.timeline {
  position: relative;
  padding-left: 1.3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 2px;
  height: calc(100% - 0.5rem);
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.3rem - 5px);
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--accent-dark);
  font-weight: 850;
  font-size: 0.88rem;
}

.timeline-item p {
  color: var(--muted);
}

.org {
  margin-bottom: 0.5rem;
  color: var(--text) !important;
  font-weight: 800;
}

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

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.project-card.hide {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}

.project-body {
  padding: 1.2rem;
}

.project-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.project-body p {
  color: var(--muted);
}

details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 900;
}

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

details ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

details li + li {
  margin-top: 0.45rem;
}

.contact-section {
  padding-top: 2rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  border-radius: calc(var(--radius-xl) + 8px);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(11, 79, 73, 0.96)),
    var(--accent-dark);
  color: white;
}

.contact-card .eyebrow,
.contact-card p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card h2 {
  color: white;
  max-width: 760px;
}

.contact-card .btn-primary {
  background: white;
  color: var(--accent-dark);
  box-shadow: none;
}

.contact-card .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 850;
  color: var(--accent-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 960px) {
  .hero-grid,
  .split-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .section-pad,
  .section-pad.compact {
    padding: 4rem 0;
  }

  .metrics-grid,
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .profile-list div {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
