/* Content group 1: eyebrow, title, rich text description and buttons.
   Follows the left-hand copy column of AEP prototype sections 01.1, 02.1 and 02.3.
   The background is deliberately transparent: the drag-and-drop section supplies
   the background colour or image. Colour tokens are a fallback until the theme
   fields are aligned (see actions/aep/theme-actions.csv). */
.integral-content-group-1-container {
  --icg1-imperial: #0F145B;
  --icg1-imperial-30: #B7B9CE;
  --icg1-electric: #283A97;
  --icg1-serene: #00B7F1;
  --icg1-access: #007BC1;
  --icg1-feature: #F37121;
  --icg1-ink: #13163F;
  --icg1-font-display: 'Red Hat Display', 'Segoe UI', Arial, sans-serif;
  --icg1-font-body: 'Red Hat Text', 'Segoe UI', Arial, sans-serif;
  --icg1-ease: cubic-bezier(.2, .7, .2, 1);
  --icg1-dur: 220ms;
  /* Colours for dark text on a light background (default) */
  --icg1-eyebrow: var(--icg1-access);
  --icg1-heading: var(--icg1-imperial);
  --icg1-text: var(--icg1-ink);
  --icg1-link: var(--icg1-electric);
  --icg1-link-hover: var(--icg1-access);
  --icg1-crumb-link: var(--icg1-electric);
  --icg1-crumb-current: var(--icg1-imperial);
  --icg1-crumb-hover: var(--icg1-access);

  /* The container is full width (background, dots and a full-width image run edge to edge). Inside it,
     .icg1-band takes the spacing and .icg1-content holds the primary and secondary sides, capped and centred. */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: transparent;
  color: var(--icg1-text);
  font-family: var(--icg1-font-body);
  font-size: 17px;
  line-height: 1.6;

  /* Slideshow containment: the container must be positioned so the absolutely
     positioned carousel is sized and clipped by it, and must form its own stacking
     context so the carousel sits behind the sides without dropping behind the
     section background. */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(360px, 45vw, 640px);
}

/* Spacing: padding comes inline from module.styles.spacing.css, which replaces this fallback */
.integral-content-group-1-container .icg1-band {
  display: flex;
  flex: 1 1 auto;
  padding: 48px 40px;
}

/* --icg1-max-width is set inline from module.styles.max_content_width_px, and only when it has a value.
   Without it there is no limit. Otherwise the content is centred at that width, excluding the spacing. */
.integral-content-group-1-container .icg1-content {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  gap: 22px;
  min-width: 0;
  max-width: var(--icg1-max-width, none);
  margin-inline: auto;
}

/* ---------- Background slideshow ---------- */
.integral-content-group-1-container .carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.integral-content-group-1-container .carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.integral-content-group-1-container .carousel img.is-active {
  opacity: 1;
}

/* Without JavaScript, show the first slide only */
.integral-content-group-1-container:not(.is-initialised) .carousel img:first-child {
  opacity: 1;
}

/* Scrim so foreground text stays legible over photography. module.styles.gradient.css (set inline as
   --icg1-gradient, when it has a value) is the only source of the scrim: without it there is none. */
.integral-content-group-1-container .carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--icg1-gradient, none);
  pointer-events: none;
}

/* ---------- Slide controls (built by module.js): dots, pause, progress, caption ----------
   Follows .hero-ui in the AEP prototype (section 01.1). */
.integral-content-group-1-container--image-full.is-initialised {
  /* Leave room for the controls below the band */
  padding-bottom: 56px;
}

.integral-content-group-1-container .carousel-controls {
  position: absolute;
  /* In line with the capped content, when there is a max width */
  left: calc(max(0px, (100% - var(--icg1-max-width, 100%)) / 2) + 40px);
  right: calc(max(0px, (100% - var(--icg1-max-width, 100%)) / 2) + 40px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #FFFFFF;
}

.integral-content-group-1-container .carousel-dots {
  display: flex;
  gap: 2px;
}

.integral-content-group-1-container .carousel-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.integral-content-group-1-container .carousel-dot::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transition: width var(--icg1-dur) var(--icg1-ease),
              background-color var(--icg1-dur) var(--icg1-ease);
}

.integral-content-group-1-container .carousel-dot[aria-current="true"]::before {
  width: 22px;
  border-radius: 6px;
  background: var(--icg1-serene);
}

