:root {
  --spi-gallery-purple: #b79ced;
  --spi-gallery-deep: #6f52a3;
  --spi-gallery-light: #ede7f8;
  --spi-gallery-soft: #f8f6fc;
  --spi-gallery-dark: #25202d;
  --spi-gallery-muted: #6f6878;
  --spi-gallery-white: #ffffff;

  --spi-gallery-pink: #e7b7d8;
  --spi-gallery-blue: #afcbef;
  --spi-gallery-peach: #f2c6a0;
  --spi-gallery-mint: #a9d8c5;

  --spi-gallery-border: rgba(111, 82, 163, 0.14);

  --spi-gallery-shadow: 0 24px 70px rgba(55, 38, 83, 0.12);

  --spi-gallery-radius: 24px;

  --spi-gallery-transition: 400ms ease;
}

/* =========================================================
       BASIC
    ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--spi-gallery-dark);
  background: var(--spi-gallery-white);
  overflow-x: hidden;
}

.spi-gallery-page {
  width: 100%;
  overflow: hidden;
}

.spi-gallery-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.spi-gallery-page img {
  display: block;
  max-width: 100%;
}

.spi-gallery-page a {
  text-decoration: none;
}

.spi-gallery-page button {
  font-family: inherit;
}

/* =========================================================
       SCROLL REVEAL
    ========================================================= */

.spi-gallery-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.spi-gallery-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
       HERO
    ========================================================= */

.spi-gallery-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 78% 35%,
      rgba(183, 156, 237, 0.3),
      transparent 24%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(231, 183, 216, 0.24),
      transparent 25%
    ),
    linear-gradient(135deg, #fbf9fe 0%, #f4effc 53%, #ece3f8 100%);
}

.spi-gallery-hero::before {
  content: "";
  position: absolute;

  width: 450px;
  height: 450px;

  right: -180px;
  top: -130px;

  border: 1px solid rgba(111, 82, 163, 0.12);
  border-radius: 50%;
}

.spi-gallery-hero::after {
  content: "";
  position: absolute;

  width: 600px;
  height: 230px;

  left: -300px;
  bottom: -140px;

  border: 1px solid rgba(183, 156, 237, 0.18);
  border-radius: 50%;

  transform: rotate(-18deg);
}

.spi-gallery-hero-shell {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(0, 1.08fr);

  gap: 55px;
  align-items: center;

  padding: 90px 0 80px;
}

.spi-gallery-hero-content {
  position: relative;
  z-index: 5;
}

/* =========================================================
       BREADCRUMB
    ========================================================= */

.spi-gallery-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 25px;

  color: var(--spi-gallery-muted);

  font-size: 13px;
  font-weight: 600;
}

.spi-gallery-breadcrumb a {
  color: var(--spi-gallery-deep);

  transition: color 250ms ease;
}

.spi-gallery-breadcrumb a:hover {
  color: var(--spi-gallery-dark);
}

/* =========================================================
       EYEBROW
    ========================================================= */

.spi-gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 16px;

  color: var(--spi-gallery-deep);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spi-gallery-eyebrow::before {
  content: "";

  width: 28px;
  height: 2px;

  border-radius: 999px;

  background: var(--spi-gallery-purple);
}

/* =========================================================
       HERO TITLE
    ========================================================= */

.spi-gallery-hero-title {
  max-width: 720px;

  margin: 0;

  font-size: clamp(2.8rem, 5vw, 5.1rem);

  line-height: 1.02;

  letter-spacing: -0.055em;

  font-weight: 800;
}

.spi-gallery-hero-title span {
  color: var(--spi-gallery-deep);
}

.spi-gallery-hero-description {
  max-width: 690px;

  margin: 25px 0 0;

  color: var(--spi-gallery-muted);

  font-size: 16px;

  line-height: 1.9;
}

/* =========================================================
       HERO BUTTONS
    ========================================================= */

.spi-gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 32px;
}

.spi-gallery-primary-link,
.spi-gallery-secondary-link {
  min-height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 0 22px;

  border-radius: 14px;

  font-size: 13px;
  font-weight: 800;

  transition:
    transform 250ms ease,
    box-shadow 250ms ease,
    background 250ms ease;
}

.spi-gallery-primary-link {
  color: #fff;

  background: var(--spi-gallery-deep);

  box-shadow: 0 14px 30px rgba(111, 82, 163, 0.22);
}

