.sf-hero-bg {
  /* Figma stops: #CCC0F4 at 0%, #74A2DE at 37% — reversed so blue sits on the left */
  background: linear-gradient(270deg, #ccc0f4 0%, #74a2de 37%);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

#success-stories {
  overflow-x: clip;
  overflow-y: visible;
}

.sf-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.sf-header.is-stuck {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 45, 90, 0.1);
  box-shadow: 0 6px 24px rgba(59, 88, 162, 0.14);
}

.sf-header-inner {
  transition: padding 0.35s ease;
}

.sf-header.is-stuck .sf-header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.sf-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 3.5rem;
  object-fit: contain;
  transition: max-height 0.35s ease, height 0.35s ease;
}

.sf-logo-ioptime img {
  height: 3.5rem;
  max-height: 3.5rem;
}

.sf-logo-partner {
  height: 3rem;
  max-height: 3rem;
}

.sf-logo-divider {
  height: 2.5rem;
}

.sf-header.is-stuck .sf-logo-ioptime img {
  height: 2.625rem;
  max-height: 2.625rem;
}

.sf-header.is-stuck .sf-logo-partner {
  height: 2.25rem;
  max-height: 2.25rem;
}

.sf-header.is-stuck .sf-logo-divider {
  height: 1.75rem;
}

/* The fixed header no longer reserves space, so the hero pads itself */
.sf-hero {
  padding-top: 104px;
}

@media (min-width: 1024px) {
  .sf-hero {
    padding-top: 128px;
  }
}

section[id] {
  scroll-margin-top: 120px;
}

.sf-nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sf-nav-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-nav-link:hover {
  color: #fff;
}

.sf-nav-link.active {
  color: #fff;
  font-weight: 700;
}

.sf-nav-link.active::after {
  transform: scaleX(1);
}

.sf-mobile-link {
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.sf-mobile-link:hover,
.sf-mobile-link:focus-visible {
  padding-left: 6px;
}

.sf-mobile-link.active {
  font-weight: 700;
  padding-left: 10px;
  box-shadow: inset 2px 0 0 currentColor;
}

/* Pinned header sits on white, so the nav flips to the page palette */
.sf-header.is-stuck .sf-nav-link {
  color: rgba(26, 45, 90, 0.78);
}

.sf-header.is-stuck .sf-nav-link:hover {
  color: #3b58a2;
}

.sf-header.is-stuck .sf-nav-link.active {
  color: #3b58a2;
}

.sf-header.is-stuck #menuBtn {
  color: #21288f;
}

.sf-header.is-stuck #mobileMenu {
  background: rgba(255, 255, 255, 0.97);
  border-top-color: rgba(26, 45, 90, 0.12);
}

.sf-header.is-stuck .sf-mobile-link {
  color: #21288f;
}

.sf-header.is-stuck .sf-mobile-link:hover,
.sf-header.is-stuck .sf-mobile-link:focus-visible,
.sf-header.is-stuck .sf-mobile-link.active {
  color: #3b58a2;
}

@media (prefers-reduced-motion: reduce) {

  .sf-header,
  .sf-header-inner,
  .sf-logo img,
  .sf-nav-link,
  .sf-nav-link::after,
  .sf-mobile-link {
    transition: none;
  }
}

.sf-section-bg {
  background: linear-gradient(270deg, #ccc0f4 0%, #74a2de 37%);
}

.sf-grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

.sf-lens-flare {
  background: radial-gradient(ellipse 55% 45% at 8% 12%,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.12) 35%,
      transparent 70%);
}

/* Hero capability diagram — soft brightness lift, not a flashy glow */
.sf-hero-diagram-svg {
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.22)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.1)) brightness(1.08);
  overflow: visible;
}

.sf-hero-diagram-svg .hero-node {
  cursor: pointer;
}

.sf-hero-diagram-svg .hero-node-hit {
  fill: transparent;
  pointer-events: all;
}

.sf-hero-diagram-svg .hero-node-halo {
  fill: rgba(255, 255, 255, 0.342);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.7);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  filter: url(#heroNodeGlow);
}

.sf-hero-diagram-svg .hero-node-ring {
  fill: rgba(59, 88, 162, 0.35);
  stroke: #3B58A2;
  stroke-width: 1.75;
  transition:
    fill 0.3s ease,
    stroke 0.3s ease,
    stroke-width 0.3s ease,
    filter 0.3s ease;
  pointer-events: none;
}

