.es-hero {
  padding: 106px 0 82px;
  background: radial-gradient(circle at 85% 10%, #dff0ff 0%, #eef8ff 30%, #ffffff 68%);
}

/* Reference-style homepage banner carousel */
.es-hero--carousel {
  position: relative;
  padding: 0;
  background: #17233c;
  overflow: hidden;
}

.es-hero-carousel {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  background: #17233c;
}

.es-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.75s ease,
    visibility 0.75s ease;
}

.es-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.es-hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.es-hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 24, 0.96) 0%, rgba(8, 16, 32, 0.9) 38%, rgba(8, 16, 32, 0.52) 70%, rgba(8, 16, 32, 0.58) 100%),
    linear-gradient(0deg, rgba(6, 12, 24, 0.42), rgba(6, 12, 24, 0.14));
}

.es-hero-slide__content {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 72vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 118px) 0 clamp(84px, 10vw, 126px);
}

.es-hero-slide__copy {
  width: min(720px, 100%);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.es-hero-slide__copy .es-kicker {
  color: #ffd98f;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.es-hero-slide__copy h1 {
  max-width: none;
  margin: 12px 0 18px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.16;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 8px 30px rgba(0, 0, 0, 0.72);
}

#home-hero.es-hero--carousel .es-hero-slide__copy h1 {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.es-hero-slide__copy .es-subtitle {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(16px, 1.4vw, 20px);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.es-hero--carousel .es-hero-slide__copy,
.es-hero--carousel .es-hero-slide__copy h1,
.es-hero--carousel .es-hero-slide__copy .es-subtitle {
  color: #fff;
}

.es-hero--carousel .es-hero-slide__copy .es-kicker {
  color: #ffd98f;
}

.es-hero--carousel .es-btn--ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.es-hero--carousel .es-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.es-hero-carousel__controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: auto;
  max-width: calc(100% - 2 * var(--container-gutter));
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.es-hero-carousel__btn,
.es-hero-carousel__dot {
  border: 0;
  cursor: pointer;
}

.es-hero-carousel__btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.es-hero-carousel__btn:hover {
  background: rgba(185, 147, 91, 0.86);
  border-color: rgba(185, 147, 91, 0.9);
}

.es-hero-carousel__dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.es-hero-carousel__dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
}

.es-hero-carousel__dot.is-active {
  background: #f0c985;
}

/* Full-viewport hero (background image + overlay), mirrors reference “banner” sites */
.es-hero--fullscreen {
  position: relative;
  padding: 0;
  min-height: min(78vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #082032;
}

.es-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.es-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes es-hero-pan {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.075) translate3d(-1.1%, -0.55%, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .es-hero--fullscreen .es-hero__bg-img {
    animation: es-hero-pan 44s ease-in-out infinite alternate;
    will-change: transform;
  }
}

.es-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(6, 28, 48, 0.92) 0%,
    rgba(6, 28, 48, 0.55) 44%,
    rgba(6, 28, 48, 0.22) 72%,
    rgba(6, 28, 48, 0.35) 100%
  );
}

.es-hero__shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(78vh, 860px);
  width: 100%;
}

.es-hero--fullscreen .es-hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(72px, 11vw, 120px) 0 clamp(28px, 4vw, 40px);
}

.es-hero__copy {
  max-width: min(820px, 100%);
}

.es-hero__copy h1,
.es-hero__copy .es-subtitle {
  max-width: none;
}

@media (min-width: 1280px) {
  .es-hero__copy {
    max-width: min(900px, 56%);
  }
}

@media (min-width: 1600px) {
  .es-hero__copy {
    max-width: min(980px, 58%);
  }
}