.spi-gallery-primary-link:hover {
  color: #fff;

  background: #59408a;

  transform: translateY(-3px);

  box-shadow: 0 18px 38px rgba(111, 82, 163, 0.28);
}

.spi-gallery-secondary-link {
  color: var(--spi-gallery-deep);

  background: rgba(255, 255, 255, 0.8);

  border: 1px solid var(--spi-gallery-border);
}

.spi-gallery-secondary-link:hover {
  transform: translateY(-3px);

  background: #fff;

  box-shadow: 0 14px 30px rgba(55, 38, 83, 0.09);
}

/* =========================================================
       HERO VISUAL
    ========================================================= */

.spi-gallery-hero-visual {
  position: relative;

  width: 100%;
  max-width: 620px;

  min-height: 500px;

  justify-self: end;
}

.spi-gallery-hero-orbit {
  position: absolute;

  inset: 5% 2% 5% 7%;

  border: 1px solid rgba(111, 82, 163, 0.13);

  border-radius: 50%;

  transform: rotate(-13deg);
}

.spi-gallery-hero-glow {
  position: absolute;

  width: 280px;
  height: 280px;

  top: 20%;
  left: 31%;

  border-radius: 50%;

  background: rgba(183, 156, 237, 0.34);

  filter: blur(45px);
}

.spi-gallery-hero-image {
  position: absolute;

  overflow: hidden;

  padding: 7px;

  background: #fff;

  box-shadow: 0 30px 65px rgba(55, 38, 83, 0.16);

  transition: transform 600ms ease;
}

.spi-gallery-hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 22px;

  background: linear-gradient(145deg, #ede7f8, #ffffff);
}

.spi-gallery-hero-image-a {
  width: 51%;
  height: 64%;

  left: 5%;
  top: 18%;

  border-radius: 30px;

  transform: rotate(-6deg);
}

.spi-gallery-hero-image-b {
  width: 43%;
  height: 53%;

  right: 5%;
  top: 5%;

  border-radius: 28px;

  transform: rotate(7deg);
}

.spi-gallery-hero-image-c {
  width: 47%;
  height: 48%;

  right: 12%;
  bottom: 1%;

  border-radius: 28px;

  transform: rotate(-4deg);
}

.spi-gallery-hero-visual:hover .spi-gallery-hero-image-a {
  transform: rotate(-4deg) translate(-4px, -7px);
}

.spi-gallery-hero-visual:hover .spi-gallery-hero-image-b {
  transform: rotate(5deg) translate(5px, -7px);
}

.spi-gallery-hero-visual:hover .spi-gallery-hero-image-c {
  transform: rotate(-2deg) translate(5px, 4px);
}

.spi-gallery-hero-badge {
  position: absolute;

  right: 0;
  bottom: 18%;

  z-index: 5;

  padding: 13px 16px;

  border: 1px solid rgba(111, 82, 163, 0.13);

  border-radius: 15px;

  color: var(--spi-gallery-deep);

  background: rgba(255, 255, 255, 0.9);

  box-shadow: 0 18px 35px rgba(55, 38, 83, 0.12);

  backdrop-filter: blur(12px);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spi-gallery-dot {
  position: absolute;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--spi-gallery-purple);

  box-shadow: 0 0 0 7px rgba(183, 156, 237, 0.14);
}

.spi-gallery-dot-a {
  right: 12%;
  top: 37%;
}

.spi-gallery-dot-b {
  left: 0;
  bottom: 14%;

  background: var(--spi-gallery-pink);
}

/* =========================================================
       GENERAL SECTION
    ========================================================= */

.spi-gallery-section {
  padding: 55px 0;
}

.spi-gallery-section-soft {
  background: var(--spi-gallery-soft);
}

.spi-gallery-section-heading {
  max-width: 760px;

  margin-bottom: 48px;
}

.spi-gallery-section-heading-center {
  margin-left: auto;
  margin-right: auto;

  text-align: center;
}

.spi-gallery-section-title {
  margin: 0;

  font-size: clamp(2rem, 3.4vw, 3.3rem);

  line-height: 1.12;

  letter-spacing: -0.045em;

  font-weight: 800;
}

.spi-gallery-section-description {
  margin: 17px 0 0;

  color: var(--spi-gallery-muted);

  font-size: 15px;

  line-height: 1.85;
}

