:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #eef4f2;
  --ink: #151821;
  --muted: #5c6675;
  --line: #dce3ea;
  --blue: #2855d9;
  --green: #16715b;
  --coral: #c94d32;
  --navy: #172033;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(40, 85, 217, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, #edf3f6 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.85rem max(1.25rem, calc((100vw - 1160px) / 2));
  background: rgba(246, 248, 251, 0.9);
  border-bottom: 1px solid rgba(220, 227, 234, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--blue), var(--green) 52%, var(--coral));
  box-shadow: 0 10px 24px rgba(40, 85, 217, 0.2);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--line);
}

.section {
  padding: 5rem 1.25rem;
}

.content-width {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 72vh;
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow,
.card-kicker,
.summary-label {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 1.1rem;
  color: var(--navy);
  font-size: 5.5rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 2.4rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.8rem;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
}

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(220, 227, 234, 0.9);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.profile-summary {
  border-left: 4px solid var(--coral);
  padding: 0.4rem 0 0.4rem 1rem;
}

.profile-summary p:last-child,
.copy-block p:last-child,
.project-card p:last-child,
.contact-band h2 {
  margin-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 3rem;
}

.about-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.copy-block {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.07);
}

.project-card p {
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.project-card a:hover,
.project-card a:focus-visible {
  text-decoration: underline;
}

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

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.link-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  padding: 0.75rem 0.95rem;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.page-hero {
  padding-top: 5.5rem;
  padding-bottom: 3rem;
}

.page-hero h1 {
  max-width: 12ch;
}

.project-detail {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.4fr);
  gap: 2rem;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 1rem;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

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

.detail-panel ul {
  color: var(--muted);
  margin-top: 0;
  padding-left: 1.25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(22, 113, 91, 0.12);
  color: var(--green);
  font-weight: 800;
  padding: 0.4rem 0.75rem;
}

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

  .top-nav {
    width: 100%;
    padding-bottom: 0.1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .two-column,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2rem;
  }

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

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

  .link-list {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 3.5rem 1rem;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .top-nav a {
    font-size: 0.88rem;
    padding: 0.58rem 0.7rem;
  }

  h1 {
    font-size: 2.85rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .button,
  .link-list a {
    width: 100%;
  }
}