/* Hero trust pills (above kicker); complements top bar without repeating the same phrases */
.es-hero__tags {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.es-hero__tags li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid rgba(13, 42, 67, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #082032;
  box-shadow: 0 6px 18px rgba(6, 28, 48, 0.08);
}

.es-hero--fullscreen .es-hero__tags li {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.es-hero--fullscreen .es-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.es-hero--fullscreen h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.es-hero--fullscreen .es-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.es-hero--fullscreen .es-btn--ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.es-hero--fullscreen .es-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Full-bleed hero: stats as bottom trust band (no floating card over image) */
.es-hero__stats-band {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 29, 52, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(18px, 2.5vw, 26px) 0;
}

.es-hero__stats--band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.es-hero__stats--band li {
  margin: 0;
  padding: clamp(12px, 2vw, 18px) clamp(12px, 2vw, 20px);
  list-style: none;
  text-align: center;
  border: none;
  border-radius: 0;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.es-hero__stats--band li:last-child {
  border-right: none;
}

.es-hero__stats--band strong {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.es-hero__stats--band span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  max-width: 11em;
  margin-left: auto;
  margin-right: auto;
}

.es-hero__layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}

.es-hero__layout > div:first-child {
  max-width: min(900px, 100%);
}

.es-hero__layout h1,
.es-hero__layout .es-subtitle {
  max-width: none;
}

.es-hero:not(.es-hero--carousel) h1 {
  max-width: 760px;
  margin: 8px 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  color: #082032;
}

.es-kicker {
  margin: 0;
  color: #b9935b;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
}

/* Reference-style section label accent (static front page; skip primary panels) */
body.home .es-section:not(.es-section--primary) .es-kicker,
body.front-page .es-section:not(.es-section--primary) .es-kicker {
  position: relative;
  padding-bottom: 12px;
}

body.home .es-section:not(.es-section--primary) .es-kicker::after,
body.front-page .es-section:not(.es-section--primary) .es-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(56px, 28vw);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(10, 111, 174, 0.25));
}

.es-hero:not(.es-hero--carousel) .es-subtitle,
.es-section .es-subtitle {
  max-width: 720px;
  color: #4b5563;
  margin-bottom: 28px;
}

.es-hero--carousel .es-hero-slide__copy h1 {
  color: #fff;
}

.es-hero--carousel .es-hero-slide__copy .es-subtitle {
  color: rgba(255, 255, 255, 0.96);
}

/* Homepage section headers + intros align with main container width */
body.home .es-section .es-container > h2,
body.front-page .es-section .es-container > h2,
body.home .es-section .es-container > .es-lead,
body.front-page .es-section .es-container > .es-lead {
  max-width: none;
  width: 100%;
}

body.home .es-section .es-container > .es-lead,
body.front-page .es-section .es-container > .es-lead {
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.es-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.es-hero__panel {
  background: #fff;
  border: 1px solid #d6e4f0;
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(13, 42, 67, 0.1);
  padding: 24px;
}

.es-hero__panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #17233c;
}

.es-hero__image {
  margin: -8px -8px 16px;
}

.es-hero__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.es-hero__stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.es-hero__stats li {
  border: 1px solid #e5edf4;
  border-radius: 10px;
  padding: 12px;
  background: #fbfdff;
}

.es-hero__stats strong {
  display: block;
  color: #b9935b;
  font-size: 20px;
  line-height: 1.1;
}

.es-hero__stats span {
  display: block;
  margin-top: 4px;
  color: #4b5563;
  font-size: 13px;
}

.es-faq details {
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 15px 17px;
  margin-bottom: 12px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.es-faq details:hover {
  border-color: #c8d9eb;
  box-shadow: 0 10px 26px rgba(13, 42, 67, 0.06);
}

.es-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.es-quote-box {
  background: linear-gradient(135deg, #f7f2eb 0%, #ffffff 46%, #f4f9fd 100%);
  border: 1px solid #eadcc9;
  border-radius: 16px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 22px 56px rgba(13, 42, 67, 0.08);
  align-items: stretch;
}

.es-quote-box__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 24px);
}

.es-quote-box__media {
  margin: 0;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(180px, 22vw, 240px);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(23, 35, 60, 0.08);
  background: #e8eef4;
  box-shadow: 0 10px 28px rgba(13, 42, 67, 0.07);
}

.es-quote-box__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
}

.es-quote-box__intro {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.es-quote-box__intro h2 {
  margin-top: 8px;
  text-wrap: balance;
}

.es-quote-box__form {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.es-quote-box__intro ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.es-quote-box__intro li + li {
  margin-top: 8px;
}

.es-quote-box__intro li {
  position: relative;
  padding-left: 28px;
  color: #3f4650;
}

.es-quote-box__intro li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(201, 162, 118, 0.16);
}

.es-quote-box__assurance {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 118, 0.42);
  background: rgba(255, 255, 255, 0.72);
}

