:root {
    color-scheme: dark;

    --black: #000000;
    --white: #f5f5f5;
    --gray: #898989;
    --gray-dark: #161616;
    --line: #242424;
    --purple: #835cff;
    --blue: #4b8dff;
    --page-width: 1440px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.events-site {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--black);
    color: var(--white);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.events-menu-open {
    overflow: hidden;
}

.events-site a {
    color: inherit;
    text-decoration: none;
}

.events-site img {
    display: block;
    max-width: 100%;
}

.events-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 88px;
    padding: 0 max(32px, calc((100vw - var(--page-width)) / 2));
    border-bottom: 1px solid transparent;
    background: var(--black);
    transition:
        height 200ms ease,
        border-color 200ms ease;
}

.events-header.is-scrolled {
    height: 70px;
    border-color: var(--line);
}

.events-brand {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 12px;
}

.events-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.events-brand > span {
    display: grid;
    line-height: 1;
}

.events-brand strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    letter-spacing: 0.16em;
}

.events-brand small {
    margin-top: 5px;
    color: #777;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.events-navigation {
    display: flex;
    align-items: center;
    gap: 38px;
}

.events-navigation a,
.events-studio-link {
    color: #999;
    font-size: 11px;
    font-weight: 600;
    transition: color 160ms ease;
}

.events-navigation a:hover,
.events-studio-link:hover {
    color: white;
}

.events-studio-link {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-studio-link iconify-icon {
    color: var(--purple);
    font-size: 17px;
}

.events-menu-button {
    display: none;
}

.events-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 150px 32px 55px;
}

.events-hero-label {
    display: flex;
    align-items: center;
    margin-bottom: 38px;
    color: #777;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    gap: 13px;
}

.events-hero-label span {
    width: 24px;
    height: 2px;
    background: var(--purple);
}

.events-hero-number {
    position: absolute;
    top: 145px;
    right: 32px;
    color: #292929;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
}

.events-hero h1 {
    max-width: 1250px;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(72px, 9.5vw, 150px);
    font-weight: 600;
    line-height: 0.84;
    letter-spacing: -0.078em;
}

.events-hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px #555;
    transition:
        color 350ms ease,
        -webkit-text-stroke-color 350ms ease;
}

.events-hero:hover h1 span {
    color: var(--purple);
    -webkit-text-stroke-color: var(--purple);
}

.events-hero-bottom {
    display: grid;
    grid-template-columns: minmax(280px, 560px) auto;
    align-items: end;
    justify-content: space-between;
    margin-top: 55px;
    gap: 50px;
}

.events-hero-bottom p {
    margin: 0;
    color: #8c8c8c;
    font-size: 15px;
    line-height: 1.75;
}

.events-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 210px;
    min-height: 58px;
    padding: 0 20px;
    background: var(--purple);
    font-size: 11px;
    font-weight: 700;
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.events-main-button:hover {
    transform: translateY(-3px);
    background: var(--blue);
}

.events-main-button iconify-icon {
    font-size: 18px;
}

.events-hero-line {
    height: 1px;
    margin-top: 60px;
    overflow: hidden;
    background: var(--line);
}

.events-hero-line span {
    display: block;
    width: 18%;
    height: 100%;
    background: var(--purple);
}

.events-hero-disciplines {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 20px;
}

.events-hero-disciplines span {
    color: #555;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.events-directory,
.events-process {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 150px 32px;
}

.events-section-title {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    margin-bottom: 75px;
}

.events-section-title > span {
    padding-top: 10px;
    color: var(--purple);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.events-section-title h2 {
    max-width: 830px;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(46px, 6vw, 86px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.events-portal-list {
    border-top: 1px solid var(--line);
}

.events-portal {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(250px, 0.75fr) 1fr 60px;
    align-items: center;
    min-height: 190px;
    border-bottom: 1px solid var(--line);
    transition:
        background-color 180ms ease,
        padding 180ms ease;
    gap: 30px;
}

.events-portal:hover {
    padding-right: 25px;
    padding-left: 25px;
    background: #080808;
}

.events-portal-number {
    color: #515151;
    font-size: 9px;
    font-weight: 700;
}

.events-portal h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 600;
    letter-spacing: -0.06em;
}

.events-portal p {
    max-width: 410px;
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.events-portal-arrow {
    justify-self: end;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #333;
    border-radius: 50%;
    color: var(--purple);
    font-size: 19px;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
}

.events-portal:nth-child(2) .events-portal-arrow {
    color: var(--blue);
}

.events-portal:hover .events-portal-arrow {
    border-color: var(--purple);
    background: var(--purple);
    color: white;
}

.events-portal:nth-child(2):hover .events-portal-arrow {
    border-color: var(--blue);
    background: var(--blue);
}

.events-statement {
    max-width: var(--page-width);
    margin: 40px auto;
    padding: 160px 32px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.events-statement p,
.events-statement strong {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(48px, 7.4vw, 110px);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.events-statement p {
    color: #555;
}

.events-statement strong {
    display: block;
    color: var(--purple);
}

.events-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.events-process-grid article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 410px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.events-process-grid article > span {
    color: var(--purple);
    font-size: 9px;
    font-weight: 700;
}

.events-process-grid article:nth-child(2) > span {
    color: var(--blue);
}

.events-process-grid h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 35px;
    font-weight: 600;
    letter-spacing: -0.05em;
}

.events-process-grid p {
    max-width: 300px;
    margin: 18px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.events-final {
    max-width: var(--page-width);
    margin: 80px auto 0;
    padding: 140px 32px;
    border-top: 1px solid var(--line);
}

.events-final-label {
    color: var(--purple);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.events-final h2 {
    margin: 40px 0 70px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(70px, 10vw, 150px);
    font-weight: 600;
    line-height: 0.82;
    letter-spacing: -0.08em;
}

.events-final h2 span {
    display: block;
    color: #555;
}

.events-final > div {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.events-final p {
    max-width: 430px;
    margin: 0;
    color: #777;
    line-height: 1.7;
}

.events-final a {
    display: flex;
    align-items: center;
    min-width: 230px;
    padding-bottom: 13px;
    border-bottom: 1px solid white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    gap: 50px;
}

.events-final a iconify-icon {
    color: var(--purple);
    font-size: 19px;
}

.events-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 140px;
    padding: 30px max(32px, calc((100vw - var(--page-width)) / 2));
    border-top: 1px solid var(--line);
    background: var(--black);
    gap: 35px;
}

.events-footer p {
    margin: 0;
    color: #555;
    font-size: 9px;
}

.events-footer nav {
    justify-self: end;
    display: flex;
    gap: 25px;
}

.events-footer nav a {
    color: #777;
    font-size: 10px;
}

.events-footer nav a:hover {
    color: white;
}

.events-js .events-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 700ms ease,
        transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.events-js .events-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

    .events-js .events-reveal {
        opacity: 1;
        transform: none;
    }
}


.events-portal:nth-child(4) .events-portal-arrow {
    color: #b597ff;
}

.events-portal:nth-child(4):hover .events-portal-arrow {
    border-color: #b597ff;
    background: #b597ff;
    color: white;
}


.events-studio-link iconify-icon,
.events-main-button iconify-icon,
.events-final a iconify-icon,
.events-portal-arrow {
    flex: 0 0 auto;
    vertical-align: middle;
}

.events-main-button iconify-icon,
.events-final a iconify-icon {
    width: 20px;
    height: 20px;
}

.events-portal-arrow {
    width: 46px;
    height: 46px;
    padding: 12px;
}
