/*Fonts */
@font-face {
    font-family: 'Gotham Narrow Black';
    src: url('media/Fonts/GothamNarrow-Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Afacad Flux';
    src: url('media/Fonts/AfacadFlux.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Changeling Neo';
    src: url('media/Fonts/Changeling Neo_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Antaris CF';
    src: url('media/Fonts/Antaris_CF.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: '3270';
    src: url('media/Fonts/3270-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*Header */
body > header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(42, 39, 44);
    height: 80px;
    display: flex;
    align-items: center;
    font-family: 'Antaris CF', sans-serif;
    justify-content: space-between;
    z-index: 1000;
    transition: transform 450ms ease-out;
    will-change: transform;
}

body > header.secondary-collapsed.nav-hidden {
    transform: translateY(-140px);
}

html.primary-header-forced-hidden body > header {
    transform: translate3d(0, -140px, 0) !important;
}

body > header::after {
    content: "";
    position: absolute;
    top: 55px;
    left: 0;
    height: 60px;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='rgb(42,39,44)' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    filter: drop-shadow(0 12px 6.5px rgba(0, 0, 0, 0.25));
    z-index: 1;
}

body > header .inner {
    position: relative;
    z-index: 2;
    width: 1500px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/*Body */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgb(31, 14, 21);
}

main {
    box-sizing: border-box;
    margin-top: 0;
    padding-top: 320px;
    background: linear-gradient(#14090e 0 320px, transparent 320px) no-repeat;
}

/* secondary header */
.secondary-header {
    position: absolute;
    z-index: 0;
    top: 80px;
    left: 0;
    width: 100%;
    height: 300px;
    overflow: visible;
    pointer-events: none;
    background: linear-gradient(#290a0b, #220f1b) top / 100% calc(100% - 60px) no-repeat;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition:
        transform 500ms ease-out,
        opacity 350ms ease-out,
        visibility 0s;
}

body > header.secondary-collapsed .secondary-header {
    opacity: 0;
    transform: translateY(-32px);
    visibility: hidden;
    transition:
        transform 500ms ease-out,
        opacity 350ms ease-out,
        visibility 0s linear 500ms;
}

.secondary-header::before {
    content: none;
}

.projects-page .secondary-header::before {
    inset: 0;
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(
            from 135deg at 50% 0,
            transparent 0 90deg,
            #000 90deg 360deg
        );
    mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(
            from 135deg at 50% 0,
            transparent 0 90deg,
            #000 90deg 360deg
        );
    -webkit-mask-position: 0 0, 0 100%;
    mask-position: 0 0, 0 100%;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-size: 100% calc(100% - 60px), 104px 60px;
    mask-size: 100% calc(100% - 60px), 104px 60px;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    animation:
        checker-drift 2.5s linear infinite,
        checker-fade 10s ease-in-out infinite,
        projects-header-checker-mask-drift 2s linear infinite;
}

.secondary-header::after {
    content: "";
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 60px;
    background-color: #220f1b;
    -webkit-mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 104px 60px;
    mask-size: 104px 60px;
    animation: zigzag-edge-drift 2s linear infinite;
}

.secondary-header__edge-outline {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 63px;
    background: radial-gradient(
        ellipse 62% 180% at 50% 50%,
        #f43a61 0%,
        #b71d49 48%,
        #8b102f 100%
    );
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(
            from 135deg at 50% 0,
            transparent 0 90deg,
            #000 90deg 360deg
        );
    mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(
            from 135deg at 50% 0,
            transparent 0 90deg,
            #000 90deg 360deg
        );
    -webkit-mask-position: 0 0, 52px 3px;
    mask-position: 0 0, 52px 3px;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-size: 100% 3px, 104px 60px;
    mask-size: 100% 3px, 104px 60px;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    animation:
        zigzag-outline-drift 2s linear infinite,
        zigzag-trail-wave 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.secondary-header__edge-outline--light {
    bottom: 7px;
    -webkit-clip-path: inset(15px 0 0);
    clip-path: inset(15px 0 0);
}

.secondary-header__edge-outline--dark {
    z-index: 2;
    bottom: -6px;
    height: 66px;
    background: #14090e;
    -webkit-mask-position: 0 0, 0 6px;
    mask-position: 0 0, 0 6px;
    -webkit-mask-size: 100% 6px, 104px 60px;
    mask-size: 100% 6px, 104px 60px;
    filter: none;
    animation: zigzag-dark-outline-drift 2s linear infinite;
}

.secondary-header__edge-texture {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    height: 60px;
    background-image: url("media/SVGs/Checkboard.svg");
    background-repeat: repeat;
    background-size: 90px 90px;
    opacity: 0.15;
    -webkit-mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 104px 60px;
    mask-size: 104px 60px;
    animation:
        checker-edge-drift 2.5s linear infinite,
        checker-fade 10s ease-in-out infinite,
        zigzag-edge-drift 2s linear infinite;
    display: none;
}

.secondary-header__checker-clip {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(from 135deg at 50% 0, transparent 0 90deg, #000 90deg 360deg);
    mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(from 135deg at 50% 0, transparent 0 90deg, #000 90deg 360deg);
    -webkit-mask-position: 0 0, 0 100%;
    mask-position: 0 0, 0 100%;
    -webkit-mask-size: 100% calc(100% - 60px), 104px 60px;
    mask-size: 100% calc(100% - 60px), 104px 60px;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    animation: secondary-perspective-mask-drift 2s linear infinite;
}

.secondary-header__checker-plane {
    position: absolute;
    right: -145%;
    bottom: 0;
    left: -145%;
    display: block;
    height: 2400px;
    background-image: url("media/SVGs/Checkboard.svg");
    background-position: 0 0;
    background-repeat: repeat;
    background-size: 108px 108px;
    opacity: 0.15;
    transform: perspective(820px) rotateX(50deg);
    transform-origin: 50% 100%;
    transition:
        right 900ms cubic-bezier(0.16, 1, 0.3, 1),
        left 900ms cubic-bezier(0.16, 1, 0.3, 1),
        height 900ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: background-position, opacity, transform;
    animation:
        secondary-perspective-checker-drift 2.5s linear infinite,
        checker-fade 10s ease-in-out infinite;
}

.secondary-header__logo {
    position: absolute;
    z-index: 5;
    top: 114px;
    left: 50%;
    width: min(600px, calc(100% - 40px));
    height: auto;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
    filter:
        drop-shadow(-4px 8px 0 rgba(0, 0, 0, 0.72))
        drop-shadow(0 7px 7px rgba(0, 0, 0, 0.62));
}

.gradient-section {
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    background: #14090e;
    margin-top: -100px;
    padding: 170px 32px 120px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition:
        opacity 700ms ease-out,
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s;
    will-change: opacity, transform;
}

body.home-at-top .gradient-section {
    opacity: 0;
    transform: translateY(180px);
    visibility: hidden;
    transition:
        opacity 480ms ease-in,
        transform 650ms cubic-bezier(0.7, 0, 0.84, 0),
        visibility 0s linear 650ms;
}

.gradient-section::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -140px 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 40% 64% at 24% 52%, rgba(255, 148, 174, 0.86) 0%, rgba(243, 73, 116, 0.58) 42%, transparent 80%),
        radial-gradient(ellipse 40% 64% at 76% 52%, rgba(221, 155, 255, 0.82) 0%, rgba(177, 68, 193, 0.56) 42%, transparent 80%);
    background-repeat: no-repeat;
    -webkit-mask-image: url("media/SVGs/Checkboard.svg");
    mask-image: url("media/SVGs/Checkboard.svg");
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 90px 90px;
    mask-size: 90px 90px;
    -webkit-mask-position: 0 var(--checker-parallax, 0px);
    mask-position: 0 var(--checker-parallax, 0px);
    opacity: 0.2;
    will-change: -webkit-mask-position, mask-position;
    animation:
        home-checker-drift 5s linear infinite,
        home-checker-reveal 8s ease-in-out infinite;
}

.home-feed__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(64px, 7vw, 110px);
    width: min(1480px, 100%);
    margin: 0 auto;
}

.home-feed__grid::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 7%;
    bottom: 7%;
    left: 50%;
    width: 9px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent,
        #ee2148 18%,
        #c21853 50%,
        #7e1a75 82%,
        transparent
    );
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 22'%3E%3Cpolygon points='4.5,0 9,4.5 4.5,9 0,4.5' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 22'%3E%3Cpolygon points='4.5,0 9,4.5 4.5,9 0,4.5' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-position: center 0;
    mask-position: center 0;
    -webkit-mask-size: 9px 22px;
    mask-size: 9px 22px;
    -webkit-mask-repeat: repeat-y;
    mask-repeat: repeat-y;
    opacity: 0;
    filter:
        drop-shadow(0 0 5px rgba(255, 53, 104, 0.28))
        drop-shadow(0 0 11px rgba(242, 229, 235, 0.12));
    transform: translateX(-50%);
    transition: opacity 520ms ease-out 180ms;
    animation: home-feed-divider-scroll 1.15s linear infinite;
}

.home-feed.is-revealed .home-feed__grid::before {
    opacity: 0.88;
}

@keyframes home-feed-divider-scroll {
    to {
        -webkit-mask-position: center 44px;
        mask-position: center 44px;
    }
}

.feed-card-reveal {
    position: relative;
    z-index: 1;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(76px) scale(0.86);
    transform-origin: center bottom;
    transition:
        opacity 500ms ease-in,
        transform 650ms cubic-bezier(0.7, 0, 0.84, 0);
}

.feed-card-reveal--newsletter {
    transition-delay: 90ms;
}

.home-feed.is-revealed .feed-card-reveal {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
        opacity 700ms ease-out,
        transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-card {
    --feed-card-cut: clamp(20px, 2.2vw, 34px);
    position: relative;
    z-index: 1;
    top: 0;
    min-width: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(18px, 2vw, 28px);
    border: 0;
    border-radius: 0;
    clip-path: polygon(
        var(--feed-card-cut) 0,
        calc(100% - var(--feed-card-cut)) 0,
        100% var(--feed-card-cut),
        100% calc(100% - var(--feed-card-cut)),
        calc(100% - var(--feed-card-cut)) 100%,
        var(--feed-card-cut) 100%,
        0 calc(100% - var(--feed-card-cut)),
        0 var(--feed-card-cut)
    );
    background: linear-gradient(
        135deg,
        rgba(238, 33, 72, 0.94) 0%,
        rgba(194, 24, 83, 0.92) 48%,
        rgba(126, 26, 117, 0.92) 100%
    );
    transition:
        top 260ms ease-out;
}

.feed-card-tilt {
    width: 100%;
    transform-origin: center;
    filter:
        drop-shadow(0 30px 27px rgba(0, 0, 0, 0.62))
        drop-shadow(0 10px 9px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 16px rgba(218, 34, 100, 0.2));
    transition: filter 260ms ease-out;
    will-change: transform, filter;
}

.feed-card-tilt--video {
    --card-tilt-start: -0.75deg;
    --card-tilt-end: 0.75deg;
    animation: home-card-tilt 4.8s cubic-bezier(0.45, 0, 0.55, 1) -1.1s infinite;
}

.feed-card-tilt--newsletter {
    --card-tilt-start: 0.75deg;
    --card-tilt-end: -0.75deg;
    animation: home-card-tilt 5.4s cubic-bezier(0.45, 0, 0.55, 1) -3.2s infinite;
}

.feed-card--video {
    background: linear-gradient(
        225deg,
        rgba(238, 33, 72, 0.94) 0%,
        rgba(194, 24, 83, 0.92) 48%,
        rgba(126, 26, 117, 0.92) 100%
    );
    animation: home-card-float 6.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.feed-card--newsletter {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    animation: home-card-float 7s cubic-bezier(0.45, 0, 0.55, 1) -3.5s infinite;
}

.feed-card--video:hover,
.feed-card--video:focus-within,
.feed-card--newsletter:hover,
.feed-card--newsletter:focus-visible {
    top: -10px;
}

.feed-card-tilt:has(.feed-card--video:hover),
.feed-card-tilt:has(.feed-card--video:focus-within),
.feed-card-tilt:has(.feed-card--newsletter:hover),
.feed-card-tilt:has(.feed-card--newsletter:focus-visible) {
    filter:
        drop-shadow(0 34px 31px rgba(0, 0, 0, 0.68))
        drop-shadow(0 12px 10px rgba(0, 0, 0, 0.42))
        drop-shadow(0 0 14px rgba(255, 39, 82, 0.78))
        drop-shadow(0 0 27px rgba(220, 35, 102, 0.48));
}

.feed-card__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 0;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.feed-card__header::before {
    display: none;
}

.feed-card__header--right {
    justify-content: flex-end;
    text-align: right;
}

.feed-card__header--right::before {
    display: none;
}

.feed-card__header h2 {
    margin: 0;
    color: #f5e5eb;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(28px, 2.5vw, 42px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.045em;
    text-shadow: 0 4px 0 rgba(76, 8, 32, 0.75), 0 8px 14px rgba(0, 0, 0, 0.38);
}

.feed-card--video .feed-card__header h2,
.feed-card--newsletter .feed-card__header h2 {
    font-family: 'Changeling Neo', 'Afacad Flux', sans-serif;
    font-weight: 900;
    -webkit-text-stroke: 1.1px currentColor;
}

.latest-video {
    width: min(680px, 100%);
    box-sizing: border-box;
}

.latest-video__embed,
.latest-newsletter {
    --feed-preview-cut: clamp(12px, 1.3vw, 20px);
    --feed-preview-inner-cut: calc(var(--feed-preview-cut) - 2px);
    border: 0;
    border-radius: 0;
    background: rgba(255, 174, 197, 0.82);
    clip-path: polygon(
        var(--feed-preview-cut) 0,
        calc(100% - var(--feed-preview-cut)) 0,
        100% var(--feed-preview-cut),
        100% calc(100% - var(--feed-preview-cut)),
        calc(100% - var(--feed-preview-cut)) 100%,
        var(--feed-preview-cut) 100%,
        0 calc(100% - var(--feed-preview-cut)),
        0 var(--feed-preview-cut)
    );
    filter:
        drop-shadow(0 12px 12px rgba(0, 0, 0, 0.34))
        drop-shadow(0 4px 4px rgba(0, 0, 0, 0.24));
}

.latest-video__embed {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.latest-video__embed iframe {
    position: absolute;
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: 0;
    clip-path: polygon(
        var(--feed-preview-inner-cut) 0,
        calc(100% - var(--feed-preview-inner-cut)) 0,
        100% var(--feed-preview-inner-cut),
        100% calc(100% - var(--feed-preview-inner-cut)),
        calc(100% - var(--feed-preview-inner-cut)) 100%,
        var(--feed-preview-inner-cut) 100%,
        0 calc(100% - var(--feed-preview-inner-cut)),
        0 var(--feed-preview-inner-cut)
    );
}

.latest-newsletter h3 {
    margin: 0;
    color: #f6e8ed;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(25px, 2.2vw, 36px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.025em;
}

.latest-newsletter p {
    margin: 0;
    padding: 0;
    color: #e7cad4;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.48;
}

.feed-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: auto;
    padding-top: 32px;
    color: #ff7894;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.025em;
    transition: color 220ms ease-out, letter-spacing 220ms ease-out;
}

.feed-link__label {
    text-decoration: none;
}

.feed-link:hover,
.feed-link:focus-visible,
.feed-card--newsletter:hover .feed-link,
.feed-card--newsletter:focus-visible .feed-link {
    color: #ffe7ee;
    letter-spacing: 0.065em;
}

.feed-link:focus-visible {
    outline: none;
}

.latest-newsletter {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 350px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    overflow: hidden;
    padding: clamp(28px, 3vw, 44px);
}

.feed-card--newsletter:focus-visible {
    outline: none;
}

.latest-newsletter::before {
    display: none;
}

.latest-newsletter h3 {
    width: 100%;
    max-width: none;
    margin-top: 0;
    font-size: clamp(30px, 2.8vw, 46px);
}

.latest-newsletter p {
    width: 100%;
    max-width: none;
    margin: 26px 0 0;
}

.latest-newsletter.latest-newsletter--thumbnail {
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
}

.latest-newsletter--thumbnail img {
    position: absolute;
    inset: 2px;
    display: block;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    object-fit: cover;
    clip-path: polygon(
        var(--feed-preview-inner-cut) 0,
        calc(100% - var(--feed-preview-inner-cut)) 0,
        100% var(--feed-preview-inner-cut),
        100% calc(100% - var(--feed-preview-inner-cut)),
        calc(100% - var(--feed-preview-inner-cut)) 100%,
        var(--feed-preview-inner-cut) 100%,
        0 calc(100% - var(--feed-preview-inner-cut)),
        0 var(--feed-preview-inner-cut)
    );
}

.home-next-section {
    --next-section-top: #dc1747;
    position: relative;
    z-index: 1;
    min-height: 430px;
    background: linear-gradient(
        180deg,
        var(--next-section-top) 0%,
        #b31455 46%,
        #66115f 100%
    );
}

.home-next-section::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 60px;
    background: var(--next-section-top);
    -webkit-mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-size: 104px 60px;
    mask-size: 104px 60px;
    transform: rotate(180deg);
    animation: next-section-zigzag-drift 2s linear infinite;
}

.team-section::before {
    z-index: 1;
}

.team-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: calc(100% + 5px);
    left: 0;
    height: 60px;
    pointer-events: none;
    background: #14090e;
    -webkit-mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-size: 104px 60px;
    mask-size: 104px 60px;
    transform: rotate(180deg);
    animation: team-zigzag-outline-drift 2s linear infinite;
}

.team-section {
    box-sizing: border-box;
    padding: 94px 32px 150px;
}

.team-section__inner {
    position: relative;
    z-index: 1;
    width: min(1480px, 100%);
    margin: 0 auto;
}

.team-section__inner > h2 {
    margin: 0;
    color: #f2e5eb;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.035em;
    text-align: center;
    text-shadow:
        0 5px 0 #7a123c,
        0 12px 22px rgba(49, 4, 25, 0.48);
}

.team-category-nav {
    display: grid;
    grid-template-columns: 62px minmax(0, 360px) 62px;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 38px);
    margin: 38px auto 48px;
}

.team-category-nav h3 {
    margin: 0;
    color: #f2e5eb;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(34px, 3.8vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.045em;
    text-align: center;
    text-shadow: 0 4px 0 rgba(91, 10, 48, 0.72);
}

.team-category-nav button {
    display: grid;
    width: 62px;
    height: 52px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f2e5eb;
    font-family: 'Antaris CF', sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.045em;
    cursor: pointer;
    box-shadow: none;
    text-shadow: 0 4px 0 rgba(91, 10, 48, 0.72);
    transition:
        color 220ms ease-out,
        transform 220ms ease-out,
        text-shadow 220ms ease-out;
}

.team-category-nav button:hover,
.team-category-nav button:focus-visible {
    outline: none;
    background: transparent;
    color: #f2e5eb;
    transform: scale(1.18);
    box-shadow: none;
    text-shadow:
        0 4px 0 rgba(91, 10, 48, 0.72),
        0 0 15px rgba(242, 229, 235, 0.68);
}

.team-group {
    margin-top: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 205px));
    justify-content: center;
    gap: clamp(16px, 2vw, 28px);
}

.team-member {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    min-width: 0;
}

.team-member h4 {
    grid-column: 1;
    display: flex;
    min-height: 2.08em;
    margin: 0 0 16px;
    align-items: flex-end;
    justify-content: center;
    color: #f5e9ee;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(22px, 1.75vw, 31px);
    font-weight: 700;
    line-height: 1.04;
    text-align: center;
    text-shadow: 0 4px 0 rgba(105, 10, 50, 0.68);
}

.team-member__socials {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 9px;
    align-self: flex-start;
    margin: 0 0 12px;
}

.team-member__socials a {
    display: grid;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f2e5eb;
    box-shadow: none;
    text-decoration: none;
    transition:
        transform 260ms ease-out;
}

.team-member__socials a:hover,
.team-member__socials a:focus-visible {
    outline: none;
    background: transparent;
    box-shadow: none;
    transform: scale(1.2);
}

.team-member__socials img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter:
        brightness(0)
        saturate(100%)
        invert(91%)
        sepia(8%)
        saturate(348%)
        hue-rotate(286deg)
        brightness(104%)
        contrast(94%);
    transition: filter 220ms ease-out;
}

.team-member__socials a:hover img,
.team-member__socials a:focus-visible img {
    filter:
        brightness(0)
        saturate(100%)
        invert(91%)
        sepia(8%)
        saturate(348%)
        hue-rotate(286deg)
        brightness(104%)
        contrast(94%)
        drop-shadow(0 0 8px rgba(242, 229, 235, 0.82))
        drop-shadow(0 0 15px rgba(242, 229, 235, 0.48));
}

.team-member__portrait {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    justify-self: center;
    aspect-ratio: 1;
    overflow: hidden;
    border: 5px solid #f2e5eb;
    border-radius: 28px;
    background: #270817;
    box-shadow:
        0 20px 32px rgba(57, 5, 30, 0.48),
        0 6px 10px rgba(36, 2, 17, 0.34);
    transform: scale(1);
    transform-origin: center;
    transition:
        border-radius 320ms ease-out,
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 320ms ease-out;
}

.team-member:not(.is-open) .team-member__portrait:hover {
    z-index: 2;
    box-shadow:
        0 25px 38px rgba(57, 5, 30, 0.56),
        0 8px 14px rgba(36, 2, 17, 0.4),
        0 0 24px rgba(242, 229, 235, 0.82),
        0 0 44px rgba(242, 229, 235, 0.42);
    transform: scale(1.055);
}

.team-member.is-open .team-member__portrait:hover {
    box-shadow:
        0 25px 38px rgba(57, 5, 30, 0.56),
        0 8px 14px rgba(36, 2, 17, 0.4),
        0 0 24px rgba(242, 229, 235, 0.82),
        0 0 44px rgba(242, 229, 235, 0.42);
}

.team-member.is-open .team-member__portrait {
    z-index: 2;
    border-radius: 28px 28px 0 0;
}

.team-member__portrait-toggle {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.team-member__portrait-toggle:focus-visible {
    outline: 4px solid #f2e5eb;
    outline-offset: -6px;
}

.team-member__portrait-toggle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member__bio {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 3;
    display: flex;
    width: 100%;
    justify-self: center;
    height: 0;
    box-sizing: border-box;
    flex-direction: column;
    overflow: hidden;
    padding: 0 16px;
    border: 0;
    border-top: 0;
    border-radius: 0 0 28px 28px;
    background:
        linear-gradient(
            155deg,
            rgba(72, 10, 37, 0.99) 0%,
            rgba(39, 7, 25, 0.99) 54%,
            rgba(25, 8, 24, 0.99) 100%
        );
    box-shadow: 0 16px 26px rgba(27, 2, 15, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-22px) scaleY(0.86);
    transform-origin: top;
    transition:
        opacity 260ms ease-out,
        height 480ms cubic-bezier(0.16, 1, 0.3, 1),
        padding 480ms cubic-bezier(0.16, 1, 0.3, 1),
        border-width 480ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member.is-open .team-member__bio {
    z-index: 3;
    height: 190px;
    padding: 15px 16px 17px;
    border-width: 0 5px 5px;
    border-color: #f2e5eb;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

.team-member__bio-text {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    color: #f2e5eb;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 17px;
    line-height: 1.4;
    scrollbar-color: #f2e5eb rgba(242, 229, 235, 0.12);
    scrollbar-width: thin;
}

.team-member__bio-text::-webkit-scrollbar {
    width: 8px;
}

.team-member__bio-text::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(242, 229, 235, 0.12);
}

.team-member__bio-text::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #f2e5eb;
}

.team-member__bio-text::-webkit-scrollbar-thumb:hover {
    background: #fff7fa;
}

.team-group--developers {
    min-height: 420px;
}

@media (max-width: 1120px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 205px));
        gap: 62px clamp(20px, 4vw, 38px);
    }
}

