/* Esvita components. Load tokens/tokens.css first.
   Class names carry the es- prefix so they can sit next to any other project's CSS. */

/* ---------- Base ---------- */
/* Base rules use :where() so they carry no specificity and any component class wins */
:where(.es), :where(.es) * { box-sizing: border-box; }
.es { margin: 0; background: var(--es-navy-900); color: var(--es-text); font-family: var(--es-font); font-size: var(--es-fs-body); line-height: var(--es-lh-body); letter-spacing: var(--es-ls-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.es) img { display: block; max-width: 100%; }
:where(.es) a { color: inherit; text-decoration: none; }
:where(.es) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.es) :where(h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd) { margin: 0; padding: 0; }

.es-wrap { width: 100%; max-width: var(--es-max); margin: 0 auto; padding: 0 var(--es-gutter); }
.es-wrap--wide { max-width: var(--es-max-wide); }

/* ---------- Section grounds: alternate them so the page never sits on one colour ---------- */
.es-section { padding: var(--es-pad) 0; }
.es-navy  { background: var(--es-navy-900); color: var(--es-text); }
.es-tint  { background: var(--es-navy-700); color: var(--es-text); }
.es-glow  { background: var(--es-grad-glow); color: var(--es-text); }
.es-brand { background: var(--es-grad-brand); color: #fff; }
.es-show  { background: var(--es-grad-show); color: #fff; position: relative; overflow: hidden; }
.es-paper { background: var(--es-paper); color: var(--es-ink); }
.es-white { background: var(--es-white); color: var(--es-ink); }

/* ---------- Type ---------- */
.es-display { font-size: var(--es-fs-display); line-height: 1; letter-spacing: var(--es-ls-display); font-weight: 700; }
:where(.es) h1, .es-h1 { font-size: var(--es-fs-h1); line-height: var(--es-lh-tight); letter-spacing: var(--es-ls-h1); font-weight: 700; }
:where(.es) h2, .es-h2 { font-size: var(--es-fs-h2); line-height: var(--es-lh-heading); letter-spacing: var(--es-ls-h2); font-weight: 700; }
:where(.es) h3, .es-h3 { font-size: var(--es-fs-h3); line-height: 1.3; letter-spacing: var(--es-ls-h3); font-weight: 600; }
.es-kicker { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.es-lead { font-size: var(--es-fs-lead); line-height: 1.45; letter-spacing: -0.02em; color: var(--es-text-2); }
.es-muted { color: var(--es-text-2); }
.es-small { font-size: var(--es-fs-small); color: var(--es-text-3); }
.es-quote { font-size: var(--es-fs-quote); line-height: 1.28; letter-spacing: -0.03em; font-weight: 600; }
.es-step-n { display: block; font-size: var(--es-fs-micro); font-weight: 600; letter-spacing: var(--es-ls-caps); color: var(--es-blue-mist); margin-bottom: 6px; }
.es-center { text-align: center; }
h2 + .es-lead { margin-top: 14px; max-width: 640px; }
.es-center h2 + .es-lead { margin-left: auto; margin-right: auto; }
/* On light grounds secondary copy turns slate, not grey-blue */
.es-paper .es-lead, .es-paper .es-muted, .es-white .es-lead, .es-white .es-muted { color: var(--es-paper-2); }
.es-paper .es-small, .es-white .es-small { color: var(--es-paper-2); }

/* ---------- Nav: glass over navy ---------- */
.es-nav { position: sticky; top: 0; z-index: 50; height: var(--es-nav-h); background: rgba(3, 10, 44, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--es-line); }
.es-nav .es-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.es-nav img { height: 32px; width: auto; }
.es-nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--es-text-2); }
.es-nav-links a:hover { color: var(--es-text); }
.es-nav-cta { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: var(--es-r-pill); background: var(--es-text); color: var(--es-navy-900); }
@media (max-width: 760px) { .es-nav-links { display: none; } }

/* ---------- Buttons and links ---------- */
.es-btn { display: inline-block; padding: 13px 24px; border-radius: var(--es-r-pill); font-size: 17px; font-weight: 500; text-align: center; background: var(--es-text); color: var(--es-navy-900); transition: background var(--es-dur-fast); }
.es-btn:hover { background: #fff; }
.es-btn--blue { background: var(--es-blue); color: #fff; }
.es-btn--blue:hover { background: #2f55c8; }
.es-btn--dark { background: var(--es-ink); color: #fff; }
.es-btn:disabled { background: #c9d0e3; color: #fff; cursor: default; }
.es-link { color: var(--es-blue-light); }
.es-link::after { content: " ›"; }
.es-link:hover { text-decoration: underline; }
.es-paper .es-link, .es-white .es-link { color: var(--es-blue-link); }
.es-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.es-center .es-actions { justify-content: center; }
@media (max-width: 760px) { .es-actions--stack { flex-direction: column; gap: 18px; } .es-actions--stack .es-btn, .es-actions--stack .es-wa { width: 100%; justify-content: center; } }

/* WhatsApp: outlined pill, the icon is the only green */
.es-wa { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--es-r-pill); border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 500; transition: background var(--es-dur-fast), border-color var(--es-dur-fast); }
.es-wa svg { color: var(--es-whatsapp); flex: none; }
.es-wa:hover { background: rgba(37, 211, 102, .12); border-color: var(--es-whatsapp); }

/* ---------- Chips (filters) and tags ---------- */
.es-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.es-chips button { padding: 10px 16px; border-radius: var(--es-r-pill); border: 1.5px solid var(--es-paper-line); font-size: 15px; background: #fff; color: var(--es-ink); }
.es-chips button.on { background: var(--es-ink); border-color: var(--es-ink); color: #fff; }
.es-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.es-tags li { padding: 8px 12px; border-radius: var(--es-r-pill); background: var(--es-chip); color: var(--es-chip-ink); font-size: 14px; }

/* ---------- Key numbers (hero meta) ---------- */
.es-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--es-line); border-bottom: 1px solid var(--es-line); }
.es-meta b { display: block; font-size: 24px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; }
.es-meta span { font-size: 13px; color: var(--es-text-3); }
@media (max-width: 860px) { .es-meta b { font-size: 19px; } }

/* ---------- Portrait stage: a transparent cutout on the Esvita glow ---------- */
.es-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: var(--es-r-2xl); background: var(--es-grad-stage); aspect-ratio: 4 / 5; }
.es-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(7, 17, 64, 0), rgba(7, 17, 64, .85)); pointer-events: none; }
.es-stage img { position: relative; width: auto; max-width: 92%; height: 94%; object-fit: contain; object-position: bottom; }

/* ---------- Cards ---------- */
.es-card { padding: 24px; border-radius: var(--es-r-lg); background: var(--es-paper); border: 1px solid var(--es-paper-line); color: var(--es-ink); transition: transform var(--es-dur-fast), box-shadow var(--es-dur-fast); }
.es-white .es-card { background: var(--es-paper); }
.es-paper .es-card { background: #fff; }
a.es-card:hover { transform: translateY(-4px); box-shadow: var(--es-shadow-card); }
.es-card b { display: block; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.es-card span { color: var(--es-paper-2); font-size: 15px; }

/* Photo card: the photo on top is never covered by copy; text sits below */
.es-photo-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--es-r-lg); background: var(--es-paper); border: 1px solid var(--es-paper-line); color: var(--es-ink); transition: transform var(--es-dur-fast), box-shadow var(--es-dur-fast); }
.es-photo-card .es-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--es-ink); }
.es-photo-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform var(--es-dur-photo) var(--es-ease-photo); }
.es-photo-card .es-copy { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.es-photo-card b { font-size: 19px; letter-spacing: -0.02em; }
.es-photo-card span { color: var(--es-paper-2); font-size: 15px; }
.es-photo-card:hover { transform: translateY(-4px); box-shadow: var(--es-shadow-lift); }
.es-photo-card:hover img { transform: scale(1.08); }

/* Caption card: a tall photo with the caption faded in at the bottom (for scenes, not results) */
.es-caption-card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--es-r-xl); overflow: hidden; background: var(--es-navy-600); box-shadow: var(--es-shadow-photo); }
.es-caption-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--es-ease-out); }
.es-caption-card:hover img { transform: scale(1.05); }
.es-caption-card figcaption { position: absolute; inset: auto 0 0 0; padding: 80px 20px 20px; color: #fff; background: var(--es-grad-photo-fade); }
.es-caption-card h3 { color: #fff; margin-bottom: 4px; }
.es-caption-card p { color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.45; }

/* Video poster with a play button */
.es-video { position: relative; display: block; overflow: hidden; border-radius: var(--es-r-lg); background: var(--es-navy-700); aspect-ratio: 4 / 5; box-shadow: var(--es-shadow-lift); }
.es-video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity var(--es-dur-fast), transform .6s; }
.es-video:hover img { opacity: 1; transform: scale(1.02); }
.es-video .es-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--es-navy-900); display: grid; place-items: center; padding-left: 4px; }
.es-video .es-vcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-size: 14px; color: #fff; background: linear-gradient(transparent, rgba(2, 6, 32, .85)); display: flex; justify-content: space-between; }