.es-quote-box__assurance strong {
  display: block;
  margin-bottom: 6px;
  color: #0d2a43;
}

.es-quote-box__assurance p {
  margin: 0;
  color: #56616d;
  font-size: 14px;
  line-height: 1.6;
}

.qiyan-quote-visual {
  position: relative;
  height: clamp(190px, 17vw, 250px);
  margin: clamp(22px, 3vw, 30px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(23, 35, 60, 0.1);
  border-radius: 14px;
  background: #241a25;
  box-shadow: 0 18px 42px rgba(47, 37, 49, 0.14);
}

.qiyan-quote-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 19, 31, 0.42) 0%, rgba(24, 19, 31, 0.12) 48%, rgba(200, 32, 32, 0.24) 100%),
    linear-gradient(180deg, transparent 42%, rgba(24, 19, 31, 0.78) 100%);
  pointer-events: none;
}

.qiyan-quote-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.04) contrast(1.02);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.qiyan-quote-visual figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: grid;
  gap: 5px;
  color: #fff;
}

.qiyan-quote-visual span {
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8c7b9;
  font-size: 12px;
  font-weight: 800;
}

.qiyan-quote-visual strong {
  max-width: 560px;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.35;
  text-wrap: balance;
}

.es-form {
  display: grid;
  gap: 12px;
}

.es-form input,
.es-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.es-form textarea {
  min-height: 130px;
}

.es-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.es-alert--success {
  background: #eafaf0;
  border: 1px solid #b7e6c7;
  color: #15603a;
}

.es-alert--error {
  background: #fff1f1;
  border: 1px solid #f0b5b5;
  color: #9b1d1d;
}

.es-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.es-cert-thumb {
  overflow: hidden;
  border-radius: 12px;
  margin: 0 0 12px;
  border: 1px solid #e6edf5;
  background: #fff;
}

.es-cert-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .es-cert-card:hover .es-cert-thumb img {
    transform: scale(1.06);
  }
}

.es-hscroll-wrap {
  margin-top: 18px;
}

.es-hscroll-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.es-hscroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #cddcea;
  background: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #0d2a43;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(13, 42, 67, 0.05);
  transition:
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.es-hscroll-btn__icon {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-primary);
}

.es-hscroll-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(10, 111, 174, 0.16);
  transform: translateY(-2px);
}

.es-hscroll-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.es-hscroll-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  box-shadow: none;
}

.es-hscroll-btn:disabled .es-hscroll-btn__icon {
  color: #9ca3af;
}

.es-hscroll-wrap .es-hscroll {
  margin-top: 0;
}

.es-hscroll {
  margin-top: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );
}

.es-hscroll:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.es-hscroll > * {
  scroll-snap-align: start;
}

.es-hscroll::-webkit-scrollbar {
  height: 10px;
}

.es-hscroll::-webkit-scrollbar-thumb {
  background: rgba(10, 111, 174, 0.25);
  border-radius: 999px;
}

.es-hscroll::-webkit-scrollbar-track {
  background: rgba(13, 42, 67, 0.06);
  border-radius: 999px;
}

.es-hscroll--products {
  grid-auto-columns: minmax(272px, 0.88fr);
}

.es-hscroll--products .es-product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(13, 42, 67, 0.06);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.es-card-badges {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.es-card-badges li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e6d8c5;
  background: #fff8ef;
  color: #7b5734;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.es-hscroll--products .es-media-card__thumb img {
  height: 200px;
}

.es-hscroll--products .es-product-card p {
  flex-grow: 1;
  margin-bottom: 16px;
  color: #5b6574;
  font-size: 15px;
  line-height: 1.55;
}

@media (prefers-reduced-motion: no-preference) {
  .es-hscroll--products .es-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(13, 42, 67, 0.14);
    border-color: #cddcea;
  }
}

.es-hscroll--certs {
  grid-auto-columns: minmax(260px, 0.85fr);
}

.es-hscroll--certs .es-cert-card {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-hscroll--certs .es-cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(13, 42, 67, 0.12);
    border-color: #d0dce8;
  }
}

.es-hscroll--testimonials {
  grid-auto-columns: minmax(300px, 1fr);
}