@media (max-width: 620px) {
    .team-section {
        padding: 82px 18px 110px;
    }

    .team-category-nav {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 12px;
        margin-top: 32px;
    }

    .team-category-nav button {
        width: 52px;
        height: 48px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .team-member {
        width: min(205px, 100%);
        margin: 0 auto;
    }

}

/* team roster */
.team-section {
    padding: 78px 0 52px;
    background: #dc1747;
}

.team-section__inner {
    width: 100%;
}

.team-section.has-scroll-reveal .team-section__inner {
    opacity: 0;
    pointer-events: none;
    transform: translateY(110px) scale(0.975);
    transform-origin: center top;
    transition:
        opacity 760ms ease-out,
        transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.team-section.has-scroll-reveal.is-revealed .team-section__inner {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    will-change: auto;
}

.team-section__heading {
    margin: 0 auto 40px;
    text-align: center;
}

.team-section__heading h2 {
    margin: 0;
    color: #f2e5eb;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(52px, 6vw, 92px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0.035em;
    text-shadow:
        0 6px 0 #7a123c,
        0 15px 24px rgba(49, 4, 25, 0.5);
}

.team-title__letter {
    display: inline-block;
    transform-origin: center 78%;
    will-change: filter, transform;
}

.team-section.is-revealed .team-title__letter {
    animation: team-title-shine 1350ms cubic-bezier(0.45, 0, 0.55, 1) both;
    animation-delay: calc(110ms + var(--team-letter-index) * 78ms);
}

.team-stage {
    position: relative;
    display: grid;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) 232px;
    min-height: 620px;
    overflow: hidden;
    border-style: solid;
    border-width: 5px 0;
    border-color: #f2e5eb;
    border-radius: 0;
    isolation: isolate;
    background:
        radial-gradient(circle at 20% 38%, rgba(170, 30, 112, 0.38), transparent 38%),
        linear-gradient(135deg, #31091f 0%, #210719 54%, #160713 100%);
    box-shadow:
        0 -7px 24px rgba(242, 229, 235, 0.32),
        0 7px 24px rgba(242, 229, 235, 0.32);
}

.team-stage__visual {
    position: absolute;
    z-index: -3;
    inset: 0;
    overflow: hidden;
    background: #2c071d;
}

.team-stage__visual img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: min(48%, 820px);
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    will-change: opacity, filter;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.18) 90%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.18) 90%, transparent 100%);
}

.team-stage__texture {
    position: absolute;
    z-index: 0;
    inset: -28px;
    pointer-events: none;
    background-image: url("media/SVGs/Checkboard.svg");
    background-repeat: repeat;
    background-size: 92px 92px;
    filter:
        brightness(0)
        saturate(100%)
        invert(51%)
        sepia(78%)
        saturate(1743%)
        hue-rotate(294deg)
        brightness(109%)
        contrast(105%);
    mix-blend-mode: screen;
    opacity: 0.105;
    animation: team-texture-drift 7s linear infinite;
    transform: translate3d(var(--team-checker-shift-x, 0), var(--team-checker-shift-y, 0), 0);
    will-change: transform;
    -webkit-mask-image:
        radial-gradient(circle 240px at var(--team-checker-x, 120%) var(--team-checker-y, 50%), #000 0%, rgba(0, 0, 0, 0.88) 36%, rgba(0, 0, 0, 0.34) 63%, transparent 100%),
        linear-gradient(90deg, transparent 15%, rgba(0, 0, 0, 0.04) 29%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.44) 69%);
    mask-image:
        radial-gradient(circle 240px at var(--team-checker-x, 120%) var(--team-checker-y, 50%), #000 0%, rgba(0, 0, 0, 0.88) 36%, rgba(0, 0, 0, 0.34) 63%, transparent 100%),
        linear-gradient(90deg, transparent 15%, rgba(0, 0, 0, 0.04) 29%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.44) 69%);
}

.team-stage__wash {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(24, 4, 17, 0.04) 0%, rgba(31, 5, 22, 0.16) 28%, rgba(38, 6, 25, 0.88) 56%, #210719 100%),
        linear-gradient(180deg, rgba(20, 4, 15, 0.42), transparent 24%, transparent 68%, rgba(17, 3, 13, 0.72));
    box-shadow:
        inset 0 70px 70px -44px rgba(0, 0, 0, 0.62),
        inset 0 -90px 80px -48px rgba(0, 0, 0, 0.72);
}

.team-stage__content {
    --team-panel-bevel: clamp(18px, 1.8vw, 28px);
    position: relative;
    z-index: 2;
    grid-column: 1;
    display: flex;
    min-width: 0;
    align-self: center;
    justify-self: end;
    width: min(56%, 760px);
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    margin-right: clamp(30px, 3.6vw, 68px);
    padding: 44px 46px 42px;
    border: 0;
    border-radius: 0;
    clip-path: polygon(
        var(--team-panel-bevel) 0,
        calc(100% - var(--team-panel-bevel)) 0,
        100% var(--team-panel-bevel),
        100% calc(100% - var(--team-panel-bevel)),
        calc(100% - var(--team-panel-bevel)) 100%,
        var(--team-panel-bevel) 100%,
        0 calc(100% - var(--team-panel-bevel)),
        0 var(--team-panel-bevel)
    );
    background:
        linear-gradient(145deg, rgba(34, 7, 26, 0.28), rgba(20, 5, 19, 0.18));
    box-shadow:
        0 30px 62px rgba(13, 2, 11, 0.52),
        0 12px 24px rgba(20, 3, 16, 0.34);
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
    backdrop-filter: blur(10px) saturate(1.08);
}

.team-stage__role {
    display: block;
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    color: #ff8aaa;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: left;
    text-indent: 0;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(28, 2, 16, 0.72);
}

.team-stage__content h3 {
    max-width: 100%;
    margin: 0;
    color: #f2e5eb;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(43px, 5.1vw, 78px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.035em;
    overflow-wrap: anywhere;
    text-shadow: none;
}

.team-stage__socials {
    display: flex;
    min-height: 32px;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    transform: translateY(7px);
}

.team-stage__socials[hidden] {
    display: none;
}

.team-stage__socials a {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    text-decoration: none;
    isolation: isolate;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-stage__socials a::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 5px;
    border-radius: 50%;
    background: rgba(255, 246, 250, 0.82);
    filter: blur(9px);
    opacity: 0;
    transform: scale(0.55);
    transition:
        opacity 300ms ease-out,
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-stage__socials a:hover,
.team-stage__socials a:focus-visible {
    outline: none;
    transform: scale(1.22);
}

.team-stage__socials a:hover::before,
.team-stage__socials a:focus-visible::before {
    opacity: 0.72;
    transform: scale(1.28);
}

.team-stage__socials img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    filter:
        brightness(0)
        saturate(100%)
        invert(91%)
        sepia(8%)
        saturate(348%)
        hue-rotate(286deg)
        brightness(104%)
        contrast(94%);
    transition:
        filter 300ms ease-out,
        transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-stage__socials a:hover img,
.team-stage__socials a:focus-visible img {
    filter:
        brightness(0)
        saturate(100%)
        invert(91%)
        sepia(8%)
        saturate(348%)
        hue-rotate(286deg)
        brightness(104%)
        contrast(94%)
        drop-shadow(0 0 8px rgba(242, 229, 235, 0.84))
        drop-shadow(0 0 15px rgba(242, 229, 235, 0.42));
    transform: scale(1.04);
}

.team-stage__divider {
    width: min(390px, 86%);
    height: 4px;
    margin: 18px 0 17px;
    border-radius: 0;
    background: linear-gradient(90deg, #f2e5eb, #ec2d60 58%, transparent);
    box-shadow: none;
}

.team-stage__bio {
    width: 100%;
    box-sizing: border-box;
    max-height: 205px;
    margin: 0;
    overflow-y: auto;
    padding: 0 12px 0 0;
    color: #f2e5eb;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.5;
    text-shadow: 0 4px 10px rgba(24, 2, 15, 0.72);
    scrollbar-color: #f2e5eb rgba(242, 229, 235, 0.12);
    scrollbar-width: thin;
    white-space: pre-line;
}

.team-stage__bio::-webkit-scrollbar {
    width: 8px;
}

.team-stage__bio::-webkit-scrollbar-track {
    border-radius: 0;
    background: rgba(242, 229, 235, 0.12);
}

.team-stage__bio::-webkit-scrollbar-thumb {
    border-radius: 0;
    background: #f2e5eb;
}

.team-roster {
    position: relative;
    z-index: 4;
    grid-column: 2;
    box-sizing: border-box;
    padding: 18px 16px 32px;
    border-left: 2px solid rgba(242, 229, 235, 0.28);
    background:
        linear-gradient(180deg, rgba(35, 7, 27, 0.78), rgba(18, 5, 17, 0.88));
    box-shadow: -18px 0 36px rgba(20, 2, 14, 0.38);
    backdrop-filter: blur(8px);
}

.team-roster__group h3 {
    display: flex;
    margin: 0 0 14px;
    align-items: baseline;
    justify-content: center;
    color: #f2e5eb;
    font-family: 'Changeling Neo', 'Afacad Flux', sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: center;
    -webkit-text-stroke: 0.45px currentColor;
    text-shadow: 0 4px 0 rgba(91, 10, 48, 0.72);
    grid-column: 1 / -1;
}

.team-roster__group:first-child {
    display: grid;
    grid-template-columns: repeat(2, 60px);
    justify-content: center;
    gap: 13px;
}

.team-roster__group:first-child > .team-roster__member[data-member-name="Sassy Gangster"] {
    grid-column: 1 / -1;
    justify-self: center;
}

.team-roster__member {
    --team-thumb-bevel: 12px;
    position: relative;
    display: grid;
    z-index: 0;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    place-items: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    isolation: isolate;
    transition:
        box-shadow 160ms ease-out,
        transform 190ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-roster__member::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -7px;
    border-radius: 0;
    clip-path: polygon(
        var(--team-thumb-bevel) 0,
        calc(100% - var(--team-thumb-bevel)) 0,
        100% var(--team-thumb-bevel),
        100% calc(100% - var(--team-thumb-bevel)),
        calc(100% - var(--team-thumb-bevel)) 100%,
        var(--team-thumb-bevel) 100%,
        0 calc(100% - var(--team-thumb-bevel)),
        0 var(--team-thumb-bevel)
    );
    background:
        linear-gradient(135deg, rgba(255, 48, 91, 0.98), rgba(205, 27, 70, 0.96) 54%, rgba(104, 17, 54, 0.92));
    box-shadow:
        0 18px 28px rgba(16, 2, 12, 0.48),
        0 0 26px rgba(239, 57, 111, 0.34);
    opacity: 0;
    transform: scale(0.72);
    transition:
        opacity 80ms ease-out,
        transform 170ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-roster__member:hover,
.team-roster__member:focus-visible {
    outline: none;
    background: transparent;
    box-shadow:
        0 0 20px rgba(242, 229, 235, 0.9),
        0 0 38px rgba(242, 229, 235, 0.48);
    transform: scale(1.12);
}

.team-roster__member.is-active {
    background: transparent;
    box-shadow: none;
    transform: scale(1.16);
}

.team-roster__member.is-active::before {
    opacity: 0;
    transform: scale(0.72);
}

.team-roster__thumb {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border: 2px solid rgba(242, 229, 235, 0.74);
    border-radius: 0;
    background: #2c071d;
    transition:
        border-color 250ms ease-out,
        box-shadow 250ms ease-out,
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-roster__member:hover .team-roster__thumb,
.team-roster__member:focus-visible .team-roster__thumb {
    border-color: #fff9fc;
    box-shadow: inset 0 0 18px rgba(242, 229, 235, 0.16);
}

.team-roster__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-roster__group--developers {
    display: grid;
    grid-template-columns: repeat(2, 60px);
    justify-content: center;
    gap: 13px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 2px solid rgba(242, 229, 235, 0.16);
}

.team-roster__group--developers h3 {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
}

.team-roster__group--developers p {
    margin: 0;
    color: rgba(242, 229, 235, 0.5);
    font-family: 'Afacad Flux', sans-serif;
    font-size: 16px;
    text-align: center;
}

@keyframes team-texture-drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -92px 184px;
    }
}

@keyframes team-title-shine {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
        transform: scale(1);
    }
    24% {
        filter:
            drop-shadow(0 0 3px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 7px rgba(255, 238, 246, 0.18));
        transform: scale(1.025);
    }
    50% {
        filter:
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.92))
            drop-shadow(0 0 17px rgba(255, 238, 246, 0.64));
        transform: scale(1.085);
    }
    76% {
        filter:
            drop-shadow(0 0 3px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 7px rgba(255, 238, 246, 0.18));
        transform: scale(1.025);
    }
    100% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
        transform: scale(1);
    }
}

@media (max-width: 1050px) {
    .home-feed__grid::before {
        display: none;
    }

    .team-stage {
        display: block;
        min-height: 0;
    }

    .team-stage__visual {
        position: relative;
        inset: auto;
        height: 310px;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
    }

    .team-stage__visual img {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 54%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 54%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
    }

    .team-stage__texture {
        right: -28px;
        bottom: -28px;
        height: auto;
        -webkit-mask-image:
            radial-gradient(circle 210px at var(--team-checker-x, 120%) var(--team-checker-y, 50%), #000 0%, rgba(0, 0, 0, 0.82) 40%, transparent 100%),
            linear-gradient(180deg, transparent 6%, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.46) 66%, rgba(0, 0, 0, 0.52) 100%);
        mask-image:
            radial-gradient(circle 210px at var(--team-checker-x, 120%) var(--team-checker-y, 50%), #000 0%, rgba(0, 0, 0, 0.82) 40%, transparent 100%),
            linear-gradient(180deg, transparent 6%, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.46) 66%, rgba(0, 0, 0, 0.52) 100%);
    }

    .team-stage__wash {
        right: 0;
        bottom: 0;
        height: auto;
        background: linear-gradient(180deg, rgba(24, 4, 17, 0.06), rgba(33, 7, 25, 0.3) 48%, #210719 94%);
    }

    .team-stage__content {
        width: 100%;
        margin: -94px 0 0;
        padding: 34px clamp(28px, 6vw, 62px) 46px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .team-roster {
        padding: 14px clamp(24px, 6vw, 54px) 30px;
        border-top: 2px solid rgba(242, 229, 235, 0.24);
        border-left: 0;
        background: linear-gradient(180deg, rgba(35, 7, 27, 0.68), rgba(18, 5, 17, 0.82));
    }

    .team-roster__group:first-child {
        grid-template-columns: repeat(2, 60px);
        gap: 13px clamp(12px, 3.4vw, 20px);
    }

    .team-roster__group:first-child h3 {
        grid-column: 1 / -1;
    }

    .team-roster__group--developers {
        grid-template-columns: repeat(3, 60px);
        gap: 13px clamp(12px, 3.4vw, 20px);
    }

    .team-roster__member {
        margin: 0;
    }
}

@media (max-width: 680px) {
    .team-section {
        padding: 64px 0 38px;
    }

    .team-section__heading {
        margin-bottom: 28px;
    }

    .team-stage {
        border-width: 3px 0;
        border-radius: 0;
    }

    .team-stage__visual {
        height: 280px;
    }

    .team-stage__texture,
    .team-stage__wash {
        height: auto;
    }

    .team-stage__content {
        margin-top: -68px;
        padding: 30px 22px 38px;
        border-radius: 0;
    }

    .team-stage__content h3 {
        font-size: clamp(42px, 13vw, 64px);
    }

    .team-roster {
        padding: 14px 18px 26px;
    }

    .team-roster__group:first-child {
        grid-template-columns: repeat(2, 60px);
        gap: 13px;
    }

    .team-roster__group--developers {
        grid-template-columns: repeat(2, 60px);
        gap: 13px;
    }

    .team-roster__member.is-active {
        transform: scale(1.16);
    }
}

@media (max-width: 1050px) {
    .home-feed__grid {
        grid-template-columns: 1fr;
    }

    .feed-card--video,
    .feed-card--newsletter,
    .feed-card-tilt--video,
    .feed-card-tilt--newsletter {
        animation: none;
    }

    .feed-card--video,
    .feed-card--video:hover,
    .feed-card--video:focus-within,
    .feed-card--newsletter,
    .feed-card--newsletter:hover,
    .feed-card--newsletter:focus-visible {
        top: 0;
    }

    .feed-card-tilt--video,
    .feed-card-tilt--newsletter {
        transform: none;
    }

    .gradient-section::before {
        background:
            radial-gradient(ellipse 78% 40% at 50% 30%, rgba(255, 148, 174, 0.86) 0%, rgba(243, 73, 116, 0.56) 42%, transparent 80%),
            radial-gradient(ellipse 78% 40% at 50% 76%, rgba(221, 155, 255, 0.82) 0%, rgba(177, 68, 193, 0.54) 42%, transparent 80%);
    }

    .feed-card__header--right {
        justify-content: flex-start;
        text-align: left;
    }

    .latest-newsletter {
        min-height: 330px;
    }
}

@media (max-width: 720px) {
    .gradient-section {
        padding: 160px 18px 88px;
    }

    .latest-video__embed {
        min-height: 0;
    }

    .feed-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

}

@keyframes home-card-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-22px);
    }
}

@keyframes home-card-tilt {
    0%, 100% {
        transform: rotate(var(--card-tilt-start, -0.75deg));
    }
    50% {
        transform: rotate(var(--card-tilt-end, 0.75deg));
    }
}

@keyframes home-checker-drift {
    from {
        -webkit-mask-position: 0 var(--checker-parallax, 0px);
        mask-position: 0 var(--checker-parallax, 0px);
    }
    to {
        -webkit-mask-position: 90px calc(var(--checker-parallax, 0px) + 90px);
        mask-position: 90px calc(var(--checker-parallax, 0px) + 90px);
    }
}

@keyframes projects-curve-checker-drift {
    from {
        -webkit-mask-position: -120px calc(var(--projects-scroll-parallax, 0px) + var(--projects-curve-checker-y, -120px));
        mask-position: -120px calc(var(--projects-scroll-parallax, 0px) + var(--projects-curve-checker-y, -120px));
    }
    to {
        -webkit-mask-position: -30px calc(var(--projects-scroll-parallax, 0px) + var(--projects-curve-checker-y, -120px) + 90px);
        mask-position: -30px calc(var(--projects-scroll-parallax, 0px) + var(--projects-curve-checker-y, -120px) + 90px);
    }
}

@keyframes home-checker-reveal {
    0%, 100% {
        opacity: 0.14;
    }
    50% {
        opacity: 0.26;
    }
}

@keyframes next-section-zigzag-drift {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
    to {
        -webkit-mask-position: -104px 0;
        mask-position: -104px 0;
    }
}

@keyframes team-zigzag-outline-drift {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
    to {
        -webkit-mask-position: -104px 0;
        mask-position: -104px 0;
    }
}

@keyframes checker-drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 90px 90px;
    }
}

@keyframes checker-edge-drift {
    from {
        background-position: 0 -60px;
    }
    to {
        background-position: 90px 30px;
    }
}

@keyframes checker-fade {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.05;
    }
}

@keyframes zigzag-edge-drift {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
    to {
        -webkit-mask-position: -104px 0;
        mask-position: -104px 0;
    }
}

@keyframes secondary-perspective-checker-drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 108px 108px;
    }
}

@keyframes secondary-perspective-mask-drift {
    from {
        -webkit-mask-position: 0 0, 0 100%;
        mask-position: 0 0, 0 100%;
    }
    to {
        -webkit-mask-position: 0 0, -104px 100%;
        mask-position: 0 0, -104px 100%;
    }
}

@keyframes projects-header-checker-mask-drift {
    from {
        -webkit-mask-position: 0 0, 0 100%;
        mask-position: 0 0, 0 100%;
    }
    to {
        -webkit-mask-position: 0 0, -104px 100%;
        mask-position: 0 0, -104px 100%;
    }
}

@keyframes zigzag-outline-drift {
    from {
        -webkit-mask-position: 0 0, 52px 3px;
        mask-position: 0 0, 52px 3px;
    }
    to {
        -webkit-mask-position: 0 0, -52px 3px;
        mask-position: 0 0, -52px 3px;
    }
}

@keyframes zigzag-trail-wave {
    0%, 100% {
        transform: translateY(0);
        -webkit-clip-path: inset(15px 0 0);
        clip-path: inset(15px 0 0);
    }
    50% {
        transform: translateY(-12px);
        -webkit-clip-path: inset(27px 0 0);
        clip-path: inset(27px 0 0);
    }
}

@keyframes zigzag-dark-outline-drift {
    from {
        -webkit-mask-position: 0 0, 0 6px;
        mask-position: 0 0, 0 6px;
    }
    to {
        -webkit-mask-position: 0 0, -104px 6px;
        mask-position: 0 0, -104px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body > header,
    .secondary-header,
    .secondary-header::before,
    .secondary-header::after,
    .secondary-header__edge-outline,
    .secondary-header__edge-texture,
    .gradient-section::before,
    .home-next-section::before,
    .team-section::after,
    .feed-card,
    .feed-card-tilt,
    .feed-card-reveal,
    .team-category-nav button,
    .team-member__portrait,
    .team-member__bio,
    .team-stage__visual img,
    .team-stage__texture,
    .team-title__letter,
    .team-roster__member,
    .team-stage__socials a {
        animation: none;
        transition: none;
    }

    .team-section.has-scroll-reveal .team-section__inner {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .gradient-section::before {
        transform: none;
    }

    .ambition-showcase__background {
        animation: none;
        transition: none;
    }
}

/* home showcase */
.ambition-showcase-shell {
    position: relative;
    z-index: 1;
}

.ambition-showcase__curve-outline {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 100px;
    pointer-events: none;
    background: #14090e;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.ambition-showcase {
    position: relative;
    z-index: 1;
    min-height: 450px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    overflow: hidden;
    padding: 60px 24px 100px;
    isolation: isolate;
    background-color: #14090e;
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    -webkit-mask-position: top, bottom;
    mask-position: top, bottom;
    -webkit-mask-size: 100% calc(100% - 100px), 100% 100px;
    mask-size: 100% calc(100% - 100px), 100% 100px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    transition: min-height 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.home-at-top .ambition-showcase {
    min-height: max(450px, calc(100vh - 320px));
    min-height: max(450px, calc(100svh - 320px));
}

.ambition-showcase__backgrounds,
.ambition-showcase__shade,
.ambition-showcase__background {
    position: absolute;
}

.ambition-showcase__backgrounds,
.ambition-showcase__shade {
    inset: 0;
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(
            from 135deg at 50% 0,
            #000 0 90deg,
            transparent 90deg 360deg
        );
    mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(
            from 135deg at 50% 0,
            #000 0 90deg,
            transparent 90deg 360deg
        );
    -webkit-mask-position: 0 60px, 0 0;
    mask-position: 0 60px, 0 0;
    -webkit-mask-size: 100% calc(100% - 60px), 104px 60px;
    mask-size: 100% calc(100% - 60px), 104px 60px;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    animation: showcase-top-zigzag-drift 2s linear infinite;
}

.ambition-showcase__backgrounds {
    z-index: -2;
    overflow: hidden;
    background-color: #180b12;
}

.ambition-showcase__background {
    inset: -72px;
    opacity: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(5px);
    transform: scale(1.12);
    transition:
        opacity 650ms ease-in-out,
        filter 900ms ease-in-out;
    will-change: opacity, filter, transform;
}

.ambition-showcase__background--current {
    background-image: url("media/Images/Screenshots/3.png");
}

.ambition-showcase__background--next {
    background-image: url("media/Images/Screenshots/4.png");
}

.ambition-showcase__background.is-active {
    opacity: 1;
}

.ambition-showcase__background.is-extra-blurred {
    filter: blur(22px);
}

.ambition-showcase__background.is-zooming {
    animation: screenshot-zoom-out 6s linear forwards;
}

.ambition-showcase__shade {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(24, 9, 15, 0.42), rgba(28, 10, 18, 0.62)),
        radial-gradient(circle at center, transparent 0, rgba(12, 5, 9, 0.38) 78%);
    box-shadow:
        inset 0 84px 72px -34px rgba(0, 0, 0, 0.88),
        inset 0 -96px 82px -40px rgba(0, 0, 0, 0.86);
}

.ambition-showcase__link {
    position: relative;
    z-index: 3;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transform: scale(1);
    transform-origin: center;
    transition:
        transform 320ms ease-out,
        filter 320ms ease-out;
}

.ambition-showcase__link:hover,
.ambition-showcase__link:focus-visible {
    outline: none;
    transform: scale(1.08);
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.34))
        drop-shadow(0 0 22px rgba(255, 40, 82, 0.58));
}

.ambition-showcase__description {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: min(820px, calc(100% - 64px));
    color: #f2e5eb;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(17px, 1.45vw, 22px);
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 4px 9px rgba(0, 0, 0, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 36px);
    transition:
        opacity 360ms ease-out,
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 560ms;
}

.ambition-showcase__description p {
    margin: 0;
}

.ambition-showcase__description p + p {
    margin-top: 18px;
}

body.home-at-top .ambition-showcase:hover .ambition-showcase__link,
body.home-at-top .ambition-showcase:focus-within .ambition-showcase__link {
    transform: translateY(-90px);
}

