/* ───── Reset & Base ───── */

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

html,
body {
  height: 100%;
  font-family: 'Michroma', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ───── Custom Scissors Cursor (desktop only) ───── */

@media (hover: hover) and (pointer: fine) {
  html,
  body,
  div, span, section, main, footer, header, nav, article,
  h1, h2, h3, h4, h5, h6, p, ul, ol, li, img, svg, path, rect, circle {
    cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA4mVYSWZNTQAqAAAACAAHARIAAwAAAAEAAQAAARoABQAAAAEAAABiARsABQAAAAEAAABqASgAAwAAAAEAAgAAATEAAgAAABEAAAByATIAAgAAABQAAACEh2kABAAAAAEAAACYAAAAAAAABwAAAAABAAAHAAAAAAF3d3cuaW5rc2NhcGUub3JnAAAyMDI2OjAyOjExIDEzOjA3OjUyAAAEkAQAAgAAABQAAADOoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAQoAMABAAAAAEAAAAQAAAAADIwMjY6MDI6MTEgMTI6NTc6NTkAHqv3sQAAAAlwSFlzAAETlwABE5cB6EbQAwAAA7ppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6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veea6Lrn2gDtPTn/GzG5JO0unxWGPnzvIpzq9WSWVZdo6zQCaqYXezG4jdVm9wG5A34GNVWP5DbcBvdlWumfdD+i31hE3hoHjrNvFrIK8CqXQ+2WiKkTSA7J98JuPwbdowDP4wAlkqkXzCu8whcuA3szOTVQnpB/goA1fcBjQm9m5cTtX+p94RvIDj4tqPhzhxUvKzo3bFZ2SvEEPPuEafnWDMbNz4zaqC9InuIq0ZnZuEs0A+dkv9pOzbGIAAAAASUVORK5CYII=) 8 8, auto;
  }

  a, button, [role="button"], input[type="submit"],
  .project-card__overlay, label, select {
    cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA4mVYSWZNTQAqAAAACAAHARIAAwAAAAEAAQAAARoABQAAAAEAAABiARsABQAAAAEAAABqASgAAwAAAAEAAgAAATEAAgAAABEAAAByATIAAgAAABQAAACEh2kABAAAAAEAAACYAAAAAAAABwAAAAABAAAHAAAAAAF3d3cuaW5rc2NhcGUub3JnAAAyMDI2OjAyOjExIDEzOjEwOjU3AAAEkAQAAgAAABQAAADOoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAMoAMABAAAAAEAAAAQAAAAADIwMjY6MDI6MTEgMTI6NTc6NTkAIAH1KwAAAAlwSFlzAAETlwABE5cB6EbQAwAAA7ppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sb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UIy7ogZGXBK50m7j3cwSu8QLBa8ErnAPcMLuG0DOdeSmCsCo2CPLN4/iewyiHYh+JgKYF91cFkRVFO9MJHzZgCm1ewt4KjXIG288OdAEnfsCjWH9bIUoIvMuawBCtFom2Bo7yAHpxAH9qQNBu8hSl8gBXe4QGu4O9WbF4NT3cIj/AEnsUYOnAExuabW3KUbukN7MOKn+BdOgbHnJfRwRxnF0ZwDm7rGgYwAbe6jA6FgA3ewAyewQH4I5OdXOUXD/UorHLKRXkAAAAASUVORK5CYII=) 6 0, pointer;
  }
}

/* ───── Home Page ───── */

.page-home {
  background: #fff;
  color: #111;
  isolation: isolate;
  min-height: 100vh;
}

/* Light header variant for white background */
.header--light {
  position: relative;
}

.header--light .header__name {
  color: #111;
}

.header--light .header__menu span {
  background: #111;
}

/* ───── Home Hero (ML logo → Maria Liadova animation) ───── */

.home-hero {
  text-align: center;
  padding: 60px 24px 40px;
}

/* Name — starts in logo state (large ML), shrinks to final title size */
.home-hero__name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 10vw, 8.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1;
  color: #111;
  margin-bottom: 4px;
  transition: font-size 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo state — big ML */
.home-hero__name.is-logo {
  font-size: clamp(6rem, 25vw, 14rem);
  letter-spacing: -0.01em;
}

/* Letters need inline-block for transforms */
.home-hero__letter {
  display: inline-block;
}