.integral-content-group-1-container .carousel-pause {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color var(--icg1-dur) var(--icg1-ease),
              border-color var(--icg1-dur) var(--icg1-ease);
}

.integral-content-group-1-container .carousel-pause:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #FFFFFF;
}

.integral-content-group-1-container .carousel-dot:focus-visible,
.integral-content-group-1-container .carousel-pause:focus-visible {
  outline: 3px solid var(--icg1-serene);
  outline-offset: 2px;
}

.integral-content-group-1-container .carousel-pause svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.integral-content-group-1-container .carousel-progress {
  flex: none;
  width: 120px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}

.integral-content-group-1-container .carousel-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--icg1-serene);
  animation: icg1-progress var(--icg1-slide-seconds, 5s) linear forwards;
}

.integral-content-group-1-container.is-paused .carousel-progress span,
.integral-content-group-1-container.is-paused .carousel img.is-active,
.integral-content-group-1-container.is-paused .carousel img.is-leaving {
  animation-play-state: paused;
}

@keyframes icg1-progress {
  to { width: 100%; }
}

/* ---------- Ken Burns zoom (module.ken_burns_zoom) ----------
   Slow zoom-out on the active slide, lasting the slide time plus the 1s cross-fade. */
.integral-content-group-1-container--ken-burns .carousel img.is-active,
.integral-content-group-1-container--ken-burns .carousel img.is-leaving {
  animation: icg1-ken-burns calc(var(--icg1-slide-seconds, 5s) + 1s) linear both;
}

@keyframes icg1-ken-burns {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

.integral-content-group-1-container .carousel-caption {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
}

/* ---------- Foreground sides (above the slideshow) ---------- */
.integral-content-group-1-container .primary-side,
.integral-content-group-1-container .secondary-side {
  position: relative;
  z-index: 1;
}

.integral-content-group-1-container .primary-side {
  flex: 1 1 0;
  min-width: 0;
}

.integral-content-group-1-container .secondary-side {
  flex: 0 1 auto;
  /* Fill the row's height in every image mode (as the primary side does), so the section's
     vertical_align (justify-content) has room to take effect. Without this, with the image
     behind everything (--image-full), the side shrinks to its content and sits at the top. */
  align-self: stretch;
}

.integral-content-group-1-container .primary-side {
  display: flex;
  flex-direction: column;
  /* Defaults: left-aligned and centred vertically. Spacing and alignment (module.styles.primary_section.spacing
     and alignment) are applied inline and override these. */
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
  gap: 22px;
  box-sizing: border-box;
  background: transparent;
  color: var(--icg1-text);
  font-family: var(--icg1-font-body);
  font-size: 17px;
  line-height: 1.6;
}

/* Light text, for use on a dark background */
.integral-content-group-1-container--light {
  --icg1-eyebrow: var(--icg1-serene);
  --icg1-heading: #FFFFFF;
  --icg1-text: rgba(255, 255, 255, .86);
  --icg1-link: #FFFFFF;
  --icg1-link-hover: var(--icg1-serene);
  --icg1-crumb-link: rgba(255, 255, 255, .86);
  --icg1-crumb-current: var(--icg1-serene);
  --icg1-crumb-hover: #FFFFFF;
}

.integral-content-group-1-container *,
.integral-content-group-1-container *::before,
.integral-content-group-1-container *::after {
  box-sizing: border-box;
}

/* ---------- Eyebrow ---------- */
.integral-content-group-1-container .integral-content-group-1__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 13px/1.2 var(--icg1-font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--icg1-eyebrow);
}

.integral-content-group-1-container .integral-content-group-1__eyebrow::before {
  content: '';
  flex: none;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--icg1-feature);
}

/* ---------- Breadcrumbs ----------
   Follows .crumbs in the AEP prototype (section 02.1). */
.integral-content-group-1-container .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 400 14px/1.4 var(--icg1-font-body);
  color: var(--icg1-crumb-link);
}

.integral-content-group-1-container .breadcrumbs a {
  color: var(--icg1-crumb-link);
  text-decoration: none;
  text-underline-offset: .22em;
  transition: color var(--icg1-dur) var(--icg1-ease);
}

