/* ===== reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  gap: var(--ebmnt1-body-gap);
  font-family: var(--ebmnt1-font-main);
  font-size: var(--ebmnt1-font-size-body);
  font-weight: var(--ebmnt1-font-weight-regular);
  line-height: var(--ebmnt1-line-height-text);
  color: var(--ebmnt1-body-text-color);
  background-color: var(--ebmnt1-page-bg-color);
  min-height: 100vh;
}

/* spacer item after footer = bottom gutter like the original */
body::after {
  content: '';
}

section[id] {
  scroll-margin-top: calc(var(--ebmnt1-header-height) + 1em);
}

::selection {
  background-color: var(--ebmnt1-selection-bg-color);
  color: var(--ebmnt1-selection-text-color);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 0.125em solid var(--ebmnt1-focus-ring-color);
  outline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--ebmnt1-font-weight-bold);
  line-height: var(--ebmnt1-line-height-title);
}

/* ===== page structure ===== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebmnt1-main-gap);
  width: 100%;
}

/* trailing item gives the same 5em before the footer */
main::after {
  content: '';
}

/* ===== section skeleton (master + inner) ===== */
.ebmnt1-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: clip;
}

.ebmnt1-section__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
  width: calc(100% - 2em);
  max-width: var(--ebmnt1-container-max-width);
  margin-inline: auto;
  text-align: center;
  z-index: 2;
}

/* boxed (coloured) sections: breathing room made of flex items, not padding */
.ebmnt1-section--boxed {
  overflow: hidden;
}

.ebmnt1-section--boxed::before,
.ebmnt1-section--boxed::after {
  content: '';
  flex: 0 0 var(--ebmnt1-boxed-block-space);
}

.ebmnt1-section--dark {
  background-color: var(--ebmnt1-dark-section-bg-color);
  background-image: var(--ebmnt1-dark-section-bg-image);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

/* ===== section title ===== */
.ebmnt1-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  max-width: 48rem;
}

.ebmnt1-section-title--start {
  align-items: flex-start;
  text-align: start;
}

.ebmnt1-section-title__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--ebmnt1-font-size-badge);
  font-weight: var(--ebmnt1-font-weight-semibold);
  line-height: 1.4;
  color: var(--ebmnt1-section-badge-text-color);
  background-color: var(--ebmnt1-section-badge-bg-color);
  border-radius: var(--ebmnt1-radius-pill);
  padding: 0.5em 1em;
}

.ebmnt1-section-title__badge::before {
  content: '';
  width: 0.5em;
  height: 0.5em;
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-section-badge-dot-color);
}

.ebmnt1-section-title__heading {
  font-size: var(--ebmnt1-font-size-section-title);
  color: var(--ebmnt1-section-title-text-color);
}

.ebmnt1-section-title__lead {
  font-size: var(--ebmnt1-font-size-body);
  color: var(--ebmnt1-section-lead-text-color);
}

.ebmnt1-section-title--on-dark .ebmnt1-section-title__badge {
  color: var(--ebmnt1-section-badge-on-dark-text-color);
  background-color: var(--ebmnt1-section-badge-on-dark-bg-color);
}

.ebmnt1-section-title--on-dark .ebmnt1-section-title__heading {
  color: var(--ebmnt1-dark-section-title-color);
}

.ebmnt1-section-title--on-dark .ebmnt1-section-title__lead {
  color: var(--ebmnt1-dark-section-text-color);
}

/* counters keep "25+" / "95%" order like the original (LTR numerals) */
[data-ebmnt1-counter] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ===== buttons ===== */
.ebmnt1-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  font-size: var(--ebmnt1-font-size-button);
  font-weight: var(--ebmnt1-font-weight-bold);
  line-height: 1.3;
  color: var(--ebmnt1-button-primary-text-color);
  background-color: var(--ebmnt1-button-primary-bg-color);
  border-radius: var(--ebmnt1-radius-button);
  padding: 0.95em 1.5em;
  overflow: hidden;
  isolation: isolate;
  transition: var(--ebmnt1-transition-base);
}

