/* Section 03 only. Sequential content is the safe default; JS enables pinning. */
.hqess-solutions { background: var(--hqess-warm-white); color: var(--hqess-graphite); scroll-margin-top: 7rem; }
.hqess-solutions__intro { padding-block: clamp(4rem, 7vw, 7rem) 3rem; }
.hqess-solutions__eyebrow { color: var(--hqess-green); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; margin-bottom: 1.5rem; }
.hqess-solutions__intro h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.02; margin: 0 0 1.5rem; }
.hqess-solutions__intro h2 span { display: block; }
.hqess-solutions__intro h2 span:empty { display: none; }
.hqess-solutions__lead { max-width: 37rem; color: #58615b; font-size: 1.2rem; line-height: 1.5; margin: 0; }
.hqess-solutions__track { position: relative; }
.hqess-solutions__viewport { position: relative; }
.hqess-solutions__stage { position: relative; }
.solution-story {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  grid-template-areas: "heading image" "body image";
  gap: 1.25rem clamp(2rem, 4vw, 4rem);
  align-content: center;
  padding-block: 4rem;
  scroll-margin-top: 7rem;
}
.solution-story__heading { grid-area: heading; align-self: end; }
.solution-story__number { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.1em; color: #737b75; margin-bottom: 1.25rem; }
.solution-story__number > span:first-child { color: var(--hqess-green); }
.solution-story__heading h3 { font-size: clamp(3rem, 4.05vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.solution-story__heading h3 { white-space: pre-line; }
.solution-story__body { grid-area: body; align-self: start; }
.solution-story__value { font-size: clamp(1.25rem, 1.6vw, 1.55rem); line-height: 1.3; font-weight: 600; margin: 0 0 0.9rem; }
.solution-story__description { color: #59615c; font-size: 1.125rem; line-height: 1.45; margin: 0 0 1.5rem; }
.solution-story__facts { margin: 0 0 1rem; border-top: 1px solid var(--hqess-border); padding-top: 1rem; display: grid; gap: 0.85rem; }
.solution-story__facts > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); column-gap: 0.85rem; }
.solution-story__facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; color: #657068; padding-top: 0.2rem; }
.solution-story__facts dd { font-size: 1rem; line-height: 1.45; margin: 0; }
.solution-story__cta { display: inline-flex; align-items: center; gap: 0.85rem; min-height: 3rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.045em; text-decoration: none; color: var(--hqess-green); cursor: default; }
.solution-story__cta .button__icon { width: 1rem; height: 1rem; }
.solution-story__figure { grid-area: image; min-width: 0; margin: 0; align-self: center; }
.solution-story__frame { position: relative; aspect-ratio: 4 / 3; padding: 1px; background: #b8c5bc; clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%); }
.solution-story--alternate .solution-story__frame { clip-path: polygon(0 0, 100% 0, 100% 100%, 32px 100%, 0 calc(100% - 32px)); }
.solution-story__frame picture { display: block; height: 100%; clip-path: inherit; }
.solution-story__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.solution-story__figure figcaption { display: flex; align-items: baseline; gap: 1rem; margin-top: 0.85rem; font-size: 0.78rem; letter-spacing: 0.06em; line-height: 1.5; color: #647168; }
.solution-story__figure figcaption > span:first-child { font-weight: 600; color: var(--hqess-green); }
.hqess-solutions__progress { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 2rem; min-height: 5.5rem; background: var(--hqess-warm-white); }
.hqess-solutions__progress ol { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.hqess-solutions__progress a { display: flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; color: #7a827c; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-decoration: none; }
.hqess-solutions__progress a[aria-current="step"],
.hqess-solutions__progress a:hover { color: var(--hqess-green); }
.hqess-solutions__progress a:focus-visible { outline: 2px solid var(--hqess-green); outline-offset: 2px; }
.hqess-solutions__progress-line { flex: 1; height: 1px; background: var(--hqess-border); }
.hqess-solutions__progress-line > span { display: block; width: 100%; height: 100%; background: var(--hqess-green); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
.hqess-solutions__position { flex-shrink: 0; color: #647168; font-size: 0.85rem; letter-spacing: 0.06em; }

/* Preference changes must expose content even before the next JS frame. */
@media (prefers-reduced-motion: reduce) {
  .hqess-solutions .solution-story { visibility: visible !important; transform: none !important; }
  .hqess-solutions [data-story-copy],
  .hqess-solutions [data-story-image] { opacity: 1 !important; transform: none !important; }
}

/* Only capable desktop viewports are enhanced. No JS or reduced motion = blocks. */
@media (min-width: 1101px) and (min-height: 800px) and (prefers-reduced-motion: no-preference) {
  .hqess-solutions.is-pinned .hqess-solutions__track { height: calc(var(--story-count) * 100vh); }
  .hqess-solutions.is-pinned .hqess-solutions__viewport { position: sticky; top: 0; height: 100vh; overflow: clip; isolation: isolate; }
  .hqess-solutions.is-pinned .hqess-solutions__stage { height: 100vh; width: 100%; max-width: none; }
  .hqess-solutions.is-pinned .solution-story {
    position: absolute; inset: 0;
    padding: 7.5rem max(var(--hqess-container-gutter), calc((100% - var(--hqess-container-max)) / 2)) 5.5rem;
    background: var(--hqess-warm-white);
    transform: translate3d(0, var(--panel-y, 100%), 0);
    will-change: transform;
  }
  .hqess-solutions.is-pinned .solution-story:first-child { --panel-y: 0%; }
  .hqess-solutions.is-pinned .solution-story--alternate { background: #f2f4f0; }
  .hqess-solutions.is-pinned .hqess-solutions__progress { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 2rem; height: 5.5rem; }
  .hqess-solutions.is-pinned .hqess-solutions__progress::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--hqess-warm-white); z-index: -1; }
}

:root:lang(zh) .hqess-solutions__intro h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.2; }
:root:lang(zh) .hqess-solutions__lead { font-size: 1rem; line-height: 1.8; }
:root:lang(zh) .solution-story__heading h3 { font-size: clamp(2.15rem, 3.5vw, 3.2rem); line-height: 1.2; }
:root:lang(zh) .solution-story__value { font-size: 1.22rem; line-height: 1.55; }
:root:lang(zh) .solution-story__description { font-size: 1rem; line-height: 1.75; }
:root:lang(zh) .solution-story__facts dd { font-size: 0.9rem; line-height: 1.75; }
:root:lang(zh) .solution-story__facts dt { font-size: 0.75rem; letter-spacing: 0.04em; }
:root:lang(zh) .solution-story__cta { font-size: 0.9rem; }
:root:lang(zh) .solution-story__figure figcaption { font-size: 0.7rem; letter-spacing: 0; }

@media (max-width: 1100px) {
  .hqess-solutions__intro { padding-bottom: 1rem; }
  .solution-story { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "image" "body"; gap: 1.5rem; padding-block: 3rem; border-bottom: 1px solid var(--hqess-border); }
  .solution-story__heading h3 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); max-width: 44rem; }
  .solution-story__frame { max-height: none; }
  .solution-story__body { max-width: 44rem; }
  .solution-story__number { margin-bottom: 0.85rem; }
  .solution-story:last-child { border-bottom: 0; }
  :root:lang(zh) .solution-story__heading h3 { font-size: clamp(1.8rem, 4.8vw, 2.75rem); }
}
@media (max-width: 600px) {
  .hqess-solutions__intro { padding-top: 3.5rem; }
  .hqess-solutions__intro h2 { font-size: clamp(1.25rem, 6.8vw, 2.5rem); }
  .hqess-solutions__lead { font-size: 1.1rem; }
  .solution-story__value { font-size: 1.3rem; }
  .solution-story__description { font-size: 1.05rem; }
  .solution-story__facts > div { grid-template-columns: 5.25rem minmax(0, 1fr); }
  .solution-story__facts dt { font-size: 0.72rem; }
  .solution-story__figure figcaption { font-size: 0.68rem; }
  .hqess-solutions__progress { gap: 0.75rem; min-height: 4.5rem; }
  .hqess-solutions__progress ol { gap: 0.5rem; }
  :root:lang(zh) .hqess-solutions__intro h2 { font-size: 1.9rem; }
  :root:lang(zh) .solution-story__value { font-size: 1.1rem; }
}
