body[data-hub="problems"] {
  --problem-accent: #b0432c;
  --problem-ink: #2f353b;
  --problem-copy: #59636d;
  --problem-soft: #f1f3f2;
  --problem-warm: #f3eeeb;
  background: #fff;
}

body[data-hub="problems"] .bh-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(47, 53, 59, 0.06);
}

body[data-hub="problems"] .bh-hero {
  max-width: 1280px;
  gap: clamp(40px, 6vw, 84px);
  padding: clamp(52px, 7vw, 92px) 32px clamp(58px, 7vw, 86px);
}

body[data-hub="problems"] .bh-hero-copy > p,
body[data-hub="problems"] .problem-paths-intro > p,
body[data-hub="problems"] .problem-close > div:first-child > p {
  margin: 0 0 16px;
  color: var(--problem-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-hub="problems"] h1 {
  max-width: 640px;
  color: var(--problem-ink);
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

body[data-hub="problems"] .bh-hero-copy > span {
  max-width: 560px;
  margin-top: 28px;
  color: var(--problem-copy);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.48;
  text-wrap: pretty;
}

body[data-hub="problems"] .bh-actions {
  gap: 10px;
  margin-top: 34px;
}

body[data-hub="problems"] .bh-button,
body[data-hub="problems"] .bh-text-link {
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

body[data-hub="problems"] .bh-button {
  background: var(--problem-accent);
  color: #fff;
}

body[data-hub="problems"] .bh-text-link {
  background: var(--problem-soft);
  color: var(--problem-ink);
}

body[data-hub="problems"] .bh-button:hover,
body[data-hub="problems"] .bh-text-link:hover {
  border: 0;
  background: var(--problem-ink);
  color: #fff;
  transform: translateY(-2px);
}

body[data-hub="problems"] .bh-hero-image {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--problem-soft);
  box-shadow: 0 34px 78px rgba(47, 53, 59, 0.12);
}

body[data-hub="problems"] .bh-hero-image::after {
  content: none;
}

body[data-hub="problems"] .bh-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.34 / 1;
  object-fit: cover;
}

body[data-hub="problems"] .bh-hero-image figcaption {
  padding: 13px 15px 15px;
  background: #fff;
  color: #737b83;
  font-size: 12px;
  line-height: 1.35;
}

.problem-paths {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) 32px clamp(80px, 10vw, 136px);
}

.problem-paths-intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 0.9fr) minmax(280px, 0.76fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(38px, 6vw, 78px);
}

.problem-paths-intro > p {
  align-self: start;
}

.problem-paths-intro h2,
.problem-close h2 {
  margin: 0;
  color: var(--problem-ink);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 670;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.problem-paths-intro > span {
  max-width: 560px;
  color: var(--problem-copy);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

.problem-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 30px);
  align-items: start;
}

.problem-scene {
  min-width: 0;
  overflow: hidden;
  background: var(--problem-soft);
}

.problem-scene figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #e8ebea;
}

.problem-scene figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.32, .72, 0, 1);
}

.problem-scene:has(a:hover) figure img {
  transform: scale(1.018);
}

.problem-scene-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(30px, 4.5vw, 58px);
}

