@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-portfolio-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000;
  background: #fff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #000;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-shell {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: 60px 24px;
}

.portfolio-content {
  width: 100%;
}

.case-page-shell {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: 48px 24px 96px;
}

.case-page-back {
  display: block;
  width: 100%;
  margin-inline: 0;
  color: #0084ff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.case-page-back--footer {
  width: 100%;
  margin-inline: 0;
  margin-top: 64px;
}

.related-projects {
  width: 100%;
  margin-top: 72px;
}

.related-projects-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.cases-grid.related-projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 18px;
  margin-top: 24px;
}

.related-projects-grid .case-preview {
  border-radius: 18px;
}

.related-projects-grid .case-tags {
  gap: 6px;
  margin-top: 16px;
}

.related-projects-grid .case-tag {
  padding: 5px 8px;
  font-size: 12px;
}

.related-projects-grid .case-title {
  margin-top: 14px;
  font-size: 20px;
}

.related-projects-grid .case-description {
  margin-top: 8px;
  font-size: 14px;
}

.related-projects-grid .case-link {
  min-height: 44px;
  margin-top: 16px;
  padding-block: 10px;
  font-size: 14px;
}

.experience-section {
  width: 100%;
  margin-top: 32px;
}

.experience-cards {
  display: grid;
  gap: 12px;
}

.experience-card {
  display: block;
  padding: 18px 24px;
  border-radius: 20px;
  background: #f4f5f6;
  color: #111;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

a.experience-card:hover {
  background: #eceeef;
  transform: translateY(-1px);
}

a.experience-card:focus-visible {
  outline: 3px solid rgb(0 132 255 / 30%);
  outline-offset: 3px;
}

.experience-period,
.experience-title,
.experience-description {
  display: block;
}

.experience-period {
  color: #b8b8b8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.experience-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.experience-title svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #858585;
}

.experience-description {
  margin-top: 6px;
  color: #4d4d4d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.experience-note {
  margin: 16px 0 0;
  color: #a0a0a0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.concepts-section {
  width: 100%;
  margin-top: 60px;
}

.concepts-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.concept-item {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #f2f2f2;
  aspect-ratio: 1;
  isolation: isolate;
}

.concept-item::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 72%) 48%, transparent 76%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.concept-item.is-loading::after {
  opacity: 1;
  animation: case-skeleton-shimmer 1.25s ease-in-out infinite;
}

.concept-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 320ms ease;
}

.concept-item.is-loading .concept-media {
  opacity: 0;
}

.concept-video-start {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
  color: #111;
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.concept-video-start[hidden] {
  display: none;
}

.concept-video-start svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
  fill: currentColor;
}

.concept-video-start:focus-visible {
  outline: 3px solid rgb(0 132 255 / 35%);
  outline-offset: 3px;
}

.duck-game-section {
  width: 100%;
  margin-top: 60px;
}

.duck-game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.duck-game-score {
  flex: 0 0 auto;
  color: #929292;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.4;
}