body.home-at-top .ambition-showcase:hover .ambition-showcase__link:hover,
body.home-at-top .ambition-showcase:focus-within .ambition-showcase__link:focus-visible {
    transform: translateY(-90px) scale(1.08);
}

body.home-at-top .ambition-showcase:hover .ambition-showcase__description,
body.home-at-top .ambition-showcase:focus-within .ambition-showcase__description {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 6px);
    transition:
        opacity 420ms ease-out 90ms,
        transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s;
}

@media (max-width: 720px) {
    .ambition-showcase__description {
        width: calc(100% - 36px);
        font-size: 16px;
        line-height: 1.32;
    }

    .ambition-showcase__description p + p {
        margin-top: 12px;
    }

    body.home-at-top .ambition-showcase:hover .ambition-showcase__link,
    body.home-at-top .ambition-showcase:focus-within .ambition-showcase__link {
        transform: translateY(-104px);
    }

    body.home-at-top .ambition-showcase:hover .ambition-showcase__link:hover,
    body.home-at-top .ambition-showcase:focus-within .ambition-showcase__link:focus-visible {
        transform: translateY(-104px) scale(1.04);
    }
}

.ambition-showcase h1 {
    --ambition-text-gradient: linear-gradient(
        180deg,
        #ff4f69 0%,
        #f2224f 30%,
        #cf0b3e 66%,
        #830027 100%
    );
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
    color: #ed1747;
    background: none;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(29px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.055em;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    filter:
        drop-shadow(0 6px 7px rgba(0, 0, 0, 0.78))
        drop-shadow(0 0 18px rgba(18, 8, 13, 0.72));
    transform: translateY(-18px);
    transition:
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 320ms ease-out;
}

.ambition-showcase__link:hover h1,
.ambition-showcase__link:focus-visible h1 {
    filter: none;
}

body.home-at-top .ambition-showcase h1 {
    transform: translateY(20px);
}

.ambition-showcase h1::after {
    content: "";
    position: absolute;
    top: calc(100% + 17px);
    left: 50%;
    width: min(240px, 68%);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(211, 41, 91, 0.75) 22%,
        #ff8da3 50%,
        rgba(211, 41, 91, 0.75) 78%,
        transparent
    );
    box-shadow: none;
    filter:
        drop-shadow(0 2px 0 #d70d41)
        drop-shadow(0 5px 0 #70001e)
        drop-shadow(0 9px 8px rgba(0, 0, 0, 0.62));
    transform: translateX(-50%);
    animation: ambition-accent-wave 2.2s linear infinite;
    transition: filter 320ms ease-out;
    will-change: transform;
}

.ambition-showcase__link:hover h1::after,
.ambition-showcase__link:focus-visible h1::after {
    filter:
        drop-shadow(0 2px 0 #d70d41)
        drop-shadow(0 5px 0 #70001e);
}

@keyframes ambition-accent-wave {
    0%, 50%, 100% {
        transform: translate(-50%, 0);
    }
    12.5%, 37.5% {
        transform: translate(-50%, 3px);
    }
    25% {
        transform: translate(-50%, 4px);
    }
    62.5%, 87.5% {
        transform: translate(-50%, -3px);
    }
    75% {
        transform: translate(-50%, -4px);
    }
}

.ambition-showcase__letter {
    display: inline-block;
    background: var(--ambition-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 2px 0 #d70d41)
        drop-shadow(0 5px 0 #70001e);
    animation: ambition-letter-wave 2.2s linear infinite;
    animation-delay: var(--letter-delay);
    will-change: transform;
}

.ambition-showcase__letter--space {
    width: 0.34em;
}

@keyframes ambition-letter-wave {
    0%, 50%, 100% {
        transform: translateY(0);
    }
    12.5%, 37.5% {
        transform: translateY(-2px);
    }
    25% {
        transform: translateY(-3px);
    }
    62.5%, 87.5% {
        transform: translateY(2px);
    }
    75% {
        transform: translateY(3px);
    }
}

@keyframes screenshot-zoom-out {
    from {
        transform: scale(1.12);
    }
    to {
        transform: scale(1.04);
    }
}

@keyframes showcase-top-zigzag-drift {
    from {
        -webkit-mask-position: 0 60px, 0 0;
        mask-position: 0 60px, 0 0;
    }
    to {
        -webkit-mask-position: 0 60px, -104px 0;
        mask-position: 0 60px, -104px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ambition-showcase__backgrounds,
    .ambition-showcase__shade,
    .ambition-showcase__background.is-zooming {
        animation: none;
    }

    .ambition-showcase__background {
        transition: none;
    }

    .ambition-showcase,
    .ambition-showcase__link,
    .ambition-showcase__description,
    .ambition-showcase h1,
    .gradient-section {
        transition: none;
    }

    .ambition-showcase__letter {
        animation: none;
    }

    .ambition-showcase h1::after {
        animation: none;
    }
}

/* logo */
body > header .logo {
    display: table;
    height: 100%;
    float: left;
    user-select: none;
    margin-left: 10px;
}

body > header .logo div {
    height: 100%;
    display: table-cell;
    vertical-align: middle;
}

body > header .logo img {
    height: 100px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.363));
    transform: scale(1.1);
}

/* navigation */
nav.primary-nav {
    font-family: 'Changeling Neo', 'Afacad Flux', sans-serif;
    font-weight: normal;
    margin: 0;
}

.primary-nav__toggle {
    display: none;
}

nav.primary-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav.primary-nav ul li {
    position: relative;
    padding-right: 20px;
}

nav.primary-nav ul li::after {
    content: "•";
    position: absolute;
    right: 0;
    color: rgb(226, 205, 215);
    font-family: 'Gotham Narrow Black', sans-serif;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
}

nav.primary-nav ul li:last-child::after {
    content: "";
}

nav.primary-nav ul li a {
    font-family: 'Antaris CF', sans-serif;
    font-weight: normal;
    text-decoration: none;
    color: rgb(242, 229, 235);
    font-size: 20px;
    transition: padding 0.3s ease, letter-spacing 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;
    display: table;
    padding: 0 25px;
    height: 100%;
    line-height: 40px;
    background-color: transparent;
    position: relative;
    user-select: none;
}

nav.primary-nav ul li a:hover,
nav.primary-nav ul li a:focus-visible {
    color: #ff3a59;
    letter-spacing: 2px;
    margin-left: -1px;
    text-shadow: 0 0 10px rgba(255, 58, 89, 0.58);
    outline: none;
}

nav.primary-nav ul li a span {
    transition: transform 0.3s ease;
    display: table-cell;
    vertical-align: middle;
}

nav.primary-nav ul li a:hover span,
nav.primary-nav ul li a:focus-visible span {
    transform: scale(1.1);
}

@media (max-width: 860px) {
    body > header {
        height: 64px;
        pointer-events: none;
        background-color: rgb(42, 39, 44);
    }

    body > header::after {
        display: none;
    }

    body > header .inner {
        height: 64px;
        box-sizing: border-box;
        justify-content: flex-end;
        padding: 0 18px;
        pointer-events: none;
    }

    .primary-nav__toggle {
        position: relative;
        z-index: 7;
        display: flex;
        width: 48px;
        height: 48px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
        border: 1px solid rgba(242, 229, 235, 0.28);
        border-radius: 14px;
        background: rgba(28, 24, 30, 0.58);
        box-shadow:
            0 8px 18px rgba(10, 4, 8, 0.3),
            inset 0 1px rgba(255, 255, 255, 0.06);
        cursor: pointer;
        pointer-events: auto;
        transition:
            border-color 260ms ease-out,
            background-color 260ms ease-out,
            box-shadow 260ms ease-out,
            transform 260ms ease-out;
    }

    .primary-nav__toggle:hover,
    .primary-nav__toggle:focus-visible {
        border-color: rgba(242, 229, 235, 0.72);
        outline: none;
        background: rgba(49, 35, 44, 0.82);
        box-shadow:
            0 8px 18px rgba(10, 4, 8, 0.38),
            0 0 18px rgba(242, 229, 235, 0.16);
        transform: translateY(-1px);
    }

    .primary-nav__toggle span {
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 999px;
        background: #f2e5eb;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.38);
        transition:
            opacity 220ms ease-out,
            transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    body > header.nav-menu-open .primary-nav__toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    body > header.nav-menu-open .primary-nav__toggle span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.3);
    }

    body > header.nav-menu-open .primary-nav__toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    nav.primary-nav {
        position: absolute;
        z-index: 6;
        top: 66px;
        right: 14px;
        width: min(286px, calc(100vw - 28px));
        box-sizing: border-box;
        overflow: hidden;
        padding: 12px;
        border: 1px solid rgba(242, 229, 235, 0.26);
        border-radius: 18px;
        background:
            linear-gradient(145deg, rgba(51, 45, 53, 0.98), rgba(31, 25, 32, 0.98));
        box-shadow:
            0 24px 42px rgba(9, 3, 7, 0.62),
            0 0 24px rgba(231, 77, 119, 0.12),
            inset 0 1px rgba(255, 255, 255, 0.07);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px) scale(0.96);
        transform-origin: top right;
        visibility: hidden;
        transition:
            opacity 240ms ease-out,
            transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0s linear 360ms;
    }

    body > header.nav-menu-open nav.primary-nav {
        opacity: 1;
        pointer-events: auto;
        transform: none;
        visibility: visible;
        transition:
            opacity 240ms ease-out,
            transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0s;
    }

    nav.primary-nav ul {
        flex-direction: column;
        gap: 3px;
    }

    nav.primary-nav ul li {
        padding: 0;
    }

    nav.primary-nav ul li::after {
        content: none;
    }

    nav.primary-nav ul li a {
        display: block;
        height: auto;
        padding: 10px 16px;
        border-radius: 11px;
        line-height: 1.5;
        text-align: right;
        transition:
            background-color 240ms ease-out,
            color 240ms ease-out,
            letter-spacing 240ms ease-out,
            transform 240ms ease-out;
    }

    nav.primary-nav ul li a:hover,
    nav.primary-nav ul li a:focus-visible {
        margin-left: 0;
        background: rgba(236, 45, 96, 0.14);
        transform: translateX(-4px);
    }

    nav.primary-nav ul li a span {
        display: block;
    }

    .team-section__heading h2 {
        font-size: clamp(30px, 10vw, 64px);
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .ambition-showcase h1 {
        font-size: clamp(18px, 6.6vw, 36px);
        letter-spacing: 0.025em;
        white-space: nowrap;
    }

    .team-stage__content h3 {
        font-size: clamp(24px, 9.5vw, 52px);
        letter-spacing: 0.02em;
        overflow-wrap: normal;
        white-space: nowrap;
        word-break: normal;
    }
}

.secondary-header__socials {
    position: absolute;
    z-index: 6;
    bottom: 82px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.secondary-header__socials ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.secondary-header__socials li {
    margin: 0 10px;
}

.secondary-header__socials a {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
}

.secondary-header__socials img {
    position: absolute;
    inset: 0;
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    -webkit-user-drag: none;
    opacity: 1;
    transition:
        opacity 260ms ease-out,
        transform 300ms ease-out;
}

.secondary-header__socials .social-icon--base {
    z-index: 1;
    filter:
        drop-shadow(-4px 6px 0 rgba(0, 0, 0, 0.78))
        drop-shadow(0 7px 7px rgba(0, 0, 0, 0.62));
}

.secondary-header__socials .social-icon--shadow {
    z-index: 0;
    opacity: 0.78;
    filter: brightness(0);
    transform: translate(-4px, 6px);
}

.secondary-header__socials .has-layered-social-shadow .social-icon--base {
    filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.62));
}

.secondary-header__socials .social-icon--hover {
    z-index: 2;
    opacity: 0;
    filter:
        brightness(0)
        saturate(100%)
        invert(91%)
        sepia(8%)
        saturate(348%)
        hue-rotate(286deg)
        brightness(104%)
        contrast(94%)
        drop-shadow(0 0 9px rgba(242, 229, 235, 0.62));
}

.secondary-header__socials a:hover .social-icon--base,
.secondary-header__socials a:focus-visible .social-icon--base {
    opacity: 0;
    transform: scale(1.2);
}

.secondary-header__socials a:hover .social-icon--shadow,
.secondary-header__socials a:focus-visible .social-icon--shadow {
    transform: translate(-4px, 6px) scale(1.2);
}

.secondary-header__socials a:hover .social-icon--hover,
.secondary-header__socials a:focus-visible .social-icon--hover {
    opacity: 1;
    transform: scale(1.2);
}

.secondary-header__socials a:focus-visible {
    outline: 2px solid rgba(242, 229, 235, 0.75);
    outline-offset: 5px;
    border-radius: 2px;
}

body > .page-secondary-header {
    position: relative;
    z-index: 10;
    top: auto;
    left: auto;
    width: 100%;
    height: 300px;
    flex: 0 0 300px;
    margin-top: 80px;
    margin-bottom: -60px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
        height 900ms cubic-bezier(0.16, 1, 0.3, 1),
        flex-basis 900ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 500ms ease-out,
        opacity 350ms ease-out,
        visibility 0s;
}

.page-transition-overlay {
    position: fixed;
    z-index: 900;
    inset: 0;
    pointer-events: none;
    background: transparent;
    opacity: 0;
    transition: opacity 560ms ease-in-out;
}

html.page-transition-leaving .page-transition-overlay,
html.page-transition-arriving .page-transition-overlay {
    opacity: 0;
}

html.page-transition-leaving .page-transition-overlay {
    pointer-events: auto;
}

html.page-transition-leaving .page-secondary-header,
html.page-transition-arriving .page-secondary-header {
    z-index: 901;
}

html.page-transition-leaving body > .page-secondary-header {
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px + 110px);
    height: calc(100svh - 80px + 110px);
    flex-basis: calc(100vh - 80px + 110px);
    margin: 0;
}

html.page-transition-arriving body > .page-secondary-header {
    height: calc(100vh - 80px + 110px);
    height: calc(100svh - 80px + 110px);
    flex-basis: calc(100vh - 80px + 110px);
}

html.page-transition-leaving .page-secondary-header .secondary-header__checker-plane,
html.page-transition-arriving .page-secondary-header .secondary-header__checker-plane {
    right: -170%;
    left: -170%;
    height: 4200px;
    transform: perspective(1600px) rotateX(38deg);
}

html.page-transition-leaving .page-secondary-header .secondary-header__logo,
html.page-transition-arriving .page-secondary-header .secondary-header__logo {
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%);
}

html.page-transition-leaving .page-secondary-header .secondary-header__socials,
html.page-transition-arriving .page-secondary-header .secondary-header__socials {
    opacity: 0;
    transform: translate(-50%, -40px);
}

.page-secondary-header .secondary-header__logo {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition:
        top 900ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 300ms ease-out,
        transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.page-secondary-header .secondary-header__socials {
    opacity: 1;
    transform: translate(-50%, 0);
    transition:
        opacity 300ms ease-out,
        transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.page-secondary-header.is-content-hidden .secondary-header__logo {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 54px));
}

.page-secondary-header.is-content-hidden .secondary-header__socials {
    opacity: 0;
    transform: translate(-50%, -54px);
}

.home-page > main,
.projects-page > .projects-main {
    padding-top: 0;
}

.home-page > main {
    background: none;
}

@media (max-width: 860px) {
    body > .page-secondary-header {
        margin-top: 64px;
    }

    html.page-transition-leaving body > .page-secondary-header {
        top: 64px;
        height: calc(100vh - 64px + 110px);
        height: calc(100svh - 64px + 110px);
        flex-basis: calc(100vh - 64px + 110px);
    }

    html.page-transition-arriving body > .page-secondary-header {
        height: calc(100vh - 64px + 110px);
        height: calc(100svh - 64px + 110px);
        flex-basis: calc(100vh - 64px + 110px);
    }
}

.section-text {
    font-family: 'Gotham Narrow Black', sans-serif;
    font-size: 48px;
    color: rgb(255, 255, 255);
    position: relative;
    text-align: center;
    z-index: 10;
}

/* projects page */
.projects-page {
    --projects-ink: #170a13;
    --projects-plum: #2b0a27;
    --projects-red: #dc1747;
    height: auto;
    min-height: 100vh;
    overflow-x: clip;
    overflow-y: auto;
    background: var(--projects-ink);
}

.projects-main {
    --checker-parallax: 0px;
    --projects-scroll-parallax: 0px;
    --projects-curve-checker-y: -120px;
    --projects-curve-height: 190px;
    --projects-glow-overscan: 140px;
    --projects-intro-height: 500px;
    --projects-list-parallax: 0px;
    --projects-focus-shift: 0px;
    --projects-title-opacity: 1;
    --projects-title-scale: 1;
    --projects-pattern-opacity: 0.26;
    --projects-focus-overlay: rgba(20, 9, 14, 0);
    --projects-list-background: #15090f;
    --projects-adventure-gradient: linear-gradient(135deg, #ee2148 0%, #c21853 48%, #7e1a75 100%);
    position: relative;
    flex: 0 0 auto;
    isolation: isolate;
    overflow: visible;
    padding-top: 0;
    background: var(--projects-ink);
}

.projects-main::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: calc(var(--projects-intro-height) + 5px);
    right: 0;
    left: 0;
    height: var(--projects-curve-height);
    pointer-events: none;
    background: #14090e;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    filter: drop-shadow(0 7px 9px rgba(5, 0, 4, 0.38));
    transform: translateY(var(--projects-focus-shift));
    will-change: transform;
}

.projects-adventure-surface {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: calc(var(--projects-intro-height) + var(--projects-curve-height));
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(var(--projects-focus-overlay), var(--projects-focus-overlay)),
        radial-gradient(circle at 50% 32%, rgba(255, 49, 77, 0.34), transparent 47%),
        var(--projects-adventure-gradient);
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    -webkit-mask-position: top, bottom;
    mask-position: top, bottom;
    -webkit-mask-size:
        100% calc(100% - var(--projects-curve-height)),
        100% var(--projects-curve-height);
    mask-size:
        100% calc(100% - var(--projects-curve-height)),
        100% var(--projects-curve-height);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    box-shadow: inset 0 58px 70px -52px rgba(0, 0, 0, 0.72);
    transform: translateY(var(--projects-focus-shift));
    will-change: transform;
}

.projects-adventure-surface::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 4, 15, 0.22), transparent 26%, transparent 100%),
        radial-gradient(ellipse 52% 74% at 50% 54%, transparent 28%, rgba(42, 5, 31, 0.34) 100%);
}

.projects-adventure-surface__checker {
    position: absolute;
    z-index: 1;
    inset: -120px;
    background: rgba(255, 92, 111, 0.62);
    -webkit-mask-image: url("media/SVGs/Checkboard.svg");
    mask-image: url("media/SVGs/Checkboard.svg");
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 90px 90px;
    mask-size: 90px 90px;
    opacity: var(--projects-pattern-opacity);
    --checker-parallax: var(--projects-scroll-parallax, 0px);
    animation: home-checker-drift 5s linear infinite;
}

.projects-intro {
    position: relative;
    z-index: 5;
    display: grid;
    min-height: clamp(320px, 36vw, 500px);
    box-sizing: border-box;
    place-content: center;
    isolation: isolate;
    overflow: hidden;
    padding: 78px 28px 138px;
    background: transparent;
    text-align: center;
    transform: translateY(var(--projects-focus-shift));
    will-change: transform;
}

.projects-intro::before {
    content: none;
}

.projects-intro::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 60px;
    pointer-events: none;
    background: #14090e;
    -webkit-mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    mask-image: conic-gradient(
        from 135deg at 50% 0,
        transparent 0 90deg,
        #000 90deg 360deg
    );
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-size: 104px 60px;
    mask-size: 104px 60px;
    animation: zigzag-edge-drift 2s linear infinite;
}

.projects-intro__checker {
    display: none;
}

.projects-intro h1 {
    --project-title-accent-scale: 1;
    --project-title-accent-glow: 0px;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    color: #f8e9ef;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(34px, 4.3vw, 66px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.025em;
    opacity: var(--projects-title-opacity);
    transform: translateY(82px) scale(var(--projects-title-scale));
    transform-origin: center;
    text-shadow: none;
}

.projects-intro h1::after {
    content: "";
    position: absolute;
    top: calc(100% + 25px);
    left: 50%;
    width: min(280px, 66%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92) 18%, #fff 50%, rgba(255, 255, 255, 0.92) 82%, transparent);
    filter:
        drop-shadow(0 4px 0 rgba(111, 8, 46, 0.9))
        drop-shadow(0 8px 7px rgba(25, 2, 18, 0.68))
        drop-shadow(0 0 var(--project-title-accent-glow) rgba(255, 244, 248, 0.82));
    transform: translateX(-50%) scale(var(--project-title-accent-scale));
    transform-origin: center;
    transition:
        transform 150ms ease-out,
        filter 180ms ease-out;
}

.project-title__letter {
    --project-letter-scale: 1;
    --project-letter-lift: 0px;
    --project-letter-glow-size: 0px;
    --project-letter-glow-opacity: 0;
    display: inline-block;
    transform: translateY(var(--project-letter-lift)) scale(var(--project-letter-scale));
    transform-origin: center 72%;
    text-shadow:
        0 5px 0 rgba(111, 8, 46, 0.84),
        0 10px 24px rgba(25, 2, 18, 0.7),
        0 0 var(--project-letter-glow-size) rgba(255, 41, 92, var(--project-letter-glow-opacity));
    transition:
        transform 150ms ease-out,
        text-shadow 180ms ease-out;
    will-change: transform, text-shadow;
}

.project-title__letter--space {
    width: 0.3em;
}

.projects-intro p {
    width: min(760px, 100%);
    margin: 30px auto 0;
    padding: 0;
    color: rgba(248, 233, 239, 0.82);
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.42;
    text-shadow: 0 4px 12px rgba(24, 2, 16, 0.66);
}

.projects-catalog {
    position: relative;
    z-index: 1;
    isolation: isolate;
    min-height: 770px;
    padding: 105px 0 150px;
    background: var(--projects-list-background);
}

.projects-catalog::before {
    content: none;
}

.projects-catalog::after {
    content: none;
    position: absolute;
    z-index: 3;
    top: 4px;
    left: 0;
    width: 100%;
    height: var(--projects-curve-height);
    background: rgba(35, 5, 23, 0.94);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    filter: drop-shadow(0 5px 8px rgba(5, 0, 4, 0.28));
    pointer-events: none;
    transform: translateY(var(--projects-focus-shift));
}

.projects-catalog__curve {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--projects-curve-height);
    overflow: hidden;
    background: transparent;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    box-shadow: none;
    pointer-events: none;
    transform: translateY(var(--projects-focus-shift));
    will-change: transform;
}

.projects-catalog__curve::after {
    content: none;
}

.projects-catalog__curve::before {
    content: none;
}

.project-carousel {
    position: relative;
    z-index: 1;
    width: 100%;
}

.project-carousel__viewport {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    padding: 70px max(5vw, 38px) 85px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
}

.project-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.project-carousel__viewport:focus-visible {
    outline: 3px solid rgba(248, 233, 239, 0.7);
    outline-offset: -12px;
}

.project-carousel__track {
    display: flex;
    width: max-content;
    gap: clamp(20px, 2vw, 34px);
}

.project-card {
    position: relative;
    display: block;
    width: clamp(320px, 28vw, 460px);
    height: clamp(520px, 46vw, 650px);
    flex: 0 0 auto;
    isolation: isolate;
    overflow: hidden;
    border: 0;
    border-radius: 82px 28px 82px 28px;
    background: #250818;
    box-shadow:
        0 28px 44px rgba(0, 0, 0, 0.56),
        0 8px 18px rgba(0, 0, 0, 0.38),
        inset 0 0 0 2px rgba(246, 205, 220, 0.18);
    scroll-snap-align: center;
    transform: perspective(1000px) translateZ(0) scale(0.97);
    transform-origin: center;
    transition:
        box-shadow 420ms ease-out,
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -4%;
    background-image: var(--project-background);
    background-position: center;
    background-size: cover;
    filter: brightness(0.48) saturate(0.7) contrast(1.08);
    transform: scale(1.04);
    transition:
        filter 520ms ease-out,
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 4, 13, 0.32), rgba(24, 4, 16, 0.18) 34%, rgba(20, 3, 15, 0.91) 82%),
        linear-gradient(135deg, rgba(156, 16, 64, 0.2), rgba(55, 7, 51, 0.3));
    transition: opacity 480ms ease-out;
}

.project-card__content {
    display: flex;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(26px, 2.6vw, 42px);
}

.project-card__type {
    color: #faeaf0;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.72);
}

