:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #15181e;
  --muted: #5c6674;
  --line: #d9ded8;
  --teal: #176b68;
  --teal-dark: #0d4f4e;
  --blue: #243f73;
  --gold: #b77b22;
  --soft-teal: #e3f0ed;
  --soft-blue: #e8edf7;
  --shadow: 0 20px 50px rgba(31, 41, 55, 0.11);
}

* {
  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;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(21, 24, 30, 0.08);
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(24px, 4vw, 56px);
  min-height: calc(100vh - 72px);
  align-items: center;
  padding: 54px 0 36px;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.45rem);
  line-height: 0.98;
  font-weight: 850;
}

.lead {
  max-width: 740px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

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

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.button.disabled {
  cursor: not-allowed;
  color: #7b8490;
  background: rgba(255, 255, 255, 0.55);
}

.profile-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 8px;
  background: var(--soft-teal);
  color: var(--teal-dark);
  font-weight: 750;
}

.signal {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.profile-facts {
  margin: 22px 0 0;
}

.profile-facts div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 6px 0 0;
  font-weight: 750;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.focus-strip article {
  min-height: 136px;
  padding: 22px;
  background: var(--surface);
}

.focus-strip span,
.project-type {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.focus-strip strong {
  display: block;
  max-width: 320px;
  font-size: 1.08rem;
}

.section {
  padding: 72px 0;
}

.intro-grid,
.philosophy,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.06;
}

.stacked-copy p,
.philosophy p,
.contact-copy p,
.project-copy p,
.project-card p,
.skills-grid p {
  color: var(--muted);
}

.stacked-copy p:first-child {
  margin-top: 0;
}

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

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.project-copy,
.project-card,
.skills-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-copy {
  padding: clamp(22px, 4vw, 34px);
}

.project-copy h3,
.project-card h3,
.skills-grid h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: #334155;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
  content: "";
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 750;
}

.project-visual {
  display: flex;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  flex-direction: column;
}

.project-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.project-visual figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.cards-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card,
.skills-grid article {
  padding: 22px;
}

.skill-section {
  border-top: 1px solid var(--line);
}

.skills-grid article:nth-child(2n) {
  background: var(--soft-blue);
}

.skills-grid article:nth-child(3n) {
  background: var(--soft-teal);
}

.philosophy {
  align-items: center;
}

.philosophy p {
  margin: 0;
  font-size: 1.16rem;
}

.contact-section {
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 0.9rem;
}

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section,
  .intro-grid,
  .philosophy,
  .contact-section,
  .project-feature {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 44px;
  }

  .focus-strip,
  .cards-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .project-visual img {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }
}
