:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --text: #f4f0ed;
  --muted: rgba(244, 240, 237, 0.7);
  --line: rgba(255, 255, 255, 0.08);
  --lime: #d8ff2f;
  --lime-soft: rgba(216, 255, 47, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --nav-hero-offset: 46px;
  --nav-dock-offset: 57px;
  --nav-dock-backdrop-height: 190px;
  --nav-button-height: 34px;
}

@font-face {
  font-family: "IBM Plex Mono Local";
  src: url("./Assets/Fonts/IBMPLEXMONO-REGULAR.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono Local";
  src: url("./Assets/Fonts/IBMPLEXMONO-MEDIUM.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono Local";
  src: url("./Assets/Fonts/IBMPLEXMONO-BOLD.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Machina Local";
  src: url("./Assets/Fonts/NEUEMACHINA-REGULAR.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OldLondon Local";
  src: url("./Assets/Fonts/OldLondon.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", sans-serif;
  caret-color: transparent;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #141414 0%, #060606 28%, #030303 100%);
}

input,
textarea,
select,
[contenteditable="true"] {
  caret-color: auto;
}

body.modal-open {
  overflow: hidden;
}

body.site-loader-active {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #000;
  transition:
    opacity 1040ms ease,
    visibility 1040ms ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px;
}

.site-loader__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(220px, 52vw);
  max-width: 100%;
  text-align: center;
}

.site-loader__logo-mark {
  width: 100%;
  line-height: 0;
  color: var(--lime);
  animation: siteLoaderLogoPulse 2.4s ease-in-out infinite;
}

.site-loader__logo-svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-loader__logo-svg path {
  fill: currentColor;
}

.loader-logo-cross-wrap {
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform;
}

@keyframes siteLoaderLogoPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(216, 255, 47, 0.1));
    opacity: 0.94;
  }

  50% {
    filter:
      drop-shadow(0 0 14px rgba(216, 255, 47, 0.25))
      drop-shadow(0 0 28px rgba(216, 255, 47, 0.1));
    opacity: 1;
  }
}

.site-loader__bar {
  margin-top: 0;
  width: min(220px, 52vw);
  max-width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.site-loader__bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(216, 255, 47, 0.45), var(--lime));
}

@media (prefers-reduced-motion: reduce) {
  .site-loader__logo-mark {
    animation: none;
    filter: drop-shadow(0 0 10px rgba(216, 255, 47, 0.16));
  }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
  mix-blend-mode: soft-light;
  opacity: 5.12;
}

@keyframes cursor-follower-spin {
  to {
    transform: rotate(360deg);
  }
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 45;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.82);
  background: transparent;
  overflow: visible;
  /* Свечение только на SVG (drop-shadow), не на квадратном div — иначе видна «рамка». */
  transition: opacity 180ms ease, transform 180ms ease;
  will-change: transform;
}

.cursor-follower__icon {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: cursor-follower-spin 6s linear infinite;
  transition: filter 220ms ease;
  /* Неактивно: почти без свечения */
  filter: drop-shadow(0 0 1px rgba(216, 255, 47, 0.35));
}

.cursor-follower.is-interactive .cursor-follower__icon {
  filter:
    drop-shadow(0 0 5px rgba(216, 255, 47, 0.95))
    drop-shadow(0 0 14px rgba(216, 255, 47, 0.75))
    drop-shadow(0 0 26px rgba(216, 255, 47, 0.45));
}

.cursor-follower__icon line,
.cursor-follower__icon circle {
  fill: none;
  stroke: rgba(216, 255, 47, 0.98);
  stroke-width: 4px;
  stroke-miterlimit: 10;
}

.cursor-follower.is-on-lime .cursor-follower__icon line,
.cursor-follower.is-on-lime .cursor-follower__icon circle {
  stroke: #050505;
}

/* Видимый курсор без hover на кликабельных — меньше */
.cursor-follower.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(0.88);
}

