/* document setup */

:root {
    --accent-red: 33;
    --accent-green: 150;
    --accent-blue: 243;
    --accent: rgb(var(--accent-red), var(--accent-green), var(--accent-blue));
    
    --google-sans: 'Google Sans', 'Roboto', 'Helvetica', system-ui, sans-serif;
    --roboto: 'Roboto', 'Helvetica', system-ui, sans-serif;
    
    --border-radius: 5px;
    --shadow-small: 2.4px 4.8px 4.8px rgba(0,0,0,0.35);
    --shadow-big: 7.2px 14.4px 14.4px rgba(0,0,0,0.25);
    --shadow-inset: inset 2.4px 4.8px 19.6px rgba(255,255,255,0.15);
    
    --bezier: cubic-bezier(0.4,0,0,1);
    --duration: 0.4s;
    --transition: all var(--duration) var(--bezier);
}

@media (prefers-reduced-motion) {
    body {
        --bezier: linear;
        --duration: 0s;
        --transition: all 0s linear;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        --bg-primary: #0A0A0A;
        --bg-secondary: #0C0C0D;
        --bg-tertiary: #0E0E0F;
        --bg-quaternary: #101012;
        --bg-quinary: #111214;
        --text-solid: rgb(255,255,255);
        --text-primary: rgba(255,255,255,0.9);
        --text-secondary: rgba(255,255,255,0.75);
        --text-tertiary: rgba(255,255,255,0.6);
        --text-quaternary: rgba(255,255,255,0.45);
    }
}

@media (prefers-color-scheme: light) {
    body {
        --bg-primary: #F0F2F5;
        --bg-secondary: #E6E9F0;
        --bg-tertiary: #DDE1EB;
        --bg-quaternary: #D3D9E5;
        --bg-quinary: #CAD1E0;
        --text-solid: #000;
        --text-primary: rgba(0,0,0,0.9);
        --text-secondary: rgba(0,0,0,0.75);
        --text-tertiary: rgba(0,0,0,0.6);
        --text-quaternary: rgba(0,0,0,0.45);
    }
}

* {
    box-sizing: border-box;
}

a:focus {
    outline: 2px solid var(--accent);
}

*:not(a):focus {
    outline: none !important;
}

::-webkit-scrollbar {
    width: 8px;
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--text-tertiary);
}

::selection {
    background: var(--accent);
    color: white;
}


/* animate */

.animate {
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.animate[axis='y'] {
    transform: translateY(30px);
}

.animate[axis='x'] {
    transform: translateX(-30px);
}

.animate.animated {
    opacity: 1;
    pointer-events: all;
    transform: translate(0px);
    transition: var(--transition);
}

@keyframes horizontalArrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0px);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(2px);
    }
}

@keyframes verticalArrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0px);
    }
    40% {
        transform: translateY(5px);
    }
    60% {
        transform: translateY(2px);
    }
}


/* main elements */

body {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    margin: 0px;
    color: var(--text-secondary);
    font-family: var(--google-sans);
    background: var(--bg-secondary);
}

.mdc-ripple-surface::before, .mdc-ripple-surface::after {
    background: var(--text-quaternary) !important;
    transition: opacity var(--duration) var(--bezier) !important;
}

h1, h2, h3, p {
    margin: 0px;
    line-height: 1.1;
}

h1 {
    font-size: 36px;
    font-weight: 500;
    color: var(--text-primary);
}

h2 {
    font-size: 20px;
    font-weight: 500;
}

h3 {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--roboto);
    color: var(--text-tertiary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

p {
    font-size: 16px;
    font-weight: 400;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
}

svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

path {
    transition: fill var(--duration) var(--bezier);
}

button {
    background: transparent;
    border: none;
    outline: none;
    padding: 0px;
}

.button {
    min-width: 64px;
    height: 36px;
    line-height: 36px;
    padding: 0px 18px;
    border: none;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 14px;
    user-select: none;
    cursor: pointer;
}

.button svg {
    margin: -2px -6px 0px 0px;
}

.button path {
    transition: fill var(--duration) var(--bezier);
}

.button.cta {
    background: transparent;
    color: var(--text-tertiary);
    display: block;
    font-family: var(--roboto);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    box-shadow: none;
    transition: color var(--duration) var(--bezier);
}

.button.cta:hover, .button.cta:focus {
    color: var(--text-primary);
}

.button.cta path {
    fill: var(--text-secondary);
}

.button.cta:hover path, .button.cta:focus path {
    fill: var(--text-primary);
}

.button.accented {
    background: var(--accent);
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--google-sans);
    display: inline-block;
    box-shadow: var(--shadow-small);
    transition: color var(--duration) var(--bezier), transform var(--duration) var(--bezier), box-shadow var(--duration) var(--bezier);
}

.button.accented:hover, .button.accented:focus {
    color: var(--text-solid);
    transform: translateY(-3px);
    box-shadow: var(--shadow-big);
}

.button.accented path {
    fill: var(--text-primary);
    transition: fill var(--duration) var(--bezier);
}

.button.accented:hover path, .button.accented:focus path {
    fill: var(--text-secondary);
}

.load {
    width: 0px;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    position: absolute;
    z-index: 98;
    top: 164px;
    left: calc(100% / 2);
    pointer-events: none;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
}

.load.loading {
    width: 280px;
    opacity: 1;
    left: calc((100% - 280px) / 2);
}

.mdc-linear-progress__buffer {
    background: var(--bg-tertiary);
}

.mdc-linear-progress__bar-inner {
    background: var(--accent);
}

