:root {
  --color-primary: #0b5ca8;
  --color-primary-dark: #083c75;
  --color-accent: #f47a20;
  --color-accent-dark: #c85b0f;
  --color-dark: #0a2442;
  --color-navy: #0a2442;
  --color-graphite: #526273;
  --color-text: #303030;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-alt: #f7f7f4;
  --container: 1440px;
  --container-gutter: clamp(16px, 2.5vw, 48px);
}

@media (min-width: 1600px) {
  :root {
    --container: 1520px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Inter", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.es-container {
  width: min(var(--container), calc(100% - 2 * var(--container-gutter)));
  margin-inline: auto;
}

.es-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(95, 95, 95, 0.12);
  backdrop-filter: blur(8px);
  transition:
    box-shadow 0.38s ease,
    border-color 0.38s ease,
    background-color 0.38s ease;
}

.es-header.es-header--elevated {
  box-shadow: 0 14px 44px rgba(13, 42, 67, 0.09);
  border-bottom-color: rgba(222, 228, 236, 0.55);
}

.es-topbar {
  background: linear-gradient(90deg, #061a31 0%, #0a2442 55%, #0b5ca8 100%);
  color: #e8f3ff;
  font-size: 13px;
}

.es-topbar a {
  color: #fff;
}

.es-topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.es-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

@media (min-width: 1440px) {
  .es-header__inner {
    min-height: 80px;
    gap: 32px;
  }

  .es-header__actions {
    gap: 16px;
  }

  .es-topbar__inner {
    gap: 20px;
    min-height: 42px;
  }

  .es-menu {
    gap: 28px;
  }

  .es-menu a {
    font-size: 17px;
  }
}

.es-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.es-header__account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.es-header__account--guest {
  gap: 8px;
}

.es-header__account-link {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  padding: 8px 4px;
  white-space: nowrap;
}

.es-header__account-link:hover {
  color: var(--color-primary);
}

.es-header__account-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.es-header__account-register {
  padding: 8px 16px;
  font-size: 13px;
}

.es-header__account--logged-in {
  gap: 12px;
  max-width: min(280px, 46vw);
}

.es-header__account-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 6px 4px 4px;
  margin: -4px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.es-header__account-profile:hover .es-header__account-name {
  color: var(--color-primary);
}

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

.es-header__account-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #dce4ec;
  background: #f4f9fd;
}

.es-header__account-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-header__account-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
}

.es-header__account-greeting {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.es-header__account-name {
  font-size: 14px;
  font-weight: 700;
  color: #0d2a43;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.es-header__account-divider {
  width: 1px;
  height: 28px;
  background: #dce4ec;
  flex-shrink: 0;
}

.es-header__account-link--quiet {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding: 8px 2px;
}

.es-header__account-link--quiet:hover {
  color: var(--color-primary);
}

.es-header__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 10px;
  margin: -4px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.2;
}

.es-header__cart:hover {
  color: var(--color-primary);
  background: rgba(10, 111, 174, 0.06);
}

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

.es-header__cart-text {
  white-space: nowrap;
}

.es-header__cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.es-header__cart--empty .es-header__cart-count {
  display: none;
}

/* Brand column: WooCommerce / plugins sometimes ship broad img { height:auto } rules on shop routes — keep logo boxed so the header row height stays stable */
.es-brand {
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(310px, 62vw);
}

.es-brand__link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

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

header.es-header .es-brand .es-brand__logo-img {
  display: block;
  height: 50px;
  max-height: 50px;
  width: auto;
  max-width: min(286px, 58vw);
  object-fit: contain;
}

header.es-header .es-brand .custom-logo-link,
header.es-header .es-brand .custom-logo {
  display: block;
  line-height: 0;
}

header.es-header .es-brand .custom-logo {
  max-height: 44px;
  max-width: min(220px, 52vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

.es-brand__text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-dark);
  line-height: 1.2;
}

