:root {
  --ink: #101714;
  --muted: #5b6661;
  --paper: #f3f4ef;
  --white: #ffffff;
  --line: #d9ded9;
  --green: #174b3b;
  --dark: #0d1815;
  --mint: #8de0bb;
  --lime: #d8f56a;
  --radius: 20px;
  --content: 1180px;
  --shadow: 0 18px 48px rgb(16 23 20 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgb(16 23 20 / 8%);
  background: rgb(243 244 239 / 90%);
  backdrop-filter: blur(16px);
}

.nav-inner,
main,
footer {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.nav-inner {
  display: grid;
  min-height: 72px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--dark);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 850;
}

.brand strong {
  font-size: 0.88rem;
}

.topbar nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 2.3vw, 30px);
}

.topbar nav a,
.nav-cv {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

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

.nav-cv {
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
}

.nav-cv:hover {
  background: var(--green);
  color: var(--white);
}

.hero {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: clamp(36px, 5vw, 60px);
  margin-top: 24px;
  padding: clamp(48px, 5vw, 64px);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 6%, rgb(141 224 187 / 20%), transparent 28%),
    var(--dark);
  color: var(--white);
}

.hero-copy,
.hero-panel,
.section-heading,
.profile-content,
.project-card,
.project-content {
  min-width: 0;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: #3f7563;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--mint);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.7rem, 4.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.positioning {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
}

.availability {
  display: flex;
  max-width: 720px;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.84rem;
}

.availability span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 0.48em;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgb(216 245 106 / 10%);
}

.availability .availability-text {
  width: auto;
  height: auto;
  min-width: 0;
  flex: 1;
  margin: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

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

.hero-panel {
  padding: 26px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
}

.hero-panel > p {
  margin: 0 0 5px;
  color: rgb(255 255 255 / 52%);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel > strong {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}

.hero-panel ol {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid rgb(255 255 255 / 11%);
  color: rgb(255 255 255 / 76%);
  font-size: 0.82rem;
}

.hero-panel li span {
  color: var(--mint);
  font-size: 0.66rem;
  font-weight: 850;
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 4px;
}

.tech-strip span,
.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.section {
  padding: clamp(58px, 7vw, 86px) 0;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.profile .section-heading h2 {
  font-size: clamp(2rem, 3.55vw, 3.15rem);
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading > p:last-child:not(.kicker) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px clamp(48px, 8vw, 110px);
}

.profile-content {
  color: var(--muted);
}

.profile-content p {
  margin: 0 0 18px;
}

.profile-content .lead {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-underline-offset: 4px;
}

.profile-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-facts div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 56%);
}

.profile-facts strong,
.profile-facts span {
  display: block;
}

.profile-facts strong {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.profile-facts span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.capabilities article {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.capabilities article > span {
  color: #77817c;
  font-size: 0.68rem;
  font-weight: 850;
}

.capabilities h3 {
  margin: 24px 0 10px;
  font-size: 1.3rem;
  line-height: 1.12;
}

.capabilities p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.project-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgb(16 23 20 / 2%);
}

.project-card.featured {
  border-color: rgb(23 75 59 / 34%);
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e9eeeb;
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease;
}

.project-image img[src*="education-crm"] {
  object-position: top center;
}

.project-card:hover .project-image img,
.project-image:focus-visible img {
  transform: scale(1.012);
}

.project-image:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.project-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.project-status b {
  color: var(--green);
  white-space: nowrap;
}

.project-content h3 {
  margin: 17px 0 10px;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.project-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
}

.project-actions::before {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  content: "";
}

.project-actions a {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

.project-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.other-projects {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 8vw, 104px);
}

.project-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.project-list > div,
.project-list > a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.project-list > * > span {
  color: #87908c;
  font-size: 0.64rem;
  font-weight: 850;
}

.project-list strong {
  font-size: 0.9rem;
}

.project-list em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  text-align: right;
}

.project-list a:hover strong {
  color: var(--green);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(42px, 8vw, 100px);
  margin-bottom: 24px;
  padding: clamp(48px, 7vw, 78px);
  border-radius: 28px;
  background: var(--green);
  color: var(--white);
}

.contact .kicker {
  color: var(--mint);
}

.contact-copy > p {
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.94rem;
}

.email {
  display: inline-block;
  max-width: 100%;
  margin-top: 22px;
  color: var(--lime);
  font-size: clamp(0.96rem, 1.7vw, 1.25rem);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: rgb(255 255 255 / 72%);
  font-size: 0.76rem;
}

.contact-links a {
  font-weight: 750;
  text-underline-offset: 4px;
}

footer {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.72rem;
}

footer a {
  justify-self: end;
  text-decoration: none;
}

.footer-profile {
  display: grid;
  gap: 4px;
}

.footer-profile strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.footer-profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-profile-links a {
  justify-self: auto;
  color: var(--muted);
  font-weight: 750;
}

.footer-profile-links a:hover {
  color: var(--green);
}

@media (max-width: 1080px) {
  .topbar nav {
    display: none;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

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

  .hero-panel {
    display: none;
  }

  .profile,
  .other-projects,
  .contact {
    grid-template-columns: 1fr;
  }

  .profile .section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .project-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  .nav-inner,
  main,
  footer {
    width: min(var(--content), calc(100% - 24px));
  }

  .nav-inner {
    min-height: 64px;
  }

  .brand strong {
    display: none;
  }

  .nav-cv {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 0;
    margin-top: 12px;
    padding: 44px 20px;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .positioning {
    margin-top: 22px;
    font-size: 0.96rem;
  }

  .availability {
    font-size: 0.78rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .tech-strip {
    justify-content: flex-start;
    padding-top: 18px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(1.85rem, 9.5vw, 2.7rem);
  }

  .profile {
    gap: 30px;
  }

  .profile-facts,
  .capabilities,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .profile-facts {
    gap: 10px;
  }

  .profile-facts div {
    padding: 18px;
  }

  .capabilities {
    gap: 10px;
    margin-top: 30px;
  }

  .capabilities article {
    padding: 22px;
  }

  .project-grid {
    gap: 14px;
    margin-top: 34px;
  }

  .project-content {
    padding: 21px;
  }

  .project-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .project-content h3 {
    font-size: 1.45rem;
  }

  .project-list > div,
  .project-list > a {
    grid-template-columns: 24px 1fr;
    gap: 4px 10px;
    padding: 15px 0;
  }

  .project-list em {
    grid-column: 2;
    text-align: left;
  }

  .contact {
    gap: 28px;
    padding: 38px 20px;
    border-radius: 22px;
  }

  footer {
    display: flex;
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .footer-profile-links {
    justify-content: flex-start;
  }
}

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

  .project-image img {
    transition: none;
  }
}