/* =========================================================
       INTRO
    ========================================================= */

.spi-gallery-intro-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 0.9fr);

  gap: 75px;

  align-items: center;
}

.spi-gallery-intro-visual {
  position: relative;

  min-height: 520px;
}

.spi-gallery-intro-image-frame {
  position: absolute;

  left: 5%;
  top: 5%;

  width: 78%;
  height: 90%;

  padding: 8px;

  border-radius: 32px;

  background: linear-gradient(
    145deg,
    rgba(183, 156, 237, 0.5),
    rgba(237, 231, 248, 0.55)
  );

  box-shadow: var(--spi-gallery-shadow);

  transform: rotate(-2.5deg);

  transition: transform 500ms ease;
}

.spi-gallery-intro-image-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 26px;

  background: linear-gradient(145deg, #eee7f8, #fff);
}

.spi-gallery-intro-visual:hover .spi-gallery-intro-image-frame {
  transform: rotate(-1deg) translateY(-5px);
}

.spi-gallery-intro-mini {
  position: absolute;

  right: 0;
  bottom: 11%;

  width: 42%;

  min-height: 150px;

  padding: 20px;

  border: 1px solid rgba(111, 82, 163, 0.13);

  border-radius: 23px;

  background: rgba(255, 255, 255, 0.9);

  box-shadow: 0 20px 50px rgba(55, 38, 83, 0.13);

  backdrop-filter: blur(13px);
}

.spi-gallery-intro-mini i {
  display: grid;

  width: 44px;
  height: 44px;

  margin-bottom: 13px;

  place-items: center;

  border-radius: 14px;

  color: var(--spi-gallery-deep);

  background: var(--spi-gallery-light);

  font-size: 20px;
}

.spi-gallery-intro-mini strong {
  display: block;

  font-size: 13px;
}

.spi-gallery-intro-mini span {
  display: block;

  margin-top: 5px;

  color: var(--spi-gallery-muted);

  font-size: 11px;

  line-height: 1.6;
}

.spi-gallery-mini-features {
  display: grid;

  gap: 13px;
}

.spi-gallery-mini-feature {
  display: grid;

  grid-template-columns:
    49px
    minmax(0, 1fr);

  gap: 15px;

  align-items: center;

  padding: 15px 17px;

  border: 1px solid var(--spi-gallery-border);

  border-radius: 18px;

  background: var(--spi-gallery-white);

  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.spi-gallery-mini-feature:hover {
  transform: translateX(5px);

  border-color: rgba(183, 156, 237, 0.6);

  box-shadow: 0 15px 35px rgba(55, 38, 83, 0.08);
}

.spi-gallery-mini-feature i {
  display: grid;

  width: 49px;
  height: 49px;

  place-items: center;

  border-radius: 15px;

  color: var(--spi-gallery-deep);

  background: var(--spi-gallery-light);

  font-size: 19px;
}

.spi-gallery-mini-feature:nth-child(2) i {
  background: #f5e5ef;
}

.spi-gallery-mini-feature:nth-child(3) i {
  background: #e7f0fb;
}

.spi-gallery-mini-feature strong {
  display: block;

  font-size: 13px;
}

.spi-gallery-mini-feature span {
  display: block;

  margin-top: 5px;

  color: var(--spi-gallery-muted);

  font-size: 11px;

  line-height: 1.55;
}

/* =========================================================
       FILTERS
    ========================================================= */

.spi-gallery-filter-wrap {
  margin-bottom: 42px;
}

.spi-gallery-filter-heading {
  margin: 0 0 17px;

  font-size: 13px;

  font-weight: 800;
}

.spi-gallery-filter-rail {
  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 4px 2px 11px;

  scrollbar-width: thin;

  scrollbar-color: rgba(111, 82, 163, 0.3) transparent;
}

.spi-gallery-filter-list {
  display: flex;

  width: max-content;

  gap: 10px;
}

.spi-gallery-filter {
  min-height: 46px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 0 17px;

  border: 1px solid rgba(111, 82, 163, 0.15);

  border-radius: 999px;

  color: var(--spi-gallery-deep);

  background: var(--spi-gallery-white);

  cursor: pointer;

  white-space: nowrap;

  font-size: 12px;
  font-weight: 800;

  transition: all 260ms ease;
}

.spi-gallery-filter:hover {
  color: #fff;

  background: var(--spi-gallery-deep);

  border-color: var(--spi-gallery-deep);

  transform: translateY(-2px);

  box-shadow: 0 10px 22px rgba(111, 82, 163, 0.18);
}

.spi-gallery-filter-active {
  color: #fff;

  background: var(--spi-gallery-deep);

  border-color: var(--spi-gallery-deep);

  box-shadow: 0 10px 24px rgba(111, 82, 163, 0.17);
}

/* =========================================================
       MAIN GALLERY
       ALL CARDS SAME WIDTH + SAME HEIGHT
    ========================================================= */

.spi-gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.spi-gallery-card {
  width: 100%;

  overflow: hidden;

  border: 1px solid rgba(111, 82, 163, 0.12);

  border-radius: var(--spi-gallery-radius);

  background: #ffffff;

  box-shadow: 0 12px 35px rgba(55, 38, 83, 0.07);

  transition:
    transform 400ms ease,
    border-color 400ms ease,
    box-shadow 400ms ease;
}

.spi-gallery-card:hover {
  transform: translateY(-7px);

  border-color: rgba(183, 156, 237, 0.75);

  box-shadow: 0 23px 55px rgba(55, 38, 83, 0.15);
}

/*
      IMPORTANT:
      Every image wrapper has EXACTLY the same aspect ratio.
      This keeps every gallery image aligned.
    */

.spi-gallery-image-link {
  position: relative;

  display: block;

  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #ffffff;
}

.spi-gallery-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  object-position: center;

  transition: transform 500ms ease;
}

