.hosted-evening-page {
  position: relative;
  overflow: clip;
}

.hosted-evening-page .section {
  position: relative;
}

.hes-hero::before,
.hes-flow::before,
.hes-enquiry::before {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), rgba(89, 108, 255, 0.07) 42%, transparent 72%);
  content: "";
  filter: blur(28px);
  pointer-events: none;
}

.hes-hero::before {
  top: 2rem;
  right: -12rem;
}

.hes-flow::before {
  top: 8rem;
  left: -18rem;
}

.hes-enquiry::before {
  right: -14rem;
  bottom: 1rem;
}

.hes-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.hes-hero__copy {
  grid-column: 1 / span 5;
  min-width: 0;
  max-inline-size: 30rem;
}

.hes-hero__copy h1 {
  max-inline-size: 27rem;
}

.hes-hero__copy > p:not(.hes-hero__support) {
  max-inline-size: 29rem;
}

.hes-hero__support {
  margin-block: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.hes-hero__media {
  grid-column: 6 / span 7;
  width: min(100%, 48rem);
  min-width: 0;
  justify-self: end;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  transform: translateY(2rem);
}

.hes-hero__media img,
.hes-dining__media img,
.hes-table-invitation__media img {
  transition: filter var(--transition-base);
}

.hes-foundations__intro {
  width: 50%;
  min-width: 0;
  max-inline-size: 42.5rem;
}

.hes-foundations__cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block-start: 3rem;
  align-items: start;
}

.hes-info-card {
  min-width: 0;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.hes-info-card:nth-child(1) { grid-column: 1 / span 4; }
.hes-info-card:nth-child(2) { grid-column: 5 / span 4; }
.hes-info-card:nth-child(3) { grid-column: 9 / span 4; }
.hes-info-card--offset-one { margin-block-start: 2.5rem; }
.hes-info-card--offset-two { margin-block-start: 5.5rem; }

.hes-table-invitation__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.hes-table-invitation__media {
  grid-column: 1 / span 5;
  width: 100%;
  min-width: 0;
  max-width: 28rem;
  aspect-ratio: 4 / 5;
  margin-block-start: -1.5rem;
}

.hes-table-invitation__copy {
  grid-column: 7 / span 5;
  min-width: 0;
  max-inline-size: 33.75rem;
}

.hes-table-invitation__copy > p {
  max-inline-size: 33.75rem;
}

.hes-rhythms__intro {
  width: 50%;
  min-width: 0;
  max-inline-size: 38.75rem;
}

.hes-rhythms__cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block-start: 3rem;
  align-items: start;
}

.hes-rhythm-card {
  grid-column: 7 / span 4;
  min-width: 0;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.hes-rhythm-card--feature { grid-column: 1 / span 6; }
.hes-rhythm-card--offset { grid-column: 9 / span 4; margin-block-start: 3rem; }

.hes-rhythms__note {
  width: 100%;
  max-inline-size: 40rem;
  margin-block: 2rem 0;
}

.hes-dining__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.hes-dining__copy {
  grid-column: 1 / span 5;
  min-width: 0;
  max-inline-size: 35rem;
}

.hes-dining__copy > p:not(.hes-dining__pull) {
  max-inline-size: 35rem;
}

.hes-dining__pull {
  max-inline-size: 31rem;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--color-violet-accent);
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
}

.hes-dining__media {
  grid-column: 7 / span 6;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  margin-block-start: 3rem;
}

.hes-flow__intro {
  width: 50%;
  min-width: 0;
  max-inline-size: 37.5rem;
}

.hes-flow__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block-start: 3rem;
}

.hes-flow-card {
  position: relative;
  min-width: 0;
  transition: border-color var(--transition-base);
}

.hes-flow-card__number {
  display: block;
  margin-block-end: 1rem;
  color: var(--color-violet-bright);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hes-flow__note {
  width: 58.333%;
  min-width: 0;
  max-inline-size: 35rem;
  margin-block: 2rem 0;
}

.hes-hosting__intro {
  width: 41.667%;
  min-width: 0;
  max-inline-size: 32.5rem;
}

.hes-hosting__cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block-start: 3rem;
  align-items: start;
}