.ebmnt1-btn::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0;
  background-color: var(--ebmnt1-button-primary-hover-bg-color);
  transition: var(--ebmnt1-transition-base);
  z-index: -1;
}

.ebmnt1-btn__icon {
  font-size: 0.95em;
  color: var(--ebmnt1-button-primary-icon-color);
  transition: var(--ebmnt1-transition-base);
}

.ebmnt1-btn:hover {
  color: var(--ebmnt1-button-primary-hover-text-color);
}

.ebmnt1-btn:hover::before {
  width: 100%;
}

.ebmnt1-btn:hover .ebmnt1-btn__icon {
  color: var(--ebmnt1-button-primary-hover-icon-color);
  transform: translateX(-0.3em);
}

/* play-style secondary button (icon circle + text) */
.ebmnt1-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--ebmnt1-font-size-button);
  font-weight: var(--ebmnt1-font-weight-bold);
  color: var(--ebmnt1-button-play-text-color);
}

.ebmnt1-btn-play__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.9em;
  aspect-ratio: 1;
  border-radius: var(--ebmnt1-radius-circle);
  font-size: 1.15em;
  color: var(--ebmnt1-button-play-icon-color);
  background-color: var(--ebmnt1-button-play-icon-bg-color);
  transition: var(--ebmnt1-transition-base);
}

.ebmnt1-btn-play:hover .ebmnt1-btn-play__icon {
  background-color: var(--ebmnt1-button-play-hover-icon-bg-color);
  transform: scale(1.08);
}

/* ===== icon circle (scale-fill on hover) ===== */
.ebmnt1-icon-circle {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ebmnt1-icon-size, 3.125em);
  aspect-ratio: 1;
  border-radius: var(--ebmnt1-radius-circle);
  font-size: var(--ebmnt1-font-size-icon);
  color: var(--ebmnt1-icon-color);
  background-color: var(--ebmnt1-icon-bg);
  overflow: hidden;
  isolation: isolate;
  transition: var(--ebmnt1-transition-base);
}

.ebmnt1-icon-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-icon-fill);
  transform: scale(0);
  transition: var(--ebmnt1-transition-base);
  z-index: -1;
}

.ebmnt1-hover-scope:hover .ebmnt1-icon-circle::before,
.ebmnt1-icon-circle:hover::before {
  transform: scale(1);
}

.ebmnt1-hover-scope:hover .ebmnt1-icon-circle {
  color: var(--ebmnt1-icon-hover-color, var(--ebmnt1-icon-color));
}

/* ===== slider (Swiper) shared ===== */
.ebmnt1-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  width: 100%;
  min-width: 0;
}

.ebmnt1-slider .swiper {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  text-align: start;
}

.ebmnt1-slider .swiper:active {
  cursor: grabbing;
}

.ebmnt1-slider .swiper-slide {
  height: auto;
  display: flex;
}

.ebmnt1-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.ebmnt1-slider__buttons {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.ebmnt1-slider__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3em;
  aspect-ratio: 1;
  border-radius: var(--ebmnt1-radius-circle);
  font-size: 1em;
  color: var(--ebmnt1-slider-button-icon-color);
  background-color: var(--ebmnt1-slider-button-bg-color);
  transition: var(--ebmnt1-transition-base);
}

.ebmnt1-slider__button:hover {
  color: var(--ebmnt1-slider-button-hover-icon-color);
  background-color: var(--ebmnt1-slider-button-hover-bg-color);
}

.ebmnt1-slider--on-dark .ebmnt1-slider__button:hover {
  color: var(--ebmnt1-slider-button-on-dark-hover-icon-color);
  background-color: var(--ebmnt1-slider-button-on-dark-hover-bg-color);
}

.ebmnt1-slider__button.swiper-button-disabled {
  opacity: 0.45;
  cursor: default;
  background-color: var(--ebmnt1-slider-button-disabled-bg-color);
}

