@font-face {
    font-family: 'Experiment15';
    src: url('LomVF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    cursor: none;
}

:root {
    --ink: #f0ede6;
    --paper: #0d0d0b;
    --sub: #555550;
    --rule: rgba(240, 237, 230, .07);
    --f: 'Roboto Flex', 'Helvetica Neue', sans-serif;
    --ef: 'Experiment15', sans-serif;
}

#pg {
    font-family: var(--f);
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .5s, color .5s;
}

#pg.light {
    --ink: #0a0a0a;
    --paper: #f9f9f7;
    --sub: #9a9a96;
    --rule: rgba(10, 10, 10, .08);
}

.cur-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: .4;
    transition: width .2s, height .2s, opacity .2s;
}

.cur-ring.hov {
    width: 50px;
    height: 50px;
    opacity: .65;
}

.cur-dot {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    opacity: .75;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 56px;
    background: color-mix(in srgb, var(--paper) 40%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: .5px solid var(--rule);
}

.logo-svg {
    width: 36px;
    height: auto;
    display: block;
}

.logo-svg path,
.logo-svg circle {
    fill: var(--sub);
    transition: fill .3s;
}

.dmb {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    background: none;
    border: .5px solid var(--rule);
    color: var(--sub);
    padding: 6px 14px;
    cursor: none;
    transition: all .25s;
    border-radius: 99px;
    line-height: 1;
}

.dmb:hover {
    color: var(--ink);
    border-color: var(--ink);
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: .5px solid var(--rule);
    padding-top: 60px;
}

.h-eye {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--sub);
    margin-bottom: 52px;
}

#hs {
    font-family: var(--ef);
    font-size: clamp(72px, 13vw, 148px);
    line-height: 1;
    letter-spacing: -.01em;
    text-align: center;
    padding: 0 48px;
    user-select: none;
    font-variation-settings: 'wght' 400, 'wdth' 0;
    display: inline-block;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.h-cap {
    position: absolute;
    bottom: 40px;
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sub);
}

/* TYPEFACE TEST */
#sandbox {
    border-bottom: .5px solid var(--rule);
}

.sb-header {
    padding: 80px 80px 48px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.sec-t {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--sub);
}

.sb-prev-wrap {
    padding: 56px 80px;
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
}

.sb-prev {
    font-family: var(--ef);
    font-size: 88px;
    line-height: 1.05;
    letter-spacing: -.01em;
    display: inline-block;
    white-space: nowrap;
    font-variation-settings: 'wght' 400, 'wdth' 0;
    transition: font-variation-settings .12s ease-out, font-size .15s;
}

.sb-input-wrap {
    padding: 0 80px;
    border-top: .5px solid var(--rule);
    border-bottom: .5px solid var(--rule);
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    display: block;
}

#sb-in {
    width: 100%;
    font-family: var(--ef);
    font-size: clamp(22px, 3.5vw, 38px);
    letter-spacing: -.01em;
    background: none;
    border: none;
    color: var(--ink);
    padding: 14px 0;
    outline: none;
    caret-color: var(--ink);
    cursor: none;
}

#sb-in::placeholder {
    color: var(--sub);
}

.sb-ctrl-wrap {
    padding: 40px 80px 80px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.sb-ctrl {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.sb-am {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-bottom: 12px;
    gap: 12px;
}

.sb-an {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sub);
}

.sb-av {
    font-family: var(--f);
    font-size: 12px;
    color: var(--ink);
    font-weight: 500;
    text-align: right;
}

.sw {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

.st2 {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: .5px;
    background: var(--ink);
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .4;
}

.sl {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.sll {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sub);
}

input[type=range].vs {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    cursor: none;
    position: relative;
    z-index: 1;
    height: 20px;
}

input[type=range].vs::-webkit-slider-track {
    height: 0;
    background: transparent;
}

input[type=range].vs::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink);
    cursor: none;
    transition: transform .15s ease;
}

input[type=range].vs:hover::-webkit-slider-thumb {
    transform: scale(1.5);
}

/* GLYPHS */
#glyphs {
    padding: 80px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    border-bottom: .5px solid var(--rule);
}

.glyph-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.glyph-tabs {
    display: flex;
    gap: 4px;
}

.gtab {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: none;
    border: .5px solid var(--rule);
    color: var(--sub);
    padding: 7px 18px;
    cursor: none;
    transition: all .22s;
    border-radius: 99px;
    line-height: 1;
}

.gtab:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.gtab.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.glyph-grid {
    display: flex;
    flex-wrap: wrap;
}

.gc {
    font-family: var(--ef);
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.15;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    width: calc(100%/7);
    border-right: .5px solid var(--rule);
    border-bottom: .5px solid var(--rule);
    transition: font-variation-settings .45s cubic-bezier(.4, 0, .2, 1), background .18s, color .18s;
    cursor: none;
    user-select: none;
}

