.buying-hero-wrap {
  padding-top: clamp(18px, 2.2vw, 32px);
}

.buying-hero {
  display: grid;
  grid-template-areas:
    "photo heading"
    "photo intro"
    "actions intro";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  align-items: start;
  background: linear-gradient(to right, var(--paper) 50%, var(--cream) 50%);
}

.buying-hero > * {
  min-width: 0;
}

.buying-hero-heading {
  grid-area: heading;
  position: relative;
  padding: clamp(35px, 3.8vw, 54px) clamp(28px, 3.5vw, 50px) 20px;
  text-align: center;
}

.buying-hero-heading .brand-buyback-cross {
  top: 44px;
  left: 0;
  transform: translateX(-50%);
}

.buying-hero-heading h1 {
  max-width: 23ch;
  margin: 0 auto;
  font-size: clamp(34px, 3.35vw, 49px);
  line-height: 1.08;
  letter-spacing: -.028em;
  text-transform: uppercase;
  text-wrap: balance;
}

.buying-hero-tagline {
  max-width: 30ch;
  margin: 12px auto 0;
  font: 400 clamp(20px, 1.9vw, 27px)/1.2 var(--serif);
  text-transform: uppercase;
  text-wrap: balance;
}

.buying-hero-tagline::after,
.buying-hero-heading:not(:has(.buying-hero-tagline)) h1::after {
  display: block;
  width: 1px;
  height: 42px;
  margin: 22px auto 0;
  background: var(--accent);
  content: "";
}

.buying-hero-eyebrow {
  max-width: 48ch;
  margin: 19px auto 0;
  color: var(--muted);
  font: 400 .875rem/1.5 var(--serif);
  letter-spacing: .06em;
}

.buying-hero-photo {
  grid-area: photo;
  align-self: start;
  margin: 0;
  padding: clamp(30px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}

.buying-hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--cream);
  rotate: 180deg;
}

.buying-hero-photo figcaption {
  padding: 8px 14px 12px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
  text-align: right;
}

.buying-hero-actions {
  grid-area: actions;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  padding: 27px clamp(28px, 4vw, 56px) 34px 0;
  text-align: center;
}

.buying-hero-actions > p:not(.buying-hero-phone) {
  max-width: 49ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.4;
}

.buying-hero-actions .hero-dropdown {
  width: min(100%, 350px);
}

.buying-hero-actions .hero-request-button {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  white-space: normal;
}

.buying-hero-actions .dropdown-panel {
  z-index: 2;
  text-align: left;
}

.buying-hero-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 5px 17px;
  max-width: 100%;
  margin-top: 9px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.buying-hero-phone a {
  color: var(--ink);
  font-size: clamp(21px, 1.9vw, 27px);
  white-space: nowrap;
}

.buying-hero-phone a:hover {
  color: var(--accent);
}

.buying-hero-intro {
  grid-area: intro;
  display: grid;
  align-content: start;
  gap: 21px;
  padding: 0 clamp(28px, 3.5vw, 50px) clamp(34px, 3.6vw, 52px);
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.buying-hero-intro p {
  margin: 0;
}

.buying-hero-wrap + .archive-content {
  margin-top: 12px;
}

.page-buyback-hub .home-brand-panel:is([id$="-panel-popular"], [id$="-panel-all"]) .home-brand-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(24px, 3.5vw, 52px);
  max-width: 1080px;
  margin: 25px auto 0;
}

.page-buyback-hub .home-brand-panel:is([id$="-panel-popular"], [id$="-panel-all"]) .home-brand-pills > li {
  min-width: 0;
}

.page-buyback-hub .home-brand-panel:is([id$="-panel-popular"], [id$="-panel-all"]) .home-brand-pill {
  justify-content: start;
  min-height: 39px;
  padding: 7px 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.page-buyback-hub .home-brand-panel:is([id$="-panel-popular"], [id$="-panel-all"]) a.home-brand-pill {
  text-decoration: underline;
  text-decoration-color: #c8c0b7;
  text-underline-offset: 4px;
}

.page-buyback-hub .home-brand-panel:is([id$="-panel-popular"], [id$="-panel-all"]) a.home-brand-pill:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.page-buyback-hub button[data-brand-filter="all"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 29px auto 0;
  padding: 10px 27px;
  border: 1px solid #d0c7be;
  border-radius: 28px;
  background: #efebe6;
  color: #514a43;
  font: 400 1rem/1.3 var(--sans);
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.page-buyback-hub button[data-brand-filter="all"]:is(:hover, [aria-expanded="true"]) {
  border-color: #b5a69a;
  background: #e7ded5;
  color: var(--ink);
}

.page-buyback-hub button[data-brand-filter="all"][hidden] {
  display: none;
}

.archive-section.buying-decision {
  padding-block: 25px 0;
  border-top: 0;
  background: var(--paper);
}

.buying-decision-layout.wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 1540px);
}