.project-card__type::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 13px;
    border-radius: 99px;
    background: #ef315d;
    box-shadow: 0 4px 0 rgba(76, 4, 35, 0.78);
}

.project-card__logo {
    display: block;
    width: min(86%, 350px);
    max-height: 190px;
    margin: clamp(40px, 7vh, 78px) auto 0;
    object-fit: contain;
    filter:
        drop-shadow(0 8px 0 rgba(61, 4, 31, 0.72))
        drop-shadow(0 18px 20px rgba(0, 0, 0, 0.66));
    transition:
        filter 440ms ease-out,
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card p {
    width: 100%;
    box-sizing: border-box;
    margin: auto 0 0;
    padding: 0;
    color: rgba(248, 233, 239, 0.77);
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(17px, 1.3vw, 21px);
    line-height: 1.44;
    text-shadow: 0 3px 9px rgba(0, 0, 0, 0.75);
}

.project-card__action {
    display: inline-flex;
    margin: 26px 0 0;
    padding: 0;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #ff7898;
    cursor: pointer;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(20px);
    transition:
        color 260ms ease-out,
        letter-spacing 260ms ease-out,
        opacity 300ms ease-out,
        transform 430ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover,
.project-card:focus-within,
.project-card:focus-visible {
    outline: none;
    box-shadow:
        0 38px 62px rgba(0, 0, 0, 0.64),
        0 12px 24px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(238, 42, 96, 0.42),
        inset 0 0 0 2px rgba(255, 218, 229, 0.66);
    transform: perspective(1000px) translateY(-18px) translateZ(48px) scale(1.025);
}

.project-card:hover::before,
.project-card:focus-within::before,
.project-card:focus-visible::before {
    filter: brightness(0.88) saturate(1.08) contrast(1.03);
    transform: scale(1);
}

.project-card:hover .project-card__shade,
.project-card:focus-within .project-card__shade,
.project-card:focus-visible .project-card__shade {
    opacity: 0.72;
}

.project-card:hover .project-card__logo,
.project-card:focus-within .project-card__logo,
.project-card:focus-visible .project-card__logo {
    filter:
        drop-shadow(0 8px 0 rgba(87, 5, 40, 0.76))
        drop-shadow(0 20px 24px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 14px rgba(255, 202, 220, 0.23));
    transform: scale(1.035);
}

.project-card:hover .project-card__action,
.project-card:focus-within .project-card__action,
.project-card:focus-visible .project-card__action {
    opacity: 1;
    transform: translateY(0);
}

.project-card__action:hover,
.project-card__action:focus-visible {
    color: #fff1f6;
    letter-spacing: 0.075em;
    outline: none;
}

.project-carousel__edge {
    position: absolute;
    z-index: 5;
    top: 18px;
    bottom: 30px;
    display: grid;
    width: clamp(100px, 13vw, 210px);
    padding: 0;
    place-items: center;
    border: 0;
    color: #f9eaf0;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease-out;
}

.project-carousel__edge span {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 2px solid rgba(249, 234, 240, 0.42);
    border-radius: 50%;
    background: rgba(28, 7, 29, 0.58);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
    font-size: 55px;
    font-weight: 400;
    line-height: 0;
    backdrop-filter: blur(7px);
    transition:
        background-color 240ms ease-out,
        border-color 240ms ease-out,
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-carousel__edge--previous {
    left: 0;
    background: linear-gradient(90deg, rgba(29, 6, 32, 0.98), rgba(44, 8, 48, 0.72) 54%, transparent);
}

.project-carousel__edge--next {
    right: 0;
    background: linear-gradient(270deg, rgba(29, 6, 32, 0.98), rgba(44, 8, 48, 0.72) 54%, transparent);
}

.project-carousel.is-near-previous .project-carousel__edge--previous:not(:disabled),
.project-carousel.is-near-next .project-carousel__edge--next:not(:disabled),
.project-carousel__edge:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.project-carousel__edge:hover span,
.project-carousel__edge:focus-visible span {
    border-color: rgba(255, 233, 241, 0.78);
    background: rgba(122, 16, 78, 0.7);
    transform: scale(1.09);
}

.project-carousel__edge:focus-visible {
    outline: none;
}

.project-carousel__edge:disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 860px) {
    .projects-main {
        --projects-curve-height: 145px;
    }

    .projects-intro {
        min-height: 320px;
        padding: 70px 20px 110px;
    }

    .projects-intro h1 {
        max-width: calc(100vw - 28px);
        font-size: clamp(17px, 5.8vw, 44px);
        white-space: nowrap;
    }

    .projects-catalog {
        padding-top: 70px;
    }

    .projects-catalog__curve {
        top: 0;
        height: 145px;
    }

    .projects-catalog::after {
        top: 4px;
        height: 145px;
    }

    .projects-catalog::before {
        content: none;
    }

    .project-carousel__viewport {
        padding: 60px 9vw 75px;
    }

    .project-card {
        width: 78vw;
        min-width: 285px;
        height: min(600px, 70vh);
        min-height: 480px;
        border-radius: 58px 24px 58px 24px;
    }

    .project-carousel__edge {
        width: 74px;
    }

    .project-carousel__edge span {
        width: 48px;
        height: 48px;
        font-size: 43px;
    }
}

@media (hover: none) {
    .project-carousel__edge:not(:disabled) {
        top: auto;
        bottom: 12px;
        width: 68px;
        height: 68px;
        opacity: 0.8;
        pointer-events: auto;
        background: transparent;
    }

    .project-card__action {
        opacity: 1;
        transform: none;
    }
}

/* project selector */
.projects-catalog {
    min-height: 0;
    padding: 0;
}

.project-stack {
    --panel-curve-overshoot: 190px;
    --panel-overlap: clamp(132px, 11vw, 220px);
    --panel-logo-shift: clamp(66px, 5.5vw, 110px);
    --panel-width: 730px;
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: clamp(832px, calc(90vh + 22px), 1022px);
    min-height: 0;
    isolation: isolate;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--projects-list-background);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: none;
    transform: translateY(var(--project-list-offset, 64px));
}

.project-stack::-webkit-scrollbar {
    display: none;
}

.project-panel {
    --panel-point-depth: clamp(105px, 9vw, 170px);
    position: relative;
    display: flex;
    min-width: 0;
    box-sizing: border-box;
    flex: 0 0 var(--panel-width);
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    margin-left: calc(var(--panel-overlap) * -1);
    margin-right: 0;
    height: calc(100% + (var(--panel-curve-overshoot) * 2));
    margin-top: calc(var(--panel-curve-overshoot) * -1);
    padding: calc(var(--panel-curve-overshoot) + clamp(42px, 4.6vw, 78px)) clamp(32px, 4.3vw, 76px) calc(var(--panel-curve-overshoot) + 58px) calc(var(--panel-overlap) + clamp(26px, 3vw, 52px));
    border: 0;
    border-radius: 0;
    clip-path: polygon(
        0 0,
        calc(100% - var(--panel-point-depth)) 0,
        100% 50%,
        calc(100% - var(--panel-point-depth)) 100%,
        0 100%
    );
    background: #26080f;
    color: #f8e9ef;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        16px 0 26px rgba(5, 0, 4, 0.68),
        inset -13px 0 22px rgba(20, 2, 15, 0.26);
    filter:
        brightness(1)
        saturate(1)
        drop-shadow(6px 0 0 #14090e);
    transition:
        border-color 300ms ease-out,
        box-shadow 420ms ease-out,
        flex-basis 660ms cubic-bezier(0.16, 1, 0.3, 1),
        flex-grow 660ms cubic-bezier(0.16, 1, 0.3, 1),
        margin-right 660ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 420ms ease-out;
    scroll-snap-align: center;
}

.project-panel:first-child {
    z-index: 7;
    flex-basis: var(--panel-width);
    margin-left: calc(var(--panel-overlap) * -1);
    padding-left: calc(var(--panel-overlap) + clamp(34px, 4vw, 72px));
}

.project-panel:nth-child(2) {
    z-index: 6;
}

.project-panel:nth-child(3) {
    z-index: 5;
}

.project-panel:nth-child(4) {
    z-index: 4;
}

.project-panel:nth-child(5) {
    z-index: 3;
}

.project-panel:nth-child(6) {
    z-index: 2;
}

.project-panel:nth-child(7) {
    z-index: 1;
}

.project-panel--empty {
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(65, 8, 22, 0.94), rgba(22, 4, 10, 0.98));
}

.project-panel::after {
    content: "";
    position: absolute;
    inset: -18px;
    pointer-events: none;
}

.project-panel::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: var(--panel-curve-overshoot);
    right: 0;
    left: 0;
    height: clamp(320px, 55%, 560px);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 1, 6, 0.88), rgba(12, 2, 9, 0.58) 44%, rgba(18, 3, 13, 0.24) 72%, transparent 100%);
    opacity: 0;
    transform: translateY(-100%);
    transition:
        opacity 360ms ease-out,
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-panel__background {
    position: absolute;
    z-index: 0;
    inset: -130px -40px;
    width: calc(100% + 80px);
    height: calc(100% + 260px);
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    filter: blur(11px) brightness(0.92) saturate(1);
    transform: translate3d(0, var(--projects-list-parallax), 0) scale(1.1);
    transition:
        filter 560ms ease-out,
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-panel::after {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(31, 3, 10, 0.22), rgba(45, 4, 14, 0.48) 72%, rgba(24, 2, 8, 0.72)),
        linear-gradient(180deg, rgba(22, 2, 8, 0.3), transparent 30%, rgba(23, 2, 8, 0.68));
    opacity: 0.24;
    transition: opacity 480ms ease-out;
}

.project-panel:nth-child(2)::after {
    opacity: 0.24;
}

.project-panel:nth-child(3)::after {
    opacity: 0.24;
}

.project-panel:nth-child(4)::after {
    opacity: 0.24;
}

.project-panel > * {
    position: relative;
    z-index: 2;
}

.project-panel > .project-panel__background {
    position: absolute;
    z-index: 0;
}

.project-panel > .project-panel__divider {
    position: absolute;
    z-index: 5;
    top: 0;
    right: -2px;
    bottom: 0;
    display: block;
    width: calc(var(--panel-point-depth) + 8px);
    pointer-events: none;
    background: #14090e;
    clip-path: polygon(
        0 0,
        6px 0,
        100% 50%,
        6px 100%,
        0 100%,
        calc(100% - 8px) 50%
    );
    filter:
        drop-shadow(-4px 0 3px rgba(125, 21, 49, 0.82))
        drop-shadow(-9px 0 12px rgba(225, 53, 91, 0.34));
    transition: filter 320ms ease-out;
}

.project-panel:hover > .project-panel__divider,
.project-panel:focus-visible > .project-panel__divider {
    filter:
        drop-shadow(-4px 0 3px rgba(166, 30, 63, 0.94))
        drop-shadow(-11px 0 15px rgba(246, 62, 101, 0.52));
}

.project-panel__type {
    color: rgba(250, 235, 241, 0.88);
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-shadow: 0 3px 9px rgba(0, 0, 0, 0.78);
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 280ms ease-out,
        transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-panel__logo-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: min(118%, 580px);
    height: 300px;
    box-sizing: border-box;
    padding-inline: 0;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.68);
    transition:
        left 560ms cubic-bezier(0.16, 1, 0.3, 1),
        top 660ms cubic-bezier(0.16, 1, 0.3, 1),
        padding-inline 560ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 660ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-panel:not(:first-child) .project-panel__logo-frame {
    left: calc(50% + var(--panel-logo-shift) - 24px);
}

.project-panel:first-child .project-panel__logo-frame {
    left: calc(50% + var(--panel-logo-shift) - 24px);
}

.project-panel__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
    transition:
        filter 440ms ease-out,
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}


.project-panel__description {
    display: block;
    width: min(100%, 440px);
    margin: 390px 0 0;
    color: rgba(248, 233, 239, 0.82);
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(18px, 1.35vw, 22px);
    line-height: 1.45;
    text-shadow: 0 3px 9px rgba(0, 0, 0, 0.78);
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 300ms ease-out 80ms,
        transform 480ms cubic-bezier(0.16, 1, 0.3, 1) 40ms;
}

.project-panel__action {
    display: inline-flex;
    margin-top: auto;
    padding-top: 32px;
    align-items: center;
    gap: 10px;
    color: #ff6178;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(20px);
    transition:
        color 260ms ease-out,
        letter-spacing 260ms ease-out,
        opacity 300ms ease-out,
        transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-panel:hover,
.project-panel:focus-visible {
    flex-basis: calc(var(--panel-width) + 120px);
    margin-right: -120px;
    filter:
        brightness(1)
        saturate(1)
        drop-shadow(7px 0 0 rgba(77, 7, 24, 0.98));
    outline: none;
    box-shadow:
        28px 0 48px rgba(8, 1, 7, 0.62),
        12px 0 30px rgba(239, 33, 67, 0.28),
        inset -13px 0 22px rgba(20, 2, 15, 0.16);
}

.project-panel:first-child:hover,
.project-panel:first-child:focus-visible {
    flex-basis: calc(var(--panel-width) + 120px);
}

.project-panel:hover .project-panel__background,
.project-panel:focus-visible .project-panel__background {
    filter: blur(8px) brightness(0.96) saturate(1.05);
    transform: translate3d(0, var(--projects-list-parallax), 0) scale(1.07);
}

.project-panel:hover::after,
.project-panel:focus-visible::after {
    opacity: 0.2;
}

.project-panel:hover .project-panel__logo,
.project-panel:focus-visible .project-panel__logo {
    filter: none;
    transform: scale(1.035);
}

.project-panel:hover::before,
.project-panel:focus-visible::before {
    opacity: 1;
    transform: translateY(0);
}

.project-panel:hover .project-panel__logo-frame,
.project-panel:focus-visible .project-panel__logo-frame {
    top: calc(var(--panel-curve-overshoot) + 268px);
    left: calc(50% + var(--panel-logo-shift) - 34px);
    padding-inline: clamp(26px, 3vw, 58px);
    transform: translate(-50%, -50%) scale(1);
}

.project-panel:hover .project-panel__description,
.project-panel:focus-visible .project-panel__description {
    opacity: 1;
    transform: translateY(0);
}

.project-panel:hover .project-panel__action,
.project-panel:focus-visible .project-panel__action {
    color: #fff0f5;
    letter-spacing: 0.075em;
    opacity: 1;
    transform: translateY(0);
}

@supports selector(.project-stack:has(.project-panel:hover)) {
    .project-stack:has(.project-panel:hover) .project-panel:not(:hover) {
        filter:
            brightness(0.48)
            saturate(0.62)
            drop-shadow(6px 0 0 #14090e);
    }
}


.projects-page .project-panel[data-project-placeholder] {
    cursor: default;
}
.projects-page .project-carousel {
    --project-list-offset: 74px;
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: -48px;
    padding-bottom: var(--project-list-offset);
    -webkit-mask-image:
        radial-gradient(ellipse 60% 100% at 50% 100%, #000 99.2%, transparent 100%),
        linear-gradient(#000 0 0);
    mask-image:
        radial-gradient(ellipse 60% 100% at 50% 100%, #000 99.2%, transparent 100%),
        linear-gradient(#000 0 0);
    -webkit-mask-position: center top, center bottom;
    mask-position: center top, center bottom;
    -webkit-mask-size: 100% 190px, 100% calc(100% - 190px);
    mask-size: 100% 190px, 100% calc(100% - 190px);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    opacity: 0;
    pointer-events: none;
    transform: translateY(48px) scale(0.985);
    transform-origin: center top;
    visibility: hidden;
    transition:
        opacity 620ms ease-out,
        transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 760ms;
    will-change: opacity, transform;
}

.projects-page .project-carousel.is-project-list-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition:
        opacity 620ms ease-out,
        transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s;
}

.projects-page .project-carousel::after {
    content: "";
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    height: 96px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(7, 1, 6, 0.58));
}

.projects-page .project-carousel::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    height: 96px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 1, 6, 0.58), transparent);
}

.projects-page .project-carousel__edge {
    top: var(--project-list-offset);
    bottom: 0;
    opacity: 0.72;
    pointer-events: auto;
    transition:
        opacity 280ms ease-out,
        transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-page .project-carousel__edge--previous {
    background: linear-gradient(90deg, rgba(31, 8, 13, 0.97), rgba(111, 17, 35, 0.64) 58%, transparent);
    transform: translateX(-68%);
}

.projects-page .project-carousel__edge--next {
    background: linear-gradient(270deg, rgba(31, 8, 13, 0.97), rgba(111, 17, 35, 0.64) 58%, transparent);
    transform: translateX(68%);
}

.projects-page .project-carousel__edge span {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(255, 214, 226, 0.24);
}

.projects-page .project-carousel__edge:hover,
.projects-page .project-carousel__edge:focus-visible,
.projects-page .project-carousel.is-near-previous .project-carousel__edge--previous:not(:disabled),
.projects-page .project-carousel.is-near-next .project-carousel__edge--next:not(:disabled) {
    opacity: 1;
    transform: translateX(0);
}

.projects-page .project-carousel__edge:hover span,
.projects-page .project-carousel__edge:focus-visible span {
    border: 0;
    background: transparent;
}

.projects-page .project-carousel__edge:disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 860px) {
    .projects-page {
        width: 100%;
        max-width: 100vw;
        overflow-x: clip;
    }

    .projects-page .project-carousel {
        --project-list-offset: 42px;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        margin-top: -32px;
        -webkit-mask-size: 100% 145px, 100% calc(100% - 145px);
        mask-size: 100% 145px, 100% calc(100% - 145px);
    }

    .project-stack {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-direction: column;
        contain: inline-size;
        overflow: hidden;
    }

    .project-panel,
    .project-panel:first-child {
        --vertical-panel-width: 1200px;
        --vertical-panel-inset: calc(600px - 50vw);
        width: var(--vertical-panel-width);
        max-width: none;
        height: min(542px, calc(68vh + 22px));
        min-height: 452px;
        flex: none;
        margin: -58px 0 0 calc(50% - 600px);
        padding: 72px calc(var(--vertical-panel-inset) + 72px) 48px calc(var(--vertical-panel-inset) + 28px);
        --panel-point-depth: clamp(64px, 13vw, 104px);
        border: 0;
        border-radius: 0;
        clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - var(--panel-point-depth)),
            50% 100%,
            0 calc(100% - var(--panel-point-depth))
        );
        filter:
            brightness(1)
            saturate(1)
            drop-shadow(0 6px 0 #14090e);
        box-shadow:
            0 22px 34px rgba(5, 0, 4, 0.68),
            inset 0 -13px 22px rgba(20, 2, 15, 0.26);
    }

    .project-panel > .project-panel__divider {
        top: auto;
        right: 0;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: calc(var(--panel-point-depth) + 8px);
        clip-path: polygon(
            0 0,
            0 6px,
            50% 100%,
            100% 6px,
            100% 0,
            50% calc(100% - 8px)
        );
        filter:
            drop-shadow(0 -4px 3px rgba(125, 21, 49, 0.82))
            drop-shadow(0 -9px 12px rgba(225, 53, 91, 0.34));
    }

    .project-panel:hover > .project-panel__divider,
    .project-panel:focus-visible > .project-panel__divider {
        filter:
            drop-shadow(0 -4px 3px rgba(166, 30, 63, 0.94))
            drop-shadow(0 -11px 15px rgba(246, 62, 101, 0.52));
    }

    .project-panel::before {
        top: 0;
        height: clamp(300px, 58%, 440px);
    }

    .project-panel:first-child {
        margin-top: 0;
        padding-left: calc(var(--vertical-panel-inset) + 28px);
    }

    .project-panel:hover,
    .project-panel:focus-visible,
    .project-panel:first-child:hover,
    .project-panel:first-child:focus-visible {
        flex-basis: auto;
        margin-right: 0;
        filter:
            brightness(1)
            saturate(1)
            drop-shadow(0 7px 0 rgba(52, 6, 31, 0.98));
        box-shadow:
            0 30px 48px rgba(8, 1, 7, 0.62),
            0 14px 30px rgba(237, 41, 101, 0.24),
            inset 0 -13px 22px rgba(20, 2, 15, 0.16);
    }

    .project-panel__logo {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }

    .project-panel__logo-frame {
        left: 50%;
        width: min(94%, 460px);
        height: 230px;
    }

    .projects-intro h1 {
        transform: translateY(52px) scale(var(--projects-title-scale));
    }

    .project-panel:not(:first-child) .project-panel__logo-frame {
        left: 50%;
    }

    .project-panel:first-child .project-panel__logo-frame {
        left: 50%;
    }

    .project-panel:hover .project-panel__logo-frame,
    .project-panel:focus-visible .project-panel__logo-frame {
        top: 231px;
        left: 50%;
    }

    .project-panel__description {
        margin-top: 240px;
    }
}

.projects-page,
.projects-page *,
.team-section,
.team-section * {
    -webkit-user-select: none;
    user-select: none;
}

.projects-page img,
.team-section img {
    -webkit-user-drag: none;
}

/* Project detail pages */
.project-detail-page {
    --project-detail-accent: #ff344f;
    --project-detail-accent-rgb: 255, 52, 79;
    --project-detail-ink: rgb(31, 14, 21);
    height: auto;
    min-height: 100vh;
    overflow-x: clip;
    background: var(--project-detail-ink);
}


.project-detail-page--wtbcr {
    --project-detail-accent: #ffd34f;
    --project-detail-accent-rgb: 255, 211, 79;
}

.project-detail-page--mlc {
    --project-detail-accent: #ff3855;
    --project-detail-accent-rgb: 255, 56, 85;
    --project-detail-ink: #15070b;
    --mlc-credits-seam-color: #1a080d;
    --mlc-terminal-accent: #ff3550;
    --mlc-terminal-accent-hot: #ff5a70;
    --mlc-terminal-copy: #ec687d;
    --mlc-terminal-copy-rgb: 236, 104, 125;
    --mlc-terminal-muted: #c75569;
    --mlc-terminal-glow-rgb: 255, 52, 80;
}












.project-detail-page--mlc .project-detail-hero__inner {
    display: flex;
    width: min(920px, 100%);
    justify-content: center;
}

.project-detail-page--mlc .project-detail-branding {
    width: min(760px, 100%);
}

.project-detail-page--mlc .project-detail-branding__logo {
    transform: translateX(-7px);
}

.project-detail-page--mlc .project-detail-download {
    justify-content: center;
}

.project-detail-page--mlc .project-detail-branding__logo {
    filter:
        drop-shadow(0 16px 13px rgba(0, 0, 0, 0.78))
        drop-shadow(0 0 24px rgba(var(--project-detail-accent-rgb), 0.3));
}

.project-detail-page--mlc .project-detail-download:has(.project-platform-list) {
    --download-bevel: 18px;
    background: rgba(255, 69, 94, 0.9);
}

.project-detail-page--mlc .project-detail-download:has(.project-platform-list)::before {
    background: rgba(36, 7, 15, 0.98);
}

.project-detail-page--mlc .project-detail-hero__shade {
    background:
        radial-gradient(circle at 72% 42%, rgba(var(--project-detail-accent-rgb), 0.3), transparent 40%),
        linear-gradient(110deg, rgba(20, 4, 8, 0.28), rgba(58, 9, 20, 0.76));
}

.project-detail-page--mlc .project-credits {
    background: linear-gradient(180deg, #15070b 0%, #381018 52%, #15070b 100%);
}

.project-detail-page--mlc .project-credits::after {
    background: #15070b;
}

.project-detail-page--wtbcr .project-detail-hero__inner {
    display: flex;
    width: min(920px, 100%);
    justify-content: center;
}

.project-detail-page--wtbcr .project-detail-branding {
    width: min(760px, 100%);
}

.project-detail-page--wtbcr .project-detail-hero__shade {
    background:
        radial-gradient(circle at 72% 42%, rgba(255, 198, 42, 0.18), transparent 38%),
        linear-gradient(110deg, rgba(14, 3, 10, 0.2), rgba(28, 5, 17, 0.68));
}

.project-detail-page--wtbcr .project-detail-branding__logo {
    filter:
        drop-shadow(0 16px 13px rgba(0, 0, 0, 0.76))
        drop-shadow(0 0 18px rgba(255, 211, 79, 0.18));
}








.project-detail-page > .page-secondary-header {
    z-index: 8;
    margin-bottom: -60px;
}

.project-detail-page > header {
    z-index: 1200;
}

.project-detail-main {
    position: relative;
    z-index: 7;
    padding-top: 0;
    background: var(--project-detail-ink);
}

.project-detail-hero {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 640px;
    box-sizing: border-box;
    overflow: hidden;
    place-items: center;
    isolation: isolate;
    padding: 80px 6vw 132px;
    background: #18070d;
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 63' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H800V63L400 26L0 63Z'/%3E%3C/svg%3E");
    -webkit-mask-position: top, bottom;
    mask-position: top, bottom;
    -webkit-mask-size: 100% calc(100% - 112px), 100% 112px;
    mask-size: 100% calc(100% - 112px), 100% 112px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    filter: drop-shadow(0 18px 16px rgba(6, 0, 4, 0.72));
}

.project-detail-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 210px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(31, 14, 21, 0.18) 28%,
        rgba(31, 14, 21, 0.74) 68%,
        var(--project-detail-ink) 100%
    );
}

