/* Motion and the picture-led section patterns.

   Four patterns, in the order the page uses them:
     .stage      a full-bleed picture section with text laid over it   (Tesla/Apple hero pattern)
     .seq        a control-then-result sequence that steps 1 > 2 > 3   (the site's core unit)
     .strip      a row of small pictures, one word each
     .reveal     fade up 12px once on entry — the only decorative motion here

   Every one of them degrades to a static state under prefers-reduced-motion.
   Driven by js/motion.js. Nothing here needs per-section CSS. */

/* ── full-bleed picture stage ──────────────────────────────────────────────
   The picture is the section. Text sits on the bottom of it, never beside it. */
.stage { position: relative; padding: 0; line-height: 0; background: #000; overflow: hidden; }
.stage > img,
.stage > video { display: block; width: 100%; height: auto; margin: 0; }

/* Slow drift on the hero picture, so the page is moving the moment it opens. */
.stage > img.kb { animation: kb 26s ease-in-out infinite alternate; transform-origin: 52% 42%; }
@keyframes kb { from { transform: scale(1) } to { transform: scale(1.055) } }

/* The text over the picture arrives after it, in order. */
.stage-over h1, .stage-over .sub, .stage-over .cta {
  animation: overIn .7s cubic-bezier(.22,.68,0,1) both;
}
.stage-over h1  { animation-delay: .12s; }
.stage-over .sub { animation-delay: .26s; }
.stage-over .cta { animation-delay: .4s; }
@keyframes overIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.stage-over {
  position: absolute; inset: auto 0 0 0; line-height: normal;
  padding: 96px 0 26px;
  background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.74) 42%, rgba(0,0,0,0) 100%);
}
.stage-over.top {
  inset: 0 0 auto 0; padding: 26px 0 96px;
  background: linear-gradient(to bottom, rgba(0,0,0,.94) 0%, rgba(0,0,0,.74) 42%, rgba(0,0,0,0) 100%);
}
.stage h2, .stage h1 { margin-bottom: .3em; }
.stage p { max-width: 54ch; margin-bottom: 0; }
.stage .cta { margin-top: 18px; }

/* Tall screenshots in a stage would push the page out; cap the frame and let the
   picture fill it. Wide app shots read better cropped than shrunk. */
.stage.cap { line-height: 0; }
.stage.cap > img { height: clamp(320px, 62vh, 620px); object-fit: cover; object-position: center top; }

@media (max-width: 700px) {
  .stage-over, .stage-over.top {
    position: static; padding: 20px 0 4px; background: none;
  }
  .stage.cap > img { height: clamp(220px, 42vh, 340px); }
}

/* ── a button row, anywhere ─────────────────────────────────────────────
   style.css only ever scoped this to the old hero; every section uses it now. */
.cta { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; }

/* Three-up cards. style.css ships 3 as the default plus .two and .four, but not a
   named .three — pages that ask for it explicitly should still get it. */
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }

/* ── section heading, the punchy kind ───────────────────────────────────── */
.kicker {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em;
  color: var(--gold); margin: 0 0 9px;
}
.big {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 750;
  letter-spacing: -.022em; line-height: 1.15; margin: 0 0 .35em;
}
.sub { font-size: .97rem; color: var(--text-2); max-width: 58ch; margin: 0 0 0; }

/* ── the sequence: control, then result ─────────────────────────────────── */
.seq { display: grid; gap: 26px; grid-template-columns: 1fr; }
.seq.side { grid-template-columns: .9fr 1.1fr; align-items: center; }
@media (max-width: 900px) { .seq.side { grid-template-columns: 1fr; gap: 20px; } }

.frames {
  position: relative; border: 1px solid var(--line); border-radius: 0;
  overflow: hidden; background: #000; line-height: 0;
  box-shadow: 0 22px 54px rgba(0,0,0,.72);
}
.frames img { display: block; width: 100%; height: auto; transition: opacity .55s ease; }
/* Frames stack: the first holds the height, the rest are absolute on top of it.
   Base state shows frame 1 and hides the rest, so with JavaScript off the picture is
   still there. motion.js adds .js once it takes over, and from then on visibility is
   whichever frame carries .on. */
.frames img + img { position: absolute; inset: 0; opacity: 0; }
.frames.js img { opacity: 0; }
.frames.js img.on { opacity: 1; }

/* Step dots — clickable, and they say which frame you're on without a caption. */
.steps-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
  padding: 5px 9px; border-radius: 0;
  background: rgba(0,0,0,.66); border: 1px solid rgba(255,255,255,.1);
}
.steps-dots button {
  width: 22px; height: 4px; border: 0; border-radius: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.26); transition: background .25s ease;
}
.steps-dots button.on { background: var(--gold); }

.frames figcaption,
.seq-cap {
  font-family: var(--mono); font-size: .7rem; color: var(--text-3);
  padding: 9px 2px 0; line-height: 1.5; margin: 0;
}

/* ── picture strip: a row of small pictures, one word each ───────────────── */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .strip, .strip.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .strip, .strip.three { grid-template-columns: 1fr; } }