.sf-hero-diagram-svg .hero-node-core {
  fill: #21288F;
  transition:
    fill 0.3s ease,
    filter 0.3s ease;
  pointer-events: none;
}

.sf-hero-diagram-svg .hero-node-label {
  fill: #fff;
  transition:
    fill 0.3s ease,
    filter 0.35s ease;
  pointer-events: none;
}

.sf-hero-diagram-svg .hero-node:hover .hero-node-halo,
.sf-hero-diagram-svg .hero-node:focus-within .hero-node-halo {
  opacity: 0.4;
  transform: scale(1);
}

.sf-hero-diagram-svg .hero-node:hover .hero-node-ring,
.sf-hero-diagram-svg .hero-node:focus-within .hero-node-ring {
  fill: rgba(255, 255, 255, 0.35);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45));
}

.sf-hero-diagram-svg .hero-node:hover .hero-node-core,
.sf-hero-diagram-svg .hero-node:focus-within .hero-node-core {
  fill: #fff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.55));
}

.sf-hero-diagram-svg .hero-node:hover .hero-node-label,
.sf-hero-diagram-svg .hero-node:focus-within .hero-node-label {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
}

@media (prefers-reduced-motion: reduce) {

  .sf-hero-diagram-svg .hero-node-halo,
  .sf-hero-diagram-svg .hero-node-ring,
  .sf-hero-diagram-svg .hero-node-core,
  .sf-hero-diagram-svg .hero-node-label {
    transition: none;
  }
}

.credential-logo {
  display: block;
  object-fit: contain;
  image-rendering: auto;
}

/* Credentials section — transparent PNG assets (no blend needed) */
.credentials-glass .credential-logo--clear {
  mix-blend-mode: normal;
}

.footer-cred-logo {
  display: block;
  object-fit: contain;
}

.btn-primary {
  background: linear-gradient(90deg, #f0f4fc 0%, #ccc0ee 35%, #74a2de 100%);
  border: 1px solid rgb(255 255 255 / 35%);
  box-shadow: 0 2px 10px rgba(59, 88, 162, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #e8eef8 0%, #b8b0e8 35%, #3b58a2 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #e4e8f2 100%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.credentials-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Mobile: 2×2 window pane */
.credential-col:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.credential-col:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

/* Desktop: four badges in one row */
@media (min-width: 1024px) {
  .credentials-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .credential-col:nth-child(odd),
  .credential-col:nth-child(-n + 2) {
    border-right: none;
    border-bottom: none;
  }

  .credential-col:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.28);
  }
}

.sf-poly-overlay {
  background-image: url("../images/sf/image-8.png");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mix-blend-mode: soft-light;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 48px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease,
    border-color 0.3s ease,
    margin 0.3s ease;
}

.service-row:last-child {
  border-bottom: none;
}

.service-row-main {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
}

.service-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #fff;
  transition: color 0.3s ease;
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease;
}

@media (min-width: 1024px) {
  .service-row {
    padding: 24px 0;
  }

  .service-row-main {
    gap: 24px;
  }

  .service-title {
    font-size: 1.125rem;
  }
}

.service-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #fff;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    max-height 0.3s ease,
    padding 0.3s ease;
}

/* Desktop shows full copy; mobile shows short copy */
.service-desc--mobile {
  display: none;
}

.service-row:hover,
.service-row:focus-within,
.service-row.is-open {
  padding-left: 22px;
  padding-right: 22px;
}

.service-row:hover .service-icon,
.service-row:focus-within .service-icon,
.service-row.is-open .service-icon,
.service-row:hover .service-title,
.service-row:focus-within .service-title,
.service-row.is-open .service-title {
  color: #21288f;
}