.hes-hosting-card {
  grid-column: 1 / span 6;
  min-width: 0;
  max-inline-size: 40rem;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.hes-hosting-card--offset {
  grid-column: 8 / span 5;
  margin-block-start: 3.5rem;
}

.hes-hosting__action {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-block-start: 2rem;
  padding: 1.5rem;
}

.hes-hosting__action p {
  max-inline-size: 35rem;
  margin: 0;
}

.hes-suitability__intro {
  width: 50%;
  min-width: 0;
  max-inline-size: 38.75rem;
}

.hes-suitability__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 83.333%;
  min-width: 0;
  margin-block-start: 3rem;
}

.hes-suitability-card {
  min-width: 0;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.hes-suitability-card--offset { margin-block-start: 1.5rem; }

.hes-bridge__panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  min-width: 0;
  padding: 3rem;
  overflow: hidden;
}

.hes-bridge__copy {
  grid-column: 1 / span 6;
  min-width: 0;
  max-inline-size: 32.5rem;
}

.hes-bridge__copy p { max-inline-size: 32.5rem; }

.hes-bridge__space {
  grid-column: 8 / span 5;
  min-width: 0;
  background: radial-gradient(circle at 65% 55%, rgba(139, 92, 246, 0.2), transparent 62%);
}

.hes-enquiry__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.hes-enquiry__intro {
  grid-column: 1 / span 6;
  min-width: 0;
  max-inline-size: 40.625rem;
}

.hes-enquiry__intro p { max-inline-size: 40.625rem; }

.hes-enquiry__form-panel {
  grid-column: 1 / span 9;
  min-width: 0;
  margin-block-start: 1rem;
  padding: 3rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-panel-solid);
}

.hes-enquiry__aura {
  grid-column: 10 / span 3;
  min-width: 0;
  min-height: 18rem;
  background: radial-gradient(circle at center, rgba(89, 108, 255, 0.12), transparent 68%);
}

.hes-form__note {
  max-inline-size: 38.75rem;
}

.hes-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  min-width: 0;
}

.hes-form__field {
  min-width: 0;
}

.hes-form__field--full { grid-column: 1 / -1; }

.hes-form__error {
  min-height: 1.3em;
  margin: 0.375rem 0 0;
  color: #ffb4b4;
  font-size: var(--text-sm);
  line-height: var(--leading-small);
}

.hes-form__optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

.hes-form__consent {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
  margin-block: 1.5rem 0;
}

.hes-form__consent input {
  width: 1.5rem;
  min-height: 1.5rem;
  margin-block-start: 0.1rem;
}

.hes-form__consent label {
  min-width: 0;
  margin: 0;
}

.hes-success {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  max-inline-size: 38.75rem;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid rgba(112, 214, 163, 0.42);
  border-radius: var(--radius-md);
  background: rgba(112, 214, 163, 0.08);
}

.hes-success__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--color-success);
  color: var(--color-night-canvas);
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .hes-info-card:hover,
  .hes-rhythm-card:hover,
  .hes-hosting-card:hover,
  .hes-suitability-card:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-2px);
  }

  .hes-hero__media:hover img,
  .hes-dining__media:hover img,
  .hes-table-invitation__media:hover img {
    filter: brightness(1.08);
  }
}

@media (max-width: 67.5rem) {
  .hes-hero__grid,
  .hes-foundations__cards,
  .hes-table-invitation__grid,
  .hes-rhythms__cards,
  .hes-dining__grid,
  .hes-hosting__cards,
  .hes-enquiry__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .hes-hero__copy { grid-column: 1 / span 3; }
  .hes-hero__media { grid-column: 4 / span 3; transform: none; }
  .hes-foundations__intro,
  .hes-rhythms__intro,
  .hes-flow__intro,
  .hes-suitability__intro { width: 66.667%; }
  .hes-info-card:nth-child(1) { grid-column: 1 / span 3; }
  .hes-info-card:nth-child(2) { grid-column: 4 / span 3; }
  .hes-info-card:nth-child(3) { grid-column: 1 / span 3; }
  .hes-info-card--offset-one,
  .hes-info-card--offset-two { margin-block-start: 0; }
  .hes-table-invitation__media { grid-column: 1 / span 3; margin-block-start: 0; }
  .hes-table-invitation__copy { grid-column: 4 / span 3; }
  .hes-rhythm-card--feature { grid-column: 1 / -1; }
  .hes-rhythm-card { grid-column: 1 / span 3; }
  .hes-rhythm-card--offset { grid-column: 4 / span 3; margin-block-start: 0; }
  .hes-dining__copy { grid-column: 1 / span 3; }
  .hes-dining__media { grid-column: 4 / span 3; margin-block-start: 1.5rem; }
  .hes-flow__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hes-flow__note { width: 100%; }
  .hes-hosting__intro { width: 50%; }
  .hes-hosting-card { grid-column: 1 / span 3; }
  .hes-hosting-card--offset { grid-column: 4 / span 3; margin-block-start: 0; }
  .hes-enquiry__intro { grid-column: 1 / span 4; }
  .hes-enquiry__form-panel { grid-column: 1 / -1; }
  .hes-enquiry__aura { display: none; }
}

