/* The Rotation: a wheel of makers on the left, the lit one's stage on the right. Chrome stays on the edge. */
.scene[data-key="rotation"] { background: var(--ink); }
/* the ambient: the stage's picture behind everything, barely there, tinted up from the bottom so the wheel stays legible */
.rt-ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.rt-ambient video, .rt-ambient img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; display: block; opacity: 0; filter: blur(7px) saturate(1.15); transition: opacity 1.4s var(--ease); }
.rt-ambient.video video { opacity: .2; }
.rt-ambient:not(.video) img[src] { opacity: .16; }
.rt-ambient-tint { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0%, rgba(14, 15, 18, .82) 38%, rgba(14, 15, 18, .42) 72%, rgba(14, 15, 18, .3) 100%); }
body.noambient .rt-ambient, body.still .rt-ambient video { display: none; }
.rt-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.rota { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr; padding: 76px 5vw 88px; gap: 18px; }
.rota .mono { font-family: var(--mono); }
.rt-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'eye next' 'dek next'; align-items: end; column-gap: 24px; row-gap: 8px; }
.rt-head .eyebrow { grid-area: eye; } .rt-head .rt-next { grid-area: next; align-self: end; }
.rt-head .eyebrow .dot.g { box-shadow: 0 0 10px var(--g); }
.rt-dek { grid-area: dek; margin: 0; font-size: 15px; color: var(--bone-70); max-width: 62ch; }
.rt-next { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-45); }
.rt-next b { color: var(--bone); font-weight: 500; font-variant-numeric: tabular-nums; }
.rt-mode { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--bone-70); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color .3s, border-color .3s; }
.rt-mode:hover, .rt-mode:focus-visible { color: var(--bone); border-color: var(--bone-45); }

.rt-body { display: grid; grid-template-columns: minmax(300px, 34%) 1fr; gap: 28px; min-height: 0; }

.rt-head.preview .eyebrow .dot { background: var(--bone); box-shadow: 0 0 10px rgba(255, 250, 248, .5); animation: rt-preview-blink 1.4s steps(1) infinite; }
@keyframes rt-preview-blink { 50% { opacity: .25; } }
.rt-copy .btn.rt-locked { opacity: .6; cursor: default; border-style: dashed; }

