/* SortSnap — Contact Sheet & Light Table */
:root {
  --accent: #e05252;
  --accent-dim: rgba(224, 82, 82, 0.16);
  --film-bg: #05060b;
  --film-edge: rgba(236, 234, 244, 0.18);
  --print-mat: #f2f1f6;
}

/* Image fade-in */
img[decoding="async"] {
  opacity: 0;
  transition: opacity 0.35s ease;
}
img[decoding="async"].is-loaded {
  opacity: 1;
}

/* Scroll reveal (key headings only) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Safelight accent dot */
.safelight-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(224, 82, 82, 0.75);
  flex: none;
}

/* Hero & Contact Sheet */
.hero {
  padding: 28px 0 24px;
}
.contact-strip {
  background: var(--film-bg);
  border: 1px solid var(--film-edge);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.sprockets {
  height: 10px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(236, 234, 244, 0.24) 0 8px,
    transparent 8px 18px
  );
  opacity: 0.75;
}
.strip-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px 0;
}
.film-frame {
  background: #0a0c14;
  border: 1px solid rgba(236, 234, 244, 0.14);
  padding: 4px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
}
.film-frame img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 3px;
}

.hero .kicker {
  margin-bottom: 10px;
  font-size: 12px;
}
.hero h1.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.24;
}
.hero .lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 42em;
}
.hero-cta {
  margin-top: 18px;
}

/* Sorting Simulation Band */
.sim-section {
  padding-top: 28px;
}
.sim-stage {
  background: rgba(13, 17, 36, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}
.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.sim-rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-disp);
  letter-spacing: 0.16em;
  color: var(--ink-hi);
}
.sim-caption {
  color: var(--ink-dim);
}
.sim-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.sim-card {
  position: relative;
  min-height: 68px;
  border: 1px dashed rgba(201, 199, 214, 0.22);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(7, 8, 15, 0.55);
  opacity: 0.22;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.sim-card.is-active {
  opacity: 1;
  transform: none;
  border-style: solid;
  border-color: rgba(236, 234, 244, 0.3);
}
.sim-card-label {
  font-size: 12px;
  color: var(--ink-dim);
}
.sim-stamp {
  align-self: flex-end;
  font-family: var(--font-disp);
  font-size: 13px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 1px 7px;
  border-radius: 3px;
  transform: rotate(-4deg) scale(1.15);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.sim-card.is-stamped .sim-stamp {
  opacity: 1;
  transform: rotate(-4deg) scale(1);
}
.sim-folders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  padding-top: 10px;
  border-top: 1px dotted var(--line);
}
.sim-folder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-disp);
  font-size: 12.5px;
  color: var(--ink-hi);
  background: var(--accent-dim);
  border: 1px solid rgba(224, 82, 82, 0.38);
  border-radius: 4px;
  padding: 3px 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sim-folder.is-shown {
  opacity: 1;
  transform: none;
}

/* Feature Tray Rows */
.tray-list .frow {
  border-top: 1px dotted var(--line);
}
.tray-list .frow:last-child {
  border-bottom: 1px dotted var(--line);
}
.stamp {
  display: inline-block;
  font-family: var(--font-disp);
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid rgba(224, 82, 82, 0.55);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

/* Light Table Prints (Asymmetric) */
.lighttable {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.05fr;
  gap: 26px;
  align-items: start;
  padding-top: 8px;
}
.print {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.print-mat {
  background: var(--print-mat);
  padding: 10px 10px 16px;
  border-radius: 3px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.52);
}
.print-mat img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.print-a {
  transform: rotate(-1.2deg);
}
.print-b {
  margin-top: 38px;
  transform: rotate(1.1deg);
}
.print-c {
  margin-top: 16px;
  transform: rotate(-0.7deg);
}
.print figcaption h3 {
  font-size: 16.5px;
  color: var(--ink-hi);
  margin-bottom: 4px;
}
.print figcaption p {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.65;
}

/* Download Band */
.dl-lead {
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 34em;
  margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 820px) {
  .lighttable {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .print-a, .print-b, .print-c {
    margin-top: 0;
    max-width: 340px;
  }
  .print-b {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 16px 0 18px;
  }
  .contact-strip {
    padding: 6px 7px;
    margin-bottom: 14px;
  }
  .sprockets {
    height: 7px;
  }
  .strip-frames {
    gap: 6px;
    padding: 5px 0;
  }
  .film-frame {
    height: 126px;
    padding: 3px;
  }
  .hero .kicker {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.24em;
  }
  .hero h1.hero-title {
    font-size: 27px;
    line-height: 1.24;
  }
  .hero .lead {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.6;
  }
  .hero-cta {
    margin-top: 14px;
  }
  .sim-frames {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  img[decoding="async"],
  .reveal,
  .sim-card,
  .sim-stamp,
  .sim-folder {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