.service-row:hover .service-desc--desk,
.service-row:focus-within .service-desc--desk {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 767px) {
  .service-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 14px 12px;
    margin: 0;
    border-radius: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
  }

  .service-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .service-row-main {
    gap: 14px;
    width: 100%;
  }

  .service-icon {
    width: 22px;
    height: 22px;
    color: #21288f;
  }

  .service-title {
    font-size: 0.95rem;
    color: #21288f;
    flex: 1;
  }

  .service-row-main::after {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    margin-left: auto;
    border-right: 2px solid rgba(33, 40, 143, 0.55);
    border-bottom: 2px solid rgba(33, 40, 143, 0.55);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .service-desc--desk {
    display: none !important;
  }

  .service-desc--mobile {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 0 36px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    pointer-events: none;
  }

  .service-row:hover,
  .service-row:focus-within,
  .service-row.is-open {
    padding-left: 12px;
    padding-right: 12px;
    margin-left: 0;
    margin-right: 0;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .service-row:hover .service-desc--mobile,
  .service-row:focus-within .service-desc--mobile,
  .service-row.is-open .service-desc--mobile {
    opacity: 1;
    max-height: 72px;
    padding-top: 8px;
    padding-bottom: 2px;
    transform: none;
  }

  .service-row.is-open .service-row-main::after,
  .service-row:hover .service-row-main::after,
  .service-row:focus-within .service-row-main::after {
    transform: rotate(-135deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .service-row,
  .service-icon,
  .service-title,
  .service-desc {
    transition: none;
  }
}

.ecosystem-list {
  display: flex;
  flex-direction: column;
}

.ecosystem-row {
  display: grid;
  grid-template-columns: 28px minmax(0, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 16px 24px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s ease;
}

.ecosystem-row:last-child {
  border-bottom: none;
}

.eco-num {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.eco-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: color 0.3s ease;
}

@media (min-width: 1024px) {
  .ecosystem-row {
    padding: 18px 0;
  }

  .eco-title {
    font-size: 1.125rem;
  }
}

.eco-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.ecosystem-row:hover .eco-num,
.ecosystem-row:focus-visible .eco-num,
.ecosystem-row.is-active .eco-num,
.ecosystem-row:hover .eco-title,
.ecosystem-row:focus-visible .eco-title,
.ecosystem-row.is-active .eco-title {
  color: #21288f;
}

.ecosystem-row:hover .eco-desc,
.ecosystem-row:focus-visible .eco-desc,
.ecosystem-row.is-active .eco-desc {
  opacity: 1;
  transform: translateX(0);
}

.eco-diagram {
  --eco-angle: 0deg;
}

.eco-diagram-svg {
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(30, 50, 100, 0.12));
}

.eco-hub-center {
  width: min(48%, 220px);
  height: min(48%, 220px);
  pointer-events: none;
  z-index: 2;
}

.eco-hub-logo-img {
  display: block;
  width: clamp(120px, 28vw, 200px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 161, 224, 0.35));
}

.eco-diagram svg .eco-active {
  transform-box: view-box;
  transform-origin: 240px 240px;
  transform: rotate(var(--eco-angle));
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(33, 40, 143, 0.45));
}

.eco-active-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ecoPulse 2.4s ease-out infinite;
}

@keyframes ecoPulse {
  0% {
    opacity: 0.65;
    transform: scale(0.75);
  }

  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@media (max-width: 767px) {
  .ecosystem-row {
    grid-template-columns: 28px 1fr;
  }

  .eco-desc {
    grid-column: 2 / -1;
    transform: none;
  }

  .ecosystem-row:hover .eco-desc,
  .ecosystem-row:focus-visible .eco-desc,
  .ecosystem-row.is-active .eco-desc {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ecosystem-row,
  .eco-num,
  .eco-title,
  .eco-desc,
  .eco-active,
  .eco-active-ring {
    transition: none;
    animation: none;
    filter: none;
  }
}

/* Column layout + full height keeps every card in a row the same size */
.industry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.42) 0%, rgba(232, 226, 255, 0.28) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 28px rgba(70, 80, 160, 0.08);
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(232, 226, 255, 0.38) 100%);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 34px rgba(53, 89, 179, 0.18);
}

.industry-copy {
  color: rgba(33, 40, 143, 0.62);
}

.industry-icon {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(70, 80, 160, 0.08);
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.industry-card:hover .industry-icon {
  transform: translateY(-3px) scale(1.06);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(30, 50, 100, 0.18);
}

.industry-icon svg {
  transition: transform 0.35s ease;
}

.industry-card:hover .industry-icon svg {
  transform: scale(1.08);
}

.industry-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    gap 0.25s ease,
    color 0.25s ease;
}

.industry-card:hover .industry-link,
.industry-link:focus-visible {
  gap: 8px;
  color: #3b58a2;
}

.industry-link span {
  transition: transform 0.25s ease;
}