.es-hscroll--testimonials .es-quote.es-testimonial {
  min-height: 168px;
  border-left: 4px solid var(--color-primary);
  padding-left: 22px;
  box-shadow: 0 10px 34px rgba(13, 42, 67, 0.06);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-hscroll--testimonials .es-quote.es-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 42, 67, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .es-hscroll--testimonials .es-quote.es-testimonial:hover {
    transform: none;
  }
}

/* Infinite marquee (products + testimonials) */
.es-marquee {
  margin-top: 18px;
}

.es-marquee__viewport {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 28px,
    #000 calc(100% - 28px),
    transparent 100%
  );
}

.es-marquee__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 16px;
  will-change: transform;
  animation: es-marquee-scroll var(--marquee-duration, 36s) linear infinite;
}

.es-marquee:hover .es-marquee__track {
  animation-play-state: paused;
}

.es-marquee__set {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-shrink: 0;
}

.es-marquee--products .es-marquee__set > * {
  flex: 0 0 288px;
  width: 288px;
  max-width: 288px;
}

.es-marquee--products .es-product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(13, 42, 67, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.es-marquee--products .es-media-card__thumb img {
  height: 200px;
}

.es-marquee--products .es-product-card p {
  flex-grow: 1;
  margin-bottom: 16px;
  color: #5b6574;
  font-size: 15px;
  line-height: 1.55;
}

.es-marquee--testimonials .es-marquee__set > * {
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
}

.es-marquee--testimonials .es-quote.es-testimonial {
  min-height: 168px;
  height: 100%;
  margin: 0;
  border-left: 4px solid var(--color-primary);
  padding: 20px 20px 20px 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(13, 42, 67, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-marquee--products .es-product-card:hover {
    position: relative;
    z-index: 2;
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 24px 52px rgba(13, 42, 67, 0.16);
    border-color: #cddcea;
  }

  .es-marquee--testimonials .es-quote.es-testimonial:hover {
    position: relative;
    z-index: 2;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 48px rgba(13, 42, 67, 0.12);
  }
}

.es-marquee--static .es-marquee__viewport {
  overflow-x: auto;
  mask-image: none;
  -webkit-overflow-scrolling: touch;
}

.es-marquee--static .es-marquee__track {
  animation: none;
}

.es-marquee--static .es-marquee__set--clone {
  display: none;
}

@keyframes es-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .es-marquee__track {
    animation: none;
  }

  .es-marquee--products .es-product-card:hover,
  .es-marquee--testimonials .es-quote.es-testimonial:hover {
    transform: none;
  }
}

.es-hscroll--trace {
  grid-auto-columns: minmax(240px, 0.9fr);
}

.es-hscroll--trace .es-trace-card {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-hscroll--trace .es-trace-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(13, 42, 67, 0.11);
    border-color: #d0dce8;
  }
}

.es-trace-card p {
  margin: 0;
  color: #4b5563;
  font-weight: 600;
}

.es-cert-meta {
  margin: 0 0 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 13px;
}

.es-cert-meta__number {
  padding: 3px 10px;
  border: 1px solid #d6e4f0;
  border-radius: 999px;
  background: #fbfdff;
}

.es-cert-title {
  margin: 12px 0 6px;
  color: #0d2a43;
}

.es-cert-text {
  color: #5b6574;
}

.es-testimonial__text {
  margin: 0;
}

.es-testimonial__cite {
  display: block;
  margin-top: 10px;
  color: #6b7280;
  font-style: normal;
  font-weight: 600;
}

.es-testimonial__name {
  display: block;
  color: #0d2a43;
}

.es-testimonial__meta {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: #6b7280;
  font-size: 13px;
}

.es-empty-note {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.es-media-card__thumb {
  margin: -20px -20px 14px;
  overflow: hidden;
}

.es-media-card__thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .es-card--link:hover .es-media-card__thumb img,
  .es-card--link:focus-visible .es-media-card__thumb img,
  .es-feature-card:hover .es-media-card__thumb img,
  .es-trace-card:hover .es-media-card__thumb img {
    transform: scale(1.07);
  }
}

.es-service-grid .es-card,
.es-hscroll--products .es-product-card {
  position: relative;
}

.es-card__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: #8d6a45;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  letter-spacing: 0.04em;
}