.spi-gallery-card:hover .spi-gallery-image {
  transform: scale(1.05);
}

.spi-gallery-image-overlay {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: flex-end;

  padding: 20px;

  opacity: 0;

  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(28, 20, 38, 0.82) 100%
  );

  transition: opacity 350ms ease;
}

.spi-gallery-card:hover .spi-gallery-image-overlay {
  opacity: 1;
}

.spi-gallery-view-icon {
  display: grid;

  width: 45px;
  height: 45px;

  margin-left: auto;

  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 50%;

  color: #fff;

  background: rgba(111, 82, 163, 0.7);

  backdrop-filter: blur(8px);

  transform: translateY(12px) scale(0.88);

  transition:
    transform 350ms ease,
    background 250ms ease;
}

.spi-gallery-card:hover .spi-gallery-view-icon {
  transform: translateY(0) scale(1);
}

.spi-gallery-view-icon:hover {
  background: var(--spi-gallery-deep);
}

/* =========================================================
       GALLERY CONTENT
    ========================================================= */

.spi-gallery-card-content {
  padding: 19px 19px 21px;
}

.spi-gallery-card-category {
  display: inline-flex;

  padding: 6px 9px;

  border-radius: 999px;

  color: var(--spi-gallery-deep);

  background: var(--spi-gallery-light);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.spi-gallery-card-title {
  margin: 11px 0 0;

  font-size: 15px;

  line-height: 1.4;

  font-weight: 800;
}

.spi-gallery-card-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  margin-top: 11px;

  color: var(--spi-gallery-deep);

  font-size: 11px;

  font-weight: 800;

  transition: gap 250ms ease;
}

.spi-gallery-card-link:hover {
  gap: 11px;
}

/* =========================================================
       FEATURED
    ========================================================= */

.spi-gallery-featured {
  overflow: hidden;

  background: linear-gradient(135deg, #f9f6fd, #eee6f8);
}

.spi-gallery-featured-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 0.95fr);

  gap: 75px;

  align-items: center;
}

.spi-gallery-featured-visual {
  position: relative;

  min-height: 520px;
}

.spi-gallery-featured-frame {
  position: absolute;

  inset: 5% 8% 5% 0;

  padding: 8px;

  border-radius: 34px;

  background: linear-gradient(
    145deg,
    var(--spi-gallery-purple),
    var(--spi-gallery-pink)
  );

  box-shadow: 0 35px 75px rgba(111, 82, 163, 0.2);

  transition: transform 450ms ease;
}

.spi-gallery-featured-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 27px;

  transition: transform 500ms ease;
}

.spi-gallery-featured-visual:hover .spi-gallery-featured-frame {
  transform: translateY(-5px) rotate(-1deg);
}

