/* Prototypes and concepts gallery (used with assets/theme/js/prototypes.js) */
.proto-section {
  background: #101418;
  color: #f3f4f6;
  padding: 56px 0 64px;
  overflow: hidden;
}

.proto-section .proto-head {
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 0 16px;
  text-align: center;
}

.proto-section .proto-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font: 700 0.74rem/1 "Montserrat", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0b45b;
}

.proto-section h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
}

.proto-section .proto-lead {
  margin: 0;
  color: #b9c0ca;
  font-size: 1.02rem;
  line-height: 1.6;
}

.proto-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 26px;
  padding: 0 16px;
  max-width: 980px;
}

.proto-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 0.88rem/1 "Montserrat", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.proto-chip span {
  margin-left: 4px;
  opacity: 0.6;
  font-weight: 400;
}

.proto-chip:hover,
.proto-chip:focus-visible {
  border-color: #f0b45b;
  color: #ffffff;
}

.proto-chip[aria-pressed="true"] {
  background: #f0b45b;
  border-color: #f0b45b;
  color: #15181d;
}

.proto-chip:focus-visible,
.proto-card:focus-visible,
.proto-shot:focus-visible,
.proto-dialog button:focus-visible {
  outline: 3px solid #f0b45b;
  outline-offset: 3px;
}

/* Auto-scrolling rows */
.proto-marquee {
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.proto-marquee + .proto-marquee {
  margin-top: 14px;
}

.proto-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: proto-scroll var(--proto-duration, 80s) linear infinite;
}

.proto-marquee--reverse .proto-track {
  animation-direction: reverse;
}

.proto-marquee:hover .proto-track,
.proto-marquee:focus-within .proto-track {
  animation-play-state: paused;
}

@keyframes proto-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

@media (prefers-reduced-motion: reduce) {
  .proto-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 6px 16px;
  }
  .proto-track { animation: none; }
  .proto-track .proto-card[aria-hidden="true"] { display: none; }
}

/* Cards */
.proto-card {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 340px;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #1b2027;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.proto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.proto-card:hover,
.proto-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(240, 180, 91, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.proto-card:hover img {
  transform: scale(1.04);
}

.proto-card-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 14, 0.92));
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proto-card-cat {
  font: 700 0.66rem/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0b45b;
}

.proto-card-title {
  font: 700 1rem/1.25 "Montserrat", sans-serif;
  color: #ffffff;
}

.proto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.proto-grid .proto-card {
  width: auto;
}

@media (max-width: 991px) {
  .proto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .proto-card { width: 260px; }
  .proto-grid { grid-template-columns: 1fr; }
  .proto-grid .proto-card { width: auto; }
}

.proto-foot {
  margin: 26px auto 0;
  padding: 0 16px;
  text-align: center;
  color: #b9c0ca;
}

.proto-foot a {
  color: #f0b45b;
  font-weight: 700;
}

/* Dialog */
.proto-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #12161b;
  color: #e5e7eb;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.proto-dialog::backdrop {
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(4px);
}

.proto-dialog-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
}

.proto-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.proto-dialog-media {
  background: #0a0c0f;
  padding: 14px;
}

.proto-dialog-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #0a0c0f;
  border-radius: 10px;
}

.proto-dialog-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.proto-shot {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #1b2027;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.proto-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proto-shot:hover,
.proto-shot[aria-pressed="true"] {
  opacity: 1;
  border-color: #f0b45b;
}

.proto-dialog-body {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 22px;
}

.proto-dialog-cat {
  font: 700 0.72rem/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0b45b;
}

.proto-dialog-title {
  margin: 8px 0 12px;
  color: #ffffff;
  font: 700 1.55rem/1.2 "Montserrat", sans-serif;
}

.proto-dialog-text {
  margin: 0 0 14px;
  color: #c4cad3;
  line-height: 1.65;
}

.proto-dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.proto-dialog-tags li {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #d1d5db;
}

.proto-dialog-actions .btn {
  margin: 0;
}

.proto-dialog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.proto-dialog-nav button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.proto-dialog-nav button:hover {
  border-color: #f0b45b;
  color: #ffffff;
}

.proto-dialog-count {
  color: #8b93a0;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .proto-dialog-inner { grid-template-columns: 1fr; }
  .proto-dialog-body { padding: 18px 18px 18px; }
  .proto-dialog-title { font-size: 1.3rem; }
}
