@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #010a21;
  --grey-1: rgba(1, 10, 33, 0.6);
  --grey-2: rgba(1, 10, 33, 0.3);
  --cream: #f9f7f4;
  --yellow: #f8f441;
  --yellow-hover: #f8f48e;
  --white: #fff;
  --gilroy: "Gilroy", sans-serif;
  --inter: "Inter", sans-serif;
  --ease: cubic-bezier(0.075, 0.82, 0.165, 1);
  --container: 80rem;
  --gap: 2.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--inter);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

.container {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: var(--container);
  margin-inline: auto;
}

.h1 {
  font-family: var(--gilroy);
  font-weight: 500;
  font-size: 3.75rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--gilroy);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.h4 {
  font-family: var(--gilroy);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.4;
}

.descriptor {
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-1);
}

.small {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--grey-1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.25rem 1.125rem 1.25rem;
  border: 0;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--gilroy);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  cursor: pointer;
  clip-path: polygon(calc(100% - 1rem) 0, 100% 50%, calc(100% - 1rem) 100%, 0 100%, 0 0);
  transition: background-color 0.6s var(--ease);
}
.btn:hover {
  background: var(--yellow-hover);
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(249, 247, 244, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: var(--cream);
  border-bottom-color: var(--grey-2);
}
.nav__wrap {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: 88%;
  max-width: var(--container);
  margin-inline: auto;
}
.nav__logo {
  display: flex;
  width: 7.5rem;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__link {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-1);
  transition: color 0.6s var(--ease);
}
.nav__link:hover {
  color: var(--black);
}

.hero {
  position: relative;
  min-height: min(100vh, 56rem);
  padding: 13rem 0 8rem;
  background: url("assets/img/hero-graphic.png") no-repeat 100% 0 / 50% auto;
}
.hero__text {
  max-width: 36rem;
}
.hero .h1 {
  margin-bottom: 2.5rem;
}

.team {
  padding: 0 0 8rem;
}
.team__mark {
  width: 3.5rem;
  margin: 0 auto 5rem;
  color: #bbbbbf;
}
.team__title {
  text-align: center;
  margin-bottom: 5rem;
}
.team__lead {
  list-style: none;
  max-width: 62rem;
  margin: 0 auto 7rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.team__lead > li:nth-child(2) {
  padding-top: 4rem;
}
.team__lead .card__photo {
  margin-bottom: 2rem;
}
.team__lead .card__name {
  margin-bottom: 1rem;
}
.team__grid {
  list-style: none;
  margin: 0;
  padding: 0 0 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.5rem var(--gap);
}
.team__grid > li:nth-child(even) {
  position: relative;
  top: 4rem;
}

.card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.card__photo {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #eceae6;
}
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__name {
  margin-bottom: 0.5rem;
}
.card__bio {
  display: none;
}
button.card {
  cursor: pointer;
}
button.card .card__photo::after {
  content: "+";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--yellow);
  font-family: var(--gilroy);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 0.6s var(--ease);
}
button.card:hover .card__photo::after {
  background: var(--yellow-hover);
}

.bio {
  width: min(92vw, 40rem);
  max-height: 88vh;
  padding: 2.5rem;
  border: 0;
  background: var(--cream);
  color: var(--black);
  overflow-y: auto;
}
.bio::backdrop {
  background: rgba(1, 10, 33, 0.55);
}
.bio__head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.bio__photo {
  flex: none;
  width: 7.5rem;
  aspect-ratio: 1;
  object-fit: cover;
}
.bio__name {
  margin-bottom: 0.5rem;
}
.bio__text {
  color: var(--grey-1);
}
.bio__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: none;
  color: var(--grey-1);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.bio__close:hover {
  color: var(--black);
}

.end {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 38rem;
  background-image: url("assets/img/footer-left.png"), url("assets/img/footer-right.png");
  background-repeat: no-repeat, no-repeat;
  background-position: 0% 100%, 100% 100%;
  background-size: 22%, 19%;
}
.footer {
  margin-top: auto;
  padding: 4rem 0 3rem;
}
.footer__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: var(--gap);
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.footer__row address {
  font-style: normal;
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.footer__social a {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--grey-1);
  transition: color 0.6s var(--ease);
}
.footer__social a:hover {
  color: var(--black);
}

@media (min-width: 1440px) {
  .hero {
    background-size: auto 80%;
  }
  .end {
    background-size: 18rem, 15.5rem;
  }
}

@media (max-width: 991px) {
  .h1 {
    font-size: 3rem;
  }
  .hero {
    min-height: 0;
    padding-bottom: 12rem;
    background-position: 210% 0;
    background-size: 70%;
  }
  .hero__text {
    max-width: 24rem;
  }
  .team {
    padding-bottom: 6rem;
  }
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team__grid > li:nth-child(even) {
    top: 0;
  }
  .team__grid > li:nth-child(3n + 2) {
    position: relative;
    top: 4rem;
  }
  .end {
    background-position: -11% 100%, 105% 100%;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 4.5rem;
  }
  .h1 {
    font-size: 2.5rem;
  }
  .h3 {
    font-size: 1.5rem;
  }
  .nav {
    position: sticky;
    top: 0;
    height: 4rem;
    display: flex;
    padding: 1rem 0;
    background: var(--cream);
  }
  .nav__menu {
    margin-left: auto;
  }
  .hero__text {
    max-width: none;
  }
  .hero {
    margin-top: -4rem;
    padding: 23rem 0 6rem;
    background: url("assets/img/hero-graphic-mobile.png") no-repeat 36% 0 / auto 19rem;
  }
  .team {
    padding: 0 0 5rem;
  }
  .team__mark {
    margin-bottom: 2.5rem;
  }
  .team__title {
    margin-bottom: 3rem;
  }
  .team__lead {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 24rem;
    margin-bottom: 4rem;
  }
  .team__lead > li:nth-child(2) {
    padding-top: 0;
  }
  .team__lead .card__photo {
    margin-bottom: 1.25rem;
  }
  .team__lead .card__name {
    margin-bottom: 0.5rem;
  }
  .team__lead .card .h4 {
    font-size: 1.25rem;
  }
  .team__lead .card .descriptor {
    font-size: 0.875rem;
  }
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.25rem;
    padding-bottom: 0;
  }
  .team__grid > li:nth-child(n) {
    top: 0;
  }
  .card__photo {
    margin-bottom: 1rem;
  }
  .card .h4 {
    font-size: 1.0625rem;
  }
  .card .descriptor {
    font-size: 0.75rem;
  }
  .bio {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  .bio__photo {
    width: 5.5rem;
  }
  .end {
    min-height: 0;
    padding-bottom: 100vw;
    background-image: url("assets/img/footer-mobile.png");
    background-position: 0 100%;
    background-size: 100%;
  }
  .footer {
    padding: 2.5rem 0;
  }
  .footer__row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 479px) {
  .hero {
    background-position: 57% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.pipe {
  padding: 0 0 9rem;
}
.pipe__label,
.pipe__title,
.pipe__intro {
  text-align: center;
}
.pipe__label {
  margin-bottom: 0.75rem;
}
.pipe__title {
  margin-bottom: 1rem;
}
.pipe__intro {
  max-width: 42rem;
  margin: 0 auto 4.5rem;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--grey-1);
}
.pipe__head,
.prog {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1.2fr) minmax(0, 1fr) 27rem;
  column-gap: 1.5rem;
  align-items: center;
}
.pipe__head {
  padding-bottom: 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-1);
}
.pipe__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--grey-2);
}
.prog {
  padding: 1.75rem 0;
  border-top: 1px solid var(--grey-2);
}
.prog__code {
  font-family: var(--gilroy);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.prog__mod,
.prog__ind {
  line-height: 1.4;
}
.prog__ind {
  color: var(--grey-1);
}

.stages,
.stages-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stages span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.stages i {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin: 6px 0;
  border-radius: 50%;
  background: #cfd0d4;
}
.stages span:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 11.5px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #d6d7da;
}
.stages .is-done i {
  background: #5f6474;
}
.stages .is-done::before {
  background: #8f93a0 !important;
}
.stages .is-active i {
  width: 21px;
  height: 21px;
  margin: 2px 0;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(248, 244, 65, 0.32);
}
.stages b {
  display: none;
  margin-top: 0.5rem;
  font-weight: 400;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--grey-1);
}
.stages .is-active b {
  font-weight: 600;
  color: var(--black);
}

