:root {
  --bg:        #16140F;
  --bg-2:      #1F1B14;
  --paper:     #EDE6D6;
  --paper-2:   #E3D8BE;
  --ink:       #201B12;
  --cream:     #F3EEE0;
  --muted:     #A69A80;
  --safelight: #C6402B;
  --safelight-deep: #8F2A1E;
  --grease:    #D3A438;
  --border:    #38311F;
  --radius:    3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.display { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; letter-spacing: -0.01em; }
.type { font-family: 'Special Elite', monospace; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 56px; } }
::selection { background: var(--safelight); color: var(--cream); }

/* Film grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Sprocket hole strip */
.sprockets {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 14px; padding: 6px 0;
}
.sprockets span {
  width: 9px; height: 9px; border-radius: 2px; background: var(--bg);
  border: 1px solid var(--border); flex-shrink: 0;
}
.sprockets.horizontal { flex-direction: row; width: auto; padding: 0 6px; }
.sprockets.horizontal span { width: 8px; height: 8px; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 900px) { .nav-inner { padding: 14px 56px; } }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.logo-mark { perspective: 200px; width: 30px; height: 30px; }
.logo-mark svg { width: 100%; height: 100%; animation: spin3d 7s linear infinite; transform-style: preserve-3d; }
@keyframes spin3d { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.nav-links { display: none; gap: 30px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 820px) { .nav-links { display: flex; } }
.nav-links a:hover { color: var(--cream); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--radius);
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: .03em;
  border: 2px solid var(--ink); cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--safelight); color: var(--cream); border-color: #5A1B12; box-shadow: 5px 5px 0 #5A1B12; }
