@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/golos-text.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --case-u: calc(100vw / 1440);
  color: #e6e6e6;
  background: #191919;
  font: 500 calc(13 * var(--case-u))/1.25 "Golos Text", Arial, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-width: none; }
body, h1, h2, p, dl, dd { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #4577ff; outline-offset: 3px; }
.case-layout {
  display: grid;
  grid-template-columns: calc(440 * var(--case-u)) minmax(0, 1fr);
  gap: calc(66 * var(--case-u));
  min-height: 100vh;
  padding: calc(10 * var(--case-u));
}
.case-info {
  position: sticky;
  top: calc(10 * var(--case-u));
  align-self: start;
  width: 100%;
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: calc(9 * var(--case-u));
  min-height: calc(20 * var(--case-u));
  color: #fff;
  font-size: calc(13 * var(--case-u));
  line-height: 1;
}
.case-back img { display: none; }
.case-back::before {
  content: "";
  display: block;
  flex: none;
  width: calc(11 * var(--case-u));
  height: calc(11 * var(--case-u));
  background: url("../assets/ui/dark/cta-arrow.svg") center / contain no-repeat;
  transform: rotate(-135deg);
}
.case-back.drawn-link::after { left: calc(20 * var(--case-u)); }
.case-copy { margin-top: calc(27.766 * var(--case-u)); }
.case-copy h1 {
  margin-bottom: calc(10 * var(--case-u));
  color: #fff;
  font-size: calc(20 * var(--case-u));
  line-height: calc(24 * var(--case-u));
}
.case-copy > p, .case-copy > section { margin-bottom: calc(10 * var(--case-u)); }
.case-copy h2 { color: #fff; font-size: inherit; line-height: inherit; font-weight: 500; margin-bottom: calc(5 * var(--case-u)); }
.case-copy p { overflow-wrap: break-word; }
.case-full-link {
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--case-u));
  min-height: calc(32 * var(--case-u));
  margin: calc(3 * var(--case-u)) 0 calc(18 * var(--case-u));
  padding: calc(7 * var(--case-u)) calc(11 * var(--case-u));
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  line-height: 1.2;
  transition: background-color .3s cubic-bezier(.22, 1, .36, 1), border-color .3s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1);
}
.case-full-link:hover { border-color: #4577ff; background: #4577ff; color: #fff; }
.case-full-link:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .case-full-link { transition: none; } }
.case-full-link span[aria-hidden] {
  display: block;
  flex: none;
  width: calc(10 * var(--case-u));
  height: calc(10 * var(--case-u));
  overflow: hidden;
  color: transparent;
  font-size: 0;
  background: url("../assets/ui/dark/cta-arrow.svg") center / contain no-repeat;
}
.case-meta {
  display: grid;
  grid-template-columns: calc(83 * var(--case-u)) minmax(0, 1fr);
  column-gap: calc(23 * var(--case-u));
  row-gap: calc(7.55 * var(--case-u));
  padding-top: calc(15 * var(--case-u));
  border-top: 1px solid rgba(246, 246, 246, .4);
}
.case-meta dt { color: #f1f1f1; }
.case-meta dd { color: #e6e6e6; }
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(10 * var(--case-u));
  width: calc(910 * var(--case-u));
  max-width: 100%;
  align-content: start;
}
.case-gallery .case-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 450 / 563;
  border-radius: 10px;
}
.case-gallery .case-image img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
}
.case-gallery .case-image.wide { grid-column: 1 / -1; aspect-ratio: 914 / 563; }
.case-gallery .case-image.wide-tall { grid-column: 1 / -1; aspect-ratio: 914 / 1136; }
@media (max-width: 959px) {
  :root { font-size: clamp(12px, 1.6vw, 14px); line-height: 1.4; }
  .case-layout { display: block; padding: 12px; }
  .case-info { position: static; }
  .case-back { gap: 9px; min-height: 24px; font-size: 13px; }
  .case-back::before { width: 11px; height: 11px; }
  .case-back.drawn-link::after { left: 20px; }
  .case-copy { margin-top: 28px; max-width: 620px; }
  .case-copy h1 { font-size: clamp(20px, 3vw, 26px); line-height: 1.2; margin-bottom: 12px; }
  .case-copy > p, .case-copy > section { margin-bottom: 16px; }
  .case-copy h2 { margin-bottom: 4px; }
  .case-full-link { gap: 12px; min-height: 38px; margin: 0 0 20px; padding: 8px 12px; }
  .case-full-link span[aria-hidden] { width: 10px; height: 10px; }
  .case-meta { grid-template-columns: 100px minmax(0, 1fr); gap: 8px 16px; padding-top: 14px; }
  .case-gallery { width: 100%; margin-top: 36px; gap: 12px; }
  .case-gallery .case-image { border-radius: 10px; }
}
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
  .custom-cursor {
    position: fixed;
    z-index: 2147483646;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
    transition: opacity .12s ease;
  }
  .custom-cursor.is-visible { opacity: 1; }
  .cursor-arrow {
    display: block;
    width: calc(16.2 * var(--case-u));
    height: calc(17.9 * var(--case-u));
    transform: translate(calc(-3 * var(--case-u)), calc(-3 * var(--case-u))) rotate(-47.5deg);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
  }
}
@media (max-width: 599px) {
  .case-gallery { grid-template-columns: minmax(0, 1fr); }
  .case-gallery .case-image.wide { aspect-ratio: 914 / 563; }
  .case-gallery .case-image.wide-tall { aspect-ratio: 914 / 1136; }
}
