@font-face {
  font-family: "Ruby";
  src: url("../fonts/Ruby.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #f3f1ec;
  --black: #000000;
  --muted: #7d7d7d;
  --select: #2a2a2a;
  --ease-out: cubic-bezier(0.76, 0, 0.24, 1);
  --display: "Ruby", ui-sans-serif, system-ui, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
}

html {
  scroll-behavior: auto;
  overscroll-behavior-y: none;
  background: #000000;
}

html:not(.is-ready),
html:not(.is-ready) body {
  overflow: hidden;
  height: 100dvh;
}

html:not(.is-ready) .stack,
html:not(.is-ready) .skills,
html:not(.is-ready) .contacts {
  display: none;
}

html:not(.is-ready) .site {
  height: 100dvh;
  overflow: hidden;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

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

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 1.15rem 0.7rem;
  background: #ffffff;
  color: #000000;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.loader.is-done {
  transform: translate3d(0, -110%, 0);
  transition: transform 0.85s var(--ease-out);
}

.loader-count {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: min(24vw, 30vh, 14.5rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #000000;
  user-select: none;
}

.site {
  background: var(--black);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0 4.5vw 8vh;
  background: #000000;
}

.hero-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 92vw;
}

.hero-name,
.hero-role {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-name {
  color: var(--white);
  font-size: clamp(4.8rem, 14.5vw, 12.5rem);
  padding-bottom: 0.04em;
  margin-bottom: 0.1em;
  text-box: trim-end cap alphabetic;
}

.hero-name::selection,
.hero-name::-moz-selection {
  background-color: var(--select);
  color: var(--white);
}

.hero-role {
  margin-top: 0;
  padding-top: 0.03em;
  text-box: trim-start cap alphabetic;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.25px var(--white);
  paint-order: stroke fill;
  font-size: clamp(3.4rem, 10.8vw, 9.2rem);
}

.hero-role::selection,
.hero-role::-moz-selection {
  background-color: var(--select);
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  -webkit-text-stroke-width: 0;
}

.hero-lead {
  margin: 2.4rem 0 0;
  max-width: none;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
}

.hero-lead::selection,
.hero-lead::-moz-selection {
  background-color: #3a3a3a;
  color: #d0d0d0;
}

.hero-cta {
  position: fixed;
  right: 2.2vw;
  bottom: 3.6vh;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.3rem;
  border: 1.5px solid #ffffff !important;
  border-radius: 999px;
  background: transparent !important;
  color: #ffffff;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  mix-blend-mode: difference;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-label {
  color: #ffffff;
}

.hero-cta:hover {
  transform: scale(1.08);
}

.hero-cta:active {
  transform: scale(1.04);
}

.hero-cta:focus-visible {
  outline: 1px solid #ffffff;
  outline-offset: 4px;
}

.stack {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 6.5vh 0;
  overflow: hidden;
  border-radius: 2.4rem 2.4rem 0 0;
  background: #f3f1ec;
  color: #000000;
}

.stack-marquee {
  overflow: hidden;
}

.stack-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0.28em;
  padding-left: 0.2em;
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 8.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: stack-slide 64s linear infinite;
}

.stack-fill {
  color: #000000;
}

.stack-line {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  -webkit-text-stroke: 0.028em #000000;
  paint-order: stroke fill;
}

.stack-dot {
  width: 0.18em;
  height: 0.18em;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #000000;
}

.stack ::selection,
.stack ::-moz-selection {
  background-color: #111111;
  color: #ffffff;
}

@keyframes stack-slide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.skills {
  min-height: 100dvh;
  padding: 7vh 0 14vh;
  background: #ffffff;
  color: #000000;
}

.skills ::selection,
.skills ::-moz-selection {
  background-color: #111111;
  color: #ffffff;
}

.skills-title {
  margin: 0;
  padding: 0 4.5vw 4.5vh;
  font-family: var(--display);
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-bottom: 2px solid #cfcfcf;
}

.skills-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills-item {
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  column-gap: 6.5vw;
  align-items: center;
  padding: 3.4vh 4.5vw;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.skills-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #cfcfcf;
  pointer-events: none;
}

.skills-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.2vw, 3.35rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.skills-item p {
  margin: 0;
  max-width: 52ch;
  color: #6a6a6a;
  font-family: var(--body);
  font-size: 0.92rem;
  line-height: 1.45;
  transition: color 0.16s ease;
}

.skills-item:hover {
  background: #000000;
  color: #ffffff;
}

.skills-item:hover p {
  color: #c8c8c8;
}

.contacts {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 7vh 0 8vh;
  background: #000000;
  color: #ffffff;
}

.contacts ::selection,
.contacts ::-moz-selection {
  background-color: #f3f1ec;
  color: #000000;
}

.contacts-title {
  margin: 0;
  padding: 0 4.5vw 4.5vh;
  font-family: var(--display);
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-bottom: 2px solid #2f2f2f;
}

.contacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts-item {
  position: relative;
}

.contacts-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #2f2f2f;
  pointer-events: none;
}

