:root {
  --paper: #f4f3ef;
  --surface: #ffffff;
  --ink: #202321;
  --ink-soft: #474b48;
  --muted: #70746f;
  --line: #d8d9d3;
  --line-strong: #b9bcb6;
  --accent: #c95f4b;
  --focus: #2f7258;
  --dark: #1c211e;
  --radius: 4px;
  --content: 1280px;
  --gutter: clamp(22px, 4.5vw, 64px);
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
  --sans: "SF Pro Display", "Helvetica Neue", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

.hero {
  display: grid;
  width: min(100%, var(--content));
  min-height: 480px;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 96px;
  align-items: end;
  margin: 0 auto;
  padding: 104px var(--gutter) 76px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: 86px;
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 520px;
  padding-bottom: 4px;
}

.hero-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.jump-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease, border-color 180ms ease;
}

.jump-link span {
  color: var(--accent);
  font-size: 17px;
}

.jump-link:hover,
.jump-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.cases {
  padding: 72px var(--gutter) 128px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.section-header,
.case-grid {
  width: min(100%, calc(var(--content) - (2 * var(--gutter))));
  margin-inline: auto;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 64px;
  align-items: end;
  margin-bottom: 44px;
}

.section-header h2 {
  margin: 0;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-header > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.case-card {
  min-width: 0;
}

.video-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
  background: var(--dark);
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.video-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease), filter 320ms ease;
}

.media-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(13, 18, 15, 0.02);
  transition: background 260ms ease;
}

.media-duration {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 7px;
  border-radius: 2px;
  background: rgba(17, 21, 18, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.play-action {
  position: absolute;
  top: 50%;
  left: 66%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: rgba(16, 20, 17, 0.78);
  color: #ffffff;
  transform: translate(-50%, -50%);
  transition: background 220ms ease, border-color 220ms ease,
    transform 220ms var(--ease);
}

.play-icon {
  padding-left: 3px;
  font-size: 15px;
  line-height: 1;
}

.video-trigger:hover img,
.video-trigger:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.018);
}

.video-trigger:hover .media-shade,
.video-trigger:focus-visible .media-shade {
  background: rgba(13, 18, 15, 0.07);
}

.video-trigger:hover .play-action,
.video-trigger:focus-visible .play-action {
  border-color: var(--accent);
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.05);
}

.video-trigger:focus-visible,
.modal-close:focus-visible,
.jump-link:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.case-content {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.case-heading {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.case-number {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.case-heading h3 {
  margin: 0;
  font-size: 27px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: 0;
}

.case-summary {
  max-width: 540px;
  margin: 16px 0 0 92px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 14px 0 0 92px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
  list-style: none;
}

.case-tags li:not(:last-child)::after {
  margin: 0 8px;
  color: var(--line-strong);
  content: "·";
}

.site-footer {
  display: grid;
  min-height: 88px;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  color: var(--muted);
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: end;
  font-weight: 650;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
  opacity: 0;
  transition: visibility 0s linear 260ms, opacity 260ms ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 11, 0.9);
  backdrop-filter: blur(8px);
}

.modal-window {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #46504a;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  transform: translateY(20px) scale(0.985);
  transition: transform 320ms var(--ease);
}

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

.modal-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  color: #ffffff;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
}

.modal-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #59635e;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease;
}

.modal-close:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero [data-reveal],
.section-header[data-reveal],
.case-card[data-reveal] {
  animation: rise 600ms both var(--ease);
}

.hero-intro[data-reveal] {
  animation-delay: 80ms;
}

.case-card:nth-child(2)[data-reveal] {
  animation-delay: 70ms;
}

.case-card:nth-child(3)[data-reveal] {
  animation-delay: 110ms;
}

.case-card:nth-child(4)[data-reveal] {
  animation-delay: 160ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-width: 960px) {
  .hero {
    min-height: 430px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 56px;
    padding-top: 84px;
  }

  .hero h1 {
    font-size: 68px;
  }

  .case-heading h3 {
    font-size: 24px;
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 58px;
  }

  .hero-intro {
    max-width: 620px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-header > p {
    max-width: 560px;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .case-heading h3 {
    font-size: 27px;
  }
}

@media (max-width: 560px) {
  .hero {
    gap: 30px;
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 50px;
    line-height: 1.02;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-meta {
    margin-top: 22px;
    font-size: 12px;
  }

  .jump-link {
    margin-top: 18px;
  }

  .cases {
    padding-top: 52px;
    padding-bottom: 88px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .media-duration {
    top: 10px;
    right: 10px;
  }

  .play-action {
    width: 50px;
    height: 50px;
  }

  .case-content {
    padding-top: 18px;
  }

  .case-heading {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .case-number {
    margin-top: 0;
  }

  .case-heading h3 {
    font-size: 24px;
  }

  .case-summary,
  .case-tags {
    margin-left: 0;
  }

  .case-summary {
    margin-top: 12px;
  }

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

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }

  .modal {
    padding: 10px;
  }

  .modal-window {
    max-height: calc(100vh - 20px);
  }

  .modal-header {
    min-height: 66px;
    padding: 11px 14px;
  }

  .modal-header h2 {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
