/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
    background: #E6F0F0;
    text-shadow: none;
    color: #000;
}

.host-grotesk-<uniquifier> {
  font-family: "Host Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}.atkinson-hyperlegible-next-<uniquifier> {
  font-family: "Atkinson Hyperlegible Next", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
body {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  color: #111;
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
}

a {
  text-decoration: none;
  transition: 0.4s;
  color: #3B82F6;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.narrow {
  max-width: 800px;
}

.wide {
  max-width: calc(100% - 200px);
}

.bg-color-grey {
  background: #fafafc;
}

/* ================= REVEAL ================= */

.reveal {
  opacity: 1;
  transform: translateY(60px);
  transition: 1.8s cubic-bezier(.19,1,.22,1);
}

.visible {
  opacity: 1;
  transform: translateY(0);
  transition: 1.8s cubic-bezier(.19,1,.22,1);
}

/* nav ******************************/

.site-header {
  margin-bottom: 160px;
  padding: 32px 0;
}

.nav {
  --nav-text: #1c1d20;
  --nav-button-bg: #1c1d20;
  --nav-button-text: #fff;

  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  gap: 32px;
}

.nav--dark {
  --nav-text: #fff;
  --nav-button-bg: #fff;
  --nav-button-text: #1c1d20;
}

.nav--light {
  --nav-text: #1c1d20;
  --nav-button-bg: #1c1d20;
  --nav-button-text: #fff;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.nav__brand img {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: block;
  flex: 0 0 40px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__email {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 16px;
    line-height: 1.2;
  white-space: nowrap;
}

.nav__cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border-radius: 999px;
  background: var(--nav-button-bg);
  color: var(--nav-button-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.4s ease;
}

.nav__email:hover,
.nav__cv:hover {
  transform: translateY(-4px);
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav__socials a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav__socials a:hover {
  transform: translateY(-4px);
}

.nav__toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
  position: relative;
  z-index: 30;
}

.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle span:first-child {
  top: 20px;
}

.nav__toggle span:last-child {
  top: 30px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 24, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  z-index: 999;
}

.mobile-menu__inner {
  width: 100%;
  min-height: 100%;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.mobile-menu__label {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.mobile-menu__close {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
  color: #fff;
}

.mobile-menu__close span {
  position: absolute;
  top: 25px;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu__close span:first-child {
  transform: translateX(-50%) rotate(45deg);
}

.mobile-menu__close span:last-child {
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: auto;
  margin-bottom: auto;
}

.mobile-menu__email {
  font-size: 28px;
  line-height: 1.15;
  color: #fff;
  word-break: break-word;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu__links a {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

.mobile-menu__email:hover,
.mobile-menu__links a:hover {
  transform: translateY(-2px);
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ================= HERO ================= */

.home-hero {
  position: relative;
  min-height: 100vh;
  margin-bottom: 160px;
  padding: 60px 0;
  background: #0e0f2c;
  overflow: hidden;
}

.home-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 35, 0.8);
}

.home-hero::before {
  content: "";
  position: absolute;
  width: 4800px;
  height: 1800px;
  background: radial-gradient(circle, rgba(105,0,68,0.65), transparent 60%);
  top: 15%;
  left: 5%;
  filter: blur(160px);
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 2200px;
  height: 2200px;
  background: radial-gradient(circle, rgba(0,90,255,0.65), transparent 60%);
  bottom: 10%;
  right: 10%;
  filter: blur(180px);
}

.home-hero__content {
  color: white;
  margin-top: 120px;
}

.home-hero__content h1 {
  font-size: 80px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 80px;
}

.home-hero__content h1 span {
  display: block;
  margin-bottom: 40px;
}

.home-hero__content p {
  font-size: 16px;
  opacity: 0.6;
  margin-top: 160px;
  max-width: 500px;
  font-weight: 400;
}

.home-hero__video {
  z-index: 0;
}

.home-hero__overlay {
  z-index: 1;
}

.home-hero::before,
.home-hero::after {
  z-index: 2;
}

.nav,
.home-hero__content {
  position: relative;
  z-index: 3;
}

/* ================= FOOTER ================= */

.footer {
  color: #fff;
  padding: 120px 0;
  background-color: #000;
  height: 100vh;
}

.footer-container {
  position: relative;
  top: 50%;
  transform: translateY(0);
  margin: 0 auto;
    max-width: calc(100% - 200px);
}

.footer-container.visible {
  opacity: 1;
  transform: translateY(-50%);
  transition: 1.8s cubic-bezier(.19, 1, .22, 1);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-email {
  text-decoration: none;
  font-size: 32px;
  transition: 0.4s;
  color: #fff;
}

.footer-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border-radius: 999px;
  background: white;
  color: black;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.4s ease;
}

.footer-title h2 {
  font-size: 80px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -4%;
}

.footer-bottom {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 16px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.2);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  text-decoration: none;
  transition: 0.4s;
  color: #fff;
}

.footer-email:hover,
.footer-cv:hover,
.footer-links a:hover {
  transform: translateY(-4px);
}

/* ================= section-title ================= */

.section-title {
  margin-bottom: 160px;
}

.section-title h2 {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 40px 0 24px;
  line-height: 1.6;
  font-weight: 400;
  color: #8C96A0;
}

/* ================= PROJECTS ================= */

.home-projects {
  margin-bottom: 160px;
}

.home-projects__card {
  display: flex;
  flex-direction: column;
  margin-bottom: 160px;
}

.home-projects__img {
  position: relative;
  aspect-ratio: 14/8;
  padding: 40px;
  overflow: hidden;
  border-radius: 8px;
  color: black;
  cursor: pointer;
  text-decoration: none;
}

.home-projects__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: 0.4s ease;
}

.home-projects__img:hover::after {
  background: rgba(0,0,0,0.05);
}

.home-projects__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  --parallax: 0px;
  transform: translateY(var(--parallax)) scale(1);
}

.home-projects__img:hover img {
  transform: translateY(var(--parallax)) scale(1.02);
}

.home-projects__badges {
  position: absolute;
  display: flex;
  bottom: 24px;
  left: 24px;
}

.home-projects__badges div {
  margin-right: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: white;
  font-size: 14px;
}

.home-projects__card-content {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 0;
}

.home-projects__card-txt {
  display: flex;
}

.home-projects__card-txt h3 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  margin-right: 160px;
}

.home-projects__card-txt p {
  font-size: 16px;
  line-height: 1.4;
  max-width: 400px;
}

.home-projects__card-meta {
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.6;
}

.home-projects__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 1;
  padding: 24px 32px;
  border-radius: 9999px;
  background: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  opacity: 0;
  transition: all 0.4s cubic-bezier(.19,1,.22,1);
  pointer-events: none;
}

.home-projects__img:hover .home-projects__btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
  pointer-events: auto;
}

