:root {
  --hero-inline-inset: clamp(24px, 13.5%, calc((100% - 1160px) / 2));
  --hero-inline-end: clamp(24px, 5%, 112px);
  --hero-intro-background: radial-gradient(ellipse at 74% 18%, #122039, #090f1c 88%);
}

:where(#home-hero-v4, .dds-audience-hero-frame)[hidden] {
  display: none;
}

@media (max-width: 1023px) {
  :where(#home-hero-v4,.dds-audience-hero-frame):not([hidden]) {
    display: block;
    width: 100%;
    height: clamp(500px, calc(100svh - 64px), 860px);
    border: 0;
    background: #060b16;
  }
  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy {
    padding-block: 36px;
  }
}

@media (min-width: 1024px) {
  :where(#home-hero-v4, .dds-audience-hero-frame):not([hidden]) {
    display: block;
    width: 100vw;
    max-width: none;
    margin-inline: calc((100% - 100vw) / 2);
    height: clamp(560px, 86vh, 820px);
    border: 0;
    background: #060b16;
  }

  body:has(:is(#home-hero-v4, .dds-audience-hero-frame):not([hidden])) .ddscore-header .ddscore-header-inner {
    width: 100%;
    max-width: 1920px;
    padding-inline: var(--hero-inline-inset) var(--hero-inline-end);
  }

  main:has(> .dds-audience-hero-frame:not([hidden])) {
    container-type: inline-size;
  }

  .dds-audience-hero-frame:not([hidden]) + :is(.journalists, .research-audience) {
    padding-block-start: 0;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(22px, 2.5cqw, 36px);
    width: 100cqw;
    max-width: none;
    margin-inline: calc((100% - 100cqw) / 2);
    padding-block: clamp(30px, 3cqw, 54px);
    padding-inline: clamp(24px, 13.5cqw, calc((100cqw - 1160px) / 2)) clamp(24px, 5cqw, 112px);
    background: var(--hero-intro-background);
    text-align: left;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy > :is(p, h1) {
    grid-column: 1;
    margin: 0 0 12px;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy h1 {
    font-size: clamp(36px, 3vw, 48px) !important;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy :is(h1 span, .fp-eyebrow, .journalists-label, .research-label) {
    color: #3b82f6;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy > p:nth-last-child(2) {
    max-width: 800px;
    margin: 0;
    font-size: 17px;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy > :is(.fp-actions, .journalists-actions, .research-actions) {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    justify-content: flex-end;
    gap: 10px 16px;
    margin: 0;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy .ddscore-btn {
    margin: 0;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy .ddscore-btn-primary {
    background: #8abaff;
    border-color: #8abaff;
    color: #0b1220;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy .ddscore-btn-primary:is(:hover, :focus-visible) {
    background: #add0ff;
    border-color: #add0ff;
    color: #0b1220;
  }
}

/* Keep the Full HD header gutters when its viewport is wider than the film. */
@media (min-width: 1921px) {
  body:has(:is(#home-hero-v4, .dds-audience-hero-frame):not([hidden])) .ddscore-header .ddscore-header-inner {
    padding-inline: 259.2px 96px;
  }

  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy {
    position: relative;
    isolation: isolate;
  }
  .dds-audience-hero-frame:not([hidden]) + div > .dds-audience-hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: inherit;
  }
}