.duck-game {
  position: relative;
  display: block;
  width: 100%;
  height: 180px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.duck-game:focus-visible {
  outline: 3px solid rgb(0 132 255 / 30%);
  outline-offset: 3px;
}

.duck-game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.duck-game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.duck-game.is-running .duck-game-overlay {
  opacity: 0;
}

.duck-game-overlay strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.duck-game-overlay span {
  color: #777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.duck-game-hint {
  margin: 0;
  color: #a0a0a0;
  font-size: 12px;
  line-height: 1.4;
}

html.has-js [data-scroll-reveal] {
  opacity: 0;
  filter: blur(3px);
  translate: 0 14px;
}

html.has-js .experience-card[data-scroll-reveal] {
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms, 0ms, var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}

html.has-js .experience-note[data-scroll-reveal] {
  transition:
    opacity 440ms ease,
    filter 440ms ease,
    translate 440ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.has-js .concept-item[data-scroll-reveal] {
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.has-js [data-scroll-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  translate: 0 0;
}

.case-page-header {
  width: min(100%, 660px);
  margin: 64px auto 0;
}

.case-page-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.case-page-header--simple {
  margin-top: 64px;
}

.case-body {
  width: 100%;
  margin: 80px auto 0;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.case-blocks {
  margin-top: 64px;
}

.case-content {
  margin-top: 64px;
}

.case-text-block + .case-text-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
}

.case-text-block > h2:first-child {
  margin-top: 0;
}

.case-text-content > :first-child {
  margin-top: 0;
}

.case-text-content > :last-child {
  margin-bottom: 0;
}

.case-body > :first-child {
  margin-top: 0;
}

.case-body > :last-child {
  margin-bottom: 0;
}

.case-body h2 {
  margin: 56px 0 16px;
  color: #000;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.case-body h1 {
  margin: 56px 0 20px;
  color: #000;
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-body h3 {
  margin: 40px 0 14px;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.case-body p,
.case-body ul,
.case-body ol,
.case-body blockquote {
  margin: 0 0 16px;
  text-wrap: pretty;
}

.case-body .case-inline-heading {
  margin: 24px 0 12px;
  line-height: 1.4;
}

.case-body hr {
  height: 0;
  margin: 32px 0;
  border: 0;
  border-top: 1px solid #e8e8e8;
}

.case-body hr + h1,
.case-body hr + h2,
.case-body hr + h3 {
  margin-top: 32px;
}

.case-body ul,
.case-body ol {
  padding-left: 1.4em;
}

.case-body ul {
  list-style-type: disc;
}

.case-body li > ul,
.case-body li > ol {
  margin: 8px 0 0;
}

.case-body ul > li + li {
  margin-top: 8px;
}

.case-body ol > li + li {
  margin-top: 24px;
}

.case-body li::marker {
  color: #000;
}

.case-body a {
  color: #0084ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.case-body .case-content-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 16px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #f2f2f2;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.case-body .case-content-button:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.case-body .case-content-button:focus-visible {
  outline: 3px solid rgb(0 132 255 / 30%);
  outline-offset: 3px;
}

.case-body blockquote {
  padding-left: 20px;
  border-left: 3px solid #d9d9d9;
  color: #555b66;
}

.case-nda-note {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f4f5f6;
}

.case-nda-note strong {
  display: block;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.case-nda-note p {
  margin: 6px 0 0;
  color: #686e77;
  font-size: 14px;
  line-height: 1.5;
}

.case-results {
  margin: 32px 0;
  padding-top: 20px;
  border-top: 1px solid #dfe1e4;
}

.case-results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #8a8f97;
  font-size: 12px;
  line-height: 1.4;
}

.case-results-heading > :first-child {
  color: #111;
  font-size: 15px;
  font-weight: 600;
}

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

.case-result {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.case-result:nth-child(n + 3) {
  padding-top: 20px;
  border-top: 1px solid #eceef0;
}

.case-result strong {
  color: #000;
  font-size: 32px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.035em;
}

.case-result > span {
  max-width: 240px;
  color: #686e77;
  font-size: 13px;
  line-height: 1.45;
}

.case-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 16px;
  border-radius: 16px;
}

.case-body video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 16px;
  background: #000;
}

html.has-js .case-content img:not([data-case-media-ready]) {
  opacity: 0;
}

.case-media-paragraph {
  margin: 0 !important;
}

.case-media-paragraph + h1,
.case-media-paragraph + h2,
.case-media-paragraph + h3 {
  margin-top: 24px;
}

.case-video-paragraph {
  margin: 0 !important;
}

.case-media {
  position: relative;
  display: block;
  width: 100%;
  margin: 24px 0 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #f2f2f2;
  aspect-ratio: var(--case-media-ratio, 16 / 10);
  isolation: isolate;
}

.case-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: linear-gradient(
    105deg,
    transparent 24%,
    rgb(255 255 255 / 72%) 44%,
    rgb(255 255 255 / 72%) 56%,
    transparent 76%
  );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.case-media.is-loading::after {
  opacity: 1;
  animation: case-skeleton-shimmer 1.25s ease-in-out infinite;
}

.case-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  object-fit: contain;
  opacity: 1;
  transition: opacity 320ms ease;
}

.case-media.is-loading img {
  opacity: 0;
}

.case-media.is-loaded {
  background: transparent;
}

.case-media.is-error::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #767676;
  font-size: 14px;
  text-align: center;
  content: "Изображение не загрузилось";
}

.case-video-player {
  position: relative;
  width: 100%;
  margin: 24px 0 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.case-video-player video {
  width: 100%;
  border-radius: inherit;
  cursor: pointer;
}

.case-video-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  padding: 28px 12px 10px;
  color: #fff;
  background: linear-gradient(to top, rgb(0 0 0 / 78%), transparent);
}

.case-video-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  place-items: center;
}

.case-video-button:hover,
.case-video-button:focus-visible {
  background: rgb(255 255 255 / 16%);
  outline: none;
}

.case-video-button svg {
  width: 20px;
  height: 20px;
}

.case-video-progress {
  width: 100%;
  min-width: 0;
  height: 4px;
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
}

.case-video-time {
  min-width: max-content;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.intro-block {
  width: min(100%, 700px);
  margin-inline: auto;
  text-align: center;
}

.works-section {
  width: 100%;
  margin-top: 60px;
}

.works-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  margin-top: 24px;
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.case-card:focus-visible {
  border-radius: 24px;
  outline: 3px solid rgb(0 132 255 / 30%);
  outline-offset: 5px;
}

.case-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: #f2f2f2;
  isolation: isolate;
}

.case-preview::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  background: linear-gradient(
    105deg,
    transparent 24%,
    rgb(255 255 255 / 68%) 44%,
    rgb(255 255 255 / 68%) 56%,
    transparent 76%
  );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.case-card--glint .case-preview::before {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -32%;
  z-index: 2;
  width: 24%;
  content: "";
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(255 255 255 / 12%) 24%,
    rgb(255 255 255 / 78%) 50%,
    rgb(255 255 255 / 12%) 76%,
    transparent 100%
  );
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transform: rotate(14deg);
  will-change: transform, opacity;
}