.project-detail-hero__backdrop,
.project-detail-hero__shade {
    position: absolute;
    inset: -52px;
    width: calc(100% + 104px);
    height: calc(100% + 104px);
    pointer-events: none;
}

.project-detail-hero__backdrop {
    z-index: -2;
    object-fit: cover;
    object-position: center;
    filter: blur(20px) brightness(0.48) saturate(1.24);
    transform: scale(1.08);
}

.project-detail-hero__shade {
    z-index: -1;
    background:
        radial-gradient(circle at 72% 42%, rgba(246, 42, 70, 0.2), transparent 38%),
        linear-gradient(110deg, rgba(14, 3, 10, 0.2), rgba(28, 5, 17, 0.68));
    box-shadow:
        inset 0 70px 80px -46px rgba(0, 0, 0, 0.84),
        inset 0 -90px 88px -50px rgba(0, 0, 0, 0.76);
}

.project-detail-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(390px, 1fr);
    gap: clamp(64px, 8vw, 150px);
    width: min(1540px, 100%);
    align-items: center;
}

.project-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
}

.project-gallery__viewport {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 3px solid rgba(255, 235, 241, 0.7);
    border-radius: 20px;
    background: #10070b;
    color: inherit;
    cursor: zoom-in;
    box-shadow:
        0 20px 36px rgba(0, 0, 0, 0.56),
        0 0 25px rgba(255, 44, 79, 0.16);
}

.project-gallery__zoom-control {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}

.project-gallery__zoom-control:focus-visible {
    outline: 3px solid rgba(255, 235, 241, 0.88);
    outline-offset: -6px;
}

.project-gallery__viewport:focus-visible {
    outline: 3px solid rgba(255, 235, 241, 0.88);
    outline-offset: 5px;
}

.project-gallery__slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition:
        opacity 360ms ease-out,
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 360ms ease-out;
    pointer-events: none;
}

.project-gallery__slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.project-gallery__slide--video-preview {
    overflow: hidden;
}

.project-gallery__slide--video-preview > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-gallery__video-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 2, 4, 0.92) 0%, rgba(10, 3, 7, 0.58) 24%, transparent 58%);
    pointer-events: none;
}

.project-gallery__slide--video-preview strong {
    position: absolute;
    z-index: 1;
    top: clamp(17px, 2.4vw, 30px);
    right: clamp(18px, 2.5vw, 32px);
    left: clamp(18px, 2.5vw, 32px);
    color: #fff2f6;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(17px, 1.65vw, 25px);
    font-weight: 750;
    line-height: 1.18;
    text-align: left;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.88);
}

.project-gallery__zoom-prompt {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(9, 2, 7, 0.58);
    color: #fff2f6;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: 750;
    letter-spacing: 0.035em;
    text-shadow:
        0 4px 10px rgba(0, 0, 0, 0.88),
        0 0 15px rgba(255, 62, 91, 0.38);
    opacity: 0;
    transition:
        opacity 300ms ease-out,
        letter-spacing 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-gallery__viewport:hover .project-gallery__zoom-prompt,
.project-gallery__viewport:focus-visible .project-gallery__zoom-prompt {
    letter-spacing: 0.22em;
    opacity: 1;
}

.project-gallery__viewport:hover .project-gallery__slide.is-active,
.project-gallery__viewport:focus-visible .project-gallery__slide.is-active {
    filter: brightness(0.56);
    transform: scale(1.018);
}

.project-gallery__arrow {
    display: grid;
    width: 48px;
    height: 76px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #f8e9ef;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 62px;
    line-height: 1;
    text-shadow:
        0 5px 0 rgba(65, 3, 24, 0.86),
        0 10px 18px rgba(0, 0, 0, 0.58);
    transition:
        color 220ms ease-out,
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
        text-shadow 280ms ease-out;
}

.project-gallery__arrow:hover,
.project-gallery__arrow:focus-visible {
    color: #ff6b7e;
    outline: none;
    text-shadow:
        0 5px 0 rgba(65, 3, 24, 0.86),
        0 0 18px rgba(255, 73, 101, 0.66);
    transform: scale(1.12);
}

.project-gallery__dots {
    grid-column: 2;
    display: flex;
    margin: 13px 0 0;
    padding: 0;
    justify-content: center;
    gap: 10px;
}

.project-gallery__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(248, 233, 239, 0.36);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.46);
    cursor: pointer;
    transition:
        background-color 240ms ease-out,
        box-shadow 280ms ease-out,
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-gallery__dots button:hover,
.project-gallery__dots button:focus-visible {
    outline: none;
    background: rgba(255, 154, 175, 0.82);
    transform: scale(1.35);
}

.project-gallery__dots button.is-active {
    background: var(--project-detail-accent);
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.46),
        0 0 11px rgba(var(--project-detail-accent-rgb), 0.68);
    transform: scale(1.45);
}

.project-detail-branding {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    perspective: 900px;
}

.project-detail-branding__logo {
    display: block;
    width: min(620px, 100%);
    height: 260px;
    object-fit: contain;
    filter:
        drop-shadow(0 16px 13px rgba(0, 0, 0, 0.76))
        drop-shadow(0 0 18px rgba(255, 55, 82, 0.18));
}

.project-detail-download {
    position: relative;
    isolation: isolate;
    display: flex;
    overflow: hidden;
    width: min(520px, 92%);
    min-height: 62px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 22px;
    border: 2px solid rgba(255, 235, 241, 0.58);
    border-radius: 14px;
    background: rgba(25, 5, 16, 0.76);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
    color: #f8e9ef;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 20px;
    text-decoration: none;
}

.project-detail-download:has(.project-platform-list) {
    --download-bevel: 15px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 235, 241, 0.58);
    clip-path: polygon(
        var(--download-bevel) 0,
        calc(100% - var(--download-bevel)) 0,
        100% var(--download-bevel),
        100% calc(100% - var(--download-bevel)),
        calc(100% - var(--download-bevel)) 100%,
        var(--download-bevel) 100%,
        0 calc(100% - var(--download-bevel)),
        0 var(--download-bevel)
    );
    filter: drop-shadow(0 14px 13px rgba(0, 0, 0, 0.4));
    box-shadow: none;
}

.project-detail-download:has(.project-platform-list)::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 2px;
    background: rgba(25, 5, 16, 0.94);
    clip-path: polygon(
        calc(var(--download-bevel) - 2px) 0,
        calc(100% - var(--download-bevel) + 2px) 0,
        100% calc(var(--download-bevel) - 2px),
        100% calc(100% - var(--download-bevel) + 2px),
        calc(100% - var(--download-bevel) + 2px) 100%,
        calc(var(--download-bevel) - 2px) 100%,
        0 calc(100% - var(--download-bevel) + 2px),
        0 calc(var(--download-bevel) - 2px)
    );
    pointer-events: none;
}

.project-detail-download > * {
    position: relative;
    z-index: 1;
}

.project-detail-download strong {
    color: var(--project-detail-accent);
    font-family: 'Afacad Flux', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(var(--project-detail-accent-rgb), 0.28);
}

.project-platform-button {
    --platform-tilt-x: 0deg;
    --platform-tilt-y: 0deg;
    --platform-scale: 1;
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    box-sizing: border-box;
    place-items: center;
    border: 2px solid rgba(255, 245, 248, 0.84);
    border-radius: 12px;
    background: rgba(22, 12, 17, 0.88);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.34);
    transform:
        perspective(360px)
        rotateX(var(--platform-tilt-x))
        rotateY(var(--platform-tilt-y))
        scale(var(--platform-scale));
    transform-style: preserve-3d;
    transition:
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 260ms ease-out,
        filter 260ms ease-out;
    will-change: transform;
}

.project-platform-list .project-platform-button {
    border-radius: 0;
}

.project-platform-button:hover,
.project-platform-button:focus-visible {
    outline: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38);
    filter: brightness(1.08);
}

.project-platform-button.is-tilting,
.project-platform-button:focus-visible {
    --platform-scale: 1.07;
}

.project-platform-button.is-tilting {
    transition-duration: 80ms, 220ms, 220ms;
    transition-timing-function: ease-out;
}

.project-platform-button:focus-visible {
    outline: 3px solid rgba(var(--project-detail-accent-rgb), 0.78);
    outline-offset: 4px;
}

.project-platform-button__roblox-mark {
    position: relative;
    display: block;
    width: 25px;
    height: 25px;
    background: #f8edf1;
    transform: rotate(13deg);
}

.project-platform-button__roblox-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    background: #171015;
    transform: translate(-50%, -50%);
}

.project-platform-button > img {
    display: block;
    width: 31px;
    height: 31px;
    object-fit: contain;
    pointer-events: none;
}

.project-platform-button--itch {
    background: #fa5c5c;
}

.project-platform-button--itch img {
    filter: brightness(0) invert(1);
}

.project-platform-button--github {
    border-color: rgba(255, 255, 255, 0.9);
    background: #161b22;
}

.project-platform-button--github img {
    width: 33px;
    height: 33px;
}

.project-platform-button--thunderstore {
    border-color: rgba(255, 255, 255, 0.88);
    background: #071329;
}

.project-platform-button--thunderstore img {
    filter: brightness(0) saturate(100%) invert(84%) sepia(83%) saturate(1583%) hue-rotate(95deg) brightness(103%) contrast(103%);
}

.project-platform-button--gamebanana {
    background: #332d18;
}

.project-platform-button--gamebanana img {
    width: 34px;
    height: 34px;
}

.project-platform-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.project-detail-requirement {
    margin: -14px 0 0;
    color: rgba(190, 184, 188, 0.76);
    font-family: 'Afacad Flux', sans-serif;
    font-size: 15px;
    font-weight: 550;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.42);
}

.project-detail-requirement a {
    color: rgba(224, 218, 221, 0.92);
    font-weight: 800;
    text-decoration-color: rgba(var(--project-detail-accent-rgb), 0.42);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition:
        color 220ms ease-out,
        text-shadow 260ms ease-out,
        text-decoration-color 220ms ease-out;
}

.project-detail-requirement a:hover,
.project-detail-requirement a:focus-visible {
    outline: none;
    color: #fff7fa;
    text-decoration-color: rgba(var(--project-detail-accent-rgb), 0.86);
    text-shadow: 0 0 10px rgba(var(--project-detail-accent-rgb), 0.38);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.project-detail-summary {
    position: relative;
    z-index: 3;
    width: min(900px, calc(100% - 48px));
    margin: -20px auto 0;
    padding: 46px 24px 30px;
    color: #f8e9ef;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    text-shadow:
        0 5px 10px rgba(0, 0, 0, 0.58),
        0 0 16px rgba(var(--project-detail-accent-rgb), 0.22);
}

.project-detail-copy {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0 120px;
}

.project-detail-copy section {
    padding: 40px 0 58px;
    border-bottom: 1px solid rgba(242, 229, 235, 0.1);
}

.project-detail-copy section:last-child {
    border-bottom: 0;
}

.project-detail-copy section h1,
.project-detail-copy section p {
    margin-top: 0;
    margin-bottom: 22px;
}

/* MLC terminal body */
.project-detail-page--mlc .mlc-terminal {
    --mlc-credits-lead-height: clamp(72px, 6vw, 108px);
    position: relative;
    isolation: isolate;
    width: 100%;
    box-sizing: border-box;
    margin: 38px 0 0;
    padding: 0 0 var(--mlc-credits-lead-height);
    overflow: hidden;
    border-top: 0;
    border-bottom: 0;
    background: var(--mlc-credits-seam-color);
    box-shadow: none;
    color: var(--mlc-terminal-copy);
    font-family: '3270', 'Courier New', monospace;
}

.project-detail-page--mlc .mlc-terminal,
.project-detail-page--mlc .mlc-terminal * {
    font-family: '3270', 'Courier New', monospace !important;
}

.project-detail-page--mlc .mlc-terminal::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 var(--mlc-credits-lead-height);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 16% 84%, rgba(0, 0, 0, 0.68));
}

.mlc-terminal__screen {
    --crt-overscan: clamp(34px, 3.5vw, 76px);
    --crt-edge-depth: clamp(48px, 6vw, 116px);
    --crt-edge-blur: clamp(54px, 7vw, 132px);
    --crt-edge-spread: clamp(-84px, -4.3vw, -34px);
    position: relative;
    isolation: isolate;
    width: calc(100% + (var(--crt-overscan) * 2));
    box-sizing: border-box;
    margin-right: calc(var(--crt-overscan) * -1);
    margin-left: calc(var(--crt-overscan) * -1);
    overflow: hidden;
    contain: paint;
    -webkit-clip-path: polygon(
        1.2% 0.2%, 25% 0.05%, 50% 0, 75% 0.05%, 98.8% 0.2%,
        99.7% 25%, 100% 50%, 99.7% 75%, 98.8% 99.8%,
        75% 99.95%, 50% 100%, 25% 99.95%, 1.2% 99.8%,
        0.3% 75%, 0 50%, 0.3% 25%
    );
    clip-path: polygon(
        1.2% 0.2%, 25% 0.05%, 50% 0, 75% 0.05%, 98.8% 0.2%,
        99.7% 25%, 100% 50%, 99.7% 75%, 98.8% 99.8%,
        75% 99.95%, 50% 100%, 25% 99.95%, 1.2% 99.8%,
        0.3% 75%, 0 50%, 0.3% 25%
    );
    border: 0;
    border-radius: 0;
    background: #040404;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.82);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M12 2Q500 0 988 2Q1000 500 988 998Q500 1000 12 998Q0 500 12 2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M12 2Q500 0 988 2Q1000 500 988 998Q500 1000 12 998Q0 500 12 2Z'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: mlc-terminal-power-flicker 2.2s steps(1, end) infinite;
}

.mlc-terminal__screen::before,
.mlc-terminal__screen::after {
    content: "";
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

.mlc-crt-filter-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.mlc-terminal__entry.has-crt-warp {
    will-change: filter;
}

.mlc-terminal__boot.has-crt-warp {
    will-change: filter;
}

.mlc-terminal__screen::before {
    content: none;
    display: none;
}

.mlc-terminal__screen::after {
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.018), transparent 58%),
        linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.7) 2.5%, transparent 8% 92%, rgba(0, 0, 0, 0.7) 97.5%, #000 100%);
    box-shadow:
        inset var(--crt-edge-depth) 0 var(--crt-edge-blur) var(--crt-edge-spread) rgba(0, 0, 0, 0.82),
        inset calc(0px - var(--crt-edge-depth)) 0 var(--crt-edge-blur) var(--crt-edge-spread) rgba(0, 0, 0, 0.82);
    opacity: 1;
}

.mlc-terminal__boot,
.mlc-terminal__boot + .mlc-terminal__entry {
    box-shadow: inset 0 var(--crt-edge-depth) var(--crt-edge-blur) var(--crt-edge-spread) rgba(0, 0, 0, 0.74);
}

.mlc-terminal__boot {
    position: relative;
    z-index: 2;
    display: block;
    min-height: calc(100vh + clamp(320px, 48vh, 620px));
    box-sizing: border-box;
    overflow: hidden;
    padding:
        0
        max(clamp(54px, 9vw, 180px), calc(var(--crt-overscan) + 48px))
        clamp(320px, 48vh, 620px);
    background: #000;
    color: #090604;
    transition: none;
}

.mlc-terminal__boot::before {
    content: "";
    position: absolute;
    z-index: 4;
    inset: -4px 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.12) 0,
        rgba(0, 0, 0, 0.12) 1px,
        transparent 1px,
        transparent 4px
    );
    animation: mlc-terminal-scan 280ms linear infinite;
}

.mlc-terminal__boot.is-flash-orange,
.mlc-terminal__boot.is-orange,
.mlc-terminal__boot.is-exit-orange {
    background-color: #f24b18;
}

.mlc-terminal__boot.is-exit-black,
.mlc-terminal__boot.is-exit-final,
.mlc-terminal__boot.is-complete {
    background-color: #000;
}

.mlc-terminal__boot.is-complete {
    display: none;
}

.mlc-terminal__boot-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1120px, 100%);
    height: 100vh;
    min-height: 0;
    box-sizing: border-box;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 72px) clamp(26px, 4vw, 58px);
    transform: translateY(var(--terminal-boot-viewport-offset, 0px));
}

.mlc-terminal__boot-close {
    position: absolute;
    z-index: 5;
    top: clamp(18px, 3.5vh, 38px);
    right: clamp(20px, 3vw, 46px);
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #090604;
    cursor: pointer;
    font: 400 48px/1 Arial, sans-serif;
    opacity: 0;
    pointer-events: none;
}

.mlc-terminal__boot.is-running .mlc-terminal__boot-close {
    opacity: 1;
    pointer-events: auto;
}

.mlc-terminal__boot-close:hover,
.mlc-terminal__boot-close:focus-visible {
    outline: none;
    background: #090604;
    color: #f24b18;
}

.mlc-terminal__boot-title {
    margin: 0 0 clamp(18px, 3vh, 34px);
    color: #090604;
    font: inherit;
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.52em;
    opacity: 0;
    white-space: nowrap;
    text-shadow: none;
    transition: letter-spacing 940ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mlc-terminal__boot-description-area {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(44px, 5vh, 64px) clamp(22px, 3vw, 48px) clamp(48px, 6vh, 72px);
}

.mlc-terminal__boot.is-title-active .mlc-terminal__boot-title {
    opacity: 1;
}

.mlc-terminal__boot.is-title-condensed .mlc-terminal__boot-title {
    letter-spacing: 0.045em;
}

.mlc-terminal__boot-frame {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
}

.mlc-terminal__boot-corner {
    position: absolute;
    display: block;
    width: clamp(130px, 18vw, 235px);
    height: clamp(72px, 10vw, 118px);
    opacity: 0;
}

.mlc-terminal__boot-corner::before,
.mlc-terminal__boot-corner::after {
    content: "";
    position: absolute;
    display: block;
    background-repeat: repeat;
}

.mlc-terminal__boot-corner::before {
    right: 0;
    left: 0;
    height: 4px;
    background-image: linear-gradient(90deg, #090604 0 16px, transparent 16px 28px);
    background-size: 28px 4px;
    background-repeat: repeat-x;
    animation: mlc-terminal-corner-horizontal 900ms linear infinite;
}

.mlc-terminal__boot-corner::after {
    top: 0;
    bottom: 0;
    width: 4px;
    background-image: linear-gradient(180deg, #090604 0 16px, transparent 16px 28px);
    background-size: 4px 28px;
    background-repeat: repeat-y;
    animation: mlc-terminal-corner-vertical 900ms linear infinite;
}

.mlc-terminal__boot-corner--top {
    top: 0;
    left: 0;
}

.mlc-terminal__boot-corner--top::before {
    top: 0;
}

.mlc-terminal__boot-corner--top::after {
    left: 0;
}

.mlc-terminal__boot-corner--bottom {
    right: 0;
    bottom: 0;
}

.mlc-terminal__boot-corner--bottom::before {
    bottom: 0;
}

.mlc-terminal__boot-corner--bottom::after {
    right: 0;
}

.mlc-terminal__boot.is-framed .mlc-terminal__boot-corner {
    opacity: 1;
}

.mlc-terminal__boot-message {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    color: #090604 !important;
    font-size: clamp(22px, 2vw, 31px);
    font-weight: 400;
    line-height: 1.42;
    opacity: 0;
    text-shadow: none;
}

.mlc-terminal__boot-message p {
    margin: 0 0 1.45em;
    color: #090604 !important;
}

.mlc-terminal__boot-message strong {
    color: #090604 !important;
    font-weight: 700;
    text-shadow: none;
}

.mlc-terminal__boot.is-message-visible .mlc-terminal__boot-message {
    opacity: 1;
}

.mlc-terminal__boot .is-flicker-off {
    opacity: 0 !important;
}

.mlc-terminal__boot-continue {
    display: inline-block;
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    margin: clamp(34px, 5vh, 58px) 0 0 clamp(54px, 7vw, 102px);
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #090604;
    font: inherit;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 180ms ease-out;
}

.mlc-terminal__boot.is-ready .mlc-terminal__boot-continue {
    opacity: 1;
    pointer-events: auto;
}

.mlc-terminal__boot-continue:hover,
.mlc-terminal__boot-continue:focus-visible {
    outline: none;
    background: rgba(31, 12, 5, 0.86);
    color: #fff;
}

.mlc-terminal__boot.is-exiting .mlc-terminal__boot-panel,
.mlc-terminal__boot.is-complete .mlc-terminal__boot-panel {
    opacity: 0;
}

.terminal-boot-enhanced .mlc-terminal:not(.is-boot-complete) .mlc-terminal__entry {
    visibility: hidden;
}

.terminal-boot-enhanced .mlc-terminal:not(.is-boot-complete) .mlc-terminal__screen {
    animation: none;
}

html.terminal-scroll-locked,
html.terminal-scroll-locked body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

html.terminal-scroll-locked body {
    padding-right: var(--terminal-scrollbar-compensation, 0px);
    touch-action: none;
}

.project-detail-page--mlc .mlc-terminal__entry {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    padding:
        max(clamp(56px, 6vw, 94px), 72px)
        max(clamp(52px, 9vw, 180px), calc(var(--crt-overscan) + 48px))
        max(clamp(62px, 7vw, 108px), 78px);
    border-bottom: 0;
    background-color: #040404;
    background-image:
        radial-gradient(ellipse at 50% 36%, rgba(121, 29, 43, 0.055), transparent 64%),
        radial-gradient(ellipse at 50% 36%, rgba(255, 255, 255, 0.025), transparent 62%),
        linear-gradient(180deg, #0f0d0e, #040404 74%);
    background-position: center;
    background-size: 100vw 100vh;
    background-attachment: fixed;
}

.mlc-terminal__entry-layout {
    position: relative;
    z-index: 2;
    display: flow-root;
}

.mlc-terminal__copy {
    display: contents;
}

.mlc-terminal__media {
    --terminal-media-float-distance: -11px;
    --terminal-media-float-duration: 1.9s;
    --terminal-media-float-delay: 0.38s;
    position: relative;
    right: 12px;
    float: right;
    isolation: isolate;
    width: min(38vw, 540px);
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 0 clamp(10px, 1.2vw, 18px) clamp(42px, 5vw, 88px);
    padding: 0;
    border: 2px solid var(--mlc-terminal-accent);
    border-radius: 0;
    background: #020202;
    color: #fff3f5;
    cursor: zoom-in;
    font: inherit;
    text-align: left;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.56),
        0 0 22px rgba(var(--mlc-terminal-glow-rgb), 0.2),
        inset 0 0 24px rgba(0, 0, 0, 0.58);
}

.mlc-terminal__entry:nth-of-type(3n) .mlc-terminal__media {
    --terminal-media-float-distance: -13px;
    --terminal-media-float-duration: 2.25s;
    --terminal-media-float-delay: 0.52s;
}

.mlc-terminal__entry:nth-of-type(3n + 1) .mlc-terminal__media {
    --terminal-media-float-distance: -9px;
    --terminal-media-float-duration: 1.7s;
    --terminal-media-float-delay: 0.24s;
}

.mlc-terminal__media::before,
.mlc-terminal__media::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
}

.mlc-terminal__media::before {
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 224, 215, 0.04) 0,
        rgba(255, 224, 215, 0.04) 1px,
        transparent 1px,
        transparent 4px
    );
    mix-blend-mode: screen;
    animation: mlc-terminal-scan 280ms linear infinite;
}

.mlc-terminal__media::after {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 8% 92%, rgba(0, 0, 0, 0.42)),
        linear-gradient(180deg, rgba(var(--mlc-terminal-glow-rgb), 0.08), transparent 24% 76%, rgba(0, 0, 0, 0.42));
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.55);
}

.mlc-terminal__media img,
.mlc-terminal__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.mlc-terminal__media img {
    object-fit: cover;
    filter: saturate(0.78) contrast(1.08) brightness(0.84) sepia(0.08);
}