.home-projects__minigrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.home-projects__minicard {
  flex-grow: 1;
  margin-bottom: 80px;
}

.home-projects__minicard .home-projects__img {
  aspect-ratio: 4/3;
}

.home-projects__minicard h3 {
  margin-right: auto;
}

.home-projects__card.visible,
.home-projects__minicard.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= experience ================= */

.home-experience {
  margin-bottom: 160px;
}

.home-experience__job {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 3.2fr;
  align-items: start;
  align-self: start;
  column-gap: 80px;
  row-gap: 24px;
  margin-bottom: 120px;
}

.home-experience__company {
  font-size: 16px;
  font-weight: 500;
  grid-column: 1;
}

.home-experience__company-meta {
  grid-column: 1;
  font-size: 16px;
  line-height: 1.6;
}

.home-experience__company-years {
  margin-top: 8px;
  opacity: 0.6;
}

.home-experience__details {
  grid-column: 2 / span 2;
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 16px;
  column-gap: 24px;
  font-size: 16px;
}

.home-experience__details-label {
  opacity: 0.6;
}

.home-experience__description {
  grid-column: 4;
  font-size: 16px;
  line-height: 1.6;
}

.home-experience__description p {
  margin-bottom: 24px;
}

.home-experience__details a:hover {
  transform: translateY(-4px);
}