.buying-decision-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: clamp(25px, 4vw, 60px);
  background: #c7c6c3;
}

.buying-decision-photo img {
  width: 100%;
  height: 100%;
  max-height: 630px;
  object-fit: contain;
}

.buying-decision-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 30px;
  min-width: 0;
  padding: clamp(40px, 5vw, 74px) clamp(28px, 4.3vw, 65px);
  background: var(--cream);
  text-align: center;
}

.buying-section-heading h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(29px, 3vw, 43px);
  line-height: 1.17;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.buying-eyebrow {
  max-width: 48ch;
  margin: 0 auto 20px;
  color: var(--muted);
  font: 400 .875rem/1.5 var(--serif);
  letter-spacing: .11em;
}

.buying-decision-text {
  display: grid;
  gap: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.buying-decision-text .archive-copy {
  max-width: none;
  margin: 0;
  font-size: inherit;
}

.buying-decision-text p + p::before {
  display: block;
  width: 1px;
  height: 34px;
  margin: 24px auto;
  background: var(--accent);
  content: "";
}

.buying-decision-cta {
  border-radius: 28px;
}

.buying-decision:not(.buying-decision-has-photo) .buying-decision-layout {
  display: block;
  max-width: 1180px;
}

@media (max-width: 1000px) {
  .buying-hero-heading {
    padding-inline: 28px;
  }

  .buying-hero-intro {
    gap: 18px;
    padding-inline: 28px;
    font-size: 1rem;
  }

  .buying-hero-photo,
  .buying-hero-actions {
    padding-right: 30px;
  }
}

@media (max-width: 820px) {
  .buying-hero {
    grid-template-areas: "heading" "actions" "photo" "intro";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    margin-top: 14px;
    background: transparent;
  }

  .buying-hero-heading {
    padding: 43px 26px 0;
    background: var(--cream);
  }

  .buying-hero-heading .brand-buyback-cross {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .buying-hero-heading h1 {
    max-width: 23ch;
    font-size: clamp(31px, 6.6vw, 44px);
  }

  .buying-hero-tagline {
    font-size: clamp(20px, 4.3vw, 25px);
  }

  .buying-hero-tagline::after,
  .buying-hero-heading:not(:has(.buying-hero-tagline)) h1::after {
    height: 27px;
    margin-top: 18px;
  }

  .buying-hero-eyebrow {
    margin-top: 15px;
  }

  .buying-hero-actions {
    gap: 14px;
    padding: 22px 26px 30px;
    background: var(--cream);
  }

  .buying-hero-actions > p:not(.buying-hero-phone) {
    font-size: 1rem;
  }

  .buying-hero-phone {
    gap: 3px 12px;
    margin-top: 3px;
  }

  .buying-hero-photo {
    width: 100%;
    padding: 24px 0 0;
  }

  .buying-hero-photo img {
    max-height: 440px;
  }

  .buying-hero-intro {
    gap: 17px;
    padding: 25px 0 15px;
  }

  .page-buyback-hub .home-brand-panel:is([id$="-panel-popular"], [id$="-panel-all"]) .home-brand-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }

  .buying-decision-layout.wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .buying-decision-photo {
    padding: 30px var(--gutter);
  }

  .buying-decision-photo img {
    max-height: 470px;
    aspect-ratio: 1;
  }

  .buying-decision-copy {
    gap: 26px;
    padding: 38px var(--gutter) 42px;
  }
}

@media (max-width: 380px) {
  .buying-hero-heading {
    padding-inline: 18px;
  }

  .buying-hero-actions {
    padding-inline: 18px;
  }

  .buying-hero-actions .hero-request-button {
    padding-inline: 12px;
  }

  .page-buyback-hub .home-brand-panel:is([id$="-panel-popular"], [id$="-panel-all"]) .home-brand-pills {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-buyback-hub button[data-brand-filter="all"] {
    transition: none;
  }
}
