﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #f5f1e8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-muted: rgba(244, 237, 224, 0.7);
  --text: #14261f;
  --text-soft: #516158;
  --heading: #102018;
  --line: rgba(20, 38, 31, 0.1);
  --accent: #0f766e;
  --accent-strong: #0a4e4a;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --gold: #b7791f;
  --navy: #29435c;
  --navy-soft: rgba(41, 67, 92, 0.12);
  --sage: #5f7a67;
  --sage-soft: rgba(95, 122, 103, 0.12);
  --wine: #7a4955;
  --wine-soft: rgba(122, 73, 85, 0.12);
  --stone: #74685a;
  --stone-soft: rgba(116, 104, 90, 0.12);
  --shadow: 0 24px 70px rgba(16, 32, 24, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(183, 121, 31, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f3eb 0%, #f2ede3 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 235, 0.72);
  border-bottom: 1px solid rgba(20, 38, 31, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #164e63 100%);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.brand-copy strong,
.footer-brand strong {
  display: block;
  color: var(--heading);
  font-size: 0.98rem;
}

.brand-copy span,
.footer-brand span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--heading);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle::before {
  transform: translateY(-6px);
}

.nav-toggle::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-2px) rotate(-45deg);
}

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

.site-nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

.hero {
  padding: 52px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 38px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  color: var(--heading);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h1 em,
.page-hero h1 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #155e75 100%);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.24);
}

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

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 38, 31, 0.05);
  min-height: 100%;
}

.stat strong {
  display: block;
  color: var(--heading);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.stat span {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profile-block {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-photo {
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center top;
  border-radius: 26px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 28px rgba(20, 38, 31, 0.12);
}

.profile-block h2,
.section-heading h2,
.section-heading h3,
.impact-card h3,
.stack-card h3,
.timeline-card h3,
.project-card h3,
.resource-card h3,
.contact-card h3,
.note-card h3,
.form-card h3,
.cta-card h3 {
  margin: 0;
  color: var(--heading);
}

.profile-block p,
.profile-list li,
.project-card p,
.stack-card p,
.impact-card p,
.resource-card p,
.contact-card p,
.timeline-content p,
.note-card p,
.resume-summary p {
  color: var(--text-soft);
}

.profile-list,
.bullet-list,
.chip-list,
.contact-list,
.timeline-list,
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.profile-list span {
  color: var(--heading);
  font-weight: 700;
}

.section {
  padding: 28px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading p,
.page-hero p {
  max-width: 60ch;
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.section-label {
  color: var(--accent-strong);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.impact-grid,
.stack-grid,
.project-grid,
.resource-grid,
.contact-grid,
.resume-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.resume-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.impact-card,
.stack-card,
.project-card,
.resource-card,
.contact-card,
.timeline-card,
.note-card,
.form-card,
.cta-card,
.resume-summary {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 38, 31, 0.06);
  box-shadow: 0 18px 46px rgba(20, 38, 31, 0.08);
}

.impact-card span,
.timeline-year,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.bullet-list,
.chip-list,
.contact-list,
.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.bullet-list li,
.chip-list li,
.contact-list li,
.resource-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 600;
}

.bullet-list.tight li,
.chip-list.tight li {
  padding: 8px 12px;
  font-size: 0.88rem;
}

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

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 0 8px;
}

.timeline-content {
  padding: 0 0 18px 22px;
  border-left: 1px solid rgba(20, 38, 31, 0.12);
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: 93px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(183, 121, 31, 0.12);
}

.timeline-content h4 {
  margin: 0;
  color: var(--heading);
  font-size: 1.08rem;
}

.timeline-content strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-strong);
}

.timeline-content p {
  margin: 10px 0 0;
  line-height: 1.7;
}

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

.cert-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 38, 31, 0.06);
  box-shadow: 0 18px 46px rgba(20, 38, 31, 0.08);
}

.cert-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(244, 237, 224, 0.9);
  padding: 10px;
}

.cert-card p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.credential-card,
.cert-card-sage,
.cert-card-burgundy {
  position: relative;
  overflow: hidden;
}

.credential-card::before,
.cert-card-sage::before,
.cert-card-burgundy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 999px;
}

.credential-card-azure {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(232, 241, 248, 0.94));
}

.credential-card-azure::before,
.cert-card-sage::before {
  background: var(--accent);
}

.credential-card-gold {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 238, 222, 0.96));
}

.credential-card-gold::before {
  background: var(--gold);
}

.credential-card-slate {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(233, 238, 244, 0.96));
}

.credential-card-slate::before {
  background: var(--navy);
}

.credential-card-wine {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 233, 236, 0.96));
}

.credential-card-wine::before,
.cert-card-burgundy::before {
  background: var(--wine);
}

.cert-card-sage {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(234, 241, 235, 0.96));
}

.cert-card-burgundy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 234, 237, 0.96));
}

.page-hero {
  padding: 52px 0 10px;
}

.page-hero .card {
  padding: 34px;
}

.resume-summary {
  display: grid;
  gap: 16px;
}

.resume-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-card a,
.contact-card a,
.note-card a,
.timeline-content a,
.footer-links a {
  color: var(--accent-strong);
}

.contact-card {
  min-height: 100%;
}

.form-card form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 38, 31, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--heading);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  border-color: rgba(15, 118, 110, 0.35);
}

.cta-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer {
  padding: 30px 0 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-soft);
  font-weight: 600;
}

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

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

@media (max-width: 1100px) {
  .hero-grid,
  .resume-grid,
  .impact-grid,
  .resource-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid,
  .project-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content));
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(20, 38, 31, 0.08);
  }

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

  .site-nav a {
    border-radius: 16px;
  }

  .hero-copy,
  .hero-panel,
  .page-hero .card,
  .impact-card,
  .stack-card,
  .project-card,
  .resource-card,
  .contact-card,
  .timeline-card,
  .note-card,
  .form-card,
  .cta-card,
  .resume-summary {
    padding: 22px;
  }

  .profile-block,
  .timeline-item,
  .cta-card,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .timeline-content::before {
    left: -6px;
  }

  .timeline-content {
    padding-left: 18px;
  }

  .timeline-year {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.5rem);
  }

  .section-heading {
    display: block;
  }

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

  .profile-photo {
    width: 92px;
    height: 92px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }
}