.case-card--glint .case-preview.is-loaded::before {
  animation: case-preview-glint 4.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.case-preview.is-loading::after {
  opacity: 1;
  animation: case-skeleton-shimmer 1.25s ease-in-out infinite;
}

.case-preview-background,
.case-preview-image {
  opacity: 1;
  transition: opacity 320ms ease;
}

.case-preview.is-loading .case-preview-background,
.case-preview.is-loading .case-preview-image {
  opacity: 0;
}

@keyframes case-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes case-preview-glint {
  0%,
  54% {
    opacity: 0;
    transform: translateX(0) rotate(14deg);
  }

  58% {
    opacity: 0.2;
  }

  74% {
    opacity: 0.82;
  }

  84%,
  100% {
    opacity: 0;
    transform: translateX(620%) rotate(14deg);
  }
}

.case-preview-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-preview-background--fallback {
  background:
    radial-gradient(circle at 18% 15%, rgb(255 255 255 / 50%), transparent 34%),
    linear-gradient(135deg, #c9e7ff 0%, #7cbcff 52%, #3f8cff 100%);
}

.case-card--alternate .case-preview-background--fallback {
  background:
    radial-gradient(circle at 82% 16%, rgb(255 255 255 / 46%), transparent 34%),
    linear-gradient(135deg, #e1d4ff 0%, #b78cff 52%, #8058e8 100%);
}

.case-preview-image {
  position: absolute;
  left: 50%;
  bottom: -2%;
  z-index: 1;
  display: block;
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.case-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f3f5;
  color: #555b66;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.case-title {
  margin: 16px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.case-description {
  flex-grow: 1;
  margin: 10px 0 0;
  color: #555b66;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}

.case-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #f2f2f2;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.case-card:hover .case-link {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.portrait-reveal {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  overflow: hidden;
  background: #fff;
  contain: paint;
}

.portrait-reveal::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 78%) 48%, transparent 76%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

html.has-js .portrait-reveal.is-loading {
  background: #f2f2f2;
}

html.has-js .portrait-reveal.is-loading::after {
  opacity: 1;
  animation: case-skeleton-shimmer 1.25s ease-in-out infinite;
}

.portrait-noise,
.intro-portrait {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-noise {
  z-index: 2;
  opacity: 0;
  filter: blur(0.8px);
  transform: scale(1.01);
  will-change: opacity;
}

.intro-portrait {
  z-index: 1;
  object-fit: cover;
  opacity: 1;
}

html.has-js .portrait-noise {
  opacity: 1;
}

html.has-js .intro-portrait {
  opacity: 0;
}

html.has-js .portrait-reveal.is-resolved .portrait-noise {
  opacity: 0;
  transition: opacity 240ms ease;
}

html.has-js .portrait-reveal.is-resolved .intro-portrait {
  opacity: 1;
  transition: opacity 240ms ease;
}

.intro-copy {
  display: grid;
  gap: 16px;
}

.intro-name {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.intro-description {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.intro-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding-inline: 120px;
}

.intro-links a {
  color: #0084ff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.intro-links a:hover {
  opacity: 0.72;
}

.intro-links a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgb(0 132 255 / 30%);
  outline-offset: 3px;
}

@media (max-width: 820px) and (min-width: 601px) {
  .cases-grid.related-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .case-page-shell {
    padding: 32px 20px 72px;
  }

  .works-title {
    font-size: 26px;
  }

  .case-page-header {
    margin-top: 48px;
  }

  .case-body {
    margin-top: 48px;
    font-size: 18px;
    line-height: 1.62;
  }

  .case-page-back--footer {
    margin-top: 48px;
  }

  .related-projects {
    margin-top: 56px;
  }

  .related-projects-title {
    font-size: 26px;
  }

  .experience-section {
    margin-top: 32px;
  }

  .experience-card {
    padding: 18px 20px;
    border-radius: 18px;
  }

  .experience-period {
    font-size: 14px;
  }

  .experience-title {
    margin-top: 8px;
    font-size: 18px;
  }

  .experience-description {
    margin-top: 6px;
    font-size: 16px;
  }

  .experience-note {
    margin: 14px 0 0;
    font-size: 13px;
  }

  .concepts-section {
    margin-top: 48px;
  }

  .concepts-title {
    margin-bottom: 16px;
    font-size: 26px;
  }

  .concepts-grid {
    gap: 8px;
  }

  .concept-item {
    border-radius: 14px;
  }

  .duck-game-section {
    margin-top: 48px;
  }

  .duck-game-meta {
    gap: 12px;
    margin-top: 8px;
  }

  .duck-game-score {
    font-size: 12px;
  }

  .duck-game {
    height: 160px;
    border-radius: 0;
  }

  .case-text-block + .case-text-block {
    margin-top: 20px;
    padding-top: 20px;
  }

  .case-body h2 {
    margin-top: 44px;
    font-size: 24px;
  }

  .case-results {
    margin: 24px 0;
    padding-top: 18px;
  }

  .case-results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .case-results-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 20px;
  }

  .case-result {
    padding: 16px 0;
    border-top: 1px solid #eceef0;
  }

  .case-result:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .case-result:nth-child(n + 3) {
    padding-top: 16px;
  }

  .case-result strong {
    font-size: 30px;
  }

  .case-video-controls {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .case-video-time {
    display: none;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-top: 24px;
  }

  .cases-grid.related-projects-grid {
    grid-template-columns: 1fr;
  }

  .intro-links {
    padding-inline: 0;
  }
}

@media (max-width: 360px) {
  .site-shell {
    padding: 60px 16px 48px;
  }

  .case-page-shell {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.has-js [data-scroll-reveal] {
    opacity: 1;
    filter: none;
    translate: none;
    transition: none;
  }

  .concept-media {
    transition: none;
  }

  .concept-item.is-loading::after {
    animation: none;
    background: #f2f2f2;
    transform: none;
  }

  .intro-links a,
  .case-link,
  .experience-card {
    transition: none;
  }

  .case-link:hover,
  a.experience-card:hover {
    transform: none;
  }

  .case-preview.is-loading::after {
    animation: none;
    background: #f2f2f2;
    transform: none;
  }

  .case-card--glint .case-preview.is-loaded::before {
    animation: none;
  }

  html.has-js .portrait-reveal.is-loading::after {
    animation: none;
    background: #f2f2f2;
    transform: none;
  }

  .case-preview-background,
  .case-preview-image,
  .case-media img {
    transition: none;
  }

  .case-media.is-loading::after {
    animation: none;
    background: #f2f2f2;
    transform: none;
  }

  html.has-js .portrait-noise {
    display: none;
  }

  html.has-js .intro-portrait {
    opacity: 1;
    transition: none;
  }
}