.integral-content-group-1-container .breadcrumbs a:hover {
  color: var(--icg1-crumb-hover);
  text-decoration: underline;
}

.integral-content-group-1-container .breadcrumbs a:focus-visible {
  outline: 3px solid var(--icg1-serene);
  outline-offset: 2px;
  border-radius: 2px;
}

.integral-content-group-1-container .breadcrumbs .delimiter {
  opacity: .5;
}

.integral-content-group-1-container .breadcrumbs .current {
  color: var(--icg1-crumb-current);
  font-weight: 600;
}

/* ---------- Title ---------- */
.integral-content-group-1-container .integral-content-group-1__title {
  margin: 0;
  font: 700 clamp(30px, 3.2vw, 44px)/1.12 var(--icg1-font-display);
  letter-spacing: -0.012em;
  color: var(--icg1-heading);
  text-wrap: balance;
}

/* ---------- Description (rich text) ---------- */
.integral-content-group-1-container .integral-content-group-1__description {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 68ch;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--icg1-text);
}

.integral-content-group-1-container .integral-content-group-1__description > * {
  margin: 0;
}

.integral-content-group-1-container .integral-content-group-1__description p {
  text-wrap: pretty;
}

.integral-content-group-1-container .integral-content-group-1__description ul,
.integral-content-group-1-container .integral-content-group-1__description ol {
  padding-left: 1.25em;
}

.integral-content-group-1-container .integral-content-group-1__description a {
  color: var(--icg1-link);
  text-underline-offset: .22em;
}

.integral-content-group-1-container .integral-content-group-1__description a:hover {
  color: var(--icg1-link-hover);
}

/* ---------- Buttons ---------- */
.integral-content-group-1-container .integral-content-group-1__buttons {
  display: flex;
  flex-wrap: wrap;
  /* --icg1-justify is set inline by the section's horizontal_align, so wrapped buttons stay aligned too */
  justify-content: var(--icg1-justify, flex-start);
  gap: 12px;
  /* Above the energy circles, so they do not show through filled buttons (the circles are positioned, which
     paints them over non-positioned content) */
  position: relative;
  z-index: 1;
}

.integral-content-group-1-container .integral-content-group-1__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: 5px;
  gap: 10px;
  /* Font family, transform and size are overridden from the theme's button settings
     on HubSpot (see the <style> block in module.html) */
  font-family: var(--icg1-button-font-family, var(--icg1-font-display));
  font-size: var(--icg1-button-font-size, 16px);
  font-weight: 700;
  line-height: 22px;
  text-transform: var(--icg1-button-text-transform, none);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--icg1-dur) var(--icg1-ease),
              color var(--icg1-dur) var(--icg1-ease),
              border-color var(--icg1-dur) var(--icg1-ease),
              transform var(--icg1-dur) var(--icg1-ease);
}

.integral-content-group-1-container .integral-content-group-1__button:active {
  transform: translateY(1px);
}

.integral-content-group-1-container .integral-content-group-1__button:focus-visible {
  outline: 3px solid var(--icg1-serene);
  outline-offset: 3px;
}

.integral-content-group-1-container .integral-content-group-1__button-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--icg1-dur) var(--icg1-ease);
}

.integral-content-group-1-container .integral-content-group-1__button:hover .integral-content-group-1__button-icon {
  transform: translateX(3px);
}

/* Primary (light background): Electric fill, Serene on hover */
.integral-content-group-1-container .integral-content-group-1__button--primary {
  --icg1-button-font-family: var(--icg1-button-primary-font-family, var(--icg1-font-display));
  --icg1-button-text-transform: var(--icg1-button-primary-text-transform, none);
  background: var(--icg1-electric);
  color: #FFFFFF;
}

.integral-content-group-1-container .integral-content-group-1__button--primary:hover {
  background: var(--icg1-serene);
  color: var(--icg1-imperial);
}

/* Ghost (light background): outlined, Imperial fill on hover */
.integral-content-group-1-container .integral-content-group-1__button--ghost {
  --icg1-button-font-family: var(--icg1-button-ghost-font-family, var(--icg1-font-display));
  --icg1-button-text-transform: var(--icg1-button-ghost-text-transform, none);
  background: transparent;
  color: var(--icg1-imperial);
  border-color: var(--icg1-imperial-30);
}