.spi-gallery-featured-visual:hover .spi-gallery-featured-frame img {
  transform: scale(1.03);
}

.spi-gallery-featured-chip {
  position: absolute;

  right: 0;
  top: 13%;

  padding: 12px 15px;

  border: 1px solid rgba(111, 82, 163, 0.13);

  border-radius: 15px;

  color: var(--spi-gallery-deep);

  background: rgba(255, 255, 255, 0.9);

  box-shadow: 0 18px 40px rgba(55, 38, 83, 0.12);

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.spi-gallery-showcase-list {
  display: grid;

  gap: 16px;

  margin-top: 32px;
}

.spi-gallery-showcase-item {
  display: grid;

  grid-template-columns:
    54px
    minmax(0, 1fr);

  gap: 16px;

  align-items: center;

  padding: 18px;

  border: 1px solid rgba(111, 82, 163, 0.12);

  border-radius: 19px;

  background: rgba(255, 255, 255, 0.72);

  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    background 300ms ease;
}

.spi-gallery-showcase-item:hover {
  transform: translateX(6px);

  background: #fff;

  box-shadow: 0 16px 35px rgba(55, 38, 83, 0.08);
}

.spi-gallery-showcase-icon {
  display: grid;

  width: 54px;
  height: 54px;

  place-items: center;

  border-radius: 16px;

  color: var(--spi-gallery-deep);

  background: var(--spi-gallery-light);

  font-size: 20px;
}

.spi-gallery-showcase-item:nth-child(2) .spi-gallery-showcase-icon {
  background: #f5e6ef;
}

.spi-gallery-showcase-item:nth-child(3) .spi-gallery-showcase-icon {
  background: #fff0e3;
}

.spi-gallery-showcase-item strong {
  display: block;

  font-size: 13px;
}

.spi-gallery-showcase-item span {
  display: block;

  margin-top: 5px;

  color: var(--spi-gallery-muted);

  font-size: 11px;

  line-height: 1.6;
}

/* =========================================================
       USE CASES
    ========================================================= */

.spi-gallery-usecases {
  background: var(--spi-gallery-white);
}

.spi-gallery-usecase-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 17px;
}

.spi-gallery-usecase-card {
  position: relative;

  min-height: 220px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 24px;

  overflow: hidden;

  border: 1px solid var(--spi-gallery-border);

  border-radius: 24px;

  background: #fff;

  box-shadow: 0 12px 35px rgba(55, 38, 83, 0.05);

  transition:
    transform 350ms ease,
    border-color 350ms ease,
    box-shadow 350ms ease,
    background 350ms ease;
}

.spi-gallery-usecase-card:hover {
  transform: translateY(-7px);

  border-color: rgba(183, 156, 237, 0.7);

  background: #fcfaff;

  box-shadow: 0 25px 55px rgba(55, 38, 83, 0.11);
}

.spi-gallery-usecase-icon {
  display: grid;

  width: 57px;
  height: 57px;

  place-items: center;

  border-radius: 17px;

  color: var(--spi-gallery-deep);

  background: var(--spi-gallery-light);

  font-size: 22px;

  transition:
    transform 300ms ease,
    background 300ms ease,
    color 300ms ease;
}

.spi-gallery-usecase-card:hover .spi-gallery-usecase-icon {
  color: #fff;

  background: var(--spi-gallery-deep);

  transform: scale(1.1);
}

.spi-gallery-usecase-card:nth-child(2) .spi-gallery-usecase-icon {
  background: #f5e6ef;
}

.spi-gallery-usecase-card:nth-child(3) .spi-gallery-usecase-icon {
  background: #fff0e3;
}

.spi-gallery-usecase-card:nth-child(4) .spi-gallery-usecase-icon {
  background: #e9f1fb;
}

.spi-gallery-usecase-card:nth-child(5) .spi-gallery-usecase-icon {
  background: #eaf7f1;
}

.spi-gallery-usecase-card:nth-child(6) .spi-gallery-usecase-icon {
  background: #f2eafa;
}

.spi-gallery-usecase-content h3 {
  margin: 24px 0 7px;

  font-size: 16px;
}

.spi-gallery-usecase-content p {
  max-width: 300px;

  margin: 0;

  color: var(--spi-gallery-muted);

  font-size: 12px;

  line-height: 1.65;
}