.scroll {
    width: 36px;
    height: 36px;
    padding: 6px 0px;
    user-select: none;
    cursor: pointer;
    border: 2px solid var(--text-secondary);
    border-radius: 18px;
    position: fixed;
    z-index: 97;
    right: 24px;
    bottom: 24px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: var(--transition);
}

.scroll svg {
    vertical-align: middle;
    margin: 4px;
    margin-top: -2px;
    animation: verticalArrowBounce 2s infinite;
}

.scroll path {
    fill: var(--text-secondary);
    transition: fill var(--duration) var(--bezier);
}

.scroll:hover, .scroll:focus {
    color: var(--text-solid);
}

.scroll:hover path, .scroll:focus path {
    fill: var(--text-solid);
}

.scroll.scrolled, .scroll:focus {
    opacity: 1;
    pointer-events: all;
}

.content {
    width: 100%;
    height: 100vh;
    position: relative;
    opacity: 1;
    transform: translateX(0px);
    pointer-events: all;
    transition: opacity var(--duration) var(--bezier), transform var(--duration) var(--bezier);
}

.content.active {
    opacity: 0.6;
    transform: translateX(150px);
}

.content.active * {
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1380px;
    height: auto;
    min-height: 48px;
    padding: 0px 40px;
    margin: 0px auto;
}

.header {
    width: 100%;
    height: 500px;
    background: var(--bg-primary);
    position: relative;
}

.header::before {
    content: '';
    width: 55%;
    height: 100%;
    position: absolute;
    left: -5%;
    top: 0px;
    bottom: 0px;
    background: linear-gradient(135deg, var(--accent), #5b247a);
    transform: skewX(15deg);
}

.header::after {
    content: '';
    width: 20%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0px;
    bottom: 0px;
    background: linear-gradient(135deg, var(--bg-quinary), var(--bg-primary));
    transform: skewX(15deg);
}

.header .container {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.header h1 {
    font-size: 48px;
    color: var(--text-primary);
}

.header h1 span {
    color: var(--text-tertiary);
}

section, footer {
    --tan: 0.0524077; /* tan(3deg), no browser support yet >:(  https://caniuse.com/mdn-css_types_tan */
    width: 100%;
    height: auto;
    min-height: 128px;
    padding-top: 40px;
    padding-bottom: 80px;
    margin: 100px 0px;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

section:nth-child(even), section:nth-child(odd) + footer {
    margin: 0px;
    z-index: 2;
    background: var(--bg-secondary);
}

section::before, section::after, footer::before {
    content: '';
    width: 100%;
    height: 0px;
    padding-bottom: calc(100% * var(--tan));
    background: inherit;
    position: absolute;
    z-index: -1;
    transform: skewY(3deg);
    left: 0px;
    right: 0px;
}

section::before, footer::before {
    top: 0px;
    margin-top: calc(100% * (var(--tan) * -1));
    transform-origin: left;
}

section::after {
    bottom: 0px;
    margin-bottom: calc(100% * calc(var(--tan) * -1));
    transform-origin: right;
}

footer {
    padding-bottom: 120px;
}

footer h1 {
    margin-bottom: 16px;
}

.grid {
    --col: 1;
    width: 100%;
    height: auto;
    min-height: 48px;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(var(--col), 1fr);
}

header:has(+ .grid) {
    width: 100%;
    height: 36px;
    line-height: 36px;
    margin-bottom: 16px;
    color: var(--text-tertiary);
}

header:has(+ .grid):has(.button) {
    display: grid;
    grid-template-columns: auto 160px;
}

.grid:has(>:nth-child(2):is(:last-child)) {
    --col: 2;
}

.grid:has(>:nth-child(3n):is(:last-child)) {
    --col: 3;
}

.grid:has(>:nth-child(4n):is(:last-child)) {
    --col: 4;
}

.card {
    width: 100%;
    height: auto;
    min-height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    overflow: hidden;
    transform: translateY(0px);
    transition: var(--transition);
}

.card:hover, a.card:focus {
    box-shadow: var(--shadow-big);
    transform: translateY(-3px);
}

section:nth-child(even) .card {
    background: var(--bg-tertiary);
}

.video {
    width: 100%;
    height: 0px;
    padding-bottom: 56.25%;
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    box-shadow: var(--shadow-small);
    user-select: none;
    cursor: pointer;
    display: block;
    position: relative;
    transform: translateY(0px);
    overflow: hidden;
    transition: var(--transition);
}

.video:hover, .video:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-big);
}

.video div {
    opacity: 1;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity var(--duration) var(--bezier);
}

.video:hover div, .video:focus div {
    opacity: 0.9
}

@media screen and (max-width: 1380px) {
    .header .container {
        padding-left: 80px;
    }
}

@media screen and (max-width: 960px) {
    .header::before {
        width: 75%;
        left: -10%;
    }
    
    .header::after {
        width: 35%;
        left: 55%;
    }
    
    .grid:has(>:nth-child(2):is(:last-child)) {
        --col: 1;
    }

    .grid:has(>:nth-child(3n):is(:last-child)) {
        --col: 2;
    }

    .grid:has(>:nth-child(4n):is(:last-child)) {
        --col: 3;
    }
}

@media screen and (max-width: 640px) {
    .container {
        padding: 0px 20px;
    }
    
    .header::before {
        width: 75%;
        left: -15%;
    }
    
    .header::after {
        width: 35%;
        left: 60%;
    }
    
    .grid {
        --col: 1 !important;
    }
}