:root {
  color-scheme: light;

  --paper: #f2f5f0;
  --paper-deep: #e8eee8;
  --ink: #101713;
  --muted: #657069;
  --forest: #164b35;
  --forest-deep: #092b1e;
  --moss: #477a58;
  --sage: #9fc5a5;
  --mint: #d9eadb;
  --line: #d0d9d1;
  --page-pad: clamp(22px, 6vw, 92px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--forest);
  color: white;
}

a:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

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

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

.site-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px var(--page-pad);
}

.site-nav a {
  text-decoration: none;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-nav nav {
  display: flex;
  gap: 38px;
  color: #4f5b54;
  font-size: 0.74rem;
  font-weight: 600;
}

.site-nav nav a {
  transition: color 0.2s ease;
}

.site-nav nav a:hover {
  color: var(--forest);
}

.nav-contact {
  justify-self: end;
  padding: 11px 17px;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  transition:
    background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.nav-contact:hover {
  background: var(--forest);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px var(--page-pad) 110px;
  text-align: center;
}

.hero::after {
  position: absolute;
  bottom: 0;
  width: min(78%, 1180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #b8c5ba, transparent);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.overline,
.section-label {
  margin: 0 0 25px;
  color: #6c776f;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 12vw, 12.5rem);
  font-weight: 700;
  line-height: 0.77;
  letter-spacing: -0.09em;
}

.hero-gradient {
  display: inline-block;
  margin-right: -0.14em;
  margin-bottom: -0.22em;
  padding-right: 0.14em;
  padding-bottom: 0.04em;
  overflow: visible;
  vertical-align: top;
  background: linear-gradient(90deg, #103f2d 5%, #367456 48%, #76965a 100%);
  background-clip: text;
  background-repeat: no-repeat;
  color: transparent;
  font-size: inherit;
  line-height: 1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-gradient > span {
  color: inherit;
}

.hero__lede {
  max-width: 690px;
  margin: 46px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.pill-button {
  display: flex;
  min-width: 195px;
  justify-content: space-between;
  margin-top: 37px;
  padding: 15px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.pill-button:hover {
  gap: 25px;
  background: var(--forest);
  box-shadow: 0 12px 35px rgb(22 75 53 / 24%);
  transform: translateY(-3px);
}

.forest-orb {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 3%;
  display: grid;
  width: clamp(220px, 28vw, 520px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 31% 24%,
    #f7fff8 0 5%,
    #bfe1c8 21%,
    #5c9a71 45%,
    #1c5d42 70%,
    #092b1e 100%
  );
  box-shadow:
    inset -30px -35px 70px rgb(2 24 15 / 36%),
    0 48px 100px rgb(28 75 52 / 26%);
  animation: float 7s ease-in-out infinite;
}

.forest-orb::after {
  position: absolute;
  inset: -12%;
  border: 1px solid rgb(50 99 69 / 17%);
  border-radius: 50%;
  content: "";
}

.forest-orb__ring {
  position: absolute;
  z-index: 3;
  inset: 12%;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 50%;
  box-shadow: inset 0 0 35px rgb(255 255 255 / 12%);
}

.forest-orb__photo {
  position: absolute;
  z-index: 2;
  inset: 13.5%;
  width: 73%;
  height: 73%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 35px rgb(2 24 15 / 28%);
}

.forest-orb__satellite {
  position: absolute;
  top: 13%;
  right: 20%;
  width: 10px;
  aspect-ratio: 1;
  border: 2px solid white;
  border-radius: 50%;
  background: #6caa79;
  box-shadow: 0 0 20px white;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}

.glow--one {
  bottom: 2%;
  left: -8%;
  width: 37vw;
  height: 31vw;
  background: #acd3b5;
}

.glow--two {
  top: -12%;
  right: 27%;
  width: 29vw;
  height: 26vw;
  background: #d8e6c3;
}

.hero__aside {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  bottom: 32px;
  margin: 0;
  color: #778179;
  font:
    500 0.57rem "IBM Plex Mono",
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__aside i {
  margin: 0 7px;
  color: var(--moss);
  font-style: normal;
}

.about {
  padding: clamp(88px, 7vw, 120px) var(--page-pad) clamp(96px, 8vw, 135px);
}

.about h2 {
  max-width: 1270px;
  margin: 0;
  font-size: clamp(3.4rem, 7.3vw, 8.1rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.about h2 span {
  color: var(--forest);
}

.about h2 em {
  color: #789060;
  font-style: normal;
}

.about__lower {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(45px, 6vw, 90px);
  max-width: 1120px;
  margin: clamp(48px, 4vw, 64px) 0 0 auto;
}

.about__copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.about__copy p {
  margin: 0;
}

.focus-list {
  margin: 0;
}

.focus-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.focus-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.focus-list dt {
  color: var(--moss);
  font:
    500 0.6rem "IBM Plex Mono",
    monospace;
}

.focus-list dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.projects {
  padding: clamp(95px, 12vw, 165px) 0;
  background: var(--forest-deep);
  color: white;
}

.projects__heading {
  padding: 0 var(--page-pad);
}

.projects__heading .section-label {
  color: #91ad9c;
}

.projects__heading h2 {
  margin: 0;
  font-size: clamp(3.7rem, 7.5vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.projects__heading > p:last-child {
  max-width: 520px;
  margin: 28px 0 0;
  color: #91a69a;
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  margin-top: 70px;
  padding: 0 var(--page-pad) 18px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 565px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 30px;
  padding: 29px;
  color: white;
  text-decoration: none;
  box-shadow: inset 0 1px rgb(255 255 255 / 25%);
  transition:
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

a.project-card:hover {
  border-color: rgb(255 255 255 / 36%);
  box-shadow:
    inset 0 0 0 5px rgb(255 255 255 / 6%),
    0 24px 60px rgb(0 0 0 / 22%);
  transform: translateY(-9px);
}

.project-card--labs {
  background: linear-gradient(150deg, #3e8b64, #11402e 75%);
}

.project-card--boo {
  background: linear-gradient(150deg, #7d9c5c, #334f29 75%);
}

.project-card--cards {
  background: linear-gradient(150deg, #a99162, #5c4a2d 78%);
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  color: rgb(255 255 255 / 72%);
  font:
    500 0.59rem "IBM Plex Mono",
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card__copy {
  margin-top: auto;
}

.project-card h3 {
  margin: 0 0 17px;
  font-size: clamp(3rem, 4.5vw, 5.3rem);
  line-height: 0.84;
  letter-spacing: -0.07em;
}

.project-card p {
  max-width: 310px;
  margin: 0;
  color: rgb(255 255 255 / 75%);
  font-size: 0.87rem;
  line-height: 1.55;
}

.brand-mark {
  display: block;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 12px 28px rgb(0 0 0 / 16%));
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

a.project-card:hover .brand-mark {
  opacity: 1;
  transform: scale(1.035);
}

.labs-mark {
  width: min(94%, 330px);
  height: 220px;
  margin: auto;
}

.boo-mark {
  width: 155px;
  height: 220px;
  margin: auto;
}

.card-mark {
  position: relative;
  width: 145px;
  height: 185px;
  margin: auto;
}

.card-mark i {
  position: absolute;
  inset: 0;
  border: 2px solid rgb(255 255 255 / 58%);
  border-radius: 15px;
}

.card-mark i:nth-child(1) {
  transform: rotate(-13deg);
}

.card-mark i:nth-child(2) {
  transform: rotate(3deg);
}

.card-mark i:nth-child(3) {
  transform: rotate(16deg);
}

.contact {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  padding: clamp(120px, 16vw, 220px) var(--page-pad);
}

.contact__content {
  position: relative;
  z-index: 2;
}

.contact h2 {
  margin: 0;
  font-size: clamp(4.2rem, 10vw, 10.7rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.contact__content > p:not(.section-label) {
  max-width: 520px;
  margin: 40px 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.email {
  display: inline-flex;
  gap: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--forest);
  color: var(--forest);
  font-size: clamp(1.2rem, 2.5vw, 2.4rem);
  font-weight: 600;
  text-decoration: none;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 85px;
}

.socials a {
  display: flex;
  min-width: 150px;
  justify-content: space-between;
  gap: 25px;
  padding: 11px 15px;
  border: 1px solid #bdc8bf;
  border-radius: 100px;
  background: rgb(255 255 255 / 32%);
  font-size: 0.69rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.socials a:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.contact__orb {
  position: absolute;
  right: -12%;
  bottom: -25%;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 31%,
    #f9fff8 0 5%,
    #b8d9bd 23%,
    #558b66 52%,
    #164b35 76%,
    #092b1e
  );
  box-shadow: 0 50px 120px rgb(20 69 48 / 24%);
  opacity: 0.82;
}

.contact__orb::after {
  position: absolute;
  z-index: 3;
  inset: 12%;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 50%;
  content: "";
}

.contact__photo {
  position: absolute;
  z-index: 2;
  inset: 13.5%;
  width: 73%;
  height: 73%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 55px rgb(2 24 15 / 25%);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding: 25px var(--page-pad) 35px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
}

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

.designer-link {
  justify-self: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.about__lower.reveal {
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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

.project-card.reveal:not(.is-visible):nth-child(2) {
  transition-delay: 0.07s;
}

.project-card.reveal:not(.is-visible):nth-child(3) {
  transition-delay: 0.14s;
}

@keyframes float {
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@media (width <= 900px) {
  .hero {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }

  .hero__content {
    align-items: flex-start;
    margin-top: 13vh;
  }

  .forest-orb {
    top: 18%;
    right: -24%;
    opacity: 0.48;
  }

  .hero__aside {
    display: none;
  }

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

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

  .contact__orb {
    right: -37%;
    width: 100vw;
    opacity: 0.5;
  }
}

@media (width <= 600px) {
  :root {
    --page-pad: 20px;
  }

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

  .site-nav nav {
    display: none;
  }

  .hero {
    min-height: 1060px;
    padding-bottom: 100px;
  }

  .hero__content {
    width: 100%;
    margin-top: 220px;
    overflow: visible;
  }

  .hero h1 {
    width: calc(100% + 0.16em);
    margin-right: -0.16em;
    padding-right: 0.16em;
    overflow: visible;
    font-size: clamp(4.1rem, 20.5vw, 5.25rem);
    letter-spacing: -0.075em;
  }

  .hero-gradient,
  .hero-gradient > span {
    display: block;
    width: max-content;
    overflow: visible;
  }

  .hero-gradient {
    margin-right: 0;
    margin-bottom: 0;
    padding-right: 0;
    padding-bottom: 0;
    background: none;
    line-height: 0.77;
  }

  .hero-gradient > span {
    padding-right: 0.12em;
    background: none;
  }

  .hero-gradient > span:first-child {
    color: #245f46;
    -webkit-text-fill-color: #245f46;
  }

  .hero-gradient > span:last-child {
    color: #557e52;
    -webkit-text-fill-color: #557e52;
  }

  .forest-orb {
    top: 112px;
    right: -25px;
    width: 250px;
    opacity: 0.92;
  }

  .hero__lede {
    max-width: 94%;
    margin-left: 0;
  }

  .about h2 {
    font-size: 3.5rem;
  }

  .about__lower {
    margin-top: 55px;
  }

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

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

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

  .contact {
    min-height: 760px;
  }

  .contact h2 {
    font-size: 4.6rem;
  }

  .contact__orb {
    right: -55%;
    bottom: -5%;
    width: 125vw;
    opacity: 0.42;
  }

  .email {
    font-size: 1.15rem;
  }

  .socials {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 65px;
  }

  .socials a {
    width: min(100%, 320px);
  }

  footer {
    grid-template-columns: 1fr auto;
    padding-bottom: 35px;
  }

  footer > :nth-child(2) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
