.page-hero-stm {
  background: #f8f4e9 url('assets/stm-production-brand-v9.png') left center / 3000px auto no-repeat;
}

.page-hero-stm::before {
  background: linear-gradient(90deg, rgba(248,244,233,.76) 0%, rgba(248,244,233,.66) 26%, rgba(248,244,233,.4) 40%, transparent 56%);
}

.page-hero-stm .page-hero-image {
  inset: 0 0 0 auto;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}

.page-hero-stm .page-hero-copy {
  width: min(670px, 49%);
}

.page-hero-stm h1 {
  max-width: 11ch;
}

.stm-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(30px, 5vw, 86px);
  background: #fffdf8;
}

.stm-overview h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.9rem, 4.2vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.stm-overview h2 span {
  color: #c8622e;
}

.stm-overview-copy {
  align-self: end;
  max-width: 560px;
}

.stm-overview-copy p:first-child {
  margin: 0 0 18px;
  font-size: clamp(1.18rem, 1.55vw, 1.42rem);
  line-height: 1.45;
}

.stm-overview-copy p:nth-child(2) {
  margin: 0 0 23px;
}

.stm-sales {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 130px);
  background: #f4efe2;
}

.stm-sales h2 {
  max-width: 12ch;
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.stm-sales h2 span {
  color: #c8622e;
}

.stm-sales-intro > p:last-child {
  max-width: 37ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
}

.stm-sales-list {
  display: grid;
  gap: 12px;
}

.stm-sales-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 22px 30px;
  border: 1px solid rgba(0, 84, 97, .1);
  border-radius: 25px;
  background: linear-gradient(125deg, #fffdf7, #f8ecdd);
  box-shadow: 0 12px 24px rgba(62, 72, 51, .055), inset 0 1px rgba(255,255,255,.8);
  color: var(--teal);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.stm-sales-card:nth-child(2) { background: linear-gradient(125deg, #f7faf2, #e8f0e4); }
.stm-sales-card:nth-child(3) { background: linear-gradient(125deg, #fffaf1, #f4ead8); }
.stm-sales-card:hover, .stm-sales-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 84, 97, .33);
  box-shadow: 0 18px 28px rgba(62, 72, 51, .11), inset 0 1px rgba(255,255,255,.8);
}

.stm-sales-card strong {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.stm-sales-card span { max-width: 45ch; color: #536e70; font-size: 1.04rem; line-height: 1.38; }

.stm-routes {
  background: #fbf3e6;
  color: #075661;
}

.stm-routes-heading {
  display: block;
}

.stm-routes h2 {
  max-width: 18ch;
  margin: 0;
  color: #075661;
  font-size: clamp(2.8rem, 4vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.stm-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(34px, 4vw, 60px);
}

.stm-scenario {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(176, 111, 68, .2);
  border-radius: 32px;
  background: linear-gradient(145deg, #fff3e5, #f2d8bb);
  box-shadow: 0 15px 32px rgba(108, 74, 43, .09), inset 0 1px rgba(255,255,255,.8);
}

.stm-scenario:nth-child(2) {
  border-color: rgba(67, 114, 100, .18);
  background: linear-gradient(145deg, #edf3e8, #d8e7dc);
}

.stm-scenario h3 {
  margin: 0;
}

.stm-scenario-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-height: 178px;
  padding: clamp(26px, 2.7vw, 42px);
  border: 0;
  background: transparent;
  color: #075661;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stm-scenario-toggle:focus-visible {
  outline: 3px solid #bd571f;
  outline-offset: -5px;
  border-radius: 30px;
}

.stm-scenario-label {
  display: block;
  margin: 0;
}

.stm-scenario-label strong {
  display: block;
  font-size: clamp(1.6rem, 2.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.stm-scenario-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: #075661;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
}

.stm-scenario-icon {
  display: inline-block;
  color: #bd571f;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}

.stm-scenario-toggle:hover .stm-scenario-action {
  color: #bd571f;
}

.stm-scenario-toggle[aria-expanded="true"] .stm-scenario-icon {
  transform: rotate(45deg);
}

.stm-scenario-panel {
  margin: 0 16px 16px;
  padding: clamp(18px, 2vw, 30px);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  color: #075661;
}

.stm-scenario-panel[hidden] {
  display: none;
}

.stm-timeline {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stm-timeline li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(0, 84, 97, .19);
}

.stm-timeline li:first-child {
  padding-top: 0;
  border-top: 0;
}

.stm-timeline li > span {
  padding-top: 3px;
  color: #c8622e;
  font-weight: 900;
}

.stm-timeline h4 {
  margin: 0 0 5px;
  color: #075661;
  font-size: clamp(1.23rem, 1.5vw, 1.57rem);
}

.stm-timeline p {
  max-width: 38ch;
  margin: 0;
}

@media (max-width: 800px) {
  .stm-overview,
  .stm-sales,
  .stm-routes-heading {
    grid-template-columns: 1fr;
  }

  .stm-overview,
  .stm-sales,
  .stm-routes-heading {
    gap: 26px;
  }

  .stm-overview-copy {
    max-width: 650px;
  }

  .stm-scenarios {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-hero-stm {
    min-height: 770px;
  }

  .page-hero-stm::before {
    background: linear-gradient(180deg, rgba(248,244,233,.86) 0%, rgba(248,244,233,.79) 42%, rgba(248,244,233,.43) 55%, transparent 70%);
  }

  .page-hero-stm .page-hero-copy {
    width: 100%;
    min-height: 405px;
    padding: 100px 28px 28px;
  }

  .page-hero-stm .page-hero-image {
    inset: auto 0 0;
    width: 100%;
    height: 355px;
    max-height: none;
    object-fit: cover;
    object-position: 67% center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .stm-overview h2,
  .stm-sales h2,
  .stm-routes h2 {
    font-size: clamp(2.6rem, 10vw, 3.7rem);
  }

  .stm-sales-card { min-height: 106px; padding: 18px 22px; }

  .stm-scenario-toggle {
    min-height: 150px;
    padding: 26px;
  }

  .stm-scenario-label strong {
    font-size: 1.4rem;
  }

  .stm-scenario-action {
    margin-top: 16px;
  }

  .stm-scenario-panel {
    margin: 0 10px 10px;
    padding: 16px;
    border-radius: 20px;
  }

  .stm-timeline {
    grid-template-columns: 1fr;
  }

  .stm-timeline li {
    min-height: 0;
    padding: 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stm-scenario-panel {
    animation: none;
  }

  .stm-scenario-icon,
  .stm-scenario-action {
    transition: none;
  }
}
