/* ============================================
   VIGNETTES — editorial horizontal carousel
   ============================================ */
.vignettes {
  padding-top: var(--section-y);
  padding-bottom: calc(var(--section-y) - 20px);
  position: relative;
  overflow: hidden;
}
.vignettes-head {
  display: block;
  margin-bottom: 64px;
}
.vignettes-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 12px;
}
.vignettes-title {
  text-wrap: pretty;
  max-width: 22ch;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .vignettes-head { margin-bottom: 40px; }
}

/* Rail breaks out of container so cards bleed off-edge */
.vignettes-rail {
  position: relative;
  margin-left: var(--gutter);
}
.vignettes-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding: 4px 0 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vignettes-track::-webkit-scrollbar { display: none; }

.vignette {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 28px 0 0;
  border-right: 1px solid var(--line);
  animation: fadeUp .8s ease both;
  opacity: 0;
  animation-delay: 0.1s;
  animation-fill-mode: forwards;
}
.vignette:last-child { border-right: 0; padding-right: 0; }

.vignette-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 6px;
}
.vignette-roman {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.vignette-rule {
  display: inline-block;
  flex: 0 0 18px;
  height: 1px;
  background: var(--line-strong);
}
.vignette-label {
  flex: 1;
}

/* Tile — square, dark, diagonal striped, glyph centered */
.vignette-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.2));
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color .35s ease, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.vignette-tile-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    rgba(255,255,255,0.02) 14px,
    rgba(255,255,255,0.02) 15px
  );
  pointer-events: none;
}
.vignette-glyph {
  color: var(--fg-dim);
  opacity: 0.55;
  transition: color .4s ease, opacity .4s ease, transform .6s cubic-bezier(.2,.8,.2,1);
  position: relative;
  z-index: 1;
}
.vignette-tile-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  z-index: 1;
}

.vignette:hover .vignette-tile {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.vignette:hover .vignette-glyph {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.06);
}
/* Alternate hover color in duo: every other vignette glyph turns silver */
[data-metal="duo"] .vignette:nth-child(2n):hover .vignette-glyph,
[data-metal="silver-led"] .vignette:nth-child(2n):hover .vignette-glyph {
  color: var(--accent-2);
}

.vignette-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 1.7vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  margin-top: 8px;
}
.vignette-body {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Foot — counter, progress rule, arrows */
.vignettes-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  margin-top: 8px;
}
.vignettes-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
}
.vignettes-counter-num { color: var(--accent); }
.vignettes-progress {
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.vignettes-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--gold-shine);
  background-size: 200% 200%;
  transform-origin: left center;
  transform: scaleX(0.04);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  animation: goldShimmer 6s ease-in-out infinite;
}
[data-metal="duo"] .vignettes-progress-fill {
  background: linear-gradient(90deg,
    #856815 0%, #c9a24a 25%,
    #aeb7c5 50%,
    #c9a24a 75%, #856815 100%);
  background-size: 200% 200%;
}
.vignettes-arrows {
  display: flex;
  gap: 8px;
}
.vignettes-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  transition: all .25s ease;
  background: rgba(255,255,255,.01);
}
.vignettes-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201,162,74,.08);
}
[data-metal="duo"] .vignettes-arrow:nth-child(2):hover,
[data-metal="silver-led"] .vignettes-arrow:nth-child(2):hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(174, 183, 197, .08);
}

@media (max-width: 760px) {
  .vignette { flex: 0 0 78%; padding-right: 20px; }
  .vignettes-foot { grid-template-columns: auto 1fr auto; gap: 16px; }
}
