.bf-bar,.bf-head {
    display: none;
}

.bf-on {
    --bf-y: #ffe500;
    --bf-on-y: #07070a;
}

/* the strip, above the site header */

.bf-on .bf-bar {
    display: block;
    background: #000;
    color: #fff;
    border-bottom: 2px solid var(--bf-y);
}

.bf-on .bf-bar-in {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1180px;
    margin: auto;
    padding: 0 20px;
    height: 48px;
}

.bf-on .bf-marq {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
    mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
}

.bf-on .bf-marq-t {
    display: flex;
    width: max-content;
    animation: bf-marq 26s linear infinite;
}

.bf-on .bf-marq-t>span {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-inline-end: 26px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
}

.bf-on .bf-marq-t em {
    font-style: normal;
    color: var(--bf-y);
}

.bf-on .bf-marq-t i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bf-y);
    flex: none;
}

.bf-on .bf-cta {
    display: none;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    background: var(--bf-y);
    border-radius: 999px;
    padding: 5px 14px;
    white-space: nowrap;
    transition: transform .2s;
}

.bf-on .bf-cta:hover {
    transform: translateY(-1px);
}

@media(min-width:900px) {
    .bf-on .bf-cta {
        display: inline-flex;
    }
}

@media(max-width:620px) {
    .bf-on .bf-bar-in {
        height: auto;
        padding-block: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .bf-on .bf-marq {
        flex: 1 0 100%;
        order: -1;
    }
}

/* the frame around the masterclasses: black in both themes, like the terminal panel */

.bf-on .bf-frame {
    border: 2px solid var(--bf-y);
    border-radius: 20px;
    background: #09090c;
    overflow: hidden;
}

.bf-on .bf-head {
    color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    padding: 20px clamp(16px,2.2vw,26px);
    border-bottom: 1px dashed rgba(255,229,0,.32);
}

.bf-on .bf-body {
    padding: clamp(14px,2vw,22px);
}

.bf-on .bf-word {
    display: flex;
    align-items: center;
    font-size: clamp(24px,3.6vw,42px);
    font-weight: 900;
    line-height: 1.1;
    direction: ltr;
    unicode-bidi: isolate;
}

.bf-on .bf-word em {
    font-style: normal;
    color: var(--bf-y);
}

.bf-on .fs-home .bf-frame :is(.btn-p, .off, .go) {
    background: var(--bf-y);
    color: var(--bf-on-y);
}

.bf-on .fs-home .bf-frame .btn-p {
    box-shadow: 0 10px 30px -12px rgba(255, 229, 0, .55);
}

.bf-on .fs-home .bf-frame .btn-p:hover {
    box-shadow: 0 14px 34px -10px rgba(255, 229, 0, .65);
}

.bf-on .fs-home .bf-frame .go {
    border-radius: 999px;
    padding: 2px 9px;
}

/* the clock: one slot per digit, so nothing moves when a number changes */

.bf-clk {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    direction: ltr;
    unicode-bidi: isolate;
}

.bf-clk .u {
    display: grid;
    justify-items: center;
    min-width: 64px;
    padding: 6px 9px 6px;
    border-radius: 12px;
    line-height: 1.1;
    background: #15151b;
    border: 1px solid #26262f;
    color: #fff;
}

.bf-clk .u:last-of-type {
    border-color: var(--bf-y);
}

.bf-clk .u:last-of-type b {
    color: var(--bf-y);
}

/* the slot has to be taller and wider than the glyph: Peyda's Persian digits overflow a 1.1
   line box and a .62em slot, and the slot clips (it has to, for the roll) */

.bf-clk .u b {
    display: flex;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.42;
}

.bf-clk .u i {
    position: relative;
    display: block;
    width: .76em;
    height: 1.42em;
    overflow: hidden;
    font-style: normal;
    text-align: center;
}

.bf-clk .u i span {
    display: block;
    line-height: 1.42;
}

.bf-clk .u i span.is-leaving {
    position: absolute;
    inset: 0;
}

.bf-clk .u small {
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
}

.bf-clk .sep {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    translate: 0 -8px;
    opacity: .9;
    animation: bf-blink 1s steps(1,end) infinite;
}

.bf-clk.sm .u {
    min-width: 38px;
    padding: 2px 5px 3px;
    border-radius: 7px;
}

.bf-clk.sm .u b {
    font-size: 15px;
}

.bf-clk.sm .u small {
    font-size: 9px;
}

.bf-clk.sm .sep {
    font-size: 14px;
    translate: 0 -5px;
}

@media(max-width:600px) {
    .bf-clk .u {
        min-width: 52px;
        padding: 5px 7px;
    }
    .bf-clk .u b {
        font-size: 22px;
    }
}

@keyframes bf-marq {
    to {
        transform: translateX(50%);
    }
}

@keyframes bf-blink {
    50% {
        opacity: .25;
    }
}

.bf-cta-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

@media(max-width:359px) {
    .bf-clk:not(.sm) .u {
        min-width: 44px;
        padding-inline: 5px;
    }
    .bf-clk:not(.sm) .sep {
        font-size: 15px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .bf-on .bf-marq-t,.bf-clk .sep {
        animation: none;
    }
    .bf-on .bf-cta {
        transition: none;
    }
}
