/* home #work reel v7: one shape, one strip. every print the same soft portrait, the words sit on the photo,
   the strip fades out at both edges; no frames, no arches, no cards. hover lifts the photo's light. */
#work .reel__track {
  counter-reset: t;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
#work .tile {
  counter-increment: t;
  position: relative;
  display: block;
  width: clamp(240px, 22vw, 320px);
  margin: 0;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  transform: none;
  animation: none;
  transition: opacity 0.45s ease, filter 0.45s ease;
}
#work .tile:not([aria-hidden]) + .tile[aria-hidden] { counter-set: t 1; }
#work .tile:hover { transform: none; }
#work .tile:focus-visible { outline: 3px solid #ffb35c; outline-offset: 3px; }

#work .tile__img {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 0 !important;
  box-shadow: none;
  outline: 0;
  background: #0b1640;
}
#work .tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
  transform: none;
  transition: scale 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
  filter: saturate(0.9) brightness(0.92);
}
#work .tile__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 6, 26, 0.35) 0%, rgba(3, 6, 26, 0) 26%, rgba(3, 6, 26, 0) 44%, rgba(3, 6, 26, 0.92) 100%);
  pointer-events: none;
}

/* words on the photo: number + kind at the top, title at the foot */
#work .tile__k {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 700 0.68rem/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd29a;
  text-shadow: 0 1px 8px rgba(3, 6, 26, 0.6);
}
#work .tile__k::before { content: counter(t, decimal-leading-zero); color: #fff; letter-spacing: 0.04em; }
#work .tile__t {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  min-height: 0;
  margin: 0;
  color: #fff;
  font: 800 clamp(1.08rem, 1.45vw, 1.3rem)/1.18 var(--font);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(3, 6, 26, 0.55);
  -webkit-line-clamp: 3;
  transition: translate 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#work .tile__t::after {
  content: "↗";
  display: inline-block;
  margin-left: 6px;
  color: #ffb35c;
  opacity: 0;
  translate: -4px 4px;
  transition: opacity 0.3s ease, translate 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  #work .tile:hover .tile__img img { scale: 1.06; filter: saturate(1.05) brightness(1); }
  #work .tile:hover .tile__t { translate: 0 -4px; }
  #work .tile:hover .tile__t::after { opacity: 1; translate: 0 0; }
  #work .reel__track:has(.tile:hover) .tile:not(:hover) { opacity: 0.5; filter: saturate(0.5); }
}
#work .tile:focus-visible .tile__t::after { opacity: 1; translate: 0 0; }

/* controls: glass hairline circles, amber when touched */
#work .reel__ctrl button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(6px);
}
#work .reel__ctrl button:hover,
#work .reel__ctrl button:focus-visible { background: #ffb35c; border-color: #ffb35c; color: #0b1640; transform: scale(1.06); }
#work .reel__ctrl button[aria-pressed="true"] { border-color: #ffb35c; color: #ffb35c; }

#work .reel__bar { height: 2px; background: rgba(255, 255, 255, 0.14); }
#work .reel__bar i { background: linear-gradient(90deg, #ffb35c, #ffd29a); }
#work .reel__cursor { background: #ffb35c; color: #0b1640; }

@media (max-width: 719px) {
  #work .tile { width: min(72vw, 280px); }
  #work .reel__track { -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  #work .tile, #work .tile__img img, #work .tile__t { transition: none; }
}