.ebmnt1-slider__pagination {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.ebmnt1-slider__pagination .swiper-pagination-bullet {
  width: 0.625em;
  height: 0.625em;
  margin: 0 !important;
  border-radius: var(--ebmnt1-radius-pill);
  background-color: var(--ebmnt1-slider-bullet-bg-color);
  opacity: 1;
  transition: var(--ebmnt1-transition-fast);
}

.ebmnt1-slider--on-dark .ebmnt1-slider__pagination .swiper-pagination-bullet {
  background-color: var(--ebmnt1-slider-bullet-on-dark-bg-color);
}

.ebmnt1-slider__pagination .swiper-pagination-bullet-active,
.ebmnt1-slider--on-dark .ebmnt1-slider__pagination .swiper-pagination-bullet-active {
  width: 1.25em;
  background-color: var(--ebmnt1-slider-bullet-active-bg-color);
}

/* ===== corner decorations (swing) ===== */
.ebmnt1-decor {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  animation: ebmnt1-decor-swing 4s infinite linear alternate;
  z-index: 1;
}

@keyframes ebmnt1-decor-swing {
  from {
    transform: rotate(-8deg);
  }

  to {
    transform: rotate(8deg);
  }
}

/* ===== preloader ===== */
.ebmnt1-preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ebmnt1-preloader-bg-color);
  z-index: var(--ebmnt1-preloader-z-index);
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.ebmnt1-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.ebmnt1-preloader__icon {
  font-size: clamp(2.25rem, 2rem + 1.5vw, 3.5rem);
  color: var(--ebmnt1-preloader-icon-color);
  animation: ebmnt1-preloader-spin 1.2s infinite ease-in-out;
}

@keyframes ebmnt1-preloader-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* ===== magic cursor ===== */
.ebmnt1-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 1.1rem;
  aspect-ratio: 1;
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-cursor-bg-color);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.3s, opacity 0.3s;
  z-index: 9999;
}

.ebmnt1-cursor.is-active {
  opacity: 1;
}

.ebmnt1-cursor.is-large {
  width: 4.5rem;
  opacity: 0.85;
}

html.ebmnt1-has-cursor .ebmnt1-cursor-none,
html.ebmnt1-has-cursor .ebmnt1-cursor-none * {
  cursor: none;
}

/* ===== entry animations (only when JS is running) ===== */
.ebmnt1-js .ebmnt1-fade-up {
  opacity: 0;
  transform: translateY(2em);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--ebmnt1-delay, 0s);
}

.ebmnt1-js .ebmnt1-fade-up.is-visible {
  opacity: 1;
  transform: none;
}

.ebmnt1-js .ebmnt1-reveal {
  overflow: hidden;
}

.ebmnt1-js .ebmnt1-reveal img {
  clip-path: inset(0 0 0 100%);
  transform: scale(1.3);
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1), transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.ebmnt1-js .ebmnt1-reveal.is-visible img {
  clip-path: inset(0);
  transform: scale(1);
}

.ebmnt1-word {
  display: inline-block;
  white-space: pre;
}

.ebmnt1-js .ebmnt1-text-scrub .ebmnt1-word {
  opacity: 0.3;
}

.ebmnt1-js .ebmnt1-word-reveal .ebmnt1-word {
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--ebmnt1-word-index) * 0.05s + 0.4s);
}

.ebmnt1-js .ebmnt1-word-reveal.is-visible .ebmnt1-word {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ebmnt1-js .ebmnt1-fade-up,
  .ebmnt1-js .ebmnt1-reveal img,
  .ebmnt1-js .ebmnt1-word-reveal .ebmnt1-word {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .ebmnt1-js .ebmnt1-text-scrub .ebmnt1-word {
    opacity: 1;
  }

  .ebmnt1-decor,
  .ebmnt1-preloader__icon {
    animation: none;
  }
}

/* ===== breakpoints (mobile first) ===== */
@media (min-width: 768px) {
  .ebmnt1-section--boxed {
    border-radius: var(--ebmnt1-radius-card);
  }

  .ebmnt1-section__inner {
    gap: 2.5em;
  }
}

@media (min-width: 1024px) {
  .ebmnt1-section__inner {
    gap: 3em;
  }
}
