/* Feather Terminal — the real-screens gallery (#screens). */

.shots-section {
  position: relative;
  overflow: hidden;
}
.shots-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 140px;
  left: 50%;
  width: min(1100px, 92vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #5fc79616, transparent 68%);
  pointer-events: none;
}

.shots {
  display: grid;
  gap: 28px;
  justify-items: start;
}

/* Tabs stay hidden until shots.js runs, so every screen is readable without it. */
.shots-tabs {
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, #e2fff307, #91dfbd03), #0b1515c2;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow-x: auto;
  scrollbar-width: none;
}
.shots-tabs::-webkit-scrollbar {
  display: none;
}
.shots-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.shots-tabs button > span {
  color: #5f8172;
  font-family: var(--mono);
  font-size: 9.6px;
  letter-spacing: 0.08em;
  transition: color 0.3s var(--ease);
}
.shots-tabs button:hover {
  color: var(--text-soft);
}
.shots-tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, #d8fff10f, #8fe2be06), #16282199;
  box-shadow:
    inset 0 0 0 1px var(--accent-line),
    inset 0 1px 0 #ffffff12;
  color: var(--text);
}
.shots-tabs button[aria-selected="true"] > span {
  color: var(--accent);
}
.shots-tabs button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shots-stage {
  width: 100%;
}

.shot {
  display: grid;
  gap: 22px;
  margin: 0;
}
.shot + .shot {
  margin-top: 56px;
}
.shot[hidden] {
  display: none;
}
.shot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 14px;
  border-radius: 22px;
}

.shot-frame {
  border-radius: 20px;
}
.shot-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #9bc8ac;
  font-family: var(--mono);
  font-size: 9.6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.shot-canvas {
  display: block;
}
.shot-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top center;
  background: #0a1210;
}

/* Phones get the screen at a readable scale and pan it, rather than a shrunk
   wall of 6px type. The hint only appears where that panning exists. */
.shots-pan-hint {
  display: none;
  margin: 0;
  color: var(--faint);
  font-size: 11.5px;
}

.shot figcaption {
  max-width: 640px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.shot figcaption b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.shots-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.8;
}
.shots-note > span:last-child {
  color: #6f817c;
}

/* One-shot entrance when a visitor changes screens. */
@keyframes shot-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.993);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.shot.is-entering {
  animation: shot-in 0.5s var(--ease) both;
}

@media (max-width: 900px) {
  .shots-tabs {
    align-self: stretch;
    border-radius: 16px;
  }
  .shots {
    justify-items: stretch;
  }
  .shot + .shot {
    margin-top: 44px;
  }
  .shot figcaption b {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot.is-entering {
    animation: none;
  }
  .shots-tabs button {
    transition: none;
  }
}

@media (max-width: 760px) {
  .shot-canvas {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shot-canvas::-webkit-scrollbar {
    display: none;
  }
  .shot-image {
    width: 780px;
    max-width: none;
  }
  .shots-pan-hint {
    display: block;
  }
}

/* Solid material and the system transparency/contrast preferences flatten the
   tab strip the same way the rest of the page handles its glass surfaces. */
html[data-site-material="solid"] .shots-tabs {
  background: #14221c;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .shots-tabs {
    background: #14221c;
    border-color: var(--line-strong);
  }
}
@media (prefers-contrast: more) {
  .shots-tabs button[aria-selected="true"] {
    box-shadow: inset 0 0 0 1px var(--accent);
  }
  .shot figcaption {
    color: var(--text-soft);
  }
}