@media (max-width: 1199px) {
  .pipe__head,
  .prog {
    grid-template-columns: 7rem minmax(0, 1.2fr) minmax(0, 1fr) 22rem;
    column-gap: 1.25rem;
  }
  .stages-head {
    font-size: 0.625rem;
  }
}

@media (max-width: 991px) {
  .pipe {
    padding-bottom: 6rem;
  }
  .pipe__head {
    display: none;
  }
  .prog {
    display: block;
    padding: 1.5rem 0 1.75rem;
  }
  .prog__code {
    margin-bottom: 0.25rem;
  }
  .stages {
    max-width: 26rem;
    margin-top: 1.25rem;
    margin-left: max(-6vw, calc(-1 * (min(100%, 26rem) / 8 - 10.5px)));
  }
  .stages b {
    display: block;
  }
}

@media (max-width: 767px) {
  .pipe {
    padding-bottom: 5rem;
  }
  .pipe__intro {
    font-size: 1.125rem;
    margin-bottom: 3rem;
  }
  .prog__code {
    font-size: 1.5rem;
  }
}

@media (max-width: 359px) {
  .stages b {
    font-size: 0.625rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--black);
  color: var(--cream);
}
.skip:focus {
  top: 1rem;
}
.footer__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__link:hover {
  color: var(--black);
}