/* ---- the wheel ---- */
.rt-wheel { position: relative; min-height: 0; perspective: 1100px; perspective-origin: 50% 50%; overflow: hidden; outline: none; touch-action: none; user-select: none; -webkit-user-select: none;
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
.rt-ring { position: absolute; left: 0; right: 0; top: 50%; height: 0; transform-style: preserve-3d; }
.rt-card { position: absolute; left: 0; right: 8px; top: -54px; height: 108px; display: grid; grid-template-columns: 84px 1fr 22px; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; will-change: transform, opacity;
  transition: transform .5s var(--ease), opacity .5s var(--ease), filter .5s var(--ease), border-color .3s; filter: brightness(.38) saturate(.6); }
.rt-card.lit { filter: none; border-color: rgba(255, 250, 248, .28); box-shadow: 0 0 0 1px rgba(255, 250, 248, .06), 0 18px 50px rgba(0, 0, 0, .55); }
.rt-card:hover:not(.lit) { filter: brightness(.6) saturate(.8); }
.rt-cav { display: block; width: 84px; height: 84px; border-radius: 4px; overflow: hidden; background: rgba(255, 250, 248, .06); }
.rt-cav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-cmono { display: grid; place-items: center; width: 100%; height: 100%; font-family: 'Doto', var(--mono); font-weight: 800; font-size: 40px; color: var(--bone-45); font-style: normal; }
.rt-cbody { display: grid; gap: 8px; min-width: 0; }
.rt-cname { font-family: 'Doto', var(--mono); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-cmeta { font: 500 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-card.lit .rt-cmeta { color: var(--bone-70); }
.rt-cmeta .dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; vertical-align: 1px; background: var(--g); box-shadow: 0 0 8px var(--g); }
/* the notch of a cartridge: the thing that says "this is a thing you can hold" */
.rt-cslot { display: block; width: 6px; height: 46px; border-radius: 3px; background: repeating-linear-gradient(to bottom, rgba(255, 250, 248, .22) 0 3px, transparent 3px 7px); }
.rt-card.lit .rt-cslot { background: repeating-linear-gradient(to bottom, rgba(255, 250, 248, .55) 0 3px, transparent 3px 7px); }
.rt-wheel-hint { position: absolute; left: 12px; bottom: 6px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-25); pointer-events: none; }
.rt-wheel-hint b { color: var(--bone-45); font-weight: 500; border: 1px solid var(--line); border-radius: 3px; padding: 3px 5px; margin-right: 6px; }

/* ---- the stage ---- */
.rt-stage { position: relative; min-height: 0; perspective: 1600px; }
.rt-face { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.rt-front { transform: rotateY(0deg); }
.rt-back { transform: rotateY(180deg); }
.rt-stage.flipped .rt-front { transform: rotateY(-180deg); }
.rt-stage.flipped .rt-back { transform: rotateY(0deg); }
.rt-media { position: absolute; inset: 0; }
.rt-media .rt-clip, .rt-media .rt-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rt-media .rt-clip { opacity: 0; transition: opacity .8s var(--ease); }
.rt-stage.has-clip .rt-clip { opacity: 1; }
.rt-media .rt-portrait { opacity: .9; transform: scale(1.02); filter: saturate(.9); transition: transform 14s linear; }
.rt-stage.has-clip .rt-portrait { opacity: 0; }
.scene.on .rt-media .rt-portrait { transform: scale(1.1); }
.rt-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 15, 18, .96) 0, rgba(14, 15, 18, .7) 38%, rgba(14, 15, 18, .1) 70%, rgba(14, 15, 18, .35) 100%); }
.rt-copy { position: absolute; left: 34px; right: 34px; bottom: 30px; display: grid; gap: 12px; max-width: 640px; }
.rt-copy .eyebrow .px { display: inline-block; width: 6px; height: 6px; background: var(--bone); box-shadow: 0 0 8px rgba(255, 250, 248, .6); }
.rt-name { margin: 0; font-family: 'Doto', var(--mono); font-weight: 800; font-size: clamp(40px, 5.2vw, 76px); line-height: .95; letter-spacing: .02em; text-transform: uppercase; color: var(--bone); text-wrap: balance; }
.rt-line { margin: 0; font-size: 17px; line-height: 1.45; color: var(--cream); max-width: 56ch; }
.rt-ro { color: var(--bone-70); }
.rt-ro span + span::before { content: '·'; margin: 0 10px 0 -6px; color: var(--bone-25); }
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-copy .btns { margin-top: 4px; flex-wrap: wrap; }
.rt-copy .btn.kept { border-color: rgba(43, 182, 115, .55); color: var(--bone); box-shadow: inset 0 0 0 1px rgba(43, 182, 115, .25); }
.rt-copy .btn.kept::before { content: ''; width: 6px; height: 6px; background: var(--g); box-shadow: 0 0 8px var(--g); margin-right: 2px; }
.rt-sign { margin: 0; font: 500 10px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-45); }
.rt-signin { all: unset; cursor: pointer; color: var(--bone); border-bottom: 1px solid var(--bone-45); }
.rt-play { display: grid; gap: 5px; margin-top: 2px; }
.rt-nowplaying { font: 500 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-nowplaying a { color: var(--bone-70); text-decoration: none; }

.rt-stage.no-art .rt-front { background: radial-gradient(120% 90% at 30% 10%, rgba(255, 250, 248, .07), transparent 60%), var(--panel); }
.rt-media .rt-portrait[hidden] { display: none; }

/* ---- the back of the card ---- */
.rt-back-in { position: absolute; inset: 0; overflow: auto; padding: 30px 34px 34px; display: grid; gap: 18px; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(255, 250, 248, .18) transparent; }
.rt-bhead { display: grid; gap: 10px; }
.rt-bname { margin: 0; font-family: 'Doto', var(--mono); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--bone); }
.rt-bio { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bone-70); max-width: 62ch; white-space: pre-line; }
.rt-blab { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-45); margin-top: 4px; }
/* the reel: one window, one piece at a time. A story bar on top, the piece, its words, the way in; a strip of the rest beneath. */
.rt-reel { position: relative; display: grid; gap: 10px; }
.rt-reel-bar { display: flex; gap: 4px; height: 2px; }
.rt-reel-bar i { flex: 1; position: relative; background: rgba(255, 250, 248, .14); overflow: hidden; border-radius: 1px; }
.rt-reel-bar i b { position: absolute; inset: 0; background: var(--bone); transform: scaleX(0); transform-origin: left; }
.rt-reel-bar i.done b { transform: none; }
.rt-reel-bar i.on b { animation: rt-reel-fill 6.5s linear forwards; }
.rt-reel.held .rt-reel-bar i.on b, .rt-reel.still .rt-reel-bar i.on b { animation-play-state: paused; }
.rt-reel.still .rt-reel-bar i.on b { animation: none; transform: scaleX(.35); }
@keyframes rt-reel-fill { to { transform: none; } }
.rt-reel-stage { position: relative; aspect-ratio: 16 / 9; max-height: 52vh; border-radius: 8px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.rt-reel-media { position: absolute; inset: 0; }
.rt-reel-piece { position: absolute; inset: 0; }
.rt-reel-piece img, .rt-reel-piece video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-reel-piece video { opacity: 0; transition: opacity .8s var(--ease); }
.rt-reel-piece.playing video { opacity: 1; }
.rt-reel-piece.in { animation: rt-reel-in .55s var(--ease) both; }
.rt-reel-piece.out { animation: rt-reel-out .5s var(--ease) forwards; pointer-events: none; }
@keyframes rt-reel-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes rt-reel-out { to { opacity: 0; } }
.rt-reel-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 15, 18, .94) 0, rgba(14, 15, 18, .5) 32%, rgba(14, 15, 18, 0) 62%); pointer-events: none; }
.rt-reel-copy { position: absolute; left: 26px; right: 180px; bottom: 22px; display: grid; gap: 8px; }
.rt-reel-copy .eyebrow .px { display: inline-block; width: 6px; height: 6px; background: var(--bone-45); }
.rt-reel-copy .eyebrow .px.r { background: var(--r); box-shadow: 0 0 8px var(--r); }
.rt-reel-title { margin: 0; font: 700 clamp(18px, 1.7vw, 26px)/1.15 var(--sans); color: var(--bone); letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt-reel-line { margin: 0; font-size: 13px; line-height: 1.4; color: var(--bone-70); max-width: 60ch; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt-reel-go { position: absolute; right: 22px; bottom: 22px; }
.rt-reel-go[hidden] { display: none; }
.rt-reel-edge { all: unset; position: absolute; top: 0; bottom: 0; width: 14%; display: grid; place-items: center; font: 300 34px/1 var(--sans); color: var(--bone); cursor: pointer; opacity: 0; transition: opacity .35s var(--ease); }
.rt-reel-edge.prev { left: 0; background: linear-gradient(to right, rgba(14, 15, 18, .45), transparent); }
.rt-reel-edge.next { right: 0; background: linear-gradient(to left, rgba(14, 15, 18, .45), transparent); }
.rt-reel-stage:hover .rt-reel-edge, .rt-reel-edge:focus-visible { opacity: 1; }
.rt-reel-edge:active { transform: scale(.96); }
.rt-reel-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rt-reel-strip::-webkit-scrollbar { display: none; }
.rt-reel-thumb { all: unset; position: relative; flex: none; width: 84px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: rgba(255, 250, 248, .05); border: 1px solid var(--line); cursor: pointer; opacity: .55; transition: opacity .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease); }
.rt-reel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-reel-blank { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 10%, rgba(255, 250, 248, .08), transparent 60%); }
.rt-reel-thumb .px { position: absolute; left: 6px; top: 6px; width: 5px; height: 5px; background: var(--r); box-shadow: 0 0 6px var(--r); }
.rt-reel-thumb:hover, .rt-reel-thumb:focus-visible { opacity: .85; }
.rt-reel-thumb.on { opacity: 1; border-color: rgba(255, 250, 248, .6); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .rt-reel-piece.in, .rt-reel-piece.out { animation: none; } .rt-reel-thumb, .rt-reel-edge { transition: none; } }

