.h2-modal-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  min-height: clamp(560px, 38.77vw, 670px);
  margin: 0;
  padding: 0;
  background: var(--color-text-secondary);
  color: var(--color-text-inverse);
}

.h2-modal-section__background,
.h2-modal-section__background picture,
.h2-modal-section__background-image,
.h2-modal-section__overlay {
  position: absolute;
  inset: 0;
}

.h2-modal-section__background {
  z-index: -3;
}

.h2-modal-section__background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.h2-modal-section__background--fallback {
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.12), rgba(11, 11, 11, 0.04)),
    linear-gradient(135deg, #4f4840 0%, #202020 100%);
}

.h2-modal-section__overlay {
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(79, 72, 64, 0.95) 0%, rgba(79, 72, 64, 0.95) 100%),
    linear-gradient(90deg, rgba(11, 11, 11, 0.08), rgba(11, 11, 11, 0.02));
}

.h2-modal-section__inner {
  display: grid;
  width: min(1290px, calc(100% - (var(--section-padding-x) * 2)));
  margin: 0 auto;
  padding: clamp(96px, 8.33vw, 144px) 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.h2-modal-section__heading-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.h2-modal-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: rgba(11, 11, 11, 0.8);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--fs-body-small);
  font-weight: var(--fw-medium);
  line-height: 1.1;
}

.h2-modal-section__eyebrow-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
}

.h2-modal-section__title {
  width: min(100%, 630px);
  margin: 0;
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  line-height: var(--lh-display);
  letter-spacing: 0;
  text-wrap: balance;
}

.h2-modal-section__copy {
  display: flex;
  width: min(100%, 630px);
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.h2-modal-section__text,
.h2-modal-section__modal-content {
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

.h2-modal-section__text p,
.h2-modal-section__modal-content p {
  margin: 0;
}

.h2-modal-section__text p + p,
.h2-modal-section__modal-content p + p {
  margin-top: 32px;
}

.h2-modal-section__text a,
.h2-modal-section__modal-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.h2-modal-section__button {
  display: inline-flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 32px;
  border: 0;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-brand-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-cta);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.h2-modal-section__button:hover,
.h2-modal-section__button:focus-visible {
  background: var(--color-brand-surface);
  transform: translateY(-1px);
}

.h2-modal-section__button:focus-visible {
  outline: 2px solid var(--color-text-inverse);
  outline-offset: 4px;
}

.h2-modal-section__modal[hidden] {
  display: none;
}

.h2-modal-section__modal {
  position: fixed;
  inset: 0;
  z-index: 11050;
  display: grid;
  place-items: center;
  padding: var(--section-padding-x);
}

.h2-modal-section__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(4px);
}

.h2-modal-section__modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-md);
  background: var(--color-brand-surface);
  color: var(--color-brand-text-primary);
  box-shadow: var(--shadow-xl);
}

.h2-modal-section__modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--color-brand-text-primary);
  cursor: pointer;
}

.h2-modal-section__modal-title {
  margin: 0 48px 24px 0;
  color: var(--color-brand-text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  line-height: var(--lh-display);
}

.h2-modal-section__modal-content {
  color: var(--color-text-secondary);
}

html.h2-modal-section-is-open,
body.h2-modal-section-is-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

@media (max-width: 920px) {
  .h2-modal-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .h2-modal-section__copy,
  .h2-modal-section__title {
    width: min(100%, 720px);
  }
}

@media (max-width: 560px) {
  .h2-modal-section__inner {
    padding: 80px 0;
  }

  .h2-modal-section__button {
    width: 100%;
    min-height: 64px;
    padding: 20px 24px;
  }
}
