/* Base36 Labs site — additions on top of the Nightshift bundle: real product screenshots, rails, page chrome. */

html { scroll-behavior: smooth; background: var(--ground); }
body { margin: 0; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 200; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); }

/* Phone frame around a real screenshot */
.phone-shot { flex: none; width: 230px; padding: 9px; border-radius: 42px; background: #000000; box-shadow: 0 60px 120px -40px #000000, 0 0 0 1px rgba(235,235,245,0.14); transition: transform var(--dur-icon) var(--ease-flex), box-shadow var(--dur-icon) var(--ease-flex); }
.phone-shot img { display: block; width: 100%; height: auto; aspect-ratio: 860 / 1864; object-fit: cover; object-position: top; border-radius: 33px; }
.phone-shot--faji img { aspect-ratio: 1320 / 2868; }
.phone-shot--sm { width: 170px; padding: 7px; border-radius: 32px; }
.phone-shot--sm img { border-radius: 26px; }
.phone-shot:hover { transform: translateY(-8px) rotate(0deg) !important; box-shadow: 0 70px 130px -40px #000000, 0 40px 120px -50px var(--brand, var(--highlight)), 0 0 0 1px rgba(235,235,245,0.2); }

/* Hero wings holding two overlapping phones */
.wing-phones { position: relative; height: 560px; }
.wing-phones .phone-shot { position: absolute; }

/* Screenshot at the top of a marquee card */
.mcard-shot { display: block; width: 100%; height: 250px; object-fit: cover; object-position: top; border-radius: 14px; background: #000000; }

/* Real screens inside cards */
.card-phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.card-phones .phone-shot:nth-child(2) { margin-bottom: 40px; }

/* The night, in frames: horizontal rail of screenshots */
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px max(16px, 4vw) 60px; scrollbar-width: thin; scrollbar-color: var(--fill-quiet) transparent; }
.rail > * { scroll-snap-align: center; }
.rail figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rail figcaption { font: 500 12px/16px var(--font-mono); letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-muted); }
.poster { flex: none; width: 250px; border-radius: 28px; overflow: hidden; box-shadow: 0 60px 120px -40px #000000; transition: transform var(--dur-icon) var(--ease-flex); }
.poster img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1920; }
.poster:hover { transform: translateY(-8px); }

/* Badges hug their label inside grid cards too */
.b36-badge { justify-self: start; width: fit-content; }

/* Draw-on-scroll: site.js pauses line art until it is on screen */
.draw-wait .draw { animation-play-state: paused !important; }

@media (max-width: 767px) {
  .b36-fgrid, .b36-platforms__grid, .b36-showcase__card, .b36-fcard--wide { grid-template-columns: minmax(0, 1fr); }
  .card-phones .phone-shot { width: min(150px, 44%); padding: 6px; border-radius: 28px; }
  .card-phones .phone-shot img { border-radius: 23px; }
  .b36-header__actions .b36-btn--quiet { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-shot, .poster { transition: none; }
}

/* Product heroes make room for the screenshot wings */
@media (min-width: 1200px) { .b36-phero { min-height: 760px; } }
@media (max-width: 1199px) { .b36-phero__wing { display: none; } }