.gc:nth-child(7n) {
    border-right: none;
}

.gc:hover {
    background: var(--ink);
    color: var(--paper);
}

/* PRESET STYLES */
.sp {
    padding: 80px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    border-bottom: .5px solid var(--rule);
}

.preset-group-label {
    font-family: var(--f);
    font-size: 9px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--sub);
    margin: 0 0 20px;
    opacity: .7;
}

.preset-group-label:not(:first-child) {
    margin-top: 56px;
}

.sr {
    border-bottom: .5px solid var(--rule);
    padding: 22px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 36px;
}

.sr-wname {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sub);
    white-space: nowrap;
    min-width: 72px;
}

.stx {
    font-family: var(--ef);
    font-size: clamp(18px, 3.2vw, 38px);
    letter-spacing: -.01em;
    line-height: 1.35;
    transition: font-variation-settings .5s cubic-bezier(.4, 0, .2, 1);
}

/* MODAL */
.gm-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
    transition: background .35s ease;
}

.gm-overlay.open {
    pointer-events: all;
    cursor: none;
}

#pg:not(.light) .gm-overlay.open {
    background: rgba(0, 0, 0, .94);
}

#pg.light .gm-overlay.open {
    background: rgba(255, 255, 255, .80);
}

.gm-card-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50vw;
    max-width: 520px;
    min-height: 480px;
}

.gm-glyph {
    position: absolute;
    font-family: var(--ef);
    font-size: clamp(240px, 36vw, 460px);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    letter-spacing: -.01em;
    width: 100%;
    text-align: center;
    transition: opacity .3s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
}

.gm-glyph.active {
    opacity: 1;
    transform: scale(1);
}

.gm-glyph.enter {
    opacity: 0;
    transform: scale(.9);
}

.gm-glyph.exit {
    opacity: 0;
    transform: scale(1.08);
}

#pg:not(.light) .gm-glyph {
    color: #f0ede6;
}

#pg.light .gm-glyph {
    color: #0a0a0a;
}

.gm-counter {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f);
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .3s .15s;
    white-space: nowrap;
    pointer-events: none;
}

#pg:not(.light) .gm-counter {
    color: rgba(240, 237, 230, .25);
}

#pg.light .gm-counter {
    color: rgba(10, 10, 10, .35);
}

.gm-overlay.open .gm-counter {
    opacity: 1;
}

.gm-switcher {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .3s .15s;
    pointer-events: none;
}

.gm-overlay.open .gm-switcher {
    opacity: 1;
    pointer-events: all;
}

.gm-stab {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: none;
    border: .5px solid rgba(240, 237, 230, .2);
    color: rgba(240, 237, 230, .45);
    padding: 7px 16px;
    cursor: none;
    transition: all .22s;
    border-radius: 99px;
    line-height: 1;
}

#pg.light .gm-stab {
    border-color: rgba(10, 10, 10, .18);
    color: rgba(10, 10, 10, .45);
}

.gm-stab:hover {
    color: rgba(240, 237, 230, .85);
    border-color: rgba(240, 237, 230, .5);
}

#pg.light .gm-stab:hover {
    color: rgba(10, 10, 10, .8);
    border-color: rgba(10, 10, 10, .45);
}

.gm-stab.active {
    background: rgba(240, 237, 230, .18);
    color: #f0ede6;
    border-color: rgba(240, 237, 230, .4);
}

#pg.light .gm-stab.active {
    background: rgba(10, 10, 10, .1);
    color: #0a0a0a;
    border-color: rgba(10, 10, 10, .35);
}

.gm-style-label {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f);
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s .2s;
    pointer-events: none;
}

#pg:not(.light) .gm-style-label {
    color: rgba(240, 237, 230, .22);
}

#pg.light .gm-style-label {
    color: rgba(10, 10, 10, .3);
}

.gm-overlay.open .gm-style-label {
    opacity: 1;
}

.gm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: none;
    padding: 24px;
    opacity: 0;
    transition: opacity .3s .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gm-overlay.open .gm-arrow {
    opacity: 1;
}

#pg:not(.light) .gm-arrow {
    color: rgba(240, 237, 230, .28);
}

#pg.light .gm-arrow {
    color: rgba(10, 10, 10, .28);
}

.gm-arrow:hover {
    opacity: 1;
    color: var(--ink) !important;
}

#pg.light .gm-arrow:hover {
    color: #0a0a0a !important;
}

.gm-arrow-prev {
    left: 32px;
}

.gm-arrow-next {
    right: 32px;
}

.gm-arrow svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

footer {
    border-top: .5px solid var(--rule);
    padding: 32px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ft {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--sub);
}