:root {
    font-size: 20px;
    font-family: poppins, sans-serif
}

html {
    scroll-behavior: smooth
}

h1, h2, h3, h4 {
    font-family: bank, sans-serif;
    font-weight: normal;
    margin: 0
}

footer {
    margin-top: 8rem;
    font-size: .6rem
}

footer > div {
    padding: 1rem;
    display: flex
}

footer > div:first-child {
    position: relative;
    background-color: #222;
    border-top: 1px solid #333;
    height: 7rem;
    flex-direction: column
}

footer > div:last-child {
    background-color: #000;
    align-items: end;
    height: 8rem
}

footer > div:last-child > span {
    flex: 1 1 0
}

footer section {
    display: flex
}

footer section:first-child {
    gap: .5rem
}

footer section:first-child span {
    flex: 1 1 0;
    min-width: 0;
    padding-right: .5rem
}

footer form {
    border: 1px solid #333;
    border-radius: .5rem;
    overflow: hidden;
    display: inline-flex;
    max-width: 15rem;
    width: 100%
}

footer section:first-child a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    font-size: 1rem;
    border-radius: 50%;
    color: #fff;
    transition: transform .2s
}

footer section:first-child a:hover {
    transform: scale(1.1)
}

footer section:last-of-type {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 0 1rem
}

footer section:last-of-type i {
    padding-right: .5rem
}

footer button {
    border: none;
    background-color: #000;
    cursor: pointer;
    font: inherit;
    padding: .5rem 1rem;
    transition: background-color .2s;
    color: #fff
}

footer button:hover {
    background-color: #111
}

footer input {
    font: inherit;
    padding: .5rem 1rem;
    border: none;
    border-radius: 0;
    background-color: #111;
    border-right: 1px solid #333;
    flex: 1 1 0;
    min-width: 0
}

#foot {
    font-size: 1rem;
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translate(50%, 50%);
    background-color: #222;
    border-radius: 50%;
    padding: 1rem;
    font-family: bank;
    /* animation: thing 2s ease; */
}

#foot svg, #foot > div > div {
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%)
}

#foot svg {
    display: block;
    transition: transform 2s cubic-bezier(.4, 0, .2, 1);
    width: 100%;
    height: 100%
}

#foot > div > div {
    color: #f00;
    width: 7.5em;
    height: 7.5em;
    border-radius: 50%;
    overflow: hidden
}

#foot #cariad {
    font-size: 1.9em;
    transform: rotate(-150deg);
    transition: transform 1s .5s cubic-bezier(.4, 0, .2, 1);
    bottom: 1em
}

#foot #cariad, #foot #middle {
    position: absolute;
    right: 50%
}

#foot #cariad div {
    position: relative
}

#foot #cariad span {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    transform-origin: center bottom
}

#foot #middle {
    --base: 1.6em;
    font-size: 2.1em;
    transform: translateX(50%);
    bottom: .9em;
    white-space: nowrap
}

#foot #middle span {
    display: inline-block;
    transition: transform .5s cubic-bezier(.2, .5, .5, 1);
    transform: translateY(var(--base))
}

#foot #end {
    position: absolute;
    right: 50%;
    bottom: 4.1em;
    transform: translate(50%, 50%);
    color: #fff;
    font-size: 1em;
    opacity: 0;
    transition: opacity .5s 1.5s
}

/* 

 "-0.8199rad", "-0.4146rad", "-0.0515rad", "0.2120rad", "0.4745rad", "0.8499rad"*/

#foot #cariad span:first-child {
    transform: translateX(50%) rotate(-.8199rad) translateY(-1.5em)
}

#foot #cariad span:nth-child(2) {
    transform: translateX(50%) rotate(-.4146rad) translateY(-1.5em)
}

#foot #cariad span:nth-child(3) {
    transform: translateX(50%) rotate(-.0515rad) translateY(-1.5em)
}

#foot #cariad span:nth-child(4) {
    transform: translateX(50%) rotate(.212rad) translateY(-1.5em)
}

#foot #cariad span:nth-child(5) {
    transform: translateX(50%) rotate(.4745rad) translateY(-1.5em)
}

#foot #cariad span:last-child {
    transform: translateX(50%) rotate(.8499rad) translateY(-1.5em)
}

#foot #middle span:first-child {
    transition-delay: 1s
}

#foot #middle span:nth-child(2) {
    transition-delay: 1.1s
}

#foot #middle span:nth-child(3) {
    transition-delay: 1.2s
}

#foot #middle span:last-child {
    transition-delay: 1.3s
}

#foot > div {
    position: relative;
    background-color: #000;
    border-radius: 50%;
    width: 10em;
    height: 10em
}

/* #foot img {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    opacity: .2
} */

#foot.active #cariad {
    transform: rotate(0)
}