.btn-primary:hover { box-shadow: 7px 7px 0 #5A1B12; }
.btn-primary:active { box-shadow: 1px 1px 0 #5A1B12; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-sm:active { box-shadow: 1px 1px 0 var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 18px; }

.btn:disabled {
  background: #2D271E;
  color: #5E5340;
  border-color: #1F1B14;
  box-shadow: 3px 3px 0 #1F1B14;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Hero ---------- */
header.hero { padding: 64px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }

.frame-tag {
  font-family: 'Special Elite', monospace; font-size: 12px; color: var(--grease);
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px; letter-spacing: .04em;
}
.frame-tag::before { content: ""; width: 8px; height: 8px; background: var(--safelight); border-radius: 50%; }

h1 { font-size: 44px; line-height: 0.98; margin-bottom: 22px; }
@media (min-width: 700px) { h1 { font-size: 72px; } }
h1 .line2 { color: var(--safelight); display: block; }

.sub { color: var(--muted); font-size: 17px; max-width: 440px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 3D photo stack ---------- */
.stack-scene {
  perspective: 1400px; height: 440px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.stack {
  position: relative; width: 280px; height: 340px;
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
  transform: rotateX(6deg) rotateY(-10deg);
}
.photo-card {
  position: absolute; inset: 0; background: var(--paper);
  border-radius: 2px; padding: 10px 10px 46px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.15) contrast(1.05); }
.photo-card.back-1 { transform: translateZ(-34px) translate(18px, -16px) rotate(-6deg); opacity: .9; }
.photo-card.back-2 { transform: translateZ(-64px) translate(-22px, 10px) rotate(5deg); opacity: .75; }
.photo-card.front {
  transform: translateZ(10px); z-index: 3;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateZ(10px) translateY(0px); } 50% { transform: translateZ(10px) translateY(-8px); } }
.photo-card .cap {
  position: absolute; left: 10px; right: 10px; bottom: 12px;
  font-family: 'Special Elite', monospace; font-size: 12.5px; color: var(--ink); line-height: 1.35;
}

.grease-circle { position: absolute; top: -26px; left: -30px; width: 220px; height: 220px; pointer-events: none; z-index: 4; }
.tape {
  position: absolute; width: 52px; height: 20px; background: rgba(211, 164, 56, 0.55);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-eyebrow {
  font-family: 'Special Elite', monospace; font-size: 12px; color: var(--grease);
  margin-bottom: 16px; letter-spacing: .04em;
}
.section-head { max-width: 600px; margin-bottom: 56px; }
.section-head h2 { font-size: 34px; line-height: 1.02; }
@media (min-width: 700px) { .section-head h2 { font-size: 46px; } }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 16px; max-width: 480px; }

/* Contact sheet grid */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.frame-card {
  background: var(--bg-2); padding: 30px 26px; position: relative;
  transition: transform .25s ease, background .25s ease;
}
.frame-card:hover { background: #241F16; transform: translateY(-4px); }
.frame-num {
  font-family: 'Special Elite', monospace; font-size: 11px; color: var(--safelight);
  margin-bottom: 18px; display: block;
}
.frame-icon { width: 38px; height: 38px; margin-bottom: 20px; color: var(--grease); }
.frame-card h3 { font-family: 'Big Shoulders Display'; font-weight: 700; font-size: 21px; margin-bottom: 10px; letter-spacing: -0.01em; }
.frame-card p { font-size: 14px; color: var(--muted); }

/* ---------- API / spec section ---------- */
.api-split { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
@media (min-width: 920px) { .api-split { grid-template-columns: 0.9fr 1.1fr; } }
.api-copy h2 { font-size: 32px; margin-bottom: 16px; }
@media (min-width: 700px) { .api-copy h2 { font-size: 42px; } }
.api-copy > p { color: var(--muted); margin-bottom: 26px; max-width: 420px; }
.spec-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.spec-list li { display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.spec-list .mark { font-family: 'Special Elite'; color: var(--safelight); flex-shrink: 0; }

.negative {
  background: #0F0D09; border: 1px solid var(--border); display: flex;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.negative .sprockets { background: #0B0A06; }
.negative-body { flex: 1; min-width: 0; }
.negative-label {
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  font-family: 'Special Elite', monospace; font-size: 11.5px; color: var(--grease);
  display: flex; justify-content: space-between;
}
.negative pre {
  padding: 22px; font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 12.5px;
  line-height: 1.75; color: #D8D2C2; overflow-x: auto;
}
.negative .k { color: var(--safelight); } .negative .s { color: #8FB4D8; } .negative .c { color: var(--muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer-grid h4 { font-family: 'Special Elite'; font-size: 12px; color: var(--grease); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: var(--muted); }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- INTERACTIVE WORKSPACE SECTION ---------- */
.workspace-section {
  background: #0F0D09;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.bench-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Status Bar */
.bench-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.safelight-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.safelight-indicator .bulb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3A0F09;
  border: 1px solid #5A1B12;
  transition: all 0.3s ease;
}

.safelight-indicator.active .bulb {
  background: var(--safelight);
  border-color: #FFAAA0;
  box-shadow: 0 0 16px var(--safelight), 0 0 4px var(--safelight);
  animation: pulse-red 1.5s infinite alternate;
}

.safelight-indicator .status-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.safelight-indicator.active .status-label {
  color: var(--safelight);
}

@keyframes pulse-red {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; }
}

.roll-info {
  font-size: 12px;
  color: var(--grease);
  letter-spacing: 0.05em;
  display: flex;
  gap: 12px;
}

.roll-info .separator {
  color: var(--border);
}

/* Bench Layout Columns */
.bench-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 990px) {
  .bench-layout {
    grid-template-columns: 0.85fr 1.2fr 0.95fr;
  }
}

/* Panel cards */
.panel-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.panel-title {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

/* Form Groups & Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.segmented-control {
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius);
}

.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.segment-btn.active {
  background: var(--border);
  color: var(--cream);
}

.segment-btn:hover:not(.active) {
  color: var(--cream);
  background: rgba(56, 49, 31, 0.4);
}

/* Custom Sliders */
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  margin: 6px 0;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grease);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--cream);
}

.custom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grease);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.custom-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--cream);
}

/* File Upload Card */
.upload-card {
  border-style: dashed;
  border-width: 2px;
  border-color: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 200px;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-card:hover {
  border-color: var(--grease);
  background: rgba(211, 164, 56, 0.03);
}

.upload-card.dragover {
  border-color: var(--safelight);
  background: rgba(198, 64, 43, 0.05);
}

.hidden-input {
  display: none;
}

.upload-reticle {
  width: 70px;
  height: 70px;
  color: var(--border);
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.upload-card:hover .upload-reticle {
  color: var(--grease);
}

.upload-card.dragover .upload-reticle {
  color: var(--safelight);
}

.reticle-svg {
  width: 100%;
  height: 100%;
}

.upload-content h4 {
  font-size: 18px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.upload-content p {
  font-size: 13px;
  color: var(--muted);
  max-width: 220px;
  margin: 0 auto 12px;
}

.upload-limits {
  font-size: 10px;
  color: var(--grease);
  opacity: 0.8;
}

/* Enlarger Target (Middle Column) */
.enlarger-card {
  flex: 1;
}

.enlarger-frame {
  flex: 1;
  background: #0B0A06;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

/* Enlarger Placeholder */
.enlarger-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.enlarger-placeholder .paper-outline {
  width: 220px;
  height: 280px;
  border: 1px dashed var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--border);
}

.enlarger-placeholder .paper-outline span {
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* Canvas & Image Wrapper */
.enlarger-canvas-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 380px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  background: var(--paper);
  padding: 8px 8px 30px; /* Polaroid paper margin */
  border-radius: 1px;
}

.enlarger-canvas-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: sepia(0.08) contrast(1.02);
}

.attention-heatmap-overlay {
  position: absolute;
  top: 8px; /* Offset polaroid margin */
  left: 8px;
  /* Width and height bound to image tag size via JS */
  width: calc(100% - 16px);
  height: calc(100% - 38px);
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 5;
}

.enlarger-actions {
  margin-top: auto;
}

/* Developed Output (Right Column) */
.developed-caption-card {
  background: var(--bg);
}

.caption-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 180px;
  justify-content: center;
}

.score-badge {
  font-size: 11px;
  color: var(--grease);
  align-self: flex-start;
  border: 1px solid rgba(211, 164, 56, 0.3);
  padding: 3px 8px;
  border-radius: 2px;
}

.developed-line-interactive {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  padding: 20px;
  border-radius: 2px;
  min-height: 100px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px 4px;
}

.developed-line-interactive .muted-placeholder {
  color: #7A7160;
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
}

/* Word tokens for hover attention mapping */
.word-token {
  padding: 0 4px;
  border-radius: 2px;
  cursor: help;
  transition: all 0.15s ease;
  border-bottom: 1.5px solid transparent;
}

.word-token:hover {
  background: var(--safelight);
  color: var(--cream);
  border-bottom-color: var(--safelight-deep);
}

/* Inline Edit Area */
.edit-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-2);
  padding: 12px;
  border-radius: 2px;
}

