* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jura", sans-serif;
  font-size: 30px;
}
html,
body {
  width: 100%;
  max-width: 100dvw;
  min-height: 100dvh;
  height: 100%;
  font-family: Arial, sans-serif;
}
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
body {
  overflow-y: scroll;
}
main,
section,
footer {
  height: 100dvh;
  scroll-snap-align: start;
}
a {
  text-decoration: none;
  color: inherit;
}
input:focus,
button:focus,
textarea:focus {
  outline: none;
}
.section {
  width: 100%;
  height: 100dvh;
}
.main {
  display: grid;
  grid-template-columns: max-content 1fr;
}
.main__bg {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
}
.main__bg-slices {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 1;
}
.main__bg-slice {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
  transform: translateY(101%);
}
.main__bg-slice img {
  position: absolute;
  top: 0;
  left: 0;
  width: 500%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translateX(calc(var(--i) * -20%));
}
.main__bg.show .main__bg-slice {
  animation: sliceReveal 1.3s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: calc(var(--i) * 0.08s);
}
@keyframes sliceReveal {
  to {
    transform: translateY(0);
  }
}

.main__content {
  width: 100%;
  max-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.main__header {
  margin-top: 15px;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main__logo {
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  padding: 5px 10px 5px 40px;
  opacity: 0;
  transform: translateX(-80px);
  visibility: hidden;
}
.main__logo.show {
  visibility: visible;
  animation: logoReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateX(-80px) skewX(-10deg);
  }
  70% {
    transform: translateX(10px) skewX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.main__text {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-right: 80px;
}
.main__text p {
  font-size: 20px;
  text-align: right;
  opacity: 0;
  transform: translateX(80px) translateY(30px);
  filter: blur(8px);
}
.main__text.show p {
  animation: titleReveal 6s infinite;
}
.main__text.show p:nth-child(1) {
  animation-delay: 0s;
}
.main__text.show p:nth-child(2) {
  animation-delay: 1.5s;
}
.main__text.show p:nth-child(3) {
  animation-delay: 3s;
}
.main__text.show p:nth-child(4) {
  animation-delay: 4.5s;
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateX(80px) translateY(30px);
    filter: blur(10px);
  }
  15% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
  }
  35% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
  }
  50% {
    opacity: 0;
    transform: translateX(-80px) translateY(-30px);
    filter: blur(10px);
  }
  100% {
    opacity: 0;
    transform: translateX(-80px) translateY(-30px);
    filter: blur(10px);
  }
}

.main__links {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
}
.main__links a {
  position: relative;
  display: inline-block;
  color: #000;
  text-decoration: none;
  padding: 5px 10px;
  opacity: 0;
  overflow: hidden;
}
.main__links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}
.main__links a::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  color: #fff;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.main__links a:hover::before {
  transform: translateX(0);
}
.main__links a:hover::after {
  clip-path: inset(0 0 0 0);
}
.main__links.show a {
  animation: linkItem 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.main__links.show a:nth-child(1) {
  animation-delay: 0.1s;
}
.main__links.show a:nth-child(2) {
  animation-delay: 0.25s;
}

@keyframes linkItem {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991px) {
  .main {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas:
      "content"
      "bg";
  }
  .main__bg {
    grid-area: bg;
  }
  .main__content {
    grid-area: content;
  }
  .main__text {
    gap: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .main__text p {
    font-size: 16px;
  }
  .main__links {
    padding: 20px;
  }
  .main__links a {
    font-size: 16px;
  }
}

.portfolio__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
}
.portfolio__title {
  position: relative;
  display: inline-block;
  padding: 5px 10px 5px 40px;
  margin-top: 20px;
  font-weight: 500;
  color: #000;
  background: transparent;
}
.portfolio__title-black {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}
.portfolio__title.show .portfolio__title-black {
  animation: textAppear 0.6s ease forwards;
}

@keyframes textAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio__title-white {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 10px 5px 40px;
  color: #fff;
  background: #000;
  clip-path: inset(0 100% 0 0);
  white-space: nowrap;
}
.portfolio__title.show .portfolio__title-white {
  animation: titleInvert 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes titleInvert {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 40% 0 0);
  }
}

