/* Collectible spotlight cards. Artwork and year follow the supplied stream prints. */
.spotlight-scene {
  --card-paper: #f7f4ee;
  --card-ink: #20213a;
  --card-muted: #59536b;
  --card-accent: #b48c00;
  --card-edge: #d8d2cd;
  --card-turn: 2deg;
}
.spotlight-scene:is([data-stream="DTPM"], [data-stream="Enterprise"], [data-stream="Web"]) {
  --card-paper: #252334;
  --card-ink: #fff9fc;
  --card-muted: #d0c5df;
  --card-accent: #b5a1ff;
  --card-edge: #625675;
}
.spotlight-scene[data-stream="Web"] { --card-accent: #afe260; --card-turn: -2deg; }
.spotlight-scene[data-stream="Enterprise"] { --card-turn: -2deg; }
.spotlight-scene:is([data-stream="SnD"], [data-stream="Platform"]) { --card-accent: #cb2658; }
.spotlight-scene[data-stream="Platform"] { --card-turn: -2deg; }
.spot-card-stage {
  width: min(100%, 370px, calc((100dvh - 230px) * .54));
  justify-self: center;
  perspective: 1200px;
  container-type: inline-size;
}
.spot-card.collectible-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-height: none;
  padding: 3.8cqw;
  border-radius: 14px;
  overflow: visible;
  background: var(--card-paper);
  color: var(--card-ink);
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) rotateZ(var(--card-turn));
  box-shadow: 1px 2px 0 var(--card-edge), 2px 4px 0 var(--card-edge), 9px 24px 36px #1010284d;
  isolation: isolate;
}
.collectible-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, #ffffff12, transparent 36%, transparent 72%, #ffffff05);
  pointer-events: none;
  transform: translateZ(2px);
}
.collectible-cover { display: grid; grid-template-columns: 20% minmax(0, 1fr); gap: 3%; }
.collectible-year { position: relative; color: var(--card-accent); }
.collectible-year span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font: 800 23.8cqw/.85 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.04em;
}
.collectible-art { position: relative; aspect-ratio: 1; min-width: 0; overflow: hidden; background: var(--art-bg); transform: translateZ(7px); }
.collectible-art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collectible-art--graphic { display: grid; place-items: center; background: #f2cb4d; color: #202758; --line: #fff6c0; }
.collectible-monogram { position: relative; font: 800 40cqw/1 'Bricolage Grotesque', sans-serif; transform: rotate(-10deg); }
.collectible-info { padding: 0 1cqw; }
.collectible-info h3 { margin: 2.4cqw 0 4cqw; text-align: right; font: 800 8.5cqw/1.05 'Bricolage Grotesque', sans-serif; letter-spacing: -.035em; }
.collectible-table-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 2cqw; color: var(--card-muted); font-size: max(11px, 3.05cqw); }
.collectible-list { list-style: none; counter-reset: spotlight-track; padding: 0; margin: 0; }
.collectible-list li { display: grid; grid-template-columns: 1.25em minmax(0, 1fr) 2em; gap: .4em; align-items: baseline; counter-increment: spotlight-track; font-size: max(11px, 3.7cqw); line-height: 1.35; font-weight: 650; padding-block: .4cqw; }
.collectible-list.collectible-list--curated li { grid-template-columns: 1.35em minmax(0, 1fr); }
.collectible-list li::before { content: counter(spotlight-track); color: var(--card-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.collectible-count { text-align: right; font-variant-numeric: tabular-nums; }
.collectible-achievement { display: grid; justify-items: end; gap: .8cqw; margin-top: 4cqw; }
.collectible-achievement > span { color: var(--card-muted); font-size: max(11px, 3cqw); }
.collectible-achievement strong { font: 800 12.5cqw/.95 'Bricolage Grotesque', sans-serif; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.collectible-achievement small { font-size: max(11px, 3cqw); }
.collectible-detail { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; margin: 3cqw 0 1cqw; padding: 1.7cqw 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--card-ink) 22%, transparent); border-radius: 0; background: transparent; color: var(--card-ink); text-align: left; font-size: max(11px, 3.2cqw); font-weight: 650; cursor: pointer; }
.collectible-detail::after { content: '→'; font-size: 1.4em; transition: transform .2s ease-out; }
.collectible-detail:hover::after { transform: translateX(4px); }
.collectible-detail:focus-visible { outline: 2px solid var(--card-accent); outline-offset: 3px; border-radius: 3px; }
.collectible-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 1cqw 0 0; font-size: max(9px, 2.6cqw); font-weight: 800; text-transform: uppercase; }
.collectible-foot img { width: 7cqw; height: 7cqw; object-fit: contain; }
.reduced-motion .spot-card.collectible-card,
.motion-paused .spot-card.collectible-card { transform: rotateZ(var(--card-turn)); }
@media (prefers-reduced-motion: reduce) {
  .spot-card.collectible-card { transform: rotateZ(var(--card-turn)); }
  .collectible-detail::after { transition: none; }
}
@media (max-width: 680px) and (min-height: 481px) {
  .spotlight-scene { grid-template-columns: 1fr; padding: 8px 22px; }
  .spot-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .spot-card-stage { width: min(100%, 350px, calc((100dvh - 184px) * .54)); }
}
@media (max-width: 680px) and (min-height: 481px) and (max-height: 650px) {
  .spot-card-stage { width: min(100%, 260px); }
  .collectible-cover { grid-template-columns: 23% minmax(0, 1fr); }
  .collectible-art { width: auto; height: 120px; justify-self: end; }
  .collectible-year span { font-size: 20cqw; }
  .collectible-info h3 { margin: 2cqw 0; font-size: 7.5cqw; }
  .collectible-table-head { margin-bottom: 1cqw; }
  .collectible-list li { font-size: 11px; line-height: 1.2; padding: .2cqw 0; }
  .collectible-achievement { margin-top: 2cqw; gap: .5cqw; }
  .collectible-achievement strong { font-size: 10cqw; }
  .collectible-detail { min-height: 36px; margin-top: 2cqw; }
  .collectible-foot img { width: 18px; height: 18px; }
}
/* Landscape uses a horizontal print so the artwork and all five titles stay readable. */
@media (max-height: 540px) and (min-width: 481px) {
  .spotlight-scene { grid-template-columns: .8fr 1.2fr; gap: 3vw; padding-inline: var(--gutter); }
  .spot-copy h2 { font-size: clamp(30px, 5vw, 62px); }
  .spot-card-stage { width: min(100%, 430px); }
  .spot-card.collectible-card { display: grid; grid-template-columns: 43% minmax(0, 1fr); gap: 3cqw; padding: 2.5cqw; border-radius: 12px; }
  .collectible-cover { display: flex; flex-direction: column-reverse; justify-content: end; gap: 2cqw; }
  .collectible-art { width: min(100%, 32dvh); align-self: center; flex: none; }
  .collectible-year span { position: static; display: block; transform: none; font-size: 10cqw; line-height: .9; text-align: center; }
  .collectible-info { padding: 0; }
  .collectible-info h3 { font-size: 5.5cqw; margin: 0 0 1.5cqw; }
  .collectible-table-head { font-size: 10px; margin-bottom: 1cqw; }
  .collectible-list li { font-size: 11px; line-height: 1.15; padding: .3cqw 0; }
  .collectible-achievement { grid-template-columns: 1fr auto; align-items: center; justify-items: start; margin-top: 1.5cqw; gap: .4cqw 1cqw; }
  .collectible-achievement strong { grid-column: 2; grid-row: 1 / 3; font-size: 8cqw; }
  .collectible-achievement :is(span, small) { font-size: 10px; }
  .collectible-detail { min-height: 30px; margin: 1.5cqw 0 0; padding: 1cqw 0; font-size: 10px; }
  .collectible-foot { display: none; }
}

