:root {
  --font-family-Font-1: "Helvetica Neue", Arial, sans-serif;
  --font-family-headings: "Inter", var(--font-family-Font-1);
  --color-white-solid: #fff;
  --stroke-weight-3: 3px;
  --color-accent-blue: #2F33FE;
  --color-accent-purple: rgba(139, 110, 255, 0.20);
  --grid-line: #ececec;
  --text-dark: #111111;
  --text-gray: #9a9a9a;
  --text-gray-mid: #6b6b6b;
}

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

html, body {
  font-family: var(--font-family-Font-1);
  color: var(--text-dark);
  background-color: #ffffff;
}

body {
  min-height: 100vh;
}

.page {
  --gutter: 64px;
  position: relative;
  display: grid;
  grid-template-columns: 256px 1fr;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* top right button */

.write-btn {
  position: fixed;
  top: 32px;
  right: 48px;
  z-index: 20;
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  background: rgba(235, 235, 235, 0.30);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
  font-family: var(--font-family-Font-1);
  font-size: 15px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.write-btn-text {
  color: var(--text-dark);
}

.write-btn:hover {
  background: rgba(235, 235, 235, 0.5);
}

/* sidebar */

.sidebar {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  background: #ffffff;
  border-right: 0.5px solid rgba(0, 0, 0, 0.20);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
}

.picker {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-email {
  margin-top: auto;
  font-family: var(--font-family-Font-1);
  font-size: 14px;
  color: var(--text-gray-mid);
  text-decoration: none;
}

.sidebar-email:hover {
  color: var(--text-dark);
}

.picker-item {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family-Font-1);
  text-align: left;
  padding: 0;
  transition: font-size 0.25s ease, color 0.25s ease, font-weight 0.25s ease, opacity 0.25s ease;
}

.picker-item[data-distance="0"] {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  opacity: 1;
}

.picker-item[data-distance="1"] {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-gray-mid);
  opacity: 0.85;
}

.picker-item[data-distance="2"] {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-gray);
  opacity: 0.7;
}

/* Safari can't smoothly interpolate font-size without leaving a stale glyph
   tile behind in a position: sticky ancestor. Rasterize the glyph once at
   the max size and animate transform: scale() instead — no will-change, no
   translateZ, no backface-visibility, no isolation: those force a
   permanently-promoted layer, which is what caused the stale-tile ghosting
   in the first place. Plain transform lets Safari manage layer promotion
   the same way it does for any other transition. font-weight is never in
   the transition list (it snaps either way for a static, non-variable
   font), so it's safe to match Chrome's per-distance values exactly. */
@supports (-webkit-hyphens: none) {
  .picker-item {
    font-size: 28px;
    transform-origin: left center;
    transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  }

  .picker-item[data-distance="0"] {
    font-weight: 600;
    transform: scale(1);
  }

  .picker-item[data-distance="1"] {
    font-weight: 400;
    transform: scale(0.9);
    margin-bottom: -3px;
  }

  .picker-item[data-distance="2"] {
    font-weight: 400;
    transform: scale(0.78);
    margin-bottom: -7px;
  }
}

/* content */

.content {
  padding: 40px var(--gutter) 0 var(--gutter);
  position: relative;
  min-width: 0;
}

.hero {
  position: relative;
  padding-top: 24px;
  min-height: 480px;
}

.toggle {
  position: relative;
  display: inline-flex;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.04);
}

.toggle::before,
.toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}

.toggle::before {
  bottom: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #ececec;
}

.toggle::after {
  bottom: -7px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

.toggle-item {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-family-Font-1);
  font-size: 15px;
  font-style: italic;
  padding: 10px 20px;
  color: var(--text-gray);
  transition: color 0.2s ease;
}

.toggle-item:not(:first-child) {
  border-left: 1px solid #ececec;
}

.toggle-item.active {
  color: var(--text-dark);
  font-style: normal;
}

.hero-title {
  font-family: var(--font-family-headings);
  font-size: 55px;
  font-style: normal;
  font-weight: 500;
  margin-top: 11px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.selected-text {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.selected-text-inner {
  display: flex;
  width: fit-content;
  min-width: 265px;
  padding: 0 4px;
  align-items: flex-start;
  border-radius: 4px;
  background: var(--color-accent-purple);
  font-style: italic;
  white-space: nowrap;
}

.handle {
  position: absolute;
  width: 3px;
  height: 100%;
  background: var(--color-accent-blue);
}

.handle::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  border: var(--stroke-weight-3) solid var(--color-white-solid);
  background: var(--color-accent-blue);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.20);
}

.handle-top {
  top: 0;
  left: -1.5px;
}

.handle-top::before {
  top: -6px;
}