/* L starts rotated 180° and positioned higher (matching logo) */
.home-hero__letter--l {
  transform: rotate(180deg);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              margin-bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  vertical-align: bottom;
  margin-bottom: 0.35em;
}

.home-hero__letter--l.is-turned {
  transform: rotate(0deg);
  margin-bottom: 0;
}

/* Link wrapper for hero name */
.home-hero__name-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

/* Anaglyph hover effect */
.home-hero__name {
  position: relative;
}

.home-hero__name-link:hover .home-hero__name {
  color: #111;
  text-shadow:
    -3px 0 0 rgba(255, 0, 0, 0.7),
     3px 0 0 rgba(0, 255, 255, 0.7);
  transform: scale(1.05);
  transition: text-shadow 0.2s ease, transform 0.2s ease;
}

/* Role — hidden until name finishes typing */
.home-hero__role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.7rem, 2.5vw, 1.25rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0px;
  color: #111;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.home-hero__role.is-visible {
  opacity: 1;
}

/* ───── Home Bar (Selected Work / Biography) ───── */

.home-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin: 0 24px 12px;
}

.home-bar__link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: font-weight 0.2s ease, transform 0.2s ease;
}

.home-bar__link:hover {
  font-weight: 700;
  transform: scale(1.4);
}

.home-bar__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #f5c518;
  animation: dot-morph 4s ease-in-out infinite;
}

@keyframes dot-morph {
  0% {
    background: #f5c518;
    border-radius: 0;
    transform: rotate(0deg) scale(1);
  }
  16% {
    background: #3a5eff;
    border-radius: 50%;
    transform: rotate(60deg) scale(1.2);
  }
  33% {
    background: #ff3a6e;
    border-radius: 2px;
    transform: rotate(120deg) scale(0.9);
  }
  50% {
    background: #00c896;
    border-radius: 50%;
    transform: rotate(180deg) scale(1.3);
  }
  66% {
    background: #a855f7;
    border-radius: 0;
    transform: rotate(240deg) scale(1);
  }
  83% {
    background: #ff6b2b;
    border-radius: 50%;
    transform: rotate(300deg) scale(1.1);
  }
  100% {
    background: #f5c518;
    border-radius: 0;
    transform: rotate(360deg) scale(1);
  }
}

/* ───── Home Grid (thumbnail cards) ───── */

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0 24px 60px;
}

.home-grid__card {
  display: block;
  overflow: hidden;
  position: relative;
}

.home-grid__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  transition: transform 0.4s ease;
}

.home-grid__card:hover img {
  transform: scale(1.03);
}

.home-grid__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-grid__info strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  align-self: flex-start;
}

.home-grid__info span {
  align-self: flex-end;
}

.home-grid__card:hover .home-grid__info {
  opacity: 1;
}

/* ───── Header ───── */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px;
  z-index: 3;
}

.header__name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

.header__name--full {
  display: none;
}

.header__name--short {
  display: inline;
}

/* Hamburger icon */
.header__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.header__menu span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 1px;
}

/* Desktop nav (hidden on mobile) */
.header__nav {
  display: none;
}


/* ───── Hamburger → Cross animation ───── */

