/* ==================================================
   REMEGAYLO — Style Sheet
   Premium Motion + Liquid Glass
   ================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  background: #000000;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .is-clickable {
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* --- Custom Cursor --- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.cursor--hover .cursor__dot {
  background: rgba(255, 255, 255, 0.9);
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.magnetic-btn {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
}

.btn--contact {
  padding: 0.9rem 2.25rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 25px rgba(255, 255, 255, 0.15);
}

@media (hover: hover) and (pointer: fine) {
  .btn--contact:hover {
    background: #e6e6e6;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
  }
}

.btn--contact:active {
  transform: scale(0.97);
}

.btn--telegram {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.btn--telegram:hover {
  background: #e6e6e6;
}

.btn--copy {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.btn--copy:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Fixed Header --- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  pointer-events: none;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.6s ease,
              backdrop-filter 0.6s ease;
}

.site-header.is-scrolled {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  height: 80px;
}

.header-logo-slot {
  width: 140px;
  height: 32px;
}

.site-header .btn--contact {
  pointer-events: auto;
  margin-left: auto;
  opacity: 0;
  transform: translate3d(var(--magnetic-x), calc(var(--magnetic-y) - 10px), 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease;
  font-size: 0.75rem;
  padding: 0.6rem 1.4rem;
}

.site-header.is-scrolled .btn--contact {
  opacity: 1;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
}

/* --- Floating Logo --- */

.logo-wrapper {
  position: fixed;
  z-index: 101;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform, width, height;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Hero Section --- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 6rem;
  overflow: hidden;
  background-color: #1a009c;
}

.hero__liquid {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  pointer-events: none;
  will-change: transform;
}

.hero__liquid-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero__liquid-layer--1 {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(46, 0, 180, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(0, 56, 168, 0.4) 0%, transparent 65%);
  animation: liquidDrift1 30s ease-in-out infinite;
}

.hero__liquid-layer--2 {
  background:
    radial-gradient(ellipse 45% 55% at 70% 20%, rgba(77, 0, 180, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 30% 80%, rgba(13, 0, 89, 0.5) 0%, transparent 65%);
  animation: liquidDrift2 42s ease-in-out infinite;
}

.hero__liquid-layer--3 {
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(49, 0, 111, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 60%, rgba(0, 38, 120, 0.25) 0%, transparent 60%);
  animation: liquidDrift3 55s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes liquidDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(3%, 2%) scale(1.03); }
  50% { transform: translate(-2%, 4%) scale(1.01); }
  75% { transform: translate(4%, -2%) scale(1.04); }
}

@keyframes liquidDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-4%, 3%) scale(1.05); }
  66% { transform: translate(3%, -3%) scale(0.98); }
}

@keyframes liquidDrift3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(2%, -3%) rotate(1deg); }
  40% { transform: translate(-3%, 2%) rotate(-0.5deg); }
  60% { transform: translate(4%, 1%) rotate(0.5deg); }
  80% { transform: translate(-1%, -2%) rotate(-1deg); }
}

.hero__glass-mesh {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  filter: blur(80px);
  opacity: 0.7;
}

.glass-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
}