.integral-content-group-1-container .integral-content-group-1__button--ghost:hover {
  background: var(--icg1-imperial);
  border-color: var(--icg1-imperial);
  color: #FFFFFF;
}

/* Dark background variants: Serene primary, white-outlined ghost */
.integral-content-group-1-container--light .integral-content-group-1__button--primary {
  background: var(--icg1-serene);
  color: var(--icg1-imperial);
}

.integral-content-group-1-container--light .integral-content-group-1__button--primary:hover {
  background: var(--icg1-electric);
  color: #FFFFFF;
}

.integral-content-group-1-container--light .integral-content-group-1__button--ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, .45);
}

.integral-content-group-1-container--light .integral-content-group-1__button--ghost:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--icg1-imperial);
}

/* ---------- Background dots (module.background_dots) ----------
   Follows .dots in the AEP prototype (brand guide p.37). */
.integral-content-group-1-container .icg1-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 183, 241, .55) 1.2px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(105deg, transparent 25%, #000 90%);
  mask-image: linear-gradient(105deg, transparent 25%, #000 90%);
}

/* ---------- Image in the secondary side (module.image_position = secondary) ----------
   The image fills the secondary side edge to edge (top, right and bottom of the container).
   The two corners nearest the centre of the container are fully rounded, as in the prototype's
   .banner-media (section 02.1). */
.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) {
  --icg1-media-radius: 999px 0 0 999px;
  --icg1-ring: var(--icg1-access);
  /* Height follows the copy and the spacing. The image stretches to suit. */
  min-height: 0;
}

.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .icg1-content {
  align-items: stretch;
  gap: 40px;
}

.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--light {
  --icg1-ring: var(--icg1-serene);
}

.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .primary-side {
  z-index: 2; /* above the energy circles */
}

.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .secondary-side {
  z-index: 1;
  flex: 0 0 44%;
  min-width: 0;
}

/* The image (with the rings and controls) sits on top; the description follows underneath
   as a pull-out figure (prototype section 02.3) */
.integral-content-group-1-container .secondary-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* with no image, the copy sits at the bottom, level with the primary side's last line */
  gap: 24px;
}

.integral-content-group-1-container .secondary-media {
  align-self: stretch; /* keeps its width when the section is aligned centre or right */
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
}

/* Pull-out figure (prototype section 02.3 .callout): a big figure (the title) beside the paragraph,
   vertically centred. Either can be absent, and the panel is hidden when both are. */
.integral-content-group-1-container .description_text {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  flex: none;
  position: relative;
  z-index: 1; /* above the energy circles, so they do not show through the panel's colour */
  padding: clamp(24px, 3vw, 40px);
  border-radius: 16px;
  /* Transparent unless module.description_secondary_background.color is set (inline style) */
  background: transparent;
  color: var(--icg1-text);
  font-size: 17px;
  line-height: 1.5;
}

.integral-content-group-1-container .description_text:not(:has(> *)) {
  display: none;
}

.integral-content-group-1-container .description_text > :only-child {
  grid-column: 1 / -1;
}

.integral-content-group-1-container .description_text__title {
  font: 800 clamp(56px, 6vw, 88px)/1 var(--icg1-font-display);
  letter-spacing: -.02em;
  color: var(--icg1-electric);
}

.integral-content-group-1-container--light .description_text__title {
  color: var(--icg1-serene);
}

.integral-content-group-1-container .description_text__paragraph p {
  margin: 0;
}

.integral-content-group-1-container .description_text__paragraph p + p {
  margin-top: .75em;
}

.integral-content-group-1-container .description_text strong {
  color: inherit;
  font-weight: 800;
}

/* module.extend_secondary_image_to_boundary = false: the image stops at the content edge, so it
   lines up with the description panel.
   = true: the image runs on to the edge of the container, past the spacing and any max width.
   module.js measures that distance into --icg1-bleed-left and --icg1-bleed-right (0 without JavaScript).
   Only the outer side grows; stacked, both do. */
.integral-content-group-1-container--extend-image-true .secondary-media .carousel {
  right: calc(-1 * var(--icg1-bleed-right, 0px));
}

@media (min-width: 801px) {
  .integral-content-group-1-container--extend-image-true.integral-content-group-1-container--primary-right .secondary-media .carousel {
    right: 0;
    left: calc(-1 * var(--icg1-bleed-left, 0px));
  }
}

