:root {
  --bg: #151515;
  --text: #f2f2f2;
  --muted: #b2b2b2;
  --line: #2f2f2f;
}

* {
  box-sizing: border-box;
}


.media-protected,
img,
video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img,
video {
  pointer-events: none;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Golos Text", "Manrope", "Inter", Arial, sans-serif;
}

main,
.site-footer {
  width: min(1500px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 35px;
  width: 100%;
  margin: 0;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand,
nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  mix-blend-mode: difference;
}

nav {
  display: flex;
  gap: 1.35rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: 0.8rem;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
  mix-blend-mode: difference;
}

.lang-switch button.is-active {
  color: #fff;
}

.lang-switch span {
  color: #fff;
  font-size: 0.62rem;
  mix-blend-mode: difference;
}

a,
button,
.project {
  transition: opacity 180ms ease, filter 180ms ease, color 180ms ease, background-color 180ms ease;
}

.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(140px, 18vh, 230px) 0 2rem;
}

.hero__kicker {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero__title {
  margin: 0.5rem 0 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(2.8rem, 15vw, 16rem);
}

.hero__lead {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero__tg {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__tg a {
  color: var(--muted);
  text-decoration: none;
}

.hero__avatar-wrap {
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

.hero__avatar {
  width: clamp(72px, 9vw, 118px);
  height: clamp(72px, 9vw, 118px);
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.projects {
  padding: 2rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  row-gap: 7rem;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  opacity: 1;
  transform: none;
  transition: filter 180ms ease;
}

.project.is-shown {
  opacity: 1;
  transform: none;
}

.project__thumb {
  width: 100%;
  padding-top: 80%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1), filter 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding-top: 0.45rem;
}

.project__meta p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--muted);
}

.project-1,
.project-5 {
  grid-column: span 2;
}

.project-2,
.project-6 {
  grid-column: span 3;
}

.project-3 {
  grid-column: span 3;
}

.project-4 {
  grid-column: span 2;
}

.project-full {
  grid-column: 1 / -1;
}

.project-full .project__thumb {
  padding-top: 55%;
}

.other-projects {
  margin-top: 1.6rem;
  margin-bottom: 2.2rem;
  position: relative;
}

.other-projects h2 {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.other-projects__list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.other-project {
  margin: 0;
  display: inline-block;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  width: fit-content;
  cursor: default;
  transition: opacity 220ms ease;
}

.other-project:hover {
  opacity: 0.7;
}

.other-projects__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  max-width: min(420px, 42vw);
  max-height: min(320px, 36vh);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
  z-index: 50;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.other-projects__preview.is-visible {
  opacity: 1;
}

.other-projects__preview img {
  width: auto;
  height: auto;
  max-width: min(420px, 42vw);
  max-height: min(320px, 36vh);
  object-fit: contain;
  display: block;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  pointer-events: none;
  transform: translate3d(-9999px, -9999px, 0);
  z-index: 130;
  display: none;
}

.about,
.resume,
.contacts {
  padding: 1.5rem 0;
}

.about h2,
.resume h2,
.contacts h2 {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 64ch;
}

.about__clients {
  margin-top: 0.55rem;
}

.resume-links {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.resume-links a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 0.58rem 0.8rem;
  transition: opacity 220ms ease;
}

.resume-links a:hover {
  opacity: 0.72;
}

.contact-list {
  margin-top: 0.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-footer {
  padding: 1.2rem 0 1.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 980px) {
  .projects-grid {
    row-gap: 2.8rem;
  }

  .project,
  .project-1,
  .project-2,
  .project-3,
  .project-4,
  .project-5,
  .project-6 {
    grid-column: span 5;
  }

  .hero {
    min-height: 66vh;
  }

  .project__thumb {
    padding-top: 76%;
  }

  .other-projects__preview {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  p,
  button {
    cursor: none !important;
  }

  .custom-cursor {
    display: block;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: clamp(240px, 38vh, 360px);
  }

  .site-header nav a[href="#about"],
  .site-header nav a[href="./resume.html"] {
    display: none;
  }

  .project__thumb {
    padding-top: 76%;
  }
}

@media (hover: hover) and (pointer: fine) {
  a:hover,
  button:hover {
    filter: brightness(0.82);
  }

  .project:hover {
    filter: brightness(0.92);
  }
}