.es-trust-partners__checks {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.es-trust-partners__checks li {
  position: relative;
  padding-left: 24px;
  color: #3f4650;
  font-size: 14px;
  line-height: 1.5;
}

.es-trust-partners__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.es-card__link-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #17233c;
  font-size: 14px;
  font-weight: 800;
}

.es-card__link-label::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.22s ease;
}

.es-card--link:hover .es-card__link-label::after,
.es-card--link:focus-visible .es-card__link-label::after {
  width: 30px;
}

.es-service-grid .es-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border-color: #eadfce;
}

.es-service-grid .es-card h3,
.es-hscroll--products .es-product-card h3 {
  color: #17233c;
  margin-bottom: 8px;
}

.es-service-grid .es-card p {
  color: #5b6574;
  flex-grow: 1;
  margin-bottom: 16px;
}

.es-section-image {
  margin: 16px 0 20px;
}

.es-section-image img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dbe2ea;
  display: block;
}

.es-eco-image {
  margin-top: 18px;
}

.es-eco-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: block;
}

.es-newsletter {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  background: #f4f9fd;
  border: 1px solid #d9e8f4;
  border-radius: 14px;
  padding: 20px;
}

.es-geo-ai__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.es-geo-ai__facts {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
}

.es-geo-ai__facts li + li {
  margin-top: 8px;
}

.es-geo-ai__sources {
  margin: 0 0 14px;
  padding-left: 18px;
}

.es-geo-ai__meta {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.es-capacity-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  margin-bottom: clamp(24px, 3vw, 34px);
}

.es-capacity-layout__copy .es-lead {
  max-width: none;
}

.es-capacity-layout__media {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e3d3bd;
  background: #fff;
  box-shadow: 0 20px 48px rgba(13, 42, 67, 0.09);
}

.es-capacity-layout__media img {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
}

.es-capacity-stats .es-stat {
  border-color: #e8dccd;
  background: #fff;
}

.es-capacity-stats .es-stat small {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #efe5d8;
  color: #8a6b4d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.es-steps {
  counter-reset: es-steps;
  gap: 0;
}

.es-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 22px 0;
  background: transparent;
}

.es-steps li:first-child {
  border-top: 1px solid #dde6ef;
}

.es-steps li:last-child {
  border-bottom: 1px solid #dde6ef;
}

.es-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #17233c;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Home process: two columns — steps left, autoplay video right */
.es-section--process .es-process__head {
  margin-bottom: clamp(22px, 3vw, 32px);
}

.es-section--process .es-process__head .es-lead {
  margin-bottom: 0;
}

.es-process__body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.es-process__steps {
  min-width: 0;
}

.es-process__media {
  min-width: 0;
  position: sticky;
  top: clamp(88px, 12vh, 120px);
}

.es-process__video {
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(23, 35, 60, 0.1);
  background: #061522;
  box-shadow:
    0 2px 8px rgba(13, 42, 67, 0.06),
    0 18px 40px rgba(13, 42, 67, 0.1);
}

.es-process__video-shell {
  position: relative;
  min-width: 0;
  background: #061522;
}

.es-process__video-el {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #061522;
  vertical-align: middle;
}

.es-process__video-caption {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.45;
  background: #f7f4ef;
  border-top: 1px solid rgba(23, 35, 60, 0.08);
}