/* Активный (кнопки/ссылки): бывший «обычный» размер = крупнее */
.cursor-follower.is-visible.is-interactive {
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.cursor-follower.is-visible.is-pressed.is-interactive {
  transform: translate3d(-50%, -50%, 0) scale(0.94);
}

.cursor-follower.is-visible.is-pressed:not(.is-interactive) {
  transform: translate3d(-50%, -50%, 0) scale(0.8);
}

@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-enabled {
    cursor: none;
  }

  body.custom-cursor-enabled a,
  body.custom-cursor-enabled button,
  body.custom-cursor-enabled [role="button"],
  body.custom-cursor-enabled input,
  body.custom-cursor-enabled textarea,
  body.custom-cursor-enabled select,
  body.custom-cursor-enabled label {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-follower {
    display: none;
  }
}

.noise::before,
.noise::after {
  content: "";
  position: absolute;
  inset: -14%;
  background-image: url("./Assets/noise-tile.svg");
  background-repeat: repeat;
  will-change: transform;
}

.noise::before {
  background-size: 210px 210px;
  opacity: 0.18;
  filter: contrast(165%) brightness(118%);
  animation: noiseDriftPrimary 1.15s steps(6) infinite;
}

.noise::after {
  background-size: 320px 320px;
  opacity: 0.1;
  filter: contrast(200%) brightness(112%);
  animation: noiseDriftSecondary 1.75s steps(7) infinite;
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 3;
}

.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 18%, rgba(255, 255, 255, 0.14), transparent 16%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.34)),
    #050505;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translate(-50%, -50%) scale(1.02);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  background:
    radial-gradient(circle at 55% 12%, rgba(255, 255, 255, 0.26), transparent 10%),
    radial-gradient(circle at 56% 24%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(90deg, transparent 34%, rgba(255, 255, 255, 0.05) 48%, transparent 60%);
  filter: blur(2px);
}

.hero::after {
  background: radial-gradient(circle at 64% 30%, rgba(255, 255, 255, 0.12), transparent 14%);
  mix-blend-mode: normal;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 34%, rgba(0, 0, 0, 0.16));
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero__title-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  width: 100vw;
  max-width: 100vw;
  padding: 0 2vw;
}

.hero__title {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: "IBM Plex Mono Local", monospace;
  font-size: clamp(5.4rem, 17.2vw, 15rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__title-char {
  display: inline-block;
  font-family: "IBM Plex Mono Local", monospace;
  position: relative;
  vertical-align: baseline;
  color: rgba(255, 255, 255, 0.95);
}

.hero__title-char::after {
  content: attr(data-glyph);
  font-family: "OldLondon Local", serif;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.3);
  transform-origin: 50% 50%;
}

.hero__title-char.is-gothic::after {
  opacity: 1;
}

.hero__title-char.is-gothic {
  color: transparent;
}

.hero__title-char--space {
  width: 0.5ch;
}

.hero__subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "IBM Plex Mono Local", monospace;
  font-size: clamp(0.74rem, 1vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 108px;
}

.site-nav--hero {
  width: 100%;
  padding-top: var(--nav-hero-offset);
}

.site-nav--dock {
  position: fixed;
  left: 50%;
  bottom: var(--nav-dock-offset);
  z-index: 12;
  transform: translateX(-50%) translateY(18px);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-nav--dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-nav-dock-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-dock-backdrop-height);
  z-index: 11;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58));
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-nav-dock-backdrop.is-visible {
  opacity: 1;
}

.site-nav__button {
  min-width: 88px;
  height: var(--nav-button-height);
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.96);
  font-family: "IBM Plex Mono Local", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav__button:hover,
.site-nav__button:focus-visible {
  border-color: var(--lime);
  background: var(--lime);
  color: #111;
  transform: translateY(-1px);
  outline: none;
}

.site-nav__button.is-active {
  border-color: var(--lime);
  background: var(--lime);
  color: #111;
}

.stack {
  --stack-shell-top: 140px;
  display: grid;
  gap: 0;
  margin-top: -140px;
  padding-top: 140px;
  position: relative;
  z-index: 3;
}

.stack::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--stack-shell-top);
  bottom: 0;
  z-index: 0;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 36px 36px 34px 34px;
  box-shadow:
    0 -26px 64px rgba(0, 0, 0, 0.42),
    0 24px 60px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.about-section--locked,
#contact:not(.contacts-section--visible) {
  display: none;
}

.about-section--visible,
#contact.contacts-section--visible {
  animation: sectionReveal 420ms ease both;
}

.section-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 58px 68px 54px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.projects-section {
  padding-left: 132px;
  padding-right: 132px;
}