.portfolio__list {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
}
.portfolio__row-item {
  opacity: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(12px, 2.2vh, 24px) 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  transition: background 0.45s cubic-bezier(0.77, 0, 0.175, 1),
    color 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
.portfolio__row-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.portfolio__row-item:hover {
  background: #000;
  color: #fff;
}
.portfolio__row-num {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.45;
}
.portfolio__row-name {
  font-size: clamp(26px, 3.6vw, 54px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.portfolio__row-item:hover .portfolio__row-name {
  transform: translateX(24px);
}
.portfolio__row-thumb {
  display: none;
  width: 96px;
  aspect-ratio: 24 / 11;
  object-fit: cover;
  filter: grayscale(100%);
}
.portfolio__row-arrow img {
  width: 22px;
  height: 22px;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), filter 0.45s ease;
}
.portfolio__row-item:hover .portfolio__row-arrow img {
  transform: translate(4px, -4px);
  filter: invert(1);
}
.portfolio__list.show .portfolio__row-item {
  animation: rowIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio__preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  pointer-events: none;
  will-change: transform;
}
.portfolio__preview-inner {
  position: relative;
  width: clamp(300px, 26vw, 460px);
  aspect-ratio: 24 / 11;
  overflow: hidden;
  background: #fff;
  border: 1px solid #000;
  opacity: 0;
  transform: translate(-50%, -55%) scale(0.8) rotate(-4deg);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio__preview.visible .portfolio__preview-inner {
  opacity: 1;
  transform: translate(-50%, -55%) scale(1) rotate(0deg);
}
.portfolio__preview-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portfolio__btn {
  opacity: 0;
  transform: translateY(100px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  align-self: end;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1px solid #000;
  height: 60px;
  padding: 0 40px;
  font-size: 20px;
  margin: 0 40px 40px 0;
  cursor: pointer;
  color: #000;
  transition: color 0.4s ease;
}
.portfolio__btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}
.portfolio__btn:hover::before {
  transform: translateY(0);
}
.portfolio__btn:hover {
  color: #fff;
}
.portfolio__btn.show {
  animation: portfolioBtnAppear 1.6s forwards;
}

@keyframes portfolioBtnAppear {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .portfolio__preview {
    display: none;
  }
  .portfolio__row-thumb {
    display: block;
  }
  .portfolio__row-item {
    padding: 14px 20px;
  }
  .portfolio__row-name {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .portfolio__row-name {
    font-size: 18px;
  }
  .portfolio__row-num {
    font-size: 13px;
  }
  .portfolio__row-thumb {
    width: 72px;
  }
  .portfolio__row-arrow img {
    width: 16px;
    height: 16px;
  }
}

.services {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.services__titles {
  margin: 24px 40px 0 40px;
  display: flex;
  justify-content: space-between;
}
.services__title {
  font-weight: 400;
  opacity: 0;
  transition: 0.6s ease-in-out 0s;
}
.services__title.show {
  opacity: 0.5;
}
.services__subtitle {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 60px;
}
.services__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #000;
  z-index: 1;
}
.services__text,
.services__highlight {
  font-size: 60px;
  position: relative;
  z-index: 2;
  font-weight: 400;
}
.services__text {
  color: transparent;
  margin-right: 10px;
}
.services__highlight {
  color: #fff;
  padding: 0 20px;
}
.services__content {
  width: 100%;
  height: 100%;
}
.services__info {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.services__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}
.services__item {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.5);
  width: 340px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.services__item:nth-child(2) {
  transform: translateY(120%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.services__item:nth-child(1),
.services__item:nth-child(3) {
  transform: scaleX(0);
  transition: transform 0.6s ease 0.6s;
}
.services__item:nth-child(1) {
  transform-origin: right center;
}
.services__item:nth-child(3) {
  transform-origin: left center;
}
.services__list.show .services__item:nth-child(2) {
  transform: translateY(0);
}
.services__list.show .services__item:nth-child(1),
.services__list.show .services__item:nth-child(3) {
  transform: scaleX(1);
}
.services__item-title {
  font-size: 26px;
  font-weight: 400;
}
.services__item-stack {
  font-size: 17px;
  font-weight: 400;
}
.services__item-price {
  font-size: 50px;
}
.services__texts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.services__texts p {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  opacity: 0.5;
  margin: 0;
  transition: all 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}
.services__texts p:first-child {
  opacity: 0;
  transform: translateX(40px);
}
.services__texts p:last-child {
  opacity: 0;
  transform: translateX(-40px);
}
.services__texts span {
  width: 1px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.services__texts.show-line span {
  transform: scaleY(1);
}
.services__texts.show-text p {
  opacity: 0.5;
  transform: translateX(0);
}

@media (max-width: 1200px) {
  .services__info {
    padding: 0 40px;
  }
  .services__item {
    width: 100%;
    height: 100%;
  }
  .services__item-title {
    font-size: 22px;
  }
  .services__item-price {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  .services__list {
    flex-direction: column;
    gap: 16px;
  }
  .services__item:nth-child(2) {
    transform: translateY(320%);
  }
  .services__texts {
    padding-bottom: 12px;
  }
  .services__item-title {
    font-size: 24px;
  }
  .services__item-price {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .services__titles {
    margin: 14px 0 0 16px;
    align-items: center;
  }
  .services__title {
    font-size: 20px;
  }
  .services__text,
  .services__highlight {
    font-size: 24px;
  }
  .services__info {
    margin-top: 20px;
    padding: 0 16px;
  }
  .services__texts p {
    font-size: 13px;
    white-space: nowrap;
  }
}

.feedback {
  background: #000;
  display: flex;
  flex-direction: column;
  position: relative;
}
.feedback__title {
  padding: 5px 10px 5px 40px;
  font-weight: 500;
  align-self: start;
  margin-top: 20px;
  position: relative;
  z-index: 99999999999;
  color: #fff;
  opacity: 0;
  transition: color 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.feedback__title span {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #fff;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: -1;
}
.feedback__title.show-text {
  animation: feedbackTitleAnim 1.6s ease forwards;
}
@keyframes feedbackTitleAnim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.feedback__title.show {
  color: #000;
}
.feedback__title.show span {
  transform: translateX(0);
}
.feedback__form {
  width: 320px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
}
.feedback__form label {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  gap: 20px;
  transition: color 1.5s ease-in-out;
  display: none;
  transition:
    opacity 0.4s ease-in-out,
    color 1.5s ease-in-out;
}
.feedback__form label.active {
  display: flex;
  flex-direction: column;
}
.feedback__form.show-text label.active {
  color: #fff;
}
.feedback__form input {
  width: 0;
  height: 100%;
  font-size: 20px;
  padding-bottom: 10px;
  background: none;
  border: none;
  border-bottom: 1px solid #fff;
  color: #fff;
  transition: width 0.8s cubic-bezier(0.77, 0, 0.175, 1) !important;
}
.feedback__form textarea {
  resize: none;
  width: 0;
  height: 50px;
  font-size: 20px;
  padding-bottom: 10px;
  background: none;
  border: none;
  border-bottom: 1px solid #fff;
  color: #fff;
  transition: width 0.8s cubic-bezier(0.77, 0, 0.175, 1) !important;
}
.feedback__form input::placeholder,
.feedback__form textarea::placeholder {
  color: transparent;
  transition: color 2s ease-in-out;
}
.feedback__form.show label.active input,
.feedback__form.show label.active textarea {
  width: 100%;
}
.feedback__form.show-text label.active input::placeholder,
.feedback__form.show-text label.active textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.feedback__form button {
  width: 100%;
  height: 60px;
  background: none;
  border: 1px solid #000;
  font-size: 20px;
  cursor: pointer;
  color: #000;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  transition: all 1.5s ease-in-out;
}
.feedback__form.show-text button {
  color: #fff;
  border-color: #fff;
}
.feedback__form.show-button button {
  transition: color 0.8s ease;
}
.feedback__form button::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}
.feedback__form button:hover::before {
  transform: translateY(0);
}
.feedback__form button:hover {
  color: #000;
}
.feedback__form button.show {
  animation: feedbackBtnAppear 1.6s forwards;
}

@keyframes feedbackBtnAppear {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .feedback__form {
    max-width: 320px;
    width: 100%;
  }
}

.footer {
  background: #000;
  display: grid;
  place-items: center;
  color: #fff;
}
.footer__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.footer__title {
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 10px;
  transform: translateY(60px);
  opacity: 0;
  transition:
    transform 0.8s ease,
    opacity 0.8s ease;
}
.footer__content span {
  display: block;
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  margin-bottom: 10px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s ease;
}
.footer__content span.show {
  transform: scaleX(1);
}
.footer__subtitle {
  font-size: 30px;
  font-weight: 400;
  transform: translateY(-60px);
  opacity: 0;
  transition:
    transform 0.8s ease,
    opacity 0.8s ease;
}
.footer__title.show {
  transform: translateY(0);
  opacity: 1;
}
.footer__subtitle.show {
  transform: translateY(0);
  opacity: 0.5;
}
.footer__links {
  display: flex;
  gap: 80px;
}
.footer__link {
  font-size: 20px;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.footer__link.show {
  opacity: 0.5;
}
.footer__socials {
  margin-top: 10px;
  display: flex;
  gap: 40px;
}
.footer__socials a {
  width: 50px;
  height: 50px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.footer__socials a.show {
  opacity: 1;
}
.footer__socials img {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .footer__title {
    font-size: 30px;
  }
  .footer__subtitle {
    font-size: 20px;
  }
  .footer__links {
    gap: 40px;
  }
  .footer__socials {
    gap: 20px;
  }
}

.main__header,
.main__text,
.main__links {
  position: relative;
  z-index: 2;
}

.main__ghost {
  position: absolute;
  top: 44%;
  right: -10px;
  transform: translateY(-50%);
  z-index: 1;
  font-size: clamp(90px, 16vw, 320px);
  font-weight: 700;
  line-height: 0.85;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.13);
  pointer-events: none;
  user-select: none;
  opacity: 0;
}
.main__ghost.show {
  animation: ghostIn 1.6s ease 0.5s forwards;
}
@keyframes ghostIn {
  to {
    opacity: 1;
  }
}

.main__clock {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000;
  border: 1px solid #000;
  padding: 5px 10px;
  opacity: 0;
  transform: translateX(80px);
}
.main__clock.show {
  animation: clockReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes clockReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.main__content,
.about,
.portfolio,
.services {
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.services__item:nth-child(2) {
  background: #000;
  border-color: #000;
  color: #fff;
}
.services__item:nth-child(2) .services__item-stack {
  color: rgba(255, 255, 255, 0.55);
}

.feedback__caret {
  display: inline-block;
  margin-left: 8px;
  animation: caretBlink 1s steps(2, start) infinite;
}
@keyframes caretBlink {
  to {
    visibility: hidden;
  }
}
.feedback__title.show-text {
  animation: feedbackTitleAnim 1.6s ease forwards,
    glitchShift 6s linear 2s infinite;
}
@keyframes glitchShift {
  0%,
  86%,
  90%,
  94%,
  100% {
    text-shadow: none;
    transform: translateX(0);
  }
  87% {
    text-shadow: -4px 0 rgba(0, 255, 255, 0.8), 4px 0 rgba(255, 0, 255, 0.8);
    transform: translateX(2px) skewX(3deg);
  }
  88% {
    text-shadow: 4px 0 rgba(0, 255, 255, 0.8), -4px 0 rgba(255, 0, 255, 0.8);
    transform: translateX(-2px) skewX(-3deg);
  }
  92% {
    text-shadow: -3px 0 rgba(0, 255, 255, 0.7), 3px 0 rgba(255, 0, 255, 0.7);
  }
}
.feedback__form input,
.feedback__form textarea {
  caret-color: #fff;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100004;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}
.preloader.is-done {
  transform: translateY(-100%);
}
.preloader__name {
  font-size: clamp(28px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  clip-path: inset(0 100% 0 0);
  animation: preloaderName 1s cubic-bezier(0.77, 0, 0.175, 1) 0.2s forwards;
}
@keyframes preloaderName {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.preloader__counter {
  position: absolute;
  right: 40px;
  bottom: 24px;
  font-size: clamp(48px, 9vw, 130px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
}
.preloader__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.preloader__bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}

.noise {
  position: fixed;
  inset: -100%;
  z-index: 100008;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -8%);
  }
  20% {
    transform: translate(-13%, 3%);
  }
  30% {
    transform: translate(6%, -10%);
  }
  40% {
    transform: translate(-4%, 12%);
  }
  50% {
    transform: translate(-11%, 6%);
  }
  60% {
    transform: translate(12%, 0);
  }
  70% {
    transform: translate(0, 10%);
  }
  80% {
    transform: translate(3%, 13%);
  }
  90% {
    transform: translate(-8%, 4%);
  }
}

.side-nav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #000;
}
.side-nav__num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.side-nav__track {
  position: relative;
  width: 22px;
  height: 170px;
}
.side-nav__track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}
.side-nav__bar {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #000;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.side-nav__thumb {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
  transition: top 0.8s cubic-bezier(0.77, 0, 0.175, 1), background 0.5s ease;
  pointer-events: none;
}
.side-nav.is-inverted .side-nav__thumb {
  background: #fff;
}
.side-nav__tick {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: none;
}
.side-nav__tick::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: auto;
  border-radius: 50%;
  background: #000;
  opacity: 0.4;
  transition: background 0.5s ease;
}
.side-nav__tick:nth-of-type(1) {
  top: 0%;
}
.side-nav__tick:nth-of-type(2) {
  top: 20%;
}
.side-nav__tick:nth-of-type(3) {
  top: 40%;
}
.side-nav__tick:nth-of-type(4) {
  top: 60%;
}
.side-nav__tick:nth-of-type(5) {
  top: 80%;
}
.side-nav__tick:nth-of-type(6) {
  top: 100%;
}

.side-nav.is-inverted {
  color: #fff;
}
.side-nav.is-inverted .side-nav__track::before {
  background: rgba(255, 255, 255, 0.4);
}
.side-nav.is-inverted .side-nav__bar {
  background: #fff;
}
.side-nav.is-inverted .side-nav__tick::after {
  background: #fff;
}

@media (max-width: 991px) {
  .side-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .main__ghost {
    font-size: clamp(64px, 22vw, 140px);
  }
  .preloader__counter {
    right: 20px;
    bottom: 20px;
  }
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  visibility: hidden;
  transition: visibility 0s linear 0.65s;
}
.project-modal.open {
  visibility: visible;
  transition-delay: 0s;
}
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.project-modal.open .project-modal__backdrop {
  opacity: 1;
}
.project-modal__window {
  position: relative;
  width: min(920px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  clip-path: inset(50% 0% 50% 0%);
  transform: scale(0.97);
  transition: clip-path 0.65s cubic-bezier(0.77, 0, 0.175, 1),
    transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}
.project-modal.open .project-modal__window {
  clip-path: inset(0% 0% 0% 0%);
  transform: scale(1);
}
.project-modal__media {
  position: relative;
  min-height: 320px;
}
.project-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-modal__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
}
.project-modal__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}
.project-modal__title {
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.05;
}
.project-modal__desc {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.6);
}
.project-modal__link {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid #000;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;
}
.project-modal__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}
.project-modal__link:hover::before {
  transform: translateY(0);
}
.project-modal__link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .project-modal {
    padding: 12px;
  }
  .project-modal__window {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .project-modal__media {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .project-modal__media img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .project-modal__info {
    gap: 14px;
    padding: 20px;
  }
  .project-modal__link {
    padding: 12px 20px;
    font-size: 14px;
  }
}
.project-modal__link img {
  width: 14px;
  height: 14px;
  transition: filter 0.4s ease;
}
.project-modal__link:hover img {
  filter: invert(1);
}
.project-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.project-modal__close:hover {
  background: #fff;
  color: #000;
  outline: 1px solid #000;
}

@media (max-width: 768px) {
  .project-modal__window {
    grid-template-columns: 1fr;
  }
  .project-modal__media {
    min-height: 0;
    aspect-ratio: 24 / 11;
  }
}

.about {
  display: flex;
}
.about__inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: 90px 40px 50px;
}
.about__media {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}
.about__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #000;
  transform: translate(18px, 18px);
  pointer-events: none;
}
.about__photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  clip-path: inset(0 100% 0 0);
}
.about__media.show .about__photo-wrap {
  animation: aboutReveal 1.1s cubic-bezier(0.77, 0, 0.175, 1) 0.15s forwards;
}
@keyframes aboutReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transform: scale(1.18);
}
.about__media.show .about__photo {
  animation: aboutZoom 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
@keyframes aboutZoom {
  to {
    transform: scale(1);
  }
}
.about__exp {
  position: absolute;
  right: -18px;
  bottom: -26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #000;
  color: #fff;
  padding: 16px 22px;
  opacity: 0;
  transform: translateY(20px);
}
.about__media.show .about__exp {
  animation: aboutFade 0.7s ease 0.9s forwards;
}
.about__exp b {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}
.about__exp i {
  font-style: normal;
  font-size: 14px;
  line-height: 1.25;
  opacity: 0.7;
}
.about__title {
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 34px;
  font-weight: 500;
  color: #000;
}
.about__title-black {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}
.about__title.show .about__title-black {
  animation: textAppear 0.6s ease forwards;
}
.about__title-white {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 10px;
  color: #fff;
  background: #000;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}
.about__title.show .about__title-white {
  animation: titleInvert 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.about__text {
  max-width: 580px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transform: translateY(28px);
}
.about__body.show .about__text {
  animation: aboutFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.about__body.show .about__text:nth-of-type(1) {
  animation-delay: 0.45s;
}
.about__body.show .about__text:nth-of-type(2) {
  animation-delay: 0.6s;
}
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  list-style: none;
}
.about__facts li {
  border: 1px solid rgba(0, 0, 0, 0.5);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
}
.about__body.show .about__facts li {
  animation: aboutFade 0.6s ease forwards;
  animation-delay: calc(0.75s + var(--i) * 90ms);
}
@keyframes aboutFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .about__inner {
    grid-template-columns: 1fr;
    align-content: start;
    align-items: start;
    gap: 28px;
    padding: 64px 20px 48px;
  }
  .about__media {
    justify-self: center;
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .noise {
    display: none;
  }
  .main__logo {
    padding: 5px 10px 5px 20px;
  }
  .main__clock {
    font-size: 12px;
    padding: 4px 8px;
  }
  .main__text p {
    font-size: 15px;
  }
  .portfolio__btn {
    height: 52px;
    padding: 0 24px;
    font-size: 16px;
    margin: 0 20px 24px 0;
  }
  .services__item {
    padding: 18px 14px;
    gap: 14px;
  }
  .services__list {
    gap: 12px;
  }
  .services__item-title {
    font-size: 19px;
  }
  .services__item-stack {
    font-size: 12px;
  }
  .services__item-price {
    font-size: 38px;
  }
  .feedback__form {
    transform: translate(-50%, -50%);
    gap: 28px;
  }
  .about__inner {
    gap: 24px;
    padding: 56px 20px 64px;
  }
  .about__media {
    max-width: 210px;
  }
  .about__media::before {
    transform: translate(12px, 12px);
  }
  .about__exp {
    right: -10px;
    bottom: -20px;
    padding: 10px 14px;
    gap: 8px;
  }
  .about__exp b {
    font-size: 32px;
  }
  .about__exp i {
    font-size: 11px;
  }
  .about__title {
    margin-bottom: 16px;
  }
  .about__text {
    font-size: 14px;
  }
  .about__facts {
    margin-top: 16px;
    gap: 8px;
  }
  .about__facts li {
    padding: 6px 11px;
    font-size: 11px;
  }
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;
  }
}
