:root {
  --navy: #17324d;
  --navy-deep: #10263a;
  --blue: #2b638f;
  --teal: #397a78;
  --ink: #1e2933;
  --muted: #596773;
  --surface: #ffffff;
  --surface-soft: #f4f7f8;
  --line: #dbe3e7;
  --shadow: 0 16px 40px rgba(16, 38, 58, 0.09);
  --radius: 18px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 227, 231, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

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

.brand {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  padding-block: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--teal);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 58%, #234f6d);
  color: #ffffff;
}

.hero::after,
.page-hero::after {
  position: absolute;
  right: -10rem;
  bottom: -15rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.025), 0 0 0 10rem rgba(255, 255, 255, 0.018);
  content: "";
}

.hero-inner,
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-inner {
  padding-block: clamp(5rem, 11vw, 8rem);
}

.page-hero-inner {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  color: #a8d2d0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label {
  color: var(--teal);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 880px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 7vw, 5.6rem);
  font-weight: 800;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-title {
  max-width: 830px;
  margin: 0 0 1.25rem;
  color: #dbe8ef;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 650;
  line-height: 1.4;
}

.hero-summary,
.page-hero-summary {
  max-width: 760px;
  margin: 0;
  color: #c6d4dd;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 9px;
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  border-color: #ffffff;
  color: #ffffff;
}

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

.button-primary:hover {
  background: #eaf1f4;
  color: var(--navy-deep);
}

main {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

section + section {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

h2 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 1.14rem;
}

.lead {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

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

.card {
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 750;
}

.card-meta {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.timeline article {
  padding: 1.5rem 1.65rem;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timeline p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.clean-list {
  margin: 0;
  padding-left: 1.2rem;
}

.clean-list li + li {
  margin-top: 0.45rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 650;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  color: #ffffff;
}

.contact-card p {
  max-width: 690px;
  margin-bottom: 0;
  color: #d4e0e7;
}

.contact-link {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 750;
}

.contact-link:hover {
  color: #ffffff;
}

footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

@media (max-width: 900px) {
  .card-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    min-height: auto;
    padding-block: 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .site-nav ul {
    width: max-content;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.5rem, var(--content));
  }

  .hero-inner {
    padding-block: 4.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

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