/* =========================================================
       CTA
    ========================================================= */

.spi-gallery-cta {
  position: relative;

  overflow: hidden;

  padding: 96px 0;

  color: #fff;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(183, 156, 237, 0.35),
      transparent 25%
    ),
    radial-gradient(
      circle at 15% 90%,
      rgba(231, 183, 216, 0.18),
      transparent 24%
    ),
    linear-gradient(135deg, #604493 0%, #392858 100%);
}

.spi-gallery-cta-inner {
  max-width: 860px;

  margin: 0 auto;

  text-align: center;
}

.spi-gallery-cta-eyebrow {
  margin: 0 0 14px;

  color: #e8ddfa;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.17em;

  text-transform: uppercase;
}

.spi-gallery-cta-title {
  margin: 0;

  font-size: clamp(2.15rem, 4vw, 3.8rem);

  line-height: 1.08;

  letter-spacing: -0.045em;

  font-weight: 800;
}

.spi-gallery-cta-description {
  max-width: 760px;

  margin: 20px auto 0;

  color: rgba(255, 255, 255, 0.76);

  font-size: 14px;

  line-height: 1.85;
}

.spi-gallery-cta-actions {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 11px;

  margin-top: 30px;
}

.spi-gallery-cta-link {
  min-height: 52px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  padding: 0 21px;

  border-radius: 14px;

  color: var(--spi-gallery-deep);

  background: #fff;

  font-size: 13px;

  font-weight: 800;

  transition:
    transform 250ms ease,
    box-shadow 250ms ease,
    background 250ms ease;
}

.spi-gallery-cta-link:hover {
  transform: translateY(-3px);

  box-shadow: 0 17px 34px rgba(0, 0, 0, 0.2);
}

.spi-gallery-cta-link-alt {
  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.25);

  background: rgba(255, 255, 255, 0.09);
}

.spi-gallery-cta-link-alt:hover {
  color: #fff;

  background: rgba(255, 255, 255, 0.16);
}

/* =========================================================
       FINAL CTA
    ========================================================= */

.spi-gallery-final {
  padding: 72px 0 82px;

  text-align: center;

  background: var(--spi-gallery-soft);
}

.spi-gallery-final-title {
  margin: 0;

  font-size: clamp(1.7rem, 3vw, 2.6rem);

  letter-spacing: -0.04em;

  font-weight: 800;
}

.spi-gallery-final-text {
  max-width: 650px;

  margin: 13px auto 0;

  color: var(--spi-gallery-muted);

  font-size: 13px;

  line-height: 1.8;
}

.spi-gallery-final-action {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin-top: 22px;

  color: var(--spi-gallery-deep);

  font-size: 13px;

  font-weight: 800;

  transition: gap 250ms ease;
}

.spi-gallery-final-action:hover {
  gap: 14px;
}

/* =========================================================
       RESPONSIVE
    ========================================================= */

@media (min-width: 1500px) {
  .spi-gallery-shell {
    width: min(1360px, calc(100% - 70px));
  }

  .spi-gallery-hero {
    min-height: 720px;
  }

  .spi-gallery-section {
    padding: 55px 0;
  }
}

