:root {
  --bg: #f2f0eb;
  --ink: #171714;
  --muted: #77756e;
  --line: rgba(23, 23, 20, 0.18);
  --accent: #c91a8d;
  --accent: oklch(55% 0.22 335);
  --dark: #121211;
  --radius: 34px;
  --font-display: "Inter Tight", "Arial Narrow", sans-serif;
  --font-caption: "IBM Plex Mono", monospace;
  --font-body: "IBM Plex Sans", sans-serif;
  --text-meta: 12px;
  --text-body: 16px;
  --text-title: clamp(34px, 4.8vw, 72px);
  --header-height: 58px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 48px;
  --space-5: 64px;
  --space-6: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.email-copy-toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  padding: 11px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-caption);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.email-copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (pointer: fine) {
  [data-copy-email] {
    position: relative;
  }

  [data-copy-email]::before {
    content: attr(data-copy-tooltip);
    position: absolute;
    z-index: 10;
    bottom: calc(100% + 9px);
    left: 0;
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--bg);
    background: var(--ink);
    font-family: var(--font-caption);
    font-size: var(--text-meta);
    letter-spacing: 0.02em;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(0, 4px);
    transition: opacity 160ms ease, transform 180ms ease;
  }

  [data-copy-email]:hover::before,
  [data-copy-email]:focus-visible::before {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.case-page {
  min-height: 100svh;
}

.case-header {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-caption);
  font-size: var(--text-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-header a {
  transition: color 180ms ease;
}

.case-header a:hover {
  color: var(--accent);
}

.case-main {
  padding: clamp(64px, 8vw, 120px) 28px 120px;
}

.case-hero h1 {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.97;
  white-space: nowrap;
}

.case-tags {
  margin-top: 40px;
}

.case-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: clamp(72px, 8vw, 120px);
}

.case-overview-item h2 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-caption);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-overview-item p {
  max-width: 520px;
  margin: 0;
  color: #4d4b46;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
}

.case-overview-item strong {
  color: var(--ink);
  font-weight: 600;
}

.case-overview-item p + p {
  margin-top: var(--space-2);
}

.case-process {
  margin-block: clamp(72px, 8vw, 120px);
}

.case-section-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-caption);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-process-step {
  position: relative;
  min-height: 360px;
  padding: var(--space-3);
  border-radius: 24px;
  background: #e9e6e0;
}

.case-process-step:not(:nth-child(3n))::after {
  position: absolute;
  z-index: 1;
  top: 32px;
  right: calc(var(--space-2) / -2 - 12px);
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--bg);
  background: var(--ink);
  content: "→";
  font-family: var(--font-caption);
  font-size: 14px;
}

