@font-face {
  font-family: "GT Eesti Pro Display";
  src:
    local("GT Eesti Pro Display"),
    url("fonts/GT-Eesti-Pro-Display.woff2") format("woff2"),
    url("fonts/GT-Eesti-Pro-Display.woff") format("woff");
  font-display: swap;
}

:root {
  --text: #090909;
  --muted: #8c8c8c;
  --line: #dedede;
  --page: #ffffff;
  --max: 1180px;
  --glass-fill: rgb(229 234 246 / 42%);
  --glass-fill-strong: rgb(229 234 246 / 58%);
  --glass-line: rgb(255 255 255 / 68%);
  --glass-shadow: 0 16px 46px rgb(42 55 92 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Montserrat", "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

section {
  scroll-margin-top: 92px;
}

button,
a {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 48px;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(218 224 255 / 72%) 0%, rgb(221 230 255 / 34%) 42%, rgb(255 255 255 / 0%) 78%),
    linear-gradient(180deg, rgb(232 219 255 / 34%) 0%, rgb(255 255 255 / 0%) 82%);
  backdrop-filter: blur(18px);
}

.site-header a {
  color: #6f6f6f;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-header a:hover,
.site-header a:focus-visible {
  color: var(--text);
  outline: none;
}

.site-header__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2a2a2a;
  font-family: "GT Eesti Pro Display", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.site-header__name img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.site-header__nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  font-size: 15px;
  font-weight: 500;
}

.site-header__nav .site-header__behance {
  color: #3a61ef;
}

.site-header__nav .site-header__behance:hover,
.site-header__nav .site-header__behance:focus-visible {
  color: #3a61ef;
}

.language-switch {
  position: relative;
}

.language-switch::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: 132px;
  height: 14px;
  content: "";
}

.language-switch__button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--glass-line);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 42%), rgb(224 232 248 / 28%)),
    var(--glass-fill);
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgb(255 255 255 / 72%);
  backdrop-filter: blur(18px) saturate(1.18);
  color: #6f6f6f;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.language-switch__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.language-switch:hover .language-switch__button,