.es-menu {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.es-menu a {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: #2d2d2d;
  transition: color 0.2s ease;
}

.es-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.es-menu a:hover::after,
.es-menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.es-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.es-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #0d2a43;
  margin-bottom: 5px;
}

.es-menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Primary nav: dropdown sub-menus (depth 2) */
.es-menu > li {
  position: relative;
}

.es-menu > li.menu-item-has-children > a {
  padding-right: 16px;
}

.es-menu > li.menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  pointer-events: none;
}

.es-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 210px;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(13, 42, 67, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 60;
}

.es-menu .sub-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 15px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.es-menu .sub-menu a::after {
  display: none;
}

.es-menu > li.menu-item-has-children:hover > .sub-menu,
.es-menu > li.menu-item-has-children:focus-within > .sub-menu,
.es-menu > li.menu-item-has-children.es-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.es-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.es-btn:hover {
  transform: translateY(-2px);
}

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

.es-btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d70c5 100%);
  color: #fff;
  border: 1px solid rgba(8, 60, 117, 0.18);
}

.es-btn--primary:hover {
  box-shadow: 0 12px 28px rgba(11, 92, 168, 0.28);
}

.es-btn--ghost {
  border: 1px solid #d1d5db;
  color: var(--color-dark);
}

.es-btn--ghost:hover {
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
}

.es-section {
  padding: 86px 0;
}

.es-section h2 {
  margin: 6px 0 14px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  color: var(--color-dark);
}

.es-lead {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--color-muted);
  max-width: 760px;
}

.es-section--alt {
  background: var(--color-alt);
}

.es-section--primary {
  background: var(--color-primary);
  color: #fff;
}

.es-section-head {
  margin-bottom: 32px;
}

.es-section-head--center {
  text-align: center;
}

.es-section-head--center .es-lead {
  margin-left: auto;
  margin-right: auto;
}

.es-grid {
  display: grid;
  gap: 20px;
}

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

.es-card,
.es-stat,
.es-quote {
  background: #fff;
  border: 1px solid rgba(95, 95, 95, 0.14);
  border-radius: 8px;
  padding: 20px;
}

.es-stat {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.es-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(36, 36, 36, 0.11);
  border-color: rgba(11, 92, 168, 0.28);
}

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

.es-card--link:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.13);
}

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

.es-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(13, 42, 67, 0.11);
  border-color: #d5e1ed;
}

.es-feature-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.es-stat strong {
  display: block;
  font-size: 28px;
  color: var(--color-primary);
}

.es-stat span {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
}

.es-stat p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.es-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.es-steps li {
  background: #fff;
  border: 1px solid #dde6ef;
  border-radius: 12px;
  padding: 18px 20px;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.es-steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 42, 67, 0.09);
  border-color: #cddcea;
}

.es-steps h3 {
  margin: 0 0 8px;
  color: #0d2a43;
  font-size: 18px;
}

.es-steps p {
  margin: 0;
  color: #5b6574;
}

.es-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(11, 92, 168, 0.32), transparent 34%),
    linear-gradient(145deg, #051326 0%, #081f3a 56%, #03101f 100%);
  color: #dbe8f5;
  padding: 56px 0 28px;
}

.es-footer a {
  color: #dbe4ee;
}

.es-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.es-footer__title {
  margin: 0 0 12px;
  color: #f4f8fc;
}

.es-footer__brand-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 0 0 18px;
  filter:
    brightness(1.18)
    saturate(1.08)
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.es-footer__block--brand p {
  color: #c2cfde;
  margin-top: 0;
}

.es-footer__contact {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  color: #b6c3d3;
  font-size: 14px;
}

.es-footer__contact li + li {
  margin-top: 6px;
}

.es-footer__social {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #b6c3d3;
  font-size: 14px;
}