.industry-card:hover .industry-link span {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {

  .industry-card,
  .industry-icon,
  .industry-icon svg,
  .industry-link,
  .industry-link span {
    transition: none;
  }
}

.why-grid-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.why-grid-row:last-child {
  border-bottom: none;
}

/* Why SF Labs — scroll bookmark on the current point (not interactive) */
.why-point {
  position: relative;
  padding-left: 14px;
  cursor: default;
  user-select: text;
  transition: opacity 0.35s ease;
}

.why-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0.35;
  transform: scaleY(0.55);
  transform-origin: top center;
  transition:
    opacity 0.35s ease,
    background 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.why-point-num {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.35s ease;
}

.why-point-title {
  color: rgba(33, 40, 143, 0.72);
  transition: color 0.35s ease;
}

.why-point-body {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.35s ease;
}

/* Inactive points stay readable but quieter while one is bookmarked */
.why-list.is-tracking .why-point:not(.is-current) {
  opacity: 0.55;
}

.why-point.is-current {
  opacity: 1;
}

.why-point.is-current::before {
  opacity: 1;
  background: #21288f;
  transform: scaleY(1);
  box-shadow: 0 0 12px rgba(33, 40, 143, 0.35);
}

.why-point.is-current .why-point-num {
  color: rgba(255, 255, 255, 0.88);
}

.why-point.is-current .why-point-title {
  color: #21288f;
}

.why-point.is-current .why-point-body {
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {

  .why-point,
  .why-point::before,
  .why-point-num,
  .why-point-title,
  .why-point-body {
    transition: none;
  }
}

.story-card {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 24px 48px rgba(40, 60, 120, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    filter 0.45s ease;
}

/* Story logos — transparent PNG assets */
.story-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

.story-logo {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  background: transparent;
}

.story-logo--knockout {
  mix-blend-mode: screen;
}

/* Height is set from the tallest slide by JS, since slides are absolute */
.story-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 420px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  /* Side slides translate outside — must not widen the page */
  overflow-x: clip;
  overflow-y: visible;
}

.story-stage.is-dragging {
  cursor: grabbing;
}

.story-stage.is-dragging .story-slide {
  transition: none;
}

.story-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 38vw, 460px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  --story-lift: 0px;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  transition:
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    filter 0.45s ease;
  will-change: transform, opacity, filter;
}

.story-slide[data-role="side"] {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  filter: blur(1.2px);
  box-shadow: 0 12px 28px rgba(40, 60, 120, 0.1);
}

.story-slide[data-role="active"] {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgb(255 255 255 / 50%);
  filter: none;
  box-shadow:
    0 28px 56px rgba(40, 60, 120, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Premium, restrained hover lift — works with JS transform via --story-lift */
.story-slide:hover {
  --story-lift: -10px;
}

.story-slide[data-role="active"]:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 32px 64px rgba(30, 50, 100, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.story-slide[data-role="side"]:hover {
  --story-lift: -6px;
  filter: blur(0.4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(30, 50, 100, 0.16);
}

.story-stage.is-dragging .story-slide:hover {
  --story-lift: 0px;
}

.story-nav {
  position: relative;
  z-index: 4;
}

.story-nav-btn {
  box-shadow:
    0 8px 20px rgba(40, 60, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.story-nav-btn[hidden] {
  display: none !important;
}

.story-nav-btn:hover,
.story-nav-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .story-slide {
    transition: none;
  }

  .story-slide:hover,
  .story-slide[data-role="side"]:hover {
    --story-lift: 0px;
  }

  .story-slide[data-role="side"] {
    filter: none;
  }
}

.expertise-node {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 24px rgba(30, 50, 100, 0.1);
}

.expertise-section {
  border-left: 3px solid rgba(59, 88, 162, 0.55);
  overflow-x: clip;
  overflow-y: visible;
}

.expertise-section .relative.z-10 {
  overflow: visible;
}

.expertise-flow {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
}

/* Mobile / tablet: vertical · Desktop: horizontal */
.expertise-flow--horizontal {
  display: none;
}

.expertise-flow--vertical {
  display: block;
  max-width: 420px;
  margin-inline: auto;
}

.expertise-flow-stage {
  position: relative;
  width: 100%;
  overflow: visible;
}

.expertise-flow-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.expertise-flow-stage--vertical {
  max-width: 420px;
  margin-inline: auto;
}

.expertise-flow-svg--vertical {
  max-width: 420px;
  margin-inline: auto;
}

.expertise-flow .exp-node {
  cursor: default;
}

.expertise-flow .exp-arc {
  fill: none;
  stroke: url(#expArc);
  stroke-width: 10;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: var(--ox) var(--oy);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.expertise-flow--vertical .exp-arc {
  stroke: url(#expArcV);
}

/* Arc swings when the matching HTML hotspot is open */
.expertise-flow .exp-node.is-open .exp-arc {
  transform: rotate(180deg);
}

.exp-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.exp-hotspot {
  --hit: 11.13%;
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: var(--hit);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 2;
}

.expertise-flow--vertical .exp-hotspot {
  --hit: 30%;
}

.exp-hotspot-hit {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.exp-hotspot-hit:focus-visible {
  outline: 2px solid rgba(33, 40, 143, 0.55);
  outline-offset: 3px;
}

.exp-popover {
  position: absolute;
  left: 50%;
  width: max(176px, 155%);
  max-width: 220px;
  padding: 14px 18px;
  border-radius: 28px;
  border: none;
  background: linear-gradient(90deg,
      #9ec4ea 0%,
      #b8c8ef 42%,
      #cfc0f0 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 16px 36px rgba(45, 60, 120, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s ease;
}

/* Invisible bridge so the cursor can travel between circle and panel */
.exp-popover::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 16px;
}

.exp-hotspot--above .exp-popover::before {
  top: 100%;
}

.exp-hotspot--below .exp-popover::before {
  bottom: 100%;
}

.exp-hotspot--right .exp-popover::before,
.exp-hotspot--left .exp-popover::before {
  top: 20%;
  bottom: 20%;
  height: auto;
  width: 16px;
  left: auto;
  right: auto;
}

.exp-hotspot--right .exp-popover::before {
  right: 100%;
}

.exp-hotspot--left .exp-popover::before {
  left: 100%;
}

.exp-hotspot.is-open {
  z-index: 6;
}

/* Low nodes: panel above the circle */
.exp-hotspot--above .exp-popover {
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px);
}

/* High nodes: panel below so it doesn't collide with the heading */
.exp-hotspot--below .exp-popover {
  top: calc(100% + 12px);
  bottom: auto;
  transform: translateX(-50%) translateY(-8px);
}

/* Vertical flow: panels to the side */
.exp-hotspot--right .exp-popover {
  left: calc(100% + 14px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(-8px);
}

.exp-hotspot--left .exp-popover {
  left: auto;
  right: calc(100% + 14px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(8px);
}

.exp-hotspot.is-open .exp-popover,
.exp-hotspot:hover .exp-popover,
.exp-hotspot:focus-within .exp-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.exp-hotspot--right.is-open .exp-popover,
.exp-hotspot--right:hover .exp-popover,
.exp-hotspot--right:focus-within .exp-popover {
  transform: translateY(-50%) translateX(0);
}

.exp-hotspot--left.is-open .exp-popover,
.exp-hotspot--left:hover .exp-popover,
.exp-hotspot--left:focus-within .exp-popover {
  transform: translateY(-50%) translateX(0);
}

/* Keep first/last panels from spilling off the diagram */
.expertise-flow--horizontal .exp-hotspot[data-exp="0"] .exp-popover {
  left: 0;
  transform: translateX(0) translateY(8px);
}

.expertise-flow--horizontal .exp-hotspot[data-exp="0"].is-open .exp-popover,
.expertise-flow--horizontal .exp-hotspot[data-exp="0"]:hover .exp-popover,
.expertise-flow--horizontal .exp-hotspot[data-exp="0"]:focus-within .exp-popover {
  transform: translateX(0) translateY(0);
}

.expertise-flow--horizontal .exp-hotspot[data-exp="5"] .exp-popover {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-8px);
}

.expertise-flow--horizontal .exp-hotspot[data-exp="5"].is-open .exp-popover,
.expertise-flow--horizontal .exp-hotspot[data-exp="5"]:hover .exp-popover,
.expertise-flow--horizontal .exp-hotspot[data-exp="5"]:focus-within .exp-popover {
  transform: translateX(0) translateY(0);
}

@media (min-width: 1024px) {
  .expertise-flow--vertical {
    display: none;
  }

  .expertise-flow--horizontal {
    display: block;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 0;
  }
}

.exp-popover-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exp-popover-list li {
  padding: 12px 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #141414;
  border-bottom: 1px solid rgba(20, 20, 40, 0.18);
}

.exp-popover-list li:last-child {
  border-bottom: none;
  padding-bottom: 6px;
}

.exp-popover-list li:first-child {
  padding-top: 6px;
}

.expertise-mobile-card {
  overflow: hidden;
}

.expertise-mobile-summary {
  list-style: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.expertise-mobile-summary::-webkit-details-marker {
  display: none;
}

.expertise-mobile-summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.expertise-mobile-card[open] .expertise-mobile-summary {
  padding-bottom: 8px;
}

.expertise-mobile-card[open] .expertise-mobile-summary::after {
  transform: rotate(-135deg);
}

.expertise-mobile-card .exp-popover-list li {
  text-align: left;
  font-size: 13px;
  padding: 8px 0;
}

.expertise-mobile-card .exp-popover-list li {
  text-align: left;
  color: #21288f;
}

@media (prefers-reduced-motion: reduce) {

  .expertise-flow .exp-arc,
  .exp-popover {
    transition: none;
  }
}

.contact-form-card {
  background: linear-gradient(170deg,
      rgba(206, 183, 255, 0.5) 0%,
      rgba(206, 183, 255, 0.38) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(45, 36, 110, 0.15);
}

.contact-form-card .form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.contact-form-card .form-status.is-ok {
  background: rgba(255, 255, 255, 0.9);
  color: #1b2a6b;
}

.contact-form-card .form-status.is-bad {
  background: #ffe8e8;
  color: #9b1c1c;
}

.contact-input {
  background: rgba(248, 247, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(70, 60, 130, 0.06);
}

.contact-input::placeholder {
  color: #a7adc4;
}

.contact-icon {
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 16px rgba(40, 35, 110, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-send {
  background: linear-gradient(90deg, #f0f4fc 0%, #ccc0ee 35%, #74a2de 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(45, 35, 120, 0.2);
}

.btn-send:hover {
  background: linear-gradient(90deg, #e8eef8 0%, #b8b0e8 35%, #3b58a2 100%);
  transform: translateY(-1px);
}

/* Section headings — soft “new page” entrance on scroll */
.sf-section-heading {
  position: relative;
  opacity: 0.42;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 0.7s ease,
    padding-left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 2.5px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 100%);
  opacity: 0;
  transition:
    height 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease;
}

.sf-section-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
  padding-left: 14px;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.14);
}

.sf-section-heading.is-visible::before {
  height: 1.15em;
  opacity: 1;
}

/* Navy label headings use a navy accent bar instead of white */
.sf-section-heading--label::before {
  background: linear-gradient(180deg, #21288f 0%, rgba(33, 40, 143, 0.25) 100%);
}

.sf-section-heading--label.is-visible {
  text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {

  .sf-section-heading,
  .sf-section-heading::before {
    transition: none;
    opacity: 1;
    transform: none;
    padding-left: 0;
  }

  .sf-section-heading::before {
    display: none;
  }

  .sf-hero-diagram-svg {
    filter: brightness(1.06);
  }

  .sf-hero-title,
  .sf-hero-lead,
  .sf-hero-ctas,
  .sf-hero-diagram {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  isolation: isolate;
  mix-blend-mode: normal;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: #ffffff;
  color: #21288f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 28px rgba(30, 50, 100, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: rgba(255, 255, 255, 0.42);
  color: #102a83;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 32px rgba(30, 50, 100, 0.28);
  outline: none;
}

.scroll-top:hover svg,
.scroll-top:focus-visible svg {
  transform: translateY(-2px);
}

.scroll-top svg {
  transition: transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {

  .scroll-top,
  .scroll-top svg {
    transition: none;
  }
}

/* ==========================================================================
   Mobile / tablet — preserve desktop composition (no full vertical collapse)
   ========================================================================== */

@media (max-width: 1023px) {
  .sf-hero {
    min-height: auto;
    /* keep clearance under fixed header — do NOT collapse padding-top */
    padding-top: 108px;
  }

  .sf-header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 0.5rem;
  }

  .sf-logo {
    gap: 0.45rem;
    max-width: calc(100% - 3rem);
  }

  .sf-logo-ioptime img {
    height: 2.35rem;
    max-height: 2.35rem;
  }

  .sf-logo-partner {
    height: 2.1rem;
    max-height: 2.1rem;
  }

  .sf-logo-divider {
    height: 1.6rem;
  }

  .sf-header.is-stuck .sf-logo-ioptime img {
    height: 2.1rem;
    max-height: 2.1rem;
  }

  .sf-header.is-stuck .sf-logo-partner {
    height: 1.9rem;
    max-height: 1.9rem;
  }

  .sf-hero-layout {
    align-items: center;
  }

  .sf-hero-diagram {
    width: 100%;
    overflow: visible;
  }

  .sf-hero-diagram-svg {
    max-width: 100%;
    overflow: visible;
  }

  .eco-diagram {
    max-width: min(100%, 320px);
    margin-inline: auto;
  }

  .eco-hub-logo-img {
    width: clamp(88px, 22vw, 140px);
  }

  .eco-layout .sf-section-heading {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    margin-bottom: 1rem;
  }

  .eco-layout .ecosystem-row {
    padding-block: 0.75rem;
  }

  .eco-layout .eco-title {
    font-size: 0.95rem;
  }

  .eco-layout .eco-num {
    font-size: 0.75rem;
  }

  /* Expertise: vertical graph with tap/hover popovers (same as desktop) */
  .expertise-flow--vertical {
    overflow: visible;
    max-width: min(100%, 300px);
    margin-inline: auto;
    margin-bottom: 1.5rem;
  }

  .expertise-flow--vertical .expertise-flow-stage {
    width: 100%;
    overflow: visible;
  }

  .expertise-flow--vertical .expertise-flow-svg {
    width: 100%;
    height: auto;
  }

  .expertise-flow--vertical .exp-hotspots {
    display: block;
  }

  .expertise-flow--vertical .exp-hotspot {
    --hit: 32%;
  }

  /* Mobile: panels under the node so they stay on-screen */
  .expertise-flow--vertical .exp-popover {
    left: 50% !important;
    right: auto !important;
    top: calc(100% + 12px) !important;
    bottom: auto !important;
    width: min(220px, 72vw);
    max-width: 220px;
    transform: translateX(-50%) translateY(-8px) !important;
    /* tap-only on touch — avoid sticky :hover */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .expertise-flow--vertical .exp-popover::before {
    top: auto;
    bottom: 100%;
    left: 20%;
    right: 20%;
    width: auto;
    height: 14px;
  }

  .expertise-flow--vertical .exp-hotspot.is-open .exp-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) !important;
  }

  /* Last nodes: open upward so panel isn't clipped */
  .expertise-flow--vertical .exp-hotspot[data-exp="4"] .exp-popover,
  .expertise-flow--vertical .exp-hotspot[data-exp="5"] .exp-popover {
    top: auto !important;
    bottom: calc(100% + 12px) !important;
    transform: translateX(-50%) translateY(8px) !important;
  }

  .expertise-flow--vertical .exp-hotspot[data-exp="4"] .exp-popover::before,
  .expertise-flow--vertical .exp-hotspot[data-exp="5"] .exp-popover::before {
    top: 100%;
    bottom: auto;
  }

  .expertise-flow--vertical .exp-hotspot[data-exp="4"].is-open .exp-popover,
  .expertise-flow--vertical .exp-hotspot[data-exp="5"].is-open .exp-popover {
    transform: translateX(-50%) translateY(0) !important;
  }

  .expertise-flow--vertical .exp-popover-list li {
    font-size: 13px;
    padding: 8px 4px;
  }

  /* Graph nodes replace accordion cards on mobile */
  .expertise-mobile {
    display: none !important;
  }

  .story-stage {
    overflow-x: clip;
    overflow-y: visible;
    min-height: 380px;
    max-width: 100%;
    padding-inline: 20px;
    box-sizing: border-box;
  }

  .story-slide {
    width: min(95vw, 275px);
    max-width: calc(100% - 40px);
    min-height: 320px;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box;
    border-width: 1.5px;
    overflow: hidden;
  }

  .story-slide h4 {
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0.15rem;
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .story-slide p {
    padding-inline: 0.35rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .story-logo-wrap {
    min-height: 64px;
  }

  .story-logo {
    max-width: 160px;
    max-height: 72px;
  }

  .footer-cred-logo {
    height: 2.75rem;
  }
}

@media (max-width: 767px) {
  .sf-hero {
    min-height: auto;
    padding-top: 96px;
  }

  .sf-hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 0.25rem;
    padding-bottom: 2.5rem;
  }

  .sf-hero-copy {
    max-width: 100%;
    text-align: left;
  }

  .sf-hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    line-height: 1.18;
  }

  .sf-hero-lead {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 36rem;
  }

  .sf-hero-ctas {
    margin-top: 1.15rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
  }

  .sf-hero-ctas .btn-primary,
  .sf-hero-ctas .btn-secondary {
    width: auto;
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 9.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    text-align: center;
  }

  /* Diagram under copy — readable size */
  .sf-hero-diagram {
    order: 2;
    max-width: min(78vw, 300px);
    margin-inline: auto;
    padding: 0.25rem;
  }

  .sf-hero-diagram-svg {
    width: 100%;
    height: auto;
  }

  .sf-hero-diagram-svg .hero-node-label {
    font-size: 11px;
  }

  .credentials-glass {
    border-radius: 10px;
  }

  .credential-col {
    min-height: 148px;
    padding: 0.6rem 0.55rem 0.7rem;
  }

  #credentials {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .eco-diagram {
    order: 2;
    max-width: min(78vw, 300px);
    width: 100%;
    margin-inline: auto;
  }

  /* Mobile: heading → diagram (own full row) → list (full width) */
  .eco-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .eco-layout>div:first-child {
    display: contents;
  }

  .eco-layout .sf-section-heading {
    order: 1;
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .eco-layout .ecosystem-list {
    order: 3;
    width: 100%;
  }

  .eco-layout .ecosystem-row {
    grid-template-columns: 36px 1fr;
    width: 100%;
  }

  .eco-layout .eco-title {
    font-size: 0.95rem;
  }

  .industry-card {
    margin-top: 0 !important;
  }

  .story-stage {
    min-height: 340px;
    padding-inline: 24px;
    overflow-x: clip;
    overflow-y: visible;
  }

  .story-slide {
    width: min(76vw, 300px);
    max-width: calc(100% - 48px);
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
    border-width: 1.5px;
    overflow: hidden;
    box-shadow:
      0 20px 40px rgba(40, 60, 120, 0.16),
      inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  }

  .story-slide h4 {
    max-width: 100%;
    font-size: clamp(0.88rem, 3.6vw, 1.05rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .story-slide p {
    font-size: 0.875rem;
    line-height: 1.55;
    padding-inline: 0.35rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .story-slide[data-role="side"] {
    filter: none;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Contain side-slide transforms so they don't create page-wide scroll */
  #success-stories {
    overflow-x: clip;
    overflow-y: visible;
  }

  #success-stories>.pointer-events-none {
    overflow: hidden;
  }
}

/* Very small phones */
@media (max-width: 430px) {
  .sf-hero {
    padding-top: 88px;
  }

  .sf-header-inner {
    padding-inline: 1rem;
  }

  .sf-logo {
    gap: 0.35rem;
  }

  .sf-logo-ioptime img {
    height: 2rem;
    max-height: 2rem;
  }

  .sf-logo-partner {
    height: 1.85rem;
    max-height: 1.85rem;
  }

  .sf-logo-divider {
    height: 1.4rem;
  }

  .sf-hero-layout {
    gap: 1.25rem;
    padding-bottom: 2rem;
  }

  .sf-hero-title {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .sf-hero-ctas {
    flex-direction: column;
  }

  .sf-hero-ctas .btn-primary,
  .sf-hero-ctas .btn-secondary {
    width: 100%;
    flex: none;
  }

  .sf-hero-diagram {
    max-width: min(72vw, 260px);
  }

  .credential-logo {
    max-height: 48px;
  }

  .story-slide h4 {
    font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  }

  .story-slide {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.sf-hero-title,
.sf-hero-lead,
.sf-hero-ctas,
.sf-hero-diagram {
  animation: sfFadeUp 0.85s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.sf-hero-title {
  animation-delay: 0.08s;
}

.sf-hero-lead {
  animation-delay: 0.2s;
}

.sf-hero-ctas {
  animation-delay: 0.32s;
}

.sf-hero-diagram {
  animation-delay: 0.22s;
}

@keyframes sfFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}