/* The card turns into an in-slide index: it travels left while its detail sheet
   unfolds from the right. The sheet belongs to this scene, not the top layer. */
.spotlight-scene { position:relative; overflow:hidden; }
.spot-copy { transition:opacity .42s ease,translate .65s cubic-bezier(.2,.8,.2,1); }
.spot-card-stage { position:relative; z-index:2; transition:transform .72s cubic-bezier(.18,.82,.18,1); }
.spot-card { cursor:pointer; }
.spot-card:focus-visible { outline:3px solid var(--card-accent); outline-offset:5px; }
.spotlight-scene.is-expanded .spot-copy { opacity:0; translate:-8vw 0; pointer-events:none; }
.spotlight-scene.is-expanded .spot-card-stage { transform:translateX(-43vw) scale(.72); }
.spot-detail-panel {
  position:absolute; z-index:3; top:50%; right:max(var(--gutter),6vw);
  width:min(52vw,760px); max-height:calc(100% - 38px); overflow:auto;
  padding:clamp(16px,2.4vw,30px); color:#242139; background:#fff9fc;
  border:1px solid #f2c6dc; border-radius:20px;
  box-shadow:0 24px 70px #070c2a80,0 0 0 7px #ffffff13;
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translate(17%, -48%) scale(.94);
  clip-path:inset(0 0 0 65% round 20px);
  transition:opacity .36s ease,visibility .36s,transform .72s cubic-bezier(.18,.82,.18,1),clip-path .72s cubic-bezier(.18,.82,.18,1);
  overscroll-behavior:contain;
}
.spotlight-scene.is-expanded .spot-detail-panel { opacity:1; visibility:visible; pointer-events:auto; transform:translate(0,-50%) scale(1); clip-path:inset(0 round 20px); }
.spot-detail-head { display:flex; justify-content:space-between; align-items:start; gap:16px; border-bottom:2px solid #efd4e1; padding-bottom:12px; }
.spot-detail-head h3 { margin:0; font:800 clamp(24px,3vw,40px)/1 'Bricolage Grotesque',Inter,sans-serif; letter-spacing:-.035em; }
.spot-detail-close { flex:none; border:0; border-radius:100px; padding:10px 14px; background:#272451; color:white; font:700 12px/1 Inter,sans-serif; cursor:pointer; }
.spot-detail-close:focus-visible { outline:3px solid #c93466; outline-offset:3px; }
.spot-detail-intro { margin:10px 0 18px; color:#615268; font-size:13px; }
.spot-detail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.spot-detail-list section { min-width:0; padding:12px 14px; border-radius:12px; background:#f6edf3; }
.spot-detail-list .spot-detail-featured { grid-column:1/-1; background:#282451; color:#fff; }
.spot-detail-list h3 { margin:0 0 7px; font:800 15px/1.15 'Bricolage Grotesque',Inter,sans-serif; }
.spot-detail-list ul { list-style:none; padding:0; margin:0; }
.spot-detail-list li { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 8px; padding:6px 0; border-top:1px solid #c6b9c9; font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
.spot-detail-list li:first-child { border-top:0; }
.spot-detail-list .match { font-size:10px; opacity:.75; }
.spot-detail-list .proof { flex-basis:100%; }
.spot-detail-featured .proof { color:#e6ddeb; }
.spot-detail-list .proof p { margin:4px 0; }
.spot-detail-empty { margin:0; color:#716777; font-size:12px; font-style:italic; }
@media(max-width:680px), (max-height:540px) {
  .spotlight-scene.is-expanded .spot-card-stage { transform:translateX(-105%) scale(.75); }
  .spot-detail-panel { left:var(--gutter); right:var(--gutter); width:auto; max-height:calc(100% - 14px); padding:12px; }
  .spot-detail-head h3 { font-size:22px; }
  .spot-detail-list { gap:6px; }
  .spot-detail-list section { padding:8px; }
}
@media(max-width:480px) { .spot-detail-list { grid-template-columns:1fr; } }
#experience:is(.motion-paused,.reduced-motion) .spotlight-scene :is(.spot-copy,.spot-card-stage,.spot-detail-panel) { transition:none; }
@media(prefers-reduced-motion:reduce) { .spotlight-scene :is(.spot-copy,.spot-card-stage,.spot-detail-panel) { transition:none; } }