.es-footer__social a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(219, 228, 238, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.es-footer__social a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.es-footer__ai {
  margin: 14px 0 0;
  font-size: 14px;
  color: #b6c3d3;
}

.es-footer__ai a {
  color: #c2cfde;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.es-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.es-footer-menu li + li {
  margin-top: 8px;
}

.es-footer-menu a {
  color: #c2cfde;
}

.es-footer__form {
  display: grid;
  gap: 10px;
}

.es-footer__form input {
  width: 100%;
  border: 1px solid rgba(219, 228, 238, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef4fb;
}

.es-footer__form input::placeholder {
  color: #b6c3d3;
}

.es-footer__copyright {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(219, 228, 238, 0.12);
  font-size: 13px;
  color: #9fb0c4;
}

/* Scroll-driven reveals (home + inner pages; JS adds .es-motion-hide / .es-motion-visible) */
@media (prefers-reduced-motion: no-preference) {
  html.es-home-smooth {
    scroll-behavior: smooth;
  }

  .es-motion-hide {
    opacity: 0;
    transform: translate3d(0, 48px, 0);
    transition:
      opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1)
        calc(var(--es-motion-stagger, 0s) + 0.04s),
      transform 0.82s cubic-bezier(0.22, 1, 0.36, 1)
        calc(var(--es-motion-stagger, 0s) + 0.04s),
      filter 0.82s cubic-bezier(0.22, 1, 0.36, 1)
        calc(var(--es-motion-stagger, 0s) + 0.04s),
      clip-path 0.82s cubic-bezier(0.22, 1, 0.36, 1)
        calc(var(--es-motion-stagger, 0s) + 0.04s);
    will-change: opacity, transform, filter;
  }

  .es-motion-hide.es-motion-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: none;
    will-change: auto;
  }

  #home-hero .es-motion-hide {
    transition-duration: 0.92s, 0.92s, 0.92s, 0.92s;
  }
}

@media (max-width: 992px) {
  .es-grid--4,
  .es-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-header__inner {
    min-height: 68px;
    gap: 12px;
  }

  .es-menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .es-nav {
    display: none;
    width: 100%;
    order: 5;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    padding: 8px 14px;
  }

  body.es-menu-open .es-nav {
    display: block;
  }

  .es-nav .es-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .es-nav .es-menu li a {
    display: block;
    padding: 8px 0;
  }

  .es-nav .es-menu .sub-menu {
    position: static;
    min-width: 0;
    margin: 4px 0 8px 12px;
    padding: 0;
    border: none;
    border-left: 2px solid #e5eaf0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .es-nav .es-menu li.menu-item-has-children.es-submenu-open > .sub-menu {
    display: block;
  }

  .es-nav .es-menu .sub-menu a {
    padding: 6px 0 6px 12px;
    font-size: 14px;
  }

  .es-header__cta {
    display: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  .es-btn:hover,
  .es-card--link:hover,
  .es-stat:hover,
  .es-feature-card:hover,
  .es-steps li:hover {
    transform: none;
  }

  .es-header {
    transition: none;
  }

  .es-menu a::after {
    transition: none;
  }

  .es-hscroll-btn:hover:not(:disabled) {
    transform: none;
  }

  .es-hscroll--products .es-product-card:hover {
    transform: none;
  }

  .es-post-card:hover,
  .es-project-card:hover,
  .es-filter__item:hover,
  .es-card--link:hover,
  .es-feature-card:hover {
    transform: none;
  }

  .es-btn--primary.es-btn-fx.es-motion-visible {
    animation: none;
  }

  .es-page-content .es-grid > .es-card:not(.es-card--link):hover {
    transform: none;
  }

  .woocommerce ul.products li.product:hover,
  .es-wc-cat-card:hover {
    transform: none;
  }

  .es-wc-block:hover {
    box-shadow: none;
  }

  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover {
    transform: none;
    box-shadow: none;
  }

  .es-motion-hide {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .es-grid--2,
  .es-grid--3,
  .es-grid--4 {
    grid-template-columns: 1fr;
  }

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

  .es-topbar__inner {
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  .es-section {
    padding: 68px 0;
  }

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

}

/* Global quote modal triggers (header + contact, etc.) */
button[data-es-quote-modal-open] {
  font: inherit;
  cursor: pointer;
  border: none;
  appearance: none;
}

body.es-quote-modal-open {
  overflow: hidden;
}

.es-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.es-quote-modal[hidden] {
  display: none !important;
}

.es-quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.58);
  z-index: 0;
  cursor: pointer;
}

.es-quote-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 28px 80px rgba(13, 42, 67, 0.22);
}