.mlc-terminal__media-video-shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 2, 3, 0.94), rgba(9, 3, 6, 0.56) 28%, transparent 62%);
}

.mlc-terminal__media--video strong {
    position: absolute;
    z-index: 3;
    top: clamp(15px, 1.8vw, 24px);
    right: clamp(16px, 2vw, 26px);
    left: clamp(16px, 2vw, 26px);
    font-size: clamp(15px, 1.18vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.92);
}

.mlc-terminal__media-zoom {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(3, 1, 2, 0.56);
    color: #fff3f5;
    font-size: clamp(16px, 1.3vw, 21px);
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0;
    text-shadow: 0 0 12px rgba(var(--mlc-terminal-glow-rgb), 0.52);
    transition:
        opacity 220ms ease-out,
        letter-spacing 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mlc-terminal__media:hover .mlc-terminal__media-zoom,
.mlc-terminal__media.is-hover-proxy .mlc-terminal__media-zoom,
.mlc-terminal__media:focus-visible .mlc-terminal__media-zoom {
    letter-spacing: 0.18em;
    opacity: 1;
}

.mlc-terminal__media:hover img,
.mlc-terminal__media.is-hover-proxy img,
.mlc-terminal__media:focus-visible img {
    filter: saturate(0.68) contrast(1.08) brightness(0.56) sepia(0.08);
}

.mlc-terminal__media:focus-visible {
    outline: 2px solid rgba(255, 236, 241, 0.88);
    outline-offset: 5px;
}

.mlc-terminal__gallery-source {
    display: none;
}

.terminal-enhanced .mlc-terminal__entry:not(.is-started) .mlc-terminal__media {
    visibility: hidden;
    opacity: 0;
}

.terminal-enhanced .mlc-terminal__entry.is-started .mlc-terminal__media {
    animation:
        mlc-terminal-media-in 720ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both,
        mlc-terminal-media-float var(--terminal-media-float-duration) steps(7, end) var(--terminal-media-float-delay) infinite;
}

.project-detail-page--mlc .mlc-terminal__entry::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: -4px;
    right: 0;
    bottom: -4px;
    left: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.032) 0,
        rgba(255, 255, 255, 0.032) 1px,
        transparent 1px,
        transparent 4px
    );
    mix-blend-mode: screen;
    animation: mlc-terminal-scan 280ms linear infinite;
}

.project-detail-page--mlc .mlc-terminal__entry:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    pointer-events: none;
    background: repeating-linear-gradient(
        90deg,
        rgba(var(--mlc-terminal-copy-rgb), 0.22) 0 14px,
        transparent 14px 26px
    );
    animation: mlc-terminal-divider-right 1.7s linear infinite;
}

.project-detail-page--mlc .mlc-terminal__entry:nth-child(even)::after {
    animation-name: mlc-terminal-divider-left;
}

.project-detail-page--mlc .mlc-terminal__entry h1 {
    margin: 0 0 clamp(32px, 4vw, 52px);
    color: var(--mlc-terminal-accent);
    font-family: inherit;
    font-size: clamp(27px, 3.25vw, 52px);
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: 0.012em;
    text-wrap: balance;
    text-shadow:
        0 0 6px rgba(var(--mlc-terminal-glow-rgb), 0.8),
        0 0 24px rgba(var(--mlc-terminal-glow-rgb), 0.34);
}

.mlc-terminal__response {
    color: rgba(var(--mlc-terminal-copy-rgb), 0.94);
    font-size: clamp(20px, 1.72vw, 27px);
    font-weight: 400;
    line-height: 1.48;
    letter-spacing: 0.008em;
    text-shadow: 0 0 10px rgba(var(--mlc-terminal-glow-rgb), 0.27);
}

.mlc-terminal__response p {
    margin: 0 0 1.28em;
}

.mlc-terminal__response p:last-child {
    margin-bottom: 0;
}

.mlc-terminal__response strong {
    color: #fff8f5;
    font-weight: 700;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.82),
        0 0 16px rgba(255, 255, 255, 0.32);
}

.mlc-terminal__response em {
    color: inherit;
    font-style: italic;
    text-shadow: inherit;
}

.mlc-terminal__response ul {
    display: grid;
    margin: -0.25em 0 1.4em;
    padding: 0;
    gap: 0.22em;
    list-style: none;
}

.mlc-terminal__marker {
    color: var(--mlc-terminal-accent-hot);
    text-shadow: 0 0 9px rgba(var(--mlc-terminal-glow-rgb), 0.52);
}

.mlc-terminal__notice .mlc-terminal__marker {
    color: inherit;
    text-shadow: inherit;
}

.mlc-terminal__notice {
    margin-top: 2em !important;
    padding: 0;
    border: 0;
    background: none;
    color: color-mix(in srgb, var(--mlc-terminal-muted) 82%, transparent);
    font-size: 0.78em;
    line-height: 1.42;
}

.terminal-enhanced .mlc-terminal__entry:not(.is-started) [data-terminal-prompt],
.terminal-enhanced .mlc-terminal__entry:not(.is-started) [data-terminal-response] {
    visibility: hidden;
}

.mlc-terminal__entry.is-started {
    animation: mlc-terminal-signal-in 420ms ease-out both;
}

.mlc-terminal__cursor {
    display: inline-block;
    margin-left: 0.08em;
    color: var(--mlc-terminal-accent-hot);
    text-shadow: 0 0 8px rgba(var(--mlc-terminal-glow-rgb), 0.94);
    animation: mlc-terminal-cursor 760ms steps(1, end) infinite;
}

[data-terminal-prompt]:not(.is-typing)::after {
    content: "_";
    display: inline-block;
    margin-left: 0.08em;
    color: var(--mlc-terminal-accent-hot);
    text-shadow: 0 0 8px rgba(var(--mlc-terminal-glow-rgb), 0.94);
    animation: mlc-terminal-cursor 760ms steps(1, end) infinite;
}