.es-process__video--empty {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 200px;
  padding: 20px 18px;
  background: linear-gradient(180deg, #f6fafd 0%, #e8f2f9 100%);
  border-style: dashed;
  border-color: #cbd5e1;
  box-shadow: none;
}

.es-process__video-placeholder {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

.es-process__video-link-wrap {
  margin: 14px 0 0;
  text-align: center;
}

@media (max-width: 900px) {
  .es-process__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .es-process__media {
    position: static;
  }

  .es-hero-carousel,
  .es-hero-slide__content {
    min-height: clamp(500px, 68vh, 680px);
  }

  .es-hero-slide__content {
    padding-top: 58px;
    padding-bottom: 88px;
  }

  .es-hero-slide__shade {
    background: linear-gradient(90deg, rgba(16, 26, 48, 0.9) 0%, rgba(16, 26, 48, 0.72) 56%, rgba(16, 26, 48, 0.42) 100%);
  }

  .es-hero-carousel__controls {
    bottom: 24px;
  }

  /* dvh tracks mobile browser chrome better than vh (fallback first) */
  .es-hero--fullscreen {
    min-height: min(72vh, 720px);
    min-height: min(72dvh, 720px);
  }

  .es-hero__shell {
    min-height: min(72vh, 720px);
    min-height: min(72dvh, 720px);
  }

  .es-hero--fullscreen .es-hero__inner {
    padding-top: 64px;
    padding-bottom: 24px;
  }

  .es-hero__tags {
    gap: 6px;
    margin-bottom: 12px;
  }

  .es-hero__tags li {
    padding: 6px 11px;
    font-size: 10px;
  }

  .es-hero__stats--band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-hero__stats--band li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .es-hero__stats--band li:nth-child(2n) {
    border-right: none;
  }

  .es-hero__stats--band li:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .es-hero__layout {
    grid-template-columns: 1fr;
  }

  .es-quote-box {
    grid-template-columns: 1fr;
  }

  .es-quote-box__media {
    height: clamp(160px, 45vw, 220px);
  }

  .qiyan-quote-visual {
    height: clamp(168px, 45vw, 220px);
  }

  .es-capacity-layout {
    grid-template-columns: 1fr;
  }

  .es-newsletter {
    grid-template-columns: 1fr;
  }

  .es-geo-ai__grid {
    grid-template-columns: 1fr;
  }

  .es-hero {
    padding: 80px 0 60px;
  }
}

@media (max-width: 480px) {
  .es-hero-carousel,
  .es-hero-slide__content {
    min-height: 560px;
  }

  .es-hero-slide__copy h1 {
    font-size: 34px;
  }

  .es-hero-carousel__btn {
    width: 38px;
    height: 38px;
  }

  .es-hero-carousel__dot {
    width: 24px;
  }

  .es-hero--fullscreen {
    min-height: min(68vh, 620px);
    min-height: min(68dvh, 620px);
  }

  .es-hero__shell {
    min-height: min(68vh, 620px);
    min-height: min(68dvh, 620px);
  }

  .es-hero__stats--band span {
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .es-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .es-hero__actions .es-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .es-hscroll {
    grid-auto-columns: minmax(252px, 0.92fr);
  }

  .es-steps li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .es-step-number {
    width: 42px;
    height: 42px;
  }
}

/* Brand story: extra spacing before media; video + stats stay centered */
.es-section--brand-story .es-lead {
  margin-bottom: clamp(28px, 4vw, 42px);
}

.es-brand-story__video {
  display: flex;
  flex-direction: column;
  margin: 0 auto clamp(36px, 5vw, 52px);
  padding: 0;
  max-width: min(960px, 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 42, 67, 0.08);
  background: #0c1824;
  box-shadow:
    0 2px 6px rgba(13, 42, 67, 0.06),
    0 22px 48px rgba(13, 42, 67, 0.1);
}

.es-brand-story__video-shell {
  position: relative;
  min-width: 0;
  background: #061522;
}

.es-brand-story__video-shell--paused .es-brand-story__video-el {
  pointer-events: none;
}

.es-brand-story__video-shell--playing .es-brand-story__video-el {
  pointer-events: auto;
}

.es-brand-story__video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(6, 21, 34, 0.38);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.es-brand-story__video-play:hover {
  background: rgba(6, 21, 34, 0.48);
}

.es-brand-story__video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.es-brand-story__video-shell--playing .es-brand-story__video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.es-brand-story__video-play-icon {
  display: flex;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.es-brand-story__video-el {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #061522;
  vertical-align: middle;
}

.es-brand-story__video-caption {
  flex-shrink: 0;
  margin: 0;
  padding: 15px 22px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #0d2a43;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-align: left;
  background: linear-gradient(180deg, #f6fafd 0%, #e8f2f9 100%);
  border-top: 1px solid rgba(13, 42, 67, 0.07);
}

/* Brand story stat cards — same grid/card pattern as resource hub */
.es-brand-story__stats {
  margin-top: clamp(24px, 3vw, 36px);
}

.es-brand-story__stat-card h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #17233c;
}

.es-brand-story__stat-card h3 strong {
  font-weight: inherit;
  color: var(--color-primary);
}

.es-brand-story__stat-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.es-brand-story__video-link-wrap {
  margin: 0 auto clamp(28px, 4vw, 40px);
  max-width: min(960px, 100%);
}