.language-switch:focus-within .language-switch__button {
  border-color: rgb(255 255 255 / 86%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 54%), rgb(224 232 248 / 36%)),
    var(--glass-fill-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.language-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 112px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 18px 42px rgb(0 0 0 / 10%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.language-switch:hover .language-switch__menu,
.language-switch:focus-within .language-switch__menu,
.language-switch.is-open .language-switch__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-switch__menu a,
.language-switch__menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2a2a2a;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.language-switch__menu button span {
  min-width: 20px;
  color: #6f6f6f;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.language-switch__menu a:hover,
.language-switch__menu a:focus-visible,
.language-switch__menu button:hover,
.language-switch__menu button:focus-visible,
.language-switch__menu button.is-active {
  background: #f2f2f2;
  color: var(--text);
}

main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding-top: clamp(28px, 5vw, 78px);
}

.hero__frame {
  position: relative;
  overflow: visible;
}

.hero__clip {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.hero__clip::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 18%, rgb(255 58 104 / 0.22) 18% 20%, transparent 20% 100%),
    linear-gradient(90deg, transparent 0 56%, rgb(63 137 255 / 0.2) 56% 58%, transparent 58% 100%);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.hero__image,
.hero__glitch {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
}

.hero__image {
  position: relative;
  z-index: 1;
  transition: filter 220ms ease;
}

.hero__image--base {
  filter: saturate(0.98);
}

.hero__image--portrait {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translate(0, 0) scale(1);
  transform-origin: 50% 56%;
  clip-path: ellipse(31% 45% at 50% 55%);
  pointer-events: none;
  transition:
    filter 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__glitch {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: url("assets/welcome-image.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
}

.hero__glitch--red {
  mix-blend-mode: screen;
  filter: hue-rotate(145deg) saturate(1.45);
}

.hero__glitch--blue {
  mix-blend-mode: multiply;
  filter: hue-rotate(285deg) saturate(1.4);
}

.hero__text {
  position: absolute;
  left: 14%;
  bottom: 7%;
  z-index: 5;
  width: min(70%, 820px);
  transform: rotate(-7deg);
  transform-origin: center;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 12%));
  transition:
    filter 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.hero__frame:hover .hero__clip::before,
.hero__frame:focus-within .hero__clip::before {
  animation: hero-scanlines 650ms steps(1, end) both;
}

.hero__frame:hover .hero__image,
.hero__frame:focus-within .hero__image {
  filter: contrast(1.04) saturate(1.04);
}

.hero__frame:hover .hero__image--base,
.hero__frame:focus-within .hero__image--base {
  animation: hero-image-glitch 650ms steps(1, end) both;
}

.hero__frame:hover .hero__image--portrait,
.hero__frame:focus-within .hero__image--portrait {
  filter: contrast(1.06) saturate(1.06);
  transform: translate(0, -3px) scale(1.012);
}

.hero__frame:hover .hero__glitch--red,
.hero__frame:focus-within .hero__glitch--red {
  animation: hero-glitch-red 650ms steps(1, end) both;
}

.hero__frame:hover .hero__glitch--blue,
.hero__frame:focus-within .hero__glitch--blue {
  animation: hero-glitch-blue 650ms steps(1, end) both;
}

.hero__frame:hover .hero__text,
.hero__frame:focus-within .hero__text {
  filter: drop-shadow(0 18px 28px rgb(0 0 0 / 20%));
  transform: rotate(-2deg) scale(1.08);
}

@keyframes hero-scanlines {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }

  18% {
    opacity: 1;
    clip-path: inset(10% 0 78% 0);
    transform: translateX(5px);
  }

  38% {
    opacity: 0.75;
    clip-path: inset(42% 0 49% 0);
    transform: translateX(-4px);
  }

  58% {
    opacity: 0.9;
    clip-path: inset(71% 0 20% 0);
    transform: translateX(3px);
  }

  76% {
    opacity: 0.65;
    clip-path: inset(26% 0 66% 0);
    transform: translateX(-3px);
  }
}

@keyframes hero-image-glitch {
  0%,
  100% {
    transform: translate(0) skewX(0deg) scale(1);
  }

  16% {
    transform: translate(2px, -1px) skewX(0.18deg) scale(1.003);
  }

  32% {
    transform: translate(-2px, 1px) skewX(-0.22deg) scale(1.002);
  }

  50% {
    transform: translate(1px, 0) skewX(0.15deg) scale(1.004);
  }

  66% {
    transform: translate(-1px, -1px) skewX(-0.16deg) scale(1.002);
  }
}

@keyframes hero-portrait-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1.004);
  }

  50% {
    transform: translate(0, -3px) scale(1.012);
  }
}

@keyframes hero-glitch-red {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }

  18% {
    opacity: 0.2;
    clip-path: inset(12% 0 76% 0);
    transform: translate(7px, -1px);
  }

  38% {
    opacity: 0.17;
    clip-path: inset(48% 0 43% 0);
    transform: translate(-6px, 1px);
  }

  58% {
    opacity: 0.19;
    clip-path: inset(68% 0 24% 0);
    transform: translate(5px, 0);
  }
}

@keyframes hero-glitch-blue {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }

  18% {
    opacity: 0.16;
    clip-path: inset(26% 0 64% 0);
    transform: translate(-7px, 1px);
  }

  38% {
    opacity: 0.18;
    clip-path: inset(58% 0 34% 0);
    transform: translate(6px, -1px);
  }

  58% {
    opacity: 0.14;
    clip-path: inset(8% 0 84% 0);
    transform: translate(-5px, 0);
  }
}

.marquee {
  width: 100%;
  overflow: hidden;
  padding-top: 12px;
  white-space: nowrap;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 34px;
  animation: marquee 16s linear infinite;
}

.marquee__track span {
  flex: 0 0 auto;
  color: #7f7f7f;
  font-size: 16px;
  line-height: 1.2;
}

.marquee__track em {
  color: #5d7ec9;
  font-style: normal;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-25% - 25.5px));
  }
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: clamp(44px, 11vw, 164px);
}

.intro {
  padding: clamp(48px, 7vw, 72px) 0 28px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: "GT Eesti Pro Display", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(54px, 7.2vw, 86px);
  line-height: 0.95;
  font-weight: 800;
}

