.project-reel {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
  margin: 48px 0;
}

.role-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--ink-dim);
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--code);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-dim);
  white-space: nowrap;
}

.chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta--ghost {
  color: var(--ink-dim);
}

.cta--ghost:hover {
  color: var(--ink);
}

/* ---------- Full-bleed splash hero ---------- */
.page__main--splash {
  padding-top: 40px;
}

.page__main--splash .intro {
  margin-top: -350px;
}

.splash {
  position: relative;
  height: 72vh;
  min-height: 420px;
  background: #0a0a0a;
}

.splash__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.splash__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.6) 0%,
    rgba(13, 13, 13, 0.2) 15%,
    rgba(13, 13, 13, 0) 36%,
    var(--bg) 52%
  );
}

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery__item {
  margin: 0;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.gallery__item figcaption {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.gallery__item--wide {
  grid-column: 1 / -1;
}

/* ---------- Before/after breakdown scrubber ---------- */
.breakdown {
  margin: 8px 0 32px;
}

.breakdown__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
  cursor: ew-resize;
}

.breakdown__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.breakdown__frame--top {
  will-change: opacity;
}

.breakdown__scrub {
  width: 100%;
  height: 4px;
  margin: 20px 0 8px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--code) var(--p, 0%),
    rgba(255, 255, 255, 0.16) var(--p, 0%)
  );
  outline: none;
  cursor: ew-resize;
}

.breakdown__scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4f4f7;
  border: 2px solid var(--code);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
}

.breakdown__scrub::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4f4f7;
  border: 2px solid var(--code);
  cursor: ew-resize;
}

.breakdown__hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: auto;
  }
}

/* ---------- Floating back button (over the splash) ---------- */
.project-back {
  position: absolute;
  top: 92px;
  left: clamp(20px, 5vw, 56px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.55);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.project-back:hover {
  border-color: rgba(185, 109, 96, 0.6);
  background: rgba(185, 109, 96, 0.14);
}
