/* Work cards (SH50). Off: a record in a console, paper and ink: what the project is. On (hover): the card breaks into
   pixels from where the pointer enters and turns into a device of small screens: what it achieves. The project's colour
   (--led) is only ever on what is digital. */
.card.wc { --led: #F2945A; position: relative; background: #FBFAF7; overflow: hidden; font-family: var(--mono); box-shadow: 0 0 0 1px var(--ink);
           transition: box-shadow .4s ease; }
.card.wc::after { display: none; }
.card.wc.lit { box-shadow: 0 0 0 1px var(--ink), 0 0 26px -6px color-mix(in srgb, var(--led) 55%, transparent); }
.wc .layer { position: absolute; inset: 0; display: flex; flex-direction: column; z-index: 0; }
.wc .layer.off { z-index: 1; }
.wc .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* ---- off: the record */
.wc .off { background: #FBFAF7; color: var(--ink); padding: clamp(16px, 2.2vh, 26px) clamp(18px, 1.8vw, 28px) clamp(12px, 1.8vh, 20px); box-shadow: inset 0 0 0 1px var(--ink); }
.wc .off .l1 { font-size: clamp(.85rem, 1.1vw, 1rem); letter-spacing: .14em; display: flex; gap: 12px; align-items: baseline; }
.wc .off .l1 .n, .wc .off .l1 .dash { color: #9A9A9A; } .wc .off .l1 b { font-weight: 500; }
.wc .off .l1 .yr { margin-left: auto; font-size: .7rem; color: var(--grey); }
.wc .off .l2 { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-top: 7px; }
.wc .off .l3 { font-family: var(--sans); font-weight: 300; font-size: clamp(.82rem, .95vw, .92rem); line-height: 1.55; color: #333; margin-top: clamp(8px, 1.6vh, 16px); }
.wc .off .pr { font-family: var(--mono); color: #9A9A9A; }
.wc .caret { display: inline-block; width: .55em; height: 1.05em; background: var(--ink); vertical-align: -.15em; margin-left: 3px; animation: wc-blink 1.1s steps(2) infinite; }
@keyframes wc-blink { 50% { opacity: 0; } }
.wc .rows { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; margin: clamp(8px, 1.6vh, 16px) 0 clamp(8px, 1.4vh, 14px);
            border-top: 1px solid rgba(26, 26, 26, .25); min-height: 0; }
.wc .rows .r { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(26, 26, 26, .2); font-size: .64rem; line-height: 1.45; }
.wc .rows i { font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #8A8A8A; }
.wc .rows span { color: #2A2A2A; letter-spacing: .02em; }
.wc .off .kps { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(26, 26, 26, .35); }
.wc .off .kp { padding: 10px 10px 2px 0; } .wc .off .kp b { font-weight: 400; font-size: clamp(1.1rem, 1.4vw, 1.4rem); }
.wc .kp em { font-style: normal; font-size: .74rem; margin-left: 3px; color: var(--grey); }
.wc .kp span { display: block; font-size: .58rem; letter-spacing: .05em; color: var(--grey); margin-top: 4px; line-height: 1.35; }
/* the two controls: a coin slot that switches the card on, and the way in */
.wc .off .l1 a { text-decoration: none; }
.wc .off .l1 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wc .ctl { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(26, 26, 26, .25); }
.wc .coin { font: 500 .7rem var(--mono); letter-spacing: .06em; color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; }
.wc .coin .pr { color: #9A9A9A; margin-right: 2px; }
.wc .coin .caret { width: .55em; height: 1.05em; }
.wc .coin:hover, .wc .coin:focus-visible { color: var(--led); text-shadow: 0 0 1px currentColor; }
.wc .coin:hover .caret, .wc .coin:focus-visible .caret { background: var(--led); }
.wc .open { font: 500 .66rem var(--mono); letter-spacing: .2em; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.wc .open:hover { color: var(--accent); border-color: var(--accent); }

/* ---- on: the device. Bezel of dark grey, every part a small screen */
.wc .on { color: #EEF2F5; background-color: #2B2F34; background-image: radial-gradient(rgba(255, 255, 255, .045) .6px, transparent .7px);
          background-size: 4px 4px; box-shadow: inset 0 0 0 2px var(--ink); }
.wc .scr { background: #14181D; border-radius: 3px; box-shadow: inset 0 0 0 1px #000, inset 0 0 18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04); }
.wc .on .shot { position: relative; flex: 0 0 53%; margin: 8px 8px 0; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px #000; background: #FBFAF7; }
.wc .on .shot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none; transform: none; }
.wc .on .shot.contain img { object-fit: contain; padding: 6px; }
.wc .live { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: .56rem; letter-spacing: .18em; color: var(--led); background: #14181D;
            padding: 4px 8px; display: flex; align-items: center; gap: 6px; }
.wc .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 6px var(--led); animation: wc-blink 1.2s steps(2) infinite; }
.wc .on .head { display: flex; align-items: baseline; gap: 12px; margin: 8px; padding: 9px 14px 10px; }
.wc .on .head .n { color: #6E7B88; } .wc .on .head b { font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.4rem); color: #EEF2F5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc .on .head b::after { content: ''; display: inline-block; width: .45em; height: .9em; background: var(--led); margin-left: 6px; vertical-align: -.08em;
                         animation: wc-blink 1.1s steps(2) infinite; box-shadow: 0 0 6px var(--led); }
.wc .on .head .yr { margin-left: auto; font-size: .54rem; letter-spacing: .14em; text-transform: uppercase; color: #8E99A4; white-space: nowrap; }
.wc .on .dash { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr auto; gap: 8px; padding: 0 8px 8px; min-height: 0; }
.wc .on .kp { padding: 9px 10px; display: flex; flex-direction: column; min-width: 0; }
.wc .on .kp .v { white-space: nowrap; overflow: hidden; }
.wc .on .kp b { font-weight: 400; font-size: clamp(.95rem, 1.2vw, 1.3rem); color: var(--led); text-shadow: 0 0 9px color-mix(in srgb, var(--led) 50%, transparent); }
.wc .on .kp em { color: #8E99A4; }
.wc .on .kp span { color: #8E99A4; font-size: .54rem; }
.wc .pxb { display: flex !important; gap: 2px; margin-top: auto !important; padding-top: 6px; }
.wc .pxb u { display: block; width: 5px; height: 5px; background: #2A323B; }
.wc .pxb u.y { background: var(--led); box-shadow: 0 0 4px color-mix(in srgb, var(--led) 60%, transparent); }
.wc .on .tick { grid-column: 1 / 3; height: 32px; overflow: hidden; display: flex; align-items: center;
                -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wc .on .tk { display: flex; width: max-content; align-items: center; animation: wc-tk 26s linear infinite; }
.wc .on .tk span { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: #C9D2DA; white-space: nowrap; }
.wc .on .tk i { width: 5px; height: 5px; background: var(--led); margin: 0 14px; flex: none; }
@keyframes wc-tk { to { transform: translateX(-50%); } }
.wc .on .go, .wc .on .eject { height: 32px; display: grid; place-items: center; font: 500 .62rem var(--mono); letter-spacing: .18em; color: var(--led);
                               text-decoration: none; border: 0; cursor: pointer; }
.wc .on .eject { grid-column: 3; color: #C9D2DA; } .wc .on .go { grid-column: 4; }
.wc .on .go:hover, .wc .on .eject:hover { background: var(--led); color: #14181D; box-shadow: 0 0 14px -2px var(--led); }

@media (hover: none) { .wc .fx { display: none; } }
@media (prefers-reduced-motion: reduce) { .wc .caret, .wc .live i, .wc .on .head b::after { animation: none; } .wc .on .tk { animation: none; } }
/* the vertical layout (phones, narrow windows, reduced motion) has no fixed card height: give the record its own */
.section-work:not(.horizontal) .card.wc { height: 560px; }
@media (max-width: 520px) { .section-work:not(.horizontal) .card.wc { height: 600px; } .wc .rows .r { grid-template-columns: 74px 1fr; } }
/* the sober record alone (WORK_CARDS_LIVE off): the command line without the run button */
.wc .cmd { font: 500 .7rem var(--mono); letter-spacing: .06em; color: var(--ink); }
.wc .cmd .pr { color: #9A9A9A; margin-right: 2px; }