.edit-input {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 10px;
  font-size: 14px;
  outline: none;
  border-radius: 2px;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.edit-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.edit-btn.btn-save {
  background: var(--safelight);
  color: var(--cream);
}

.edit-btn.btn-cancel {
  background: var(--muted);
  color: var(--ink);
}

.caption-footer-actions {
  display: flex;
  gap: 16px;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.action-btn:hover {
  color: var(--cream);
}

.attention-guide {
  font-size: 11px;
  color: var(--grease);
  opacity: 0.85;
}

/* Alternatives List */
.alternatives-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alt-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.15s ease;
}

.alt-item:hover {
  border-color: var(--muted);
  background: #241F16;
}

.alt-item .alt-text {
  color: var(--cream);
  flex: 1;
}

.alt-item .alt-score {
  color: var(--grease);
  font-size: 11px;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  white-space: nowrap;
}

.alt-item.empty-state {
  border: 1px dashed var(--border);
  color: var(--muted);
  justify-content: center;
  background: transparent;
}

/* Filmstrip Negatives Queue */
.filmstrip-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 12px;
}

.filmstrip-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 12px;
}

.batch-export-actions {
  display: flex;
  gap: 10px;
}

.filmstrip-wrapper {
  background: #0B0A06;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}

.filmstrip-frames {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  overflow-x: auto;
  min-height: 120px;
  align-items: center;
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Filmstrip */
.filmstrip-frames::-webkit-scrollbar {
  height: 6px;
}
.filmstrip-frames::-webkit-scrollbar-track {
  background: #0B0A06;
}
.filmstrip-frames::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.filmstrip-frames::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.filmstrip-empty {
  text-align: center;
  font-size: 12px;
  color: var(--border);
  width: 100%;
  letter-spacing: 0.05em;
}

/* Individual Film Frame (Negative Thumbnail) */
.film-frame {
  position: relative;
  width: 80px;
  height: 80px;
  background: #1C1914;
  border: 2px solid var(--border);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.film-frame::before {
  content: "";
  position: absolute;
  top: 2px; bottom: 2px; left: 2px; right: 2px;
  border: 1px solid rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(1) contrast(1.2) invert(0.85); /* Negative look */
  transition: all 0.2s ease;
}

.film-frame:hover {
  border-color: var(--grease);
}

.film-frame:hover img {
  opacity: 0.85;
}

.film-frame.active {
  border-color: var(--safelight);
  box-shadow: 0 0 10px rgba(198, 64, 43, 0.4);
}

.film-frame.active img {
  opacity: 1;
  filter: none; /* Positive print preview look */
}

/* Film Frame Status Badges */
.frame-status-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 4;
}

.frame-status-dot.queued {
  background: var(--muted);
}

.frame-status-dot.developing {
  background: var(--safelight);
  box-shadow: 0 0 6px var(--safelight);
  animation: pulse-red 0.8s infinite alternate;
}

.frame-status-dot.ready {
  background: var(--grease);
}

.film-frame-number {
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-family: 'Special Elite', monospace;
  font-size: 8px;
  color: var(--muted);
  z-index: 4;
}

.film-frame.active .film-frame-number {
  color: var(--safelight);
}

/* Helper Utilities */
.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .bench-container {
    padding: 14px;
  }
  .caption-footer-actions {
    flex-direction: column;
    gap: 8px;
  }
}
