.marketing-services {
  padding-block: clamp(58px, 7vw, 102px);
  background: #121212;
  color: #F8F3F9;
}

.marketing-services > .container {
  padding-top: clamp(35px, 5vw, 64px);
  border-top: 1px solid #332936;
}

.marketing-heading { margin-bottom: clamp(21px, 3.5vw, 38px); }
.marketing-heading h2 {
  max-width: 22ch;
  font-size: clamp(32px, 4.7vw, 60px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.marketing-heading p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 14px;
  color: #D5CDD8;
  line-height: 1.5;
}

.marketing-heading .eyebrow { margin-bottom: 13px; color: #D7BCED; }

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
}

.marketing-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(12px, 1.5vw, 20px);
  border: 1px solid #484050;
  border-radius: 15px;
  background: #211B26;
}

.marketing-card-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  padding: 17px 1px 0;
}

.marketing-card h3 {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.032em;
}

.marketing-scope {
  color: #DED2E3;
  font-size: .84rem;
  line-height: 1.45;
}

.marketing-price {
  color: #F7E8F5;
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.marketing-card-copy .marketing-price { margin-top: auto; padding-top: 7px; }
.marketing-card > .marketing-action { margin-top: 12px; }

.marketing-action {
  display: inline-flex;
  min-height: 44px;
  align-self: start;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid #665770;
  border-radius: 8px;
  background: #302536;
  color: #FAF1F9;
  font-size: .82rem;
  font-weight: 640;
  line-height: 1.25;
}

.marketing-action:is(:hover, :focus-visible) {
  border-color: #D9BCE9;
  background: #493450;
}

.marketing-action:focus-visible { outline-color: #EFD8FC; outline-offset: 3px; }

.marketing-note {
  margin-top: 16px;
  color: #BEB0C3;
  font-size: .78rem;
  line-height: 1.5;
}

.marketing-preview {
  --preview-field: #81678F;
  --preview-window: #F3E4F2;
  --preview-ink: #483650;
  --preview-tint: #AE83C6;
  display: grid;
  min-width: 0;
  aspect-ratio: 1.48;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 9px;
  background: var(--preview-field);
  color: var(--preview-ink);
}

.marketing-preview--motion {
  --preview-field: #715572;
  --preview-window: #F3DBEC;
  --preview-ink: #3B2542;
  --preview-tint: #D399B9;
}

.marketing-preview--series {
  --preview-field: #5A567C;
  --preview-window: #E7E0F5;
  --preview-ink: #3D3456;
  --preview-tint: #A8A0D4;
}

.marketing-preview--campaign {
  --preview-field: #775967;
  --preview-window: #F5DDDF;
  --preview-ink: #452C3D;
  --preview-tint: #C58D9A;
}

.marketing-art-window {
  position: relative;
  display: grid;
  grid-template-rows: 12% 1fr;
  width: 70%;
  height: 71%;
  border: 1px solid #2D203A9C;
  border-radius: 7px;
  background: var(--preview-window);
  box-shadow: 0 8px 13px #26173546;
}

.marketing-preview--motion .marketing-art-window,
.marketing-preview--series .marketing-art-window,
.marketing-preview--campaign .marketing-art-window { grid-template-rows: 12% 1fr 15%; }

.marketing-art-chrome {
  position: relative;
  border-radius: 5px 5px 0 0;
  background: var(--preview-ink);
}

.marketing-art-chrome::before {
  position: absolute;
  top: 50%;
  left: 7px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--preview-window);
  box-shadow: 4px 0 var(--preview-window), 8px 0 var(--preview-window);
  content: '';
}

.marketing-art-scene {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
}

.marketing-art-object {
  position: absolute;
  z-index: 1;
  inset: 14% 8% 14% auto;
  width: 35%;
  border-radius: 6px;
  background: var(--preview-tint);
}

.marketing-art-object::before,
.marketing-art-object::after {
  position: absolute;
  content: '';
}

.marketing-art-object::before {
  top: 18%;
  left: 19%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--preview-window);
}

.marketing-art-object::after {
  right: 9%;
  bottom: 12%;
  width: 70%;
  height: 45%;
  clip-path: polygon(0 100%, 36% 15%, 56% 62%, 74% 0, 100% 100%);
  background: var(--preview-ink);
  opacity: .72;
}