.kicker {
  margin-top: 18px;
  color: #303030;
}

.intro__short {
  max-width: 600px;
  font-weight: 500;
}

.intro__copy {
  max-width: 560px;
  padding-top: 0;
  line-height: 1.35;
}

.intro__copy p + p {
  margin-top: 18px;
}

.about-summary__headline {
  max-width: 540px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.18;
}

.gallery {
  position: relative;
  min-height: clamp(620px, 62vw, 780px);
  margin: 0 calc((100vw - min(var(--max), calc(100vw - 48px))) / -2);
  padding: clamp(110px, 13vw, 152px) max(24px, calc((100vw - var(--max)) / 2))
    clamp(92px, 11vw, 132px);
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(rgb(255 255 255 / 28%), rgb(255 255 255 / 42%)),
    url("assets/gallery-bg-smile.png") center / cover;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 50%);
  isolation: isolate;
}

.gallery::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(74 91 138 / 16%);
  backdrop-filter: blur(3px) saturate(1.05);
  content: "";
}

.gallery::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 46%, transparent 0 28%, rgb(0 0 0 / 22%) 72%);
  content: "";
}

.gallery__meta {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  border: 1px solid var(--glass-line);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 42%), rgb(224 232 248 / 28%)),
    var(--glass-fill);
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgb(255 255 255 / 72%);
  backdrop-filter: blur(18px) saturate(1.18);
  color: #ffffff;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 24;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 50%;
  background: rgb(255 255 255 / 24%);
  box-shadow: 0 18px 54px rgb(0 0 0 / 16%);
  backdrop-filter: blur(18px);
  color: #ffffff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.gallery__arrow:hover,
.gallery__arrow:focus-visible {
  border-color: rgb(255 255 255 / 58%);
  background: rgb(255 255 255 / 34%);
  transform: translateY(-50%) scale(1.06);
  outline: none;
}

.gallery__arrow--prev {
  left: max(26px, calc((100vw - var(--max)) / 2 + 32px));
}

.gallery__arrow--next {
  right: max(26px, calc((100vw - var(--max)) / 2 + 32px));
}

.gallery__meta {
  bottom: 36px;
  left: 50%;
  min-width: 190px;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  transform: translateX(-50%);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.gallery__meta strong {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition:
    letter-spacing 220ms ease,
    transform 220ms ease;
}

.gallery__meta:hover {
  border-color: rgb(255 255 255 / 86%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 54%), rgb(224 232 248 / 36%)),
    var(--glass-fill-strong);
  box-shadow: 0 22px 58px rgb(42 55 92 / 16%), inset 0 1px 1px rgb(255 255 255 / 78%);
  transform: translateX(-50%) translateY(-3px);
}

.gallery__meta:hover strong {
  letter-spacing: 0.02em;
  transform: scale(1.04);
}

.gallery:has(.work-card.is-center:hover) .gallery__meta,
.gallery:has(.work-card.is-center:focus-visible) .gallery__meta {
  border-color: rgb(255 255 255 / 86%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 54%), rgb(224 232 248 / 36%)),
    var(--glass-fill-strong);
  box-shadow: 0 22px 58px rgb(42 55 92 / 16%), inset 0 1px 1px rgb(255 255 255 / 78%);
  transform: translateX(-50%) translateY(-3px);
}

.gallery:has(.work-card.is-center:hover) .gallery__meta strong,
.gallery:has(.work-card.is-center:focus-visible) .gallery__meta strong {
  letter-spacing: 0.02em;
  transform: scale(1.04);
}

.work-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(230px, 30vw, 430px);
  height: clamp(320px, 40vw, 540px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: rgb(255 255 255 / 16%);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    -18px 18px 32px rgb(24 32 62 / 10%),
    0 26px 70px rgb(0 0 0 / 24%),
    inset 0 0 0 1px rgb(255 255 255 / 38%);
  transform: translate(-50%, -50%) translateX(var(--x, 0)) translateY(var(--y, 0))
    scale(var(--scale, 1)) rotate(var(--tilt, 0));
  transition:
    box-shadow 280ms ease,
    opacity 280ms ease,
    transform 280ms ease,
    filter 280ms ease;
}