@media (max-width: 61.25rem) {
  .hes-hero__grid,
  .hes-table-invitation__grid,
  .hes-dining__grid {
    grid-template-columns: 1fr;
  }

  .hes-hero__media,
  .hes-table-invitation__media,
  .hes-dining__media,
  .hes-hero__copy,
  .hes-table-invitation__copy,
  .hes-dining__copy {
    grid-column: 1;
  }

  .hes-hero__media,
  .hes-table-invitation__media,
  .hes-dining__media {
    justify-self: start;
  }

  .hes-hero__media { order: 1; width: 100%; max-width: none; }
  .hes-hero__copy { order: 2; max-inline-size: 32rem; }
  .hes-table-invitation__media,
  .hes-dining__media { width: min(100%, 32.5rem); }
  .hes-dining__media { order: 1; margin-block-start: 0; }
  .hes-dining__copy { order: 2; margin-block-start: 1.5rem; }
}

@media (max-width: 51.25rem) {
  .hes-enquiry__grid { grid-template-columns: 1fr; }
  .hes-enquiry__intro,
  .hes-enquiry__form-panel { grid-column: 1; }
  .hes-form__grid { grid-template-columns: 1fr; }
  .hes-form__field--full { grid-column: 1; }
}

@media (max-width: 47.5rem) {
  .hes-hero::before,
  .hes-flow::before,
  .hes-enquiry::before { width: 19rem; height: 19rem; filter: blur(20px); }
  .hes-hero::before { right: -9rem; }
  .hes-flow::before { left: -12rem; }

  .hes-hero__grid,
  .hes-foundations__cards,
  .hes-rhythms__cards,
  .hes-hosting__cards { grid-template-columns: 1fr; }

  .hes-hero__copy,
  .hes-hero__media,
  .hes-info-card:nth-child(1),
  .hes-info-card:nth-child(2),
  .hes-info-card:nth-child(3),
  .hes-rhythm-card,
  .hes-rhythm-card--feature,
  .hes-rhythm-card--offset,
  .hes-hosting-card,
  .hes-hosting-card--offset { grid-column: 1; }

  .hes-hero__copy h1 { max-inline-size: none; font-size: clamp(2.625rem, 12vw, 3.625rem); }
  .hes-hero__copy > p:not(.hes-hero__support),
  .hes-foundations__intro,
  .hes-rhythms__intro,
  .hes-flow__intro,
  .hes-hosting__intro,
  .hes-suitability__intro { width: 100%; max-inline-size: none; }
  .hes-foundations__cards,
  .hes-rhythms__cards,
  .hes-hosting__cards { margin-block-start: 2rem; }
  .hes-table-invitation__media,
  .hes-dining__media { width: 100%; max-width: none; }
  .hes-table-invitation__copy { margin-block-start: 1.5rem; }
  .hes-rhythm-card--offset,
  .hes-suitability-card--offset { margin-block-start: 0; }
  .hes-flow__cards,
  .hes-suitability__cards { grid-template-columns: 1fr; width: 100%; }
  .hes-flow__cards { gap: 1.25rem; margin-block-start: 2rem; }
  .hes-bridge__panel { grid-template-columns: 1fr; padding: 1rem; }
  .hes-bridge__copy { grid-column: 1; max-inline-size: none; }
  .hes-bridge__space { display: none; }
  .hes-enquiry__form-panel { padding: 1rem; }
  .hes-hosting__action { width: 100%; padding: 1rem; }
  .hes-hosting__action .button,
  .hes-bridge__copy .button,
  .hes-enquiry__form-panel .button { width: 100%; }
  .hes-success { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hes-info-card,
  .hes-rhythm-card,
  .hes-hosting-card,
  .hes-suitability-card,
  .hes-hero__media img,
  .hes-dining__media img,
  .hes-table-invitation__media img {
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
  }
}
