/* Each recording has its own illustrated card. Cards stack as the page scrolls. */
.projects .section-heading{margin-bottom:45px}
.projects .project-stack{max-width:1320px}
.projects .spotlight-card{
  position:sticky;
  top:calc(18px + var(--index, 0)*11px);
  z-index:calc(10 + var(--index, 0));
  transform:scale(var(--stack-scale, 1));
  transform-origin:50% 0;
  padding:27px 30px 20px;
  margin-bottom:68px;
  scroll-margin-top:calc(18px + var(--index, 0)*11px);
  border-color:#8ca9ca;
  box-shadow:0 15px 40px #40587b2c;
}
.projects .spotlight-card:nth-child(1){--index:0}
.projects .spotlight-card:nth-child(2){--index:1}
.projects .spotlight-card:nth-child(3){--index:2}
.projects .spotlight-card:nth-child(4){--index:3}
.projects .spotlight-card:nth-child(5){--index:4}
.projects .spotlight-card:nth-child(6){--index:5}
.projects .spotlight-card:nth-child(7){--index:6}
.projects .spotlight-card:nth-child(8){--index:7}
.projects .spotlight-card:nth-child(even){background:#fff9f4}
.projects .spotlight-card:last-child{margin-bottom:0}
.spotlight-heading{display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:22px;margin-bottom:22px}
.spotlight-heading .project-number{font-size:74px}
.spotlight-title .eyebrow{font-size:10px;letter-spacing:1.6px;color:#697f99}
.spotlight-title h3{font-family:var(--hand);font-size:clamp(28px,2.9vw,39px);font-weight:500;line-height:1.25;color:var(--brown);margin-top:5px}
.spotlight-kind{font-family:var(--hand);font-size:14px;line-height:1.2;color:#56769b;background:#e8effa;border:1px solid #a8bfd9;border-radius:99px;padding:8px 14px;white-space:nowrap}
.spotlight-layout{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:28px;align-items:center}
.spotlight-story{display:flex;flex-direction:column;gap:13px;min-width:0}
.spotlight-cover{width:100%;height:315px;margin:0;padding:5px;border:1px solid #aec1d9;border-radius:18px;background:#fffefa;box-shadow:4px 7px 14px #34456520;overflow:hidden;transform:rotate(-1.3deg)}
.spotlight-card:nth-child(even) .spotlight-cover{transform:rotate(1.1deg)}
.spotlight-cover img{display:block;width:100%;height:100%;object-fit:cover;border-radius:13px;background:#f9f7f1}
.spotlight-copy{min-width:0}
.spotlight-copy p{font-size:15px;line-height:1.85;color:#5e7188}
.spotlight-copy .button{font-size:17px;min-height:44px;padding:9px 17px;gap:12px;margin-top:10px}
.spotlight-screen{min-width:0}
.spotlight-screen .video-frame{border-radius:19px;box-shadow:0 6px 16px #14243b1c}
.spotlight-screen .video-frame video{display:block;width:100%;height:min(420px,53svh);max-height:none;aspect-ratio:auto;object-fit:contain;background:#111622}
.spotlight-screen .recording-caption{font-size:11px;line-height:1.5;margin-top:9px;text-align:right;color:#687f9b}
.spotlight-card .project-footer{margin-top:17px;padding-top:14px;border-top:1px solid #91afd133;font-size:10px;letter-spacing:0;line-height:1.6}
.spotlight-card .project-footer span:last-child{white-space:nowrap}

/* The entire first work card is a ticket. Its right edge is the removable stub. */
.projects .room-ticket-card{display:flex;align-items:stretch;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.room-ticket-body{
  position:relative;
  flex:1;
  min-width:0;
  padding:27px 30px 20px;
  border:1.5px solid #8ca9ca;
  border-right:2px dashed #8ca9ca;
  border-radius:42px 0 0 42px;
  background:#fffaf0;
  box-shadow:0 15px 40px #40587b2c;
}
.room-ticket-frame{position:relative}
.room-ticket-card[data-tear-locked] .room-ticket-frame::after{content:"";position:absolute;inset:0;background:#111622;pointer-events:none}
.room-next-cue[hidden]{display:none}
.room-ticket-cover{
  position:absolute;
  inset:0;
  z-index:5;
  display:block;
  width:100%;
  height:100%;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:42px;
  background:#8d654b;
  box-shadow:0 15px 40px #40587b39;
  cursor:grab;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
  transform:translateX(var(--tear-x,0px)) rotate(var(--tear-angle,0deg));
  transform-origin:84% 50%;
  transition:transform .78s cubic-bezier(.2,.8,.15,1),opacity .78s ease;
}
.room-ticket-cover picture,.room-ticket-cover img{display:block;width:100%;height:100%}
.room-ticket-cover img{object-fit:fill;pointer-events:none}
.room-ticket-cover:active{cursor:grabbing}
.room-ticket-cover:focus-visible{outline:4px solid #f6c658;outline-offset:5px}
.room-ticket-card.is-dragging .room-ticket-cover{transition:none}
.room-ticket-card.is-torn .room-ticket-cover{transform:translate(115%,-9%) rotate(11deg);opacity:0;pointer-events:none}
.room-ticket-card.is-open .room-ticket-body{border-right:1.5px solid #8ca9ca;border-radius:42px}
.room-ticket-card.is-open .room-ticket-stub{visibility:hidden;overflow:hidden}
.room-ticket-stub{
  position:relative;
  display:flex;
  flex:0 0 clamp(98px,9vw,125px);
  min-width:0;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  padding:33px 10px 24px;
  border:1.5px solid #8ca9ca;
  border-left:0;
  border-radius:0 42px 42px 0;
  background:#dce8ef;
  color:#263d50;
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  transform:translateX(var(--tear-x,0px)) rotate(var(--tear-angle,0deg));
  transform-origin:left center;
  transition:transform .28s ease,opacity .55s ease,background .2s ease,flex-basis .3s ease;
}
.room-ticket-stub:hover{background:#eaf2f5}
.room-ticket-stub::before{content:"";position:absolute;left:-8px;top:9px;bottom:9px;width:14px;background:radial-gradient(circle,#e7eafa 0 5px,transparent 5.4px) center top/14px 8.33% repeat-y;pointer-events:none}
.room-ticket-stub-top{display:flex;width:100%;justify-content:space-between;align-items:center;font:700 9px/1.2 Outfit,system-ui,sans-serif;letter-spacing:.11em}
.room-ticket-stub-top b{color:#bd9659;font-size:16px}
.room-ticket-stub strong{font-family:var(--hand);font-size:clamp(44px,5vw,64px);font-weight:500;line-height:1}
.room-ticket-action{font-family:var(--hand);font-size:clamp(13px,1.4vw,17px);white-space:nowrap}
.room-ticket-action span{margin-left:2px}
.room-ticket-stub small{font:600 8px/1.4 Outfit,system-ui,sans-serif;letter-spacing:.08em;text-align:center}
.room-ticket-stub:focus-visible{outline:3px solid #f6c658;outline-offset:4px}
.room-ticket-card.is-open .room-ticket-stub{flex-basis:0;padding:0;border:0}
.room-next-cue{display:inline-block;margin-top:6px;color:#466d91;font-family:var(--hand);font-size:14px;text-decoration:none}
.room-next-cue:hover{text-decoration:underline}
.room-next-cue:focus-visible{outline:2px solid #466d91;outline-offset:4px}

@media(max-width:1100px){
  .projects .spotlight-card{padding:24px}
  .projects .room-ticket-card{padding:0}
  .room-ticket-body{padding:24px}
  .spotlight-layout{grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:20px}
  .spotlight-cover{height:270px}
  .spotlight-copy p{font-size:13px}
  .spotlight-copy .button{font-size:15px;padding:8px 13px;margin-top:10px}
}
@media(max-width:760px){
  .projects .section-heading{margin-bottom:28px}
  .projects .spotlight-card{position:relative;top:auto;transform:none;padding:20px 16px 17px;margin-bottom:24px;border-radius:27px;scroll-margin-top:15px}
  .projects .room-ticket-card{padding:0}
  .room-ticket-body{padding:20px 16px 17px;border-radius:27px 0 0 27px}
  .room-ticket-cover,.room-ticket-card.is-open .room-ticket-body{border-radius:27px}
  .spotlight-heading{grid-template-columns:57px minmax(0,1fr);gap:10px 14px;margin-bottom:18px}
  .spotlight-heading .project-number{font-size:54px;align-self:start}
  .spotlight-title .eyebrow{font-size:8px;letter-spacing:1px}
  .spotlight-title h3{font-size:29px;margin-top:5px}
  .spotlight-kind{grid-column:2;justify-self:start;font-size:12px;padding:5px 10px}
  .spotlight-layout{grid-template-columns:1fr;gap:18px}
  .spotlight-screen{grid-row:2}
  .spotlight-screen .video-frame{border-radius:14px}
  .spotlight-screen .video-frame video{height:auto;max-height:62svh;aspect-ratio:var(--recording-ratio,16/9)}
  .spotlight-story{grid-row:1;display:grid;grid-template-columns:minmax(120px,44%) minmax(0,1fr);gap:15px;align-items:center}
  .spotlight-cover{height:170px}
  .spotlight-copy p{font-size:13px;line-height:1.7}
  .spotlight-copy .button{font-size:15px;min-height:40px;margin-top:12px}
  .spotlight-screen .recording-caption{text-align:left;font-size:10px}
  .spotlight-card .project-footer{flex-wrap:wrap;gap:4px 12px;margin-top:15px;padding-top:12px}
  .room-ticket-stub{flex-basis:clamp(50px,14vw,60px);padding:14px 4px;border-radius:0 27px 27px 0}
  .room-ticket-stub::before{left:-7px;width:12px;background-size:12px 8.33%}
  .room-ticket-stub-top{font-size:7px;writing-mode:vertical-rl}
  .room-ticket-stub-top b{font-size:12px}
  .room-ticket-stub strong{font-size:30px}
  .room-ticket-action{font-size:12px;writing-mode:vertical-rl}
  .room-ticket-stub small{font-size:7px;writing-mode:vertical-rl}
}
@media(max-width:360px){
  .spotlight-story{grid-template-columns:minmax(100px,42%) minmax(0,1fr);gap:12px}
  .spotlight-cover{height:145px}
  .spotlight-title h3{font-size:26px}
}
@media(prefers-reduced-motion:reduce){
  .projects .spotlight-card{position:relative;top:auto;transform:none}
  .spotlight-cover{transform:none!important}
  .room-ticket-cover{transition:none}
}