.work-card:not(:first-child) {
  margin-left: 0;
}

.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 22px 24px 24px;
  background: linear-gradient(transparent, rgb(0 0 0 / 74%));
  color: #ffffff;
  text-align: left;
}

.work-card__caption strong {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
}

.work-card__caption small {
  font-size: 13px;
  line-height: 1.35;
}

.work-card--one {
  --x: -315px;
  --y: 26px;
  --scale: 0.72;
  --tilt: -6deg;
  filter: saturate(0.82) brightness(0.9);
  opacity: 0.62;
  z-index: 1;
}

.work-card--two {
  --x: -190px;
  --y: 4px;
  --scale: 0.86;
  --tilt: -3deg;
  filter: saturate(0.88) brightness(0.96);
  opacity: 0.82;
  z-index: 2;
}

.work-card--three {
  --x: 0px;
  --y: 0px;
  --scale: 1;
  --tilt: 0deg;
  z-index: 4;
}

.work-card--four {
  --x: 270px;
  --y: 18px;
  --scale: 0.82;
  --tilt: 5deg;
  filter: saturate(0.86) brightness(0.94);
  opacity: 0.72;
  z-index: 3;
}

.work-card--five {
  --x: 360px;
  --y: 34px;
  --scale: 0.7;
  --tilt: 7deg;
  filter: saturate(0.78) brightness(0.86);
  opacity: 0.52;
  z-index: 2;
}

.work-card.is-center {
  --x: 0px;
  --y: 0px;
  --scale: 1;
  --tilt: 0deg;
  filter: saturate(1) brightness(1);
  opacity: 1;
  z-index: 8;
  box-shadow:
    0 34px 78px rgb(0 0 0 / 26%),
    inset 0 0 0 1px rgb(255 255 255 / 45%);
}

.work-card.is-left-near {
  --x: -205px;
  --y: 8px;
  --scale: 0.86;
  --tilt: -4deg;
  filter: saturate(0.94) brightness(0.98);
  opacity: 0.94;
  z-index: 5;
  box-shadow:
    26px 22px 42px rgb(24 32 62 / 24%),
    0 30px 68px rgb(0 0 0 / 28%),
    inset 0 0 0 1px rgb(255 255 255 / 34%);
}

.work-card.is-right-near {
  --x: 205px;
  --y: 8px;
  --scale: 0.86;
  --tilt: 4deg;
  filter: saturate(0.94) brightness(0.98);
  opacity: 0.94;
  z-index: 5;
  box-shadow:
    -26px 22px 42px rgb(24 32 62 / 24%),
    0 30px 68px rgb(0 0 0 / 28%),
    inset 0 0 0 1px rgb(255 255 255 / 34%);
}

.work-card.is-left-far {
  --x: -330px;
  --y: 28px;
  --scale: 0.7;
  --tilt: -7deg;
  filter: saturate(0.78) brightness(0.86);
  opacity: 0.52;
  z-index: 3;
  box-shadow:
    16px 16px 28px rgb(24 32 62 / 10%),
    0 18px 46px rgb(0 0 0 / 14%),
    inset 0 0 0 1px rgb(255 255 255 / 28%);
}

.work-card.is-right-far {
  --x: 330px;
  --y: 28px;
  --scale: 0.7;
  --tilt: 7deg;
  filter: saturate(0.78) brightness(0.86);
  opacity: 0.52;
  z-index: 3;
  box-shadow:
    -16px 16px 28px rgb(24 32 62 / 10%),
    0 18px 46px rgb(0 0 0 / 14%),
    inset 0 0 0 1px rgb(255 255 255 / 28%);
}

.work-card:hover,
.work-card:focus-visible {
  z-index: 12;
  filter: saturate(1.05) brightness(1.03);
  opacity: 1;
  box-shadow:
    0 36px 90px rgb(0 0 0 / 32%),
    inset 0 0 0 1px rgb(255 255 255 / 55%);
  transform: translate(-50%, -50%) translateX(var(--x, 0)) translateY(calc(var(--y, 0px) - 18px))
    scale(calc(var(--scale, 1) + 0.05)) rotate(0deg);
  outline: none;
}

