/* Two sides (rd/sides.js): the flap layer over every picture, and the switch that turns the site over */
.s2 { position: relative; display: block; }
.rd-arch-rise .s2 { width: 100%; height: 100%; }
.rd-strip .s2 { flex: none; }
:is(#experience, #work, #gallery) .rd-strip .s2 img:hover { transform: none; }
.s2-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }

.s2-switch {
    position: fixed; z-index: 60; left: 156px; bottom: 30px;
    transform: translateY(16px);
    display: inline-flex; align-items: stretch; gap: 0; padding: 0;
    border: 1px solid rgba(242, 237, 228, .22); border-radius: 2px;
    background: #0b0b0a; color: #f2ede4;
    font: 500 10px/1 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: .16em; text-transform: uppercase;
    cursor: pointer; opacity: 0; pointer-events: none;
    transition: opacity .5s, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.s2-switch.is-on { opacity: 1; pointer-events: auto; transform: none; }
.s2-switch span { position: relative; padding: 11px 14px 10px; transition: background .35s, color .35s; }
.s2-switch span::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.s2-switch .s2-a { background: #f2ede4; color: #100f0e; }
.s2-switch[aria-pressed="true"] .s2-a { background: transparent; color: rgba(242, 237, 228, .5); }
.s2-switch[aria-pressed="true"] .s2-b { background: #f2ede4; color: #100f0e; }
.s2-switch:not([aria-pressed="true"]) .s2-b { color: rgba(242, 237, 228, .5); }
.s2-switch:focus-visible { outline: 2px solid #d65c39; outline-offset: 3px; }
@media (max-width: 760px) { .s2-switch { left: 16px; right: auto; bottom: 74px; } .s2-switch span { padding: 10px 11px 9px; } }
@media (prefers-reduced-motion: reduce) { .s2-switch { transition: none; } }