.section-label {
  width: max-content;
  margin: 0 auto 44px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "IBM Plex Mono Local", monospace;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.8rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-card {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  border-radius: 56px;
  overflow: visible;
  isolation: isolate;
  animation: rise 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  transform: translateY(10px);
  opacity: 0;
}

.project-card:focus-visible {
  outline: none;
}

.project-card__image {
  position: relative;
  z-index: 0;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 56px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: #050505;
  transition:
    transform 260ms ease,
    box-shadow 220ms ease;
}

.project-card__poster,
.project-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.project-card__border {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.project-card__border-rect {
  fill: none;
  stroke-width: 1;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}

.project-card__poster {
  filter: grayscale(1) saturate(0.18) brightness(0.72) contrast(1.08);
  transition: filter 220ms ease, opacity 220ms ease;
}

.project-card__preview {
  opacity: 0;
  filter: grayscale(1) saturate(0.18) brightness(0.72) contrast(1.08);
  transition: opacity 220ms ease, filter 220ms ease;
}

.project-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(22, 22, 22, 0.22)),
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0.34) 100%);
  opacity: 0.72;
  transition: opacity 220ms ease;
}

.project-card__overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 20px;
  border-radius: 26px;
  background: rgba(18, 18, 18, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card__overlay-title {
  min-width: 0;
  color: rgba(255, 244, 235, 0.96);
  font-family: "Neue Machina Local", sans-serif;
  font-size: clamp(0.88rem, 1.14vw, 1.08rem);
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card__overlay-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin-right: 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #101010;
  font-family: "IBM Plex Mono Local", monospace;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
}

.project-card__footer {
  display: none;
}

.project-card:hover .project-card__image,
.project-card:focus-visible .project-card__image {
  box-shadow:
    inset 0 0 0 1px rgba(216, 255, 47, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.project-card:hover .project-card__poster,
.project-card:focus-visible .project-card__poster {
  filter: grayscale(0) saturate(1) brightness(1) contrast(1);
}

.project-card.has-preview .project-card__poster {
  opacity: 0;
}

.project-card.has-preview .project-card__preview {
  opacity: 1;
}

.project-card.has-preview:not(.video-only-preview) .project-card__poster {
  opacity: 1;
}

.project-card.has-preview:not(.video-only-preview) .project-card__preview {
  opacity: 0;
}

.project-card.has-preview:hover .project-card__preview,
.project-card.has-preview:focus-visible .project-card__preview,
.project-card.has-preview.is-preview-playing .project-card__preview {
  filter: grayscale(0) saturate(1) brightness(1) contrast(1);
}

.project-card.has-preview:not(.video-only-preview):hover .project-card__poster,
.project-card.has-preview:not(.video-only-preview):focus-visible .project-card__poster {
  opacity: 0;
}

.project-card.has-preview:not(.video-only-preview).is-preview-playing .project-card__preview {
  opacity: 1;
}

.project-card.has-preview.is-preview-playing .project-card__preview {
  opacity: 1;
}

.project-card:hover .project-card__border,
.project-card:focus-visible .project-card__border {
  opacity: 1;
}

.project-card:hover .project-card__image::after,
.project-card:focus-visible .project-card__image::after {
  opacity: 0.34;
}

.project-card:hover .project-card__overlay,
.project-card:focus-visible .project-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.about-section {
  min-height: 100svh;
  padding-top: 0;
  padding-bottom: 18px;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  scroll-margin-top: 0;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    #050505 url("./Assets/bg.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.about-section > * {
  position: relative;
  z-index: 1;
}

.about-section .section-label {
  margin-top: 40px;
  margin-bottom: 56px;
}

.about-marquee {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 42px;
  margin-bottom: 32px;
  background: var(--lime);
  color: #050505;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.about-marquee__track {
  display: flex;
  /* Avoid whitespace text-nodes between flex items creating extra tiny gaps. */
  gap: 0;
  font-size: 0;
  width: max-content;
  flex: 0 0 auto;
  animation: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.about-marquee__inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding-inline: 0;
  white-space: nowrap;
  font-family: "IBM Plex Mono Local", monospace;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.about-marquee__item {
  display: inline-flex;
  align-items: center;
}

.about-marquee__logo {
  height: 1.6em;
  width: auto;
  display: block;
}

@keyframes aboutMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    /* Shift by exact measured width of a single .about-marquee__inner */
    transform: translate3d(calc(-1 * var(--about-marquee-shift, 0px)), 0, 0);
  }
}

@media (max-width: 1100px) {
  .about-marquee {
    width: 100vw;
  }
}

@media (max-width: 420px) {
  .about-marquee {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-marquee__track {
    animation: none;
    transform: none;
  }
}

.about-card {
  position: relative;
  width: min(1158px, calc(100% - 160px));
  aspect-ratio: 2449 / 1438;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  color: #111;
  border-radius: 0;
  overflow: visible;
}

.about-card::before,
.about-card::after {
  content: none;
}

.about-card__media {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.about-card__outline-path {
  fill: none;
  stroke: url(#about-card-border-gradient);
  stroke-width: 1.35;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}

.about-card::before,
.about-card::after {
  content: none;
}

.about-card__portrait {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  align-self: stretch;
  border-radius: 24px;
  overflow: hidden;
  background: #121212 url("./Assets/ID_photo2.jpg") center center / cover no-repeat;
}

.about-card__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.3) 100%);
}

.about-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding-top: 10px;
}

.about-card__eyebrow {
  margin: 0 0 26px;
  color: #111;
  font-family: "IBM Plex Mono Local", monospace;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-card h2 {
  margin: 0 0 18px;
  max-width: 26ch;
  color: #111;
  font-family: "IBM Plex Mono Local", monospace;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.about-card__text {
  margin: 0;
  max-width: none;
  color: #111;
  font-family: "IBM Plex Mono Local", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.about-card__text strong {
  font-weight: 700;
}

.about-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 38px;
  color: #111;
  font-family: "IBM Plex Mono Local", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contacts-section {
  --contact-shell-overlap: 42px;
  width: 100%;
  min-height: calc(100svh + var(--contact-shell-overlap));
  margin-top: calc(var(--contact-shell-overlap) * -1);
  padding: calc(56px + var(--contact-shell-overlap)) 0 calc(var(--nav-dock-offset) * 2 + var(--nav-button-height));
  text-align: center;
  background: #050505;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.contacts-section__title {
  margin: 0 0 44px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "IBM Plex Mono Local", monospace;
  font-size: clamp(1.05rem, 1.7vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.contacts-section__title-accent {
  color: var(--lime);
}

.contacts-section__body {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 52px;
  min-height: 0;
}

.contact-orbs {
  position: relative;
  width: min(360px, 100%);
  height: 214px;
  margin: 0 auto;
}

.contact-orb {
  position: absolute;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--lime);
  color: #101010;
  font-family: "IBM Plex Mono Local", monospace;
  font-size: 1.7rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.contact-orb--instagram {
  top: 0;
  left: 132px;
}

.contact-orb--mail {
  left: 56px;
  top: 76px;
  width: 104px;
  height: 104px;
  font-size: 2.2rem;
}

.contact-orb--behance {
  right: 56px;
  top: 82px;
}

.contact-orb--dribbble {
  right: 130px;
  bottom: 0;
  width: 66px;
  height: 66px;
  font-size: 1.28rem;
}

.contact-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 44px;
  margin: 0;
  color: rgba(255, 255, 255, 0.22);
  font-family: "IBM Plex Mono Local", monospace;
  font-size: clamp(0.92rem, 1.15vw, 1.32rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  align-self: center;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px 12px;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
}

.project-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 320ms ease;
  will-change: opacity;
}

.project-modal.is-open .project-modal__backdrop {
  opacity: 1;
}

.project-modal__dialog {
  position: relative;
  width: min(1320px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  height: min(820px, calc(100vh - 48px));
  border-radius: 56px;
  background: #0a0a0a;
  border: 1px solid rgba(216, 255, 47, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
  transform: translateY(18px) scale(0.98);
  transition:
    transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 260ms ease,
    filter 260ms ease;
  overflow: hidden;
}

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

.project-modal__dialog.is-switching {
  pointer-events: none;
}

.project-modal__dialog.is-switching-down {
  transform: translateY(-16px) scale(1);
  opacity: 0.72;
  filter: blur(6px);
}

.project-modal__dialog.is-switching-up {
  transform: translateY(16px) scale(1);
  opacity: 0.72;
  filter: blur(6px);
}

.project-modal__dialog.is-entering-down {
  transform: translateY(16px) scale(1);
  opacity: 0.72;
  filter: blur(6px);
}

.project-modal__dialog.is-entering-up {
  transform: translateY(-16px) scale(1);
  opacity: 0.72;
  filter: blur(6px);
}

.project-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--lime);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono Local", monospace;
  cursor: pointer;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-modal__close:hover,
.project-modal__close:focus-visible {
  border-color: var(--lime);
  background: var(--lime);
  color: #111;
  transform: translateY(-1px);
  outline: none;
}

.project-modal__frame {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 26px;
  align-items: stretch;
  height: 100%;
}

.project-modal__content {
  padding: 10px 4px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-modal__tags li {
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(216, 255, 47, 0.75);
  color: var(--lime);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  font-family: "IBM Plex Mono Local", monospace;
}

.project-modal__gallery {
  min-height: 0;
  height: 100%;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: #050505;
  position: relative;
}

.project-modal__media {
  position: relative;
  height: 100%;
  min-height: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28));
}

.project-modal__media-video,
.project-modal__media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal__media-video {
  display: none;
}

.project-modal__media-image {
  display: block;
}

.project-modal__slider-wrap {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 40px));
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 880ms ease;
}

.project-modal__media:hover .project-modal__slider-wrap,
.project-modal__media:focus-within .project-modal__slider-wrap {
  opacity: 1;
  pointer-events: auto;
}

.project-modal__slider {
  width: 100%;
  appearance: none;
  height: 1px;
  border-radius: 9999px;
  background: var(--lime);
  outline: none;
}

.project-modal__slider::-webkit-slider-thumb {
  appearance: none;
  width: 70px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: var(--lime);
  cursor: pointer;
  transition: transform 180ms ease;
}

.project-modal__slider::-moz-range-thumb {
  width: 70px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: var(--lime);
  cursor: pointer;
  transition: transform 180ms ease;
}

.project-modal__slider::-moz-range-track {
  height: 1px;
  border-radius: 9999px;
  background: var(--lime);
}

.project-modal__right {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}

.project-modal__meta {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.project-modal__type {
  font-family: "IBM Plex Mono Local", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.project-modal__title {
  margin: 10px 0 0;
  font-family: "Neue Machina Local", serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.95;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.project-modal__sections {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 46px;
  padding-right: 28px;
}

.project-modal__section-label {
  font-family: "IBM Plex Mono Local", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 10px;
}

.project-modal__section-text {
  margin: 0;
  font-family: "Neue Machina Local", serif;
  color: #fff;
  line-height: 1.78;
  font-size: 1.16rem;
  white-space: pre-wrap;
  max-width: 36ch;
}

.project-modal__year-logo {
  display: block;
  align-self: flex-end;
  height: 34px;
  width: auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) saturate(100%) invert(91%) sepia(96%) saturate(681%) hue-rotate(20deg) brightness(106%) contrast(107%);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(48px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes noiseDriftPrimary {
  0% {
    transform: translate3d(0, 0, 0);
  }

  20% {
    transform: translate3d(-4%, -3%, 0);
  }

  40% {
    transform: translate3d(3%, -6%, 0);
  }

  60% {
    transform: translate3d(-6%, 4%, 0);
  }

  80% {
    transform: translate3d(5%, 2%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes noiseDriftSecondary {
  0% {
    transform: translate3d(0, 0, 0) scale(1.04);
  }

  20% {
    transform: translate3d(3%, -2%, 0) scale(1.04);
  }

  40% {
    transform: translate3d(-2%, 4%, 0) scale(1.04);
  }

  60% {
    transform: translate3d(4%, 3%, 0) scale(1.04);
  }

  80% {
    transform: translate3d(-4%, -4%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .noise::before,
  .noise::after {
    animation: none;
  }

  .cursor-follower {
    display: none;
  }
}

@media (max-width: 420px) {
  .about-card {
    grid-template-columns: 1fr;
  }

  .about-card__portrait {
    min-height: 210px;
  }
}

@media (max-width: 1100px) {
  .page-shell {
    width: 100%;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-section {
    padding-left: 64px;
    padding-right: 64px;
  }

  .about-card {
    width: min(980px, calc(100% - 96px));
  }

  .contact-orbs {
    width: min(320px, 100%);
    height: 192px;
  }

  .contact-orb--instagram {
    left: 116px;
  }

  .contact-orb--mail {
    left: 48px;
    top: 68px;
    width: 96px;
    height: 96px;
  }

  .contact-orb--behance {
    right: 48px;
    top: 74px;
  }

  .contact-orb--dribbble {
    right: 114px;
    width: 62px;
    height: 62px;
    font-size: 1.16rem;
  }

  .project-modal__dialog {
    width: min(760px, calc(100% - 16px));
  }

  .project-modal__frame {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-modal__gallery {
    min-height: 380px;
    height: 380px;
  }

  .project-modal__content {
    padding: 8px 6px 6px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-hero-offset: 18px;
    --nav-dock-offset: 27px;
    --nav-dock-backdrop-height: 130px;
    --nav-button-height: 32px;
  }

  .page-shell {
    width: 100%;
  }

  .hero,
  .hero__content {
    min-height: 100vh;
  }

  .stack {
    --stack-shell-top: 42px;
    gap: 0;
    margin-top: -42px;
    padding-top: 42px;
  }

  .stack::before {
    border-radius: 26px 26px 24px 24px;
  }

  .section-card {
    padding: 18px 16px 14px;
  }

  .section-label {
    margin-bottom: 24px;
    font-size: 0.92rem;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .projects-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-card__image {
    border-radius: 30px;
  }

  .project-card__image::before {
    inset: 10px;
    border-radius: 16px;
  }

  .project-card {
    border-radius: 32px;
  }

  .project-card__overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 9px 12px 9px 15px;
    border-radius: 18px;
  }

  .project-card__overlay-title {
    font-size: 0.78rem;
  }

  .project-card__overlay-arrow {
    width: 34px;
    height: 34px;
    margin-right: 2px;
    font-size: 1.35rem;
  }

  .about-card {
    width: 100%;
    padding: 0;
    border-radius: 0;
  }

  .about-section {
    padding-top: 24px;
    border-radius: 0 0 24px 24px;
  }

  .about-section .section-label {
    margin-bottom: 24px;
  }

  .about-card__portrait {
    min-height: 210px;
    border-radius: 20px;
  }
  
  .about-card__text {
      font-size: 0.68rem;
      line-height: 1.45;
    }

  .about-card__eyebrow {
      margin-bottom: 16px;
      font-size: 0.94rem;
    }

  .about-card__content {
      padding-top: 0;
    }

  .about-card__footer {
      margin-top: 20px;
      padding-top: 0;
      font-size: 0.68rem;
    }

  .contacts-section {
    --contact-shell-overlap: 28px;
    min-height: calc(100svh + var(--contact-shell-overlap));
    margin-top: calc(var(--contact-shell-overlap) * -1);
    padding: calc(24px + var(--contact-shell-overlap)) 0 calc(var(--nav-dock-offset) * 2 + var(--nav-button-height));
  }

  .contacts-section__title {
    margin-bottom: 24px;
    font-size: 0.92rem;
  }

  .contacts-section__body {
    gap: 28px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav--hero {
    padding-top: var(--nav-hero-offset);
  }

  .site-nav--dock {
    bottom: var(--nav-dock-offset);
    padding: 0;
  }

  .site-nav-dock-backdrop {
    height: var(--nav-dock-backdrop-height);
  }

  .site-nav__button {
    min-width: 76px;
    height: var(--nav-button-height);
    padding: 0 14px;
    font-size: 0.7rem;
  }

  .contacts-section__title {
      margin-bottom: 22px;
      font-size: 0.78rem;
    }
  
  .contact-orbs {
      width: min(250px, 100%);
      height: 176px;
    }
  
  .contact-orb {
      width: 74px;
      height: 74px;
      font-size: 1.5rem;
    }
  
  .contact-orb--instagram {
      top: 0;
      left: 88px;
    }
  
  .contact-orb--mail {
      left: 32px;
      top: 60px;
      width: 88px;
      height: 88px;
      font-size: 1.9rem;
    }
  
  .contact-orb--behance {
      right: 32px;
      top: 64px;
    }
  
  .contact-orb--dribbble {
      right: 88px;
      bottom: 0;
      width: 54px;
      height: 54px;
      font-size: 1rem;
    }
  
  .contact-meta {
      max-width: 100%;
      gap: 18px;
      font-size: 0.78rem;
    }

  .project-modal__dialog {
    width: min(420px, 100%);
  }

  .project-modal__frame {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .project-modal__gallery {
    min-height: 270px;
    height: 270px;
  }

  .project-modal__content {
    padding: 16px 6px 6px;
  }

  .project-modal__title {
    font-size: 1.7rem;
  }

  .project-modal__section-text {
    font-size: 1rem;
  }
}