.work-card.is-center:hover,
.work-card.is-center:focus-visible {
  transform: translate(-50%, -50%) translateX(var(--x, 0)) translateY(calc(var(--y, 0px) - 10px))
    scale(1.035) rotate(0deg);
}

.details {
  padding: clamp(86px, 12vw, 138px) 0 clamp(90px, 12vw, 140px);
}

.details h2 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
}

.glass-panel {
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 26px;
  background: linear-gradient(145deg, rgb(255 255 255 / 76%), rgb(245 247 252 / 52%));
  box-shadow:
    0 26px 70px rgb(28 36 70 / 10%),
    inset 0 0 0 1px rgb(255 255 255 / 58%);
  backdrop-filter: blur(18px);
}

.about-hero {
  position: relative;
  min-height: clamp(660px, 72vw, 880px);
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgb(250 250 250 / 94%), rgb(238 240 244 / 96%)),
    radial-gradient(circle at 74% 32%, rgb(93 126 201 / 18%), transparent 32%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 4%);
}

.about-hero::before {
  position: absolute;
  inset: auto 7% 12% 7%;
  height: 38%;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 28px;
  background: rgb(255 255 255 / 24%);
  backdrop-filter: blur(18px);
  content: "";
}

.about-hero__topline {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 48px);
  color: #7f7f7f;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.about-hero__headline {
  position: absolute;
  top: 14%;
  left: clamp(28px, 5vw, 68px);
  z-index: 5;
  display: grid;
  max-width: 68%;
  color: #141414;
  font-family: "GT Eesti Pro Display", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(58px, 9.4vw, 132px);
  font-weight: 800;
  line-height: 0.92;
  text-transform: none;
  transform-origin: left center;
  transition:
    filter 520ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-hero__headline span {
  white-space: nowrap;
}

.about-hero:hover .about-hero__headline {
  filter: drop-shadow(0 18px 28px rgb(0 0 0 / 12%));
  transform: scale(1.035);
}

.about-hero__headline span:last-child {
  margin-left: clamp(12px, 4vw, 56px);
}

.about-photo {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 8%;
  z-index: 4;
  width: min(42vw, 500px);
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 90px rgb(0 0 0 / 18%);
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 44%;
  transform: scale(1.04);
}

.about-note {
  position: absolute;
  left: clamp(32px, 7vw, 92px);
  bottom: 16%;
  z-index: 4;
  width: min(340px, 38%);
  color: #202020;
}

.about-note img {
  position: absolute;
  right: -118%;
  bottom: -58%;
  z-index: -1;
  width: min(820px, 74vw);
  opacity: 0.64;
  filter: drop-shadow(0 26px 38px rgb(0 0 0 / 12%));
  animation: floatHand 6.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatHand {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(-10px, -18px, 0) rotate(2deg);
  }
}

.about-note span {
  display: block;
  margin-bottom: 12px;
  color: #5d7ec9;
  font-weight: 500;
}

.about-note p {
  line-height: 1.35;
}

.about-dashboard {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 18px;
}

.about-summary {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-end;
  min-height: 320px;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 0;
}

.about-summary .intro__copy {
  max-width: none;
  width: 100%;
}

.about-summary .about-summary__headline {
  max-width: 760px;
  margin-bottom: 28px;
}

.about-summary .intro__copy p:nth-child(2),
.about-summary .intro__copy p:nth-child(3),
.about-summary .intro__copy p:nth-child(4),
.about-summary .intro__copy p:nth-child(5) {
  max-width: 900px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  grid-column: 1 / -1;
}

.metric-card {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  padding: 24px;
}

.metric-card span {
  color: #a4a4a4;
  font-size: 18px;
}

.metric-card strong {
  color: #202020;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 0.95;
}

.metric-card small {
  color: #777777;
  font-size: 13px;
  line-height: 1.3;
}

.career-card,
.skills {
  padding: clamp(24px, 4vw, 36px);
}

.timeline p {
  margin-bottom: 28px;
  line-height: 1.35;
}

.timeline span {
  display: block;
}

.skills h2:not(:first-child) {
  margin-top: 34px;
}

.skills {
  padding-top: clamp(24px, 4vw, 36px);
}

.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.35;
}

