.category-page-body {
  overflow-x: clip;
  background: var(--next-cream);
  color: var(--next-ink);
  font-family: var(--next-sans);
}

.category-page-body h1,
.category-page-body h2,
.category-page-body h3 {
  font-family: var(--next-display);
  font-weight: 400;
  text-wrap: balance;
}

.category-page-body :focus-visible {
  box-shadow: var(--next-focus);
}

.category-page-body .category-development :focus-visible,
.category-page-body .category-trade :focus-visible,
.category-page-body .next-final-cta :focus-visible,
.category-page-body .site-footer :focus-visible {
  box-shadow: 0 0 0 2px var(--next-charcoal), 0 0 0 5px var(--next-ivory);
}

.category-page img {
  display: block;
  width: 100%;
  height: 100%;
}

.category-page figure,
.category-page p,
.category-page h1,
.category-page h2,
.category-page ol,
.category-page ul {
  margin-top: 0;
}

.category-breadcrumbs {
  padding-block: clamp(1.25rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--next-rule);
}

.category-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0;
  padding: 0;
  color: var(--next-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.category-breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--next-mushroom);
}

.category-breadcrumbs a {
  text-underline-offset: 0.25em;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.72fr) minmax(30rem, 1.28fr);
  grid-template-areas:
    "copy media"
    "disclosure media";
  min-height: min(52rem, calc(100dvh - 6.5rem));
  background: var(--next-ivory);
}

.category-hero-copy {
  grid-area: copy;
  align-self: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(2rem, 5vw, 6rem) clamp(2rem, 4vw, 4rem) max(var(--next-gutter), calc((100vw - var(--next-container)) / 2 + var(--next-gutter)));
}

.category-hero-copy h1 {
  max-width: 11ch;
  margin: 1.35rem 0 1.5rem;
  font-size: clamp(3.15rem, 5.5vw, 6.4rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.category-hero-location {
  margin-bottom: 1rem;
  color: var(--next-walnut);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-hero-lead {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--next-muted);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.18rem);
  line-height: 1.7;
}

.category-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.category-hero-media {
  position: relative;
  grid-area: media;
  min-height: 42rem;
  margin: 0;
  overflow: hidden;
  background: var(--next-sand);
}

.category-hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.category-hero-media img {
  object-fit: cover;
  object-position: center;
}

.category-hero-media figcaption,
.category-project-card figcaption,
.category-editorial-media figcaption,
.category-production-grid figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.category-hero-media figcaption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  width: fit-content;
  max-width: calc(100% - 2.5rem);
  margin: 0;
  padding: 0.5rem 0.7rem;
  background: rgba(31, 29, 26, 0.86);
  color: var(--next-ivory);
}

.category-disclosure {
  grid-area: disclosure;
  align-self: end;
  max-width: 35rem;
  margin: 0;
  padding: 0 clamp(2rem, 5vw, 6rem) clamp(2rem, 4vw, 3rem) max(var(--next-gutter), calc((100vw - var(--next-container)) / 2 + var(--next-gutter)));
  color: var(--next-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.category-section {
  padding-block: var(--next-section);
}

.category-intro {
  background: var(--next-cream);
}

.category-intro-grid,
.category-development-grid,
.category-trade-grid,
.category-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 0.78fr);
  gap: clamp(3rem, 9vw, 9rem);
}

.category-intro h2,
.category-development h2,
.category-trade h2,
.category-editorial h2,
.category-related h2,
.category-section-heading h2 {
  max-width: 14ch;
  margin: 1.2rem 0 0;
  font-size: clamp(2.65rem, 5vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.category-intro-copy > p:first-child,
.category-editorial-copy > p:last-child,
.category-trade-grid > div:last-child > p,
.category-section-heading > p:last-child {
  color: var(--next-muted);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.16rem);
  line-height: 1.75;
}

.category-brand-line {
  margin: 2rem 0;
  color: var(--next-walnut);
  font-family: var(--next-display);
  font-size: clamp(1.7rem, 2.8vw, 2.65rem);
  line-height: 1.15;
}

.category-type-list,
.category-trade-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--next-rule);
  list-style: none;
}

