.category-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(30px, 3vw, 52px) 4vw;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: var(--ink);
}

.category-hero::after {
  content: "";
  position: absolute;
  right: 4vw;
  bottom: clamp(104px, 13vh, 148px);
  left: 4vw;
  height: 1px;
  background: rgba(197, 149, 52, 0.46);
  pointer-events: none;
}

.category-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 8;
  grid-row: 1;
  padding: clamp(36px, 6vh, 70px) 0 18px;
  justify-content: flex-start;
  pointer-events: none;
}

.category-copy h1 {
  max-width: none;
  margin-top: clamp(24px, 4vh, 44px);
  font-size: clamp(68px, 7vw, 116px);
  line-height: 0.9;
}

.category-copy h1 em {
  width: auto;
  margin-top: 0.08em;
  margin-left: clamp(56px, 5.5vw, 94px);
  font-size: 0.56em;
  line-height: 0.96;
  white-space: nowrap;
}

.category-context {
  width: min(48vw, 700px);
  margin-top: auto;
  padding-bottom: clamp(34px, 5vh, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.62fr);
  gap: clamp(22px, 2.6vw, 42px);
  align-items: end;
}

.category-definition {
  max-width: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
}

.category-note-link {
  display: block;
  padding: 13px 0 11px;
  color: var(--paper);
  font-size: 12px;
  line-height: 1.65;
  text-decoration: none;
  border-top: 1px solid #686a64;
  border-bottom: 1px solid #686a64;
  pointer-events: auto;
  transition: color 220ms ease, border-color 220ms ease, padding-left 220ms ease;
}

.category-note-link span {
  display: block;
  margin-bottom: 6px;
  color: var(--copper);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.category-note-link:hover,
.category-note-link:focus-visible {
  padding-left: 10px;
  color: var(--acid);
  border-color: var(--acid);
}

.category-note-link:focus-visible {
  outline: 1px solid var(--copper);
  outline-offset: 5px;
}

.category-count {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: 18px;
  border-bottom: 0;
}

.category-visual {
  position: relative;
  z-index: 1;
  grid-column: 8 / -1;
  grid-row: 1;
  min-height: 0;
  width: min(100%, 500px);
  margin: 0;
  padding: 0;
  justify-self: end;
  align-self: center;
  justify-content: center;
  background: transparent;
}

.category-visual img {
  width: auto;
  height: min(68vh, 620px);
  max-width: 100%;
  max-height: none;
  align-self: center;
  object-fit: contain;
  object-position: center;
}

.category-visual .gallery-caption {
  padding-top: 12px;
  text-align: right;
}

.client-record__heading {
  padding: 25px 0;
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid #b7b8b0;
}

.creative-record-body {
  padding-top: 65px;
  display: grid;
  grid-template-columns: minmax(280px, 0.64fr) minmax(600px, 1.36fr);
  gap: clamp(60px, 7vw, 112px);
  align-items: start;
}

.creative-copy {
  padding-top: 12px;
}

.creative-copy h2 {
  font-size: clamp(39px, 4.2vw, 66px);
}

.creative-sequence {
  min-width: 0;
}

.creative-pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  margin-bottom: clamp(74px, 8vw, 126px);
}

.creative-pair:last-child {
  margin-bottom: 0;
}

.creative-work {
  width: min(100%, 350px);
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: clamp(10px, 0.9vw, 14px);
  overflow: hidden;
  background: #deddd6;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.creative-work:first-child {
  grid-column: 1 / span 5;
  justify-self: start;
}

.creative-work:last-child {
  grid-column: 8 / span 5;
  justify-self: end;
  margin-top: clamp(74px, 7vw, 112px);
}

.creative-pair:nth-child(2) .creative-work:first-child {
  grid-column: 2 / span 5;
}

.creative-pair:nth-child(2) .creative-work:last-child {
  margin-top: clamp(104px, 9vw, 138px);
}

.creative-pair:nth-child(3) .creative-work:last-child {
  grid-column: 7 / span 5;
  margin-top: clamp(58px, 5vw, 82px);
}

.creative-work img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ecebe5;
}

.creative-work.is-visible:hover {
  transform: translateY(-7px);
}

@media (max-width: 1180px) {
  .category-copy h1 em {
    font-size: 0.52em;
  }

  .creative-work {
    width: min(100%, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .creative-work,
  .creative-work.is-visible:hover {
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .category-hero {
    min-height: 0;
    padding: 40px 20px 48px;
    display: flex;
    overflow: visible;
  }

  .category-hero::after { display: none; }

  .category-copy {
    width: 100%;
    padding: 0;
    display: block;
    pointer-events: auto;
  }

  .category-copy h1 {
    margin-top: 18px;
    font-size: clamp(48px, 15vw, 70px);
    line-height: 0.98;
  }

  .category-copy h1 em {
    margin: 0.16em 0 0;
    font-size: 0.46em;
    line-height: 1.1;
    white-space: normal;
  }

  .category-context {
    width: 100%;
    margin-top: 34px;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-count { margin-top: 28px; }

  .category-visual {
    width: 100%;
    margin-top: 34px;
    padding: 0;
    display: block;
  }

  .category-visual img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .creative-record-body {
    padding-top: 38px;
    display: flex;
    flex-direction: column;
    gap: 42px;
  }

  .creative-copy { padding-top: 0; }

  .creative-sequence { width: 100%; }

  .creative-pair {
    width: 100%;
    margin-bottom: 42px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .creative-work,
  .creative-work:first-child,
  .creative-work:last-child,
  .creative-pair:nth-child(2) .creative-work:first-child,
  .creative-pair:nth-child(2) .creative-work:last-child,
  .creative-pair:nth-child(3) .creative-work:last-child {
    width: 100%;
    aspect-ratio: auto;
    grid-column: auto;
    justify-self: stretch;
    margin-top: 0;
    padding: 12px;
    overflow: visible;
  }

  .creative-work img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 360px) {
  .category-hero { padding-right: 16px; padding-left: 16px; }
}
