/* Swipe Phrases design case. Shared header, footer and form keep their site styles. */
.sp-skip {
  position: absolute;
  z-index: 1001;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: #fff;
  color: #0c3174;
  transform: translateY(calc(-100% - 12px));
}

.sp-skip:focus {
  transform: none;
}

.sp-case {
  --sp-ink: #14213c;
  --sp-muted: #40506a;
  --sp-blue: #184db7;
  --sp-ice: #eaf2ff;
  --sp-line: #d7e2f4;
  --sp-gap: clamp(52px, 7vw, 102px);
  color: var(--sp-ink);
}

.sp-shell {
  width: min(calc(100% - 40px), 1250px);
  margin-inline: auto;
}

.sp-case .breadcrumb {
  flex-wrap: wrap;
  row-gap: 4px;
  margin-bottom: 20px;
  font-size: 13px;
}

.sp-case .breadcrumb__link--current {
  color: var(--sp-blue);
}

.sp-case :focus-visible,
.sp-skip:focus-visible {
  outline: 3px solid #2365de;
  outline-offset: 4px;
}

.sp-case .sp-hero :focus-visible,
.sp-case .sp-cta :focus-visible {
  outline-color: #b6d2ff;
}

.sp-hero,
.sp-cta {
  color: #fff;
  background: #0b1b3b;
  border-radius: 28px;
}

.sp-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .91fr);
  min-height: 486px;
  background: radial-gradient(ellipse at 86% 34%, #204783 0, transparent 56%), #0b1b3b;
}

.sp-hero__copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(32px, 5vw, 70px) 0 clamp(32px, 5vw, 70px) clamp(24px, 5vw, 70px);
}