.es-quote-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0 22px;
  border-bottom: 1px solid #e8eff5;
}

.es-quote-modal__title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--color-dark);
}

.es-quote-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -4px -4px 0 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #4b5563;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.es-quote-modal__close:hover {
  background: #f1f5f9;
  color: var(--color-dark);
}

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

.es-quote-modal__body {
  padding: 16px 22px 22px;
}

.es-quote-modal__intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

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

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

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

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

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

.es-quote-modal .es-form textarea {
  min-height: 120px;
  resize: vertical;
}

.es-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(11, 92, 168, 0.34), transparent 30%),
    linear-gradient(140deg, #061326 0%, #0a2442 48%, #020914 100%);
  color: #fff;
}

.es-splash[hidden] {
  display: none !important;
}

.es-splash__video,
.es-splash__video video,
.es-splash__motion {
  position: absolute;
  inset: 0;
}

.es-splash__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.es-splash__motion {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.es-splash__ring,
.es-splash__beam {
  position: absolute;
  display: block;
  pointer-events: none;
}

.es-splash__ring {
  width: min(520px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(86, 166, 232, 0.48);
  border-radius: 50%;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 44px rgba(86, 166, 232, 0.2);
}

.es-splash__ring--b {
  width: min(720px, 88vw);
  border-color: rgba(255, 255, 255, 0.16);
  animation-delay: -1s;
}

.es-splash__beam {
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 166, 232, 0.72), transparent);
  transform: rotate(-14deg);
}

.es-splash__beam--b {
  transform: rotate(23deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.es-splash__content {
  position: relative;
  z-index: 2;
  width: min(460px, 82vw);
  text-align: center;
}

.es-splash__content img {
  display: block;
  width: min(320px, 76vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.36));
}

.es-splash__content p {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.es-splash__progress {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.es-splash__progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--color-accent);
}

.es-splash__content button {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}

.es-splash.es-splash--active .es-splash__ring {
  animation: es-splash-spin 4.2s linear infinite;
}

.es-splash.es-splash--active .es-splash__progress span {
  animation: es-splash-progress 2.6s ease-out forwards;
}

.es-splash.es-splash--leaving {
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

@keyframes es-splash-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes es-splash-progress {
  to {
    transform: scaleX(1);
  }
}

.es-floating-lead {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  gap: 10px;
}

.es-floating-lead button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  background: rgba(36, 36, 36, 0.92);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.es-floating-lead button:first-child {
  background: var(--color-primary);
}

.es-floating-lead span {
  margin-right: 6px;
}

.es-snapshot-actions {
  margin: 0 0 12px;
}

.es-snapshot-actions .es-btn {
  width: 100%;
}

.es-snapshot-preview {
  margin: 0 0 14px;
  border: 1px solid rgba(11, 92, 168, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background: #f3f9ff;
}

.es-snapshot-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--color-dark);
  font-size: 13px;
}

.es-snapshot-preview__head button {
  border: none;
  background: transparent;
  color: var(--color-primary-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.es-snapshot-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-top: 1px solid rgba(11, 92, 168, 0.16);
}

.es-capture-toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom, 0px));
  z-index: 120;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.94);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

@media (max-width: 640px) {
  .es-floating-lead {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-floating-lead button {
    width: 100%;
    border-radius: 8px;
    padding: 10px 8px;
  }
}