.rt-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-links a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--bone-70); text-decoration: none; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rt-links a:hover { color: var(--bone); border-color: rgba(255, 250, 248, .35); }
.rt-bfoot { font: 500 10px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-25); margin-top: auto; }

/* ---- empty and waiting ---- */
.rt-empty { position: absolute; left: 8vw; bottom: 16vh; display: grid; gap: 14px; max-width: 560px; }
.rt-empty h2 { margin: 0; font-family: 'Doto', var(--mono); font-weight: 800; font-size: 48px; line-height: 1; text-transform: uppercase; color: var(--bone); }
.rt-empty p { margin: 0; color: var(--bone-70); font-size: 15px; line-height: 1.5; }
.rt-empty .btn { justify-self: start; }

/* the dock pixel: green means new, and it goes away once you have seen the rotation */
#dock span.rt-new::after { content: ''; position: absolute; right: 6px; top: 6px; width: 5px; height: 5px; background: var(--g); box-shadow: 0 0 8px var(--g); }

@media (max-width: 1100px) {
  .rota { padding: 70px 4vw 90px; }
  .rt-body { grid-template-columns: 1fr; grid-template-rows: 240px 1fr; }
  .rt-copy { left: 22px; right: 22px; bottom: 22px; }
  .rt-name { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-card, .rt-face, .rt-media .rt-portrait, .rt-thumb img { transition: none; }
}

/* a piece with no file of its own: its still stands full-bleed, and a mark on the media says it plays on request */
.rota .rt-media .rt-piece-mark { all: unset; position: absolute; right: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(255, 250, 248, .28); border-radius: 4px; background: rgba(14, 15, 18, .62); color: var(--bone); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); transition: border-color .3s, background .3s; }
.rota .rt-media .rt-piece-mark i { font-style: normal; font-size: 9px; }
.rota .rt-media .rt-piece-mark:hover, .rota .rt-media .rt-piece-mark:focus-visible { border-color: var(--bone); background: rgba(14, 15, 18, .85); }
.rota .rt-stage.has-piece .rt-portrait { cursor: pointer; }

