/* II. On Craft (rd/craft.js): one field of bits behind the chapter's own lines; it stops at "the answers" and
   falls away under the word Engineering. Nothing applies without .rd-cb. */
.rd-ch.rd-cb { height: 430vh; }
.rd-ch.rd-cb, .rd-ch.rd-cb::before, .rd-ch.rd-cb::after { background: #0b0b0a !important; }
.rd-cb .rd-ch-caption { display: none !important; }
.rd-cb .rd-ch-pin { overflow: hidden; color: #fbf7ee; }
.rd-cb .rd-ch-head { z-index: 6; color: #fbf7ee; }
.cb { position: absolute; inset: 0; overflow: hidden; background: #0b0b0a; }
.cb-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
/* the field is quiet where the lines are read */
.cb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 52% at 50% 50%, #0b0b0a 0%, rgba(11, 11, 10, .93) 46%, rgba(11, 11, 10, 0) 100%); }
/* the lines keep the chapter's type; rd/craft.js sets when they arrive */
.rd-cb.rd-ch--text .rd-ch-text { top: 50%; width: max-content; max-width: 90vw; transform: translate(-50%, -50%); color: #fbf7ee; font-size: clamp(34px, 4.3vw, 72px); line-height: 1.1; }
.rd-cb .rd-line { opacity: var(--cb-o, 0) !important; filter: var(--cb-fl, blur(10px)) !important; transform: translate3d(0, var(--cb-y, 22px), 0) !important; }
.rd-cb .rd-line--small { max-width: 44ch; color: rgba(244, 239, 230, .62); }
.rd-cb .rd-bridge-word { color: #fbf7ee; opacity: var(--cb-o, 0); filter: var(--cb-fl, blur(14px)); letter-spacing: var(--cb-s, -.05em); }
/* the word Experience draws, held over the dark between the two sections */
.cb-fix { position: fixed; z-index: 44; visibility: hidden; opacity: 0; pointer-events: none; overflow: visible; }
.cb-fix text { font-style: italic; font-weight: 400; font-size: 280px; letter-spacing: -.04em; fill: #fbf7ee; text-rendering: geometricPrecision; }
#experience #nvim-act .cb-twin { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 280px; letter-spacing: -.04em; fill: rgb(26, 24, 20); stroke: none; text-rendering: geometricPrecision; }
/* with the word already standing there, Experience's opening line sits under it as its caption */
@media (min-width: 881px) {
    .cb-link #experience #nvim-act .nvim-intro { justify-content: flex-end; padding-bottom: 12vh; }
    .cb-link #experience #nvim-act .nvim-intro-subtitle { font-size: clamp(18px, 1.7vw, 28px); max-width: none; color: rgba(26, 24, 20, .6); }
}
/* the way in */
.cb-bits { position: absolute; inset: 0; z-index: 60; display: grid; pointer-events: none; perspective: 900px; }
.cb-bits u { display: flex; align-items: center; justify-content: center; background: #faf9f0; color: transparent; text-decoration: none; font: 500 clamp(14px, 2vw, 30px)/1 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.cb-bits u.is-bit { background: #0f0f0d; color: #f4efe6; transform: rotateX(180deg) scaleY(-1); }
.cb-bits u.is-off { opacity: 0; transform: rotateX(270deg) scale(.6); }
@media (max-width: 760px) {
    .rd-ch.rd-cb { height: 400vh; }
    .rd-cb.rd-ch--text .rd-ch-text { top: 50%; bottom: auto; width: 90vw; font-size: clamp(28px, 8.4vw, 40px); }
    .rd-cb .rd-bridge-word { font-size: 13.5vw; }
    .cb::after { background: radial-gradient(ellipse 90% 40% at 50% 50%, #0b0b0a 0%, rgba(11, 11, 10, .9) 55%, rgba(11, 11, 10, 0) 100%); }
}

/* one word: where the act's own drawing cannot stand in (phones), the chapter's word takes its letters */
.rd-cb .rd-bridge-word { font-style: italic; text-transform: lowercase; }
/* the engineering act, shortened: no cream page, the word goes straight into the editor */
html #experience #nvim-act .track, html.nv-ide-live #experience #nvim-act .track { height: 420vh !important; }
#experience #nvim-act .nvim-intro, #experience #nvim-act .label, #experience #nvim-act .readout { display: none !important; }
