/* =========================================================
   PRESENTATION NAV
   ========================================================= */

.presentation-nav {
    position: fixed;
    z-index: 100;

    top: 18px;
    left: 50%;
    transform: translateX(-50%);

    width: min(600px, calc(100vw - 40px));
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 6px 7px 6px 16px;

    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;

    background: rgba(7, 11, 15, .48);

    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .04);

    transition:
         opacity .35s var(--ease),
    background .55s var(--ease),
    border-color .45s var(--ease),
    box-shadow .55s var(--ease);
}

.presentation-nav:hover {
    border-color: rgba(255, 255, 255, .20);

    box-shadow:
        0 12px 42px rgba(0, 0, 0, .18),
        0 0 0 1px rgba(0, 141, 213, .05),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

.presentation-nav__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.presentation-nav__logo img {
    display: block;
    width: auto;
    height: 28px;
}

.presentation-nav__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* =========================================================
   THEME TOGGLE
   ========================================================= */

.theme-toggle {
    width: 56px;
    height: 32px;

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: transparent;

    cursor: pointer;

    transition:
        transform .25s var(--ease);
}

.theme-toggle:hover .theme-toggle__track {
    border-color: rgba(0, 141, 213, .45);
}

.theme-toggle:active {
    transform: scale(.94);
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.menu-close:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
}

.theme-toggle__track {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6px;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;

    background: rgba(255, 255, 255, .055);

    color: rgba(255, 255, 255, .72);

    overflow: hidden;

    transition:
        background .45s var(--ease),
        border-color .45s var(--ease),
        color .45s var(--ease);
}

.theme-toggle__thumb {
    position: absolute;
    z-index: 1;

    top: 3px;
    left: 3px;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: #f4f6f8;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, .24),
        0 0 0 1px rgba(255, 255, 255, .04);

    transition:
        left .45s var(--ease),
        background .45s var(--ease),
        box-shadow .45s var(--ease),
        transform .35s var(--ease);
}

.theme-toggle__icon {
    position: relative;
    z-index: 2;

    width: 14px;
    height: 14px;

    display: grid;
    place-items: center;

    color: currentColor;

    transition:
        transform .55s var(--ease),
        opacity .45s var(--ease),
        color .45s var(--ease);
}

.theme-toggle__icon svg {
    width: 12px;
    height: 12px;

    stroke-width: 1.7;

    transition:
        transform .55s var(--ease),
        opacity .45s var(--ease);
}

/* DARK */

html[data-theme="dark"] .theme-toggle__icon--sun {
    opacity: .38;
    transform: rotate(-18deg) scale(.88);
}

html[data-theme="dark"] .theme-toggle__icon--moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* LIGHT */

html[data-theme="light"] .theme-toggle__thumb {
    left: calc(100% - 27px);
    background: #11151a;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, .14),
        0 0 0 1px rgba(17, 21, 26, .04);
}

html[data-theme="light"] .theme-toggle__icon--sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

html[data-theme="light"] .theme-toggle__icon--moon {
    opacity: .38;
    transform: rotate(18deg) scale(.88);
}

html[data-theme="light"] .presentation-nav {
    background: rgba(255, 255, 255, .72);

    border-color: rgba(17, 21, 26, .11);

    box-shadow:
        0 10px 40px rgba(17, 21, 26, .08),
        inset 0 1px 0 rgba(255, 255, 255, .75);
}

html[data-theme="light"] .theme-toggle__track {
    border-color: rgba(17, 21, 26, .13);
    background: rgba(17, 21, 26, .055);
    color: rgba(17, 21, 26, .68);
}


/* =========================================================
   PREMIUM BURGER
   ========================================================= */

.menu-toggle {
    position: relative;

    width: 40px;
    height: 40px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;

    background: rgba(255, 255, 255, .035);

    cursor: pointer;

    overflow: hidden;

    transition:
        background .4s var(--ease),
        border-color .4s var(--ease),
        box-shadow .4s var(--ease),
        transform .25s var(--ease);
}

.menu-toggle::before {
    content: "";

    position: absolute;
    inset: 3px;

    border-radius: inherit;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(0, 141, 213, .14),
            transparent 68%
        );

    opacity: 0;

    transition:
        opacity .45s var(--ease);
}