.skills li {
  white-space: nowrap;
}

.contact {
  display: flex;
  position: relative;
  min-height: 500px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(28px, 5vw, 58px) 0 100px;
  background: transparent;
  text-align: center;
}

.contact__video {
  position: absolute;
  top: 30px;
  left: 330px;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: blur(1px) saturate(0.9);
  pointer-events: none;
}

.contact::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(255 255 255 / 54%), rgb(255 255 255 / 68%));
  content: "";
  pointer-events: none;
}

.contact::before {
  content: none;
}

.contact-marquee {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  white-space: nowrap;
}

.contact-marquee__track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: contact-marquee 18s linear infinite;
}

.contact-marquee__track span {
  flex: 0 0 auto;
  color: #5d7ec9;
  font-size: 22px;
  line-height: 1.2;
}

@keyframes contact-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-25% - 21px));
  }
}

.contact h2 {
  position: relative;
  z-index: 2;
  font-family: "GT Eesti Pro Display", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 0.95;
  font-weight: 800;
  text-transform: none;
}

.contact-dock {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-top: 56px;
}

.contact-dock__item {
  position: relative;
  display: inline-flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 42%), rgb(224 232 248 / 28%)),
    var(--glass-fill);
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgb(255 255 255 / 72%);
  backdrop-filter: blur(22px) saturate(1.25);
  color: #5f5f5f;
  text-decoration: none;
  font-weight: 500;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.contact-dock__item::before {
  position: absolute;
  inset: 9px 11px auto;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(255 255 255 / 72%), rgb(255 255 255 / 10%));
  content: "";
  pointer-events: none;
}

.contact-dock__item:hover,
.contact-dock__item:focus-visible {
  border-color: rgb(255 255 255 / 88%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 54%), rgb(224 232 248 / 36%)),
    var(--glass-fill-strong);
  box-shadow: 0 22px 58px rgb(42 55 92 / 16%), inset 0 1px 1px rgb(255 255 255 / 78%);
  color: #3f3f3f;
  filter: none;
  transform: translateY(-3px);
  outline: none;
}

.contact-dock svg,
.contact-dock__logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}