.category-type-list li,
.category-trade-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--next-rule);
  color: var(--next-ink);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-type-list li:nth-child(odd),
.category-trade-list li:nth-child(odd) {
  padding-right: 1rem;
}

.category-gallery {
  background: var(--next-ivory);
}

.category-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.65fr);
  align-items: end;
  gap: 1.5rem clamp(3rem, 8vw, 8rem);
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.category-section-heading .next-eyebrow {
  grid-column: 1 / -1;
}

.category-section-heading h2 {
  margin-top: 0;
}

.category-section-heading > p:last-child {
  margin: 0;
}

.category-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.25rem, 3vw, 3.25rem);
}

.category-project-card {
  margin: 0;
}

.category-project-card--landscape {
  grid-column: 1 / -1;
}

.category-project-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--next-sand);
}

.category-project-card--landscape .category-project-media {
  aspect-ratio: 3 / 2;
}

.category-project-card--square .category-project-media {
  aspect-ratio: 1 / 1;
}

.category-sofas .category-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-project-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.category-project-media img {
  object-fit: contain;
}

.category-project-card figcaption {
  display: grid;
  gap: 0.55rem;
  padding-top: 1rem;
  color: var(--next-muted);
  text-transform: none;
}

.category-project-title {
  color: var(--next-ink);
  font-family: var(--next-display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.category-project-caption {
  max-width: 37rem;
  font-size: 0.88rem;
  letter-spacing: 0;
  line-height: 1.65;
}

.category-project-meta {
  color: var(--next-taupe);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-development {
  background: var(--next-walnut-deep);
  color: var(--next-ivory);
}

.category-development .next-eyebrow,
.category-trade .next-eyebrow {
  color: var(--next-stone);
}

.category-development-intro {
  max-width: 38rem;
  margin-top: 2rem;
  color: var(--next-greige);
  line-height: 1.75;
}

.category-development-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--next-rule-light);
  list-style: none;
}

.category-development-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--next-rule-light);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
}

.category-development-list span {
  color: var(--next-stone);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.category-development-statement {
  margin: 2rem 0 0;
  color: var(--next-ivory);
  font-family: var(--next-display);
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: 1.2;
}

.category-editorial {
  background: var(--next-cream);
}

.category-editorial-grid {
  grid-template-columns: minmax(28rem, 1.1fr) minmax(20rem, 0.7fr);
  align-items: center;
}

.category-editorial-media {
  margin: 0;
}

.category-editorial-media picture {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--next-sand);
}

.category-editorial-media img {
  object-fit: contain;
}

.category-editorial-media figcaption,
.category-production-grid figcaption {
  padding-top: 0.75rem;
  color: var(--next-muted);
}

.category-editorial-copy h2 {
  margin-bottom: 2rem;
}

.category-trade {
  background: var(--next-charcoal);
  color: var(--next-ivory);
}

.category-trade-grid {
  align-items: start;
}

.category-trade-statement {
  max-width: 25rem;
  margin-top: 2rem;
  color: var(--next-stone);
  font-family: var(--next-display);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.2;
}

.category-trade-grid > div:last-child > p {
  color: var(--next-greige);
}

.category-trade-list {
  margin: 2rem 0;
  border-color: var(--next-rule-light);
}

.category-trade-list li {
  border-color: var(--next-rule-light);
  color: var(--next-ivory);
}

.category-production {
  background: var(--next-ivory);
}

.category-production-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 5vw, 4.75rem);
  gap: clamp(1rem, 2vw, 2rem);
}

.category-production-grid figure {
  margin: 0;
}

.category-production-grid img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--next-sand);
}

.category-production-sequence {
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-block: clamp(1.25rem, 2vw, 1.75rem);
  border-block: 1px solid var(--next-rule);
}