.header__menu span {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

body.menu-open .header__menu span:first-child {
  transform: translateY(4.75px) rotate(45deg);
}

body.menu-open .header__menu span:last-child {
  transform: translateY(-4.75px) rotate(-45deg);
}

/* When overlay is open, header text turns dark */
body.menu-open .header__name {
  color: #111;
}

body.menu-open .header__menu span {
  background: #111;
}

/* Keep header above overlay */
body.menu-open .header {
  z-index: 12;
}

/* ───── Navigation Overlay ───── */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Hidden duplicate header inside overlay (the real header sits above) */
.nav-overlay__header {
  display: none;
}

/* Close button inside overlay — hidden, we reuse the main header button */
.nav-overlay__close {
  display: none;
}

/* Nav links */
.nav-overlay__links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-overlay__links a {
  font-size: 2rem;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.5px;
  transition: font-weight 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-overlay__links a:hover {
  font-weight: 700;
  transform: scale(1.4);
}

/* Social icons */
.nav-overlay__socials {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-overlay__socials a {
  color: #111;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.nav-overlay__socials a:hover {
  opacity: 0.5;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ───── About Page ───── */

.page-about {
  background: #fff;
  color: #111;
  min-height: 100vh;
  isolation: isolate;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 60px;
}

.about__photo {
  width: 100%;
  max-width: 685px;
  margin-bottom: 32px;
  aspect-ratio: 16 / 9;
  background-size: 120%;
  background-position: center center;
  background-repeat: no-repeat;
}

.about__body {
  text-align: center;
}

.about__title {
  color: #111;
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.about__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__details p {
  color: rgba(17, 17, 17, 0.85);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.about__details a {
  color: rgba(17, 17, 17, 0.85);
  transition: opacity 0.2s ease;
}

.about__details a:hover {
  opacity: 0.6;
}

.about__socials {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.about__socials a {
  color: rgba(17, 17, 17, 0.85);
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.about__socials a:hover {
  opacity: 0.6;
}

.about__portfolio-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}

.about__portfolio-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  transition: font-weight 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.about__portfolio-link:hover {
  font-weight: 700;
  transform: scale(1.2);
}

/* ───── Projects Page ───── */

.page-projects {
  background-color: #fff;
  color: #111;
  min-height: 100vh;
  isolation: isolate;
}

/* Плёночное зерно: главная, About, Commercial/Creator */
.page-projects::before,
.page-home::before,
.page-about::before {
  content: '';
  position: fixed;
  left: -60%;
  top: -60%;
  width: 220%;
  height: 220%;
  z-index: 8;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n' x='-20%25' y='-20%25' width='140%25' height='140%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.36' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 400px 400px;
  mix-blend-mode: multiply;
  opacity: 0.11;
  animation: page-projects-grain 4s steps(8) infinite;
  will-change: transform;
}

.page-projects::after,
.page-home::after,
.page-about::after {
  content: '';
  position: fixed;
  left: -60%;
  top: -60%;
  width: 220%;
  height: 220%;
  z-index: 8;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n2' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 320px 320px;
  mix-blend-mode: multiply;
  opacity: 0.045;
  animation: page-projects-grain-alt 3.2s steps(10) infinite;
  will-change: transform;
}

@keyframes page-projects-grain {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-3%, 4%);
  }
  50% {
    transform: translate(2%, -2.5%);
  }
  75% {
    transform: translate(-1.5%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes page-projects-grain-alt {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(3.5%, -2%);
  }
  66% {
    transform: translate(-2.5%, 2.5%);
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-projects::before,
  .page-home::before,
  .page-about::before {
    animation: none;
    opacity: 0.055;
  }

  .page-projects::after,
  .page-home::after,
  .page-about::after {
    animation: none;
    opacity: 0.022;
  }
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 0 24px 60px;
}

.project-card {
  width: 100%;
  max-width: 420px;
}

/* Creator Content Editing — не больше двух карточек в ряд */
.page-creators .projects {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: start;
}

.project-card__video {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 9:16 (Shorts) */
  background: #000;
  overflow: hidden;
}

.project-card__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.project-card__overlay:hover {
  transform: scale(1.03);
}

/* Play button — dark circle + white triangle */
.project-card__overlay::before {
  content: '';
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
}

.project-card__overlay::after {
  content: '';
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* ───── Creators Heading ───── */

.creators-heading {
  text-align: center;
  padding: 120px 24px 60px;
}

.creators-heading__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #111;
  display: inline-block;
  transition: transform 0.35s ease, text-shadow 0.35s ease;
}

.creators-heading__title:hover {
  transform: scale(1.05);
  text-shadow:
    -3px 0 0 rgba(255, 0, 0, 0.7),
     3px 0 0 rgba(0, 255, 255, 0.7);
}

.creators-heading__text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.7rem, 2.5vw, 1.25rem);
  font-weight: 500;
  text-transform: uppercase;
  color: #111;
  line-height: 1.6;
  margin: 48px auto 0;
  letter-spacing: 0px;
  text-align: justify;
  text-align-last: center;
}

/* ───── Projects CTA (Creator Content Editing link) ───── */

.projects-cta {
  text-align: center;
  padding: 60px 24px 80px;
}

.projects-cta__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  display: inline-block;
  transition: transform 0.35s ease, text-shadow 0.35s ease;
}

.projects-cta__title:hover {
  transform: scale(1.05);
  text-shadow:
    -3px 0 0 rgba(255, 0, 0, 0.7),
     3px 0 0 rgba(0, 255, 255, 0.7);
}

.projects-cta__text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.6;
  margin-top: 16px;
  letter-spacing: 0.2px;
}

/* ───── Video Backdrop (dims page when a video is playing) ───── */

.video-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.project-card--playing {
  position: relative;
  z-index: 6;
}

/* ───── Horizontal Videos ───── */

.projects--horizontal {
  padding-top: 40px;
  padding-bottom: 24px;
}

.project-card--horizontal {
  max-width: 720px;
}

.project-card__video--horizontal {
  padding-bottom: 56.25%; /* 16:9 */
}

/* ───── Site Footer ───── */

.site-footer {
  padding: 20px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.site-footer__left,
.site-footer__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer__copy {
  color: #111;
}

.site-footer__link {
  color: #111;
  transition: font-weight 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.site-footer__link:hover {
  font-weight: 700;
  transform: scale(1.2);
}

.site-footer__top {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  padding: 0;
  transition: font-weight 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.site-footer__top:hover {
  font-weight: 700;
  transform: scale(1.2);
}

.site-footer__social {
  color: #111;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer__social:hover {
  transform: scale(1.2);
}

/* ───── Desktop (768px+) ───── */

@media (min-width: 768px) {
  /* Show inline nav, hide hamburger */
  .header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .header__nav a {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
  }

  .header__nav a.header__nav-icon:hover {
    opacity: 0.6;
  }

  .header__nav-text {
    display: inline-block;
    transition: transform 0.35s ease, text-shadow 0.35s ease;
  }

  .header__nav-text:hover {
    transform: scale(1.1);
    opacity: 1;
    text-shadow:
      -2px 0 0 rgba(255, 0, 0, 0.7),
       2px 0 0 rgba(0, 255, 255, 0.7);
  }

  .header__nav-icon {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .header__nav-icon svg {
    width: 28px;
    height: 28px;
  }

  .header__nav-icon:hover {
    transform: scale(1.2);
    opacity: 1;
  }

  .header__name--full {
    display: inline;
  }

  .header__name--short {
    display: none;
  }

  .header__name {
    font-size: 2rem;
    letter-spacing: 0.3px;
    transition: transform 0.35s ease, text-shadow 0.35s ease;
  }

  .header__name:hover {
    transform: scale(1.1);
    text-shadow:
      -2px 0 0 rgba(255, 0, 0, 0.7),
       2px 0 0 rgba(0, 255, 255, 0.7);
  }

  .header__menu {
    display: none;
  }

  .header {
    padding: 28px 40px;
  }

  /* Home page: dark nav links on white bg */
  .page-home .header__nav a {
    color: #111;
  }

  .home-hero {
    padding: 220px 40px 200px;
  }

  .home-hero__name {
    font-size: 8.75rem;
  }

  .home-hero__role {
    font-size: 1.25rem;
  }

  .home-bar {
    margin: 0 40px;
    padding: 20px 0;
  }

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

  .home-grid__card img {
    aspect-ratio: 4 / 3;
  }

  .home-grid__info {
    font-size: 1.125rem;
    padding: 20px;
  }

  .home-grid__info strong {
    font-size: 1.5rem;
  }

  .page-about .header__nav a,
  .page-projects .header__nav a {
    color: #111;
  }

  .projects--horizontal {
    padding-top: 0;
    padding-bottom: 0;
  }

  .project-card--horizontal {
    max-width: 100%;
    width: 100%;
  }

  .projects {
    margin: 0 auto;
    padding: 0 40px 80px;
    gap: 40px;
  }

  .page-creators .projects {
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
  }

  .page-creators .project-card {
    max-width: none;
    width: 100%;
  }

  /* Commercial projects — вертикальные видео, до 3 в ряд (колонка до 630px) */
  body.page-projects:not(.page-creators) #projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 630px));
    justify-content: center;
  }

  body.page-projects:not(.page-creators) #projects-grid .project-card {
    max-width: none;
    width: 100%;
  }

  /* About page: side-by-side layout */
  .about {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 0 60px 0 40px;
    gap: 60px;
  }

  .about__photo {
    flex: 0 0 auto;
    width: 685px;
    max-width: 685px;
    height: 685px;
    margin-bottom: 0;
    align-self: center;
    aspect-ratio: auto;
    background-size: cover;
  }

  .about__body {
    flex: 0 1 auto;
    text-align: center;
  }

  .about__title {
    font-size: 2rem;
  }

  .about__details p {
    font-size: 1rem;
  }

  .site-footer {
    padding: 20px 40px;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}