@keyframes mlc-terminal-cursor {
    0%, 46% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

@keyframes mlc-terminal-signal-in {
    from {
        opacity: 0.36;
    }
    to {
        opacity: 1;
    }
}

@keyframes mlc-terminal-media-in {
    0% {
        opacity: 0;
        filter: brightness(1.8) contrast(1.28);
        transform: translate3d(42px, 0, 0) scale(0.94);
    }
    18% {
        opacity: 0.28;
    }
    26% {
        opacity: 0.08;
    }
    38% {
        opacity: 0.72;
    }
    47% {
        opacity: 0.42;
    }
    100% {
        opacity: 1;
        filter: brightness(1) contrast(1);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes mlc-terminal-media-float {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 var(--terminal-media-float-distance);
    }
}

@keyframes mlc-terminal-scan {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(4px);
    }
}

@keyframes mlc-terminal-corner-horizontal {
    to {
        background-position: 28px 0;
    }
}

@keyframes mlc-terminal-corner-vertical {
    to {
        background-position: 0 28px;
    }
}

@keyframes mlc-terminal-divider-right {
    to {
        background-position: 26px 0;
    }
}

@keyframes mlc-terminal-divider-left {
    to {
        background-position: -26px 0;
    }
}

@keyframes mlc-terminal-phosphor {
    0%, 100% { opacity: 0.78; }
    48% { opacity: 0.96; }
    50% { opacity: 0.82; }
    53% { opacity: 1; }
}

@keyframes mlc-terminal-power-flicker {
    0%, 7%, 9%, 43%, 45%, 76%, 78%, 100% {
        filter: brightness(1) saturate(1);
    }
    8% {
        filter: brightness(1.075) saturate(1.12);
    }
    44% {
        filter: brightness(0.965) saturate(0.94);
    }
    77% {
        filter: brightness(1.045) saturate(1.08);
    }
}

.project-credits {
    --credits-parallax: 0px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: -1px;
    padding: clamp(118px, 11vw, 172px) 24px clamp(96px, 10vw, 152px);
    border-top: 0;
    border-bottom: 5px solid #14090e;
    background: linear-gradient(180deg, #14090e 0%, #210c17 52%, #14090e 100%);
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(from 135deg at 50% 0, #000 0 90deg, transparent 90deg 360deg);
    mask-image:
        linear-gradient(#000 0 0),
        conic-gradient(from 135deg at 50% 0, #000 0 90deg, transparent 90deg 360deg);
    -webkit-mask-position: 0 60px, 0 0;
    mask-position: 0 60px, 0 0;
    -webkit-mask-size: 100% calc(100% - 60px), 104px 60px;
    mask-size: 100% calc(100% - 60px), 104px 60px;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    animation: project-credits-zigzag-drift 2s linear infinite;
}

.project-credits__checker {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.14;
    pointer-events: none;
}

.project-credits::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 63px;
    background: #14090e;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 63' preserveAspectRatio='none'%3E%3Cpath d='M52 3L104 60M52 3L0 60' fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 63' preserveAspectRatio='none'%3E%3Cpath d='M52 3L104 60M52 3L0 60' fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-size: 104px 63px;
    mask-size: 104px 63px;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    animation: project-credits-outline-drift 2s linear infinite;
    pointer-events: none;
}

.project-credits__inner {
    position: relative;
    z-index: 2;
    width: min(1220px, 100%);
    margin: 0 auto;
}

.project-credits__heading {
    margin-bottom: clamp(42px, 5vw, 72px);
    text-align: center;
}

.project-credits__heading h1 {
    margin: 0;
    padding: 0;
    color: #f8e9ef;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(62px, 8vw, 118px);
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 0.92;
    text-shadow:
        0 7px 0 rgba(12, 2, 8, 0.78),
        0 0 46px rgba(var(--project-detail-accent-rgb), 0.28),
        0 0 82px rgba(var(--project-detail-accent-rgb), 0.12);
}

.project-credits.has-scroll-reveal {
    opacity: 0;
    transition: opacity 800ms ease-out;
}

.project-credits.has-scroll-reveal.is-revealed {
    opacity: 1;
}

.project-credits.has-scroll-reveal .project-credits__heading h1 {
    opacity: 0;
    letter-spacing: 0.42em;
    transform: translateY(-12px) scale(0.96);
    transition:
        opacity 650ms ease-out 100ms,
        letter-spacing 1150ms cubic-bezier(0.16, 1, 0.3, 1) 100ms,
        transform 950ms cubic-bezier(0.16, 1, 0.3, 1) 100ms;
}

.project-credits.has-scroll-reveal.is-revealed .project-credits__heading h1 {
    opacity: 1;
    letter-spacing: 0.045em;
    transform: none;
}

.project-credits__list {
    display: grid;
    gap: 15px;
}

.project-credit {
    --credit-entry-x: -72px;
    --credit-panel-bevel: clamp(14px, 1.45vw, 22px);
    position: relative;
    min-height: 118px;
    perspective: 1100px;
    filter:
        drop-shadow(0 18px 24px rgba(13, 2, 11, 0.24))
        drop-shadow(0 0 28px rgba(var(--project-detail-accent-rgb), 0.1));
}

.project-credits.has-scroll-reveal .project-credit {
    opacity: 0;
    transform: translateY(-92px) scale(0.97);
    transition:
        opacity 520ms ease-out,
        transform 920ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-credits.has-scroll-reveal.is-revealed .project-credit {
    opacity: 1;
    transform: none;
}

.project-credits.has-scroll-reveal.is-revealed .project-credit:nth-child(1) {
    transition-delay: 340ms;
}

.project-credits.has-scroll-reveal.is-revealed .project-credit:nth-child(2) {
    transition-delay: 470ms;
}

.project-credits.has-scroll-reveal.is-revealed .project-credit:nth-child(3) {
    transition-delay: 600ms;
}

.project-credits.has-scroll-reveal.is-revealed .project-credit:nth-child(4) {
    transition-delay: 730ms;
}

.project-credits.has-scroll-reveal.is-revealed .project-credit:nth-child(5) {
    transition-delay: 860ms;
}

.project-credits.has-scroll-reveal.is-revealed .project-credit:nth-child(6) {
    transition-delay: 990ms;
}

.project-credit__plane {
    position: relative;
    display: grid;
    grid-template-columns: minmax(310px, 0.46fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 62px);
    min-height: 118px;
    box-sizing: border-box;
    align-items: center;
    overflow: hidden;
    padding: 20px 18px 20px 30px;
    border-radius: 0;
    clip-path: polygon(
        var(--credit-panel-bevel) 0,
        calc(100% - var(--credit-panel-bevel)) 0,
        100% var(--credit-panel-bevel),
        100% calc(100% - var(--credit-panel-bevel)),
        calc(100% - var(--credit-panel-bevel)) 100%,
        var(--credit-panel-bevel) 100%,
        0 calc(100% - var(--credit-panel-bevel)),
        0 var(--credit-panel-bevel)
    );
    background: linear-gradient(145deg, rgba(34, 7, 26, 0.28), rgba(20, 5, 19, 0.18));
    box-shadow:
        0 30px 62px rgba(13, 2, 11, 0.32),
        0 12px 24px rgba(20, 3, 16, 0.22),
        0 0 68px rgba(var(--project-detail-accent-rgb), 0.18),
        0 0 112px rgba(var(--project-detail-accent-rgb), 0.07);
    -webkit-backdrop-filter: blur(28px) saturate(1.12);
    backdrop-filter: blur(28px) saturate(1.12);
    transform:
        rotateX(var(--credit-tilt-x, 0deg))
        scale(var(--credit-panel-scale, 1));
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    transition: transform 540ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.project-credit__plane::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -20px;
    border-radius: 0;
    background: rgba(18, 4, 14, 0.07);
    -webkit-backdrop-filter: blur(34px) saturate(1.16);
    backdrop-filter: blur(34px) saturate(1.16);
    pointer-events: none;
}

.project-credit.is-tilting .project-credit__plane {
    transition-duration: 90ms;
    transition-timing-function: ease-out;
}

.project-credit:nth-child(even) {
    --credit-entry-x: 72px;
    margin-left: 0;
}

.project-credit__person,
.project-credit h2,
.project-credit p {
    position: relative;
    z-index: 1;
    margin: 0;
}

.project-credit__person {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-width: 0;
}

.project-credit__person--text-only {
    grid-template-columns: minmax(0, 1fr);
}

.project-credit__person img {
    display: block;
    width: 78px;
    height: 78px;
    box-sizing: border-box;
    border: 5px solid rgba(12, 2, 8, 0.82);
    border-radius: 0;
    object-fit: cover;
    box-shadow:
        0 10px 22px rgba(4, 1, 3, 0.44),
        0 0 12px rgba(12, 2, 8, 0.4),
        0 0 26px rgba(20, 9, 14, 0.24);
}

.project-credit h2 {
    color: #f8e9ef;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(22px, 2.1vw, 32px);
    font-weight: 700;
    letter-spacing: 0.025em;
    text-shadow:
        0 5px 0 rgba(12, 2, 8, 0.82),
        0 9px 16px rgba(4, 1, 3, 0.48);
}

.project-credit p {
    justify-self: end;
    color: var(--project-detail-accent);
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 650;
    line-height: 1.35;
    text-align: right;
    text-shadow:
        0 4px 0 rgba(12, 2, 8, 0.78),
        0 8px 14px rgba(4, 1, 3, 0.44),
        0 0 12px rgba(var(--project-detail-accent-rgb), 0.12);
}

@keyframes project-credits-zigzag-drift {
    from {
        -webkit-mask-position: 0 60px, 0 0;
        mask-position: 0 60px, 0 0;
    }
    to {
        -webkit-mask-position: 0 60px, -104px 0;
        mask-position: 0 60px, -104px 0;
    }
}

@keyframes project-credits-outline-drift {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
    to {
        -webkit-mask-position: -104px 0;
        mask-position: -104px 0;
    }
}

@media (max-width: 680px) {
    .project-credits {
        padding-right: 14px;
        padding-left: 14px;
    }

    .project-credits__heading h1 {
        font-size: clamp(58px, 20vw, 88px);
    }

    .project-credit,
    .project-credit:nth-child(even) {
        min-height: 0;
        margin-left: 0;
    }

    .project-credit__plane {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
        padding: 22px 12px 22px 20px;
    }

    .project-credit__person {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 16px;
    }

    .project-credit__person img {
        width: 64px;
        height: 64px;
        border-radius: 0;
    }

    .project-credit__person--text-only {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-credit p {
        justify-self: stretch;
        font-size: 17px;
        text-align: right;
    }
}

body.project-lightbox-open {
    overflow: hidden;
}

.project-lightbox {
    position: fixed;
    z-index: 2500;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(64px, 0.12fr) minmax(0, 1fr) minmax(64px, 0.12fr);
    align-items: center;
    justify-items: center;
    overflow: hidden;
    padding: 74px 24px 34px;
    background: rgba(5, 2, 4, 0.92);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
        opacity 340ms ease-out,
        visibility 0s linear 340ms;
}

.project-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition:
        opacity 340ms ease-out,
        visibility 0s;
}

.project-lightbox__figure {
    position: relative;
    grid-column: 2;
    width: min(1500px, 100%);
    margin: 0;
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 320ms ease-out,
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-lightbox.is-open .project-lightbox__figure {
    opacity: 1;
    transform: scale(1);
}

.project-lightbox__figure img,
.project-lightbox__figure iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-height: calc(100vh - 110px);
    max-height: calc(100svh - 110px);
    border: 3px solid rgba(255, 235, 241, 0.7);
    border-radius: 0;
    object-fit: contain;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.78),
        0 0 28px rgba(255, 55, 82, 0.17);
    opacity: 1;
    transform: translateX(0) scale(1);
}

.project-lightbox__figure iframe {
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 110px);
    max-height: calc(100svh - 110px);
}

.project-lightbox__figure [hidden] {
    display: none;
}

.project-lightbox__figure .project-lightbox__outgoing {
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.project-lightbox__figure.is-sliding-next :is([data-lightbox-image], [data-lightbox-video]):not([hidden]) {
    animation: lightbox-enter-next 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-lightbox__figure.is-sliding-next .project-lightbox__outgoing {
    animation: lightbox-exit-next 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-lightbox__figure.is-sliding-previous :is([data-lightbox-image], [data-lightbox-video]):not([hidden]) {
    animation: lightbox-enter-previous 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-lightbox__figure.is-sliding-previous .project-lightbox__outgoing {
    animation: lightbox-exit-previous 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lightbox-enter-next {
    from {
        opacity: 0;
        transform: translateX(100vw) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes lightbox-exit-next {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-100vw) scale(0.97);
    }
}

@keyframes lightbox-enter-previous {
    from {
        opacity: 0;
        transform: translateX(-100vw) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes lightbox-exit-previous {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100vw) scale(0.97);
    }
}

.project-lightbox__close,
.project-lightbox__arrow {
    border: 0;
    background: transparent;
    color: #f8e9ef;
    cursor: pointer;
    text-shadow:
        0 5px 0 rgba(65, 3, 24, 0.86),
        0 10px 18px rgba(0, 0, 0, 0.72);
    transition:
        color 220ms ease-out,
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
        text-shadow 280ms ease-out;
}

.project-lightbox__close:hover,
.project-lightbox__close:focus-visible,
.project-lightbox__arrow:hover,
.project-lightbox__arrow:focus-visible {
    color: #ff6379;
    outline: none;
    text-shadow:
        0 5px 0 rgba(65, 3, 24, 0.86),
        0 0 18px rgba(255, 73, 101, 0.66);
    transform: scale(1.12);
}

.project-lightbox__close {
    position: absolute;
    top: 22px;
    right: 28px;
    width: 58px;
    height: 58px;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 52px;
    font-weight: 300;
    line-height: 1;
}

.project-lightbox__arrow {
    display: grid;
    width: 60px;
    height: 110px;
    padding: 0;
    place-items: center;
    font-family: Arial, sans-serif;
    font-size: 82px;
    line-height: 1;
}

.project-lightbox__arrow--previous {
    grid-column: 1;
}

.project-lightbox__arrow--next {
    grid-column: 3;
}

.project-detail-page .footer-shell {
    margin-top: 0;
    background: #14090e;
}

.project-detail-page footer {
    padding-top: 48px;
    -webkit-mask-image: none;
    mask-image: none;
}

@media (max-width: 900px) {
    .project-detail-hero {
        min-height: 880px;
        padding: 70px 18px 126px;
    }

    .project-detail-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
        width: min(720px, 100%);
    }

    .project-detail-page--mlc .project-detail-hero,
    .project-detail-page--wtbcr .project-detail-hero {
        min-height: 640px;
    }

    .mlc-terminal__entry-layout {
        display: flow-root;
    }

    .mlc-terminal__media {
        right: 0;
        float: none;
        width: min(680px, 100%);
        margin: 0 0 18px auto;
    }

    .project-gallery {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .project-gallery__arrow {
        width: 40px;
        font-size: 50px;
    }

    .project-detail-branding {
        gap: 16px;
    }

    .project-detail-branding__logo {
        width: min(500px, 88%);
        height: 190px;
    }


    .project-detail-download {
        width: min(460px, 88%);
    }
}

@media (max-width: 520px) {
    .project-detail-hero {
        min-height: 750px;
        padding: 52px 4px 112px;
    }

    .project-detail-page--mlc .project-detail-hero,
    .project-detail-page--wtbcr .project-detail-hero {
        min-height: 590px;
    }

    .project-gallery {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .project-gallery__viewport {
        border-width: 2px;
        border-radius: 13px;
    }

    .project-gallery__arrow {
        width: 32px;
        font-size: 43px;
    }

    .project-detail-branding__logo {
        height: 145px;
    }


    .project-detail-download {
        min-height: 54px;
        padding: 11px 15px;
        font-size: 17px;
    }

    .project-detail-download strong {
        font-size: 12px;
    }

    .project-detail-summary {
        width: calc(100% - 28px);
        box-sizing: border-box;
        padding-right: 12px;
        padding-left: 12px;
    }

    .project-detail-copy {
        width: calc(100% - 28px);
        padding-bottom: 80px;
    }

    .project-detail-copy section {
        padding: 28px 0 42px;
    }

    .project-detail-page--mlc .mlc-terminal {
        --mlc-credits-lead-height: 68px;
        width: 100%;
        margin-top: 26px;
        padding: 0 0 var(--mlc-credits-lead-height);
    }

    .mlc-terminal__screen {
        border: 0;
        border-radius: 0;
        box-shadow:
            0 24px 42px rgba(0, 0, 0, 0.62),
            inset 0 0 58px rgba(0, 0, 0, 0.8);
    }

    .project-detail-page--mlc .mlc-terminal__entry {
        padding: 72px calc(var(--crt-overscan) + 48px) 78px;
    }

    .mlc-terminal__entry-layout {
        display: flow-root;
    }

    .mlc-terminal__media {
        border-width: 1px;
        border-radius: 0;
    }

    .mlc-terminal__boot {
        min-height: calc(100svh + 52svh);
        padding:
            0
            calc(var(--crt-overscan) + 34px)
            52svh;
    }

    .mlc-terminal__boot-panel {
        height: 100svh;
        min-height: 0;
        padding: 28px 4px;
    }

    .mlc-terminal__boot-title {
        margin-bottom: 18px;
        font-size: clamp(29px, 10vw, 46px);
    }

    .mlc-terminal__boot-description-area {
        padding: 36px 12px 42px;
    }

    .mlc-terminal__boot-frame {
        inset: 0;
    }

    .mlc-terminal__boot-message {
        font-size: clamp(18px, 5.2vw, 23px);
        line-height: 1.36;
    }

    .mlc-terminal__boot-continue {
        margin-top: 28px;
        margin-left: 18px;
        font-size: clamp(19px, 5.5vw, 24px);
    }

    .project-detail-page--mlc .mlc-terminal__entry h1 {
        margin-bottom: 28px;
        font-size: clamp(23px, 8vw, 34px);
        text-wrap: pretty;
    }

    .mlc-terminal__response {
        font-size: clamp(18px, 5.25vw, 22px);
        line-height: 1.42;
    }

    .mlc-terminal__notice {
        padding: 13px 14px;
        border-left-width: 3px;
    }

    .project-lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding: 68px 4px 24px;
    }

    .project-lightbox__close {
        top: 10px;
        right: 10px;
        width: 48px;
        height: 48px;
        font-size: 43px;
    }

    .project-lightbox__arrow {
        width: 42px;
        font-size: 56px;
    }

    .project-lightbox__figure img {
        border-width: 2px;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition-overlay,
    body > .page-secondary-header,
    .page-secondary-header .secondary-header__logo,
    .page-secondary-header .secondary-header__socials,
    .secondary-header__checker-clip,
    .secondary-header__checker-plane,
    .project-title__letter,
    .projects-page .project-carousel,
    .team-stage__socials a::before,
    .team-stage__socials img,
    .projects-intro__checker,
    .projects-adventure-surface__checker,
    .projects-intro::after,
    .projects-catalog::before,
    .projects-catalog__curve::after,
    .project-card,
    .project-card::before,
    .project-card__logo,
    .project-card__action,
    .project-panel,
    .project-panel::before,
    .project-panel::after,
    .project-panel__background,
    .project-panel__logo-frame,
    .project-panel__logo,
    .project-panel__action,
    .project-gallery__slide,
    .project-gallery__zoom-prompt,
    .project-gallery__dots button,
    .project-lightbox,
    .project-lightbox__figure,
    .project-lightbox__figure img,
    .project-lightbox__close,
    .project-lightbox__arrow,
    .project-detail-download,
    .project-platform-button,
    .project-detail-requirement a,
    .mlc-terminal__screen,
    .mlc-terminal__screen::before,
    .mlc-terminal__screen::after,
    .mlc-terminal__boot,
    .mlc-terminal__boot::before,
    .mlc-terminal__boot-title,
    .mlc-terminal__boot-corner,
    .mlc-terminal__boot-message,
    .mlc-terminal__boot-continue,
    .mlc-terminal__boot-close,
    .mlc-terminal__entry,
    .mlc-terminal__entry::before,
    .mlc-terminal__entry::after,
    .mlc-terminal__media,
    .mlc-terminal__media::before,
    .mlc-terminal__media::after,
    .mlc-terminal__cursor,
    [data-terminal-prompt]::after,
    .project-credits,
    .project-credits::after,
    .project-credit,
    .project-credit__plane {
        animation: none;
        transition: none;
    }

    .project-credit__plane {
        transform: none;
    }

    .project-detail-download,
    .project-detail-download > *,
    .project-platform-button,
    .project-platform-button:hover,
    .project-platform-button:focus-visible {
        transform: none;
    }

    .project-credits.has-scroll-reveal,
    .project-credits.has-scroll-reveal .project-credits__heading h1,
    .project-credits.has-scroll-reveal .project-credit {
        opacity: 1;
        transform: none;
    }

    .project-credits.has-scroll-reveal .project-credits__heading h1 {
        letter-spacing: 0.045em;
    }

    .project-credit,
    .project-credit:nth-child(even) {
        opacity: 1;
        transform: none;
    }
}

/* Newsletter */
.newsletter-page {
    min-height: 100vh;
    overflow-x: clip;
    background: #14090e;
}

.newsletter-page > .newsletter-main {
    margin: 0;
    padding: 0;
    background: none;
}

.newsletter-archive {
    --newsletter-checker-parallax: 0px;
    position: relative;
    z-index: 1;
    isolation: isolate;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: clamp(62px, 5vw, 88px) clamp(14px, 2.6vw, 42px) 52px;
    background: #14090e;
}

.newsletter-archive::after {
    display: none;
}

.newsletter-archive__texture {
    --checker-parallax: var(--newsletter-checker-parallax);
    position: absolute;
    z-index: -2;
    inset: -240px -90px;
    pointer-events: none;
    background:
        radial-gradient(ellipse 40% 64% at 24% 52%, rgba(255, 148, 174, 0.86) 0%, rgba(243, 73, 116, 0.58) 42%, transparent 80%),
        radial-gradient(ellipse 40% 64% at 76% 52%, rgba(221, 155, 255, 0.82) 0%, rgba(177, 68, 193, 0.56) 42%, transparent 80%);
    -webkit-mask-image: url("media/SVGs/Checkboard.svg");
    mask-image: url("media/SVGs/Checkboard.svg");
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 90px 90px;
    mask-size: 90px 90px;
    -webkit-mask-position: 0 var(--newsletter-checker-parallax);
    mask-position: 0 var(--newsletter-checker-parallax);
    opacity: 0.2;
    will-change: -webkit-mask-position, mask-position;
    animation:
        home-checker-drift 5s linear infinite,
        home-checker-reveal 8s ease-in-out infinite;
}

.newsletter-archive__heading {
    position: relative;
    z-index: 2;
    width: min(1540px, 100%);
    margin: 0 auto clamp(30px, 3vw, 46px);
    text-align: center;
}

.newsletter-archive__heading h1 {
    margin: 0;
    padding: 0;
    color: #f5e7ed;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(50px, 6.5vw, 92px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.045em;
    text-shadow:
        -5px 8px 0 rgba(86, 10, 45, 0.72),
        0 14px 20px rgba(20, 5, 14, 0.54),
        0 0 30px rgba(255, 214, 228, 0.22);
    user-select: none;
    -webkit-user-select: none;
}

.newsletter-carousel {
    position: relative;
    z-index: 1;
    width: min(1680px, 100%);
    margin: 0 auto;
}

.newsletter-carousel__viewport {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    margin: -104px -24px -74px;
    padding: 104px 44px 74px;
    overscroll-behavior-inline: contain;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.newsletter-carousel__viewport.has-overflow {
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        transparent 54px,
        #000 220px,
        #000 calc(100% - 220px),
        transparent calc(100% - 54px),
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        transparent 54px,
        #000 220px,
        #000 calc(100% - 220px),
        transparent calc(100% - 54px),
        transparent 100%
    );
}

.newsletter-carousel__viewport.has-overflow.is-at-start {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 220px), transparent calc(100% - 54px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 220px), transparent calc(100% - 54px), transparent 100%);
}

.newsletter-carousel__viewport.has-overflow.is-at-end {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 54px, #000 220px, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, transparent 54px, #000 220px, #000 100%);
}

.newsletter-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.newsletter-archive__grid {
    position: relative;
    display: flex;
    width: max-content;
    min-width: 100%;
    align-items: stretch;
    gap: clamp(8px, 0.8vw, 14px);
}

.newsletter-carousel__viewport:not(.has-overflow) .newsletter-archive__grid {
    justify-content: center;
}

.newsletter-carousel__arrow {
    position: absolute;
    z-index: 5;
    top: 18px;
    bottom: 24px;
    width: clamp(118px, 11vw, 190px);
    padding: 0;
    border: 0;
    color: rgba(255, 239, 245, 0.96);
    cursor: pointer;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(62px, 6vw, 92px);
    line-height: 1;
    opacity: 1;
    text-shadow:
        0 0 11px rgba(255, 224, 235, 0.8),
        0 0 25px rgba(239, 46, 105, 0.8),
        -4px 7px 0 rgba(45, 5, 27, 0.72);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    transition:
        color 240ms ease-out,
        opacity 260ms ease-out,
        text-shadow 260ms ease-out;
}

.newsletter-carousel__arrow[hidden] {
    display: none;
}

.newsletter-carousel__arrow--previous {
    left: -1px;
    background: transparent;
}

.newsletter-carousel__arrow--next {
    right: -1px;
    background: transparent;
}

.newsletter-carousel__arrow:hover,
.newsletter-carousel__arrow:focus-visible {
    color: #ffffff;
    outline: none;
    text-shadow:
        0 0 14px rgba(255, 245, 249, 1),
        0 0 34px rgba(255, 42, 101, 0.94),
        -4px 7px 0 rgba(45, 5, 27, 0.74);
}

.newsletter-carousel__arrow:disabled {
    cursor: default;
    opacity: 0.16;
}

.newsletter-card-float {
    --newsletter-float-distance: -4px;
    position: relative;
    z-index: 0;
    isolation: isolate;
    width: clamp(275px, 19vw, 330px);
    flex: 0 0 clamp(275px, 19vw, 330px);
    transform-origin: center;
    scroll-snap-align: start;
    filter:
        drop-shadow(-3px 7px 0 rgba(5, 0, 4, 0.44))
        drop-shadow(0 11px 9px rgba(5, 0, 4, 0.38));
    transition: filter 360ms ease-out;
    animation: newsletter-card-float var(--float-duration, 5.2s) cubic-bezier(0.45, 0, 0.55, 1) var(--float-delay, 0s) infinite;
}

.newsletter-card-float.is-featured {
    --newsletter-float-distance: -11px;
    filter: drop-shadow(0 13px 11px rgba(5, 0, 4, 0.5));
}

.newsletter-card-float.is-featured:hover,
.newsletter-card-float.is-featured:focus-within {
    z-index: 3;
    filter:
        drop-shadow(0 15px 12px rgba(5, 0, 4, 0.54))
        drop-shadow(0 0 9px rgba(255, 78, 129, 0.62))
        drop-shadow(0 0 19px rgba(211, 52, 113, 0.34));
}

@property --newsletter-sway {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@property --newsletter-zigzag-flow {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

.newsletter-card {
    --newsletter-zigzag-depth: 11px;
    position: relative;
    display: flex;
    width: calc(100% + 22px);
    min-height: 490px;
    box-sizing: border-box;
    overflow: hidden;
    flex-direction: column;
    margin-left: -11px;
    color: #f5e7ed;
    text-decoration: none;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(238, 33, 72, 0.94) 0%,
        rgba(194, 24, 83, 0.92) 48%,
        rgba(126, 26, 117, 0.92) 100%
    );
    clip-path: polygon(
        calc(100% - var(--newsletter-zigzag-depth)) calc(-16.667% + var(--newsletter-zigzag-flow)),
        100% calc(-8.333% + var(--newsletter-zigzag-flow)),
        calc(100% - var(--newsletter-zigzag-depth)) calc(0% + var(--newsletter-zigzag-flow)),
        100% calc(8.333% + var(--newsletter-zigzag-flow)),
        calc(100% - var(--newsletter-zigzag-depth)) calc(16.667% + var(--newsletter-zigzag-flow)),
        100% calc(25% + var(--newsletter-zigzag-flow)),
        calc(100% - var(--newsletter-zigzag-depth)) calc(33.333% + var(--newsletter-zigzag-flow)),
        100% calc(41.667% + var(--newsletter-zigzag-flow)),
        calc(100% - var(--newsletter-zigzag-depth)) calc(50% + var(--newsletter-zigzag-flow)),
        100% calc(58.333% + var(--newsletter-zigzag-flow)),
        calc(100% - var(--newsletter-zigzag-depth)) calc(66.667% + var(--newsletter-zigzag-flow)),
        100% calc(75% + var(--newsletter-zigzag-flow)),
        calc(100% - var(--newsletter-zigzag-depth)) calc(83.333% + var(--newsletter-zigzag-flow)),
        100% calc(91.667% + var(--newsletter-zigzag-flow)),
        calc(100% - var(--newsletter-zigzag-depth)) calc(100% + var(--newsletter-zigzag-flow)),
        100% calc(108.333% + var(--newsletter-zigzag-flow)),
        calc(100% - var(--newsletter-zigzag-depth)) calc(116.667% + var(--newsletter-zigzag-flow)),
        0 calc(116.667% + var(--newsletter-zigzag-flow)),
        var(--newsletter-zigzag-depth) calc(108.333% + var(--newsletter-zigzag-flow)),
        0 calc(100% + var(--newsletter-zigzag-flow)),
        var(--newsletter-zigzag-depth) calc(91.667% + var(--newsletter-zigzag-flow)),
        0 calc(83.333% + var(--newsletter-zigzag-flow)),
        var(--newsletter-zigzag-depth) calc(75% + var(--newsletter-zigzag-flow)),
        0 calc(66.667% + var(--newsletter-zigzag-flow)),
        var(--newsletter-zigzag-depth) calc(58.333% + var(--newsletter-zigzag-flow)),
        0 calc(50% + var(--newsletter-zigzag-flow)),
        var(--newsletter-zigzag-depth) calc(41.667% + var(--newsletter-zigzag-flow)),
        0 calc(33.333% + var(--newsletter-zigzag-flow)),
        var(--newsletter-zigzag-depth) calc(25% + var(--newsletter-zigzag-flow)),
        0 calc(16.667% + var(--newsletter-zigzag-flow)),
        var(--newsletter-zigzag-depth) calc(8.333% + var(--newsletter-zigzag-flow)),
        0 calc(0% + var(--newsletter-zigzag-flow)),
        var(--newsletter-zigzag-depth) calc(-8.333% + var(--newsletter-zigzag-flow)),
        0 calc(-16.667% + var(--newsletter-zigzag-flow))
    );
    --newsletter-sway: 0deg;
    opacity: 1;
    filter: none;
    transform: scale(0.92);
    transform-origin: center;
    transition:
        transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 320ms ease-out,
        box-shadow 360ms ease-out,
        filter 360ms ease-out,
        opacity 360ms ease-out;
    will-change: transform, clip-path;
    animation: newsletter-card-zigzag-drift 3.2s linear infinite;
}

.newsletter-card::after {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
    background: rgba(3, 0, 2, 0.58);
    opacity: 1;
    transition: opacity 360ms ease-out;
}

.newsletter-card-float.is-featured .newsletter-card {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

.newsletter-card-float.is-featured .newsletter-card::after {
    opacity: 0;
}

.newsletter-card-float:not(.is-featured) .newsletter-card {
    pointer-events: none;
}

.newsletter-card-float.is-featured .newsletter-card:hover,
.newsletter-card-float.is-featured .newsletter-card:focus-visible {
    outline: none;
    filter: saturate(1.08) brightness(1.05);
    transform: translateY(-10px) scale(1.018);
}

.newsletter-card-float:not(.is-featured) .newsletter-card:hover,
.newsletter-card-float:not(.is-featured) .newsletter-card:focus-visible {
    outline: none;
    opacity: 0.86;
    filter: brightness(0.74) saturate(0.86);
    transform: translateY(-6px) scale(0.95);
}

.newsletter-card__image {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    overflow: hidden;
    background: #210719;
}

.newsletter-card__image::after {
    content: "";
    position: absolute;
    inset: 0 0 -1px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(194, 24, 83, 0) 28%,
        rgba(194, 24, 83, 0.12) 50%,
        rgba(194, 24, 83, 0.78) 80%,
        rgb(194, 24, 83) 100%
    );
}

.newsletter-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    transition:
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 420ms ease-out;
}

.newsletter-card:hover .newsletter-card__image img,
.newsletter-card:focus-visible .newsletter-card__image img {
    filter: brightness(1.05) saturate(1.08);
    transform: none;
}

.newsletter-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 330px;
    box-sizing: border-box;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: -55px;
    padding: 55px 38px 28px;
    background: linear-gradient(
        180deg,
        rgba(194, 24, 83, 0) 0,
        rgb(194, 24, 83) 55px,
        rgb(194, 24, 83) 42%,
        rgb(126, 26, 117) 100%
    );
}

.newsletter-card__content time {
    margin: 0 0 13px;
    color: rgba(255, 228, 237, 0.78);
    font-family: 'Changeling Neo', 'Afacad Flux', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    text-shadow: 0 3px 8px rgba(42, 3, 24, 0.5);
}

.newsletter-card__content h2 {
    margin: 0;
    color: #fff0f5;
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(24px, 1.55vw, 29px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-shadow:
        -3px 5px 0 rgba(72, 7, 42, 0.42),
        0 10px 16px rgba(36, 4, 22, 0.34);
}

.newsletter-card__content p {
    margin: 17px 0 0;
    padding: 0;
    color: rgba(255, 232, 240, 0.9);
    font-family: 'Afacad Flux', sans-serif;
    font-size: clamp(17px, 1.05vw, 19px);
    line-height: 1.42;
    text-shadow: 0 4px 10px rgba(39, 3, 23, 0.38);
}

.newsletter-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: auto;
    padding-top: 22px;
    color: #ffdbe6;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-shadow: 0 4px 10px rgba(39, 3, 23, 0.4);
    transition:
        color 260ms ease-out,
        gap 320ms cubic-bezier(0.16, 1, 0.3, 1),
        letter-spacing 320ms ease-out,
        opacity 220ms ease-out;
}

.newsletter-card-float:not(.is-featured) .newsletter-card__read-more {
    opacity: 0;
    visibility: hidden;
}

.newsletter-card:hover .newsletter-card__read-more,
.newsletter-card:focus-visible .newsletter-card__read-more {
    gap: 15px;
    color: #fff7fa;
    letter-spacing: 0.07em;
}

.newsletter-page .footer-shell {
    margin-top: 0;
    background: #14090e;
}

.newsletter-page footer {
    border-top: 5px solid #14090e;
    box-shadow: none;
    filter: none;
    -webkit-mask-image: none;
    mask-image: none;
}

@keyframes newsletter-card-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(var(--newsletter-float-distance));
    }
}

@keyframes newsletter-card-zigzag-drift {
    to {
        --newsletter-zigzag-flow: 16.667%;
    }
}

@keyframes newsletter-card-sway {
    0%, 100% {
        --newsletter-sway: -0.2deg;
    }
    50% {
        --newsletter-sway: 0.2deg;
    }
}

@media (max-width: 720px) {
    .newsletter-archive {
        padding: 58px 0 46px;
    }

    .newsletter-archive__heading {
        margin-bottom: 28px;
    }

    .newsletter-archive__heading h1 {
        font-size: clamp(42px, 13.5vw, 64px);
        letter-spacing: 0.025em;
        white-space: nowrap;
    }

    .newsletter-carousel__viewport {
        margin-right: 0;
        margin-left: 0;
        padding-right: 52px;
        padding-left: 52px;
    }

    .newsletter-archive__grid {
        min-width: 0;
        gap: 10px;
    }

    .newsletter-card-float {
        width: min(78vw, 300px);
        flex-basis: min(78vw, 300px);
    }

    .newsletter-carousel__arrow {
        width: 82px;
        font-size: 64px;
    }

    .newsletter-carousel__viewport.has-overflow {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 38px, #000 132px, #000 calc(100% - 132px), transparent calc(100% - 38px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, transparent 38px, #000 132px, #000 calc(100% - 132px), transparent calc(100% - 38px), transparent 100%);
    }

    .newsletter-carousel__viewport.has-overflow.is-at-start {
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 132px), transparent calc(100% - 38px), transparent 100%);
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 132px), transparent calc(100% - 38px), transparent 100%);
    }

    .newsletter-carousel__viewport.has-overflow.is-at-end {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 38px, #000 132px, #000 100%);
        mask-image: linear-gradient(90deg, transparent 0, transparent 38px, #000 132px, #000 100%);
    }
}

/* footer */
.footer-shell {
    position: relative;
    z-index: 2;
    background: #dc1747;
}

.home-page .team-section {
    padding-bottom: 0;
}

.home-page .footer-shell,
.projects-page .footer-shell {
    margin-top: 0;
}

.home-page footer,
.projects-page footer {
    padding-top: 48px;
    -webkit-mask-image: none;
    mask-image: none;
}

.home-page footer {
    clip-path: none;
}

.projects-page .footer-shell {
    overflow: hidden;
    background: #14090e;
}

.projects-page footer {
    width: calc(100% + 240px);
    margin-left: -120px;
    padding-top: 70px;
    border-top: 0;
    border-radius: 0;
}

footer {
    --footer-color: rgb(31, 14, 21);
    --footer-point-depth: 72px;
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 330px;
    box-sizing: border-box;
    place-items: center;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 24px;
    background-color: var(--footer-color);
    color: white;
    text-align: center;
    padding: 90px 24px 44px;
    margin-top: 0;
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: polygon(
        0 var(--footer-point-depth),
        50% 0,
        100% var(--footer-point-depth),
        100% 100%,
        0 100%
    );
}

.footer__inner {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(680px, 100%);
    flex-direction: column;
    align-items: center;
}

.footer__logo {
    display: block;
    width: min(310px, 72vw);
    height: auto;
    filter:
        brightness(0)
        saturate(100%)
        invert(91%)
        sepia(8%)
        saturate(348%)
        hue-rotate(286deg)
        brightness(104%)
        contrast(94%)
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.46));
}

.footer__years {
    margin: 20px 0 0;
    color: rgba(242, 229, 235, 0.76);
    font-family: 'Changeling Neo', 'Afacad Flux', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.footer__animation-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #f2e5eb;
    cursor: pointer;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 14px;
    font-weight: 650;
}

.footer__animation-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.footer__animation-track {
    position: relative;
    box-sizing: border-box;
    width: 50px;
    height: 30px;
    border: 2px solid #f2e5eb;
    border-radius: 0;
    background: #5d3b49;
    transition: background-color 180ms ease;
}

.footer__animation-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: #f2e5eb;
    transition: transform 180ms ease;
}

.footer__animation-control input:checked + .footer__animation-track {
    background: #dc1747;
}

.footer__animation-control input:checked + .footer__animation-track::after {
    transform: translateX(20px);
}

.footer__animation-control input:focus-visible + .footer__animation-track {
    outline: 3px solid #ff8aaa;
    outline-offset: 4px;
}

.footer__inquiries {
    display: flex;
    width: min(520px, 90vw);
    box-sizing: border-box;
    flex-direction: column;
    margin-top: 30px;
    padding-top: 26px;
    align-items: center;
    gap: 8px;
    position: relative;
    border-top: 0;
    font-style: normal;
    text-align: center;
}

