.hwcase-page .hw-hero {
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
}

.hwcase-page .hero-visual img {
  aspect-ratio: 9 / 14;
  max-height: 680px;
  object-fit: cover;
}

.hw-filters {
  position: sticky;
  top: 73px;
  z-index: 12;
  padding: 12px 0;
  background: rgba(247, 251, 255, .82);
  backdrop-filter: blur(16px);
}

.hw-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hw-case-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(219, 234, 245, .84);
  background: #071626;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.hw-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.hw-case-card.is-hidden {
  display: none;
}

.hw-case-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: .9;
  transition: transform .6s ease, opacity .25s ease;
}

.hw-case-card:hover img {
  transform: scale(1.05);
  opacity: .76;
}

.hw-case-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 22, 38, .02), rgba(7, 22, 38, .28) 45%, rgba(7, 22, 38, .92)),
    linear-gradient(135deg, rgba(40, 169, 232, .18), rgba(238, 93, 91, .12));
}

.hw-case-info {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
}

.hw-case-info span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  color: #b7e8ff;
  font-size: 13px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}

.hw-case-info h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 24px;
}

.hw-case-info p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pricing-card {
  min-height: 360px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 18px 50px rgba(28, 72, 116, .08);
}

.pricing-card > span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--red);
  font-weight: 700;
}

.pricing-card h3 {
  color: var(--navy);
}

.pricing-card dl {
  gap: 10px;
  margin: 20px 0;
}

.pricing-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(219, 234, 245, .92);
}

.pricing-card dt,
.pricing-card dd {
  margin: 0;
  font-size: 14px;
}

.pricing-card dd {
  color: var(--navy);
  font-weight: 700;
  text-align: right;
}

.pricing-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.pricing-note {
  background: linear-gradient(135deg, rgba(16, 42, 67, .96), rgba(10, 61, 96, .94));
}

.pricing-note h3,
.pricing-note p {
  color: var(--white);
}

.pricing-note p {
  color: rgba(255, 255, 255, .74);
}

.pricing-note a {
  display: inline-flex;
  margin-top: 18px;
  color: #b7e8ff;
  text-decoration: none;
}

.hw-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
}

.hw-modal.is-open {
  display: grid;
}

.hw-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  background: #071626;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.hw-player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 64px 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hw-player-head h3 {
  margin: 0;
  color: var(--white);
}

.hw-player-head .eyebrow {
  margin-bottom: 8px;
}

.hw-player-head span {
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.hw-modal-dialog video {
  width: 100%;
  max-height: calc(100vh - 170px);
  background: #000;
}

@media (max-width: 980px) {
  .hwcase-page .hw-hero,
  .hw-case-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hwcase-page .hw-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hw-filters {
    position: static;
  }

  .hw-case-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hw-case-card {
    min-height: 320px;
  }

  .hw-player-head {
    display: block;
  }
}