#foot.active #middle {
    --base: 0
}

#foot.active #end {
    opacity: 1
}

#foot.active svg {
    transform: translate(50%, 50%) rotate(180deg)
}

/* #foot img, #foot.switch svg {
    display: none
}

#foot.switch img {
    display: block
} */

#logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid #333;
    padding: .5rem;
    border-radius: .5rem;
    transition: background-color .2s, color .2s
}

#logo img {
    width: 2rem
}

#logo span {
    display: block;
    font-family: arial
}

#logo span:first-child {
    font-weight: bold;
    font-family: monospace;
    color: #888
}

#logo:hover {
    background-color: #111;
    color: #fff
}

#facebook {
    background-color: #17f
}

#instagram {
    background-color: #c49
}

#youtube {
    background-color: #f22
}

#tiktok {
    background-color: #000
}

#nav {
    position: sticky;
    height: 5rem;
    display: flex;
    padding: .5rem 1rem;
    gap: 2rem;
    top: 0;
    z-index: 1
}

#nav, #nav i + div {
    background-color: #000c;
    backdrop-filter: blur(5px);
    width: 100%;
    border-bottom: 1px solid #333
}

#nav > div:first-child {
    position: relative;
    display: none
}

#nav > div:first-child > a {
    flex: 1 1 0;
    font-family: bank, sans-serif;
    color: #f22;
    font-size: 1.5rem
}

#nav > div:first-child i {
    display: flex;
    align-items: center;
    color: #fff
}

#nav > div:last-child {
    display: contents
}

#nav i + div {
    position: absolute;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .2s;
    overflow: hidden;
    bottom: 0;
    left: 0;
    transform: translateY(100%)
}

#nav i + div > div {
    overflow: hidden;
    padding: 0 1rem
}

#nav i + div a {
    margin: 1rem 0
}

#nav .active + div {
    grid-template-rows: 1fr
}

#nav > div:last-child > div {
    flex: 1 1 0;
    display: flex;
    gap: 1rem
}

#nav > div:last-child > a {
    display: contents
}

#nav > div > div:first-child {
    justify-content: flex-end
}

#nav img {
    height: 100%;
    transition: transform .2s ease-out
}

#nav > div > div > a, #nav > div:first-child a {
    align-items: center;
    display: flex
}

#nav i {
    color: #888;
    transition: color .2s
}

#nav i:hover {
    color: #fff
}

#nav .link {
    background: linear-gradient(-90deg, #f22 50%, #fff 50%);
    background-clip: text;
    background-size: 200% auto;
    text-decoration: none;
    font-family: bank;
    transition: background-position .5s cubic-bezier(.1, .8, .2, 1);
    color: transparent
}

#nav .link:hover {
    background-position: -100% 0
}

#nav > a {
    display: contents
}

#nav a:hover img {
    transform: scale(1.1)
}

#page {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 4rem 0 2rem
}

#page > div > div {
    display: flex;
    gap: 1rem
}

#page h1 {
    font-size: 2rem
}

#page h1 + div {
    margin: 1rem 0
}

#page span {
    color: #fff;
    font-size: 1.5rem
}

#page span + span {
    text-decoration: line-through;
    color: #888
}

#page > div {
    flex: 1 1 20rem;
    min-width: 0
}

#page > div > img {
    height: 20rem;
    margin-bottom: .5rem
}

#page img {
    width: 100%;
    object-fit: cover;
    border-radius: .5rem;
    border: 1px solid #000;
    display: block
}

#page .scroll img {
    aspect-ratio: 1 / 1
}

#page button {
    border-radius: 8px;
    font: inherit;
    min-height: 50px;
    padding: 0 1rem;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #444;
    color: #fff;
    transition: background-color .2s, color .2s;
    flex: 0 0 auto
}

#page button:disabled {
    color: #888;
    cursor: not-allowed
}

#page button:not(:disabled):hover {
    color: #aaa;
    background-color: #555
}

#page .scroll img {
    transition: opacity .2s
}

#page .scroll img:hover {
    opacity: .6
}

.text {
    border: 1px solid #333;
    border-radius: .8rem;
    background-color: #222;
    color: #bbb
}

.strong {
    color: #f22;
    font-size: 2rem;
    margin: 4rem 0 0;
    text-decoration: underline
}

#small i {
    display: none
}

#search {
    background-color: #222;
    border-bottom: 1px solid #666;
    box-shadow: 0 10px 10px #0008
}

#query {
    padding: .5rem 1.5rem;
    border-radius: 1.5rem;
    font: 1rem poppins;
    border: none;
    width: 100%;
    outline: 4px solid #888;
    transition: outline-color .2s;
    background-color: #000;
    box-shadow: 0 0 10px #000;
    margin: 2rem 0
}

#grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    margin: 4rem 0;
    width: 100%;
    gap: 1rem
}

