.cs-case-study {
  --ga-indigo: #5044ac;
  --ga-ink: #371c07;
  --ga-paper: #fffcf7;
  --ga-copy: #6a6355;
}

.cs-case-study .cs-hero-top h1 {
  margin-bottom: 4px !important;
}

.cs-case-study .cs-hero-sub {
  margin: 0 0 26px;
  color: var(--ga-ink);
  font: 400 clamp(50px, 6.4vw, 82px)/.9 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.ga-primary-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 15px 23px;
  color: #371c07;
  background: #95abd9;
  border: 1px solid #371c07;
  border-radius: 40px;
  font: 700 15px/1.4 "Space Grotesk", sans-serif;
  text-decoration: none;
  text-underline-offset: 4px;
}

.ga-primary-link:hover {
  background: #b7c8e7;
}

.ga-overview,
.ga-overview-visuals,
.ga-demo,
.ga-story {
  max-width: 1280px;
  margin: 0 auto;
}

.ga-overview {
  padding: 110px 56px 60px;
  scroll-margin-top: 24px;
}

.ga-section-heading {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.ga-eyebrow {
  margin-bottom: 18px;
  color: #625492;
  font: 700 clamp(11px, calc(.55vw + 8px), 16px)/1 "Space Mono", monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ga-section-heading h2 {
  margin: 0;
  font: 400 64px/1.02 "DM Serif Display", serif;
}

.ga-overview-copy {
  max-width: 760px;
  margin: 0 auto;
  color: #4d463a;
  font: 400 16px/1.6 "Space Grotesk", sans-serif;
  text-align: center;
}

.ga-overview-copy + .ga-overview-copy {
  margin-top: 16px;
}

.ga-overview-visuals {
  padding: 0 56px 120px;
}

.ga-trio-container,
.ga-story,
.ga-closing-content {
  container-type: inline-size;
}

.ga-indigo-grid {
  --ga-grid-size: 36px;
  --ga-grid-line: rgb(151 154 214 / .11);
  background:
    linear-gradient(var(--ga-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ga-grid-line) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 46%, #111021 22%, #29224b 100%);
  background-position: center;
  background-size: var(--ga-grid-size) var(--ga-grid-size), var(--ga-grid-size) var(--ga-grid-size), cover;
  background-color: #121022;
}

.ga-overview-visuals .cs-trio {
  position: relative;
  height: clamp(260px, 52cqi, 620px);
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 24px;
}

.ga-overview-visuals .cs-trio-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.71cqi, 20px);
}

.ga-overview-visuals :is(.cs-trio-side, .cs-trio-ctr) {
  overflow: hidden;
  padding: clamp(1px, .42cqi, 5px) !important;
  border: 1px solid #98a1ab;
  border-radius: clamp(9px, 2.05cqi, 24px);
  background: linear-gradient(150deg, #d9dee3, #c1c7ce 30%, #adb5be 55%, #cdd3d9 76%, #bcc3cb);
  box-shadow: 0 24px 48px rgb(0 0 0 / .32);
  transform: rotate(-9deg);
}

.ga-overview-visuals .cs-trio-side {
  width: clamp(96px, 21cqi, 245px);
  height: clamp(192px, 42cqi, 492px);
}

.ga-overview-visuals .cs-trio-ctr {
  z-index: 2;
  width: clamp(106px, 23cqi, 270px);
  height: clamp(215px, 46.5cqi, 545px);
  box-shadow: 0 28px 56px rgb(0 0 0 / .4);
  transform: none;
}

.ga-overview-visuals .cs-trio-side:last-child {
  transform: rotate(9deg);
}

.ga-slot-surface {
  background: #eeeaf4;
}

.ga-overview-visuals .ga-slot-surface {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(6px, 1.37cqi, 16px);
}

#overview-screens image-slot:not([data-editable])::part(image) {
  top: 0 !important;
  transform: translateX(-50%);
}

.ga-slot-surface image-slot {
  color: #554a6d;
  font: 500 13px/1.25 "Space Grotesk", sans-serif;
  overflow-wrap: anywhere;
}

.ga-slot-surface image-slot:not([data-editable])::part(empty) {
  cursor: default;
}

.ga-overview-visuals image-slot {
  font-size: clamp(9px, 1.25cqi, 14px);
}

.ga-overview-visuals image-slot::part(empty) {
  padding: clamp(4px, 1cqi, 12px);
}

.ga-overview-visuals .cs-cards-3 {
  display: grid;
  gap: 24px;
}

.ga-overview-visuals .cs-cards-3 > div {
  padding: 30px;
  border-radius: 18px;
  background: var(--ga-paper);
  box-shadow: 0 12px 30px rgb(55 28 7 / .1);
}

.ga-priority-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  color: white;
  background: var(--ga-indigo);
}

