/* 2026-11-05 "Practical AI. Useful marketing." plays the real work behind each service (Adam: "improve the visuals and
   motion graphics and layout to make it more interesting and with a cooler more entertaining and interesting design").
   Wide screens: one screen, three channels, beside the services; a soft glow around it takes the colour of what plays.
   Phones: each service has its own screen above its title, and the one in the middle of the screen plays.
   Without scripts: the first still beside (or above) the services, all text visible. Reduced motion: stills. */

#discovery-services.ls { --ls-night: #0d1424; --ls-radius: 8px; }
/* Wide: the heading and lead run across the top, then the services sit beside the screen, so the service that is
   playing is always next to it (reviewer, 11-05: the third one was below the fold while its site played). */
.ls-grid { display: grid; gap: var(--space-7) var(--space-8); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy copy" "list screen" "more screen"; align-items: start; }
.ls-copy { grid-area: copy; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); align-items: end; }
.ls-copy .section-mark { grid-column: 1 / -1; }
.ls-copy h2 { margin: 0; }
.ls-copy .lead { margin: 0; max-width: 52ch; }
.ls-screen { grid-area: screen; margin: 0; position: sticky; top: calc(var(--header-h, 76px) + var(--space-6)); isolation: isolate; }
.ls-list { grid-area: list; display: flex; flex-direction: column; }
.ls-more { grid-area: more; margin: 0; }

/* The screen */
.ls-stage, .ls-card-stage { position: relative; overflow: hidden; border-radius: var(--ls-radius); background: var(--ls-night);
  box-shadow: 0 0 0 1px rgba(255, 181, 107, .16), 0 40px 90px -40px rgba(0, 0, 0, .9); isolation: isolate; }
.ls-stage { aspect-ratio: 16 / 10; }
.ls-ambient { position: absolute; inset: -7% -5%; width: 110%; height: 114%; z-index: -1; filter: blur(46px) saturate(1.35); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.ls-ambient.is-lit { opacity: .5; }
.ls-channel { position: absolute; inset: 0; visibility: hidden; }
.ls-channel.is-on, .ls-channel.is-leaving { visibility: visible; }
.ls-channel.is-on { z-index: 2; }
.ls-channel.is-leaving { z-index: 1; }
.ls-video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ls-night); }
.ls-edge { position: absolute; left: 0; right: 0; top: -1px; height: 3px; z-index: 3; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 181, 107, .2), var(--accent) 16%, #ffe2bf 50%, var(--accent) 84%, rgba(255, 181, 107, .2));
  box-shadow: 0 0 22px 5px rgba(255, 181, 107, .6), 0 0 4px 1px rgba(255, 226, 191, .9); }
/* A film-style time bar along the screen's bottom edge */
.ls-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 4; background: rgba(244, 239, 228, .12); }
.ls-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.ls-caption { margin-top: var(--space-4); min-height: 3em; color: var(--ink-dim); font-size: var(--text-small); line-height: 1.5; max-width: 62ch; }

/* The AI channel (Adam, 11-05: his own phone photo of dinner, then the ad he directed from it): the photo first, then
   the ad rises in beside it. Both stay visible without scripts and with reduced motion. */
.ls-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6%; padding: 4% 7%;
  background: radial-gradient(120% 90% at 30% 40%, #182238, var(--ls-night) 60%); }
.ls-scene figure { margin: 0; display: flex; flex-direction: column; align-items: flex-start; height: 100%; justify-content: center; }
.ls-scene img { display: block; width: auto; max-width: none; border-radius: 3px; box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); }
.ls-have img { height: 64%; aspect-ratio: 900 / 899; object-fit: cover; }
.ls-get img { height: 86%; aspect-ratio: 720 / 1279; }
.ls-scene .sd-tag { margin: .55rem 0 0; font-size: .625rem; }
.ls-result, .ls-have { transition: opacity .8s cubic-bezier(.22, .8, .2, 1), transform 1.1s cubic-bezier(.22, .8, .2, 1); }
.ls-on .ls-result:not(.is-shown) { opacity: 0; transform: translateY(26px); }
/* The photo starts alone in the middle, a little larger, and steps aside as the ad rises in beside it. */
.ls-on .ls-photo-ad:not(.is-revealed) .ls-have { transform: translateX(var(--ls-shift, 0px)) scale(1.12); }
.ls-instant, .ls-instant * { transition: none !important; }

/* The website channel: a plain browser bar over the full page, scrolled by live-screen.js */
.ls-site { display: flex; flex-direction: column; background: #fff; }
.ls-bar { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-3); padding: 9px 14px; background: #1b2230; color: var(--ink-soft); font: 500 .75rem/1 var(--face-mono); letter-spacing: .02em; }
.ls-dots { display: inline-flex; gap: 5px; }
.ls-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a4352; }
.ls-url { flex: 1; min-width: 0; padding: 5px 10px; border-radius: 4px; background: #0f141d; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ls-view { position: relative; flex: 1; overflow: hidden; }
.ls-view img { display: block; width: 100%; height: auto; max-width: none; will-change: transform; }

/* The services. On wide screens a service is picked by clicking it; the button is for keyboards and shows on focus. */
.ls-offer { position: relative; border-top: 1px solid var(--rule); padding-block: var(--space-5); gap: var(--space-3); -webkit-tap-highlight-color: transparent; }
.ls-offer:last-child { border-bottom: 1px solid var(--rule); }
.ls-offer h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); margin: 0; }
.ls-offer p { margin: 0; max-width: 52ch; }
.ls-show { display: none; }
.ls-wide .ls-offer { cursor: pointer; transition: opacity 320ms var(--ease); }
.ls-wide .ls-offer::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 520ms var(--ease); }
.ls-wide .ls-offer.is-on::before { transform: scaleX(1); }
#discovery-services.ls-wide .ls-offer.is-on h3 a { text-decoration-color: var(--accent); }
.ls-wide .ls-show { display: inline-flex; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; }
.ls-wide .ls-show:focus-visible { position: static; width: auto; height: auto; clip-path: none; align-self: flex-start; min-height: var(--target); background: none; color: var(--accent);
  font: 500 var(--text-label)/1 var(--face-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; outline: 2px solid var(--focus); outline-offset: 4px; }

/* Tablets: heading, then the shared screen, then the services */
@media (max-width: 1000px) {
  .ls-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "screen" "list" "more"; gap: var(--space-6); }
  .ls-copy { display: block; }
  .ls-copy .lead { margin-top: var(--space-4); }
  .ls-screen { position: relative; top: auto; }
}
/* Phones: each service carries its own screen (moved there by live-screen.js) */
.ls-cards .ls-screen { display: none; }
.ls-card-stage { margin-bottom: var(--space-2); -webkit-tap-highlight-color: transparent; }
.ls-card-stage .ls-channel { visibility: visible; }
.ls-card-caption { color: var(--ink-dim); font-size: var(--text-small); line-height: 1.45; margin: 0 0 var(--space-2); }
.ls-cards .ls-scene { padding: 5% 4%; gap: 5%; }
.ls-cards .ls-scene .sd-tag { font-size: .6875rem; letter-spacing: .04em; }
@media (max-width: 700px) {
  .ls-offer { padding-block: var(--space-5) var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .ls-offer, .ls-offer::before, .ls-result, .ls-ambient { transition: none; }
  .ls-on .ls-result:not(.is-shown) { opacity: 1; transform: none; }
}
.ls-cards .ls-have img { height: 46%; }