/* ---------- Grids and swipe rows ---------- */
.es-grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 4), 1fr); }
@media (max-width: 960px) { .es-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .es-grid { grid-template-columns: 1fr; } }
/* On phones a row of cards becomes a swipeable strip with the next card peeking in */
@media (max-width: 760px) {
  .es-swipe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--es-gutter) * -1); padding: 0 var(--es-gutter) 8px; scroll-padding-inline: var(--es-gutter); scrollbar-width: none; }
  .es-swipe::-webkit-scrollbar { display: none; }
  .es-swipe > * { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- Count-up: one number counts on the left, then lands in the list on the right ---------- */
.es-countup { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.es-countup .es-cu-stage { display: grid; min-height: 240px; align-items: center; }
.es-countup .es-cu-live, .es-countup .es-cu-final { grid-area: 1 / 1; }
.es-cu-live { opacity: 0; transform: translateY(18px); transition: opacity .35s, transform .45s var(--es-ease-out); }
.es-cu-live.in { opacity: 1; transform: none; }
.es-cu-live.out { opacity: 0; transform: translateX(48px) scale(.92); }
.es-cu-live b { display: block; font-size: var(--es-fs-count); font-weight: 700; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(159, 184, 255, .45); }
.es-cu-live span { display: block; margin-top: 12px; font-size: 19px; color: rgba(255, 255, 255, .85); }
.es-cu-final { font-size: clamp(40px, 5.6vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; transition: opacity var(--es-dur-slow), transform var(--es-dur-slow) var(--es-ease-out); }
.es-countup.armed .es-cu-final { opacity: 0; transform: translateY(20px); }
.es-countup.armed.finished .es-cu-final { opacity: 1; transform: none; }
.es-cu-list { list-style: none; }
.es-cu-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.es-cu-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.es-cu-list b { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.es-cu-list span { color: rgba(255, 255, 255, .82); font-size: 17px; }
.es-countup.armed .es-cu-list li { opacity: 0; transform: translateX(-36px); }
.es-countup.armed .es-cu-list li.shown { opacity: 1; transform: none; transition: opacity .35s, transform var(--es-dur-base) var(--es-ease-pop); animation: es-land .7s ease-out; }
@keyframes es-land { 0% { text-shadow: 0 0 0 rgba(159, 184, 255, 0); } 30% { text-shadow: 0 0 28px rgba(159, 184, 255, .9); } 100% { text-shadow: 0 0 0 rgba(159, 184, 255, 0); } }
@media (max-width: 760px) {
  .es-countup { grid-template-columns: 1fr 1.25fr; gap: 16px; }
  .es-countup .es-cu-stage { min-height: 150px; }
  .es-cu-live b { font-size: 46px; }
  .es-cu-live span { font-size: 14px; }
  .es-cu-final { font-size: 30px; }
  .es-cu-list li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .es-cu-list b { font-size: 26px; }
  .es-cu-list span { font-size: 13px; }
}

/* ---------- Process: steps light up one by one while a light travels along the line ----------
   Markup: ol.es-process > li (steps) … + li.es-comet as the LAST item. Up to 5 steps are staggered. */
.es-process { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 24px; list-style: none; }
.es-process::before, .es-process::after { content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 2px; border-radius: 2px; }
.es-process::before { background: rgba(255, 255, 255, .12); }
.es-process::after { background: var(--es-grad-progress); box-shadow: 0 0 18px rgba(77, 125, 255, .8); transform-origin: left; transform: scaleX(0); transition: transform var(--es-dur-draw) var(--es-ease-draw); }
.es-process.go::after { transform: scaleX(1); }
.es-process li { position: relative; z-index: 1; text-align: center; }
.es-process .es-ic { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--es-dur-base), border-color var(--es-dur-base), color var(--es-dur-base), box-shadow var(--es-dur-base), transform var(--es-dur-base) var(--es-ease-out); }
.es-process .es-ic svg { width: 28px; height: 28px; }
.es-process li > div { opacity: .35; transform: translateY(8px); transition: opacity .6s, transform .6s; }
.es-process.go li .es-ic { background: linear-gradient(135deg, #5b8cff, #2c4ea8); border-color: transparent; color: #fff; transform: scale(1.06); box-shadow: 0 0 0 8px rgba(77, 125, 255, .14), 0 14px 44px rgba(77, 125, 255, .6); }
.es-process.go li:nth-last-child(2) .es-ic { background: linear-gradient(135deg, #8ee0b5, #4fb883); color: #03271a; box-shadow: 0 0 0 8px rgba(108, 202, 152, .15), 0 14px 44px rgba(108, 202, 152, .55); }
.es-process.go li > div { opacity: 1; transform: none; }
.es-process.go li:nth-child(2) .es-ic, .es-process.go li:nth-child(2) > div { transition-delay: .5s; }
.es-process.go li:nth-child(3) .es-ic, .es-process.go li:nth-child(3) > div { transition-delay: 1s; }
.es-process.go li:nth-child(4) .es-ic, .es-process.go li:nth-child(4) > div { transition-delay: 1.5s; }
.es-process.go li:nth-child(5) .es-ic, .es-process.go li:nth-child(5) > div { transition-delay: 2s; }
.es-process h3 { font-size: 18px; margin-bottom: 6px; color: #fff; }
.es-process p { color: rgba(255, 255, 255, .7); font-size: 15px; }
.es-process .es-comet { position: absolute; z-index: 2; top: 27px; left: 10%; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 6px rgba(140, 180, 255, .9), 0 0 40px 12px rgba(77, 125, 255, .5); opacity: 0; pointer-events: none; }
.es-process.go .es-comet { animation: es-comet var(--es-dur-draw) var(--es-ease-draw) forwards; }
@keyframes es-comet { 0% { left: 10%; opacity: 1; } 92% { opacity: 1; } 100% { left: 90%; opacity: 0; } }
@keyframes es-comet-v { 0% { top: 32px; opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 32px); opacity: 0; } }
@media (max-width: 860px) {
  .es-process { grid-template-columns: 1fr; gap: 28px; }
  .es-process::before, .es-process::after { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; }
  .es-process::after { transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, #4d7dff, #9fb8ff, #6cca98); }
  .es-process.go::after { transform: scaleY(1); }
  .es-process li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; text-align: left; align-items: start; }
  .es-process .es-ic { margin: 0; }
  .es-process li > div { padding-top: 4px; }
  .es-process .es-comet { top: 32px; left: 27px; }
  .es-process.go .es-comet { animation-name: es-comet-v; }
}

/* ---------- Before / after slider ---------- */
.es-ba { --pos: 50%; position: relative; aspect-ratio: 540 / 385; overflow: hidden; border-radius: var(--es-r-xl); background: #000; }
.es-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-ba .es-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.es-ba .es-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .45); pointer-events: none; }
.es-ba .es-knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: var(--es-navy-900); display: grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); pointer-events: none; }
.es-ba .es-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: var(--es-r-pill); background: rgba(3, 10, 44, .72); font-size: 12px; color: #fff; pointer-events: none; }
.es-ba .es-tag.l { left: 12px; } .es-ba .es-tag.r { right: 12px; }
.es-ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- Q&A accordion ---------- */
.es-qa { border-top: 1px solid var(--es-line); }
.es-qa details { border-bottom: 1px solid var(--es-line); }
.es-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 4px; font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -0.02em; }
.es-qa summary::-webkit-details-marker { display: none; }
.es-qa summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--es-line); color: var(--es-text-2); font-weight: 400; transition: transform var(--es-dur-fast); }
.es-qa details[open] summary::after { transform: rotate(45deg); }
.es-qa details p { padding: 0 48px 24px 4px; color: var(--es-text-2); line-height: 1.6; }
.es-white .es-qa, .es-paper .es-qa, .es-white .es-qa details, .es-paper .es-qa details { border-color: var(--es-paper-line); }
.es-white .es-qa summary::after, .es-paper .es-qa summary::after { border-color: var(--es-paper-line); color: var(--es-paper-2); }
.es-white .es-qa details p, .es-paper .es-qa details p { color: var(--es-paper-2); }
@media (max-width: 760px) { .es-qa details p { padding-right: 4px; font-size: 16px; } }

/* ---------- Facts table (CV, specs) ---------- */
.es-facts { border-top: 1px solid var(--es-line); margin: 0; }
.es-facts div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--es-line); }
.es-facts dt { color: var(--es-text-3); }
.es-facts dd { margin: 0; }
.es-facts dd span { display: block; color: var(--es-text-2); font-size: 15px; }
.es-paper .es-facts, .es-paper .es-facts div, .es-white .es-facts, .es-white .es-facts div { border-color: var(--es-paper-line); }
.es-paper .es-facts dt, .es-white .es-facts dt, .es-paper .es-facts dd span, .es-white .es-facts dd span { color: var(--es-paper-2); }
@media (max-width: 640px) { .es-facts div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; } }