.menu-toggle span {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: 50%;

    width: 15px;
    height: 1px;

    background: #f4f6f8;

    transform-origin: center;

    transition:
        transform .55s cubic-bezier(.22, 1, .36, 1),
        width .4s var(--ease),
        background-color .4s var(--ease);
}

.menu-toggle span:first-child {
    transform: translate(-50%, -3px);
}

.menu-toggle span:last-child {
    transform: translate(-50%, 3px);
}

.menu-toggle:hover {
    border-color: rgba(0, 141, 213, .50);

    background: rgba(0, 141, 213, .065);

    box-shadow:
        0 0 0 3px rgba(0, 141, 213, .055),
        0 8px 24px rgba(0, 0, 0, .15);
}

.menu-toggle:hover::before {
    opacity: 1;
}

.menu-toggle:hover span:first-child,
.menu-toggle:hover span:last-child {
    width: 18px;
}

.menu-toggle:active {
    transform: scale(.93);
}

/* OPEN */

.menu-toggle.is-active {
    border-color: rgba(0, 141, 213, .56);
    background: rgba(0, 141, 213, .08);

    box-shadow:
        0 0 0 3px rgba(0, 141, 213, .06);
}

.menu-toggle.is-active::before {
    opacity: 1;
}

.menu-toggle.is-active span:first-child {
    width: 17px;
    transform: translate(-50%, 0) rotate(45deg);
}

.menu-toggle.is-active span:last-child {
    width: 17px;
    transform: translate(-50%, 0) rotate(-45deg);
}

/* LIGHT */

html[data-theme="light"] .menu-toggle {
    border-color: rgba(17, 21, 26, .13);
    background: rgba(17, 21, 26, .025);
}

html[data-theme="light"] .menu-toggle span {
    background: #11151a;
}

html[data-theme="light"] .menu-toggle:hover,
html[data-theme="light"] .menu-toggle.is-active {
    border-color: rgba(0, 141, 213, .50);
    background: rgba(0, 141, 213, .055);

    box-shadow:
        0 0 0 3px rgba(0, 141, 213, .05),
        0 8px 24px rgba(17, 21, 26, .08);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 22px;

    min-width: 215px;

    padding: 7px 8px 7px 18px;

    border-radius: 999px;

    font-size: 14px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform .35s var(--ease),
        background .35s var(--ease),
        border-color .35s var(--ease),
        color .35s var(--ease),
        box-shadow .35s var(--ease);
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #091016;
    background: #f4f6f8;
}

.button__icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--accent);
    color: #fff;

    transition:
        transform .35s var(--ease),
        background .35s var(--ease);
}

.button__icon svg {
    width: 17px;
    height: 17px;

    stroke-width: 1.7;

    transition: transform .35s var(--ease);
}

.button:hover .button__icon {
    transform: translateX(2px);
}

.button:hover .button__icon svg {
    transform: translateX(1px);
}

.button--outline {
    border: 1px solid rgba(255, 255, 255, .22);

    color: #f4f6f8;

    background: rgba(255, 255, 255, .03);
}

.button--outline:hover {
    border-color: var(--accent);
}

.button--dark {
    color: #f4f6f8;
    background: #11151a;
}


/* =========================================================
   SECTION TOPLINE
   ========================================================= */

.section-topline {
    display: grid;
    grid-template-columns: 150px 1fr auto;

    align-items: center;

    gap: 18px;

    color: #6f7781;
}

.section-topline::after {
    content: "";

    grid-column: 2 / -1;
    grid-row: 1;

    align-self: end;

    height: 1px;

    margin-top: 16px;

    background: var(--line);
}

.section-topline--dark {
    color: #8d97a2;
}


/* =========================================================
   SCROLL PROGRESS
   ========================================================= */

