.oculora-hero {
  position: relative;
  display: flex;
  min-height: calc(100vw * 1094 / 1920);
  overflow: hidden;
  color: rgb(var(--oculora-hero-text-color));
}

.oculora-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.oculora-hero__image {
  width: 100%;
  height: 100%;
}

.oculora-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.oculora-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: rgba(
    var(--oculora-hero-overlay-color),
    var(--oculora-hero-overlay-opacity)
  );
}

.oculora-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  padding-block: calc(100vw * 382 / 1920) max(48px, calc(100vw * 171 / 1920));
  padding-inline: calc(100% * 1090 / 1920) calc(100% * 40 / 1920);
  color: rgb(var(--oculora-hero-text-color));
}

/* Block heading styles */
.oculora-hero__content .block-heading {
  margin: 0;
  font-size: min(var(--sort-title-size), calc(100vw * 106 / 1920));
  line-height: calc(102 / 106);
  color: inherit;
}

/* Divider block styles */
.oculora-hero__divider {
  display: block;
  flex-shrink: 0;
  width: clamp(96px, calc(100vw * 187 / 1920), 187px);
  height: 1.2px;
  background-color: currentcolor;
}

/* Rich text block styles */
.oculora-hero__content .rte {
  max-width: 779px;
  font-family: var(--sort-body-font);
  font-size: clamp(16px, calc(100vw * 24 / 1920), 24px);
  font-weight: var(--sort-body-font-weight, 400);
  line-height: 1.45;
  color: inherit;
}

.oculora-hero__content .rte p {
  margin-block: 0;
}

.oculora-hero__content .rte p + p {
  margin-block-start: calc(23em / 24);
}

/* Button block styles */
.oculora-hero__content .button {
  --color-button-background: 25, 25, 25;
  --color-button-text: 255, 255, 255;
  --button-background-opacity: 100%;
  --button-border-radius: 0;

  min-width: 180px;
  height: 52px;
  padding: 0 20px;
  font-family: var(--sort-body-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 959px) {
  .oculora-hero {
    min-height: min(calc(100vw * 746 / 390), 960px);
  }

  .oculora-hero__mobile-tint {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: calc(100% * 211 / 746);
    pointer-events: none;
    background-color: rgb(216 216 216 / 20%);
    filter: blur(10px);
  }

  .oculora-hero__content {
    padding: 52px 24px 32px;
    color: rgb(var(--oculora-hero-mobile-text-color));
  }

  .oculora-hero__content .block-heading {
    font-size: 56px;
    line-height: calc(54 / 56);
  }

  .oculora-hero__divider {
    width: 96px;
  }

  .oculora-hero__content .rte {
    max-width: none;
    font-size: 14px;
    line-height: 1.5;
  }

  .oculora-hero__content .button {
    width: 100%;
    height: 50px;
    font-size: 14px;
  }
}

/* Split layout: brand copy on the left, waitlist card on the right */
.oculora-hero--split .oculora-hero__content {
  max-width: calc(100% * 862 / 1920);
  padding-block: calc(100vw * 494 / 1920) max(48px, calc(100vw * 171 / 1920));
  padding-inline: calc(100% * 72 / 1920) 0;
}

.oculora-hero--split .oculora-hero__content .rte {
  max-width: calc(100vw * 705 / 1920);
}

.oculora-hero__card-wrap {
  position: absolute;
  inset-block-start: calc(100vw * 323 / 1920);
  inset-inline-end: calc(100vw * 72 / 1920);
  z-index: 2;
  width: calc(100vw * 667 / 1920);
}

.oculora-hero__card {
  display: flex;
  padding: clamp(24px, calc(100vw * 50 / 1920), 50px);
  color: #191919;
  background-color: rgb(var(--color-background));
}

.oculora-hero__card .block-heading {
  margin: 0;
  font-size: min(var(--sort-title-size), calc(100vw * 64 / 1920));
  line-height: calc(71 / 64);
  color: inherit;
}

.oculora-hero__card .oculora-hero__divider {
  width: clamp(72px, calc(100vw * 133 / 1920), 133px);
}

.oculora-hero__card .rte {
  max-width: none;
  font-size: clamp(14px, calc(100vw * 24 / 1920), 24px);
  line-height: calc(35 / 24);
}

.oculora-hero__card .rte p + p {
  margin-block-start: 1.45em;
}

.oculora-hero__card .block-subscription__inline-form {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, calc(100vw * 23 / 1920), 23px);
}

.oculora-hero__card .block-subscription input {
  height: clamp(48px, calc(100vw * 63 / 1920), 63px);
  font-size: clamp(14px, calc(100vw * 21 / 1920), 21px);
}

.oculora-hero__card .button {
  --color-button-background: 25, 25, 25;
  --color-button-text: 255, 255, 255;
  --button-background-opacity: 100%;
  --button-border-radius: 0;
  --button-border-thickness: 0px;

  width: 100%;
  max-width: none;
  min-width: 0;
  height: clamp(50px, calc(100vw * 64 / 1920), 64px);
  font-family: var(--sort-body-font);
  font-size: clamp(14px, calc(100vw * 21 / 1920), 21px);
  font-weight: 500;
  text-transform: uppercase;
}

@media (max-width: 959px) {
  .oculora-hero--split {
    flex-direction: column;
    min-height: 0;
  }

  .oculora-hero--split .oculora-hero__media {
    inset-block-end: auto;
    height: calc(100vw * 517 / 390);
  }

  .oculora-hero--split .oculora-hero__mobile-tint {
    display: none;
  }

  .oculora-hero--split .oculora-hero__content {
    max-width: none;
    min-height: calc(100vw * 517 / 390);
    padding: 52px 24px 24px;
    justify-content: flex-end;
  }

  .oculora-hero__card-wrap {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .oculora-hero__card {
    padding: 40px 24px;
  }

  .oculora-hero__card .block-heading {
    font-size: 36px;
    line-height: calc(40 / 36);
  }

  .oculora-hero__card .rte {
    font-size: 16px;
    line-height: 1.5;
  }
}

html:has(.oculora-hero[id]) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.oculora-hero[id]) {
    scroll-behavior: auto;
  }
}