.problem-stage {
  margin: 0 0 18px;
  color: var(--problem-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.problem-scene h3 {
  max-width: 14ch;
  margin: 0;
  color: var(--problem-ink);
  font-size: clamp(31px, 3.8vw, 52px);
  font-weight: 670;
  letter-spacing: -0.047em;
  line-height: 0.99;
  text-wrap: balance;
}

.problem-scene-copy > p:not(.problem-stage) {
  max-width: 42ch;
  margin: 22px 0 30px;
  color: var(--problem-copy);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.problem-scene-copy > a {
  display: grid;
  width: min(100%, 390px);
  gap: 5px;
  margin-top: auto;
  padding: 18px 20px;
  background: #fff;
  color: var(--problem-ink);
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.problem-scene-copy > a span {
  font-size: 15px;
  font-weight: 720;
  line-height: 1.25;
}

.problem-scene-copy > a small {
  color: #727b82;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
  transition: color 220ms ease;
}

.problem-scene-copy > a:hover {
  background: var(--problem-accent);
  color: #fff;
  transform: translateY(-2px);
}

.problem-scene-copy > a:hover small {
  color: rgba(255, 255, 255, 0.78);
}

.problem-scene-copy > a:focus-visible {
  outline: 3px solid var(--problem-accent);
  outline-offset: 4px;
}

.problem-scene--ads {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
  background: var(--problem-warm);
}

.problem-scene--ads figure {
  min-height: 520px;
}

.problem-scene--website {
  grid-column: span 7;
}

.problem-scene--website figure {
  height: clamp(340px, 36vw, 510px);
}

.problem-scene--store {
  grid-column: span 5;
  margin-top: clamp(70px, 8vw, 116px);
  background: #ede9e6;
}

.problem-scene--store figure {
  height: clamp(290px, 31vw, 430px);
}

.problem-scene--search {
  grid-column: span 5;
  margin-top: clamp(18px, 3vw, 40px);
  background: #ecefef;
}

.problem-scene--search figure {
  height: clamp(290px, 31vw, 430px);
}

.problem-scene--follow-up {
  grid-column: span 7;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  margin-top: clamp(18px, 3vw, 40px);
  background: var(--problem-warm);
}

.problem-scene--follow-up figure {
  min-height: 560px;
}

.problem-scene--follow-up .problem-scene-copy {
  padding-right: clamp(24px, 3vw, 42px);
  padding-left: clamp(24px, 3vw, 42px);
}

.problem-scene--follow-up h3,
.problem-scene--store h3,
.problem-scene--search h3 {
  font-size: clamp(30px, 3.2vw, 43px);
}

.problem-close {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: end;
  width: min(calc(100% - 64px), 1216px);
  margin: 0 auto clamp(72px, 9vw, 118px);
  padding: clamp(46px, 6vw, 78px);
  background: #f0e8e5;
}

.problem-close > div:last-child > p {
  max-width: 500px;
  margin: 0;
  color: var(--problem-copy);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

body[data-hub="problems"] .problem-close .bh-actions {
  margin-top: 28px;
}

body[data-hub="problems"] .problem-directory {
  margin: 0;
  padding: clamp(42px, 6vw, 72px) 32px !important;
  border: 0;
  background: #f3f5f4;
}

body[data-hub="problems"] .problem-directory .sc-wrap {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1216px;
  margin: 0 auto;
}

body[data-hub="problems"] .problem-directory #all-pages-h2 {
  font-size: clamp(25px, 3vw, 36px) !important;
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

body[data-hub="problems"] .problem-directory summary {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

body[data-hub="problems"] .problem-directory summary::after {
  border: 0;
  border-radius: 0;
  background: #f0e8e5;
}

body[data-hub="problems"] .problem-directory .sc-index-all {
  gap: 6px;
  padding: 14px 0 0;
}

body[data-hub="problems"] .problem-directory .sc-index-all li {
  border: 0;
  background: #fff;
}

body[data-hub="problems"] .problem-directory .sc-index-all a {
  padding: 12px 13px;
  text-decoration: none;
}

body[data-hub="problems"] .sc-site-footer,
body[data-hub="problems"] .sc-footer-library {
  border: 0;
}

body[data-hub="problems"] .sc-footer-contact,
body[data-hub="problems"] .sc-footer-start {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  background: var(--problem-soft);
}

body[data-hub="problems"] .sc-footer-start {
  background: var(--problem-accent);
  color: #fff;
}

body[data-hub="problems"] .sc-footer-library {
  margin-top: 12px;
  padding: 0 18px;
  background: #f5f6f5;
}

@media (max-width: 980px) {
  .problem-paths-intro {
    grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  }

  .problem-paths-intro > span {
    grid-column: 2;
  }

  .problem-scene--ads,
  .problem-scene--follow-up {
    grid-template-columns: 1fr;
  }

  .problem-scene--ads figure,
  .problem-scene--follow-up figure {
    min-height: 0;
    height: clamp(360px, 64vw, 560px);
  }

  .problem-scene--follow-up .problem-scene-copy {
    padding: clamp(30px, 4.5vw, 58px);
  }

  .problem-close {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  body[data-hub="problems"] .bh-hero {
    gap: 34px;
    padding: 42px 18px 62px;
  }

  body[data-hub="problems"] h1 {
    font-size: clamp(42px, 13.5vw, 58px);
  }

  body[data-hub="problems"] .bh-hero-image img {
    aspect-ratio: 1.16 / 1;
  }

  .problem-paths {
    padding: 68px 18px 82px;
  }

  .problem-paths-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }

  .problem-paths-intro > span {
    grid-column: auto;
  }

  .problem-paths-intro h2,
  .problem-close h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .problem-mosaic {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .problem-scene--ads,
  .problem-scene--website,
  .problem-scene--store,
  .problem-scene--search,
  .problem-scene--follow-up {
    grid-column: auto;
    margin-top: 0;
  }

  .problem-scene--ads figure,
  .problem-scene--website figure,
  .problem-scene--store figure,
  .problem-scene--search figure,
  .problem-scene--follow-up figure {
    height: auto;
    aspect-ratio: 1.28 / 1;
  }

  .problem-scene--store .problem-scene-copy {
    order: 2;
  }

  .problem-scene--store figure {
    order: 1;
  }

  .problem-scene-copy,
  .problem-scene--follow-up .problem-scene-copy {
    padding: 28px 24px 32px;
  }

  .problem-scene h3,
  .problem-scene--follow-up h3,
  .problem-scene--store h3,
  .problem-scene--search h3 {
    max-width: 15ch;
    font-size: clamp(32px, 9.5vw, 42px);
  }

  .problem-scene-copy > p:not(.problem-stage) {
    margin: 18px 0 26px;
    font-size: 16px;
  }

  .problem-close {
    width: calc(100% - 36px);
    gap: 28px;
    margin-bottom: 72px;
    padding: 38px 24px 42px;
  }

  body[data-hub="problems"] .problem-directory {
    padding: 42px 18px !important;
  }

  body[data-hub="problems"] .problem-directory .sc-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .problem-scene figure img,
  .problem-scene-copy > a,
  body[data-hub="problems"] .bh-button,
  body[data-hub="problems"] .bh-text-link {
    transition: none;
  }
}
