body.home .main-page-wrapper {
  margin-top: 0;
  padding-top: 0;
}

body.home .main-page-wrapper > .container {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

body.home .main-page-wrapper > .container > .row {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

body.home .xewex-home-main {
  width: 100%;
  max-width: none;
  flex: 0 0 100%;
}

.xewex-home-main {
  color: var(--xewex-color-text);
  background: var(--xewex-color-background);
  overflow: hidden;
}

.xewex-home-main,
.xewex-home-main * {
  box-sizing: border-box;
}

.xewex-home-main a:not(.xewex-button) {
  color: inherit;
  text-decoration: none;
}

.xewex-home-hero {
  position: relative;
  background: var(--xewex-color-surface);
  border-bottom: 1px solid var(--xewex-color-line);
}

.xewex-home-hero__inner {
  display: grid;
  grid-template-columns: minmax(390px, 0.88fr) minmax(0, 1.12fr);
  width: 100%;
  max-width: none;
  min-height: clamp(470px, 38vw, 590px);
  margin: 0;
}
header.xewex-site-header {
  margin-bottom: 0;
}

.xewex-home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 44px 70px var(--xewex-layout-gutter);
}

.xewex-home-hero__eyebrow,
.xewex-home-about__eyebrow {
  margin: 0 0 16px;
  color: var(--xewex-color-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.xewex-home-hero__title {
  max-width: 650px;
  margin: 0;
  color: var(--xewex-color-ink);
  font-size: clamp(36px, 3.25vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-transform: uppercase;
}

.xewex-home-hero__text {
  max-width: 530px;
  margin: 24px 0 0;
  color: var(--xewex-color-muted);
  font-size: 15px;
  line-height: 1.65;
}

.xewex-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.xewex-home-hero__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.xewex-home-hero__media::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 15%;
  background: linear-gradient(90deg, var(--xewex-color-surface), transparent);
  content: "";
  pointer-events: none;
}

.xewex-home-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 50%;
}

.xewex-home-benefits {
  background: var(--xewex-color-surface);
  border-bottom: 1px solid var(--xewex-color-line);
}

.xewex-home-benefits__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 24px;
  padding-bottom: 24px;
}

.xewex-home-benefit {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 15px;
  padding: 4px 28px;
  border-left: 1px solid var(--xewex-color-line);
}

.xewex-home-benefit:first-child {
  border-left: 0;
}

.xewex-home-benefit__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.xewex-home-benefit__text {
  max-width: 180px;
  margin: 0;
  color: var(--xewex-color-text);
  font-size: 12px;
  line-height: 1.55;
}

.xewex-home-categories {
  padding: 52px 0 30px;
  background: var(--xewex-color-background);
}

.xewex-home-categories__inner,
.xewex-home-promos__inner,
.xewex-home-about__inner {
  width: 100%;
}

.xewex-home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.xewex-home-section-heading__title,
.xewex-home-about__title {
  margin: 0;
  color: var(--xewex-color-ink);
  font-size: clamp(27px, 2.25vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: uppercase;
}

.xewex-home-section-heading__link,
.xewex-home-about__link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: border-color 180ms ease;
}

.xewex-home-section-heading__link:hover,
.xewex-home-section-heading__link:focus-visible,
.xewex-home-about__link:hover,
.xewex-home-about__link:focus-visible {
  border-color: currentColor;
}

.xewex-home-section-heading__arrow,
.xewex-home-about__arrow {
  font-size: 22px;
  font-weight: 400;
  line-height: 0;
}

.xewex-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.xewex-home-category-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
  background: var(--xewex-color-surface);
  border: 1px solid var(--xewex-color-line);
}

.xewex-home-category-card__heading {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--xewex-color-surface) 98%, transparent),
    transparent
  );
  pointer-events: none;
}

.xewex-home-category-card__title {
  max-width: 85%;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
}

.xewex-home-category-card__arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform 180ms ease;
}

.xewex-home-category-card:hover .xewex-home-category-card__arrow,
.xewex-home-category-card:focus-visible .xewex-home-category-card__arrow {
  transform: translateX(4px);
}

.xewex-home-category-card__media {
  position: absolute;
  inset: 0;
  display: block;
}

.xewex-home-category-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.xewex-home-category-card:hover .xewex-home-category-card__image,
.xewex-home-category-card:focus-visible .xewex-home-category-card__image {
  transform: scale(1.035);
}

.xewex-home-category-card:focus-visible {
  outline: 2px solid var(--xewex-color-ink);
  outline-offset: 3px;
}

.xewex-home-category-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--xewex-color-muted);
  background: var(--xewex-color-surface);
}

.xewex-home-category-card__placeholder svg {
  width: 36%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.xewex-home-promos {
  padding: 0 0 52px;
  background: var(--xewex-color-background);
  border-bottom: 1px solid var(--xewex-color-line);
}

.xewex-home-promos__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.xewex-home-promo {
  position: relative;
  display: block;
  aspect-ratio: 2 / 0.82;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--xewex-color-line);
}