@media (max-width: 800px) {
  .integral-content-group-1-container--extend-image-true .secondary-media .carousel {
    left: calc(-1 * var(--icg1-bleed-left, 0px));
  }
}

.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .carousel {
  border-radius: var(--icg1-media-radius);
}

/* Bottom scrim only: the controls sit over the image */
.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .carousel::after {
  background: var(--icg1-gradient, none);
}

/* The bottom-left corner is a large curve, so keep the controls clear of it */
.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .carousel-controls {
  left: 26%;
  right: 24px;
  bottom: 24px;
}

.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .carousel-progress {
  display: none; /* the narrower controls area has no room for it */
}

.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .carousel-caption {
  /* Wraps onto further lines; the controls row centres items, so the caption's middle stays level with
     the dots and pause button */
  flex: 1 1 0;
  min-width: 0;
  text-align: right;
  line-height: 1.3;
}

.integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .carousel-dots {
  flex: none;
}

/* ---------- Primary side on the right (module.primary_side = right) ----------
   The DOM order is unchanged (copy first), so reading order and the stacked layout stay copy-first.
   Above 800px the sides swap visually. The copy stays left-aligned at every width. */

/* The image fills the container, so the copy moves over it; the scrim darkens the right instead */
.integral-content-group-1-container--primary-right.integral-content-group-1-container--image-full .icg1-content {
  flex-direction: row-reverse;
}

.integral-content-group-1-container--primary-right.integral-content-group-1-container--image-full .carousel::after {
  background: var(--icg1-gradient, none);
}

@media (min-width: 801px) {
  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right {
    --icg1-media-radius: 0 999px 999px 0;
  }

  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right .icg1-content {
    flex-direction: row-reverse;
  }

  /* Controls keep clear of the rounded bottom-right corner */
  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right .carousel-controls {
    left: 24px;
    right: 26%;
  }

  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right .carousel-caption {
    text-align: left;
  }

  /* Rings centre on the image's right edge, turning the other way so the fade faces away from the image */
  .integral-content-group-1-container.integral-content-group-1-container--primary-right .icg1-energy-circles {
    left: auto;
    right: 0;
    animation-direction: reverse;
  }

  .integral-content-group-1-container.integral-content-group-1-container--primary-right .icg1-energy-circles span {
    scale: -1 1;
  }
}

/* ---------- Image behind everything (module.image_position = full) ----------
   The height follows the copy. The slide controls stay at the bottom left, in the strip reserved
   by the container's bottom padding (see .is-initialised above). */
.integral-content-group-1-container--image-full {
  min-height: 0;
}

/* The secondary side drops underneath the primary side when the primary side would be narrower than
   --icg1-primary-min-width (content driven, so it also reacts to a max width or a narrow column, not just
   the viewport). The primary side takes nearly all the spare room when side by side (grow 1000 against 1);
   once wrapped, the secondary side fills its own row so its alignment settings still apply across the width. */
.integral-content-group-1-container--image-full .icg1-content {
  flex-wrap: wrap;
  row-gap: 40px;
}

.integral-content-group-1-container--image-full .primary-side {
  flex: 1000 1 var(--icg1-primary-min-width, 280px);
}

.integral-content-group-1-container--image-full .secondary-side {
  /* Hugs its content, so the rings stay centred behind it. When wrapped onto its own row, the
     secondary section's horizontal_align places it (auto margins, set inline in module.html). */
  flex: 0 1 auto;
}

/* No image in the secondary side: the rings centre on the secondary side (behind the buttons or figure)
   rather than on an image edge */
.integral-content-group-1-container.integral-content-group-1-container--image-full .icg1-energy-circles {
  left: 50%;
  right: auto;
}

/* The secondary side is a size container so the rings can be sized from the container's height */
@supports (width: 1cqh) {
  .integral-content-group-1-container .icg1-energy-field {
    container-type: size;
  }

  .integral-content-group-1-container .icg1-energy-circles span {
    --size-cq: max(0px, calc(100cqh - (5 - var(--i)) * 24px));
  }
}

/* Fills the secondary side, which is as tall as the whole container. It sets the middle the rings
   are centred on and the height they are sized from, without adding to the container's height. */
