:root {
  --ink: #111827;
  --ink-soft: #263241;
  --muted: #667085;
  --line: #d8e0e5;
  --paper: #f5f7f8;
  --surface: #ffffff;
  --surface-strong: #f9fbfb;
  --accent: #0e7c75;
  --accent-dark: #075a55;
  --accent-soft: #dff3f0;
  --amber: #b7832f;
  --shadow: 0 22px 70px rgba(17, 24, 39, 0.11);
  --shadow-soft: 0 14px 42px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(14, 124, 117, 0.13), transparent 34%),
    linear-gradient(180deg, #fbfcfc 0%, var(--paper) 38%, #ffffff 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 224, 229, 0.82);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  animation: float-in 520ms ease both;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.brand,
.nav,
.hero-actions,
.contact-actions,
.project-topline,
.profile-head,
.hero-proof,
.work-tags {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0f9a91);
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(14, 124, 117, 0.24);
}

.nav {
  gap: 4px;
}

.nav a {
  padding: 8px 11px;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
  outline: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 34px;
  min-height: calc(100vh - 86px);
  padding: 76px 0 42px;
  align-items: center;
}

.hero-content {
  max-width: 820px;
  min-width: 0;
  animation: float-in 680ms 80ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.03;
}

h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.24;
}

.hero-copy {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.09);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(14, 124, 117, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary,
.button.ghost {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.82);
}

.button.ghost {
  color: var(--ink-soft);
}

.hero-proof {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-proof span,
.work-tags li,
.project-card li {
  padding: 7px 10px;
  color: var(--accent-dark);
  background: rgba(223, 243, 240, 0.88);
  border: 1px solid rgba(14, 124, 117, 0.13);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-proof span:hover,
.work-tags li:hover,
.project-card li:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 124, 117, 0.32);
  background: rgba(223, 243, 240, 1);
}

.profile-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 251, 0.96)),
    var(--surface);
  border: 1px solid rgba(216, 224, 229, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: float-in 720ms 180ms ease both;
}

.profile-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--accent), #47b3aa, var(--amber));
}

.profile-head {
  justify-content: space-between;
  gap: 22px;
}

.avatar {
  flex: 0 0 auto;
  width: clamp(150px, 15vw, 214px);
  height: clamp(150px, 15vw, 214px);
  border: 5px solid #fff;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 38%;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.profile-panel:hover .avatar {
  transform: scale(1.025);
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.2);
}

.profile-name {
  margin-bottom: 1px;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 950;
  line-height: 1.02;
}

.profile-meta,
.muted {
  color: var(--muted);
}

.stats {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.stats div {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.stats dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.profile-note {
  margin-top: 18px;
  padding: 16px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-note p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.section {
  padding: 80px 0;
}

.intro,
.contact-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.contact-section p {
  color: var(--ink-soft);
  font-size: 1.14rem;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 6px;
}

.impact-strip article {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.impact-strip strong,
.impact-strip span {
  display: block;
}

.impact-strip strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.04rem;
}

.impact-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 32px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.045);
}

.timeline-date {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 950;
}

.work-tags,
.project-card ul {
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-item p:last-child,
.project-card p:last-child,
.skills-grid p,
.credential-grid p:last-child {
  margin-bottom: 0;
}

.project-grid,
.skills-grid,
.credential-grid {
  display: grid;
  gap: 16px;
}

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

.project-card,
.skills-grid article,
.credential-grid article {
  min-height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.045);
}

.timeline-item,
.project-card,
.skills-grid article,
.credential-grid article,
.impact-strip article {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.timeline-item:hover,
.project-card:hover,
.skills-grid article:hover,
.credential-grid article:hover,
.impact-strip article:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 124, 117, 0.26);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.085);
}

.project-card.featured {
  border-color: rgba(14, 124, 117, 0.34);
  background:
    linear-gradient(135deg, rgba(223, 243, 240, 0.72), rgba(255, 255, 255, 0.92)),
    var(--surface);
}

.project-topline {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-topline a {
  color: var(--accent-dark);
  text-decoration: none;
}

.skills-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.contact-section {
  align-items: center;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 48px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

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

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

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

@media (max-width: 940px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .intro,
  .contact-section,
  .timeline-item,
  .project-grid,
  .skills-grid,
  .credential-grid,
  .impact-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .footer {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 42px 0 32px;
  }

  h1 {
    max-width: calc(100vw - 22px);
    font-size: 1.68rem;
    line-height: 1;
    overflow-wrap: break-word;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-proof span {
    flex: 1 1 100%;
    text-align: center;
  }

  .timeline-item,
  .project-card,
  .skills-grid article,
  .credential-grid article,
  .profile-panel,
  .impact-strip article {
    padding: 18px;
  }

  .profile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: flex-start;
    gap: 14px;
  }

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

  .footer {
    flex-direction: column;
  }
}