#grid + button {
    margin: 0 auto;
    display: block
}

/* #grid .product:hover {
    transform: scale(1.08)
} */

#query:focus {
    outline-color: #2af
}

#banner {
    height: 15rem;
    position: relative;
    border-bottom: 1px solid #000
}

#banner > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1
}

#banner h1 {
    font-size: 2.5rem;
    padding: 1rem 2rem;
    color: #fff;
    background-color: #000a;
    backdrop-filter: blur(3px);
    display: inline-block;
    border-bottom-right-radius: .8rem;
    border-bottom-left-radius: .8rem
}

#banner h1 img {
    height: 5rem
}

.slider {
    --size: 4
}

.scroll, .slider {
    position: relative
}

.slider > div {
    transform: translateX(-1rem);
    width: calc(100% + 2rem);
    padding: 2rem 0
}

.scroll > div, .slider > div {
    overflow: hidden
}

.slider > div > div {
    width: calc((100% - 1rem * var(--size) - 1rem) / var(--size));
    transform: translateX(1rem)
}

.scroll > div > div {
    width: calc((100% - 3rem) / 4)
}

.scroll > div > div, .slider > div > div {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 1rem
}

.scroll i, .slider i {
    font-size: 2rem;
    position: absolute;
    transform: translate(50%, 50%);
    bottom: 50%;
    color: #fff;
    opacity: .5;
    cursor: pointer;
    transition: opacity .2s
}

.scroll i:hover, .slider i:hover {
    opacity: 1
}

.fa-circle-chevron-left {
    right: 100%
}

.fa-circle-chevron-right {
    right: 0
}

.main {
    max-width: 72rem;
    margin: 0 auto;
    padding-right: 6rem;
    padding-left: 6rem
}

.button {
    display: inline-block;
    border: 2px solid #fff;
    border-radius: .3rem;
    padding: .5rem 1rem;
    background-color: transparent;
    font: inherit;
    color: #fff;
    transition: background-color .2s, border-color .2s, color .2s;
    cursor: pointer
}

.button:hover {
    background-color: #555;
    border-color: transparent;
    color: #fff
}

.video {
    display: grid;
    grid-template-columns: 1fr;
    perspective: 40rem
}

.video iframe {
    border: none;
    width: 100%;
    height: 100%
}

.video > div {
    backface-visibility: hidden;
    transition: transform .5s, border-color .2s, color .2s;
    grid-row-start: 1;
    grid-column-start: 1
}

.video > div:first-child {
    transform: rotateY(0deg);
    cursor: pointer;
    padding: 1rem
}

.video > div:last-child {
    transform: rotateY(-180deg);
    overflow: hidden
}

.video #active {
    transform: rotateY(180deg)
}

.video #active + div {
    transform: rotateY(0deg)
}

.video > div, .product {
    border-radius: .8rem;
    color: #fff;
    background-color: #000;
    border: 1px solid #888;
    min-width: 0
}

.product {
    display: block;
    padding: 1rem;
    text-decoration: none;
    transition: transform .2s, border-color .2s, color .2s
}

.product img {
    height: 100%
}

.product img, .video img {
    width: 100%;
    object-fit: cover
}

.product div:first-of-type, .video img {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    margin-bottom: .5rem;
    box-shadow: 0 0 5px #000
}

.product div:last-of-type, .video div div:last-child {
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    text-overflow: ellipsis;
    overflow: hidden
}

.product div span {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    padding: 0 .5rem;
    font-size: .8rem;
    background-color: #292;
    color: #fff;
    border-bottom-right-radius: .3rem
}

.product > span {
    font-family: bank;
    padding-top: .5rem;
    color: #f22
}

.product:hover {
    transform: scale(1.08)
}

.product:hover, .video:hover > div {
    border-color: #fff;
    color: #888
}

.spl-footer {
    display: none
}

@font-face {
    font-family: bank;
    src: url(bank.woff2), url(bank.woff)
}

@font-face {
    font-family: poppins;
    src: url(poppins.woff2), url(poppins.woff)
}

@keyframes fade {
    from {opacity: 0}
    to {opacity: 1}
}

@media screen and (max-width: 65rem) {
    :root {
        font-size: 16px
    }

    .main {
        padding-left: 4rem;
        padding-right: 4rem
    }

    .slider {
        --size: 3
    }

    #foot {
        font-size: .75rem
    }
}

@media screen and (max-width: 35rem) {
    :root {
        font-size: 14px
    }

    .main {
        padding-left: 2rem;
        padding-right: 2rem
    }

    .slider {
        --size: 2
    }

    #nav > div:first-child {
        display: contents
    }

    #nav > div:last-child {
        display: none
    }

    #foot {
        display: none
    }
}

/* * {
    outline: 1px solid #f00 !important
} */