/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 * Three Fronts: problem section, matched to the current TEAM 5 site.
 */
.problem-fronts {
  --front-bg: #000;
  --front-text: #f4f0e8;
  --front-muted: #bdb7ad;
  --front-accent: #e9a574;
  --front-shade: rgb(0 0 0 / .76);
  --front-shade-soft: rgb(0 0 0 / .2);
  --front-ease: cubic-bezier(.22, 1, .36, 1);
  padding: clamp(72px, 8vw, 118px) 0 clamp(82px, 9vw, 130px);
  background: var(--front-bg);
  color: var(--front-text);
  overflow: clip;
}
.problem-fronts, .problem-fronts * { box-sizing: border-box; }
.problem-fronts .wrap { width: min(90%, 1170px); }
.problem-fronts-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  align-items: end;
  gap: clamp(25px, 4vw, 65px);
  margin-bottom: clamp(30px, 4vw, 48px);
}
.problem-fronts .eyebrow { margin-bottom: 23px; }
.problem-fronts h2 {
  margin: 0;
  font-family: Nostela, Arial, sans-serif;
  font-size: clamp(38px, 4.3vw, 63px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.problem-fronts-intro > p {
  max-width: 39ch;
  margin: 0 0 4px;
  color: var(--front-muted);
  font-family: MPlus, Arial, sans-serif;
  font-size: clamp(14px, 1.23vw, 18px);
  line-height: 1.55;
}
.problem-fronts-scenes { display: grid; gap: 8px; }
.problem-front {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  overflow: clip;
  background: #171716;
}
.problem-front-media {
  position: absolute;
  inset: 0;
  overflow: clip;
  transform: scale(1);
}
.problem-front-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7);
}
.problem-front:first-child .problem-front-media img { object-position: center 67%; }
.problem-front--theft .problem-front-media img { object-position: center 65%; }
.problem-front:last-child .problem-front-media img { object-position: center 36%; }
.problem-front::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, var(--front-shade), var(--front-shade-soft) 70%),
              linear-gradient(0deg, var(--front-shade-soft), transparent 70%);
  pointer-events: none;
}
.problem-front-edge {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--front-accent);
  transform-origin: top;
}
.problem-front-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .18fr) minmax(0, 1fr) minmax(0, .35fr);
  align-items: center;
  gap: 28px;
  min-height: 250px;
  padding: 35px 45px;
}
.problem-front-index {
  align-self: start;
  color: var(--front-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.problem-front h3 {
  margin: 0;
  color: var(--front-text);
  font-family: Nostela, Arial, sans-serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 750;
  line-height: .95;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.problem-front-copy > p {
  max-width: 18ch;
  align-self: end;
  margin: 0;
  color: var(--front-text);
  font-family: MPlus, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
.problem-front--theft .problem-front-copy > p { justify-self: end; max-width: 14ch; }
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-fronts-intro,
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--front-ease), transform 700ms var(--front-ease);
}
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-fronts-intro.is-in,
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front.is-in {
  opacity: 1;
  transform: none;
}
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front:nth-child(2) { transition-delay: 70ms; }
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front:nth-child(3) { transition-delay: 140ms; }
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front .problem-front-media {
  transform: scale(1.035);
  transition: transform 900ms var(--front-ease);
}
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front.is-in .problem-front-media { transform: scale(1); }
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front .problem-front-edge {
  transform: scaleY(0);
  transition: transform 720ms var(--front-ease);
}
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front.is-in .problem-front-edge { transform: scaleY(1); }
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front h3 {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 600ms var(--front-ease), transform 600ms var(--front-ease);
}
html:not(.motion-reduced) .problem-fronts.is-motion-ready .problem-front.is-in h3 {
  opacity: 1;
  transform: none;
}
@media (max-width: 980px) {
  .problem-front-copy { grid-template-columns: minmax(0, .15fr) minmax(0, 1fr) minmax(0, .25fr); gap: 20px; padding-inline: 25px; }
  .problem-front h3 { font-size: 44px; }
}
@media (max-width: 767px) {
  .problem-fronts { padding: 65px 0 75px; }
  .problem-fronts .wrap { width: calc(100% - 40px); }
  .problem-fronts-intro { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 29px; }
  .problem-fronts .eyebrow { margin-bottom: 19px; }
  .problem-fronts h2 { font-size: clamp(33px, 8vw, 52px); }
  .problem-fronts-intro > p { font-size: 14px; }
  .problem-front, .problem-front-copy { min-height: 220px; }
  .problem-front-copy { grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 7px; padding: 24px; }
  .problem-front h3 { font-size: clamp(30px, 7.5vw, 40px); }
  .problem-front-copy > p { max-width: 100%; font-size: 13px; }
  .problem-front--theft .problem-front-copy > p { justify-self: start; max-width: 100%; }
  .problem-front:first-child .problem-front-media img { object-position: 68% center; transform: scale(1.3); }
  .problem-front--theft .problem-front-media img { object-position: 78% center; transform: scale(1.4); }
}
@media (max-width: 375px) {
  .problem-front h3 { font-size: 26px; }
  .problem-front-copy { padding: 20px; }
  .problem-front:first-child .problem-front-media img { object-position: 77% center; transform: scale(1.25); }
  .problem-front:first-child h3 { position: relative; top: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  .problem-fronts.is-motion-ready .problem-fronts-intro,
  .problem-fronts.is-motion-ready .problem-front,
  .problem-fronts.is-motion-ready .problem-front-media,
  .problem-fronts.is-motion-ready .problem-front-edge,
  .problem-fronts.is-motion-ready .problem-front h3 {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