.case-process-number {
  display: block;
  margin-bottom: clamp(72px, 7vw, 112px);
  color: rgba(23, 23, 20, 0.22);
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.case-process-step h3 {
  margin: 0 0 var(--space-2);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.case-process-step p {
  margin: 0;
  color: #4d4b46;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.case-gallery {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: 0;
}

.case-gallery figure {
  width: 100%;
  min-width: 0;
  overflow: visible;
  margin: 0;
}

.case-gallery figcaption {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.case-gallery img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
}

.case-video-wrap {
  overflow: hidden;
  width: 66.666%;
  margin: clamp(72px, 8vw, 120px) auto 0;
  border-radius: var(--radius);
  background: transparent;
}

.case-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(23, 23, 20, 0.1);
  color: var(--ink);
  background: rgba(242, 240, 235, 0.92);
  box-shadow: 0 8px 30px rgba(23, 23, 20, 0.025);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  opacity: 0;
  transform: translateY(-105%);
  transition: opacity 240ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.site-header.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.logo {
  font-family: var(--font-caption);
  display: inline-block;
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo-short {
  display: none;
}

.header-links {
  font-family: var(--font-caption);
  display: flex;
  gap: 24px;
  font-size: var(--text-meta);
}

.mobile-header-actions {
  display: none;
}

.header-context {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 42vw;
  overflow: hidden;
  font-family: var(--font-caption);
  font-size: var(--text-meta);
  font-weight: 500;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
  transition: opacity 220ms ease, transform 280ms ease;
  pointer-events: none;
}

.header-context.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.header-links a {
  position: relative;
}

.header-links a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.header-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero,
.projects,
.about,
.footer {
  padding-right: 28px;
  padding-left: 28px;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 48px;
  padding-bottom: 32px;
}

.hero-intro {
  position: absolute;
  z-index: 20;
  inset: 0 28px;
  display: none;
  align-items: center;
  overflow: visible;
  pointer-events: none;
}

html.intro-pending {
  overflow-x: hidden;
}

html.intro-pending .hero-layout {
  visibility: hidden;
}

html.intro-pending .hero-intro {
  display: flex;
}

html.intro-pending .hero-title,
html.intro-pending .hero-info {
  visibility: hidden !important;
  opacity: 0 !important;
}

html.intro-pending .hero-photo-wrap > img {
  visibility: hidden !important;
  opacity: 0 !important;
}

html.intro-pending .hero-photo-wrap {
  visibility: hidden !important;
  opacity: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
  transform: none !important;
}

html.intro-pending .hero-photo-wrap::after {
  display: none;
}

.hero-intro-text {
  width: min(100%, 1180px);
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.hero-intro-text .generated-word {
  transition: none;
}

.intro-flight-photo {
  position: relative;
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-left: 0.22em;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  vertical-align: -0.14em;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, width, height, opacity;
}

.intro-flight-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-photo-ripple {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(17, 17, 16, 0.32);
  border-radius: inherit;
  pointer-events: none;
  will-change: transform, opacity;
}

.section-heading,
.footer-bottom {
  font-family: var(--font-caption);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading span:last-child,
.footer-bottom span:last-child {
  justify-self: end;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  min-height: calc(100svh - 80px);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.hero-title {
  font-family: var(--font-display);
  margin: 0;
  font-size: var(--text-title);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.77;
}

.title-line {
  display: block;
}

.hero-photo-wrap {
  position: relative;
  z-index: 3;
  overflow: visible;
  width: clamp(90px, 12vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  transform: none;
  align-self: start;
  justify-self: end;
  cursor: pointer;
  outline: none;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-photo-wrap::after {
  content: "Если любишь котиков, жмякай фото";
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--bg);
  background: var(--ink);
  font-family: var(--font-caption);
  font-size: var(--text-meta);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 240ms ease;
  pointer-events: none;
}

.hero-photo-wrap:focus-visible {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

.hero-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-photo-wrap:hover img {
  transform: none;
}

.hero-photo-wrap:hover,
.hero-photo-wrap:focus-visible {
  transform: translateY(-8px);
}

.hero-photo-wrap:hover::after,
.hero-photo-wrap:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hero-photo-wrap.tooltip-hidden::after {
  opacity: 0;
  transform: translateY(-4px);
}

.cat-pop {
  position: absolute;
  z-index: 2;
  width: clamp(110px, 11vw, 180px);
  height: clamp(110px, 11vw, 180px);
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  animation: cat-pop-in 520ms cubic-bezier(0.16, 1.2, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes cat-pop-in {
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-info {
  max-width: 520px;
  margin-top: auto;
}

.hero-role,
.hero-description {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.5;
}

.hero-role {
  margin-bottom: 12px;
  font-family: var(--font-caption);
  text-transform: uppercase;
}

.hero-description {
  margin-bottom: 28px;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-caption);
  font-size: var(--text-meta);
  text-transform: uppercase;
}

.hero-contacts a {
  position: relative;
  padding-bottom: 3px;
  border-bottom: 0;
  transition: color 180ms ease;
}

.hero-contacts a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-contacts a:hover,
.hero-contacts a:focus-visible {
  color: var(--accent);
}

.hero-contacts a:hover::after,
.hero-contacts a:focus-visible::after {
  animation: contact-line-sweep 600ms ease-in-out both;
}

@keyframes contact-line-sweep {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }
  70% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

.round-link {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  transition: color 250ms ease, background 250ms ease, transform 250ms ease;
}

.round-link:hover {
  color: #fff;
  background: var(--ink);
  transform: rotate(-45deg);
}

.projects {
  padding-top: 120px;
  padding-bottom: 160px;
}

.section-heading {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 600;
}

.project {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 28px;
  padding-top: 28px;
  margin-bottom: 120px;
}

.projects .section-heading + .project {
  padding-top: clamp(72px, 7vw, 112px);
}

.project-meta {
  display: flex;
  min-height: 520px;
  flex-direction: column;
}

.project h3 {
  font-family: var(--font-display);
  max-width: 580px;
  margin: 0 0 22px;
  font-size: var(--text-title);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.97;
}

.project-copy {
  max-width: 480px;
  margin: auto 0 28px;
  color: #4d4b46;
  font-size: var(--text-body);
  line-height: 1.5;
}

.project-details {
  display: grid;
  gap: 30px;
  margin: 22px 0 32px;
}

.project-detail-group h4 {
  font-family: var(--font-caption);
  margin: 0 0 12px;
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-detail-group--summary p {
  max-width: 470px;
  margin: 0;
  color: #4d4b46;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.project-detail-group ul {
  display: grid;
  gap: 10px;
  max-width: 470px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-detail-group li {
  position: relative;
  padding-left: 16px;
  color: #4d4b46;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.project-detail-group li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--ink);
  content: "";
  transform: translateY(-50%);
}

.project-details + .tags {
  margin-top: auto;
}

.project-details + .project-footer {
  margin-top: auto;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.project-case-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
  border-radius: 999px !important;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-caption);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.project-case-arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform 180ms ease;
}

.project-case-link:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.project-case-link:hover .project-case-arrow {
  transform: translate(2px, -2px);
}

.project-case-link--mobile {
  display: none;
  width: fit-content;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  font-family: var(--font-caption);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-meta);
  text-transform: uppercase;
}

.project-visual {
  overflow: hidden;
  align-self: start;
  border-radius: var(--radius);
  background: #e8e5df;
}

.project-visual img {
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-visual:hover img {
  transform: scale(1.025);
}

.zoomable-media > img {
  cursor: pointer;
}

.zoomable-media {
  position: relative;
}

.image-zoom-button {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(242, 240, 235, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transition: color 180ms ease, background 180ms ease, opacity 220ms ease, transform 220ms ease;
  cursor: pointer;
}

.image-zoom-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.concept-card .image-zoom-button {
  top: 18px;
  right: 18px;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(17, 17, 15, 0.25);
}

.project-visual:hover .image-zoom-button,
.concept-card:hover .image-zoom-button,
.case-media:hover .image-zoom-button,
.zoomable-media:focus-within .image-zoom-button {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.image-zoom-button:hover,
.image-zoom-button:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.concept-card .image-zoom-button:hover,
.concept-card .image-zoom-button:focus-visible {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 28px;
  place-items: center;
  background: rgba(18, 18, 17, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox-image {
  width: auto;
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 24px;
  transform: scale(0.96);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-lightbox.is-open .image-lightbox-image {
  transform: scale(1);
}

.image-lightbox-close {
  position: fixed;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--bg);
  font: 300 30px/1 var(--font-body);
  cursor: pointer;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: none;
}

body.lightbox-open {
  overflow: hidden;
}

@media (hover: none) {
  .image-zoom-button {
    opacity: 1;
    transform: none;
  }
}

.concepts {
  padding: 100px 28px 130px;
  color: #fff;
  background: var(--dark);
}

.section-heading--light {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.5);
}

.section-heading--light h2 {
  color: #fff;
}

.concept-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: 28px;
  padding-top: clamp(72px, 7vw, 112px);
}

.concept-intro {
  position: sticky;
  top: var(--header-height);
  display: flex;
  height: calc(100svh - var(--header-height));
  flex-direction: column;
  justify-content: flex-start;
  padding: 6vh 0 44px;
  align-self: start;
}

.concept-intro h2 {
  display: none;
}

.concept-caption {
  font-family: var(--font-display);
  position: absolute;
  top: 6vh;
  left: 0;
  max-width: 400px;
  min-height: 3em;
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.25;
  transform: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.concept-caption.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.concept-list {
  padding-top: 0;
}

.concept-card {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6vh 0;
}

.concept-card img {
  border-radius: 28px;
}

.about {
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: clamp(72px, 7vw, 112px);
}

.about-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
}

.about-item > p {
  order: 2;
  font-family: var(--font-body);
  width: 100%;
  max-width: none;
  margin: 22px 0 0;
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}

.about-item > .about-detail {
  max-width: 460px;
  margin: 12px auto 0;
  color: #4d4b46;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}

.about-detail--facts {
  display: grid;
  gap: 8px;
}

.about-detail--facts span {
  position: relative;
  padding-left: 16px;
}

.about-detail--facts span::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--ink);
  content: "";
  transform: translateY(-50%);
}

.about-visual {
  position: relative;
  display: grid;
  order: 1;
  width: 100%;
  height: 360px;
  min-height: 360px;
  overflow: hidden;
  place-items: center;
  border-radius: 0;
  background: transparent;
}

.about-logo img {
  width: auto;
  max-width: min(72%, 390px);
  max-height: 150px;
  object-fit: contain;
}

.about-logo--screen img {
  width: 150px;
  height: 150px;
}

.about-collage {
  min-height: 360px;
  overflow: visible;
}

.about-collage img {
  position: absolute;
  width: auto;
  height: auto;
}

.collage-image {
  z-index: 1;
  max-height: 270px;
  border: 5px solid #fff;
  box-shadow: 0 12px 30px rgba(23, 23, 20, 0.13);
  transition:
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.collage-image--one {
  top: -32px;
  left: 10%;
  width: 33% !important;
  transform: rotate(-8deg);
}

.collage-image--three {
  top: 12px;
  right: 7%;
  width: 39% !important;
  transform: rotate(4deg);
}

.collage-image--four {
  z-index: 2;
  bottom: 20px;
  left: 0;
  width: 58% !important;
  transform: rotate(-2deg);
}

.about-collage .collage-cat {
  z-index: 3;
  right: 28%;
  bottom: 72px;
  left: auto;
  width: 50%;
  transform: none;
  object-fit: contain;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .collage-image:hover {
    z-index: 4;
    box-shadow: 0 18px 38px rgba(23, 23, 20, 0.17);
  }

  .collage-image--one:hover {
    transform: translateY(-10px) rotate(-8deg) scale(1.025);
  }

  .collage-image--three:hover {
    transform: translateY(-10px) rotate(4deg) scale(1.025);
  }

  .collage-image--four:hover {
    transform: translateY(-10px) rotate(-2deg) scale(1.025);
  }

  .about-collage .collage-cat:hover {
    transform: translateY(-10px) scale(1.025);
  }
}

.footer {
  display: flex;
  min-height: 30svh;
  flex-direction: column;
  padding-top: 36px;
  padding-bottom: 24px;
  color: #fff;
  background: #242421;
}

.footer-row {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: none;
}

.footer-mail {
  font-family: var(--font-caption);
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 999px;
  color: var(--ink) !important;
  background: #fff;
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-mail span {
  display: inline-flex;
  width: 16px;
  height: 16px;
  transition: transform 250ms ease;
}

.footer-mail svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-mail:hover,
.footer-mail:focus-visible {
  color: #fff !important;
  background: var(--accent);
}

.footer-mail:hover span {
  transform: translate(8px, -8px);
}

.footer-bottom {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.generated-word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition:
    opacity 1040ms ease,
    filter 1040ms ease,
    transform 1040ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--word-delay, 0ms);
  will-change: transform, opacity, filter;
}

.generated-word:not(:last-child) {
  margin-right: 0.22em;
}

.hero-title .generated-word {
  filter: blur(14px);
  transform: translateY(18px);
  transition-duration: 1800ms;
}

.hero-title .title-line:first-child .generated-word {
  transition-delay: 120ms;
}

.hero-title .title-line:nth-child(2) .generated-word {
  transition-delay: 560ms;
}

.text-animate-in .generated-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.text-instant .generated-word {
  transition: none;
}


.cursor-dot {
  display: none;
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 24px;
  height: 22px;
  border-radius: 48% 48% 44% 44%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.cursor-dot::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -5px;
  right: 2px;
  left: 2px;
  height: 12px;
  background: var(--accent);
  border-radius: 45% 45% 20% 20%;
  clip-path: polygon(0 100%, 10% 8%, 39% 66%, 61% 66%, 90% 8%, 100% 100%);
}

.cursor-dot::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 64px;
  height: 30px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 43% 46%, #fff 0 1.5%, transparent 2%),
    radial-gradient(circle at 57% 46%, #fff 0 1.5%, transparent 2%),
    radial-gradient(ellipse at 42% 48%, #111 0 5%, transparent 5.8%),
    radial-gradient(ellipse at 58% 48%, #111 0 5%, transparent 5.8%),
    radial-gradient(circle at 50% 66%, #111 0 3.5%, transparent 4.3%),
    linear-gradient(8deg, transparent 46%, #111 47% 51%, transparent 52%) left 5px top 14px / 19px 5px no-repeat,
    linear-gradient(0deg, transparent 46%, #111 47% 51%, transparent 52%) left 3px top 19px / 21px 5px no-repeat,
    linear-gradient(-8deg, transparent 46%, #111 47% 51%, transparent 52%) left 5px top 24px / 19px 5px no-repeat,
    linear-gradient(-8deg, transparent 46%, #111 47% 51%, transparent 52%) right 5px top 14px / 19px 5px no-repeat,
    linear-gradient(0deg, transparent 46%, #111 47% 51%, transparent 52%) right 3px top 19px / 21px 5px no-repeat,
    linear-gradient(8deg, transparent 46%, #111 47% 51%, transparent 52%) right 5px top 24px / 19px 5px no-repeat;
}

.cursor-dot.is-active {
  width: 44px;
  height: 40px;
  opacity: 0.72;
}

@media (min-width: 801px) {
  .site-header {
    padding: var(--space-3);
  }

  .hero,
  .projects,
  .about,
  .footer {
    padding-right: var(--space-3);
    padding-left: var(--space-3);
  }

  .hero {
    padding-top: var(--space-4);
    padding-bottom: var(--space-3);
  }

  .hero-layout {
    gap: var(--space-3);
  }

  .hero-role {
    margin-bottom: var(--space-2);
  }

  .hero-description {
    margin-bottom: var(--space-3);
  }

  .hero-contacts {
    gap: var(--space-1) var(--space-3);
  }

  .projects {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .section-heading {
    padding-bottom: 0;
  }

  .project {
    gap: var(--space-3);
    padding-top: 0;
    margin-bottom: 96px;
  }

  .project--crm .project-meta {
    position: relative;
    align-self: stretch;
    min-height: 100%;
  }

  .project--crm .project-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .project:last-child {
    margin-bottom: 0;
  }

  .projects .section-heading + .project {
    padding-top: 112px;
  }

  .project h3 {
    margin-bottom: var(--space-3);
  }

  .project-details {
    gap: var(--space-3);
    margin: 0 0 var(--space-3);
  }

  .project-detail-group h4 {
    margin-bottom: var(--space-2);
  }

  .project-detail-group ul,
  .tags {
    gap: var(--space-1);
  }

  .tags span {
    padding: var(--space-1) var(--space-2);
  }

  .concepts {
    padding: var(--space-6) var(--space-3);
  }

  .concept-layout {
    gap: var(--space-3);
    padding-top: 112px;
  }

  .concept-intro {
    top: calc(var(--header-height) + 60px);
    height: var(--concept-image-height, auto);
    min-height: 3em;
    padding: 0;
  }

  .concept-caption {
    top: 0;
  }

  .concept-list {
    display: grid;
    gap: 96px;
  }

  .concept-card {
    position: sticky;
    top: calc(var(--header-height) + 60px);
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 28px;
    background: var(--dark);
    backface-visibility: hidden;
    contain: paint;
    transform: translateZ(0);
  }

  .concept-card:nth-child(1) {
    z-index: 1;
  }

  .concept-card:nth-child(2) {
    z-index: 2;
  }

  .concept-card:nth-child(3) {
    z-index: 3;
  }

  .about {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .about-list {
    gap: var(--space-3);
    padding-top: var(--space-5);
  }

  .about-item > p {
    margin-top: var(--space-3);
  }

  .about-item > .about-detail {
    margin-top: var(--space-2);
  }

  .about-detail--facts {
    gap: var(--space-1);
  }

  .footer {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .footer-actions {
    gap: var(--space-1);
  }
}

@media (max-width: 800px) {
  .hero-intro {
    inset-inline: var(--mobile-space-2);
  }

  .hero-intro-text {
    font-size: var(--text-title);
    letter-spacing: -0.035em;
  }
  :root {
    --text-title: clamp(29px, 9vw, 43px);
    --header-height: 48px;
    --mobile-gutter: 16px;
    --mobile-space-1: 8px;
    --mobile-space-2: 16px;
    --mobile-space-3: 24px;
    --mobile-space-4: 32px;
    --mobile-space-5: 48px;
    --mobile-space-6: 64px;
  }

  .site-header,
  .hero,
  .projects,
  .about,
  .footer {
    padding-right: var(--mobile-gutter);
    padding-left: var(--mobile-gutter);
  }

  .image-lightbox {
    padding: var(--mobile-space-2);
  }

  .image-lightbox-image {
    width: auto;
    min-width: 0;
    max-width: 100%;
    max-height: calc(100svh - (var(--mobile-space-2) * 2));
    border-radius: 16px;
  }

  a,
  button,
  [role="button"] {
    -webkit-tap-highlight-color: transparent;
  }

  a:not(.footer-mail) {
    border-radius: 4px;
    transition:
      color 140ms ease,
      background-color 140ms ease,
      box-shadow 140ms ease;
  }

  a:not(.footer-mail):active {
    background-color: rgba(17, 17, 15, 0.12);
    box-shadow: 0 0 0 7px rgba(17, 17, 15, 0.12);
  }

  button,
  .footer-mail {
    transition:
      filter 140ms ease,
      transform 140ms ease;
  }

  button:active,
  .footer-mail:active {
    filter: brightness(0.76);
  }

  .site-header {
    padding-top: var(--mobile-space-2);
  }

  .logo-full {
    display: none;
  }

  .logo-short {
    display: inline;
  }

  .header-links {
    display: none;
  }

  .header-context {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: var(--mobile-space-1);
  }

  .mobile-header-action {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: none !important;
  }

  .mobile-header-action svg,
  .mobile-header-action img {
    width: 16px;
    height: 16px;
  }

  .mobile-header-action svg {
    fill: currentColor;
  }

  .mobile-header-action img {
    object-fit: contain;
  }

  .mobile-header-action:active {
    background: rgba(17, 17, 15, 0.16) !important;
  }

  .hero {
    padding-top: var(--mobile-space-4);
    padding-bottom: var(--mobile-space-3);
  }

  .hero-title {
    line-height: 0.86;
  }

  .hero-photo-wrap {
    width: 21vw;
    min-width: 80px;
  }

  .hero-layout {
    min-height: calc(100svh - 56px);
  }

  .hero-info {
    max-width: 78vw;
  }

  .projects {
    padding-top: var(--mobile-space-6);
    padding-bottom: var(--mobile-space-5);
  }

  .section-heading {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-block: var(--mobile-space-3);
  }

  .project {
    --project-content-gap: var(--mobile-space-3);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    margin-bottom: var(--mobile-space-6);
  }

  .projects .section-heading + .project {
    padding-top: var(--mobile-space-6);
  }

  .project:last-child {
    margin-bottom: 0;
  }

  .project-meta {
    display: contents;
  }

  .project h3 {
    order: 1;
    margin-bottom: var(--mobile-space-5);
  }

  .project-visual {
    order: 2;
    margin-bottom: var(--mobile-space-3);
  }

  .project-details {
    order: 4;
    gap: var(--project-content-gap);
    margin: 0;
  }

  .project-detail-group h4 {
    margin-bottom: var(--mobile-space-1);
  }

  .project-detail-group ul,
  .tags {
    gap: var(--mobile-space-1);
  }

  .project .tags {
    order: 3;
    margin: 0 0 var(--project-content-gap);
  }

  .project-footer {
    order: 3;
    align-items: center;
    margin: 0 0 var(--project-content-gap);
  }

  .project-footer .tags {
    margin: 0;
  }

  .project-footer > .project-case-link {
    display: none;
  }

  .project-case-link {
    min-height: 40px;
    flex: 0 0 auto;
  }

  .project-case-link--mobile {
    display: inline-flex;
    order: 5;
    margin-top: var(--mobile-space-3);
  }

  .project-case-link:active {
    color: #fff;
    background: #0b0b0a !important;
    box-shadow: none !important;
    transform: translateY(1px);
  }

  .project-visual {
    border-radius: 18px;
  }

  .concepts {
    padding: var(--mobile-space-5) var(--mobile-gutter);
  }

  .concept-layout {
    display: block;
    padding-top: var(--mobile-space-6);
  }

  .concept-intro {
    display: none;
  }

  .concept-list {
    display: grid;
    overflow: visible;
    gap: var(--mobile-space-6);
    padding: 0;
    margin: 0;
  }

  .concept-card {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
  }

  .concept-card::after {
    display: block;
    min-height: 2.5em;
    margin-top: var(--mobile-space-2);
    font-family: var(--font-display);
    font-size: var(--text-body);
    line-height: 1.25;
    opacity: 0.4;
    content: attr(data-caption);
  }

  .concept-card img {
    border-radius: 18px;
  }

  .concept-card .image-zoom-button {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .about {
    padding-top: var(--mobile-space-5);
    padding-bottom: var(--mobile-space-5);
  }

  .about-list {
    grid-template-columns: 1fr;
    gap: var(--mobile-space-5);
    padding-top: var(--mobile-space-5);
  }

  .about-item {
    min-height: 0;
    padding: 0;
  }

  .about-item > p {
    text-align: left;
  }

  .about-visual {
    height: auto;
    min-height: 0;
    padding-block: var(--mobile-space-5);
    border-radius: 0;
  }

  .about-collage {
    min-height: 0;
    margin-top: var(--mobile-space-5);
    padding-block: 0;
    aspect-ratio: 1 / 0.9;
  }

  .collage-image--one {
    top: -12px;
    left: 8%;
    width: 130px !important;
  }

  .collage-image--three {
    top: 18px;
    right: 6%;
    width: 155px !important;
  }

  .collage-image--four {
    bottom: 24px;
    left: 0;
    width: 210px !important;
  }

  .about-collage .collage-cat {
    right: 22%;
    bottom: 52px;
    width: 220px;
  }

  .footer-bottom {
    margin: 0;
  }

  .footer {
    min-height: 46svh;
    padding-top: var(--mobile-space-3);
    padding-bottom: var(--mobile-space-3);
  }

  .footer-row {
    position: relative;
    display: block;
    min-height: calc(46svh - 48px);
    margin-top: 0;
  }

  .footer-links {
    font-family: var(--font-caption);
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 22px;
    font-size: var(--text-meta);
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-transform: uppercase;
    transform: translateY(-50%);
  }

  .footer-actions {
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    white-space: nowrap;
    text-align: left;
  }

  .case-header {
    padding-inline: var(--mobile-space-2);
  }

  .case-header span {
    display: none;
  }

  .case-main {
    padding: var(--mobile-space-5) var(--mobile-space-2) var(--mobile-space-6);
  }

  .case-hero h1 {
    font-size: var(--text-title);
    letter-spacing: -0.035em;
    line-height: 0.97;
    white-space: normal;
  }

  .case-tags {
    margin-top: var(--mobile-space-3);
  }

  .case-overview {
    grid-template-columns: 1fr;
    gap: var(--mobile-space-4);
    margin-top: var(--mobile-space-5);
  }

  .case-overview-item h2 {
    margin-bottom: var(--mobile-space-2);
  }

  .case-process {
    margin-block: var(--mobile-space-5);
  }

  .case-section-title {
    margin-bottom: var(--mobile-space-3);
  }

  .case-process-list {
    overflow-x: auto;
    grid-template-columns: none;
    grid-auto-columns: calc(100% - 48px);
    grid-auto-flow: column;
    align-items: stretch;
    gap: var(--mobile-space-2);
    padding-bottom: var(--mobile-space-1);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .case-process-list::-webkit-scrollbar {
    display: none;
  }

  .case-process-step {
    height: 100%;
    min-height: 0;
    padding: var(--mobile-space-3);
    border-radius: 20px;
    scroll-snap-align: start;
  }

  .case-process-step:not(:last-child)::after {
    position: absolute;
    z-index: 1;
    top: 24px;
    right: -20px;
    bottom: auto;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: var(--bg);
    background: var(--ink);
    content: "→";
    font-family: var(--font-caption);
    font-size: 14px;
  }

  .case-process-step:last-child::after {
    display: none;
  }

  .case-process-number {
    margin-bottom: var(--mobile-space-5);
    font-size: 64px;
  }

  .case-process-step h3 {
    font-size: var(--text-body);
  }

  .case-video-wrap {
    overflow: visible;
    width: 100%;
    margin-top: var(--mobile-space-5);
    border-radius: 0;
  }

  .case-gallery {
    gap: var(--mobile-space-5);
    margin-top: var(--mobile-space-5);
  }

  .case-gallery figure {
    border-radius: 0;
  }

  .case-gallery img {
    border-radius: 0;
  }

  .case-gallery figcaption {
    max-width: 100%;
    margin-bottom: var(--mobile-space-2);
    font-size: var(--text-body);
    overflow-wrap: anywhere;
  }

  .image-lightbox {
    display: block;
    overflow: auto;
    padding: var(--mobile-space-6) var(--mobile-space-2) var(--mobile-space-2);
    place-items: start;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .image-lightbox-image {
    display: block;
    width: 1200px;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    transform: none !important;
    transform-origin: top left;
    touch-action: pan-x pan-y;
  }

  .cursor-dot {
    display: none;
  }
}

@media (max-width: 400px) {
  .header-context {
    max-width: 30vw;
    font-size: 10px;
  }

  .about-collage {
    transform: scale(0.94);
    transform-origin: center;
  }
}

@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;
  }

  .generated-word {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
  }

  html.intro-pending .hero-intro {
    display: none !important;
  }

  html.intro-pending .hero-title,
  html.intro-pending .hero-info,
  html.intro-pending .hero-photo-wrap > img,
  html.intro-pending .hero-layout {
    visibility: visible !important;
    opacity: 1 !important;
  }

}
