:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f6;
  --text: #172033;
  --muted: #5d687a;
  --line: #d9e0ea;
  --navy: #102a43;
  --navy-soft: #1f4d77;
  --accent: #35668f;
  --shadow: 0 18px 40px rgba(16, 42, 67, 0.08);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

p {
  color: var(--muted);
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: 2.45rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

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

.narrow {
  max-width: 760px;
}

.section {
  padding: 4.25rem 0;
}

.section.compact {
  padding-top: 3rem;
}

.muted {
  background: var(--surface-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--navy);
  font-weight: 750;
  letter-spacing: 0;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.nav-links {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #edf4fa;
  color: var(--navy);
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid,
.two-column,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-copy {
  max-width: 760px;
}

.lead {
  color: #425066;
  font-size: 1.08rem;
  line-height: 1.75;
}

.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  text-align: center;
}

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

.button.primary:hover {
  background: #0b1e31;
}

.button.secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.hero-panel,
.info-panel,
.download-panel,
.contact-card,
.project-card,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel,
.info-panel,
.download-panel,
.contact-card,
.card {
  padding: 1.25rem;
}

.hero-panel h2,
.info-panel h3 {
  font-size: 1.15rem;
}

.identity-panel {
  display: grid;
  gap: 1rem;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  padding: 1rem;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
}

.check-list li + li,
.plain-list li + li {
  margin-top: 0.55rem;
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 999px;
}

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

.card-grid,
.resume-grid {
  display: grid;
  gap: 1rem;
}

.card p:last-child,
.contact-card p:last-child,
.info-panel p:last-child,
.download-panel p:last-child {
  margin-bottom: 0;
}

.compact-card {
  box-shadow: none;
}

.callout {
  display: grid;
  gap: 1rem;
}

.link-grid {
  display: grid;
  gap: 0.6rem;
}

.link-grid a,
.text-link {
  color: var(--navy-soft);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.page-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.detail-list {
  margin: 0;
}

.detail-list div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-weight: 650;
}

.skill-list {
  display: grid;
  gap: 0.75rem;
}

.skill-item {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.skill-item span {
  color: var(--text);
  font-weight: 800;
}

.skill-item p {
  margin-bottom: 0;
}

.project-stack {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  overflow: hidden;
}

.project-header {
  padding: 1.25rem 1.25rem 0;
}

.project-grid {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.project-grid div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.project-grid p {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.85rem;
}

.timeline-marker {
  width: 14px;
  height: 14px;
  margin-top: 0.35rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.timeline-content {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.placeholder-text {
  margin-bottom: 0;
  color: #6b7280;
}

.download-panel .button,
.contact-card .button {
  width: 100%;
  margin-top: 0.75rem;
}

.contact-card h2 {
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 0;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner a {
  color: var(--navy-soft);
  font-weight: 750;
}

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

@media (min-width: 640px) {
  h1 {
    font-size: 3.2rem;
  }

  .button-row,
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }

  .button-row {
    flex-wrap: wrap;
  }

  .button {
    width: auto;
    min-width: 160px;
  }

  .card-grid.two,
  .contact-layout,
  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-inner {
    justify-content: space-between;
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    min-height: 40px;
    padding: 0.35rem 0.65rem;
    font-size: 0.94rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    align-items: center;
  }

  .two-column {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: start;
  }

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

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

  .callout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }

  .link-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    text-align: center;
  }

  .skill-item {
    grid-template-columns: 180px 1fr;
  }

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

@media (min-width: 1120px) {
  .section {
    padding: 5rem 0;
  }
}