.glass-blob--1 {
  width: 60vw;
  height: 60vw;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, #1a009c 0%, #2e008b 60%, transparent 100%);
  animation: floatMesh1 22s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.glass-blob--2 {
  width: 50vw;
  height: 50vw;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, #4d00b4 0%, #0d0059 70%, transparent 100%);
  animation: floatMesh2 28s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.glass-blob--3 {
  width: 45vw;
  height: 45vw;
  top: 25%;
  right: 15%;
  background: radial-gradient(circle, #0038a8 0%, #150042 65%, transparent 100%);
  animation: floatMesh3 25s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.glass-blob--4 {
  width: 40vw;
  height: 40vw;
  bottom: 10%;
  left: 20%;
  background: radial-gradient(circle, #31006f 0%, #090033 75%, transparent 100%);
  animation: floatMesh4 19s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes floatMesh1 {
  0% { transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1); }
  100% { transform: translate(calc(var(--parallax-x, 0px) + 12%), calc(var(--parallax-y, 0px) + 15%)) scale(1.15); }
}

@keyframes floatMesh2 {
  0% { transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1); }
  100% { transform: translate(calc(var(--parallax-x, 0px) - 15%), calc(var(--parallax-y, 0px) - 10%)) scale(1.1); }
}

@keyframes floatMesh3 {
  0% { transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1); }
  100% { transform: translate(calc(var(--parallax-x, 0px) - 10%), calc(var(--parallax-y, 0px) + 18%)) scale(1.2); }
}

@keyframes floatMesh4 {
  0% { transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1); }
  100% { transform: translate(calc(var(--parallax-x, 0px) + 15%), calc(var(--parallax-y, 0px) - 12%)) scale(0.9); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero__logo-target {
  width: clamp(260px, 50vw, 520px);
  height: clamp(60px, 11vw, 115px);
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__title {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.hero__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 44ch;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}

.hero__cta-wrap {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Scroll Reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-card {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease,
              box-shadow 0.5s ease;
}

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

/* --- Section Headers --- */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.section-header__number {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.section-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
}

/* --- Clients Section --- */

.clients {
  position: relative;
  padding: 8rem 1.5rem 6rem;
  background: #000000;
  overflow: hidden;
}

.clients__ambient {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(26, 0, 156, 0.12);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: ambientFloat 40s ease-in-out infinite;
}

@keyframes ambientFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5%, 8%); }
}

.clients__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- Feed Grid (Clients) --- */

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

/* --- Glass Cards (Shared) --- */

.glass-card {
  position: relative;
  --glow-x: 50%;
  --glow-y: 50%;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--glow-x) var(--glow-y),
    rgba(255, 255, 255, 0.06) 0%,
    rgba(77, 0, 180, 0.04) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 3;
}

.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 4;
}

@media (hover: hover) and (pointer: fine) {
  .glass-card:hover::before {
    opacity: 1;
  }
}

/* --- Client Cards --- */

.feed-card {
  position: relative;
}

.feed-card.is-clickable {
  cursor: pointer;
}

.feed-card__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.feed-card__avatar-wrap {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feed-card__avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card__user-info {
  min-width: 0;
}

.feed-card__username {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-card__primary-stat {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.125rem;
}

.feed-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.feed-card__image-wrap img,
.feed-card__image-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.feed-card__body {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.feed-card__stats {
  list-style: none;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feed-card__stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.reveal-card.is-visible .feed-card__stat:nth-child(1) { transition-delay: 0.15s; }
.reveal-card.is-visible .feed-card__stat:nth-child(2) { transition-delay: 0.25s; }
.reveal-card.is-visible .feed-card__stat:nth-child(3) { transition-delay: 0.35s; }

.feed-card__stat:last-child {
  border-bottom: none;
}

.feed-card__stat-label {
  color: rgba(255, 255, 255, 0.55);
}

.feed-card__stat-value {
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.feed-card__description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  padding-top: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .feed-card:hover {
    transform: translateY(-8px) scale(1);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      0 30px 60px rgba(0, 0, 0, 0.7),
      0 0 40px rgba(26, 0, 156, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .reveal-card.feed-card:hover {
    transform: translateY(-8px) scale(1);
  }
}

/* --- Projects Section --- */

.projects {
  position: relative;
  padding: 4rem 1.5rem 10rem;
  background: #000000;
  overflow: hidden;
}

.projects__ambient {
  position: absolute;
  bottom: 15%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: rgba(26, 0, 156, 0.1);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: ambientFloat 50s ease-in-out infinite reverse;
}

.projects__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* --- Project Cards --- */

.project-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}

.project-card--tall .project-card__image-wrap {
  aspect-ratio: 4 / 5;
}

.project-card.is-clickable {
  cursor: pointer;
}

/* 2. Изображение 1:1 */
.project-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1.25; /* Квадратный размер как в feed-card */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.project-card__image-wrap img,
.project-card__image-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 3. Тело карточки под изображением */
.project-card__body {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.project-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-card__avatar-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-card__avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__username {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.project-card__followers {
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.project-card__followers-count {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.project-card__description {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin-top: auto;
  padding-top: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: translateY(-10px) scale(1);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
      0 35px 70px rgba(0, 0, 0, 0.75),
      0 0 50px rgba(26, 0, 156, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .reveal-card.project-card:hover {
    transform: translateY(-10px) scale(1);
  }

  .project-card:hover .project-card__image-wrap img,
  .project-card:hover .project-card__image-wrap .img-placeholder {
    transform: scale(1.05);
  }
}

/* --- Image Placeholders --- */

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 0, 156, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
}

.img-placeholder::after {
  content: attr(data-placeholder-text);
}

/* --- Footer --- */

.site-footer {
  position: relative;
  margin-top: 0;
  padding: 5rem 1.5rem 3.5rem;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 200px;
  background: radial-gradient(
    ellipse at center,
    rgba(26, 0, 156, 0.12) 0%,
    transparent 70%
  );
  filter: blur(50px);
  pointer-events: none;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.site-footer__logo-img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
}

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.site-footer__link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 2px;
}

.site-footer__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer__link:hover::after {
  width: 100%;
}

.site-footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Modal --- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.is-open {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem 2rem;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.modal-overlay.is-open .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.modal__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.modal__logo-wrap {
  margin-bottom: 0.5rem;
}

.modal__logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.modal__subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.modal__email {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
  text-align: center;
}

/* --- Prefers Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-card {
    opacity: 1;
    transform: none;
  }

  .cursor {
    display: none !important;
  }

  body.has-custom-cursor {
    cursor: auto;
  }

  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor .is-clickable {
    cursor: pointer;
  }

  .hero__liquid-layer,
  .glass-blob,
  .clients__ambient,
  .projects__ambient {
    animation: none !important;
  }

  .site-logo {
    transform: none !important;
  }
}

/* --- Mobile --- */

@media (max-width: 768px) {
  .cursor {
    display: none;
  }

  .site-header__inner {
    padding: 1rem 1.25rem;
  }

  .hero {
    padding: 7rem 1.25rem 4rem;
  }

  .clients,
  .projects {
    padding: 5rem 1.25rem 4rem;
  }

  .section-header {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .feed {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .project-card,
  .project-card--wide,
  .project-card--tall {
    grid-column: span 1;
  }

  .project-card--tall .project-card__image-wrap {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .project-card {
    grid-column: span 6;
  }

  .project-card--wide {
    grid-column: span 6;
  }

  .project-card--tall {
    grid-column: span 6;
  }
}