/* image-container ******************************/

.image-container {
  overflow: hidden;
  border-radius: 8px;
}

.image-container-border {
  padding: 40px;
  background-color: #FAFAFC;
}

.image-container img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #E2E5E9;
  transition: all 0.4s ease;
}
.image-container-wide {
  overflow: hidden;
  border-radius: 0;
}
.image-container-wide img {
  border-radius: 0;
  border: none;
}

/*
.image-container:hover img {
  transform: scale(1.02);
}
*/

/* case-hero ******************************/

.case-hero {
  margin-bottom: 120px;
}

.case-hero__content {
  margin-bottom: 80px;
}

.case-hero__title {
  margin-bottom: 80px;
  font-size: 120px;
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.case-hero__content p {
  margin-bottom: 40px;
  font-size: 60px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.case-hero__meta {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 60px 40px;
  margin-bottom: 120px;
  padding-top: 40px;
  border-top: 1px solid #ECF0F3;
}

.case-hero__meta-label {
  color: #8C96A0;
}

.case-hero__meta-item p {
  margin-top: 8px;
  font-weight: 500;
}

/* case-image ******************************/

.case-image {
  margin-bottom: 200px;
}

.case-image__caption {
  display: grid;
  align-items: start;
  align-self: start;
  grid-template-columns: 1fr 4fr;
  column-gap: 160px;
  padding: 24px 0 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}

.case-image__caption span {
  color: #8C96A0;
}

.case-image__caption p {
  max-width: 600px;
  color: #8C96A0;
}

/* case-text ******************************/

.case-text {
  margin-bottom: 200px;
  padding-top: 200px;
  border-top: 1px solid #E2E5E9;
}


.case-text h2 {
  margin-bottom: 40px;
  font-size: 64px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.case-text__content p {
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 400;
}






.case-split {
  margin-bottom: 200px;
  padding-top: 200px;
  border-top: 1px solid #E2E5E9;
}

.case-split__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  column-gap: 120px;
  align-items: start;
}
.case-split__right{
  margin-top:16px;

}
.case-split__title {
  margin: 0;
  font-size: 64px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.case-split__eyebrow {
  margin:0 0 40px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.case-split__lead {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.case-split__body p {
  margin: 0 0 20px;
  line-height: 1.6;
}

.case-split__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.4;
  color: #111;
  text-decoration: none;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px 80px;
  margin-top: 80px;
}

.case-stats__item {
}

.case-stats__value {
  margin-bottom: 16px;
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.case-stats__value-text {
  margin: 16px 0 16px;
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.case-stats__label {
  font-size: 16px;
  line-height: 1.6;
  color: #6f7882;
}
.case-stats__label2 {
  font-size: 18px;
}

@media (max-width: 1100px) {
  .case-split__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-split__title,
  .case-split__eyebrow {
    font-size: 48px;
  }

  .case-split__lead {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .case-split {
    margin-bottom: 96px;
  }

  .case-split__title,
  .case-split__eyebrow {
    font-size: 36px;
  }

  .case-split__lead {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .case-stats {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .case-stats__value {
    font-size: 40px;
  }
}







/* case-gallery ******************************/

.case-gallery {
  position: relative;
  margin-bottom: 200px;
}

.case-gallery h2 {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: #8C96A0;
}

.case-gallery__slider {
  position: relative;
  min-height: 100%;
}

.case-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0.55s ease;
}

.case-gallery__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

.case-gallery__slide.is-leaving-prev {
  transform: translateX(24px);
}

.case-gallery__slide.is-leaving-next {
  transform: translateX(-24px);
}

.case-gallery__slide.is-entering-prev {
  transform: translateX(-24px);
}

.case-gallery__slide.is-entering-next {
  transform: translateX(24px);
}

.case-gallery__bullets {
  position: absolute;
  top: 32px;
  right: -56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}

.case-gallery__bullet {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #D6DCE3;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease;
}

.case-gallery__bullet:hover {
  transform: scale(1.2);
}

.case-gallery__bullet.is-active {
  background: #111;
  transform: scale(1.15);
}

.case-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.case-gallery__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.7) 0%,
    rgba(255,255,255,0.2) 100%
  );
  pointer-events: none;
}

.case-gallery__arrow span {
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1;
}

.case-gallery__arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 17, 17, 0.12);
}

.case-gallery__arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.case-gallery__arrow--prev {
  left: calc(50% - 780px);
}

.case-gallery__arrow--next {
  right: calc(50% - 780px);
}

/* case-quote ******************************/

.case-quote {
  margin-bottom: 200px;
}

blockquote {
  position: relative;
  margin-bottom: 40px;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  font-style: italic;
}

blockquote::before {
  content: "“";
  position: absolute;
  top: -160px;
  left: -80px;
  font-size: 400px;
  font-weight: 500;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
  z-index: -1;
}

cite {
  line-height: 1.4;
  font-style: normal;
}

cite strong {
  font-weight: 500;
}

cite span {
  margin-left: 16px;
  color: #8C96A0;
}

/* stats-block ******************************/

.stats-block {
  margin: 200px 0 200px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 160px;
  border-top: 1px solid #ECF0F3;
}

.stat strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: #8C96A0;
}

.next-case {
  background-color: #fff;
  color: black;
  overflow: hidden;
}

.next-case__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.next-case__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.next-case__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
}

.next-case__arrow {
  font-size: 24px;
  transition: transform .3s ease;
}

.next-case__grid {
  display: grid;
  grid-template-columns: 720px 1fr;
  gap: 64px;
  align-items: center;
}

.next-case__media {
  position: relative;
}

.next-case__image-wrap {
  overflow: hidden;
  margin-bottom: -40px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.next-case__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

.next-case__text {
  max-width: 720px;
  padding: 40px 0;
}

.next-case__title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.next-case__description {
  font-size: 16px;
  line-height: 1.6;
  color: #8C96A0;
  margin-bottom: 32px;
}

.next-case__bottom {
  margin-top: 16px;
}

.next-case__all {
  font-size: 14px;
  color: #000;
}

.next-case__link:hover .next-case__image {
  transform: translateY(-10px) scale(1.03);
}

.next-case__link:hover .next-case__arrow {
  transform: translate(4px,-4px);
}

/* ================= RESPONSIVE: TABLET ================= */

@media (max-width: 1200px) {
  .container,
  .nav,
  .footer-container {
    max-width: none;
    width: calc(100% - 48px);
  }

  .site-header {
    margin-bottom: 120px;
    padding: 24px 0;
  }

  .home-hero,
  .home-projects,
  .home-experience,
  .case-hero,
  .case-image,
  .case-text,
  .case-gallery,
  .case-quote {
    margin-bottom: 120px;
  }

  .section-title {
    margin-bottom: 96px;
  }

  .home-hero__content {
    margin-top: 96px;
  }

  .home-hero__content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 56px;
  }

  .home-hero__content h1 span {
    margin-bottom: 24px;
  }

  .home-hero__content p {
    margin-top: 96px;
    max-width: 520px;
  }

  .footer-title h2,
  .section-title h2,
  .case-hero__title {
    font-size: 52px;
  }

  .home-projects__card {
    margin-bottom: 120px;
  }

  .home-projects__minigrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .home-projects__card-txt {
    display: block;
  }

  .home-projects__card-txt h3 {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .home-experience__job {
    grid-template-columns: 1.2fr 1fr 1fr 2fr;
    column-gap: 40px;
    row-gap: 20px;
    margin-bottom: 96px;
  }

  .home-experience__details {
    grid-template-columns: 100px 1fr;
    column-gap: 16px;
  }

  .case-hero__meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 96px;
  }

  .case-image__caption {
    grid-template-columns: 1fr 2fr;
    column-gap: 48px;
  }

  .image-container-border {
    padding: 48px;
  }

  .case-gallery__bullets {
    right: 16px;
    top: 16px;
  }

  .case-gallery__arrow {
    width: 52px;
    height: 52px;
  }

  .case-gallery__arrow--prev {
    left: 12px;
  }

  .case-gallery__arrow--next {
    right: 12px;
  }

  blockquote {
    font-size: 40px;
  }

  blockquote::before {
    top: -100px;
    left: -32px;
    font-size: 260px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 96px;
  }

  .next-case__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .next-case__text {
    max-width: none;
    padding: 0 0 24px;
  }

  .next-case__title {
    font-size: 32px;
  }
}

/* ================= RESPONSIVE: MOBILE ================= */

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container,
  .nav,
  .footer-container {
    width: calc(100% - 32px);
  }

  .site-header {
    margin-bottom: 72px;
    padding: 20px 0;
  }

  .nav {
    gap: 16px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .nav__actions {
    display: none;
  }

  .nav__toggle {
    display: block;
    flex: 0 0 52px;
  }

  .nav__brand {
    gap: 12px;
    font-size: 15px;
    max-width: calc(100% - 68px);
  }

  .nav__brand img {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .mobile-menu__inner {
    padding: 20px 16px 28px;
  }

  .mobile-menu__top {
    margin-bottom: 56px;
  }

  .mobile-menu__email {
    font-size: 24px;
  }

  .mobile-menu__links a {
    font-size: 40px;
  }

  .home-hero {
    min-height: auto;
    padding: 24px 0 72px;
    margin-bottom: 96px;
  }

  .home-hero::before {
    width: 1600px;
    height: 900px;
    top: 10%;
    left: -30%;
    filter: blur(100px);
  }

  .home-hero::after {
    width: 1200px;
    height: 1200px;
    bottom: -10%;
    right: -30%;
    filter: blur(120px);
  }

  .home-hero__content {
    margin-top: 72px;
  }

  .home-hero__content h1 {
    font-size: 40px;
    line-height: 1.05;
    margin-bottom: 32px;
  }

  .home-hero__content h1 span {
    margin-bottom: 16px;
  }

  .home-hero__content p {
    margin-top: 40px;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
  }

  .section-title {
    margin-bottom: 56px;
  }

  .section-title h2 {
    font-size: 36px;
    line-height: 1.08;
  }

  .section-title p {
    margin: 20px 0 0;
    font-size: 15px;
  }

  .home-projects,
  .home-experience,
  .case-hero,
  .case-image,
  .case-text,
  .case-gallery,
  .case-quote {
    margin-bottom: 96px;
  }

  .home-projects__card {
    margin-bottom: 72px;
  }

  .home-projects__img {
    padding: 16px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .home-projects__img img {
    top: 0;
    height: 100%;
  }

  .home-projects__badges {
    left: 16px;
    bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .home-projects__badges div {
    margin-right: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  .home-projects__btn {
    display: none;
  }

  .home-projects__card-content {
    display: block;
    padding-top: 16px;
  }

  .home-projects__card-txt {
    display: block;
  }

  .home-projects__card-txt h3 {
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 18px;
  }

  .home-projects__card-txt p,
  .home-projects__card-meta {
    font-size: 15px;
    line-height: 1.5;
    max-width: none;
  }

  .home-projects__card-meta {
    margin-top: 10px;
  }

  .home-projects__minigrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-projects__minicard {
    margin-bottom: 24px;
  }

  .home-experience__job {
    display: block;
    margin-bottom: 64px;
  }

  .home-experience__company {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .home-experience__company-meta {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
  }

  .home-experience__details {
    grid-template-columns: 92px 1fr;
    row-gap: 12px;
    column-gap: 12px;
    margin-bottom: 24px;
    font-size: 15px;
  }

  .home-experience__description {
    font-size: 15px;
    line-height: 1.6;
  }

  .home-experience__description p {
    margin-bottom: 16px;
  }

  .experience-more {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
  }

  .case-hero__content {
    margin-bottom: 40px;
  }

  .case-hero__title {
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 1.08;
  }

  .case-hero__content p {
    font-size: 15px;
    line-height: 1.6;
  }

  .case-hero__meta {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
    padding-top: 24px;
  }

  .image-container,
  .home-projects__img,
  .next-case__image-wrap {
    border-radius: 12px;
  }

  .image-container-border {
    padding: 16px;
  }

  .case-image__caption {
    display: block;
    padding-top: 16px;
    font-size: 15px;
  }

  .case-image__caption span {
    display: block;
    margin-bottom: 10px;
  }

  .case-image__caption p {
    max-width: none;
  }

  .case-text h2 {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.1;
  }

  .case-text__content p {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .case-gallery__arrow {
    width: 44px;
    height: 44px;
    top: 36%;
  }

  .case-gallery__arrow span {
    font-size: 18px;
  }

  .case-gallery__arrow--prev {
    left: 8px;
  }

  .case-gallery__arrow--next {
    right: 8px;
  }

  .case-gallery__bullets {
    top: 12px;
    right: 12px;
    gap: 10px;
  }

  .case-gallery__bullet {
    width: 8px;
    height: 8px;
  }

  blockquote {
    margin-bottom: 24px;
    font-size: 28px;
    line-height: 1.25;
  }

  blockquote::before {
    top: -48px;
    left: -8px;
    font-size: 140px;
  }

  cite {
    font-size: 15px;
  }

  cite span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 48px;
  }

  .stat strong {
    font-size: 36px;
  }

  .next-case__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .next-case__top {
    margin-bottom: 20px;
  }

  .next-case__title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .next-case__description {
    margin-bottom: 0;
    font-size: 15px;
  }

  .next-case__image-wrap {
    margin-bottom: 0;
  }

  .footer {
    height: auto;
    min-height: auto;
    padding: 72px 0;
  }

  .footer-container {
    top: auto;
    transform: none;
  }

  .footer-container.visible {
    transform: none;
  }

  .footer-top {
    align-items: flex-start;
    gap: 24px;
  }

  .footer-title h2 {
    font-size: 40px;
    line-height: 1.05;
  }

  .footer-contact {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-email {
    font-size: 24px;
    line-height: 1.2;
    word-break: break-word;
  }

  .footer-cv {
    padding: 14px 18px;
  }

  .footer-bottom {
    margin-top: 40px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    font-size: 15px;
  }

  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .image-container-wide {
    border-radius: 0;
  }
}

/* ================= RESPONSIVE: SMALL MOBILE ================= */

@media (max-width: 480px) {
  .container,
  .nav,
  .footer-container {
    width: calc(100% - 24px);
  }

  .mobile-menu__email {
    font-size: 20px;
  }

  .mobile-menu__links a {
    font-size: 32px;
  }
  .home-hero__content h1 {
    font-size: 34px;
  }

  .section-title h2,
  .case-hero__title,
  .footer-title h2 {
    font-size: 32px;
  }

  .footer-email {
    font-size: 20px;
  }

  .home-projects__img,
  .image-container,
  .next-case__image-wrap {
    border-radius: 8px;
  }

  .image-container-wide {
    border-radius: 0;
  }
}