.scroll-progress {
    position: fixed;
    z-index: 110;

    top: 50%;
    right: 18px;

    width: 2px;
    height: 120px;

    transform: translateY(-50%);

    border-radius: 999px;

    background: rgba(255, 255, 255, .12);

    pointer-events: none;
}

.scroll-progress span {
    display: block;

    width: 100%;
    height: 10%;

    border-radius: inherit;

    background: var(--accent);

    transition: height .2s linear;
}

/* =========================================================
   SCROLL PROGRESS — LIGHT
   ========================================================= */

html[data-theme="light"] .scroll-progress {
    background: rgba(17, 21, 26, .14);
}


/* =========================================================
   MENU OVERLAY
   ========================================================= */

.menu-overlay {
    position: fixed;
    inset: 0;

    z-index: 90;

    visibility: hidden;
    pointer-events: none;

    opacity: 0;

    transition:
        opacity .65s var(--ease),
        visibility 0s linear .65s;
}

.menu-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;

    transition:
        opacity .65s var(--ease),
        visibility 0s;
}

/* HEADER — HIDE WHILE MENU IS OPEN */

body.menu-open .presentation-nav {
    opacity: 0;
    pointer-events: none;
}

.menu-overlay__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(4, 8, 12, .42);

    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.menu-panel {
    position: absolute;

    top: 24px;
    right: 124px;
    bottom: 24px;

    width: min(680px, calc(100vw - 48px));

    display: flex;
    flex-direction: column;

    padding: 24px 28px 28px;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;

    background: rgba(12, 16, 20, .95);

    backdrop-filter: blur(28px) saturate(130%);
    -webkit-backdrop-filter: blur(28px) saturate(130%);

    box-shadow:
        -30px 30px 90px rgba(0, 0, 0, .28);

    transform:
        translate3d(0, -18px, 0)
        scale(.985);

    opacity: 0;

    transition:
        opacity .65s var(--ease),
        transform .75s cubic-bezier(.22, 1, .36, 1);
}

.menu-overlay.is-open .menu-panel {
    opacity: 1;

    transform:
        translate3d(0, 0, 0)
        scale(1);
}

.menu-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-panel__logo {
    display: inline-flex;
    align-items: center;
}

.menu-panel__logo img {
    display: block;

    width: auto;
    height: 28px;
}

.menu-close {
    position: relative;

    width: 48px;
    height: 48px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;

    color: #f4f6f8;
    background: rgba(255, 255, 255, .025);

    cursor: pointer;

    transition:
        border-color .4s var(--ease),
        background .4s var(--ease),
        transform .4s var(--ease);
}

.menu-close:hover {
    border-color: rgba(0, 141, 213, .48);

    background: rgba(0, 141, 213, .07);

    transform: rotate(6deg);
}

.menu-close svg {
    width: 22px;
    height: 22px;

    transition: transform .45s var(--ease);
}

.menu-close:hover svg {
    transform: rotate(84deg);
}


/* =========================================================
   MENU LIST
   ========================================================= */

.menu-list {
    display: grid;

    gap: 3px;

    margin-top: 66px;
}

.menu-item {
    position: relative;

    display: grid;
    grid-template-columns: 46px 1fr 20px;

    align-items: center;

    gap: 10px;

    padding: 12px 0;

    border-top: 1px solid rgba(255, 255, 255, .09);

    color: #f4f6f8;

    opacity: 0;

    transform: translate3d(0, 18px, 0);

    transition:
        opacity .5s var(--ease),
        transform .65s cubic-bezier(.22, 1, .36, 1),
        color .35s var(--ease),
        padding-left .35s var(--ease);
}


/* =========================================================
   MENU LIST TEST CHILD

   .menu-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

   ========================================================= */

.menu-item:last-child {
    border-bottom: none;
}

.menu-overlay.is-open .menu-item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.menu-overlay.is-open .menu-item:nth-child(1) {
    transition-delay: .08s;
}

.menu-overlay.is-open .menu-item:nth-child(2) {
    transition-delay: .13s;
}

.menu-overlay.is-open .menu-item:nth-child(3) {
    transition-delay: .18s;
}