.strip a, .strip figure {
  display: block; margin: 0; text-decoration: none;
  border: 1px solid var(--line-soft); border-radius: 0;
  overflow: hidden; background: var(--panel); line-height: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.strip a:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.strip img { display: block; width: 100%; height: 132px; object-fit: cover; object-position: center top; }
.strip b, .strip figcaption {
  display: block; line-height: normal; padding: 9px 11px 10px;
  font-size: .84rem; font-weight: 600; color: var(--text);
}
.strip small { display: block; font-weight: 400; color: var(--text-3); font-size: .76rem; margin-top: 2px; }

/* ── in-view animations ─────────────────────────────────────────────────────
   VirtualDJ's vocabulary, kept to their names and their numbers so the movement on this site reads
   the same way theirs does: a block travels 100px into place over 700ms ease-out while it fades up,
   text just fades, and a picture settles out of a slight zoom. Theirs is jQuery on scroll swapping
   .in-view for .done-view; js/motion.js does the same swap with an IntersectionObserver, and takes
   both spellings — .in-view for their markup, .reveal for what this site already had.

   .reveal IS bounce-up now. Every section head on every page already carries it, so the whole site
   moves this way without a class being added anywhere. */
.reveal, .bounce-up, .bounce-left, .bounce-right {
  opacity: 0;
  transition: transform 700ms ease-out, opacity 700ms ease-out;
  backface-visibility: hidden;
}
.reveal, .bounce-up { transform: translateY(100px); }
.bounce-left  { transform: translateX(-100px); }
.bounce-right { transform: translateX(100px); }
.reveal.in,
.bounce-up.done-view, .bounce-left.done-view, .bounce-right.done-view {
  opacity: 1; transform: none; backface-visibility: visible;
}

/* Text does not travel, it arrives: from a fifth of the way up to solid, over half a second. */
.fade-in { opacity: .2; transition: opacity 500ms ease; }
.fade-in.done-view { opacity: 1; }

/* A picture settling into its frame. Theirs animates width 80% → 100%; a transform does the same
   thing to the eye without the reflow, and holds its hover. */
.zoom-in { transform: scale(.86); transition: transform 800ms ease; }
.zoom-in.done-view { transform: none; }
.zoom-in.done-view:hover { transform: scale(1.03); }

/* ── wide-shot pan: a 3840px screenshot is a smear at 1200px wide ────────── */
.pan { overflow: hidden; border: 1px solid var(--line); border-radius: 0; background: #000; }
.pan img {
  display: block; height: clamp(200px, 34vh, 330px); width: auto; max-width: none;
  animation: panX 34s linear infinite alternate;
}
@keyframes panX { from { transform: translateX(0) } to { transform: translateX(calc(-100% + 1200px)) } }
.pan:hover img { animation-play-state: paused; }

/* ── tall-shot pan: a long sidebar in a short frame ─────────────────────
   A real scrollbar, so it reads as a list. js/motion.js walks it down, holds,
   walks it back up — the same dwell as a carousel — and a visitor can drag
   the bar themselves. The file is never resized. */
.pan-y {
  position: relative; overflow-x: hidden; overflow-y: scroll;
  width: 100%; max-width: 400px; height: min(520px, 72vh);
  border: 1px solid var(--line); border-radius: 0; background: #000;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) #1a1a1a;
}
.pan-y::-webkit-scrollbar { width: 10px; }
.pan-y::-webkit-scrollbar-track { background: #1a1a1a; }
.pan-y::-webkit-scrollbar-thumb { background: var(--accent-dim); }
.pan-y::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.pan-y img {
  display: block; width: 100%; height: auto; max-width: none;
}

/* ── accordion: main features open, the rest behind a click ─────────────── */
.acc { border-top: 1px solid var(--line-soft); }
.acc details { border-bottom: 1px solid var(--line-soft); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 13px 2px; font-size: .95rem; font-weight: 600; color: var(--text-2);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; margin-left: auto; font-family: var(--mono); font-size: 1.05rem;
  color: var(--gold); transition: transform .22s ease;
}
.acc details[open] summary { color: var(--text); }
.acc details[open] summary::after { content: "–"; }
.acc .acc-body { padding: 0 2px 18px; }
.acc-count { font-family: var(--mono); font-size: .7rem; color: var(--text-3); font-weight: 400; }

/* ── feature rows inside an accordion ──────────────────────────────────── */
ul.feat { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
@media (max-width: 760px) { ul.feat { columns: 1; } }
ul.feat li {
  break-inside: avoid; padding: 5px 0 5px 20px; position: relative;
  font-size: .9rem; color: var(--text-2);
}
ul.feat li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 6px; height: 6px; border-radius: 0; background: var(--gold-dim);
}
ul.feat li b { color: var(--text); font-weight: 600; }
ul.feat li em {
  font-style: normal; font-family: var(--mono); font-size: .68rem;
  color: var(--text-3); margin-left: 6px; white-space: nowrap;
}

/* ── package tag ───────────────────────────────────────────────────────── */
.tag {
  display: inline-block; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em;
  padding: 1px 6px; border-radius: 0; vertical-align: 1px; margin-left: 6px;
  border: 1px solid currentColor; white-space: nowrap;
}
.tag.free  { color: #8a8a8a; }
.tag.audio { color: #ff9a3c; }
.tag.data  { color: #2fbfbf; }
.tag.net   { color: #7ea6ff; }

/* ── chips: a long list without a bulleted column ──────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li, .chips a {
  font-size: .8rem; color: var(--text-2); text-decoration: none;
  padding: 4px 10px; border-radius: 0;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-soft);
}
.chips a:hover { color: var(--gold); border-color: var(--gold-dim); }

@media (prefers-reduced-motion: reduce) {
  .stage > img.kb { animation: none; }
  .stage-over h1, .stage-over .sub, .stage-over .cta { animation: none; }
  .reveal, .bounce-up, .bounce-left, .bounce-right, .fade-in, .zoom-in {
    opacity: 1; transform: none; transition: none;
  }
  .frames img { transition: none; }
  .pan img { animation: none; }
  .strip a:hover { transform: none; }
}
