

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("./fonts/archivo-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F;
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("./fonts/archivo-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0;
}

#global-loader {
    position: fixed;
    inset: 0;
    z-index: 50000;
}

.sl-load-screen {
    position: fixed;
    inset: 0;
    background: #f3f2f2;
    box-sizing: border-box;
    padding: 48px 56px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    font-family: "Archivo", "SF Pro Display Regular", system-ui, sans-serif;
    color: #201e1d;
    overflow: hidden;
}
.sl-load-screen *, .sl-load-screen *::before, .sl-load-screen *::after {
    box-sizing: border-box;
}

.sl-main {
    display: flex;
    gap: 64px;
    align-items: flex-start;
    flex-wrap: wrap;
    flex: 1;
    min-height: 0;
}

.sl-rig {
    display: flex;
    gap: 40px;
    transform-origin: top left;
}


.sl-floors {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 600;
    padding: 4px 0;
    height: 480px;
    margin-top: 64px;
}


.sl-machine {
    width: 194px;
    height: 64px;
    position: relative;
    border-bottom: 2px solid #201e1d;
}
.sl-sheave {
    position: absolute;
    border: 2px solid #201e1d;
    border-radius: 50%;
    animation: kf-sheave 5s ease-in-out infinite;
}
.sl-sheave-big { left: 52px; top: 16px; width: 44px; height: 44px; }
.sl-sheave-small { left: 156px; top: 34px; width: 28px; height: 28px; }
.sl-sheave-v {
    position: absolute;
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 2px;
    margin-left: -1px;
    background: #201e1d;
}
.sl-sheave-small .sl-sheave-v { top: 2px; bottom: 2px; }
.sl-sheave-h {
    position: absolute;
    top: 50%;
    left: 3px;
    right: 3px;
    height: 2px;
    margin-top: -1px;
    background: #201e1d;
}


.sl-shaft-row { display: flex; }
.sl-shaft {
    width: 144px;
    height: 480px;
    border-left: 2px solid #201e1d;
    border-right: 2px solid #201e1d;
    position: relative;
    background-image: repeating-linear-gradient(to bottom,
        transparent 0, transparent 118px,
        rgba(32, 30, 29, 0.25) 118px, rgba(32, 30, 29, 0.25) 120px);
}
.sl-rope-cab {
    position: absolute;
    left: 71px;
    top: 0;
    width: 2px;
    background: #201e1d;
    animation: kf-rope-cab 5s ease-in-out infinite;
}
.sl-cab {
    position: absolute;
    left: 17px;
    bottom: 0;
    width: 108px;
    height: 128px;
    animation: kf-cab 5s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}
.sl-cab-top { height: 8px; background: #201e1d; margin: 0 12px; }
.sl-cab-body {
    flex: 1;
    background: #ec3013;
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sl-cab-lamp { height: 6px; background: #fff; opacity: 0.9; }
.sl-cab-doorway { flex: 1; background: #201e1d; position: relative; overflow: hidden; }
.sl-door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #f3f2f2;
}
.sl-door-l { left: 0; border-right: 2px solid #201e1d; animation: kf-cabdoor-l 5s ease-in-out infinite; }
.sl-door-r { right: 0; border-left: 2px solid #201e1d; animation: kf-cabdoor-r 5s ease-in-out infinite; }


.sl-cw-shaft {
    width: 44px;
    height: 480px;
    border-right: 2px solid #201e1d;
    position: relative;
}
.sl-rope-cw {
    position: absolute;
    left: 21px;
    top: 0;
    width: 2px;
    background: #201e1d;
    animation: kf-rope-cw 5s ease-in-out infinite;
}
.sl-cw {
    position: absolute;
    left: 10px;
    top: 0;
    width: 24px;
    height: 96px;
    background: #201e1d;
    background-image: repeating-linear-gradient(to bottom,
        transparent 0, transparent 14px,
        rgba(243, 242, 242, 0.5) 14px, rgba(243, 242, 242, 0.5) 16px);
    animation: kf-cw 5s ease-in-out infinite;
}


.sl-title-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;
    flex: 1;
    min-width: 280px;
}
.sl-title-rule { width: 100%; height: 2px; background: #201e1d; }
.sl-title { font-weight: 800; font-size: 64px; line-height: 1.02; }
.sl-sub { font-size: 20px; color: #6b6866; }


.sl-footer {
    border-top: 2px solid #201e1d;
    padding-top: 20px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 24px;
    font-weight: 600;
}
.sl-dots {
    display: inline-flex;
    gap: 4px;
    color: #ec3013;
    font-weight: 700;
}
.sl-dots span { animation: kf-dot 1.2s infinite; }
.sl-dots span:nth-child(2) { animation-delay: 0.2s; }
.sl-dots span:nth-child(3) { animation-delay: 0.4s; }


@media (max-height: 760px), (max-width: 720px) {
    .sl-rig { transform: scale(0.68); }
    .sl-main { gap: 8px; }
    .sl-title { font-size: 44px; }
    .sl-load-screen { padding: 28px 32px 24px; }
}
@media (max-width: 480px) {
    .sl-rig { transform: scale(0.5); }
    .sl-title-block { display: none; }
}

@keyframes kf-sheave {
    0% { transform: rotate(0deg); }
    38% { transform: rotate(360deg); }
    62% { transform: rotate(360deg); }
    100% { transform: rotate(720deg); }
}
@keyframes kf-rope-cab {
    0% { height: 352px; }
    38% { height: 0px; }
    62% { height: 0px; }
    100% { height: 352px; }
}
@keyframes kf-cab {
    0% { transform: translateY(0); }
    38% { transform: translateY(-352px); }
    62% { transform: translateY(-352px); }
    100% { transform: translateY(0); }
}
@keyframes kf-cabdoor-l {
    0%, 40% { transform: translateX(0); }
    47%, 53% { transform: translateX(-96%); }
    60%, 100% { transform: translateX(0); }
}
@keyframes kf-cabdoor-r {
    0%, 40% { transform: translateX(0); }
    47%, 53% { transform: translateX(96%); }
    60%, 100% { transform: translateX(0); }
}
@keyframes kf-rope-cw {
    0% { height: 0px; }
    38% { height: 384px; }
    62% { height: 384px; }
    100% { height: 0px; }
}
@keyframes kf-cw {
    0% { transform: translateY(0); }
    38% { transform: translateY(384px); }
    62% { transform: translateY(384px); }
    100% { transform: translateY(0); }
}
@keyframes kf-dot {
    0%, 60%, 100% { opacity: 0.15; }
    30% { opacity: 1; }
}