.category-production-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-production-stages li {
  min-width: 0;
  padding-right: 1rem;
  color: var(--next-ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.category-production-stage-number {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--next-taupe);
  font-size: 0.65rem;
}

.category-production-stage-title {
  display: block;
}

.category-related {
  padding-block: clamp(4.6rem, 7.8vw, 8.25rem);
  background: var(--next-cream);
}

.category-related-heading {
  margin-bottom: clamp(2.15rem, 4.35vw, 3.9rem);
}

.category-related h2 {
  font-size: clamp(2.35rem, 4.35vw, 4.7rem);
}

.category-related-list {
  border-top: 1px solid var(--next-rule);
}

.category-related-list a {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--next-rule);
  color: var(--next-ink);
  cursor: pointer;
  font-family: var(--next-display);
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  line-height: 1.15;
  text-decoration: none;
}

.category-related-list a > span:last-child {
  font-family: var(--next-sans);
  font-size: 1rem;
  transition: transform var(--duration-medium) var(--ease-standard);
}

.category-related-list a:hover > span:last-child {
  transform: translate(0.25rem, -0.25rem);
}

.category-page .next-final-cta {
  padding-block: clamp(5rem, 9vw, 9rem);
  background: var(--next-charcoal);
  color: var(--next-ivory);
  text-align: center;
}

.category-page .next-final-cta .next-eyebrow {
  color: var(--next-stone);
}

.category-page .next-final-cta h2 {
  max-width: 18ch;
  margin: 1.25rem auto;
  font-size: clamp(2.8rem, 6vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.category-page .next-final-cta p:not(.next-eyebrow) {
  margin-bottom: 2rem;
  color: var(--next-greige);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

@media (max-width: 64rem) {
  .category-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media"
      "disclosure";
    min-height: 0;
  }

  .category-hero-copy,
  .category-disclosure {
    padding-inline: var(--next-gutter);
  }

  .category-hero-copy {
    padding-block: clamp(3.5rem, 8vw, 6rem);
  }

  .category-hero-media {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .category-disclosure {
    max-width: none;
    padding-block: 1.25rem 2rem;
  }

  .category-production-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.5rem;
  }
}

@media (max-width: 56rem) {
  .category-intro-grid,
  .category-development-grid,
  .category-trade-grid,
  .category-editorial-grid,
  .category-section-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category-editorial-media {
    order: 2;
  }

  .category-editorial-copy {
    order: 1;
  }

  .category-gallery-grid,
  .category-production-grid {
    grid-template-columns: 1fr;
  }

  .category-sofas .category-gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-project-media {
    aspect-ratio: auto;
  }

  .category-project-media picture,
  .category-project-media img {
    height: auto;
  }

  .category-production-grid {
    gap: 2.5rem;
  }

  .category-production-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .category-breadcrumbs {
    padding-block: 1rem;
  }

  .category-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .category-hero-media {
    aspect-ratio: 4 / 5;
  }

  .category-hero-media img {
    object-position: 70% center;
  }

  .category-hero-actions,
  .category-hero-actions .button {
    width: 100%;
  }

  .category-type-list,
  .category-trade-list,
  .category-production-stages {
    grid-template-columns: 1fr;
  }

  .category-type-list li:nth-child(odd),
  .category-trade-list li:nth-child(odd) {
    padding-right: 0;
  }

  .category-section {
    padding-block: clamp(4.5rem, 19vw, 6.25rem);
  }

  .category-production-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }

  .category-production-stages li {
    padding: 0.35rem 0;
  }

  .category-production-stages li:last-child {
    grid-column: 1 / -1;
  }

  .category-production-stage-number {
    margin-bottom: 0.35rem;
  }

  .category-related {
    padding-block: clamp(4rem, 16vw, 5.5rem);
  }

  .category-related-list a {
    min-height: 3.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-related-list a > span:last-child {
    transition: none;
  }
}
