:root {
  color-scheme: light;
  --paper: #f3f6f2;
  --surface: #fffefa;
  --ink: #17211f;
  --muted: #5f6d68;
  --line: #d6ded6;
  --teal: #2c8c87;
  --coral: #e26745;
  --gold: #efb35b;
  --blue: #304971;
  --green: #789468;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 32px;
  background: rgba(243, 246, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.intro-actions,
.contact-links,
.filter-bar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.88rem;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.75);
}

.site-nav a,
.header-action,
.primary-link,
.secondary-link,
.contact-links a,
.filter-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.site-nav a {
  padding: 0 14px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--surface);
}

.header-action,
.primary-link {
  padding: 0 17px;
  color: var(--surface);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.secondary-link,
.contact-links a {
  padding: 0 17px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.header-action:hover,
.primary-link:hover,
.secondary-link:hover,
.contact-links a:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

main {
  overflow: hidden;
}

.intro-section,
.content-section,
.contact-section,
.featured-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 44px;
  align-items: center;
  min-height: 78svh;
  padding: 68px 0 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.79rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 4.65rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.intro-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.profile-stats div {
  min-height: 88px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-stats dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-stats dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.intro-media {
  position: relative;
}

.intro-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  background: var(--coral);
  border-radius: 8px;
}

.intro-media img {
  width: 100%;
  aspect-ratio: 1.26;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 74px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
}

.featured-strip a {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 22px;
  background: var(--surface);
}

.featured-strip a:hover,
.featured-strip a:focus-visible {
  background: #edf3ef;
}

.featured-strip strong {
  font-size: 1.02rem;
}

.featured-strip span {
  color: var(--muted);
  font-size: 0.93rem;
}

.content-section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 0.85fr);
  column-gap: 42px;
  row-gap: 8px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.filter-bar {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  min-width: 88px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.filter-button.is-active {
  color: var(--surface);
  background: var(--teal);
  border-color: var(--teal);
}

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

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 33, 31, 0.08);
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 12px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 8px;
  color: var(--ink);
  background: #edf3ef;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 760;
}

.timeline-section {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) calc(50% + 1px), transparent calc(50% + 1px)),
    var(--paper);
}

.timeline-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 0.68fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
  background: rgba(255, 254, 250, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-list time {
  color: var(--coral);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

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

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.interest-grid article {
  min-height: 210px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.interest-grid article:nth-child(1) {
  border-top: 6px solid var(--teal);
}

.interest-grid article:nth-child(2) {
  border-top: 6px solid var(--coral);
}

.interest-grid article:nth-child(3) {
  border-top: 6px solid var(--blue);
}

.interest-grid article:nth-child(4) {
  border-top: 6px solid var(--green);
}

.interest-grid p {
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 36px;
  margin-bottom: 34px;
  padding: 34px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 8px;
}

.contact-section .eyebrow {
  color: var(--gold);
}

.contact-section h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 2rem;
}

.contact-links {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.contact-links a {
  color: var(--ink);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
  }

  .intro-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .intro-media {
    max-width: 720px;
  }

  .featured-strip,
  .project-grid,
  .interest-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-links {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 12px 18px;
  }

  .brand-name {
    display: none;
  }

  .header-action {
    min-height: 38px;
  }

  .intro-section,
  .content-section,
  .contact-section,
  .featured-strip,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.85rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 2rem;
  }

  .profile-stats,
  .featured-strip,
  .project-grid,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .intro-media::before {
    inset: 10px -10px -10px 10px;
  }

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

  .section-heading {
    margin-bottom: 22px;
  }

  .timeline-section {
    background: var(--paper);
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .contact-section {
    padding: 24px;
  }

  .contact-section h2 {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