.footer__inquiries::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        rgba(242, 229, 235, 0.22) 0 28px,
        transparent 28px 39px
    );
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.footer__inquiries span {
    color: rgba(242, 229, 235, 0.55);
    font-family: 'Changeling Neo', 'Afacad Flux', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer__inquiries a {
    color: #f2e5eb;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 20px;
    font-weight: 650;
    text-decoration: none;
    transition:
        color 240ms ease-out,
        text-shadow 240ms ease-out,
        transform 240ms ease-out;
}

.footer__inquiries a:hover,
.footer__inquiries a:focus-visible {
    color: #ff8aaa;
    outline: none;
    text-shadow: 0 0 14px rgba(255, 99, 142, 0.48);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    footer {
        min-height: 320px;
        padding: 86px 18px 40px;
    }

    .footer__inquiries {
        gap: 7px;
    }
}

/* section Headings */
section h1 {
    font-family: 'Antaris CF', sans-serif;
    color: rgb(255, 255, 255);
    font-size: 36px;
    padding: 0 25px;
    position: relative;
}

section p {
    font-family: 'Afacad Flux', sans-serif;
    color: rgb(255, 255, 255);
    font-size: 24px;
    padding: 0 25px;
    position: relative;
}

.projects-page .projects-main {
    --projects-edge-height: 58px;
    --projects-edge-period: 112px;
    --projects-intro-height: 280px;
    --projects-intro-live-height: clamp(440px, 54vh, 600px);
    --projects-reveal-progress: 0;
}

.projects-page .projects-main::after {
    content: none;
}

.projects-page .projects-adventure-surface {
    height: calc(var(--projects-intro-height) + var(--projects-edge-height));
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M0 0H112L56 58Z'/%3E%3C/svg%3E");
    mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M0 0H112L56 58Z'/%3E%3C/svg%3E");
    -webkit-mask-position: 0 0, 0 bottom;
    mask-position: 0 0, 0 bottom;
    -webkit-mask-size:
        100% calc(100% - var(--projects-edge-height)),
        var(--projects-edge-period) var(--projects-edge-height);
    mask-size:
        100% calc(100% - var(--projects-edge-height)),
        var(--projects-edge-period) var(--projects-edge-height);
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-composite: source-over;
    mask-composite: add;
    filter: none;
    transform: none;
    animation: projects-adventure-zigzag-drift 2.4s linear infinite;
}

.projects-page .projects-intro {
    min-height: var(--projects-intro-live-height);
    padding: 38px 24px 50px;
    overflow: visible;
    transform: none;
    transition: none;
}

.projects-page .projects-intro h1 {
    transform: translateY(18px) scale(var(--projects-title-scale));
}

.projects-page .projects-catalog {
    overflow: visible;
    background: var(--projects-list-background);
}

.projects-page .projects-catalog__bottom-zigzag {
    width: 100%;
    height: var(--projects-edge-height);
    pointer-events: none;
    background: #14090e;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M56 0L112 58H0Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M56 0L112 58H0Z'/%3E%3C/svg%3E");
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-size: var(--projects-edge-period) var(--projects-edge-height);
    mask-size: var(--projects-edge-period) var(--projects-edge-height);
    filter:
        drop-shadow(0 -5px 0 rgba(221, 47, 79, 0.98))
        drop-shadow(0 -9px 10px rgba(241, 50, 89, 0.48))
        drop-shadow(0 -15px 20px rgba(112, 10, 43, 0.4));
    animation: projects-outline-zigzag-drift 2.4s linear infinite;
}

.projects-page .projects-catalog__curve {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 7;
    display: block;
    width: 100%;
    height: calc(var(--projects-edge-height) + 16px);
    overflow: visible;
    pointer-events: none;
    background: transparent;
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
    transform: none;
}

.projects-zigzag-outline {
    --projects-outline-offset: 0px;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: calc(var(--projects-edge-height) + var(--projects-outline-offset));
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M0 0H112L56 58Z'/%3E%3C/svg%3E");
    mask-image:
        linear-gradient(#000 0 0),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M0 0H112L56 58Z'/%3E%3C/svg%3E");
    -webkit-mask-position: 0 0, 0 bottom;
    mask-position: 0 0, 0 bottom;
    -webkit-mask-repeat: no-repeat, repeat-x;
    mask-repeat: no-repeat, repeat-x;
    -webkit-mask-size:
        100% var(--projects-outline-offset),
        var(--projects-edge-period) var(--projects-edge-height);
    mask-size:
        100% var(--projects-outline-offset),
        var(--projects-edge-period) var(--projects-edge-height);
    -webkit-mask-composite: source-over;
    mask-composite: add;
    animation: projects-outline-zigzag-drift 2.4s linear infinite;
}

.projects-zigzag-outline--dark {
    --projects-outline-offset: 13px;
    z-index: 1;
    background: #080105;
}

.projects-zigzag-outline--accent {
    --projects-outline-offset: 7px;
    z-index: 2;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(154, 28, 60, 0.2) 15%,
        rgba(215, 47, 82, 0.54) 34%,
        rgba(255, 91, 119, 0.96) 50%,
        rgba(215, 47, 82, 0.54) 66%,
        rgba(154, 28, 60, 0.2) 85%,
        transparent 100%
    );
    filter:
        drop-shadow(0 0 8px rgba(244, 49, 87, 0.56))
        drop-shadow(0 0 18px rgba(206, 34, 75, 0.32));
}

.projects-page .projects-catalog__curve .projects-zigzag-outline--accent {
    opacity: calc(1 - var(--projects-title-opacity));
    transition: opacity 180ms linear;
}

.projects-zigzag-outline--fill {
    z-index: 3;
    background: var(--projects-list-background);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M0 0H112L56 58Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M0 0H112L56 58Z'/%3E%3C/svg%3E");
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-size: var(--projects-edge-period) var(--projects-edge-height);
    mask-size: var(--projects-edge-period) var(--projects-edge-height);
}

.projects-page .project-carousel {
    --project-list-offset: 0px;
    margin-top: 0;
    padding-top: 0;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: var(--projects-reveal-progress);
    pointer-events: none;
    transform: none;
    visibility: hidden;
    transition: none;
}

.projects-page.projects-list-visible .project-carousel {
    pointer-events: auto;
    visibility: visible;
}

.projects-page .project-stack {
    height: clamp(740px, calc(70vh + 100px), 870px);
    background: transparent;
    transform: none;
    transform-origin: left center;
    will-change: transform;
}

.projects-page .project-panel__description {
    margin-top: 315px;
}

.projects-page .project-panel__action {
    margin-top: 24px;
    padding-top: 0;
}

.projects-page .projects-catalog__bottom-zigzag {
    position: relative;
    z-index: 6;
    margin-top: 0;
}

.projects-category-selector {
    position: relative;
    z-index: 4;
    display: grid;
    min-height: 250px;
    box-sizing: border-box;
    place-items: start center;
    padding: 52px 24px 42px;
    background:
        radial-gradient(ellipse 760px 280px at 50% 0, rgba(244, 42, 78, 0.5), rgba(153, 17, 50, 0.18) 44%, transparent 74%),
        #14090e;
}

.projects-category-selector__separator {
    position: absolute;
    top: calc(var(--projects-edge-height) * -1);
    left: 0;
    width: 100%;
    height: calc(var(--projects-edge-height) + 16px);
    overflow: visible;
    pointer-events: none;
    background: transparent;
}

.projects-category-selector__separator .projects-zigzag-outline {
    top: calc(0px - var(--projects-outline-offset));
    height: calc(var(--projects-edge-height) + var(--projects-outline-offset));
    background: #14090e;
    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M56 0L112 58H0Z'/%3E%3C/svg%3E"),
        linear-gradient(#000 0 0);
    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M56 0L112 58H0Z'/%3E%3C/svg%3E"),
        linear-gradient(#000 0 0);
    -webkit-mask-position: 0 0, 0 bottom;
    mask-position: 0 0, 0 bottom;
    -webkit-mask-repeat: repeat-x, no-repeat;
    mask-repeat: repeat-x, no-repeat;
    -webkit-mask-size:
        var(--projects-edge-period) var(--projects-edge-height),
        100% var(--projects-outline-offset);
    mask-size:
        var(--projects-edge-period) var(--projects-edge-height),
        100% var(--projects-outline-offset);
    -webkit-mask-composite: source-over;
    mask-composite: add;
    transform: none;
    animation-name: projects-inverted-outline-drift;
}

.projects-category-selector__separator .projects-zigzag-outline--dark {
    background: #080105;
}

.projects-category-selector__separator .projects-zigzag-outline--accent {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(154, 28, 60, 0.2) 15%,
        rgba(215, 47, 82, 0.54) 34%,
        rgba(255, 91, 119, 0.96) 50%,
        rgba(215, 47, 82, 0.54) 66%,
        rgba(154, 28, 60, 0.2) 85%,
        transparent 100%
    );
    filter:
        drop-shadow(0 0 8px rgba(244, 49, 87, 0.56))
        drop-shadow(0 0 18px rgba(206, 34, 75, 0.32));
}

.projects-category-selector__separator .projects-zigzag-outline--fill {
    top: 0;
    height: var(--projects-edge-height);
    background:
        radial-gradient(ellipse 760px 280px at 50% 100%, rgba(244, 42, 78, 0.5), rgba(153, 17, 50, 0.18) 44%, transparent 74%),
        #14090e;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M56 0L112 58H0Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 58'%3E%3Cpath fill='%23000' d='M56 0L112 58H0Z'/%3E%3C/svg%3E");
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-size: var(--projects-edge-period) var(--projects-edge-height);
    mask-size: var(--projects-edge-period) var(--projects-edge-height);
    animation-name: projects-zigzag-drift-reverse;
}

.projects-category-selector__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 7vw, 112px);
}

.projects-category-selector__buttons button {
    position: relative;
    border: 0;
    padding: 8px 4px 13px;
    background: transparent;
    color: rgba(242, 229, 235, 0.5);
    cursor: pointer;
    font-family: 'Antaris CF', sans-serif;
    font-size: clamp(24px, 3.1vw, 46px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 5px 0 rgba(7, 1, 5, 0.82);
    transform: translateY(0) scale(0.96);
    transition:
        color 260ms ease-out,
        filter 300ms ease-out,
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-category-selector__buttons button::after {
    content: "";
    position: absolute;
    right: 15%;
    bottom: 0;
    left: 15%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, rgba(230, 42, 69, 0.6) 22%, #ff6178 50%, rgba(230, 42, 69, 0.6) 78%, transparent 100%);
    filter: drop-shadow(0 0 7px rgba(239, 44, 73, 0.42));
    opacity: 0;
    transform: scaleX(0.25);
    transition:
        opacity 240ms ease-out,
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-category-selector__buttons button:hover,
.projects-category-selector__buttons button:focus-visible,
.projects-category-selector__buttons button.is-active {
    color: #f8e9ef;
    filter: drop-shadow(0 0 12px rgba(239, 44, 73, 0.52));
    outline: none;
    transform: translateY(-4px) scale(1);
}

.projects-category-selector__buttons button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.projects-page .project-panel.is-filtered-out {
    display: none;
}

.projects-page .footer-shell {
    overflow: hidden;
}

.projects-page footer {
    width: calc(100% + 240px);
    margin-left: -120px;
    padding-top: 70px;
    overflow: hidden;
    border-top: 0;
    border-radius: 0;
}

.projects-page .footer-shell::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: -120px;
    width: calc(100% + 240px);
    height: 60px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 72' preserveAspectRatio='none'%3E%3Cpath d='M0 72L400 0L800 72' fill='none' stroke='%2314090e' stroke-width='5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% 72px;
}

@keyframes projects-zigzag-drift {
    to {
        -webkit-mask-position: calc(var(--projects-edge-period) * -1) 0;
        mask-position: calc(var(--projects-edge-period) * -1) 0;
    }
}

@keyframes projects-outline-zigzag-drift {
    to {
        -webkit-mask-position: 0 0, calc(var(--projects-edge-period) * -1) bottom;
        mask-position: 0 0, calc(var(--projects-edge-period) * -1) bottom;
    }
}

@keyframes projects-inverted-outline-drift {
    to {
        -webkit-mask-position: var(--projects-edge-period) 0, 0 bottom;
        mask-position: var(--projects-edge-period) 0, 0 bottom;
    }
}

@keyframes projects-zigzag-drift-reverse {
    to {
        -webkit-mask-position: var(--projects-edge-period) 0;
        mask-position: var(--projects-edge-period) 0;
    }
}

@keyframes projects-adventure-zigzag-drift {
    to {
        -webkit-mask-position: 0 0, calc(var(--projects-edge-period) * -1) bottom;
        mask-position: 0 0, calc(var(--projects-edge-period) * -1) bottom;
    }
}

@media (max-width: 860px) {
    .projects-page .projects-main {
        --projects-edge-height: 44px;
        --projects-edge-period: 84px;
        --projects-intro-height: 228px;
        --projects-intro-live-height: clamp(360px, 50vh, 500px);
    }

    .projects-page .projects-intro {
        min-height: var(--projects-intro-live-height);
        padding: 28px 14px 40px;
    }

    .projects-page .projects-intro h1 {
        transform: translateY(10px) scale(var(--projects-title-scale));
    }

    .projects-page .projects-catalog {
        padding-top: 0;
    }

    .projects-page .projects-catalog__bottom-zigzag {
        height: var(--projects-edge-height);
    }

    .projects-page .project-carousel {
        margin-top: 0;
        padding-top: 0;
    }

    .projects-page .project-stack {
        height: auto;
    }

    .projects-page .project-panel__description {
        margin-top: 235px;
    }

    .projects-page .project-panel__action {
        margin-top: 18px;
    }

    .projects-category-selector {
        min-height: 204px;
        padding: 48px 12px 32px;
    }

    .projects-category-selector__buttons {
        width: 100%;
        gap: clamp(15px, 6vw, 44px);
    }

    .projects-category-selector__buttons button {
        font-size: clamp(19px, 6.1vw, 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-page .projects-intro,
    .projects-page .projects-adventure-surface,
    .projects-page .projects-catalog__bottom-zigzag,
    .projects-category-selector__separator,
    .projects-zigzag-outline,
    .projects-category-selector__buttons button,
    .projects-category-selector__buttons button::after,
    .newsletter-archive__texture,
    .projects-page .footer-shell::before,
    .newsletter-card-float,
    .newsletter-card,
    .newsletter-card__image img,
    .newsletter-card__read-more {
        animation: none;
        transition: none;
    }

    .newsletter-card,
    .newsletter-card:hover,
    .newsletter-card:focus-visible {
        transform: none;
    }
}

@keyframes home-feed-divider-scroll-horizontal {
    to {
        -webkit-mask-position: 44px center;
        mask-position: 44px center;
    }
}

@media (max-width: 860px), (orientation: portrait) {
    .home-feed__grid {
        --home-feed-mobile-gap: clamp(82px, 11vw, 116px);
        grid-template-columns: 1fr;
        gap: var(--home-feed-mobile-gap);
    }

    .home-feed__grid::before {
        display: none;
    }

    .feed-card-reveal--newsletter::before {
        content: "";
        position: absolute;
        z-index: 3;
        top: calc(var(--home-feed-mobile-gap) * -0.5);
        right: 7%;
        left: 7%;
        height: 9px;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            transparent,
            #ee2148 18%,
            #c21853 50%,
            #7e1a75 82%,
            transparent
        );
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpolygon points='0,4.5 4.5,0 9,4.5 4.5,9' fill='black'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 9'%3E%3Cpolygon points='0,4.5 4.5,0 9,4.5 4.5,9' fill='black'/%3E%3C/svg%3E");
        -webkit-mask-position: 0 center;
        mask-position: 0 center;
        -webkit-mask-size: 22px 9px;
        mask-size: 22px 9px;
        -webkit-mask-repeat: repeat-x;
        mask-repeat: repeat-x;
        opacity: 0.88;
        filter:
            drop-shadow(0 0 5px rgba(255, 53, 104, 0.28))
            drop-shadow(0 0 11px rgba(242, 229, 235, 0.12));
        transform: translateY(-50%);
        animation: home-feed-divider-scroll-horizontal 1.15s linear infinite;
    }

    .ambition-showcase,
    body.home-at-top .ambition-showcase {
        min-height: max(460px, calc(100svh - 320px));
    }

    body.mobile-ambition-expanded .ambition-showcase {
        min-height: max(680px, calc(100svh - 96px));
    }

    body.home-at-top .ambition-showcase:hover .ambition-showcase__link,
    body.home-at-top .ambition-showcase:focus-within .ambition-showcase__link,
    body.home-at-top .ambition-showcase:hover .ambition-showcase__link:hover,
    body.home-at-top .ambition-showcase:focus-within .ambition-showcase__link:focus-visible {
        transform: none;
    }

    body.home-at-top .ambition-showcase:hover .ambition-showcase__description,
    body.home-at-top .ambition-showcase:focus-within .ambition-showcase__description {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 36px);
        transition:
            opacity 360ms ease-out,
            transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0s linear 560ms;
    }

    body.mobile-ambition-expanded .ambition-showcase__link,
    body.mobile-ambition-expanded .ambition-showcase:hover .ambition-showcase__link,
    body.mobile-ambition-expanded .ambition-showcase:focus-within .ambition-showcase__link {
        transform: translateY(-112px);
    }

    body.mobile-ambition-expanded .ambition-showcase__link:hover,
    body.mobile-ambition-expanded .ambition-showcase__link:focus-visible,
    body.mobile-ambition-expanded .ambition-showcase:hover .ambition-showcase__link:hover,
    body.mobile-ambition-expanded .ambition-showcase:focus-within .ambition-showcase__link:focus-visible {
        transform: translateY(-112px) scale(1.04);
    }

    body.mobile-ambition-expanded .ambition-showcase__description,
    body.mobile-ambition-expanded .ambition-showcase:hover .ambition-showcase__description,
    body.mobile-ambition-expanded .ambition-showcase:focus-within .ambition-showcase__description {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 8px);
        transition:
            opacity 420ms ease-out 90ms,
            transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0s;
    }

    .projects-page {
        width: 100%;
        max-width: 100vw;
        overflow-x: clip;
    }

    .projects-page .project-carousel {
        --project-list-offset: 42px;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        margin-top: -32px;
        -webkit-mask-size: 100% 145px, 100% calc(100% - 145px);
        mask-size: 100% 145px, 100% calc(100% - 145px);
    }

    .projects-page .project-stack {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-direction: column;
        contain: inline-size;
        overflow: hidden;
    }

    .projects-page .project-panel,
    .projects-page .project-panel:first-child {
        --vertical-panel-width: max(1200px, 100vw);
        --vertical-panel-inset: calc((var(--vertical-panel-width) - 100vw) / 2);
        --panel-point-depth: clamp(64px, 13vw, 104px);
        width: var(--vertical-panel-width);
        max-width: none;
        height: min(542px, calc(68vh + 22px));
        min-height: 452px;
        flex: none;
        margin: -58px 0 0 calc((100vw - var(--vertical-panel-width)) / 2);
        padding: 72px calc(var(--vertical-panel-inset) + 72px) 48px calc(var(--vertical-panel-inset) + 28px);
        border: 0;
        border-radius: 0;
        clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - var(--panel-point-depth)),
            50% 100%,
            0 calc(100% - var(--panel-point-depth))
        );
        filter:
            brightness(1)
            saturate(1)
            drop-shadow(0 6px 0 #14090e);
        box-shadow:
            0 22px 34px rgba(5, 0, 4, 0.68),
            inset 0 -13px 22px rgba(20, 2, 15, 0.26);
    }

    .projects-page .project-panel:first-child {
        margin-top: 0;
        padding-left: calc(var(--vertical-panel-inset) + 28px);
    }

    .projects-page .project-panel > .project-panel__divider {
        top: auto;
        right: 0;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: calc(var(--panel-point-depth) + 8px);
        clip-path: polygon(
            0 0,
            0 6px,
            50% 100%,
            100% 6px,
            100% 0,
            50% calc(100% - 8px)
        );
        filter:
            drop-shadow(0 -4px 3px rgba(125, 21, 49, 0.82))
            drop-shadow(0 -9px 12px rgba(225, 53, 91, 0.34));
    }

    .projects-page .project-panel::before {
        top: 0;
        height: clamp(300px, 58%, 440px);
        opacity: 0;
        transform: translateY(-100%);
    }

    .projects-page .project-panel__logo-frame,
    .projects-page .project-panel:not(:first-child) .project-panel__logo-frame,
    .projects-page .project-panel:first-child .project-panel__logo-frame {
        top: 50%;
        left: 50%;
        width: min(94%, 460px);
        height: 230px;
        padding-inline: 0;
        transform: translate(-50%, -50%) scale(0.68);
    }

    .projects-page .project-panel__logo {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        filter: none;
        transform: none;
    }

    .projects-page .project-panel__description {
        margin-top: 240px;
        opacity: 0;
        transform: translateY(18px);
    }

    .projects-page .project-panel__action {
        opacity: 0;
        transform: translateY(20px);
    }

    .projects-page .project-panel:hover,
    .projects-page .project-panel:focus-visible,
    .projects-page .project-panel:first-child:hover,
    .projects-page .project-panel:first-child:focus-visible {
        flex: none;
        margin-right: 0;
        filter:
            brightness(1)
            saturate(1)
            drop-shadow(0 6px 0 #14090e);
        outline: none;
        box-shadow:
            0 22px 34px rgba(5, 0, 4, 0.68),
            inset 0 -13px 22px rgba(20, 2, 15, 0.26);
    }

    .projects-page .project-panel:hover > .project-panel__divider,
    .projects-page .project-panel:focus-visible > .project-panel__divider {
        filter:
            drop-shadow(0 -4px 3px rgba(125, 21, 49, 0.82))
            drop-shadow(0 -9px 12px rgba(225, 53, 91, 0.34));
    }

    .projects-page .project-panel:hover .project-panel__background,
    .projects-page .project-panel:focus-visible .project-panel__background {
        filter: blur(11px) brightness(0.92) saturate(1);
        transform: translate3d(0, var(--projects-list-parallax), 0) scale(1.1);
    }

    .projects-page .project-panel:hover::after,
    .projects-page .project-panel:focus-visible::after {
        opacity: 0.24;
    }

    .projects-page .project-panel:hover::before,
    .projects-page .project-panel:focus-visible::before {
        opacity: 0;
        transform: translateY(-100%);
    }

    .projects-page .project-panel:hover .project-panel__logo,
    .projects-page .project-panel:focus-visible .project-panel__logo {
        filter: none;
        transform: none;
    }

    .projects-page .project-panel:hover .project-panel__logo-frame,
    .projects-page .project-panel:focus-visible .project-panel__logo-frame {
        top: 50%;
        left: 50%;
        padding-inline: 0;
        transform: translate(-50%, -50%) scale(0.68);
    }

    .projects-page .project-panel:hover .project-panel__description,
    .projects-page .project-panel:focus-visible .project-panel__description {
        opacity: 0;
        transform: translateY(18px);
    }

    .projects-page .project-panel:hover .project-panel__action,
    .projects-page .project-panel:focus-visible .project-panel__action {
        color: #ff6178;
        letter-spacing: 0.04em;
        opacity: 0;
        transform: translateY(20px);
    }

    .projects-page .project-stack:has(.project-panel:hover) .project-panel:not(:hover) {
        filter:
            brightness(1)
            saturate(1)
            drop-shadow(0 6px 0 #14090e);
    }

    .projects-page .project-carousel__edge {
        display: none;
    }

    .newsletter-carousel {
        width: min(720px, 100%);
    }

    .newsletter-carousel__viewport {
        height: min(720px, 76svh);
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        margin: -54px 0 -38px;
        padding: 80px 18px;
        overscroll-behavior-inline: auto;
        overscroll-behavior-block: contain;
    }

    .newsletter-archive__grid {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
    }

    .newsletter-card-float {
        width: min(78vw, 330px);
        flex: 0 0 auto;
    }

    .newsletter-carousel__viewport.has-overflow {
        -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 54px, #000 154px, #000 calc(100% - 154px), transparent calc(100% - 54px), transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0, transparent 54px, #000 154px, #000 calc(100% - 154px), transparent calc(100% - 54px), transparent 100%);
    }

    .newsletter-carousel__viewport.has-overflow.is-at-start {
        -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 154px), transparent calc(100% - 54px), transparent 100%);
        mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 154px), transparent calc(100% - 54px), transparent 100%);
    }

    .newsletter-carousel__viewport.has-overflow.is-at-end {
        -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 54px, #000 154px, #000 100%);
        mask-image: linear-gradient(180deg, transparent 0, transparent 54px, #000 154px, #000 100%);
    }

    .newsletter-carousel__arrow {
        right: auto;
        left: 50%;
        width: min(360px, 86vw);
        height: 88px;
        transform: translateX(-50%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
    }

    .newsletter-carousel__arrow--previous {
        top: -8px;
        bottom: auto;
    }

    .newsletter-carousel__arrow--next {
        top: auto;
        bottom: -8px;
    }

    .newsletter-carousel__arrow span {
        display: inline-block;
        transform: rotate(90deg);
    }
}

/* Project detail pages keep their own motion; the other pages honor the switch. */
html.animations-off body:not(.project-detail-page),
html.animations-off body:not(.project-detail-page) *,
html.animations-off body:not(.project-detail-page) *::before,
html.animations-off body:not(.project-detail-page) *::after {
    animation: none !important;
    scroll-behavior: auto !important;
}

html.animations-off .home-page .ambition-showcase__background.is-zooming {
    animation: none !important;
}

html.animations-off .home-page .ambition-showcase {
    min-height: max(540px, calc(100svh - 320px));
    transition: none;
}

html.animations-off .home-page .ambition-showcase__link {
    transform: translateY(-90px);
}

html.animations-off .home-page .ambition-showcase__link:hover,
html.animations-off .home-page .ambition-showcase__link:focus-visible {
    transform: translateY(-90px) scale(1.04);
}

html.animations-off .home-page .ambition-showcase h1 {
    transform: translateY(20px);
    transition: none;
}

html.animations-off .home-page .ambition-showcase__description,
html.animations-off .home-page .ambition-showcase:hover .ambition-showcase__description,
html.animations-off .home-page .ambition-showcase:focus-within .ambition-showcase__description {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 6px);
    transition: none;
}

html.animations-off .home-page .gradient-section,
html.animations-off .home-page.home-at-top .gradient-section {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}

html.animations-off .home-page .feed-card-reveal,
html.animations-off .home-page .team-section.has-scroll-reveal .team-section__inner {
    transition: none;
}

html.animations-off .home-page .page-secondary-header.is-content-hidden .secondary-header__logo {
    opacity: 1;
    transform: translate(-50%, -50%);
}

html.animations-off .home-page .page-secondary-header.is-content-hidden .secondary-header__socials {
    opacity: 1;
    transform: translate(-50%, 0);
}

html.animations-off .home-page .home-feed__grid::before,
html.animations-off .home-page .feed-card-reveal,
html.animations-off .home-page .team-section.has-scroll-reveal .team-section__inner {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

html.animations-off .home-page .ambition-showcase__background.is-active {
    opacity: 1;
}

html.animations-off .projects-page .projects-main {
    --projects-intro-height: clamp(440px, 54vh, 600px);
}

html.animations-off .projects-page .project-carousel {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

html.animations-off .projects-page .page-secondary-header.is-content-hidden .secondary-header__logo {
    opacity: 1;
    transform: translate(-50%, -50%);
}

html.animations-off .projects-page .page-secondary-header.is-content-hidden .secondary-header__socials {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 860px) {
    html.animations-off .projects-page .projects-main {
        --projects-intro-height: clamp(360px, 50vh, 500px);
    }

    html.animations-off .home-page .ambition-showcase {
        min-height: max(680px, calc(100svh - 96px));
    }

    html.animations-off .home-page .ambition-showcase__link {
        transform: translateY(-112px);
    }

    html.animations-off .home-page .ambition-showcase__link:hover,
    html.animations-off .home-page .ambition-showcase__link:focus-visible {
        transform: translateY(-112px) scale(1.04);
    }

    html.animations-off .home-page .ambition-showcase__description,
    html.animations-off .home-page .ambition-showcase:hover .ambition-showcase__description,
    html.animations-off .home-page .ambition-showcase:focus-within .ambition-showcase__description {
        transform: translate(-50%, 8px);
    }
}
