:root {
  color-scheme: light;
  --ink: #17212f;
  --ink-soft: #252f3d;
  --muted: #343f4d;
  --accent: #176b58;
  --accent-dark: #105544;
  --accent-soft: #e8f2ef;
  --paper: #ffffff;
  --canvas: #f7f8f6;
  --line: #e3e8e5;
  --container: 1120px;
  --radius: 14px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #83bcae;
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgb(227 232 229 / 85%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

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

.brand {
  color: var(--ink);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1.5px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 550;
}

.nav-links a,
.social-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.social-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.nav-links .nav-contact {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
}

.nav-contact span {
  margin-left: 5px;
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

.section-wrap {
  position: relative;
}

.hero {
  min-height: 660px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 28%, rgb(224 238 232 / 50%), transparent 36%),
    linear-gradient(180deg, #fbfcfa 0%, #fff 100%);
  animation: hero-appear 520ms ease-out both;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 80px;
  padding-top: 72px;
  padding-bottom: 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 25px;
  height: 1px;
  background: var(--accent);
}

.eyebrow-dot {
  color: #526052;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 1.04;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lede {
  max-width: 590px;
  margin: 27px 0 10px;
  color: var(--ink);
  font-size: clamp(21px, 2.45vw, 29px);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.hero-summary {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #bdcdc6;
}

.social-links {
  display: flex;
  gap: 25px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.social-links span {
  margin-left: 3px;
  color: #47564d;
}

.focus-card {
  padding: 29px;
  border: 1px solid #dce6e0;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 20px 55px rgb(38 64 54 / 7%);
  animation: hero-appear 620ms 100ms ease-out both;
}

.focus-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.focus-mark {
  width: 38px;
  height: 38px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
}

.card-kicker {
  margin: 1px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-card h2 {
  max-width: 260px;
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.focus-list {
  display: grid;
  gap: 19px;
  margin: 23px 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  display: flex;
  gap: 14px;
}

.focus-list li > span {
  padding-top: 1px;
  color: #607269;
  font-size: 12px;
  font-weight: 700;
}

.focus-list strong,
.focus-list small {
  display: block;
}

.focus-list strong {
  font-size: 14px;
  font-weight: 650;
}

.focus-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.focus-note {
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 22px;
  border-top: 1px solid rgb(227 232 229 / 75%);
  color: #536258;
  font-size: 12px;
}

.hero-bottom > span span {
  padding-inline: 5px;
  color: #59665e;
}

.hero-bottom a:hover {
  color: var(--accent);
}

.hero-bottom a span {
  margin-left: 6px;
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: var(--canvas);
}

.content-grid,
.experience-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: start;
}

.section-title {
  max-width: 480px;
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.18;
}

.about-copy {
  max-width: 610px;
  padding-top: 2px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.about-copy p {
  margin: 0 0 17px;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 650;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.text-link:hover,
.project-link:hover {
  color: var(--accent-dark);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  margin-bottom: 15px;
}

.section-heading-link {
  flex: none;
  margin-bottom: 6px;
}

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

.project-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #cbd9d2;
  box-shadow: 0 14px 34px rgb(29 52 43 / 7%);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.reveal-on-scroll.is-visible:hover {
  transform: translateY(-3px);
}

.project-card:nth-child(2),
.skill-group:nth-child(even) {
  transition-delay: 70ms;
}

.project-card-featured {
  background: linear-gradient(145deg, #fff 60%, #f5f9f6);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.project-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.project-type {
  padding: 5px 9px;
  border-radius: 20px;
  background: #f1f5f2;
  color: #303c34;
  font-size: 12px;
  font-weight: 650;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.project-card > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.tag-list li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #303b34;
  font-size: 12px;
  font-weight: 600;
}

.project-link,
.contact-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: auto;
}

.project-card > .project-link {
  margin-top: auto;
}

.experience-card {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 25px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.experience-date {
  padding-top: 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.experience-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.experience-company {
  margin: 4px 0 19px;
  color: var(--muted);
  font-size: 14px;
}

.experience-company span {
  padding-inline: 4px;
}

.experience-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.experience-list li::marker {
  color: var(--accent);
}

.section-intro {
  max-width: 270px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 15px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-group {
  min-height: 110px;
  padding: 21px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-group h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.skill-group p span {
  padding-inline: 3px;
  color: #4b574f;
}

.contact-section {
  padding: 78px 0;
  background: #183c34;
  color: #fff;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-section .eyebrow {
  color: #b7d8cb;
}

.contact-section .eyebrow-line {
  background: #b7d8cb;
}

.contact-section h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 1.18;
}

.contact-section > .container > div:first-child > p:last-child {
  margin: 12px 0 0;
  color: #c6d7d1;
  font-size: 15px;
}

.contact-actions {
  display: grid;
  justify-items: start;
  gap: 15px;
  flex: none;
}

.button-light {
  background: #fff;
  color: #183c34;
}

.button-light:hover {
  background: #eff5f2;
}

.contact-profile {
  color: #d6e6df;
}

.contact-profile:hover {
  color: #fff;
}

.site-footer {
  background: #142f29;
  color: #c7d4cf;
}

.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.footer-brand {
  color: #fff;
  font-size: 18px;
}

.footer-inner p {
  margin: 0;
  color: #aabbb4;
}

.footer-inner p span {
  padding-inline: 4px;
  color: #70877d;
}

.site-footer a {
  color: #dce6e1;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 38px;
  }

  .content-grid,
  .experience-grid {
    gap: 50px;
  }

  .nav-links {
    gap: 20px;
  }
}

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

  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .nav {
    min-height: 64px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 1.5px;
    background: var(--ink);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 20px rgb(23 33 47 / 5%);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 12px 4px;
  }

  .nav-links .nav-contact {
    margin-top: 6px;
    padding: 10px 12px;
  }

  .hero {
    min-height: unset;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 66px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(52px, 13vw, 72px);
  }

  .hero-lede {
    font-size: 23px;
  }

  .focus-card {
    max-width: 520px;
  }

  .hero-bottom {
    font-size: 10px;
  }

  .section {
    padding: 72px 0;
  }

  .content-grid,
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-title {
    font-size: 34px;
  }

  .section-heading {
    display: block;
  }

  .section-heading-link {
    margin-top: 18px;
  }

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

  .project-card {
    min-height: 290px;
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-group {
    min-height: 100px;
    padding: 17px 14px;
  }

  .contact-inner {
    display: block;
  }

  .contact-actions {
    margin-top: 25px;
  }
}

@media (max-width: 420px) {
  .hero-bottom {
    align-items: flex-start;
    gap: 15px;
  }

  .hero-bottom > span {
    max-width: 175px;
  }

  .hero-bottom a {
    text-align: right;
  }

  .social-links {
    gap: 17px;
  }

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

  .footer-inner {
    min-height: 85px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 15px;
  }

  .footer-inner p {
    order: 1;
    width: 100%;
  }
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