.ga-overview-visuals h3 {
  margin: 0 0 12px;
  font: 400 24px/1.05 "DM Serif Display", serif;
}

.ga-overview-visuals .cs-cards-3 p,
.ga-framework .cs-steps p {
  margin: 0;
  color: var(--ga-copy);
  font: 400 15px/1.6 "Space Grotesk", sans-serif;
}

[data-match-card-lines] :is(h3, p) {
  overflow-wrap: break-word;
  text-wrap: balance;
}

@media (width > 720px) {
  .ga-overview-visuals .cs-cards-3 {
    row-gap: 0;
  }

  .ga-overview-visuals .cs-cards-3 > div {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }

  .ga-overview-visuals .cs-cards-3 h3 {
    font-size: clamp(19px, 2.5vw, 24px);
  }
}

.ga-demo {
  padding: 110px 56px 120px;
  scroll-margin-top: 24px;
}

.ga-demo .ga-section-heading {
  margin-bottom: 40px;
}

.ga-demo-lead {
  margin: 16px 0 0;
  color: var(--ga-copy);
  font: 400 18px/1.6 "Space Grotesk", sans-serif;
  text-wrap: balance;
}

.ga-demo-preview iframe {
  display: block;
  width: 100%;
  height: 54rem;
  border: 1px solid var(--ga-ink);
  border-radius: 20px;
  background: #0b0d13;
}

.ga-demo-link {
  display: inline-block;
  margin-top: 18px;
  font: 700 15px/1.4 "Space Grotesk", sans-serif;
  text-underline-offset: 4px;
}

.ga-brand {
  padding: 120px 0;
}

.ga-brand .ga-section-heading {
  margin-bottom: 50px;
}

.ga-brand .ga-section-heading h2 {
  font-size: 58px;
}

.ga-brand .cs-brand-grid {
  display: grid;
}

.ga-brand-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ga-wordmark-visual {
  background: #000;
}

.ga-wordmark {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .3em;
  padding-bottom: 10%;
  color: #fcfbff;
  font: 700 clamp(18px, 11cqi, 78px)/1.1 "Space Grotesk", sans-serif;
}

.ga-ghost {
  display: block;
  width: 2.65em;
  aspect-ratio: 1;
  background: currentColor;
  mask: url("gostly-logo-white.png") center / 150% no-repeat luminance;
}

.ga-brand .cs-brand-text {
  display: flex;
  flex-direction: column;
  color: var(--ga-paper);
  background: #342a5a;
}

.ga-brand .cs-brand-text:nth-child(3) {
  background: #24242a;
}

.ga-brand .cs-brand-text h3 {
  margin: 0 0 16px;
  font: 400 34px/1.05 "DM Serif Display", serif;
}

.ga-brand .cs-brand-text p {
  margin: 0;
  font: 400 16px/1.65 "Space Grotesk", sans-serif;
}

.ga-brand .cs-brand-label {
  position: absolute;
  border: 1px solid #e8e1fa;
  color: #fff;
  background: var(--ga-indigo);
  font: 700 11px/1 "Space Mono", monospace;
}

.ga-pattern {
  --ga-grid-size: clamp(18px, 7cqi, 52px);
  --ga-grid-line: rgb(151 154 214 / .18);
}

.ga-story {
  padding: 0 56px 64px;
}

.ga-story-heading {
  margin-bottom: 44px;
}

