/* The home page has no hard edges between its bands (James, 18 October 2026: "eliminate the cut so
   the gradient fades between each frame"). Where two bands meet, each fades to the same colour at the
   seam: two soft inset shadows on every band, one at its top in the colour it shares with the band
   above, one at its bottom in the colour it shares with the band below. The shadows sit over the
   band's own background and under its content, and stay inside its padding, so nothing moves. In
   light, a seam between a pale band and a dark one passes through a soft warm grey, the halfway of the two with a breath of the crimson.
   The grain and the glows fade out at the seams too, so their texture never draws a line. Colours are
   literal because a dark band redefines the band tokens inside itself. */

main > section, main + .site-footer, .phone-bar + .site-footer {
  --seam: clamp(32px, 6vw, 88px);
  --seam-t: transparent;
  --seam-b: transparent;
  box-shadow:
    inset 0 calc(var(--seam) * 2.5) var(--seam) calc(var(--seam) * -1.5) var(--seam-t),
    inset 0 calc(var(--seam) * -2.5) var(--seam) calc(var(--seam) * -1.5) var(--seam-b);
}

/* Light. --dusk: a pale band meeting a dark one. */
:root { --dusk: color-mix(in oklab, #FFFFFF 50%, var(--dusk-ink)); --dusk-ink: #24141A; }
.hero-demo, .late { --seam-b: var(--dusk); }
.late, .deck { --seam-t: var(--dusk); }
.late, .deck { --seam-b: var(--dusk); }
#ask-ori { --seam-t: var(--dusk); --seam-b: var(--dusk); }
#iphone { --seam-t: var(--dusk); --seam-b: #FBFBFC; }
#iphone + .band-alt { --seam-t: #FBFBFC; --seam-b: var(--dusk); }
#privacy { --seam-t: var(--dusk); --seam-b: var(--dusk); }
#get-started { --seam-t: var(--dusk); --seam-b: #FBFBFC; }
.site-footer { --seam-t: #FBFBFC; }

/* Dark: every band is ink, so each seam is the two inks halfway. */
@media (prefers-color-scheme: dark) {
  .hero-demo { --seam-b: #0D0E13; }
  .late { --seam-t: #0D0E13; --seam-b: #101118; }
  .deck { --seam-t: #101118; --seam-b: #101118; }
  #ask-ori { --seam-t: #101118; --seam-b: #101118; }
  #iphone { --seam-t: #101118; --seam-b: #13141B; }
  #iphone + .band-alt { --seam-t: #13141B; --seam-b: #0E0F15; }
  #privacy { --seam-t: #0E0F15; --seam-b: #101118; }
  #get-started { --seam-t: #101118; --seam-b: #13141B; }
  .site-footer { --seam-t: #13141B; }
}

/* The footer's rule was a seam of its own. */
main + .site-footer, .phone-bar + .site-footer { border-top-color: transparent; }

/* Grain and glows ease out at the seams. */
main > .band-dark::after, main > .deck::before, main > .deck::after {
  -webkit-mask-image: linear-gradient(transparent 0, #000 calc(var(--seam) * 2.4), #000 calc(100% - var(--seam) * 2.4), transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 calc(var(--seam) * 2.4), #000 calc(100% - var(--seam) * 2.4), transparent 100%);
}
