:root
{
    --ease: cubic-bezier(.16, 1, .3, 1);
    --line: #0000001a;
}
*
{
    box-sizing: border-box;
}
html
{
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body
{
    margin: 0;
    color: #000;
    background: white;
    font: 15px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: -.02em;
}
a
{
    text-decoration: none;
    color: inherit;
}
button
{
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}
a:focus-visible, button:focus-visible
{
    outline: 1px solid currentColor;
    outline-offset: 7px;
}
h1, h2, h3, p
{
    margin: 0;
}
h1, h2
{
    letter-spacing: -.065em;
    line-height: .96;
}
.meta
{
    font: 10px/1.7 "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: .1em;
}
header
{
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    mix-blend-mode: difference;
}
.logo
{
    font-size: 40px;
    letter-spacing: -.09em;
    font-weight: 700;
    line-height: 1;
}
.logo span
{
    font-size: 10px;
    vertical-align: top;
    margin-left: 5px;
    letter-spacing: 0;
}
.menu-button
{
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
}
.menu-button svg
{
    transition: transform .6s var(--ease);
}
.menu-button:hover svg
{
    transform: rotate(90deg);
}
.hero
{
    min-height: 80vh;
    padding: 170px 5% 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero h1
{
    font-size: 10.7vw;
    margin-top: 50px;
}
.hero h1 > span
{
    display: block;
    overflow: hidden;
}
.hero h1 i
{
    font-style: normal;
    display: inline-block;
    animation: reveal 1s var(--ease) both;
    animation-delay: calc(var(--index) * 28ms);
}
.intro
{
    color: #525252;
    font-size: 22px;
    line-height: 1.4;
    margin-top: 32px;
}
.hero-bottom
{
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font: 10px/1.5 "Courier New", monospace;
    padding-top: 60px;
}
.hero-bottom a > span
{
    display: inline-block;
    margin-left: 18px;
}
.marquee
{
    overflow: hidden;
}
.strip
{
    display: flex;
    width: max-content;
    gap: 24px;
    padding-left: 24px;
    animation: slide 30s linear infinite;
}
.marquee:hover .strip, .paused .strip
{
    animation-play-state: paused;
}
.study
{
    width: 280px;
    height: 390px;
    position: relative;
    overflow: hidden;
    background: #e7e7e7;
    filter: grayscale(1);
}
.study:nth-child(4n + 1)
{
    border-radius: 100px 0 0 0;
}
.study:nth-child(4n + 2)
{
    border-radius: 0 100px 0 40px;
}
.study:nth-child(4n + 3)
{
    border-radius: 40px;
}
.study b
{
    position: absolute;
    bottom: 45px;
    left: 28px;
    font-size: 48px;
    letter-spacing: -.08em;
    line-height: .9;
}
.study small
{
    position: absolute;
    bottom: 22px;
    left: 30px;
    font: 8px monospace;
}
.sphere
{
    display: block;
    position: absolute;
    background: radial-gradient(circle at 30% 27%, #fff, #b6b6b6 32%, #434343 65%, #141414 85%);
    width: 65%;
    aspect-ratio: 1;
    top: 18%;
    left: 17%;
    border-radius: 50%;
    box-shadow: 30px 35px 20px #00000038;
    transition: transform .7s var(--ease);
}
.s2
{
    background: #333;
    color: #fff;
}
.stairs
{
    position: absolute;
    inset: 5% 10% 12%;
    background: repeating-linear-gradient(0deg, #333 0 24px, #ddd 25px 38px, #999 39px 48px);
    transform: skewY(-32deg);
}
.s3
{
    background: #d7d4ca;
}
.loop
{
    position: absolute;
    width: 70%;
    height: 70%;
    left: 15%;
    top: 11%;
    border: 28px solid #333;
    border-radius: 50%;
    transform: rotate(25deg);
    box-shadow: 6px 6px 0 #888, 14px 14px 0 #555;
}
.s4
{
    background: #ccc;
}
.cover
{
    position: absolute;
    inset: 16% 15%;
    background: #eee;
    box-shadow: 20px 20px 30px #0003;
    transform: rotate(-12deg);
    padding: 24px 12px;
    font-size: 40px;
    line-height: .8;
    font-weight: 700;
    letter-spacing: -.08em;
}
.cover small
{
    left: 12px;
    font-size: 5px;
}
.marquee-caption
{
    display: flex;
    justify-content: space-between;
    padding: 25px 5%;
}
#motion
{
    font: 10px monospace;
}
.about
{
    padding: 120px 15% 140px;
    text-align: center;
}
.about h2
{
    font-size: clamp(35px, 5vw, 75px);
    line-height: 1.06;
    margin: 40px 0;
}
.about h2 > span
{
    color: #888;
}
.about > p:last-child
{
    max-width: 430px;
    margin: auto;
    color: #525252;
}
.work
{
    padding: 0 5% 110px;
}
.work-heading
{
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
}
.work-heading h2
{
    font-size: 52px;
}
.work-heading h2 > span
{
    font: 12px monospace;
    vertical-align: top;
    letter-spacing: -.05em;
    margin-left: 9px;
}
.filters
{
    display: flex;
    gap: 7px;
}
.filters button
{
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 11px;
    transition: background .5s var(--ease), color .5s var(--ease);
}
.filters button.active
{
    background: black;
    color: white;
}
.grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 28px;
}
[hidden]
{
    display: none !important;
}
.project
{
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 3px;
    filter: grayscale(1);
    transition: filter .7s var(--ease);
    display: block;
    text-align: left;
}
.project:hover
{
    filter: grayscale(0);
}
.project:hover .sphere
{
    transform: scale(1.05);
}
.project > strong
{
    position: absolute;
    bottom: 9%;
    left: 8%;
    font-size: 44px;
    line-height: .9;
    letter-spacing: -.07em;
}
.p1
{
    background: #d5dad3;
}
.p1 .sphere
{
    width: 48%;
    left: 27%;
    top: 11%;
}
.p2
{
    background: #4b524f;
    color: white;
}
.building
{
    position: absolute;
    inset: -10% -15% 20% 5%;
    transform: rotate(-25deg);
    display: flex;
    gap: 13px;
}
.building i
{
    width: 16%;
    height: 120%;
    background: linear-gradient(90deg, #ddd, #aaa 75%, #555 75%);
    box-shadow: 10px 0 10px #0002;
}
.p2 > strong
{
    font-size: 30px;
}
.p3
{
    background: #c5b09c;
}
.rings
{
    position: absolute;
    inset: 15% 20% 20%;
    transform: rotate(-20deg);
}
.rings i
{
    position: absolute;
    border: 17px solid #7d5035;
    border-radius: 50%;
    width: 85%;
    height: 85%;
    box-shadow: 6px 8px 8px #0003;
}
.rings i:nth-child(2)
{
    left: 20%;
    top: 12%;
}
.rings i:nth-child(3)
{
    left: 40%;
    top: 24%;
}
.p3 > strong
{
    color: white;
    font-size: 28px;
}
.p4
{
    background: #91a1ac;
}
.journal
{
    position: absolute;
    inset: 9% 25%;
    padding: 28px 15px;
    background: #edf0e9;
    font-size: 48px;
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.09em;
    transform: rotate(15deg);
    box-shadow: 20px 22px 18px #0003;
}
.journal small
{
    position: absolute;
    left: 15px;
    bottom: 20px;
    font: 6px monospace;
    letter-spacing: 0;
}
.hover-arrow
{
    position: absolute;
    inset: 0;
    background: #0000001a;
    text-align: right;
    padding: 15px 20px;
    font: 42px Arial;
    opacity: 0;
    transition: opacity .6s var(--ease);
}
.project:hover .hover-arrow, .project:focus-visible .hover-arrow
{
    opacity: 1;
}
.caption
{
    display: flex;
    justify-content: space-between;
    align-items: start;
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 18px;
}
.caption h3
{
    font-size: 23px;
    letter-spacing: -.05em;
    font-weight: 500;
}
.caption > span
{
    text-align: right;
    color: #737373;
    font: 9px/1.8 monospace;
    text-transform: uppercase;
    letter-spacing: .07em;
}
footer
{
    background: #0a0a0a;
    color: #fff;
    padding: 80px 5% 25px;
}
.footer-main
{
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 30px;
}
.footer-brand .logo
{
    font-size: 65px;
}
.footer-brand p
{
    margin-top: 20px;
    color: #b2b2b2;
}
.footer-main h2
{
    font-size: 11px;
    line-height: 2;
    letter-spacing: 0;
    color: #aaa;
    margin-bottom: 20px;
    font-weight: 400;
}
.footer-main button, .footer-main a
{
    display: block;
    font-size: 12px;
    line-height: 2.2;
}
.footer-main > div > p
{
    margin-top: 15px;
    font-size: 12px;
    color: #aaa;
}
.footer-cta
{
    display: block;
    position: relative;
    margin: 100px 0 80px;
    font-size: 8.3vw;
    line-height: .98;
    font-weight: 700;
    letter-spacing: -.065em;
}
.footer-cta > span
{
    position: absolute;
    right: 0;
    bottom: 0;
}
.footer-bottom
{
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ffffff1a;
    padding-top: 25px;
    font-size: 10px;
    color: #aaa;
    gap: 20px;
}
dialog
{
    border: 0;
}
dialog::backdrop
{
    background: #000a;
}
#menu
{
    background: #0a0a0a;
    color: #fff;
    width: 100%;
    max-width: none;
    height: 100svh;
    max-height: none;
    margin: 0;
    padding: 40px 6%;
}
.menu-top
{
    display: flex;
    justify-content: space-between;
    font: 10px monospace;
}
#menu nav
{
    margin-top: 15vh;
    display: flex;
    flex-direction: column;
    font-size: clamp(42px, 7vw, 100px);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -.07em;
}
#menu nav sup
{
    font: 12px monospace;
    vertical-align: super;
    letter-spacing: 0;
}
#menu p
{
    color: #aaa;
    margin-top: 12vh;
}
#project-dialog
{
    width: min(570px, calc(100% - 32px));
    padding: 60px 40px 40px;
}
.detail-close
{
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
}
#project-dialog h2
{
    font-size: 50px;
    margin: 25px 0;
    overflow-wrap: anywhere;
}
#detail-copy
{
    color: #525252;
}
.detail-done
{
    border-bottom: 1px solid #aaa;
    padding: 15px 0 6px;
    margin-top: 20px;
}
.cursor
{
    display: none;
}
.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
@keyframes slide
{
    to { transform: translateX(-50%); }
}
@keyframes reveal
{
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}
@media (pointer: fine)
{
    body, a, button
    {
        cursor: none;
    }
    .cursor
    {
        display: block;
        position: fixed;
        z-index: 9999;
        width: 32px;
        height: 32px;
        border: 1px solid black;
        border-radius: 50%;
        background: white;
        mix-blend-mode: difference;
        pointer-events: none;
        left: -100px;
        top: -100px;
        transition: transform .5s var(--ease);
    }
    .cursor.hovering
    {
        transform: scale(2.5);
    }
}
@media (max-width: 650px)
{
    header
    {
        padding: 25px 6%;
    }
    .hero
    {
        padding: 160px 6% 25px;
        min-height: 75svh;
    }
    .hero > .meta
    {
        font-size: 8px;
    }
    .hero h1
    {
        font-size: 10.8vw;
        margin-top: 65px;
        line-height: 1.05;
    }
    .intro
    {
        font-size: 16px;
        margin-top: 30px;
    }
    .hero-bottom
    {
        align-items: end;
        font-size: 8px;
        gap: 30px;
        text-align: left;
    }
    .hero-bottom > span
    {
        max-width: 110px;
    }
    .study
    {
        width: 220px;
        height: 308px;
    }
    .study b
    {
        font-size: 38px;
    }
    .marquee-caption .meta
    {
        font-size: 7px;
    }
    #motion
    {
        font-size: 8px;
    }
    .about
    {
        padding: 80px 7%;
    }
    .about h2
    {
        font-size: 33px;
    }
    .about > p:last-child
    {
        font-size: 13px;
    }
    .work
    {
        padding: 0 6% 70px;
    }
    .work-heading
    {
        align-items: start;
        gap: 25px;
        flex-direction: column;
    }
    .work-heading h2
    {
        font-size: 38px;
    }
    .grid
    {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .caption h3
    {
        font-size: 20px;
    }
    .caption > span
    {
        font-size: 8px;
    }
    .journal
    {
        font-size: 35px;
        padding-top: 20px;
    }
    .journal small
    {
        font-size: 4px;
    }
    footer
    {
        padding: 65px 6% 25px;
    }
    .footer-main
    {
        grid-template-columns: 1fr 1.4fr;
        gap: 40px 20px;
    }
    .footer-brand
    {
        grid-column: 1 / -1;
    }
    .footer-cta
    {
        font-size: 10vw;
        margin: 70px 0 55px;
    }
    .footer-bottom
    {
        flex-wrap: wrap;
        font-size: 8px;
    }
    #project-dialog
    {
        padding: 60px 25px 30px;
    }
    #project-dialog h2
    {
        font-size: 38px;
    }
}
@media (prefers-reduced-motion: reduce)
{
    *, *::before, *::after
    {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