.ga-story h2,
.ga-framework h2 {
  margin: 0 0 18px;
  font: 400 64px/1 "DM Serif Display", serif;
}

.ga-story .cs-gallery-lead {
  max-width: 640px;
  margin: 0;
  color: #4d463a;
  font: 400 17px/1.7 "Space Grotesk", sans-serif;
}

.cs-case-study .ga-story .cs-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: calc((100cqw - 60px) * .22112) !important;
  gap: 20px;
}

.ga-story .cs-gallery > div {
  overflow: hidden;
  border: 1px solid var(--ga-ink);
  border-radius: 16px;
}

.ga-story image-slot[fit="contain"][data-filled] {
  background: #080b11;
}

.ga-story .cs-g-tall {
  grid-row: span 2;
}

.ga-story .cs-g-wide {
  grid-column: span 2;
}

.ga-framework {
  padding: 52px 56px;
  background: #f6eedf;
}

.ga-framework-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.ga-framework h2 {
  margin-bottom: 34px;
  color: var(--ga-ink);
}

.ga-framework .cs-steps {
  grid-auto-rows: 1fr;
}

.ga-framework .cs-steps > div {
  padding: 24px;
  border-radius: 20px;
  background: var(--ga-paper);
  box-shadow: 0 12px 30px rgb(0 0 0 / .25);
}

.ga-framework .cs-steps h3 {
  margin: 0 0 8px;
  font: 400 26px/1.05 "DM Serif Display", serif;
}

.ga-framework .cs-steps > div > div:first-child {
  margin-bottom: 12px;
  color: var(--ga-indigo);
  font: 700 64px/1 "Space Grotesk", sans-serif;
}

.ga-closing {
  padding: clamp(158px, 19.5vw, 280px) 56px clamp(102px, 12.5vw, 180px);
  color: var(--ga-paper);
}

.ga-closing-content {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.cs-case-study .ga-closing .cs-cta-title {
  margin: 0 0 22px;
  font-size: 10.3cqi !important;
  font-weight: 400 !important;
  line-height: .84 !important;
  white-space: nowrap;
}

.ga-closing p {
  max-width: 620px;
  margin: 0 auto 38px;
  font: 500 16px/1.6 "Space Grotesk", sans-serif;
  text-wrap: balance;
}

.ga-closing a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 24px;
  border: 1px solid #e8e1fa;
  border-radius: 40px;
  color: #fff;
  background: var(--ga-indigo);
  font: 700 14px/1 "Space Grotesk", sans-serif;
  text-decoration: none;
}

.ga-closing a:hover {
  background: #6255c5;
}

@media (max-width: 1024px) {
  .cs-case-study .cs-hero-sub {
    font-size: clamp(40px, 5.3vw, 62px);
  }
}

@media (max-width: 900px) {
  .cs-case-study .cs-hero-sub {
    order: 2;
    margin-bottom: 28px;
    font-size: clamp(47.6px, 8.96vw, 84px);
  }

  .cs-case-study .ga-story.cs-sec-tight {
    padding-bottom: clamp(38.4px, 6.4vw, 57.6px) !important;
  }

  .cs-case-study .ga-story .cs-gallery {
    grid-auto-rows: calc((100cqw - 20px) * .44225) !important;
  }

  .cs-case-study .ga-framework {
    padding-top: clamp(46px, 6.4vw, 52px) !important;
    padding-bottom: clamp(46px, 6.4vw, 52px) !important;
  }

  .cs-case-study .ga-framework .cs-steps > div {
    padding: 20px !important;
  }
}

@media (max-width: 720px) {
  .cs-case-study .cs-hero-sub {
    font-size: clamp(39.2px, 8.96vw, 64.4px);
  }

  .cs-case-study .ga-story .cs-gallery {
    grid-auto-rows: calc((100cqw - 12px) * .44225) !important;
  }

  .cs-case-study .ga-framework .cs-steps {
    gap: 20px;
  }

  .cs-case-study .ga-framework .cs-steps > div {
    padding: 22px !important;
  }

  .cs-case-study .ga-framework .cs-steps > div > div:first-child {
    margin-bottom: 12px !important;
  }
}