/* ---------- Partner logos: same box for every logo, grey until hovered ---------- */
.es-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.es-logos figure { height: 112px; display: grid; place-items: center; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--es-paper-line); }
.es-logos img { max-height: 44px; max-width: 80%; width: auto; filter: grayscale(1); opacity: .7; transition: filter var(--es-dur-fast), opacity var(--es-dur-fast); }
.es-logos figure:hover img { filter: none; opacity: 1; }
/* Phones: two per row; an odd last logo sits centred at the same size, never stretched */
@media (max-width: 860px) {
  .es-logos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .es-logos figure { height: 88px; }
  .es-logos figure:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
}

/* ---------- Mobile action bar: liquid glass that adapts to the section underneath ---------- */
.es-glassbar { display: none; }
@media (max-width: 760px) {
  .es-glassbar { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 7px 7px 7px 20px; gap: 12px; align-items: center; justify-content: space-between; border-radius: var(--es-r-pill); isolation: isolate; overflow: hidden;
    background: var(--es-glass-dark); border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: var(--es-glass-rim), 0 18px 40px -14px rgba(3, 8, 36, .55);
    backdrop-filter: var(--es-glass-blur); -webkit-backdrop-filter: var(--es-glass-blur);
    font-size: 15px; font-weight: 500; color: #fff;
    transform: translateY(160%); transition: transform var(--es-dur-base) var(--es-ease-out), background .4s, color .4s, border-color .4s, box-shadow .4s; }
  .es-glassbar::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: radial-gradient(120% 140% at 18% -30%, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 55%); }
  .es-glassbar.on { transform: none; }
  .es-glassbar .es-btn { padding: 11px 22px; font-size: 15px; box-shadow: 0 6px 16px -6px rgba(3, 8, 36, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
  .es-glassbar.light { color: var(--es-ink); background: var(--es-glass-light); border-color: rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(11, 18, 56, .06), 0 18px 40px -16px rgba(11, 18, 56, .35); }
  .es-glassbar.light .es-btn { background: var(--es-ink); color: #fff; box-shadow: 0 6px 16px -6px rgba(11, 18, 56, .5), inset 0 1px 0 rgba(255, 255, 255, .18); }
}

/* ---------- Sheet: a centred dialog on desktop, a bottom sheet on phones ---------- */
.es-overlay { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(3, 10, 44, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.es-overlay[hidden] { display: none; }
.es-sheet { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; color: var(--es-ink); border-radius: var(--es-r-2xl); padding: 28px; box-shadow: var(--es-shadow-sheet); }
.es-sheet .es-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: #eef1f8; font-size: 22px; line-height: 1; color: var(--es-ink); }
.es-option { text-align: left; padding: 14px 16px; border-radius: var(--es-r-md); border: 1.5px solid var(--es-paper-line); background: #fff; }
.es-option b { display: block; font-size: 17px; }
.es-option span { font-size: 13px; color: var(--es-paper-2); }
.es-option.on { border-color: var(--es-blue); background: var(--es-select); box-shadow: 0 0 0 1px var(--es-blue) inset; }
.es-field { display: grid; gap: 6px; margin-top: 14px; }
.es-field label { font-size: 14px; font-weight: 600; }
.es-field input, .es-field select { font: inherit; padding: 13px 14px; border-radius: var(--es-r-sm); border: 1.5px solid var(--es-paper-line); background: #fff; color: var(--es-ink); }
.es-field input:focus, .es-field select:focus { outline: none; border-color: var(--es-blue); box-shadow: var(--es-focus); }
.es-field .es-err { font-size: 13px; color: var(--es-error); }
.es-success { text-align: center; padding: 12px 0 4px; }
.es-success .es-tick { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--es-green); color: var(--es-green-ink); }
@media (max-width: 560px) {
  .es-overlay { padding: 0; place-items: end stretch; }
  .es-sheet { width: 100%; max-height: 92vh; border-radius: var(--es-r-2xl) var(--es-r-2xl) 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Footer ---------- */
.es-footer { border-top: 1px solid var(--es-line); padding: 40px 0 96px; font-size: 12px; color: var(--es-text-3); }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .es-process::after, .es-process .es-ic, .es-process li > div, .es-photo-card img, .es-caption-card img { transition: none !important; }
  .es-process .es-comet { display: none; }
}