/* the stage of one maker: the wheel set aside, the record beside the stage */
.rota .rt-body.solo { grid-template-columns: minmax(280px, 34%) minmax(0, 1fr); }
.rota .rt-side { display: grid; align-content: start; gap: 22px; padding: 8px 4px 8px 0; overflow: auto; max-height: 100%; scrollbar-width: thin; }
.rota .rt-side section { display: grid; gap: 10px; }
.rota .rt-side .eyebrow .t { color: var(--bone-70); }
.rota .rt-recog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rota .rt-recog div { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(255, 250, 248, .12); border-radius: 6px; background: rgba(21, 22, 26, .6); }
.rota .rt-recog b { font-family: 'Doto', var(--mono); font-weight: 800; font-size: 30px; line-height: 1; color: var(--bone); }
.rota .rt-recog span { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-45); }
.rota .rt-where { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-70); }
.rota .rt-where a { color: var(--bone-70); text-decoration: none; border-bottom: 1px solid rgba(255, 250, 248, .18); }
.rota .rt-where a:hover { color: var(--bone); border-color: var(--bone); }
.rota .rt-feat h3 { margin: 0; font: 700 18px/1.25 var(--sans); letter-spacing: -.01em; color: var(--bone); }
.rota .rt-feat-dek { margin: 0; font-size: 13px; color: var(--bone-70); }
.rota .rt-feat-x { margin: 0; font-size: 13px; line-height: 1.55; color: var(--bone-45); }
.rota .rt-feat.quiet .rt-feat-x { color: var(--bone-45); }
/* a pending line keeps its caret: that part of the record is still being typed */
.rota .rt-feat.quiet .rt-caret { display: inline-block; width: .5em; height: .85em; margin-left: .15em; vertical-align: -.1em; background: var(--bone-45); animation: rt-blink .8s steps(1) infinite; }
@keyframes rt-blink { 50% { opacity: .15; } }
/* the rail runs the width of the still, on its own line at the foot of the stage */
.rota .rt-copy:has(.rt-play) { bottom: 72px; max-width: none; }
.rota .rt-copy:has(.rt-play) > :not(.rt-play) { max-width: 640px; }
.rota .rt-front .rt-play { position: absolute; left: -34px; right: -34px; bottom: -72px; margin: 0; padding: 12px 34px 14px; border-top: 1px solid rgba(255, 250, 248, .12); background: linear-gradient(to top, rgba(14, 15, 18, .88), rgba(14, 15, 18, .6)); }
@media (prefers-reduced-motion: reduce) { .rota .rt-feat.quiet .rt-caret { animation: none; } }
.rota .rt-head.solo .rt-mode { cursor: pointer; }
