/* ══ Global font ══ */
*, *::before, *::after {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ══════════════════════════════════════════════════════
   TAKE A PEEK INSIDE — SAMPLE OUTPUT STORYBOARD SECTION
   Responsive: mobile · iPad · laptop · desktop
   ══════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.peek-section {
  padding: 96px 0 80px;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.peek-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse 80% 70% at 50% 0%,
    rgba(127,255,58,.12) 0%, rgba(29,184,64,.06) 45%, transparent 70%);
  pointer-events: none;
}
.peek-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Section header ── */
.peek-header {
  text-align: center;
  margin-bottom: 40px;
}
.peek-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(127,255,58,.10);
  border: 1px solid rgba(127,255,58,.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #7fff3a;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.peek-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1db840, #7fff3a);
  animation: pulse 2s infinite;
  display: inline-block;
}
.peek-heading {
  font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.003em;
  color: #f5f5f7;
  line-height: 1.0834933333;
  margin-bottom: 16px;
}
.peek-subheading {
  font-size: clamp(14px, 1.8vw, 17px);
  color: #fff;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ── Scene selector ── */
.peek-scene-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.peek-scene-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0d160d;
  border: 1.5px solid rgba(127,255,58,0.12);
  border-radius: 14px;
  padding: 10px 16px 10px 10px;
  cursor: pointer;
  transition: all .25s;
  min-width: 200px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.peek-scene-card.active,
.peek-scene-card:hover {
  border-color: rgba(127,255,58,.45);
  box-shadow: 0 4px 20px rgba(127,255,58,.15);
  background: rgba(127,255,58,.04);
}
.peek-scene-thumb {
  width: 64px; height: 44px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.peek-thumb-bg {
  width: 100%; height: 100%;
  object-fit: cover;
}
.peek-thumb-1 { background: linear-gradient(135deg,#1a1040,#3d2080,#7c40d0); }
.peek-thumb-2 { background: linear-gradient(135deg,#0d2040,#1a4080,#2060c0); }
.peek-thumb-3 { background: linear-gradient(135deg,#200d10,#602020,#c04030); }
.peek-thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
}
.peek-thumb-play svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.peek-scene-info { flex: 1; }
.peek-scene-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7fff3a;
  letter-spacing: .04em;
  margin-bottom: 2px;
  font-family: 'Inter', sans-serif;
}
html[data-theme="light"] .peek-scene-label {
  color: #1db840;
}
.peek-scene-title {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f7;
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", sans-serif;
  line-height: 1.2;
}
.peek-scene-shots {
  font-size: 11px;
  color: rgba(245,245,247,0.5);
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}

/* ── Storyboard viewer wrapper ── */
/* ── Carousel wrapper ── */
.peek-board-wrap {
  position: relative;
  background: #091009;
  border-radius: 22px;
  border: 1px solid rgba(127,255,58,0.12);
  box-shadow: 0 8px 48px rgba(0,20,0,0.4), 0 0 0 1px rgba(127,255,58,0.06);
  overflow: hidden;
  padding: 28px 0;
}

/* ── Scrolling track (manual, no auto-animation) ── */
.peek-board {
  display: flex;
  gap: 20px;
  padding: 0 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.peek-board::-webkit-scrollbar { display: none; }

/* ── Prev / Next nav arrows ── */
.peek-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.peek-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(127,255,58,.35);
  background: rgba(127,255,58,.08);
  color: #7fff3a;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.peek-nav-btn:hover {
  background: rgba(127,255,58,.2);
  border-color: #7fff3a;
  box-shadow: 0 0 16px rgba(127,255,58,.3);
  transform: scale(1.08);
}
@media(max-width:768px){
  .peek-nav { display: none; }
}

/* ── Individual shot card ── */
.peek-shot-card {
  background: #0d160d;
  border-radius: 16px;
  border: 1.5px solid rgba(127,255,58,0.12);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  width: 300px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
.peek-shot-card:hover {
  border-color: rgba(127,255,58,.45);
  box-shadow: 0 14px 40px rgba(127,255,58,.15);
  transform: translateY(-6px);
}

/* ── Single image wrapper ── */
.peek-shot-img-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #0d160d;
  flex-shrink: 0;
}
.peek-shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.peek-shot-card:hover .peek-shot-img {
  transform: scale(1.05);
}

/* ── Lightbox overlay ── */
.peek-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: peekFadeIn .25s ease;
}
.peek-lightbox.open { display: flex; }
@keyframes peekFadeIn {
  from { opacity:0; } to { opacity:1; }
}
.peek-lightbox-inner {
  background: #0d160d;
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,20,0,.7);
  border: 1px solid rgba(127,255,58,0.15);
  animation: peekSlideUp .3s ease;
}
@keyframes peekSlideUp {
  from { transform: translateY(30px); opacity:0; }
  to   { transform: translateY(0);    opacity:1; }
}

/* lightbox header */
.peek-lb-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(127,255,58,0.10);
  flex-shrink: 0;
}
.peek-lb-nav {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(127,255,58,0.18);
  background: rgba(127,255,58,0.06);
  color: #f5f5f7;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.peek-lb-nav:hover {
  border-color: rgba(127,255,58,.5);
  color: #7fff3a;
  background: rgba(127,255,58,.06);
}
.peek-lb-title {
  flex: 1;
  font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", sans-serif;
  font-size: clamp(15px,2vw,20px);
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.003em;
  text-align: center;
}
.peek-lb-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: rgba(245,245,247,0.6);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.peek-lb-close:hover {
  border-color: #cc3366;
  color: #cc3366;
  background: rgba(204,51,102,.06);
}

/* dot indicator inside lightbox */
.peek-lb-dot-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px 0;
  flex-shrink: 0;
}
.peek-lb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(127,255,58,.2);
  cursor: pointer;
  transition: all .22s;
}
.peek-lb-dot.active {
  background: #7fff3a;
  transform: scale(1.35);
}

/* lightbox body: 3-col shot grid */
.peek-lb-body {
  overflow-y: auto;
  padding: 20px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.peek-lb-shot {
  background: #0d160d;
  border: 1.5px solid rgba(127,255,58,0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s;
  cursor: pointer;
}
.peek-lb-shot:hover {
  border-color: rgba(127,255,58,.4);
  box-shadow: 0 6px 24px rgba(127,255,58,.12);
  transform: translateY(-3px);
}
.peek-lb-img-wrap {
  position: relative;
  overflow: hidden;
}
.peek-lb-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.peek-lb-shot:hover .peek-lb-img { transform: scale(1.06); }
.peek-lb-shot-meta {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.peek-lb-shot-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #7fff3a;
  letter-spacing: .04em;
  font-family: 'Inter', sans-serif;
}
.peek-lb-shot-desc {
  font-size: 11.5px;
  color: rgba(245,245,247,0.55);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  flex: 1;
}
.peek-lb-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 12px 12px;
}
.peek-lb-row {
  display: flex;
  gap: 5px;
}
.peek-lb-btn-ghost {
  flex: 1;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(245,245,247,0.7);
  font-size: 10px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: .04em;
  transition: all .18s;
}
.peek-lb-btn-ghost:hover {
  border-color: rgba(127,255,58,.4);
  color: var(--purple);
  background: rgba(127,255,58,.05);
}
.peek-lb-btn-upload {
  flex: 1;
  padding: 5px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #1db840, #7fff3a);
  color: #060a06;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: .04em;
  transition: opacity .2s;
}
.peek-lb-btn-upload:hover { opacity: .88; }
/* Varied cinematic gradient thumbnails */
.peek-img-c1 { background: linear-gradient(135deg,#8B4513,#D2691E,#FF8C00); }
.peek-img-c2 { background: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460); }
.peek-img-c3 { background: linear-gradient(135deg,#2d1b69,#11998e,#38ef7d); }
.peek-img-c4 { background: linear-gradient(135deg,#373B44,#4286f4); }
.peek-img-c5 { background: linear-gradient(135deg,#f7971e,#ffd200); }
.peek-img-c6 { background: linear-gradient(135deg,#c94b4b,#4b134f); }

.peek-img-s1 { background: linear-gradient(135deg,#0f0c29,#302b63,#24243e); }
.peek-img-s2 { background: linear-gradient(135deg,#1e3c72,#2a5298); }
.peek-img-s3 { background: linear-gradient(135deg,#544a7d,#ffd452); }
.peek-img-s4 { background: linear-gradient(135deg,#005c97,#363795); }
.peek-img-s5 { background: linear-gradient(135deg,#403a3e,#be5869); }
.peek-img-s6 { background: linear-gradient(135deg,#0f2027,#203a43,#2c5364); }

.peek-img-a1 { background: linear-gradient(135deg,#e96c1e,#f7dc6f); }
.peek-img-a2 { background: linear-gradient(135deg,#1a1a1a,#434343); }
.peek-img-a3 { background: linear-gradient(135deg,#d31027,#ea384d); }
.peek-img-a4 { background: linear-gradient(135deg,#360033,#0b8793); }
.peek-img-a5 { background: linear-gradient(135deg,#4e54c8,#8f94fb); }
.peek-img-a6 { background: linear-gradient(135deg,#093028,#237a57); }

.peek-img-b1 { background: linear-gradient(135deg,#1d4350,#a43931); }
.peek-img-b2 { background: linear-gradient(135deg,#834d9b,#d04ed6); }
.peek-img-b3 { background: linear-gradient(135deg,#1e130c,#9a8478); }
.peek-img-b4 { background: linear-gradient(135deg,#003973,#e5e5be); }
.peek-img-b5 { background: linear-gradient(135deg,#2c3e50,#3498db); }
.peek-img-b6 { background: linear-gradient(135deg,#f46b45,#eea849); }

.peek-img-d1 { background: linear-gradient(135deg,#141e30,#243b55); }
.peek-img-d2 { background: linear-gradient(135deg,#c21500,#ffc500); }
.peek-img-d3 { background: linear-gradient(135deg,#43cea2,#185a9d); }
.peek-img-d4 { background: linear-gradient(135deg,#ee0979,#ff6a00); }
.peek-img-d5 { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.peek-img-d6 { background: linear-gradient(135deg,#f093fb,#f5576c); }

.peek-img-e1 { background: linear-gradient(135deg,#30cfd0,#330867); }
.peek-img-e2 { background: linear-gradient(135deg,#a8edea,#fed6e3); }
.peek-img-e3 { background: linear-gradient(135deg,#5f72bd,#9b23ea); }
.peek-img-e4 { background: linear-gradient(135deg,#ffecd2,#fcb69f); }
.peek-img-e5 { background: linear-gradient(135deg,#2af598,#009efd); }
.peek-img-e6 { background: linear-gradient(135deg,#fc5c7d,#6a82fb); }

/* ── Shot metadata ── */
.peek-shot-meta {
  padding: 16px 18px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.peek-shot-label {
  font-size: 13px;
  font-weight: 700;
  color: #7fff3a;
  letter-spacing: .02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
html[data-theme="light"] .peek-shot-label {
  color: #1db840;
}
.peek-shot-desc {
  font-size: 13px;
  color: #fff;
  line-height: 1.65;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}
.peek-shot-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 8px;
}
.peek-action-row {
  display: flex;
  gap: 8px;
}
.peek-btn-ghost {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: .05em;
  transition: all .2s;
  white-space: nowrap;
}
.peek-btn-ghost:hover {
  border-color: rgba(127,255,58,.5);
  color: #7fff3a;
  background: rgba(127,255,58,.06);
}
.peek-btn-upload {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 2px solid #1db840;
  background: transparent;
  color: #1db840;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: .05em;
  transition: background .22s, color .22s, border-color .22s, transform .15s;
  box-shadow: none;
}
.peek-btn-upload:hover {
  background: rgba(29,184,64,.14);
  color: #7fff3a;
  border-color: #7fff3a;
  transform: translateY(-1px);
  box-shadow: none;
}

/* ── Scroll arrows — hidden for grid layout ── */
.peek-arrow { display: none; }

/* ── Dots — hidden (3-card grid needs no pagination) ── */
.peek-dots { display: none; }

/* ══ RESPONSIVE ══════════════════════════════ */

/* Desktop ≥ 1440px */
@media(min-width:1440px) {
  .peek-shot-card { width: 340px; }
  .peek-shot-img-wrap { height: 210px; }
  .peek-board { gap: 24px; animation-duration: 32s; }
}

/* Laptop ≤ 1280px */
@media(max-width:1280px) {
  .peek-shot-card { width: 290px; }
  .peek-shot-img-wrap { height: 185px; }
}

/* iPad landscape ≤ 1024px */
@media(max-width:1024px) {
  .peek-section { padding: 72px 0 60px; }
  .peek-shot-card { width: 270px; }
  .peek-shot-img-wrap { height: 172px; }
  .peek-lb-body { grid-template-columns: repeat(2,1fr); }
}

/* iPad portrait ≤ 768px */
@media(max-width:768px) {
  .peek-section { padding: 56px 0 48px; }
  .peek-inner { padding: 0 20px; }
  .peek-heading { font-size: 36px; }
  .peek-scene-selector { gap: 8px; }
  .peek-scene-card { min-width: 160px; padding: 8px 12px 8px 8px; }
  .peek-scene-thumb { width: 52px; height: 36px; }
  .peek-shot-card { width: 250px; }
  .peek-shot-img-wrap { height: 160px; }
  .peek-board-wrap { padding: 20px 0; }
  .peek-lb-body { grid-template-columns: repeat(2,1fr); padding: 16px; gap: 12px; }
  .peek-lb-title { font-size: 16px; }
}

/* Mobile ≤ 600px */
@media(max-width:600px) {
  .peek-section { padding: 48px 0 40px; }
  .peek-inner { padding: 0 16px; }
  .peek-heading { font-size: 28px; letter-spacing: -.02em; }
  .peek-subheading { font-size: 14px; }
  .peek-scene-selector { flex-direction: column; align-items: stretch; gap: 10px; overflow-x: unset; flex-wrap: nowrap; padding-bottom: 0; }
  .peek-scene-card { width: 100%; min-width: unset; flex-shrink: unset; }
  .peek-shot-card { width: 220px; }
  .peek-shot-img-wrap { height: 145px; }
  .peek-board { gap: 14px; padding: 0 16px; animation-duration: 20s; }
  .peek-board-wrap { border-radius: 16px; padding: 16px 0; }
  .peek-lb-body { grid-template-columns: 1fr; }
  .peek-lightbox-inner { max-height: 95vh; }
}

/* Small mobile ≤ 420px */
@media(max-width:420px) {
  .peek-heading { font-size: 24px; }
  .peek-shot-card { width: 190px; }
  .peek-shot-img-wrap { height: 125px; }
  .peek-shot-meta { padding: 10px 12px 4px; }
  .peek-shot-actions { padding: 6px 12px 10px; gap: 5px; }
  .peek-btn-ghost, .peek-btn-upload { font-size: 10px; padding: 6px 7px; }
  .peek-lb-body { padding: 12px; gap: 10px; }
}

