:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --ink: #252725;
  --muted: #696d68;
  --line: #d9dcd7;
  --accent: #315b4d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
}

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

a:focus-visible,
select:focus-visible {
  outline: 3px solid #176b50;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 max(7.5%, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.header-nav a,
.language-picker select {
  font: inherit;
  font-size: 13px;
}

.header-nav a {
  color: var(--muted);
}

.header-nav a:hover,
.github-link:hover {
  color: var(--accent);
}

.language-picker select {
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.section-wrap {
  padding-right: max(7.5%, calc((100vw - 1120px) / 2));
  padding-left: max(7.5%, calc((100vw - 1120px) / 2));
}

.intro {
  position: relative;
  overflow: hidden;
  padding-top: 117px;
  padding-bottom: 113px;
}

.intro::after {
  position: absolute;
  top: 74px;
  right: max(7.5%, calc((100vw - 1120px) / 2));
  width: min(27vw, 320px);
  aspect-ratio: 1;
  border: 1px solid rgb(49 91 77 / 14%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: orbit-drift 18s ease-in-out infinite alternate;
}

.intro::before {
  position: absolute;
  top: 50%;
  right: calc(max(7.5%, (100vw - 1120px) / 2) + min(13.5vw, 160px));
  width: min(17vw, 205px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgb(49 91 77 / 15%), rgb(49 91 77 / 2%) 68%, transparent 70%);
  content: "";
  pointer-events: none;
  transform: translate(50%, -50%);
  animation: pulse 7s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
}

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

h1,
h2,
h3 {
  letter-spacing: -.04em;
}

h1 {
  max-width: 850px;
  margin-bottom: 23px;
  font-size: clamp(40px, 6.2vw, 68px);
  font-weight: 550;
  line-height: 1.12;
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 550;
}

.text-link span:last-child {
  display: inline-block;
  transition: transform .2s ease;
}

.text-link:hover span:last-child {
  transform: translateY(3px);
}

.intro-aside {
  position: absolute;
  right: max(7.5%, calc((100vw - 1120px) / 2));
  bottom: 39px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
}

.aside-rule {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.intro-aside i {
  margin: 0 3px;
  color: var(--accent);
  font-style: normal;
}

.services {
  padding-top: 76px;
  padding-bottom: 82px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  margin-top: 10px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 550;
  line-height: 1.2;
}

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

.service-item {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 24px;
  padding: 25px 0 26px;
  border-bottom: 1px solid var(--line);
}

.service-number {
  padding-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.service-item h3 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 600;
}

.service-item p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.examples {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 24px;
  padding-top: 80px;
  padding-bottom: 85px;
  background: #edf0ec;
}

.examples-heading .eyebrow {
  margin-top: 10px;
}

.examples-heading h2 {
  margin-bottom: 15px;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 550;
  line-height: 1.2;
}

.examples-note {
  max-width: 250px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.example-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.example-card {
  min-height: 210px;
  padding: 20px 18px;
  border: 1px solid #d7ddd7;
  background: rgb(247 247 245 / 65%);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}

.example-card:hover {
  transform: translateY(-4px);
  border-color: #9aada3;
  background: var(--paper);
}

.example-index {
  display: block;
  margin-bottom: 29px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .1em;
}

.example-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.example-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.about {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 24px;
  padding-top: 80px;
  padding-bottom: 83px;
  border-bottom: 1px solid var(--line);
}

.about > .eyebrow {
  margin-top: 10px;
}

.about h2 {
  margin-bottom: 18px;
}

.about-copy > p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.contact {
  display: grid;
  grid-template-columns: .8fr 1fr 1fr;
  gap: 34px;
  align-items: end;
  padding-top: 77px;
  padding-bottom: 82px;
}

.contact .eyebrow {
  margin-bottom: 12px;
}

.contact h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.contact-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  font-size: 14px;
  font-weight: 600;
}

.github-handle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.site-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(7.5%, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}

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

@keyframes orbit-drift {
  from {
    transform: translateY(-5px) rotate(-7deg);
  }

  to {
    transform: translateY(9px) rotate(7deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: .55;
    transform: translate(50%, -50%) scale(.94);
  }

  50% {
    opacity: 1;
    transform: translate(50%, -50%) scale(1.05);
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 68px;
    gap: 13px;
    padding-right: 6%;
    padding-left: 6%;
  }

  .header-nav {
    gap: 14px;
  }

  .header-nav a {
    font-size: 12px;
  }

  .section-wrap {
    padding-right: 6%;
    padding-left: 6%;
  }

  .intro {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .intro::after {
    top: 55px;
    right: -65px;
    width: 220px;
  }

  .intro::before {
    right: 45px;
    width: 135px;
  }

  .intro-aside {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 52px;
    font-size: 8px;
  }

  h1 {
    font-size: clamp(37px, 9vw, 56px);
  }

  .intro-copy {
    font-size: 15px;
  }

  .section-heading,
  .service-item,
  .about {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services,
  .about,
  .examples {
    padding-top: 60px;
    padding-bottom: 62px;
  }

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

  .section-heading .eyebrow,
  .about > .eyebrow,
  .examples-heading .eyebrow {
    margin-top: 0;
    margin-bottom: 4px;
  }

  .examples {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .examples-heading h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .examples-note {
    max-width: 400px;
  }

  .example-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .example-card {
    min-height: 0;
    padding: 18px;
  }

  .example-index {
    margin-bottom: 18px;
  }

  .service-item {
    gap: 8px;
    padding: 20px 0;
  }

  .service-number {
    font-size: 11px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 60px;
    padding-bottom: 62px;
  }

  .github-link {
    justify-self: start;
  }

  .site-footer {
    min-height: 76px;
    flex-wrap: wrap;
    gap: 7px 16px;
    padding: 16px 6%;
    font-size: 11px;
  }
}

@media (max-width: 440px) {
  .header-nav {
    gap: 10px;
  }

  .header-nav a {
    font-size: 11px;
  }

  .wordmark {
    font-size: 12px;
  }

  .language-picker select {
    font-size: 12px;
  }

  .github-link {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  * {
    scroll-behavior: auto;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
