/* ==========================================================================
   The screens act — Dean inside a laptop and a phone, each screen a
   swipeable strip of real captures from the demo school. The strips are
   native horizontal scrollers with snap points: touch swipes, trackpads
   scroll, keyboards arrow once the strip has focus. JS only decorates
   (dots, captions, arrows) — without it the strips still swipe.
   ========================================================================== */

.screens {
  padding: clamp(4rem, 12vh, 8rem) 0;
  border-top: 1px solid var(--hair);
}
.screens__kick { margin-bottom: 1rem; }
.screens__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); max-width: 30ch; }

.screens__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
@media (max-width: 900px) {
  .screens__stage { grid-template-columns: 1fr; justify-items: center; }
}

.dev { margin: 0; min-width: 0; }

/* --- the strip ------------------------------------------------------- */

.shots {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .shots { scroll-behavior: smooth; }
}
.shots img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  user-select: none;
}
.shots:focus-visible {
  outline: 2px solid var(--violet-lift);
  outline-offset: -2px;
}

/* --- MacBook --------------------------------------------------------- */

.dev-mac__lid {
  background: #0d0d11;
  border: 1px solid #26262e;
  border-radius: clamp(10px, 1.4vw, 18px);
  padding: clamp(8px, 1vw, 14px);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8);
}
.dev-mac__screen {
  border-radius: clamp(5px, .7vw, 9px);
  overflow: hidden;
  background: #17171c;
}
.dev-mac__base {
  height: clamp(9px, 1.1vw, 14px);
  margin: 0 -4.5%;
  background: linear-gradient(#2c2c34, #17171b 60%, #0b0b0e);
  border-radius: 0 0 clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px);
  position: relative;
}
.dev-mac__base::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 12%; height: 45%;
  background: #0e0e12;
  border-radius: 0 0 8px 8px;
}

/* --- iPhone ---------------------------------------------------------- */

.dev--ph { width: clamp(215px, 23vw, 285px); }
.dev-ph {
  position: relative;
  background: #0d0d11;
  border: 1px solid #26262e;
  border-radius: clamp(30px, 3.2vw, 42px);
  padding: clamp(8px, .9vw, 12px);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8);
}
.dev-ph__screen {
  border-radius: clamp(22px, 2.4vw, 32px);
  overflow: hidden;
  background: #17171c;
}
.dev-ph__notch {
  position: absolute;
  left: 50%; top: clamp(14px, 1.6vw, 20px);
  transform: translateX(-50%);
  width: 34%; height: clamp(14px, 1.5vw, 19px);
  background: #0d0d11;
  border-radius: 99px;
  z-index: 2;
}

/* --- caption line, dots, arrows -------------------------------------- */

.dev__cap {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: var(--t-nano);
  letter-spacing: .06em;
  color: var(--chalk-mute);
  min-height: 1.5em;
}
.dev__dots { display: inline-flex; gap: .4rem; flex: none; }
.dev__dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--chalk-faint);
  cursor: pointer;
}
.dev__dots button.is-on { background: var(--violet-lift); }
.dev__dots button:focus-visible { outline: 2px solid var(--violet-lift); outline-offset: 2px; }

.dev { position: relative; }
.dev__go {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: rgb(10 8 18 / .72);
  color: var(--chalk-dim);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-state), color var(--dur-fast) var(--ease-state);
  z-index: 3;
}
.dev:hover .dev__go,
.dev:focus-within .dev__go { opacity: 1; }
.dev__go:hover { color: var(--chalk); }
.dev__go--prev { left: 8px; }
.dev__go--next { right: 8px; }
.dev__go svg { width: 14px; height: 14px; }
@media (hover: none) { .dev__go { display: none; } }