.integral-content-group-1-container .icg1-energy-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Energy circles (module.energy_circle) ----------
   Eight closely spaced concentric rings centred on the middle of the secondary image's left edge.
   Follows the radial element in the prototype (brand guide p.36; assets/02 Section landing ·
   About-selection.png): every ring shares one fade, brightest at the top, fading through the
   right and bottom to nothing at the lower left, then brightening again up the left side. The
   rings turn together so the fade stays aligned. The container has no size, so it spins about
   the centre of the rings. */
.integral-content-group-1-container .icg1-energy-circles {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
  animation: icg1-spin 80s linear infinite;
}

.integral-content-group-1-container .icg1-energy-circles span {
  /* Rings are 24px wider than each other (12px apart). The 3rd ring from the outside (--i: 5) is as
     wide as the container is tall, so it touches the top and bottom edges. Without container query
     units, a fixed 292px to 460px set is used instead. */
  --size: calc(292px + var(--i) * 24px);
  position: absolute;
  top: 0;
  left: 0;
  width: var(--size);
  height: var(--size);
  width: var(--size-cq, var(--size));
  height: var(--size-cq, var(--size));
  translate: -50% -50%;
  border: 1.5px solid var(--icg1-ring, var(--icg1-serene));
  border-radius: 50%;
  opacity: calc(1 - var(--i) * .05);
  -webkit-mask-image: conic-gradient(from 0deg, #000 0deg, rgba(0, 0, 0, .8) 90deg, rgba(0, 0, 0, .12) 180deg, transparent 225deg, rgba(0, 0, 0, .55) 270deg, rgba(0, 0, 0, .95) 330deg, #000 360deg);
  mask-image: conic-gradient(from 0deg, #000 0deg, rgba(0, 0, 0, .8) 90deg, rgba(0, 0, 0, .12) 180deg, transparent 225deg, rgba(0, 0, 0, .55) 270deg, rgba(0, 0, 0, .95) 330deg, #000 360deg);
}

@keyframes icg1-spin {
  to { rotate: 360deg; }
}

@media (max-width: 800px) {
  .integral-content-group-1-container .icg1-band {
    padding: 40px 24px;
  }

  /* Stack: copy first, then the image, with the top corners (nearest the copy) rounded */
  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) {
    --icg1-media-radius: 999px 999px 0 0;
  }

  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .icg1-content {
    flex-direction: column;
    gap: 40px;
  }

  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .secondary-side {
    flex: none;
  }

  .integral-content-group-1-container .description_text {
    grid-template-columns: minmax(0, 1fr);
  }

  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none) .carousel-controls {
    left: 24px;
  }

  .integral-content-group-1-container .icg1-energy-circles {
    display: none;
  }

  /* Primary side on the right: when stacked, the image goes to the top and the copy to the bottom
     (visual order only) and the image's bottom corners are rounded towards the copy */
  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right {
    --icg1-media-radius: 0 0 999px 999px;
  }

  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right .icg1-content {
    flex-direction: column-reverse;
  }

  /* The rounded corners are now at the bottom, so the controls move to the top, with the scrim */
  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right .carousel-controls {
    top: 24px;
    bottom: auto;
  }

  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right .carousel::after {
    background: var(--icg1-gradient, none);
  }

  .integral-content-group-1-container:is(.integral-content-group-1-container--image-secondary, .integral-content-group-1-container--image-none).integral-content-group-1-container--primary-right .carousel-caption {
    text-align: right;
  }

}

@media (max-width: 640px) {
  .integral-content-group-1-container {
    font-size: 16px;
  }

  .integral-content-group-1-container .carousel-progress,
  .integral-content-group-1-container .carousel-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .integral-content-group-1-container .icg1-energy-circles {
    animation: none;
  }

  .integral-content-group-1-container--ken-burns .carousel img.is-active,
  .integral-content-group-1-container--ken-burns .carousel img.is-leaving {
    animation: none;
  }

  .integral-content-group-1-container .carousel img,
  .integral-content-group-1-container .carousel-dot::before,
  .integral-content-group-1-container .carousel-pause,
  .integral-content-group-1-container .carousel-progress span,
  .integral-content-group-1-container .breadcrumbs a,
  .integral-content-group-1-container .integral-content-group-1__button,
  .integral-content-group-1-container .integral-content-group-1__button-icon {
    transition: none;
  }
}