.contacts-item a,
.contacts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3.4vh 4.5vw;
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.contacts-name {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.2vw, 3.35rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contacts-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #8a8a8a;
  font-family: var(--body);
  font-size: 0.92rem;
  transition: color 0.16s ease;
}

.contacts-arrow {
  font-size: 0.95rem;
}

.contacts-item a:hover,
.contacts-item .contacts-row:hover {
  background: #f3f1ec;
  color: #000000;
}

.contacts-item a:hover .contacts-meta,
.contacts-item .contacts-row:hover .contacts-meta {
  color: #3a3a3a;
}

.contacts-mark {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 22vh;
  padding: 4vh 4.5vw 2vh;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(4.8rem, 16vw, 14rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px #3a3a3a;
  user-select: none;
  pointer-events: none;
}

.contacts-copy {
  margin: 0;
  padding: 1.5vh 4.5vw 0;
  color: #6a6a6a;
  font-family: var(--body);
  font-size: 0.82rem;
}

.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgb(18 18 18 / 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.order-overlay[hidden] {
  display: none;
}

.order-modal {
  position: relative;
  width: min(100%, 580px);
  padding: 1.7rem 1.55rem 1.4rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 22px;
  background: rgb(12 12 12 / 0.78);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.45);
  color: var(--white);
}

.order-close {
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cfcfcf;
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.order-close:hover {
  color: #ffffff;
}

.order-title {
  margin: 0 2rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.order-sub {
  margin: 0.45rem 2rem 1.2rem 0;
  max-width: 34ch;
  color: #b5b5b5;
  font-family: var(--body);
  font-size: 0.84rem;
  line-height: 1.4;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.order-field span {
  color: #d8d8d8;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-field input,
.order-field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 12px;
  background: rgb(8 8 8 / 0.55);
  color: #f3f1ec;
  font-family: var(--body);
  font-size: 0.9rem;
  outline: none;
  resize: none;
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: #6f6f6f;
}

.order-field input:focus,
.order-field textarea:focus {
  border-color: rgb(255 255 255 / 0.28);
}

.order-submit {
  margin-top: 0.2rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 999px;
  background: rgb(22 22 22 / 0.95);
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.order-submit:hover {
  background: rgb(32 32 32 / 0.98);
}

.order-submit:active {
  transform: translateY(1px);
}

html.is-order-open {
  overflow: hidden;
}

@media (prefers-reduced-transparency: reduce) {
  .order-overlay,
  .order-modal {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .order-modal {
    background: #111111;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 0 1.15rem 8vh;
  }

  .hero-name {
    font-size: clamp(3.4rem, 22vw, 5.6rem);
  }

  .hero-role {
    font-size: clamp(2.3rem, 16vw, 4.1rem);
    -webkit-text-stroke-width: 1.2px;
  }

  .hero-lead {
    margin-top: 1.6rem;
  }

  .stack {
    margin-top: 0;
    padding: 5vh 0;
    border-radius: 1.6rem 1.6rem 0 0;
  }

  .stack-track {
    font-size: clamp(2.4rem, 16vw, 4.2rem);
  }

  .hero-cta {
    right: 1.15rem;
    bottom: 1.5rem;
  }

  .skills {
    padding: 6vh 0 12vh;
  }

  .skills-title {
    padding: 0 1.15rem;
  }

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

  .skills-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.35rem 1.15rem;
  }

  .skills-item h3 {
    white-space: normal;
  }

  .contacts {
    padding: 6vh 0 12vh;
  }

  .contacts-title {
    padding: 0 1.15rem 3.2vh;
  }

  .contacts-item a,
  .contacts-row {
    padding: 1.35rem 1.15rem;
  }

  .contacts-mark {
    padding: 3vh 1.15rem 1.5vh;
    font-size: clamp(3.4rem, 22vw, 6rem);
    -webkit-text-stroke-width: 1.2px;
  }

  .contacts-name {
    white-space: normal;
  }

  .contacts-copy {
    padding: 2.5vh 1.15rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-track {
    animation: none;
  }

  .loader,
  .hero-cta,
  .order-submit,
  .skills-item,
  .skills-item p,
  .contacts-item a,
  .contacts-meta {
    transition: none !important;
  }

  .loader.is-done {
    transform: none;
    display: none;
  }
}