.xewex-home-promo__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.xewex-home-promo:hover .xewex-home-promo__image,
.xewex-home-promo:focus-visible .xewex-home-promo__image {
  transform: scale(1.025);
}

.xewex-home-promo--dark .xewex-home-promo__image {
  object-position: 63% 50%;
}

.xewex-home-promo--light .xewex-home-promo__image {
  object-position: 55% 50%;
}

.xewex-home-promo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--xewex-color-ink) 95%, transparent) 0%,
    color-mix(in srgb, var(--xewex-color-ink) 66%, transparent) 38%,
    transparent 70%
  );
}

.xewex-home-promo__content {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  display: flex;
  width: 55%;
  min-width: 290px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px;
}

.xewex-home-promo--dark .xewex-home-promo__content {
  color: #fff;
}

.xewex-home-promo--light .xewex-home-promo__content {
  color: var(--xewex-color-ink);
}

.xewex-home-promo__title {
  margin: 0;
  font-size: clamp(22px, 1.9vw, 31px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.xewex-home-promo__text {
  max-width: 370px;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.xewex-home-promo__action {
  margin-top: 21px;
}

.xewex-home-about {
  padding: 52px 0;
  background: var(--xewex-color-surface);
}

.xewex-home-about__inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 2.2fr);
  gap: 40px;
  align-items: stretch;
}

.xewex-home-about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 0;
}

.xewex-home-about__title {
  margin-bottom: 20px;
}

.xewex-home-about__text {
  margin: 0;
  color: var(--xewex-color-muted);
  font-size: 13px;
  line-height: 1.7;
}

.xewex-home-about__link {
  margin-top: 25px;
}

.xewex-home-about__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.xewex-home-about__image-button {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
}

.xewex-home-about__image-button:focus-visible {
  outline: 2px solid var(--xewex-color-ink);
  outline-offset: 3px;
}

.xewex-home-about__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  max-height: 430px;
  object-fit: cover;
  transition: transform 280ms ease;
}

.xewex-home-about__image-button:hover .xewex-home-about__image,
.xewex-home-about__image-button:focus-visible .xewex-home-about__image {
  transform: scale(1.025);
}

.xewex-home-about__image--left {
  object-position: 32% 50%;
}

.xewex-home-about__image--center {
  object-position: 50% 50%;
}

.xewex-home-about__image--right {
  object-position: 68% 50%;
}