@media (max-width: 1100px) {
  .spi-gallery-hero-shell {
    gap: 30px;
  }

  .spi-gallery-intro-layout,
  .spi-gallery-featured-layout {
    gap: 45px;
  }

  .spi-gallery-usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .spi-gallery-hero {
    min-height: auto;
  }

  .spi-gallery-hero-shell {
    grid-template-columns: 1fr;

    padding: 75px 0 65px;
  }

  .spi-gallery-hero-visual {
    max-width: 650px;

    min-height: 480px;

    justify-self: center;
  }

  .spi-gallery-intro-layout,
  .spi-gallery-featured-layout {
    grid-template-columns: 1fr;
  }

  .spi-gallery-intro-visual,
  .spi-gallery-featured-visual {
    width: 100%;

    max-width: 680px;

    margin: 0 auto;
  }

  .spi-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .spi-gallery-shell {
    width: min(100% - 28px, 680px);
  }

  .spi-gallery-section {
    padding: 75px 0;
  }

  .spi-gallery-hero-shell {
    padding: 60px 0 35px;
  }

  .spi-gallery-hero-title {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .spi-gallery-hero-description {
    font-size: 14px;

    line-height: 1.75;
  }

  .spi-gallery-hero-actions {
    margin-top: 25px;
  }

  .spi-gallery-primary-link,
  .spi-gallery-secondary-link {
    width: 100%;
  }

  .spi-gallery-hero-visual {
    min-height: 390px;

    margin-top: 10px;
  }

  .spi-gallery-hero-image-a {
    width: 56%;

    height: 65%;

    left: 1%;
  }

  .spi-gallery-hero-image-b {
    width: 45%;

    height: 52%;

    right: 0;
  }

  .spi-gallery-hero-image-c {
    width: 48%;

    height: 47%;

    right: 7%;
  }

  .spi-gallery-hero-badge {
    right: 1%;

    bottom: 8%;

    font-size: 8px;
  }

  /* INTRO */

  .spi-gallery-intro-visual,
  .spi-gallery-featured-visual {
    min-height: 420px;
  }

  .spi-gallery-intro-image-frame {
    width: 84%;

    height: 87%;

    left: 0;
  }

  .spi-gallery-intro-mini {
    width: 47%;

    min-height: 132px;

    right: 0;

    bottom: 8%;

    padding: 15px;
  }

  /* GALLERY */

  .spi-gallery-grid {
    grid-template-columns: 1fr;

    gap: 16px;
  }

  /*
        Still EXACTLY same aspect ratio
        on mobile.
      */

  .spi-gallery-image-link {
    aspect-ratio: 4 / 3;
  }

  .spi-gallery-image-overlay {
    opacity: 1;

    background: linear-gradient(
      180deg,
      transparent 38%,
      rgba(28, 20, 38, 0.72) 100%
    );
  }

  .spi-gallery-view-icon {
    transform: none;
  }

  /* FEATURED */

  .spi-gallery-featured-frame {
    inset: 4% 5% 4% 0;
  }

  .spi-gallery-featured-chip {
    right: 0;

    top: 9%;

    font-size: 8px;

    padding: 10px 11px;
  }

  /* USE CASES */

  .spi-gallery-usecase-grid {
    grid-template-columns: 1fr;
  }

  .spi-gallery-usecase-card {
    min-height: 190px;
  }

  /* CTA */

  .spi-gallery-cta {
    padding: 76px 0;
  }

  .spi-gallery-cta-actions {
    flex-direction: column;
  }

  .spi-gallery-cta-link {
    width: 100%;
  }

  /* FINAL */

  .spi-gallery-final {
    padding: 58px 0 68px;
  }
}

@media (max-width: 430px) {
  .spi-gallery-shell {
    width: calc(100% - 24px);
  }

  .spi-gallery-hero-title {
    font-size: 2.42rem;
  }

  .spi-gallery-hero-visual {
    min-height: 330px;
  }

  .spi-gallery-hero-image {
    padding: 5px;
  }

  .spi-gallery-intro-visual,
  .spi-gallery-featured-visual {
    min-height: 350px;
  }

  .spi-gallery-intro-mini {
    width: 49%;

    min-height: 120px;

    padding: 12px;
  }

  .spi-gallery-section {
    padding: 62px 0;
  }

  .spi-gallery-card-content {
    padding: 16px;
  }

  .spi-gallery-card-title {
    font-size: 14px;
  }
}

/* =========================================================
       ACCESSIBILITY / REDUCED MOTION
    ========================================================= */

.spi-gallery-page a:focus-visible,
.spi-gallery-page button:focus-visible {
  outline: 3px solid rgba(183, 156, 237, 0.75);

  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .spi-gallery-reveal,
  .spi-gallery-card,
  .spi-gallery-image,
  .spi-gallery-image-overlay,
  .spi-gallery-view-icon,
  .spi-gallery-hero-image,
  .spi-gallery-intro-image-frame,
  .spi-gallery-featured-frame,
  .spi-gallery-featured-frame img,
  .spi-gallery-filter,
  .spi-gallery-primary-link,
  .spi-gallery-secondary-link,
  .spi-gallery-showcase-item,
  .spi-gallery-usecase-card,
  .spi-gallery-usecase-icon,
  .spi-gallery-cta-link,
  .spi-gallery-final-action {
    transition: none !important;
  }

  .spi-gallery-reveal {
    opacity: 1;

    transform: none;
  }
}
