:root {
    --built-black: #09090b;
    --structure: #15151a;
    --framework: #292931;
    --purple: #7657ff;
    --cyan: #43d9e6;
    --primary-text: #f3f3f5;
    --secondary-text: #a5a5af;
    --muted-text: #71717c;
    --page-gutter: clamp(1.25rem, 5vw, 5rem);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    background: var(--built-black);
    scroll-behavior: smooth;
    scrollbar-color: var(--purple) var(--structure);
    scrollbar-width: thin;
}

html::-webkit-scrollbar { width: .75rem; }
html::-webkit-scrollbar-track { background: var(--structure); }
html::-webkit-scrollbar-thumb { background: var(--purple); border: 2px solid var(--structure); }
html.is-wheel-scrolling { scroll-behavior: auto; }

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: var(--built-black);
    color: var(--primary-text);
    font-family: "Microsoft Sans Serif", "Segoe UI", Arial, sans-serif;
}

::selection {
    background: var(--purple);
    color: #fff;
}

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

.skip-link {
    position: fixed;
    z-index: 20;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    background: var(--primary-text);
    color: var(--built-black);
    font-size: 0.875rem;
    font-weight: 700;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-frame {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    margin-inline: var(--page-gutter);
    color: var(--muted-text);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
}
.site-footer p {
    margin: 0;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--cyan);
}

.hero {
    display: grid;
    place-items: center;
    align-content: center;
    gap: clamp(2.5rem, 6vh, 5rem);
    width: 100%;
    padding: clamp(4rem, 8vh, 7rem) var(--page-gutter);
}

.logo-assembly {
    position: relative;
    width: min(72rem, 88vw);
    aspect-ratio: 5000 / 2204;
    isolation: isolate;
}

.logo-whole,
.logo-slice {
    --pointer-x: 0px;
    --pointer-y: 0px;
    position: absolute;
    inset: 0;
}

.logo-whole {
    z-index: 2;
    pointer-events: none;
}

.logo-slice {
    opacity: 0;
    translate: var(--pointer-x) var(--pointer-y);
    transition: translate 350ms ease-out;
    will-change: transform;
}

.logo-whole img,
.logo-slice img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.logo-slice-1 {
    --slice-x: -0.8%;
    --slice-y: -1.2%;
    clip-path: polygon(0 0, 100% 8%, 100% 14.4%, 0 20.4%);
}

.logo-slice-2 {
    --slice-x: 0.8%;
    --slice-y: 0.6%;
    clip-path: polygon(0 21.6%, 100% 15.6%, 100% 48.9%, 0 41.4%);
}

.logo-slice-3 {
    --slice-x: -0.3%;
    --slice-y: 0.4%;
    clip-path: polygon(0 42.6%, 100% 50.1%, 100% 55.9%, 0 61.4%);
}

.logo-slice-4 {
    --slice-x: 1%;
    --slice-y: -0.5%;
    clip-path: polygon(0 62.6%, 100% 57.1%, 100% 85.4%, 0 81.4%);
}

.logo-slice-5 {
    --slice-x: -0.7%;
    --slice-y: 0.9%;
    clip-path: polygon(0 82.6%, 100% 86.6%, 100% 100%, 0 100%);
}

[data-logo-state="fracturing"] .logo-slice {
    opacity: 1;
}

[data-logo-state="fracturing"] .logo-whole {
    animation: reveal-fracture 1.1s linear both;
}

[data-logo-state="fracturing"] .logo-slice-1 {
    animation: fracture-one 1.1s cubic-bezier(.68, 0, .22, 1) both, slice-one 7.2s ease-in-out 1.1s infinite;
}

[data-logo-state="fracturing"] .logo-slice-2 {
    animation: fracture-two 1.1s cubic-bezier(.68, 0, .22, 1) both, slice-two 6.4s ease-in-out 1.1s infinite;
}

[data-logo-state="fracturing"] .logo-slice-3 {
    animation: fracture-three 1.1s cubic-bezier(.68, 0, .22, 1) both, slice-three 7.8s ease-in-out 1.1s infinite;
}

[data-logo-state="fracturing"] .logo-slice-4 {
    animation: fracture-four 1.1s cubic-bezier(.68, 0, .22, 1) both, slice-four 6.8s ease-in-out 1.1s infinite;
}