.menu-overlay.is-open .menu-item:nth-child(4) {
    transition-delay: .23s;
}

.menu-overlay.is-open .menu-item:nth-child(5) {
    transition-delay: .28s;
}

.menu-overlay.is-open .menu-item:nth-child(6) {
    transition-delay: .33s;
}

.menu-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 2px;
    height: 0;

    transform: translateY(-50%);

    border-radius: 999px;

    background: var(--accent);

    transition: height .35s var(--ease);
}

.menu-item:hover {
    padding-left: 14px;
    color: var(--accent-strong);
}

.menu-item:hover::before {
    height: 55%;
}

.menu-item__number {
    font-size: 11px;
    color: #6f7a86;
}

.menu-item__label {
    font-size: clamp(25px, 2.2vw, 36px);

    line-height: 1.15;

    letter-spacing: -.04em;
}

.menu-item > svg {
    color: var(--accent);

    opacity: 0;

    transform: translate3d(0, 0, 0);

    transition:
        opacity .35s var(--ease),
        transform .35s var(--ease);
}

.menu-item:hover > svg {
    opacity: 1;

    transform:
        translate3d(2px, -2px, 0);
}


/* =========================================================
   MENU FOOTER
   ========================================================= */

.menu-panel__footer {
    margin-top: auto;

    display: grid;
    grid-template-columns: 1fr 1.2fr;

    gap: 34px;

    padding-top: 28px;

    border-top: 1px solid rgba(255, 255, 255, .09);
}

.menu-panel__statement {
    display: grid;

    gap: 2px;

    align-content: start;

    color: #a6b0ba;

    font-size: 15px;
    line-height: 1.3;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.menu-panel__footer p {
    max-width: 320px;

    font-size: 14px;
    line-height: 1.55;

    color: #76818d;
}

.menu-panel__meta {
    grid-column: 1 / -1;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding-top: 8px;

    color: #697480;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: .08em;
}


/* =========================================================
   LIGHT MENU
   ========================================================= */

html[data-theme="light"] .menu-overlay__backdrop {
    background: rgba(214, 222, 229, .34);
}

html[data-theme="light"] .menu-panel {
    background: rgba(248, 250, 251, .94);

    border-color: rgba(17, 21, 26, .10);

    box-shadow:
        -30px 30px 90px rgba(17, 21, 26, .14);
}

html[data-theme="light"] .menu-close {
    color: #11151a;

    border-color: rgba(17, 21, 26, .11);
    background: rgba(17, 21, 26, .025);
}

html[data-theme="light"] .menu-close:hover {
    border-color: rgba(0, 141, 213, .42);
    background: rgba(0, 141, 213, .055);
}

html[data-theme="light"] .menu-item {
    color: #11151a;
    border-color: rgba(17, 21, 26, .085);
}

html[data-theme="light"] .menu-item:last-child {
    border-color: rgba(17, 21, 26, .085);
}

html[data-theme="light"] .menu-item__number {
    color: #828b94;
}

html[data-theme="light"] .menu-item > svg {
    color: var(--accent);
}

html[data-theme="light"] .menu-panel__footer {
    border-color: rgba(17, 21, 26, .085);
}

html[data-theme="light"] .menu-panel__statement {
    color: #66717b;
}

html[data-theme="light"] .menu-panel__footer p {
    color: #7a858f;
}

html[data-theme="light"] .menu-panel__meta {
    color: #8a939b;
}

.about-copy h2 span {
    color: var(--accent-strong);
    transition: color .7s var(--ease);
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .presentation-nav,
    .theme-toggle,
    .theme-toggle__track,
    .theme-toggle__thumb,
    .theme-toggle__icon,
    .theme-toggle__icon svg,
    .menu-toggle,
    .menu-toggle::before,
    .menu-toggle span,
    .menu-overlay,
    .menu-panel,
    .menu-close,
    .menu-close svg,
    .menu-item,
    .menu-item::before,
    .menu-item > svg,
    .button,
    .button__icon,
    .button__icon svg {
        transition-duration: .01ms !important;
    }
}