.strategies-section {
  padding-top: 60px;
  background: var(--dark-blue);
  color: var(--white);
}

.strategies-section .strategies-title .s-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.strategies-section .strategies-title .text-lg,
.strategies-section p {
  color: #fff;
}

.strategies-section .s-copy-body .s-card-title,
.strategies-section .s-copy-body p {
  color: #0E3F65;
}

.strategies-section .s-copy-body p {
  font-size: 25px;
  line-height: 35px;
}

.strategies-section .s-copy-body p,
h5 {
  font-size: 25px;
  line-height: 35px;
}

.strategies-section .s-title p {
  color: #fff;
  font-weight: 500;
  font-size: 25px;
  font-family: "Merriweather", serif;
  line-height: 35px;
}

.strategies-section select {
  position: relative;
  color: #0e3f65;
  font-size: 16px;
  font-family: "Roboto";
  font-weight: 600;
  border-radius: 5px;
  padding: 9px 35px 9px 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url('data:image/svg+xml,<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.67905 13.3005L-2.65193e-06 2.90711e-05L15.3581 3.04137e-05L7.67905 13.3005Z" fill="%230E3F65"/></svg>');
  background-repeat: no-repeat;
  background-position: 90% 56%;
  background-size: 15px;
}

.strategies-section select:hover {
  border-color: #fff;
  background-color: #0d71b9;
  cursor: pointer;
  color: #fff;
}

.strategies-section select:focus {
  border-color: #0d71b9;
  outline: 3px solid rgba(0, 187, 222, 0.3);
  outline-offset: 2px;
}

.strategies-section select option {
  background-color: #000;
  color: #fff;
}

.strategies-section .strategies-title {
  display: flex;
  align-items: flex-end;
  margin-bottom: 30px;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid #98c5ea;
}

.strategies-title p {
  max-width: 960px;
}


/* ------------------------------------------------------------------
   Demo filler before / after the section (delete in your site)
------------------------------------------------------------------ */
.page-block {
  display: flex;
  align-items: center;
  min-height: 60vh;
  min-height: 60svh;
}

.page-block h1,
.page-block h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  max-width: 20ch;
  margin: 0 0 1rem;
}

.page-block p {
  max-width: 52ch;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------------
   Section + header block (not pinned)
------------------------------------------------------------------ */
.strategies {
  position: relative;
  background: var(--dark-blue);
  color: #fff;
}

.stack-pin {
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-block: .5rem;
  background: var(--dark-blue);
  overflow: visible;
}

.stack-pin>.container {
  width: 100%;
}

/* ---- right column: text blocks that travel with the scroll ---- */
.stack-copy {
  position: relative;
  z-index: 3;
}

.s-copy-window {
  position: relative;
  height: var(--copy-h, 15.5rem);
  overflow: clip;
}

/* --copy-h is set by JS to the tallest block */
.s-copy-track {
  position: relative;
  will-change: transform;
}

.s-copy-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: var(--copy-h, 15.5rem);
}

.s-copy-item p {
  max-width: 36rem;
  color: #fff;
}

/* Controls (compact on mobile: dots + counter) */
.stack-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
}

.stack-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}

.stack-btn:hover {
  background: #fff;
  color: var(--dark-blue);
}

.stack-btn[aria-disabled="true"] {
  opacity: .35;
  cursor: default;
}

.stack-btn[aria-disabled="true"]:hover {
  background: transparent;
  color: #fff;
}

.stack-btn svg {
  width: 20px;
  height: 20px;
}

.stack-dots {
  display: flex;
  align-items: center;
}

.stack-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.stack-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  opacity: .5;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, opacity .25s;
}

.stack-dot[aria-current="true"]::before {
  width: 22px;
  opacity: 1;
}

.stack-counter {
  margin: 0 0 0 .5rem;
  font-size: .875rem;
  color: #d3e4f4;
  font-variant-numeric: tabular-nums;
}

.stack-btn:focus-visible,
.stack-dot:focus-visible,
.stack-swiper:focus-visible,
.v-btn.btn-white:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.stack-swiper:focus-visible {
  outline-offset: 12px;
  border-radius: 20px;
}

.visually-hidden-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- left column: the card stack ---- */
.stack-stage {
  /* card width = whatever height is left after the text window, dots and padding */
  --card-w: max(170px, min(100%, 400px, calc((100svh - var(--copy-h, 15.5rem) - 235px) * 1.12)));
  /* room below the front card for the next card (~30% of its height) plus the strip of the one after */
  padding: .25rem 1.25rem calc(var(--card-w) * .32 + .5rem);
  overflow: visible;
  /* the incoming card starts outside this box */
}

.stack-swiper.swiper {
  width: 100%;
  margin-inline: auto;
  overflow: visible;
  touch-action: pan-y;
}

.stack-swiper .swiper-wrapper,
.stack-swiper .swiper-slide,
.stack-swiper.swiper-creative .swiper-slide {
  overflow: visible;
}

.stack-swiper .swiper-slide,
.stack-swiper.swiper-creative .swiper-slide {
  height: auto;
  will-change: transform, opacity;
}

.stack-card {
  --tilt: 4.5deg;
  --tint: 0;
  --sc: 1;
  position: relative;
  isolation: isolate;
  padding: 8px 8px 20px;
  border-radius: 14px;
  background: #fff;
  color: var(--dark-blue);
  box-shadow: 0 26px 50px -18px rgba(3, 20, 40, .65);
  transform: scale(var(--sc)) rotate(var(--tilt));
  transform-origin: 50% 50%;
  transition: opacity .3s;
}