.handle-bottom {
  bottom: 0;
  right: -1.5px;
}

.handle-bottom::before {
  bottom: -6px;
}

.hero-subtitle {
  font-family: var(--font-family-Font-1);
  font-size: 20px;
  color: var(--text-gray-mid);
  margin-top: 36px;
  max-width: 420px;
  line-height: 1.4;
}

.education {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 191px;
  opacity: 0.85;
}

.education-icon {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  object-fit: contain;
}

.education-text {
  display: flex;
  flex-direction: column;
}

.education-title {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.education-place {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* photo stack */

.photo-stack {
  position: absolute;
  top: 60px;
  right: 0;
  width: 320px;
  height: 420px;
}

.photo-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  background: #d9d9d9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.7s ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* skills strip */

.skills {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  padding-top: 28px;
}

.skill-card {
  padding: 0 0 40px 0;
  text-align: center;
}

.skill-text {
  font-family: var(--font-family-Font-1);
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.4;
}

/* design case study */

.design-section {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  padding: 64px var(--gutter) 96px;
  background: #f4f4f4;
}

.case-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.case-logo {
  display: flex;
  width: 117px;
  height: 72px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background: rgba(139, 110, 255, 0.20);
  text-decoration: none;
  color: inherit;
}

.case-logo-text {
  width: 117px;
  flex-shrink: 0;
  text-align: center;
  font-family: Inter;
  font-size: 56.8px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-dark);
}

.case-role {
  max-width: 189px;
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.case-description {
  max-width: 446px;
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 28px 0 58px;
}

.case-description-regular {
  font-weight: 400;
}

.case-content {
  display: flex;
  min-width: 0;
}

.case-stats-col {
  min-width: 0;
}

.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
}

.stat-value {
  align-self: stretch;
  color: #8a5aca;
  font-family: var(--font-family-Font-1);
  font-size: 64px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.stat-suffix {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.stat-label {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: 10px;
}

.case-footnote {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: 94px;
}

.case-phone {
  position: absolute;
  top: 64px;
  right: 32px;
}

.phone-image {
  width: 331.769px;
  height: 466.988px;
  aspect-ratio: 27 / 38;
  transform: rotate(-2.495deg);
}

.case-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 110px;
}

.case-highlights > p {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  max-width: 240px;
}

.case-flow {
  display: grid;
  grid-template-columns: 240px 109px 240px 109px 240px;
  grid-template-rows: auto 48px auto;
  align-items: center;
  margin-top: 110px;
  row-gap: 0;
}

.flow-item {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  max-width: 240px;
}

.flow-item--1 { grid-column: 1; grid-row: 1; }
.flow-item--2 { grid-column: 3; grid-row: 1; }
.flow-item--3 { grid-column: 5; grid-row: 1; }
.flow-item--4 { grid-column: 5; grid-row: 3; }
.flow-item--5 { grid-column: 3; grid-row: 3; }
.flow-item--6 { grid-column: 1; grid-row: 3; }

.flow-arrow {
  justify-self: center;
  align-self: center;
  transform: translateX(-15px);
}

.flow-arrow--1 { grid-column: 2; grid-row: 1; width: 39px; height: 21px; }
.flow-arrow--2 { grid-column: 4; grid-row: 1; width: 39px; height: 14px; }
.flow-arrow--3 { grid-column: 5; grid-row: 2; width: 16px; height: 28px; }
.flow-arrow--4 { grid-column: 4; grid-row: 3; width: 45px; height: 20px; }
.flow-arrow--5 { grid-column: 2; grid-row: 3; width: 39px; height: 19px; }

.flow-haptick {
  display: inline-block;
  width: 11px;
  height: 14px;
  margin-left: 4px;
  vertical-align: text-top;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.screenshot-media {
  width: 240px;
  height: 521px;
  border-radius: 4px;
  background: #d9d9d9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

.screenshot-card figcaption {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Яндекс Игры sub-case (inside Дизайн, after Balb) */

.subcase {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.subcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.subcase-title {
  margin: 0;
}

.subcase-title-highlight {
  display: flex;
  width: 352px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--color-accent-purple);
  text-align: center;
  font-family: Inter;
  font-size: 54px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-dark);
  white-space: nowrap;
}

.subcase-icon {
  width: 140px;
  height: 100px;
  flex-shrink: 0;
  object-fit: contain;
  transform: rotate(-6deg);
}

.subcase-text {
  max-width: 640px;
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 24px;
}

.subcase-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 56px;
  margin-top: 56px;
}

.subcase-heading {
  font-family: var(--font-family-Font-1);
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: #6B58FF;
  text-shadow: 1px 0 0 rgba(14, 0, 123, 0.80);
  margin: 0 0 16px;
}

.subcase-col h4.subcase-heading:not(:first-child) {
  margin-top: 78px;
}

.subcase-col p {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 20px;
}

.subcase-col p:last-child {
  margin-bottom: 0;
}

/* marketing case study */

.case-logo--wide {
  width: fit-content;
  height: 72px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(139, 110, 255, 0.20);
}

.case-logo-text--wide {
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: center;
  font-family: Inter;
  font-size: 54px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-dark);
}

.brand-logo-slot {
  position: absolute;
  top: 94px;
  right: 77px;
  width: 257px;
  height: 257px;
  aspect-ratio: 1 / 1;
}

.brands-label {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: 64px;
}

.brands-grid {
  --logo-scale: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 40px;
  margin-top: 39px;
}

.brand-logo {
  flex-shrink: 0;
  object-fit: contain;
  width: calc(var(--w) * 1px * var(--logo-scale));
  height: calc(var(--h) * 1px * var(--logo-scale));
}

@media (max-width: 900px) {
  .brands-grid {
    --logo-scale: 0.8;
    gap: 24px 32px;
  }
}

@media (max-width: 600px) {
  .brands-grid {
    --logo-scale: 0.6;
    gap: 16px 24px;
  }
}

.case-highlights--two {
  grid-template-columns: repeat(2, 1fr);
}

.highlight-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight-col p {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

/* creative case study */

.case-logo--issue {
  display: flex;
  width: 152px;
  height: 72px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background: rgba(139, 110, 255, 0.20);
}

.case-logo-text--issue {
  width: 152px;
  flex-shrink: 0;
  text-align: center;
  font-family: Inter;
  font-size: 56.8px;
  font-style: normal;
  font-weight: 400;
  line-height: 79.2px;
  color: var(--text-dark);
}

.case-role--issue {
  max-width: 230px;
}

.case-description--bold {
  font-weight: 500;
  max-width: 580px;
}

.creative-highlights {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.creative-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.creative-row p {
  color: #000;
  font-family: var(--font-family-Font-1);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  max-width: 280px;
}

.creative-photo {
  width: 164px;
  height: 162px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
}

.creative-video {
  position: absolute;
  top: 64px;
  right: 64px;
  width: 242px;
  height: 430px;
  border-radius: 4px;
  object-fit: cover;
}

.outro-text {
  text-align: center;
  margin-top: 80px;
  padding-bottom: 48px;
  font-family: var(--font-family-headings);
  font-size: 32px;
  font-style: italic;
  font-weight: 500;
  color: var(--text-gray-mid);
}

.bigger-photos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 96px;
}

.bigger-photo {
  width: 223px;
  height: 298px;
  object-fit: cover;
  border-radius: 6px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bigger-photo--1 { transform: rotate(-4deg); }
.bigger-photo--2 { transform: rotate(2deg); margin-top: 16px; }
.bigger-photo--3 { transform: rotate(-3deg); }

/* ===== tablet (≤1100px): single column, sidebar moves to top ===== */

@media (max-width: 1100px) {
  .page {
    --gutter: 40px;
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    gap: 24px;
    padding-top: 88px;
    border-right: none;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.20);
  }
  .write-btn {
    position: absolute;
    top: 20px;
    right: 24px;
  }
  .photo-stack {
    position: relative;
    margin: 40px auto 0;
  }
  .skills {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-content {
    flex-direction: column;
  }
  .case-phone {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin-top: 40px;
  }
  .phone-image {
    width: 260px;
    height: auto;
  }
  .case-footnote {
    margin-top: 32px;
  }
  .case-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
  }
  .case-flow {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 24px;
    margin-top: 40px;
  }
  .flow-item--1, .flow-item--2, .flow-item--3,
  .flow-item--4, .flow-item--5, .flow-item--6 {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }
  .flow-arrow {
    display: none;
  }
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-media {
    width: 100%;
    height: auto;
    aspect-ratio: 240 / 521;
  }
  .brand-logo-slot {
    position: relative;
    top: 0;
    right: 0;
    margin: 24px auto 0;
  }
  .creative-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .creative-row--reverse {
    flex-direction: row;
  }
  .creative-video {
    display: block;
    position: relative;
    top: 0;
    right: 0;
    margin: 24px auto 0;
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 242 / 430;
    order: 99;
  }
}

/* ===== phone (≤640px) ===== */

@media (max-width: 640px) {
  .page {
    --gutter: 20px;
  }
  .write-btn {
    position: fixed;
    top: 14px;
    right: 16px;
    padding: 9px 16px;
    font-size: 13px;
    z-index: 25;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 20px var(--gutter);
    z-index: 20;
  }
  .sidebar-email {
    display: none;
  }
  .content {
    padding-top: 88px;
  }
  .menu-toggle {
    display: flex;
  }
  .picker {
    display: none;
    position: absolute;
    top: 56px;
    left: var(--gutter);
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 30;
  }
  .picker.open {
    display: flex;
  }
  .picker-item[data-distance="0"] {
    font-size: 20px;
  }
  .picker-item[data-distance="1"] {
    font-size: 16px;
  }
  .picker-item[data-distance="2"] {
    font-size: 14px;
  }
  @supports (-webkit-hyphens: none) {
    .picker-item {
      font-size: 20px;
    }
  }
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .toggle {
    order: 0;
    align-self: center;
  }
  .hero-title {
    order: 1;
  }
  .hero-subtitle {
    order: 2;
  }
  .photo-stack {
    order: 3;
    margin: 24px auto 0;
  }
  .education {
    order: 4;
    margin-top: 90px;
  }
  .toggle-item {
    font-size: 13px;
    padding: 8px 14px;
  }
  .hero-title {
    font-size: 36px;
    margin-top: 24px;
    flex-wrap: wrap;
  }
  .selected-text-inner {
    min-width: 0;
  }
  .hero-subtitle {
    font-size: 17px;
    max-width: 100%;
  }
  .photo-stack {
    width: 240px;
    height: 320px;
  }
  .photo-card {
    width: 210px;
    height: 280px;
  }
  .skills {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
  }
  .skill-card {
    text-align: left;
    padding: 0 0 24px 0;
  }
  .case-header {
    gap: 14px;
  }
  .case-logo {
    width: 90px;
    height: 56px;
  }
  .case-logo-text {
    width: 90px;
    font-size: 42px;
  }
  .case-logo--wide {
    width: fit-content;
    height: 56px;
  }
  .case-logo-text--wide {
    width: auto;
    font-size: 36px;
  }
  .case-logo--issue {
    width: 110px;
    height: 56px;
  }
  .case-logo-text--issue {
    width: 110px;
    font-size: 40px;
    line-height: 56px;
  }
  .case-description {
    font-size: 17px;
    margin: 20px 0 40px;
  }
  .stat-value {
    font-size: 32px;
  }
  #design .case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }
  #marketing .case-stats {
    flex-wrap: nowrap;
    gap: 16px;
  }
  #marketing .stat-value {
    font-size: 40px;
  }
  #marketing .stat-label {
    font-size: 11px;
  }
  .case-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
  }
  .case-highlights > p {
    font-size: 17px;
  }
  .flow-item {
    font-size: 17px;
  }
  .flow-item::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 7px;
    margin-right: 10px;
    background-image: url("icons/2arr.png");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
  }
  .case-highlights--two {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-media {
    display: block;
    max-width: 280px;
    margin: 0 auto;
  }
  .screenshot-card figcaption {
    max-width: 280px;
    margin: 0 auto;
  }
  .case-footnote {
    margin-top: 24px;
  }
  .marketing-section {
    display: flex;
    flex-direction: column;
  }
  .brand-logo-slot {
    display: block;
    width: 180px;
    height: 180px;
    margin: 32px auto 0;
    order: 99;
  }
  .brands-grid {
    --logo-scale: 0.7;
    max-width: 460px;
  }
  .brands-label {
    font-size: 17px;
    margin-top: 32px;
  }
  .highlight-col p {
    font-size: 17px;
  }
  .creative-highlights {
    margin-top: 32px;
    gap: 24px;
  }
  .creative-row {
    gap: 16px;
    align-items: center;
  }
  .creative-row p {
    font-size: 17px;
    max-width: 195px;
  }
  .creative-photo {
    width: 132px;
    height: 130px;
  }
  .creative-row--reverse {
    align-items: center;
    justify-content: flex-end;
  }
  .creative-highlights > .creative-video {
    display: block;
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 0 24px 0;
    order: 0;
  }
  .outro-text {
    font-size: 22px;
    margin-top: 56px;
    padding-bottom: 32px;
  }
  .bigger-photos {
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 var(--gutter) 56px;
  }
  .bigger-photo {
    width: 140px;
    height: 187px;
  }
  .bigger-photo--2 {
    margin-top: 0;
  }
  .subcase {
    margin-top: 56px;
    padding-top: 40px;
  }
  .subcase-title-highlight {
    width: 235px;
    height: 48px;
    font-size: 36px;
  }
  .subcase-icon {
    width: 90px;
    height: 64px;
  }
  .subcase-columns {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .subcase-text {
    font-size: 17px;
  }
  .subcase-col p {
    font-size: 17px;
  }
}
