/* Homepage section: digital campaigns beside distinctive websites, split by a seam of light.
   Everything is scoped to #split so it cannot affect the rest of the page. */
#split { position: relative; height: min(92svh, 820px); min-height: 560px; display: grid; grid-template-columns: 50% minmax(0, 1fr); overflow: hidden; padding: 0; user-select: none; }
#split .sp-side { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
#split .sp-night { background: radial-gradient(90% 70% at 50% 38%, #1b1b24, #07070a 75%); color: #fff; }
#split .sp-day { background: radial-gradient(90% 70% at 50% 38%, #fff, #eceae6 100%); color: #121216; }
/* each side's pictures and words sit centred in their half */
#split .sp-inner { position: absolute; top: 0; bottom: 0; left: 50%; width: 50vw; translate: -50% 0; }
#split .sp-art { position: absolute; left: 0; right: 0; top: 9%; height: 52%; perspective: 1100px; }
#split .sp-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(calc(var(--tx, 0) * 12deg)) rotateX(calc(var(--ty, 0) * -8deg)); }
#split .sp-piece { position: absolute; display: block; width: auto; height: 78%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 0 0 60px -6px rgba(150,170,255,0.28), 0 40px 70px -30px #000; animation: sp-float 8s ease-in-out infinite; }
#split .sp-piece:nth-child(1) { left: 2%; top: 16%; height: 62%; translate: 0 0 -80px; animation-delay: -2s; }
#split .sp-piece:nth-child(2) { right: 3%; top: 22%; height: 58%; translate: 0 0 -140px; animation-delay: -5s; }
#split .sp-piece:nth-child(3) { left: 50%; top: 8%; translate: -50% 0 40px; }
#split .sp-win { position: absolute; width: 66%; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid rgba(18,18,22,0.12); box-shadow: 0 40px 70px -34px rgba(18,18,30,0.5); animation: sp-float 9s ease-in-out infinite; }
#split .sp-win::before { content: ""; display: block; height: 22px; background: radial-gradient(circle 3.5px at 13px 50%, #cfd0d8 98%, transparent), radial-gradient(circle 3.5px at 25px 50%, #cfd0d8 98%, transparent), radial-gradient(circle 3.5px at 37px 50%, #cfd0d8 98%, transparent), #f4f4f6; }
#split .sp-win img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
#split .sp-win:nth-child(1) { left: 6%; top: 4%; translate: 0 0 -120px; animation-delay: -3s; }
#split .sp-win:nth-child(2) { right: 6%; top: 30%; width: 56%; translate: 0 0 -60px; animation-delay: -6s; }
#split .sp-win:nth-child(3) { left: 17%; top: 17%; translate: 0 0 50px; }
@keyframes sp-float { 50% { transform: translateY(-14px); } }
/* the line of light stays put; its colours travel along it */
@keyframes sp-flow-down { to { background-position: 0 200%; } }
@keyframes sp-flow-across { to { background-position: 200% 0; } }
#split .sp-words { position: absolute; left: 0; right: 0; bottom: 8%; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
#split h3 { font: 700 min(5.2vw, 9svh, 5.4rem) / 0.98 var(--font-body); letter-spacing: -0.045em; }
#split h3 span { display: block; }
#split .sp-btn { display: inline-flex; font: 500 0.95rem var(--font-body); text-decoration: none; border-radius: 99px; padding: 0.95rem 1.7rem; background: #121216; color: #fff; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
#split .sp-night .sp-btn { background: #fff; color: #000; }
#split .sp-btn:hover { transform: translateY(-2px); }
#split .sp-seam { position: absolute; z-index: 5; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: linear-gradient(#38bdf8, #6366f1, #d946ef, #f97316, #d946ef, #6366f1, #38bdf8) 0 0 / 100% 200%; animation: sp-flow-down 5s linear infinite; box-shadow: 0 0 22px 3px rgba(139,92,246,0.6), 0 0 90px 18px rgba(217,70,239,0.22); }
@media (max-width: 900px) {
  /* stacked: each half is only as tall as its pictures and words, which sit close together */
  #split { --u: min(1vw, 6.5px); display: block; height: auto; min-height: 0; padding: 0; }
  #split .sp-inner { position: relative; top: auto; bottom: auto; left: auto; width: 100%; translate: none; display: flex; flex-direction: column; padding: 2.5rem 0 2.25rem; }
  #split .sp-art { position: relative; top: auto; height: calc(var(--u) * 52); }
  #split .sp-piece { height: calc(var(--u) * 41.25); top: calc(var(--u) * 6) !important; }
  #split .sp-piece:nth-child(1) { left: 3%; }
  #split .sp-piece:nth-child(2) { right: 3%; }
  #split .sp-piece:nth-child(3) { top: 0 !important; width: calc(var(--u) * 40); height: auto; }
  #split .sp-day .sp-art { height: calc(var(--u) * 47); }
  #split .sp-win { width: calc(var(--u) * 54); }
  #split .sp-win:nth-child(1) { left: 4%; top: 2%; } #split .sp-win:nth-child(2) { right: 4%; top: 20%; width: calc(var(--u) * 48); } #split .sp-win:nth-child(3) { left: calc(50% - var(--u) * 28); top: 10%; }
  #split .sp-words { position: static; margin-top: 1.5rem; gap: 0.9rem; }
  #split h3 { font-size: min(9vw, 3rem); }
  #split h3 span { display: inline; }
  /* the line of light now runs across, exactly where the two halves meet */
  #split .sp-seam { display: none; }
  #split .sp-day::before { content: ""; position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #38bdf8, #6366f1, #d946ef, #f97316, #d946ef, #6366f1, #38bdf8) 0 0 / 200% 100%; animation: sp-flow-across 5s linear infinite; box-shadow: 0 0 22px 3px rgba(139,92,246,0.5); }
}
@media (prefers-reduced-motion: reduce) { #split .sp-piece, #split .sp-win, #split .sp-seam, #split .sp-day::before { animation: none; } }