[data-logo-state="fracturing"] .logo-slice-5 {
    animation: fracture-five 1.1s cubic-bezier(.68, 0, .22, 1) both, slice-five 7.4s ease-in-out 1.1s infinite;
}

.launch-copy {
    color: var(--secondary-text);
    font-size: clamp(0.95rem, 1.3vw, 1.125rem);
    letter-spacing: -0.015em;
}

.launch-copy p {
    margin: 0;
}

.launch-copy strong {
    color: var(--primary-text);
}

.different-accent {
    color: var(--purple);
}

.projects {
    width: min(64rem, 88vw);
    margin-top: clamp(1rem, 2vh, 2rem);
}

.projects h2 {
    margin: 0 0 1.5rem;
    color: var(--primary-text);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.projects ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--framework);
    list-style: none;
}

.projects li {
    border-bottom: 1px solid var(--framework);
}

.project-link {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem minmax(12rem, 0.85fr) minmax(18rem, 1.15fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: 6.5rem;
    padding: 1.25rem 0.75rem;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
    background: rgba(118, 87, 255, 0.055);
    box-shadow: inset 3px 0 var(--purple);
}

.project-link:focus-visible {
    outline: 1px solid var(--purple);
    outline-offset: -1px;
}

.project-number,
.project-type {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.07em;
}

.project-number {
    color: var(--purple);
}

.project-identity {
    display: grid;
    gap: 0.7rem;
}

.projects strong {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.project-type {
    color: var(--muted-text);
    text-transform: uppercase;
}

.project-link > p {
    max-width: 31rem;
    margin: 0;
    color: var(--secondary-text);
    font-size: clamp(0.95rem, 1.25vw, 1.05rem);
    line-height: 1.55;
}

.project-domain {
    display: block;
    margin-top: 0.65rem;
    color: var(--cyan);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.06em;
}

.about-feature {
    width: min(64rem, 88vw);
    margin-top: clamp(4rem, 9vh, 8rem);
}

.about-feature-link {
    display: grid;
    grid-template-columns: minmax(18rem, .9fr) minmax(18rem, 1.1fr);
    border-top: 1px solid var(--framework);
    border-bottom: 1px solid var(--framework);
    color: inherit;
    text-decoration: none;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.about-feature-link:hover,
.about-feature-link:focus-visible {
    background: rgba(118, 87, 255, 0.055);
    box-shadow: inset 3px 0 var(--purple);
}

.about-feature-link:focus-visible {
    outline: 1px solid var(--purple);
    outline-offset: -1px;
}

.about-feature-heading,
.about-feature-copy {
    min-width: 0;
    padding: clamp(2rem, 4vw, 4rem);
}

.about-feature-heading {
    border-right: 1px solid var(--framework);
}

.about-feature-heading > p,
.about-feature-action {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: .625rem;
    letter-spacing: .09em;
}

.about-feature-heading > p {
    margin: 0 0 clamp(2rem, 4vw, 4rem);
    color: var(--cyan);
}

.about-feature h2 {
    margin: 0;
    font-size: clamp(2.75rem, 5vw, 5.5rem);
    letter-spacing: normal;
    line-height: 1.02;
}

.about-feature h2 span {
    color: var(--purple);
}

.about-feature-copy {
    display: flex;
    min-height: clamp(20rem, 32vw, 28rem);
    flex-direction: column;
    justify-content: space-between;
    gap: 4rem;
}

.about-feature-copy > p {
    max-width: 32rem;
    margin: 0;
    color: var(--secondary-text);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.6;
}

.about-feature-action {
    align-self: flex-start;
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--purple);
    color: var(--primary-text);
}

.about-feature-action span {
    color: var(--cyan);
}

.about-feature-action .different-accent {
    color: var(--purple);
}

.site-footer {
    border-top: 1px solid var(--framework);
}

@keyframes reveal-fracture {
    0%, 8% { opacity: 1; }
    12%, 100% { opacity: 0; }
}

@keyframes fracture-one {
    from { clip-path: polygon(0 0, 100% 8%, 100% 15%, 0 21%); transform: translate(0, 0); }
    to { clip-path: polygon(0 0, 100% 8%, 100% 14.4%, 0 20.4%); transform: translate(-0.8%, -1.2%); }
}

@keyframes fracture-two {
    from { clip-path: polygon(0 21%, 100% 15%, 100% 49.5%, 0 42%); transform: translate(0, 0); }
    to { clip-path: polygon(0 21.6%, 100% 15.6%, 100% 48.9%, 0 41.4%); transform: translate(0.8%, 0.6%); }
}

@keyframes fracture-three {
    from { clip-path: polygon(0 42%, 100% 49.5%, 100% 56.5%, 0 62%); transform: translate(0, 0); }
    to { clip-path: polygon(0 42.6%, 100% 50.1%, 100% 55.9%, 0 61.4%); transform: translate(-0.3%, 0.4%); }
}

@keyframes fracture-four {
    from { clip-path: polygon(0 62%, 100% 56.5%, 100% 86%, 0 82%); transform: translate(0, 0); }
    to { clip-path: polygon(0 62.6%, 100% 57.1%, 100% 85.4%, 0 81.4%); transform: translate(1%, -0.5%); }
}

@keyframes fracture-five {
    from { clip-path: polygon(0 82%, 100% 86%, 100% 100%, 0 100%); transform: translate(0, 0); }
    to { clip-path: polygon(0 82.6%, 100% 86.6%, 100% 100%, 0 100%); transform: translate(-0.7%, 0.9%); }
}

@keyframes slice-one {
    0%, 100% { transform: translate(-0.8%, -1.2%); }
    32% { transform: translate(-1.02%, -0.88%); }
    68% { transform: translate(-0.62%, -1.36%); }
}

@keyframes slice-two {
    0%, 100% { transform: translate(0.8%, 0.6%); }
    38% { transform: translate(1.04%, 0.32%); }
    73% { transform: translate(0.62%, 0.82%); }
}

@keyframes slice-three {
    0%, 100% { transform: translate(-0.3%, 0.4%); }
    29% { transform: translate(-0.08%, 0.7%); }
    66% { transform: translate(-0.48%, 0.2%); }
}

@keyframes slice-four {
    0%, 100% { transform: translate(1%, -0.5%); }
    41% { transform: translate(1.22%, -0.18%); }
    76% { transform: translate(0.8%, -0.68%); }
}

@keyframes slice-five {
    0%, 100% { transform: translate(-0.7%, 0.9%); }
    35% { transform: translate(-0.48%, 1.2%); }
    71% { transform: translate(-0.9%, 0.68%); }
}

@media (max-width: 42rem) {
    :root {
        --page-gutter: 1.25rem;
    }

    .hero {
        gap: 2.25rem;
        align-content: start;
        padding: 3.5rem var(--page-gutter) 4.5rem;
    }

    .logo-assembly {
        width: 100%;
        max-width: 36rem;
    }

    .launch-copy {
        width: 100%;
        max-width: 24rem;
        text-align: center;
        line-height: 1.55;
    }

    .projects {
        width: 100%;
        max-width: 36rem;
        margin-top: 1.25rem;
    }

    .projects h2 {
        margin-bottom: 1.25rem;
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .project-link {
        grid-template-columns: 2rem 1fr;
        gap: 0.75rem 1rem;
        min-height: 0;
        padding: 1.6rem 0.75rem;
    }

    .project-link > p {
        grid-column: 2;
    }

    .project-link:hover,
    .project-link:focus-visible {
        box-shadow: inset 3px 0 var(--purple);
    }

    .about-feature {
        width: 100%;
        max-width: 36rem;
        margin-top: 4rem;
    }

    .about-feature-link {
        grid-template-columns: 1fr;
    }

    .about-feature-heading {
        border-right: 0;
        border-bottom: 1px solid var(--framework);
    }

    .about-feature-heading,
    .about-feature-copy {
        padding: 2rem 1.25rem;
    }

    .about-feature-heading > p {
        margin-bottom: 2rem;
    }

    .about-feature h2 {
        font-size: clamp(2.75rem, 13vw, 4rem);
    }

    .about-feature-copy {
        min-height: 18rem;
        gap: 3rem;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0.4rem;
        min-height: 5rem;
    }
}

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

    .logo-whole {
        animation: none !important;
        opacity: 0;
    }

    .logo-slice {
        animation: none !important;
        transform: translate(var(--slice-x), var(--slice-y));
        opacity: 1;
    }

}