.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #fff;
  opacity: var(--tint);
}

.s-card-media {
  margin: 0;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: #cfe0ef;
  position: relative;
}

.s-card-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
}

.s-card-play {
  position: absolute;
  z-index: 2;
}

.s-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-copy-body {
  padding: 1rem .9rem 0;
  opacity: calc(1 - var(--tint));
}

/* waiting cards show as blank blue slabs */
.s-card-title {
  margin: 0 0 .5rem;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.2;
}

.s-copy-name {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
}

.s-copy-role {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
  color: #0E3F65;
}

.stack-swiper.is-stacked .stack-card {
  transform:
    translate3d(var(--x, 0%), var(--y, 0%), 0) rotate(var(--tilt, 0deg)) scale(var(--sc, 1));
  opacity: var(--op, 1);
  will-change: transform, opacity;
}

/* Only the two cards behind the front card are visible */
.stack-swiper.is-stacked .swiper-slide-next+.swiper-slide~.swiper-slide .stack-card {
  opacity: 0;
}

.s-copy-content {
  margin-bottom: 30px;
}

/* ------------------------------------------------------------------
   Phones: tighter card text so the whole stack fits one screen
------------------------------------------------------------------ */
@media (max-width: 575.98px) {
  .stack-card {
    padding: 6px 6px 16px;
  }

  .s-copy-body {
    padding: .75rem .6rem 0;
  }

  .s-card-title {
    font-size: 1.05rem;
    margin-bottom: .35rem;
  }

  .s-copy-name,
  .s-copy-role {
    font-size: .875rem;
  }
}

/* ------------------------------------------------------------------
   Tablet portrait: a little more room for text
------------------------------------------------------------------ */


/* ------------------------------------------------------------------
   Desktop: cards left, scrolling text track right (vertical pager)
------------------------------------------------------------------ */
@media (min-width: 1199.98px) {
  .stack-pin {
    --cap: max(300px, min(480px, calc((100svh - 300px) * 1.15)));
    --stage-top: clamp(1.5rem, calc(100svh - 570px), 6rem);
    --stage-bottom: calc(var(--cap) * .32 + 1rem);
    --pitch: clamp(320px, 62svh, 560px);
  }

  .stack-pin>.container,
  .stack-pin .row {
    height: 100%;
  }

  .stack-stage {
    --card-w: min(100%, var(--cap));
    padding: var(--stage-top) 1.5rem var(--stage-bottom);
  }

  .stack-copy {
    height: 100%;
    align-self: stretch;
  }

  .s-copy-window {
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 91%, transparent 100%);
  }

  /* first block's centre = the active card's centre */
  .s-copy-track {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - var(--pitch) / 2 + (var(--stage-top) - var(--stage-bottom)) / 2);
  }

  .s-copy-item {
    justify-content: center;
    height: var(--pitch);
    min-height: 0;
	padding-left:10px;
  }

  .stack-controls {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: .25rem;
    margin: 0;
  }

  .stack-btn {
    display: inline-grid;
  }

  .stack-dots {
    flex-direction: column;
  }

  .stack-dot[aria-current="true"]::before {
    width: 8px;
    height: 22px;
  }

  .stack-counter {
    margin: .5rem 0 0;
  }

  .stack-controls {
    display: none;
  }
}

/* ------------------------------------------------------------------
   Reduced motion: no pin, no scrubbed animation, one block at a time
------------------------------------------------------------------ */
.strategies.is-reduced .stack-pin {
  height: auto;
  min-height: 100svh;
}

.strategies.is-reduced .s-copy-window {
  height: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.strategies.is-reduced .s-copy-track {
  position: static;
}

.strategies.is-reduced .s-copy-item {
  height: auto;
  min-height: 0;
}

.strategies.is-reduced .stack-card {
  transform: none;
}

/* --op/--tint are never set outside .is-stacked, so no other override is needed */
/* Mobile */
@media (max-width: 1199px) {
  .s-copy-item p {
    max-width: 100%;
    color: #fff;
  }

  .stack-stage {
    padding: 10px;
  }

  .stack-btn {
    display: block;
  }

  .stack-controls {
    margin-top: 30px;
    justify-content: center;
  }

  .strategies.is-reduced .stack-pin {
    height: auto;
    min-height: auto;
    padding-bottom: 50px;
  }

  .strategies-section .s-title p {
    font-size: 20px;
    line-height: 1.3;
  }
}

@media (max-width: 767.98px) {
  .strategies-section {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ------------------------------------------------------------------
   Card video + play button
------------------------------------------------------------------ */
.s-card-media {
  position: relative;
}

.s-card-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  /* the custom play button is the only way in; avoids duplicate controls */
}

.s-card-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(3, 20, 40, .55);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
  z-index: 1;
}

.s-card-play svg {
  width: 26px;
  height: 26px;
}

.s-card-play:hover,
.s-card-play:focus-visible {
  background: var(--dark-blue);
  transform: scale(1.06);
}

.s-card-play:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------
   Video modal
------------------------------------------------------------------ */
#stackVideoModal .modal-content {
  background: #000;
}

#stackVideoModal .modal-header {
  border-bottom: 0;
}

#stackVideoModal .modal-title {
  color: #fff;
  font-size: 1rem;
}

#stackVideoModal .modal-body {
  padding: 0;
}

#stackVideoModal .ratio iframe {
  border: 0;
}