.nav.is-solid {
  background: var(--cream);
  border-bottom-color: var(--grey-2);
}
.doc {
  padding: 11rem 0 7rem;
}
.doc__inner {
  max-width: 44rem;
}
.doc__title {
  margin: 0.75rem 0 3.5rem;
}
.doc h2 {
  margin: 3rem 0 0.75rem;
}
.doc p {
  margin-bottom: 1rem;
  color: var(--grey-1);
}
.doc p a:not(.btn) {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc .btn {
  margin-top: 1.5rem;
}
.todo {
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
  padding: 0 0.25rem;
}
.end--plain {
  min-height: 0;
  background-image: none;
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .doc {
    padding: 4rem 0 4rem;
  }
  .doc__title {
    margin-bottom: 2.5rem;
  }
}

.hero {
  --hero-h1-size: clamp(2.6rem, 6.4vw, 6rem);
  min-height: 100vh;
  min-height: 100svh;
}
.hero .h1 {
  max-width: 8em;
  margin-bottom: 0;
  font-weight: 600;
  font-size: var(--hero-h1-size);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero__text {
  max-width: none;
}
.hero__sub {
  max-width: calc(6.72 * var(--hero-h1-size));
  margin-top: 2rem;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--grey-1);
}
.hl {
  padding: 0 0.04em;
  background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%);
}

@media (min-width: 992px) {
  .hero {
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background-position: 100% 0;
    background-size: min(46vw, calc(1728px * 0.46), calc(100svh * 0.889)) auto;
  }
  .pipe {
    padding: 7rem 0;
  }
  .team {
    padding-top: 2rem;
  }
}

@media (max-width: 991px) {
  .hero {
    display: flex;
    align-items: flex-end;
    padding-bottom: 7rem;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-bottom: 6rem;
  }
  .hero .h1 {
    max-width: none;
  }
  .hero__sub {
    max-width: none;
    margin-top: 1.25rem;
  }
}