.xewex-home-lightbox {
  width: min(1180px, calc(100% - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 46px 18px 18px;
  overflow: hidden;
  color: #fff;
  background: var(--xewex-color-ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.xewex-home-lightbox::backdrop {
  background: rgba(20, 24, 27, 0.86);
}

.xewex-home-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  cursor: pointer;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.xewex-home-lightbox__close:hover,
.xewex-home-lightbox__close:focus-visible {
  color: var(--xewex-color-ink);
  background: #fff;
  border-color: #fff;
}

.xewex-home-lightbox__figure {
  display: flex;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.xewex-home-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 145px);
  max-height: calc(100dvh - 145px);
  object-fit: contain;
}

.xewex-home-lightbox__caption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 1741px) {
  .xewex-home-hero__inner {
    /* Keep the 44/56 split of the 1740px shell while the media absorbs the right rail. */
    grid-template-columns: minmax(0, 1fr) 766px 974px minmax(0, 1fr);
  }

  .xewex-home-hero__content {
    grid-column: 2;
  }

  .xewex-home-hero__media {
    grid-column: 3 / -1;
  }
}

@media (max-width: 1200px) {
  .xewex-home-hero__content {
    padding-left: 36px;
  }

  .xewex-home-benefit {
    padding-right: 18px;
    padding-left: 18px;
  }

  .xewex-home-category-card__heading {
    padding: 16px;
  }

  .xewex-home-category-card__title {
    font-size: 15px;
  }

  .xewex-home-promo__content {
    width: 61%;
    min-width: 0;
    padding: 28px;
  }
}

@media (max-width: 900px) {
  .xewex-home-hero__inner {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    min-height: 510px;
  }

  .xewex-home-hero__content {
    padding: 54px 28px 54px 30px;
  }

  .xewex-home-hero__title {
    font-size: clamp(32px, 4.8vw, 43px);
  }

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

  .xewex-home-hero__action {
    width: 100%;
  }

  .xewex-home-benefits__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .xewex-home-benefit {
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--xewex-color-line);
  }

  .xewex-home-benefit:nth-child(odd) {
    border-left: 0;
  }

  .xewex-home-benefit:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .xewex-home-categories {
    padding: 44px 0 24px;
  }

  .xewex-home-promos {
    padding: 0 0 44px;
  }

  .xewex-home-category-card__heading {
    padding: 12px;
  }

  .xewex-home-category-card__title {
    font-size: 13px;
  }

  .xewex-home-category-card__arrow {
    display: none;
  }

  .xewex-home-promo {
    min-height: 270px;
  }

  .xewex-home-promo__content {
    width: 70%;
    padding: 24px;
  }

  .xewex-home-promo__text {
    font-size: 11px;
  }

  .xewex-home-about {
    padding: 44px 0;
  }

  .xewex-home-about__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .xewex-home-about__content {
    max-width: 680px;
  }

  .xewex-home-about__image {
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  .xewex-home-hero__inner {
    display: flex;
    min-height: auto;
    flex-direction: column-reverse;
  }

  .xewex-home-hero__content {
    padding: 38px 20px 42px;
  }

  .xewex-home-hero__media {
    height: min(72vw, 460px);
  }

  .xewex-home-hero__media::before {
    inset: auto 0 0;
    width: auto;
    height: 25%;
    background: linear-gradient(0deg, var(--xewex-color-surface), transparent);
  }

  .xewex-home-hero__image {
    object-position: 54% 49%;
  }

  .xewex-home-hero__eyebrow {
    margin-bottom: 12px;
  }

  .xewex-home-hero__title {
    font-size: clamp(31px, 9.6vw, 43px);
  }

  .xewex-home-hero__text {
    margin-top: 18px;
    font-size: 14px;
  }

  .xewex-home-hero__actions {
    width: 100%;
    margin-top: 24px;
  }

  .xewex-home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .xewex-home-section-heading__link {
    order: 2;
  }

  .xewex-home-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .xewex-home-category-card__heading {
    min-height: 56px;
    padding: 10px;
  }

  .xewex-home-category-card__title {
    font-size: clamp(11px, 3.2vw, 14px);
  }

  .xewex-home-promos__inner {
    grid-template-columns: 1fr;
  }

  .xewex-home-promo {
    aspect-ratio: 1.45 / 1;
    min-height: 250px;
  }

  .xewex-home-promo__content {
    width: 65%;
  }

  .xewex-home-about__gallery {
    grid-template-columns: 1fr 1fr;
  }

  .xewex-home-about__image-button:first-child {
    grid-column: 1 / -1;
  }

  .xewex-home-about__image {
    min-height: 230px;
    max-height: 300px;
  }

  .xewex-home-about__image-button:first-child .xewex-home-about__image {
    min-height: min(76vw, 360px);
    max-height: 360px;
  }
}

@media (max-width: 520px) {
  .xewex-home-benefits__inner {
    grid-template-columns: 1fr;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .xewex-home-benefit,
  .xewex-home-benefit:nth-child(odd) {
    padding: 14px 0;
    border-bottom: 1px solid var(--xewex-color-line);
    border-left: 0;
  }

  .xewex-home-benefit:nth-last-child(2) {
    border-bottom: 1px solid var(--xewex-color-line);
  }

  .xewex-home-benefit:last-child {
    border-bottom: 0;
  }

  .xewex-home-benefit__text {
    max-width: none;
  }

  .xewex-home-categories {
    padding: 38px 0 16px;
  }

  .xewex-home-promos {
    padding: 0 0 38px;
  }

  .xewex-home-section-heading {
    margin-bottom: 18px;
  }

  .xewex-home-section-heading__title,
  .xewex-home-about__title {
    font-size: 25px;
  }

  .xewex-home-promo {
    aspect-ratio: 1.45 / 1;
    min-height: 250px;
  }

  .xewex-home-promo__image {
    object-position: 60% 50%;
  }

  .xewex-home-promo--light .xewex-home-promo__image {
    object-position: 64% 50%;
  }

  .xewex-home-promo__overlay {
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--xewex-color-ink) 94%, transparent),
      color-mix(in srgb, var(--xewex-color-ink) 45%, transparent) 66%,
      color-mix(in srgb, var(--xewex-color-ink) 8%, transparent)
    );
  }

  .xewex-home-promo__content {
    width: 76%;
    padding: 18px;
  }

  .xewex-home-promo--light .xewex-home-promo__content {
    width: 72%;
  }

  .xewex-home-promo__title {
    font-size: 23px;
  }

  .xewex-home-promo__action {
    margin-top: 16px;
  }

  .xewex-home-about {
    padding: 38px 0;
  }

  .xewex-home-about__gallery {
    gap: 8px;
  }

  .xewex-home-about__image {
    min-height: 190px;
  }

  .xewex-home-lightbox {
    padding: 44px 10px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xewex-home-category-card__arrow,
  .xewex-home-category-card__image,
  .xewex-home-promo__image,
  .xewex-home-about__image,
  .xewex-home-section-heading__link,
  .xewex-home-about__link {
    transition: none;
  }
}
