.pg-intro nav {
  flex-wrap: wrap;
}

.pc-library {
  scroll-margin-top: calc(var(--header-height) + 24px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 100px;
}

.pc-library-heading,
.pc-related-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.pc-library-heading h2,
.pc-related-heading h2,
.pc-case-result h2,
.pc-case-cta h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.pc-library-heading > div > p,
.pc-case-heading > div > p,
.pc-case-result > p,
.pc-case-cta p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.pc-library-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 42px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
}

.pc-library-count small {
  font-size: 13px;
  letter-spacing: 0;
}

.pc-library-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-filters button,
.pc-chapters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 11px 15px;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.pc-filters button:hover,
.pc-chapters button:hover {
  border-color: var(--ink);
}

.pc-filters button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.pc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 300px);
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
}

.pc-search:focus-within {
  border-color: var(--muted);
}

.pc-search svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.pc-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.pc-search input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.pc-result-count {
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.pc-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 24px;
}

.pc-case-card {
  display: block;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.pc-case-card[hidden],
.pc-video-play[hidden] {
  display: none;
}

.pc-case-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--hover);
}

.pc-case-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pc-case-card:hover .pc-case-cover img {
  transform: scale(1.025);
}

.pc-case-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  border-radius: 3px;
  background: #111c;
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pc-case-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 15px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.pc-case-card:hover .pc-case-arrow,
.pc-case-card:focus-visible .pc-case-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.pc-case-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 9px;
  color: var(--muted);
  font-size: 11px;
}

.pc-case-meta > span:first-child {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-case-title {
  display: block;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.pc-case-card:hover .pc-case-title {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.pc-empty {
  padding: 44px 0;
  color: var(--muted);
  font-size: 14px;
}

.pc-case-intro {
  padding-top: 30px;
}

.pc-case-intro .breadcrumb {
  margin-bottom: 45px;
}

.pc-case-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding-bottom: 30px;
}

.pc-case-heading h1 {
  margin: 18px 0 15px;
  max-width: 900px;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.pc-case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 12px;
}

.pc-case-intro-action {
  flex: 0 0 auto;
  padding-bottom: 2px;
}

.pc-video-section {
  padding-bottom: 55px;
}

.pc-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #101010;
  isolation: isolate;
}

.pc-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #101010;
  object-fit: contain;
}

.pc-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fffffff2;
  color: #111;
  font-size: 21px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.pc-video-play:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.06);
}

.pc-video-play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.pc-video-play.is-loading {
  cursor: progress;
  opacity: 0.7;
}

.pc-video-play--error {
  font-size: 17px;
}

.pc-video-ended,
.pc-video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.pc-video-ended {
  min-height: 45px;
  padding-top: 9px;
}

.pc-video-ended[hidden] {
  display: none;
}

.pc-video-ended button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.pc-video-ended button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pc-video-caption {
  padding-top: 17px;
}

.pc-video-error {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pc-video-caption span:last-child {
  text-align: right;
}

.pc-chapters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pc-chapters > .eyebrow {
  margin-right: 5px;
}

.pc-chapters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  font-size: 11px;
}

.pc-chapters button span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pc-chapters button[aria-current='true'] {
  border-color: var(--ink);
  background: var(--hover);
}

.pc-case-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 70px;
  padding-top: 32px;
  padding-bottom: 94px;
  border-top: 1px solid var(--line);
}

.pc-case-prompt blockquote,
.pc-followup blockquote {
  margin: 18px 0 0;
  padding: 22px 26px;
  border-left: 2px solid var(--ink);
  background: var(--hover);
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.pc-followup {
  margin-top: 27px;
}

.pc-followup blockquote {
  font-size: 14px;
}

.pc-case-result h2 {
  font-size: 25px;
}

.pc-related {
  padding-bottom: 84px;
}

.pc-related-heading {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}

.pc-related-heading h2 {
  margin-bottom: 0;
}

.pc-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pc-case-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 84px;
  border-top: 1px solid var(--line);
}

.pc-case-cta h2 {
  font-size: clamp(27px, 3vw, 38px);
}

.pc-case-cta p {
  max-width: 560px;
}

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

@media (max-width: 860px) {
  .pc-case-grid {
    gap: 32px 18px;
  }

  .pc-case-content {
    gap: 38px;
  }
}

@media (max-width: 640px) {
  .pc-library {
    padding-top: 22px;
    padding-bottom: 68px;
  }

  .pc-library-heading {
    align-items: start;
  }

  .pc-library-heading h2 {
    font-size: 29px;
  }

  .pc-library-count {
    padding-top: 23px;
    font-size: 30px;
  }

  .pc-library-heading > div > p {
    font-size: 14px;
  }

  .pc-library-controls {
    margin-top: 25px;
    padding-top: 16px;
    gap: 13px;
  }

  .pc-filters {
    flex-wrap: nowrap;
    max-width: calc(100vw - 40px);
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .pc-filters button {
    flex: 0 0 auto;
  }

  .pc-search {
    width: 100%;
  }

  .pc-case-grid,
  .pc-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 13px;
  }

  .pc-case-meta {
    gap: 7px;
    margin-top: 12px;
    font-size: 10px;
  }

  .pc-case-software {
    display: none;
  }

  .pc-case-title {
    font-size: 16px;
    line-height: 1.45;
  }

  .pc-case-duration {
    right: 7px;
    bottom: 7px;
    padding: 5px 6px;
    font-size: 10px;
  }

  .pc-case-arrow {
    display: none;
  }

  .pc-case-intro {
    padding-top: 24px;
  }

  .pc-case-intro .breadcrumb {
    margin-bottom: 34px;
  }

  .pc-case-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 22px;
  }

  .pc-case-heading h1 {
    font-size: clamp(34px, 9vw, 45px);
  }

  .pc-case-heading > div > p {
    font-size: 14px;
  }

  .pc-case-intro-action .button {
    min-height: 45px;
  }

  .pc-video-section {
    padding-bottom: 39px;
  }

  .pc-video-frame {
    border-radius: 5px;
  }

  .pc-video-play {
    width: 56px;
    height: 56px;
    font-size: 17px;
  }

  .pc-video-caption {
    align-items: flex-start;
    font-size: 10px;
  }

  .pc-video-caption span:last-child {
    max-width: 70%;
  }

  .pc-chapters {
    flex-wrap: nowrap;
    max-width: calc(100vw - 40px);
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .pc-chapters > .eyebrow,
  .pc-chapters button {
    flex: 0 0 auto;
  }

  .pc-case-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 25px;
    padding-bottom: 64px;
  }

  .pc-case-prompt blockquote,
  .pc-followup blockquote {
    padding: 17px 18px;
    font-size: 14px;
  }

  .pc-case-result h2 {
    font-size: 23px;
  }

  .pc-related {
    padding-bottom: 58px;
  }

  .pc-related-heading {
    align-items: end;
    gap: 10px;
  }

  .pc-related-heading h2 {
    font-size: 27px;
  }

  .pc-related-heading > a {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .pc-case-cta {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-case-cover img,
  .pc-filters button,
  .pc-chapters button,
  .pc-video-play,
  .pc-case-arrow {
    transition: none;
  }
}