.marketing-art-line {
  position: absolute;
  top: 41%;
  left: 9%;
  width: 35%;
  height: 3px;
  border-radius: 2px;
  background: var(--preview-ink);
  transform-origin: left;
}

.marketing-art-line + .marketing-art-line {
  top: 55%;
  width: 24%;
  background: var(--preview-tint);
}

.marketing-art-progress {
  position: relative;
  margin: auto 8% auto 15%;
  height: 2px;
  border-radius: 3px;
  background: #49334F30;
}

.marketing-art-progress::before {
  position: absolute;
  top: -2px;
  left: -8%;
  width: 5px;
  height: 6px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--preview-ink);
  content: '';
}

.marketing-art-progress::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--preview-ink);
  transform: scaleX(.58);
  transform-origin: left;
  content: '';
}

.marketing-preview--motion .marketing-art-object {
  inset: 10% 10% auto auto;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--preview-tint);
}

.marketing-preview--motion .marketing-art-object::before {
  inset: 16%;
  width: auto;
  border: 1px solid var(--preview-ink);
  background: transparent;
}

.marketing-preview--motion .marketing-art-object::after {
  inset: 34% 29%;
  width: auto;
  height: auto;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 1;
}

.marketing-preview--series .marketing-art-window::before {
  position: absolute;
  z-index: -1;
  inset: -8% -8% 10% 12%;
  border: 1px solid #3D3456C0;
  border-radius: 7px;
  background: var(--preview-tint);
  content: '';
}

.marketing-preview--series .marketing-art-object::before {
  width: 56%;
  background: var(--preview-ink);
}

.marketing-preview--series .marketing-art-object::after {
  width: 48%;
  clip-path: none;
  border: 1px solid var(--preview-ink);
  border-radius: 50%;
  background: var(--preview-window);
  opacity: .9;
}

.marketing-preview--campaign .marketing-art-object { border-radius: 50% 50% 6px 6px; }

.marketing-preview--campaign .marketing-art-object::before {
  top: 19%;
  left: 22%;
  width: 57%;
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  background: var(--preview-window);
}

.marketing-preview--campaign .marketing-art-object::after {
  inset: 13%;
  width: auto;
  height: auto;
  clip-path: none;
  border: 1px solid var(--preview-ink);
  border-radius: 50% 50% 5px 5px;
  background: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .marketing-action { transition: background-color 170ms ease, border-color 170ms ease; }

  .marketing-art-progress::after { animation: marketing-playback 4.6s linear infinite; }
  .marketing-preview--motion .marketing-art-object { animation: marketing-float 4.6s ease-in-out infinite; }
  .marketing-preview--series .marketing-art-object::after { animation: marketing-sequence 4.6s ease-in-out infinite; }
  .marketing-preview--campaign .marketing-art-object::before { animation: marketing-spotlight 4.6s ease-in-out infinite; }
  .marketing-preview:not(.marketing-preview--images) .marketing-art-line { animation: marketing-write 4.6s ease-out infinite; }
  .marketing-preview:not(.marketing-preview--images) .marketing-art-line + .marketing-art-line { animation-delay: .16s; }

  @keyframes marketing-playback {
    0% { transform: scaleX(0); }
    90%, 100% { transform: scaleX(1); }
  }

  @keyframes marketing-float {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    46% { transform: translateY(7%) rotate(9deg); }
    74% { transform: translateY(-6%) rotate(-3deg); }
  }

  @keyframes marketing-sequence {
    0%, 100% { transform: translate(3%, 1%); }
    45% { transform: translate(-31%, -24%); }
    70% { transform: translate(-10%, 11%); }
  }

  @keyframes marketing-spotlight {
    0%, 100% { transform: scale(1) rotate(0); }
    55% { transform: scale(1.24) rotate(45deg); }
  }

  @keyframes marketing-write {
    0% { transform: scaleX(0); opacity: 0; }
    24%, 93% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
  }
}

@media (max-width: 920px) {
  .marketing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .marketing-grid { grid-template-columns: minmax(0, 1fr); }
  .marketing-preview { aspect-ratio: 1.75; }
  .marketing-card-copy { padding-top: 14px; }
}
