:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #fffaf1;
  --surface-strong: #ffffff;
  --ink: #19201f;
  --muted: #66716d;
  --line: #d9d3c8;
  --teal: #1b7872;
  --teal-dark: #115652;
  --amber: #c8872f;
  --charcoal: #23302e;
  --slate: #34433f;
  --shadow: 0 24px 70px rgba(36, 46, 43, 0.14);
  --max: 1180px;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 420px),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(27, 120, 114, 0.36);
  outline-offset: 4px;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(217, 211, 200, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(36, 46, 43, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 16px 44px rgba(36, 46, 43, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--charcoal);
  color: #fffaf1;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(27, 120, 114, 0.1);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.section-pad,
.content-section,
.experience-preview,
.contact-section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 76px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3.6rem, 12vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 28px;
  color: #46524f;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 750;
  line-height: 1.2;
}

.button-primary {
  background: var(--teal);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--charcoal);
}

.button-secondary:hover {
  border-color: rgba(27, 120, 114, 0.38);
  color: var(--teal-dark);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.cred-grid div {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(217, 211, 200, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.74);
}

.cred-grid dt {
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 850;
}

.cred-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.profile-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(217, 211, 200, 0.96);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(238, 245, 241, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.profile-card,
.profile-metrics div {
  border: 1px solid rgba(217, 211, 200, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.profile-card {
  padding: 16px;
}

.profile-card-main {
  background: var(--charcoal);
  color: #f8efe1;
}

.profile-card-main .card-label {
  color: #91d0ca;
}

.profile-card-main h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.12;
}

.profile-card-main p:last-child {
  margin-bottom: 0;
  color: #d7e2df;
}

.card-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-metrics strong,
.profile-metrics span,
.cert-card strong,
.cert-card span {
  display: block;
}

.profile-metrics div {
  min-height: 112px;
  padding: 14px;
}

.profile-metrics strong {
  margin-bottom: 6px;
  color: var(--charcoal);
  font-size: 1.55rem;
  line-height: 1;
}

.profile-metrics span,
.cert-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.fit-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.stack-cloud {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 6px 9px;
  border: 1px solid rgba(27, 120, 114, 0.2);
  border-radius: 999px;
  background: rgba(27, 120, 114, 0.09);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.cert-card strong {
  margin-bottom: 6px;
  color: var(--charcoal);
  line-height: 1.25;
}

.experience-preview {
  padding: 28px 0 52px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  color: var(--charcoal);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.preview-strip,
.skill-columns,
.project-grid {
  display: grid;
  gap: 14px;
}

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

.preview-strip article,
.skill-columns article,
.project-card,
.timeline-item {
  border: 1px solid rgba(217, 211, 200, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.72);
}

.preview-strip article {
  min-height: 150px;
  padding: 18px;
}

.preview-strip span,
.date-range,
.project-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-strip h3,
.project-card h3,
.timeline-item h3,
.skill-columns h3 {
  margin-bottom: 8px;
  color: var(--charcoal);
  line-height: 1.2;
}

.preview-strip p,
.project-card p,
.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.content-section {
  padding: 68px 0;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 22px;
}

.skills-section {
  border-block: 1px solid rgba(217, 211, 200, 0.74);
}

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

.skill-columns article,
.project-card {
  padding: 22px;
}

.skill-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

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

.project-card {
  min-height: 230px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #fffaf1;
}

.contact-section .eyebrow {
  color: #91d0ca;
}

.contact-section h2 {
  color: #fffaf1;
}

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

.contact-section .button-secondary {
  border-color: rgba(255, 250, 241, 0.28);
  background: rgba(255, 250, 241, 0.08);
  color: #fffaf1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .profile-panel {
    max-width: 680px;
  }

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

  .timeline-item,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header,
  .section-pad,
  .content-section,
  .experience-preview,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
  }

  .cred-grid,
  .preview-strip,
  .skill-columns,
  .project-grid,
  .stack-cloud {
    grid-template-columns: 1fr;
  }

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

  .contact-section {
    padding: 26px 20px;
  }

  .contact-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

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