/* Finesse Media — Selected Work: category index + spotlight.
   Uses the site's palette tokens so every theme applies. */

.spot-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 72px);
  align-items: start;
}

/* ---------- Category index ---------- */
.spot-index { display: flex; flex-direction: column; border-top: 1px solid var(--line); position: sticky; top: 120px; }
.spot-index button {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 6px 0 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  text-align: left;
  transition: color .25s;
}
.spot-index button:hover, .spot-index button[aria-selected="true"] { color: var(--ink); }
.spot-num { font-size: 11px; letter-spacing: .15em; color: var(--gold); width: 26px; flex-shrink: 0; }
.spot-label { font-family: var(--serif); font-size: clamp(28px, 2.4vw, 36px); line-height: 1.05; flex: 1; }
.spot-arrow { font-size: 18px; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s; }
.spot-index button[aria-selected="true"] .spot-arrow,
.spot-index button:hover .spot-arrow { opacity: 1; transform: none; }

/* ---------- Spotlight panel ---------- */
.spot-panel { outline-offset: 8px; }
.spot-panel:not([hidden]) { animation: spotIn .45s ease both; }
@keyframes spotIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.spot-hero {
  position: relative;
  margin: 0;
  height: clamp(360px, 36vw, 540px);
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}
.spot-hero picture { display: block; width: 100%; height: 100%; }
.spot-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 90px 30px 28px;
  background: linear-gradient(0deg, rgba(14, 12, 10, .82), rgba(14, 12, 10, 0));
  color: #fffcf6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.spot-caption .eyebrow { color: #f0e2c6; font-size: 11px; }
.spot-caption h3 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -.02em; margin-top: 8px; color: #fffcf6; }
.spot-caption h3 em { color: #eddbb9; }
.spot-cta {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fffcf6;
  color: #1e1c18;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 2px;
  transition: background .2s;
}
.spot-cta:hover { background: #eddbb9; }

.spot-more { font-size: 10px; letter-spacing: .16em; color: var(--muted); margin: 26px 0 12px; }
.spot-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.spot-thumb {
  position: relative;
  display: block;
  height: clamp(110px, 10vw, 150px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  color: #fffcf6;
}
.spot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.spot-thumb-site img { object-position: top; }
.spot-thumb:hover img { transform: scale(1.05); }
.spot-thumb-site > span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  font-size: 12px;
  text-align: left;
  background: linear-gradient(0deg, rgba(14, 12, 10, .78), rgba(14, 12, 10, 0));
}

/* ---------- Tablet and mobile ---------- */
@media (max-width: 900px) {
  .spot-layout { grid-template-columns: 1fr; gap: 26px; }
  .spot-index {
    position: static;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    border-top: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .spot-index::-webkit-scrollbar { display: none; }
  .spot-index button {
    min-height: 44px;
    flex-shrink: 0;
    padding: 0 16px;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .spot-index button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .spot-num, .spot-arrow { display: none; }
  .spot-label { font-family: var(--sans); font-size: 13px; font-weight: 500; }
  .spot-hero { height: auto; aspect-ratio: 4 / 5; }
  .spot-caption { flex-direction: column; align-items: flex-start; padding: 80px 20px 20px; }
  .spot-cta { width: 100%; justify-content: space-between; box-sizing: border-box; }
  .spot-thumbs { gap: 10px; }
}
@media (max-width: 700px) {
  .spot-hero { aspect-ratio: 4 / 5; }
  .spot-thumb { height: 96px; }
  .spot-thumb-site > span { font-size: 10px; padding: 20px 8px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .spot-panel:not([hidden]) { animation: none; }
  .spot-thumb img, .spot-arrow { transition: none; }
}