.contact-dock__item--mail svg,
.contact-dock__item--instagram svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.contact-dock__logo {
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: currentColor;
  font-family: "GT Eesti Pro Display", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.contact-dock__item--behance .contact-dock__logo {
  background: transparent;
}

.contact-dock__item--linkedin .contact-dock__logo {
  background: transparent;
  font-size: 38px;
  font-weight: 500;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(255 255 255 / 78%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__panel {
  position: relative;
  width: min(1280px, calc(100vw - 48px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--page);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgb(0 0 0 / 16%);
  transform: translateY(18px);
  transition: transform 180ms ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

.modal__close {
  position: sticky;
  top: 16px;
  left: calc(100% - 58px);
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 86%);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal__nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: rgb(255 255 255 / 46%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), 0 18px 42px rgb(0 0 0 / 12%);
  backdrop-filter: blur(18px);
  color: rgb(45 45 45 / 78%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.modal__nav:hover,
.modal__nav:focus-visible {
  background: rgb(255 255 255 / 72%);
  color: #1f1f1f;
  outline: none;
  transform: translateY(-50%) scale(1.05);
}

.modal__nav--prev {
  left: clamp(18px, 4vw, 56px);
  transform: translateY(-50%);
}

.modal__nav--next {
  right: clamp(18px, 4vw, 56px);
  transform: translateY(-50%);
}

.modal__images {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 12px;
  padding: 18px;
}

.modal__images img,
.modal__images video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: #f7f7f7;
  overflow: hidden;
}

.modal__images img {
  object-fit: cover;
}

.modal__images video {
  object-fit: contain;
}

.modal__images .modal__video--dark {
  background: #0b0c16;
}

.modal__images--modern img,
.modal__images--modern video {
  background: #f3f3f1;
}

.modal__images img:first-child,
.modal__images video:first-child {
  grid-row: span 2;
}

.modal__images--count-5 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.modal__images--count-5 img,
.modal__images--count-5 video {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.modal__images--count-5 img:first-child,
.modal__images--count-5 video:first-child {
  grid-column: 1 / -1;
  grid-row: auto;
  aspect-ratio: 16 / 9;
}

.modal__images .modal__media--airy-hammock {
  background: #f7f7f7;
  object-fit: cover;
  object-position: 50% 58%;
}

.modal__images .modal__media--airy-cover {
  object-position: 50% 22%;
}

.modal__images--puffy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.modal__images--puffy img,
.modal__images--puffy video {
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.modal__images--puffy img:first-child,
.modal__images--puffy video:first-child,
.modal__images--puffy img:last-child,
.modal__images--puffy video:last-child {
  grid-column: 1 / -1;
  grid-row: auto;
}

.modal__images--puffy img:first-child,
.modal__images--puffy video:first-child {
  aspect-ratio: 21 / 7;
}

.modal__images--puffy img:not(:first-child):not(:last-child),
.modal__images--puffy video:not(:first-child):not(:last-child) {
  aspect-ratio: 1 / 1;
}

.modal__images--puffy img:last-child,
.modal__images--puffy video:last-child {
  aspect-ratio: 16 / 8;
  object-position: 50% 45%;
}

.modal__images--motion {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: repeat(2, minmax(220px, 1fr));
}

.modal__images--motion img,
.modal__images--motion video {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.modal__images--motion img:first-child,
.modal__images--motion video:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
  object-position: 50% 50%;
}

.modal__images--motion img:not(:first-child),
.modal__images--motion video:not(:first-child) {
  aspect-ratio: auto;
}

.modal__text {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  padding: 18px 18px 32px;
}

.modal__text h2 {
  font-family: "GT Eesti Pro Display", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.95;
}

.modal__text p {
  max-width: 580px;
}

.modal__project-link {
  width: fit-content;
  margin-top: 18px;
  color: #3a61ef;
  font-weight: 500;
  text-decoration: none;
}

.modal__project-link:hover,
.modal__project-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 850px) {
  section {
    scroll-margin-top: 126px;
  }

  .site-header {
    align-items: flex-start;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 16px 24px;
  }

  .site-header__right {
    width: 100%;
    align-items: flex-start;
    gap: 16px;
  }

  .site-header__nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }

  main {
    width: min(100% - 28px, var(--max));
  }

  .section-grid,
  .modal__text {
    grid-template-columns: 1fr;
  }

  .intro__copy {
    max-width: none;
    padding-top: 44px;
  }

  .gallery {
    min-height: 620px;
    margin: 0 -14px;
    padding: 104px 14px 96px;
    border-radius: 18px;
  }

  .work-card {
    width: min(58vw, 360px);
    height: 430px;
  }

  .gallery__arrow {
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .gallery__arrow--prev {
    left: 24px;
  }

  .gallery__arrow--next {
    right: 24px;
  }

  .work-card--one {
    --x: -190px;
    --y: 24px;
    --scale: 0.68;
  }

  .work-card--two {
    --x: -110px;
    --y: 8px;
    --scale: 0.82;
  }

  .work-card--four {
    --x: 140px;
    --y: 18px;
    --scale: 0.78;
  }

  .work-card.is-left-near {
    --x: -130px;
    --y: 8px;
    --scale: 0.82;
  }

  .work-card.is-right-near {
    --x: 130px;
    --y: 8px;
    --scale: 0.82;
  }

  .work-card.is-left-far {
    --x: -215px;
    --y: 28px;
    --scale: 0.66;
  }

  .work-card.is-right-far {
    --x: 215px;
    --y: 28px;
    --scale: 0.66;
  }

  .details {
    row-gap: 56px;
  }

  .about-hero {
    min-height: 760px;
  }

  .about-hero__topline {
    gap: 12px;
    flex-wrap: wrap;
  }

  .about-hero__headline {
    top: 13%;
    max-width: 72%;
    font-size: clamp(52px, 13.5vw, 104px);
  }

  .about-photo {
    right: 24px;
    bottom: 9%;
    width: min(56vw, 400px);
  }

  .about-note {
    left: 28px;
    bottom: 14%;
    width: min(300px, 42%);
  }

  .about-dashboard {
    grid-template-columns: 1fr;
  }

  .about-summary .intro__copy p:nth-child(2),
  .about-summary .intro__copy p:nth-child(3),
  .about-summary .intro__copy p:nth-child(4),
  .about-summary .intro__copy p:nth-child(5) {
    max-width: none;
  }

  .about-metrics {
    grid-template-columns: 1fr;
  }

  .skills ul {
    gap: 10px 18px;
  }

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

  .modal__images img:first-child,
  .modal__images video:first-child {
    grid-row: auto;
  }

  .modal__images--motion {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .modal__images--motion img:first-child,
  .modal__images--motion video:first-child {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .site-header__nav {
    font-size: 13px;
  }

  .site-header__name {
    font-size: 16px;
  }

  .hero__image,
  .hero__glitch {
    aspect-ratio: 4 / 3;
  }

  .hero__text {
    left: 9%;
    bottom: 10%;
    width: 82%;
  }

  .intro {
    padding-bottom: 52px;
  }

  .gallery {
    min-height: 730px;
    padding-top: 92px;
    padding-bottom: 82px;
  }

  .gallery__meta {
    bottom: 24px;
    width: calc(100% - 56px);
    justify-content: center;
  }

  .gallery__arrow {
    top: auto;
    bottom: 92px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    transform: none;
  }

  .gallery__arrow:hover,
  .gallery__arrow:focus-visible {
    transform: scale(1.06);
  }

  .work-card {
    width: min(78vw, 330px);
    height: 410px;
  }

  .work-card--two {
    --x: -44px;
    --y: 60px;
    --scale: 0.84;
    --tilt: -4deg;
  }

  .work-card--three {
    --x: 24px;
    --y: -28px;
    --scale: 1;
  }

  .work-card.is-left-near {
    --x: -78px;
    --y: 48px;
    --scale: 0.78;
    --tilt: -5deg;
  }

  .work-card.is-right-near {
    --x: 78px;
    --y: 48px;
    --scale: 0.78;
    --tilt: 5deg;
  }

  .work-card.is-left-far {
    --x: -24px;
    --y: 96px;
    --scale: 0.64;
    --tilt: -2deg;
    opacity: 0.4;
  }

  .work-card.is-right-far {
    --x: 24px;
    --y: 96px;
    --scale: 0.64;
    --tilt: 2deg;
    opacity: 0.4;
  }

  .details {
    padding-top: 78px;
  }

  .contact {
    min-height: 470px;
    padding-inline: 14px;
  }

  .contact::before {
    content: none;
  }

  .contact h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .contact-dock {
    gap: 12px;
    margin-top: 74px;
  }

  .contact-dock__item {
    width: 60px;
    height: 60px;
  }

  .contact-dock svg,
  .contact-dock__logo {
    width: 42px;
    height: 42px;
  }

  .contact-dock__item--mail svg,
  .contact-dock__item--instagram svg {
    width: 42px;
    height: 42px;
  }

  .about-hero {
    min-height: 680px;
    border-radius: 24px;
  }

  .about-hero::before {
    inset-inline: 14px;
    bottom: 14px;
    height: 48%;
  }

  .about-hero__topline {
    padding: 22px;
    font-size: 11px;
  }

  .about-hero__headline {
    top: 14%;
    left: 20px;
    z-index: 4;
    max-width: calc(100% - 40px);
    font-size: clamp(42px, 16vw, 68px);
  }

  .about-hero__headline span:last-child {
    margin-left: 16px;
  }

  .about-photo {
    right: 14px;
    bottom: 24px;
    width: min(70vw, 300px);
  }

  .about-photo img {
    object-position: 50% 44%;
    transform: scale(1.04);
  }

  .about-note {
    top: 39%;
    bottom: auto;
    left: 20px;
    width: min(240px, calc(100% - 40px));
  }

  .about-note img {
    right: -82%;
    bottom: -122px;
    width: 460px;
    opacity: 0.36;
  }

  .about-summary,
  .career-card,
  .skills,
  .metric-card {
    border-radius: 20px;
    padding: 22px;
  }

  .modal {
    padding: 12px;
  }

  .modal__panel {
    max-height: calc(100vh - 24px);
  }

  .modal__images,
  .modal__text {
    padding-inline: 12px;
  }
}