.sp-case .sp-kicker {
  margin: 0 0 14px;
  color: var(--sp-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .095em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sp-hero .sp-kicker,
.sp-cta .sp-kicker {
  color: #b9d1ff;
}

.sp-dot {
  display: inline-block;
  inline-size: 8px;
  block-size: 8px;
  margin-right: 6px;
  border-radius: 100%;
  background: #6ea8ff;
  vertical-align: 1px;
}

.sp-case .project-title {
  color: #fff;
  margin: 0 0 17px;
  font-size: clamp(44px, 6.15vw, 88px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.065em;
}

.sp-hero__lead {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(20px, 2.45vw, 31px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.sp-hero__desc {
  max-width: 44ch;
  margin: 16px 0 0;
  color: #dbe7fd;
  font-size: clamp(15px, 1.44vw, 17px);
  line-height: 1.57;
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.sp-case .sp-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  color: #11254d;
  background: #dceaff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.sp-case .sp-button:hover {
  background: #fff;
}

.sp-case .sp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #e3edff;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: .26em;
  text-decoration: underline;
}

.sp-case .sp-text-link:hover {
  color: #fff;
}

.sp-hero__art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: inherit;
}

.sp-orbits {
  position: absolute;
  inset: 3% 3%;
  background: repeating-radial-gradient(circle at 54% 46%, transparent 0 48px, #b6d2ff33 49px 50px, transparent 51px 67px);
  mask-image: radial-gradient(ellipse, #000 15%, transparent 71%);
}

.sp-phone {
  position: absolute;
  display: block;
  width: min(41%, 218px);
  height: auto;
  border-radius: 11% / 5%;
  box-shadow: 0 16px 45px #050c2599;
}

.sp-phone--front {
  top: 12%;
  left: 16%;
  transform: rotate(-9deg);
}

.sp-phone--back {
  top: 7%;
  right: 12%;
  transform: rotate(12deg);
}

.sp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 0;
  background: #f5f8fe;
  border: 1px solid var(--sp-line);
  border-radius: 18px;
}

.sp-facts > div {
  padding: 20px clamp(16px, 3vw, 34px);
}

.sp-facts > div + div {
  border-inline-start: 1px solid var(--sp-line);
}

.sp-facts dt {
  margin-bottom: 5px;
  color: var(--sp-blue);
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.sp-facts dd {
  margin: 0;
  color: var(--sp-muted);
  font-size: 14px;
  line-height: 1.5;
}

.sp-section,
.sp-cta {
  margin-top: var(--sp-gap);
  scroll-margin-top: 96px;
}

.sp-case h2 {
  margin: 0;
  font-size: clamp(29px, 4.2vw, 53px);
  line-height: 1.08;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.sp-section p:not(.sp-kicker),
.sp-cta p:not(.sp-kicker) {
  font-size: clamp(14px, 1.48vw, 17px);
  line-height: 1.65;
}

.sp-section p:not(.sp-kicker) {
  color: var(--sp-muted);
}

.sp-story {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(24px, 4.7vw, 66px);
}

.sp-story__copy > p:not(.sp-kicker),
.sp-section__head > p:not(.sp-kicker) {
  margin: 14px 0 0;
}

.sp-steps {
  display: grid;
  gap: 0;
  counter-reset: sp-step;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sp-steps li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid var(--sp-line);
}

.sp-steps li::before {
  counter-increment: sp-step;
  content: "0" counter(sp-step);
  min-width: 34px;
  align-self: flex-start;
  padding: 5px 3px;
  border-radius: 6px;
  background: var(--sp-ice);
  color: var(--sp-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.sp-case h3 {
  margin: 0;
  font-size: clamp(15px, 1.65vw, 21px);
  line-height: 1.35;
  letter-spacing: -.025em;
}

.sp-steps p,
.sp-process p {
  margin: 4px 0 0;
}

.sp-story__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 12px clamp(10px, 2.4vw, 30px);
  padding: clamp(12px, 3.2vw, 41px);
  border: 1px solid #cbdcf9;
  border-radius: 22px;
  background: radial-gradient(ellipse at top, #cbdeff, #f1f6ff);
}

.sp-story p.sp-story__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.sp-case figure {
  min-width: 0;
  margin: 0;
}

.sp-screen {
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: 8% / 3.7%;
  box-shadow: 0 5px 16px #13254e26;
}

.sp-story__pair .sp-screen {
  margin-inline: auto;
}

.sp-screen img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
}

.sp-case figcaption {
  margin: 9px 0 0;
  color: var(--sp-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.sp-section__head {
  max-width: 760px;
  margin: 0 0 23px;
}

.sp-showcase {
  padding: clamp(12px, 3vw, 32px);
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  background: #eff5ff;
}

.sp-themes,
.sp-gallery__panel--dark {
  display: none;
}

.sp-theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-gallery__panel {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.65vw, 20px);
}

.sp-gallery__panel--light {
  display: grid;
}

@supports selector(:has(*)) {
  .sp-themes {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
  }

  .sp-themes legend {
    margin-bottom: 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
  }

  .sp-themes label {
    position: relative;
    cursor: pointer;
  }

  .sp-themes input {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .sp-themes label span {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #afbfe0;
    border-radius: 8px;
    color: #153669;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .sp-themes input:checked + span {
    border-color: #174cae;
    color: #fff;
    background: #174cae;
  }

  .sp-themes input:focus-visible + span {
    outline: 3px solid #2365de;
    outline-offset: 3px;
  }

  .sp-showcase:has(#sp-dark:checked) {
    background: #13294f;
    color: #fff;
  }

  .sp-showcase:has(#sp-dark:checked) .sp-gallery__panel--light {
    display: none;
  }

  .sp-showcase:has(#sp-dark:checked) .sp-gallery__panel--dark {
    display: grid;
  }

  .sp-showcase:has(#sp-dark:checked) :focus-visible,
  .sp-showcase:has(#sp-dark:checked) .sp-themes input:focus-visible + span {
    outline-color: #b6d2ff;
  }

  .sp-showcase:has(#sp-dark:checked) figcaption {
    color: #eef4ff;
  }
}

.sp-gallery .sp-gallery__hint {
  margin: 10px 0 0;
  font-size: 13px;
}

.sp-process {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-process li {
  padding: clamp(17px, 2.4vw, 30px);
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  background: #f7faff;
}

.sp-process__number {
  display: block;
  margin-bottom: 8px;
  color: var(--sp-blue);
  font-size: 13px;
  font-weight: 700;
}

.sp-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(18px, 5vw, 64px);
  padding: clamp(20px, 5vw, 64px);
  background: radial-gradient(ellipse at top right, #244c86, transparent 80%), #0b1b3b;
}

.sp-cta p:not(.sp-kicker) {
  max-width: 55ch;
  margin: 16px 0 0;
  color: #dbe7fd;
}

.sp-cta__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.sp-cta__action p:not(.sp-kicker) {
  margin-top: 0;
  margin-bottom: 3px;
}

.sp-case .sp-back {
  display: inline-block;
  margin-top: 21px;
  padding: 8px 0;
  color: var(--sp-blue);
  font-weight: 600;
  line-height: 1.4;
  text-underline-offset: .25em;
  text-decoration: underline;
}

@media (max-width: 970px) {
  .sp-hero {
    min-height: 400px;
  }

  .sp-hero__art {
    min-height: 365px;
  }

  .sp-gallery__panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 20px;
  }
}

@media (max-width: 720px) {
  .sp-shell {
    width: calc(100% - 32px);
  }

  .sp-hero,
  .sp-story,
  .sp-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .sp-hero {
    min-height: 0;
  }

  .sp-hero__copy {
    padding: 26px 20px 4px;
  }

  .sp-hero__art {
    width: min(100%, 410px);
    min-height: 0;
    aspect-ratio: 1.08;
    margin-inline: auto;
  }

  .sp-phone {
    width: 37%;
  }

  .sp-phone--front {
    top: 10%;
    left: 18%;
  }

  .sp-phone--back {
    top: 8%;
    right: 15%;
  }

  .sp-process {
    grid-template-columns: minmax(0, 1fr);
  }

  .sp-facts > div {
    padding: 12px 10px;
  }

  .sp-facts dd {
    font-size: 12px;
  }

  .sp-gallery__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .sp-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .sp-facts > div {
    padding: 10px 14px;
  }

  .sp-facts > div + div {
    border-inline-start: 0;
    border-top: 1px solid var(--sp-line);
  }

  .sp-case .project-title {
    font-size: clamp(35px, 11vw, 46px);
  }

  .sp-case .breadcrumb {
    font-size: 10px;
  }
}
