.deem-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  width: 100dvw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  margin-inline: calc(50% - 50dvw);
  height: clamp(450px, 35.6vw, 535px);
  background: var(--deem-plum-deep);
  color: var(--deem-ivory);
}

.deem-hero img.deem-hero__background,
.deem-hero img.deem-hero__woman {
  position: absolute;
  display: block;
  max-width: none !important;
  pointer-events: none;
  user-select: none;
}

.deem-hero img.deem-hero__background {
  z-index: 0;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}

.deem-hero img.deem-hero__woman {
  z-index: 1;
  inset-block-end: 0;
  inset-inline-end: clamp(0px, 4vw, 70px);
  width: auto !important;
  height: 103% !important;
  object-fit: contain;
  object-position: bottom left;
}

/* Taller salon-work cutout: keep its natural proportions above the unchanged backdrop. */
.deem-hero img.deem-hero__woman--balayage {
  inset-inline-end: clamp(40px, 5vw, 95px);
  height: 116% !important;
  filter: drop-shadow(10px 3px 17px rgba(24, 8, 15, .27));
}

.deem-hero::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, transparent 41%, rgba(29, 12, 21, .22) 65%, rgba(29, 12, 21, .19) 100%);
  content: '';
  pointer-events: none;
}

.deem-hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 100%;
}

.deem-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
  padding-top: 76px;
  text-align: center;
}

.deem-hero__title {
  margin: 0;
  color: var(--deem-gold-light);
  font-family: var(--deem-font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.36;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(14, 3, 10, .27);
}

/* A soft champagne reflection gives the lettering a gold glass finish. */
#content .entry-content .deem-hero .deem-hero__title,
.deem-hero .deem-hero__title {
  color: var(--deem-gold-light);
  background-image: linear-gradient(
    180deg,
    #fff9e9 0%,
    #f8e8c7 14%,
    var(--deem-gold-light) 30%,
    var(--deem-gold) 43%,
    #fff8e5 49%,
    #f2dba9 56%,
    var(--deem-gold-light) 73%,
    #ad7c48 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .3px rgba(255, 239, 204, .36);
  text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(255, 247, 224, .28))
    drop-shadow(0 3px 5px rgba(25, 7, 16, .4));
}

.deem-hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(268px, 62%);
  height: 16px;
  margin: 12px 0 17px;
  color: var(--deem-gold-light);
}

.deem-hero__ornament::before,
.deem-hero__ornament::after {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  content: '';
  opacity: .78;
}

.deem-hero__ornament::after { transform: rotate(180deg); }

.deem-hero__ornament span {
  width: 8px;
  height: 8px;
  margin-inline: 5px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.deem-hero__description {
  max-width: 475px;
  margin: 0 0 24px;
  color: var(--deem-ivory);
  font-family: var(--deem-font-body);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 2px 9px rgba(15, 3, 9, .55);
}

.deem-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 252px;
  min-height: 54px;
  padding: 9px 22px;
  border: 1px solid #e5bf83;
  border-radius: 4px;
  background: linear-gradient(180deg, #edcf98, #cda66d);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .32);
  color: #28131e;
  font-family: var(--deem-font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.deem-hero__button:hover,
.deem-hero__button:focus-visible {
  color: #28131e;
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.deem-hero__button svg { flex: 0 0 auto; }

@media (max-width: 1100px) {
  .deem-hero__copy { padding-top: 80px; }
  .deem-hero__title { font-size: clamp(2.2rem, 3.6vw, 3rem); white-space: normal; }
  .deem-hero img.deem-hero__woman { inset-inline-end: 0; height: 102% !important; }
  .deem-hero img.deem-hero__woman--balayage {
    inset-inline-end: clamp(20px, 3vw, 38px);
    height: 111% !important;
  }
}

@media (max-width: 767px) {
  .deem-hero { height: 670px; }
  .deem-hero img.deem-hero__background { object-position: 27% top; }
  .deem-hero img.deem-hero__woman {
    inset-inline-end: auto;
    inset-inline-start: -105px;
    inset-block-start: 0;
    inset-block-end: auto;
    height: 385px !important;
  }
  .deem-hero img.deem-hero__woman--balayage {
    top: 0;
    right: auto;
    bottom: auto;
    left: 50%;
    height: 410px !important;
    transform: translateX(-50%);
    filter: drop-shadow(4px 4px 14px rgba(24, 8, 15, .20));
  }
  .deem-hero::before {
    background: linear-gradient(180deg, rgba(29, 12, 21, .08) 0%, rgba(29, 12, 21, .06) 29%, rgba(29, 12, 21, .73) 54%, #28131e 72%);
  }
  .deem-hero__inner { display: flex; align-items: flex-end; justify-content: center; }
  .deem-hero__copy { width: 100%; padding: 0 0 38px; }
  .deem-hero__title { font-size: clamp(2.35rem, 9vw, 3.2rem); }
  .deem-hero__ornament { margin: 8px 0 10px; }
  .deem-hero__description { max-width: 400px; margin-bottom: 18px; font-size: 16px; }
  .deem-hero__button { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .deem-hero__button { transition: none; }
}
