:root {
    color-scheme: light;
    --ink: #101010;
    --muted: #737373;
    --line: #e8e8e8;
    --paper: #fff;
    --tile: #f1f1f1;
    --hover-ink: #777;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 52px;
}

body {
    min-width: 900px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.home-view {
    height: 100vh;
    overflow: hidden;
}

body.home-view main {
    display: block;
}

body.project-view .motion-intro {
    display: none;
}

body.about-page .motion-intro {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.site-header {
    position: sticky;
    z-index: 5;
    top: 0;
    display: grid;
    height: 52px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 8px 18px;
    background: var(--paper);
}

body.home-view .site-header,
body.home-view .home-caption {
    transition: opacity 450ms ease;
}

body.home-view.orbit-intro-active .site-header,
body.home-view.orbit-intro-active .home-caption {
    visibility: hidden;
    opacity: 0;
}

.wordmark {
    justify-self: start;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.06em;
}

.site-nav {
    position: absolute;
    top: 50%;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.035em;
    transform: translateY(-50%);
}

.site-nav a {
    transition: color 180ms ease, opacity 180ms ease;
}

.site-header a:hover,
.site-header a:focus-visible,
.site-header .pointer-hover {
    color: var(--hover-ink);
}

.site-nav a:not(.active) {
    color: #a0a0a0;
}

.site-nav a:hover,
.page-bottom a:hover {
    opacity: 0.5;
}

.site-nav .active {
    font-weight: 700;
}

.motion-intro {
    position: relative;
    height: calc(100vh - 52px);
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    perspective: 1400px;
    background: var(--paper);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.motion-intro.is-dragging {
    cursor: grabbing;
}

.home-orbit-labels {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2%;
    font-size: clamp(56px, 7vw, 112px);
    font-weight: 700;
    letter-spacing: -0.085em;
    line-height: 0.9;
    pointer-events: none;
}

.home-caption {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    left: 18px;
    margin: 0;
    font-size: 12px;
    letter-spacing: -0.035em;
}

.image-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(-8deg) rotateY(-12deg);
    will-change: transform;
}

.intro-photo {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    backface-visibility: hidden;
    transform: translate(-50%, -50%) rotateY(var(--angle)) translateZ(390px);
    cursor: pointer;
}

.intro-photo:hover,
.intro-photo:focus-visible {
    --photo-scale: 1.08;
}

.intro-photo.is-expanded {
    visibility: hidden;
}

.photo-surface {
    display: block;
    width: 100%;
    height: 100%;
    animation: photo-float var(--float-duration, 5s) ease-in-out var(--float-delay, 0s) infinite;
    transform-style: preserve-3d;
    transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: translate;
}

.photo-face {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #dcdcd9;
    background: linear-gradient(145deg, #e6e6e4, #d6d6d3);
    box-shadow: 0 18px 45px #17171712;
    transform: scale(var(--photo-scale, 1));
    transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease, opacity 250ms ease;
}

.photo-one .photo-face {
    background: url("assets/home-project-01.png") center / cover no-repeat;
}

.photo-two .photo-face {
    background: url("assets/home-project-02.png") center / cover no-repeat;
}

body.home-view .intro-photo:hover .photo-face,
body.home-view .intro-photo:focus-visible .photo-face {
    transform: rotateY(2deg) rotateX(-1deg) scale(var(--photo-scale, 1));
}

.intro-photo:hover .photo-face,
.intro-photo:focus-visible .photo-face {
    opacity: 0.6;
}

body.home-view .photo-surface {
    animation: none;
}

body.home-view .intro-photo {
    transform-style: preserve-3d;
    transition: opacity 350ms ease;
}

.intro-photo:hover .photo-face,
.intro-photo:focus-visible .photo-face,
.intro-photo.is-expanded .photo-face {
    box-shadow: 0 26px 65px #17171724;
}

.photo-focus {
    position: fixed;
    z-index: 25;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: zoom-out;
}

.photo-focus-card {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-out;
    animation: photo-focus-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.photo-focus-card .photo-face {
    width: 100%;
    height: 100%;
    transform: scale(var(--focus-scale, 1.7));
    transform-origin: center;
    box-shadow: 0 26px 65px #17171724;
}

@keyframes photo-focus-enter {
    from {
        opacity: 0;
        transform: scale(0.72);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes photo-float {
    0%,
    100% {
        translate: 0 calc(var(--float-distance, 10px) * -1);
    }

    50% {
        translate: 0 var(--float-distance, 10px);
    }
}

.photo-one {
    --angle: 0deg;
    width: 230px;
    height: 290px;
}

.photo-two {
    --angle: 60deg;
    width: 175px;
    height: 225px;
}

.photo-three {
    --angle: 120deg;
    width: 230px;
    height: 175px;
}

.photo-four {
    --angle: 180deg;
    width: 210px;
    height: 260px;
}

.photo-five {
    --angle: 240deg;
    width: 230px;
    height: 175px;
}

.photo-six {
    --angle: 300deg;
    width: 175px;
    height: 225px;
}

.photo-seven {
    --angle: 45deg;
    --float-distance: 13px;
    --float-duration: 6.2s;
    --float-delay: -2.1s;
    width: 155px;
    height: 195px;
}

.photo-eight {
    --angle: 225deg;
    --float-distance: 8px;
    --float-duration: 4.7s;
    --float-delay: -3.4s;
    width: 190px;
    height: 155px;
}

body.home-view .intro-photo {
    width: 330px;
    height: 440px;
}

body.home-view .photo-two {
    width: 260px;
    height: 347px;
}

body.home-view .photo-three,
body.home-view .photo-five {
    width: 330px;
    height: 250px;
}

body.home-view .photo-four {
    width: 300px;
    height: 370px;
}

body.home-view .photo-six,
body.home-view .photo-seven {
    width: 250px;
    height: 310px;
}

body.home-view .photo-eight {
    width: 290px;
    height: 240px;
}

body.home-view .image-orbit {
    top: 50%;
}

.photo-two {
    --float-distance: 12px;
    --float-duration: 5.8s;
    --float-delay: -1.5s;
}

.photo-three {
    --float-distance: 7px;
    --float-duration: 4.9s;
    --float-delay: -2.8s;
}

.photo-four {
    --float-distance: 11px;
    --float-duration: 6.5s;
    --float-delay: -0.8s;
}

.photo-five {
    --float-distance: 9px;
    --float-duration: 5.4s;
    --float-delay: -3.7s;
}

main {
    padding: 0 18px 48px;
}

.intro {
    display: grid;
    grid-template-columns: 2fr 1.2fr 0.55fr;
    align-items: end;
    gap: 22px;
    padding: 75px 0 55px;
}

h1,
#projects-heading {
    margin: 0;
    font-size: clamp(58px, 7.3vw, 112px);
    font-weight: 600;
    letter-spacing: -0.09em;
    line-height: 0.9;
}

.intro-text {
    max-width: 295px;
    margin: 0 0 3px;
    font-size: clamp(13px, 1.14vw, 17px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.35;
}

.intro-note {
    justify-self: end;
    margin: 0 0 3px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 26px;
}

.project-card {
    min-width: 0;
}

.project-number {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.project-visual {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 0.76;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ebebeb;
    background: var(--tile);
    transition: background 180ms ease, opacity 250ms ease;
}

.project-card > a {
    display: block;
}

.project-card > a:focus-visible .project-visual {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.project-card:hover .project-visual:not(.has-photo) {
    background: #e9e9e9;
}

.project-visual.has-photo {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.project-visual.has-photo:hover {
    opacity: 0.6;
}

.project-visual.has-photo::before,
.project-visual.has-photo::after {
    display: none;
}

.project-photo-one {
    background-image: url("assets/home-project-01.png");
}

.project-photo-two {
    background-image: url("assets/home-project-02.png");
}

.project-visual::before,
.project-visual::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    content: "";
    opacity: 0.45;
}

.project-visual::before {
    transform: rotate(52deg);
}

.project-visual::after {
    transform: rotate(-52deg);
}

.project-visual span {
    position: relative;
    z-index: 1;
    padding: 7px 11px;
    background: var(--tile);
    color: #979797;
    font-size: 11px;
    letter-spacing: -0.02em;
}

.project-detail {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    font-size: 12px;
    letter-spacing: -0.03em;
}

.project-type {
    color: var(--muted);
}

.info-section,
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: start;
    gap: 22px;
    padding: 110px 0 90px;
    border-top: 1px solid var(--line);
    margin-top: 100px;
    scroll-margin-top: 52px;
}

.section-label {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.info-section h2,
.contact-section h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 500;
    letter-spacing: -0.075em;
    line-height: 0.98;
}

.about-copy,
.contact-copy {
    max-width: 300px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: -0.035em;
    line-height: 1.6;
}

.contact-section {
    margin-top: 0;
    padding-top: 70px;
    padding-bottom: 85px;
}

.contact-page .contact-section {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 124px);
    align-content: center;
    align-items: center;
    justify-items: center;
    gap: 24px;
    padding: 40px 0;
    border-top: 0;
    margin: 0;
    text-align: center;
}

.about-hero {
    display: flex;
    min-height: calc(100vh - 52px);
    flex-direction: column;
    justify-content: space-between;
    padding: 82px 0 42px;
}

.about-hero .section-label {
    margin: 0;
}

.about-hero h1 {
    margin: auto 0;
    padding: 55px 0;
    font-size: clamp(44px, 6.5vw, 92px);
    font-weight: 500;
    letter-spacing: -0.075em;
    line-height: 1;
    text-align: center;
}

.about-hero h1 span {
    display: inline-block;
    margin: 0 0.04em;
    white-space: nowrap;
}

.about-hero-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.about-hero-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    letter-spacing: -0.035em;
    line-height: 1.65;
}

.cv-section {
    margin: 0 -18px;
    padding: 0 18px 100px;
    scroll-margin-top: 0;
}

.about-me-section {
    width: min(100%, 1120px);
    padding: 42px 0 34px;
    border-top: 1px solid var(--line);
    margin: 0 auto;
}

.about-me-section h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.07em;
}

.folder-float {
    --folder-color: #3f3f46;
    --front-color: #52525b;
    --paper-color: #f5f5f5;
    --item-text-color: #18181b;
    --folder-width: 200px;
    --folder-height: 148px;
    --folder-radius: 14px;
    --lift: 26px;
    --flap-angle: -34deg;
    --rest-angle: 16deg;
    --open-duration: 520ms;
    --stagger: 45ms;
    position: relative;
    margin-top: 24px;
    color: var(--ink);
}

.folder-stage {
    position: relative;
    height: clamp(360px, 40vw, 430px);
    min-height: 360px;
    perspective: 900px;
}

.folder-notes {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.folder-note {
    position: absolute;
    top: 28px;
    left: 50%;
    display: flex;
    width: 152px;
    min-height: 92px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e8e7e4;
    border-radius: 7px;
    background: var(--paper-color);
    box-shadow: 0 12px 30px #18181b12;
    color: var(--item-text-color);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    letter-spacing: -0.035em;
    text-align: left;
    transform: translate(calc(-50% + var(--note-x)), calc(var(--note-y) + 205px)) rotate(0deg) scale(0.82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform var(--open-duration) cubic-bezier(0.2, 1.3, 0.4, 1),
        opacity 260ms ease,
        visibility 0s linear var(--open-duration);
    transition-delay: 0s, calc(var(--note-index) * var(--stagger)), 0s;
}

.folder-note span {
    max-width: 108px;
}

.folder-note small {
    color: #8a8a8f;
    font-size: 9px;
    letter-spacing: 0;
}

.folder-note:nth-child(1) {
    --note-x: -246px;
    --note-y: 60px;
    --note-tilt: -8deg;
}

.folder-note:nth-child(2) {
    --note-x: -82px;
    --note-y: 8px;
    --note-tilt: -3deg;
}

.folder-note:nth-child(3) {
    --note-x: 82px;
    --note-y: 8px;
    --note-tilt: 3deg;
}

.folder-note:nth-child(4) {
    --note-x: 246px;
    --note-y: 60px;
    --note-tilt: 8deg;
}

.folder-float.is-open .folder-note {
    transform:
        translate(
            calc(-50% + var(--note-x) + var(--drift-x, 0px)),
            calc(var(--note-y) - var(--lift) + var(--drift-y, 0px))
        )
        rotate(var(--note-tilt))
        scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay:
        calc(var(--note-index) * var(--stagger)),
        calc(var(--note-index) * var(--stagger)),
        0s;
}

.folder-note:hover,
.folder-note:focus-visible {
    box-shadow: 0 18px 36px #18181b20;
}

.folder-toggle {
    position: absolute;
    z-index: 3;
    bottom: 34px;
    left: 50%;
    width: var(--folder-width);
    height: var(--folder-height);
    padding: 0;
    border: 0;
    background: transparent;
    color: #f5f5f5;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transform: translateX(-50%);
    transform-style: preserve-3d;
    touch-action: manipulation;
}

.folder-back,
.folder-flap,
.folder-front {
    position: absolute;
    display: block;
    border-radius: var(--folder-radius);
}

.folder-back {
    inset: 0;
    background: var(--folder-color);
    box-shadow: 0 24px 48px #18181b20;
}

.folder-flap {
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 62px;
    border-radius: var(--folder-radius) var(--folder-radius) 4px 4px;
    background: #484850;
    transform: rotateX(var(--rest-angle));
    transform-origin: 50% 0;
    transition: transform var(--open-duration) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.folder-front {
    z-index: 2;
    inset: 42px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    padding: 16px;
    border-radius: 8px 8px var(--folder-radius) var(--folder-radius);
    background: var(--front-color);
    box-shadow: inset 0 1px #ffffff18;
}

.folder-title {
    color: #f5f5f5;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.folder-sublabel {
    color: #d4d4d8;
    font-size: 10px;
    letter-spacing: -0.015em;
}

.folder-float.is-open .folder-flap {
    transform: rotateX(var(--flap-angle));
}

.folder-toggle:focus-visible {
    outline-color: #52525b;
}

.folder-status {
    min-height: 18px;
    margin: -20px 0 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: -0.025em;
    text-align: center;
}

@media (max-width: 640px) {
    body.about-page {
        min-width: 320px;
    }

    .about-page .site-header {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .about-page .wordmark,
    .about-page .site-nav {
        font-size: 9px;
    }

    .about-page .site-nav {
        right: 12px;
        gap: 6px;
    }

    .folder-stage {
        height: 430px;
        min-height: 430px;
    }

    .folder-note {
        width: 132px;
        min-height: 84px;
        padding: 12px;
        font-size: 12px;
    }

    .folder-note:nth-child(1) {
        --note-x: -75px;
        --note-y: 112px;
    }

    .folder-note:nth-child(2) {
        --note-x: 75px;
        --note-y: 112px;
    }

    .folder-note:nth-child(3) {
        --note-x: -75px;
        --note-y: 0px;
    }

    .folder-note:nth-child(4) {
        --note-x: 75px;
        --note-y: 0px;
    }

    .about-hero {
        min-height: calc(100svh - 52px);
        padding: 42px 0 30px;
    }

    .about-hero h1 {
        font-size: clamp(36px, 9.5vw, 58px);
    }

    .about-hero h1 span {
        white-space: normal;
    }
}

.cv-intro,
.cv-groups {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.cv-intro {
    padding: 42px 0 55px;
    border-top: 1px solid var(--line);
}

.cv-intro h2 {
    margin: 0;
    font-size: clamp(58px, 7.3vw, 112px);
    font-weight: 600;
    letter-spacing: -0.09em;
    line-height: 0.9;
}

.cv-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    padding: 34px 0 38px;
    border-top: 1px solid var(--line);
}

.cv-group h3 {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.cv-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.cv-entry + .cv-entry {
    margin-top: 12px;
}

.cv-entry {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.cv-date {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    white-space: nowrap;
}

.cv-entry-copy h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.55;
}

.cv-entry-copy p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: -0.02em;
    line-height: 1.6;
}

.playground-page main {
    display: grid;
    min-height: calc(100vh - 124px);
    align-items: center;
}

.playground-message {
    width: min(100%, 760px);
    padding: 70px 0 100px;
    margin: 0 auto;
}

.playground-message h1 {
    margin: 0 0 24px;
    font-size: clamp(52px, 9vw, 120px);
    font-weight: 500;
    letter-spacing: -0.09em;
    line-height: 0.9;
}

.playground-message p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.contact-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.social-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ink);
    transition: opacity 180ms ease, transform 180ms ease;
}

.social-link:hover {
    opacity: 0.55;
    transform: translateY(-2px);
}

.social-link svg {
    display: block;
    width: 100%;
    height: 100%;
}

.social-link:first-child svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.social-link:not(:first-child) svg {
    fill: currentColor;
}

.contact-email {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    letter-spacing: -0.02em;
}

.page-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    color: #999;
    font-size: 11px;
}

body#home.project-view .page-bottom {
    margin-top: 100px;
}

.page-bottom a {
    transition: opacity 180ms ease;
}

.project-detail-main {
    padding: 0 18px 48px;
}

.project-detail-heading {
    display: flex;
    min-height: 310px;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 65px 0 32px;
}

.project-detail-kicker {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12px;
}

.project-detail-heading h1 {
    font-size: clamp(68px, 8vw, 130px);
}

.project-back,
.project-detail-footer a {
    font-size: 12px;
    transition: opacity 180ms ease;
}

.project-back:hover,
.project-detail-footer a:hover {
    opacity: 0.5;
}

.detail-placeholder {
    display: grid;
    place-items: center;
    background: #e8e8e8;
    color: #999;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.project-detail-page.reveal-ready .detail-placeholder {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 850ms ease, transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-detail-page.reveal-ready .detail-placeholder.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-hero {
    aspect-ratio: 16 / 9;
}

.project-detail-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 110px;
    font-size: 12px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-portrait {
    aspect-ratio: 4 / 5;
}

.detail-wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.detail-landscape {
    aspect-ratio: 4 / 3;
}

.project-detail-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 25px;
    margin-top: 110px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.page-wipe {
    position: fixed;
    z-index: 30;
    inset: 0;
    background: var(--paper);
    pointer-events: none;
    will-change: transform;
}

.orbit-stage {
    background: #fff;
}

.opening-screen {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: grid;
    place-items: center;
    background: #fff;
    pointer-events: none;
    animation: opening-screen 3.8s ease-in-out forwards;
}

html.skip-opening .opening-screen {
    display: none;
}

.opening-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.3vw, 20px);
    padding: 0 18px;
    font-size: clamp(12px, 1.45vw, 20px);
    font-weight: 500;
    letter-spacing: -0.04em;
    text-align: center;
    white-space: nowrap;
    animation: opening-title 3.5s ease-in-out forwards;
}

.opening-name {
    animation: opening-reveal 450ms ease-out both;
}

.opening-line {
    width: clamp(28px, 3vw, 48px);
    height: 1px;
    background: currentColor;
    transform-origin: left;
    animation: opening-draw 430ms ease-out 330ms both;
}

.opening-detail {
    animation: opening-reveal 450ms ease-out 650ms both;
}

@keyframes opening-screen {
    0%, 76% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes opening-title {
    0%, 74% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes opening-reveal {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes opening-draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .opening-screen { display: none; }
}

.orbit-scene,
.orbit-ring {
    position: absolute;
    inset: 0;
}

.orbit-scene {
    perspective: var(--orbit-lens, 1024px);
    perspective-origin: center;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.orbit-stage[data-state="intro"] .orbit-scene {
    cursor: default;
}

.orbit-stage[data-state="dragging"] .orbit-scene {
    cursor: grabbing;
}

.orbit-ring {
    transform-style: preserve-3d;
    pointer-events: none;
}

.orbit-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--orbit-card, 8.5vw);
    aspect-ratio: 4 / 3;
    pointer-events: auto;
}

.photo-viewer[open] {
    display: grid;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    place-items: center;
    padding: 0;
    border: 0;
    margin: 0;
    background: #fff;
    cursor: zoom-out;
}

.photo-viewer::backdrop {
    background: #fff;
}

.photo-viewer-image,
.photo-viewer-placeholder {
    display: block;
    width: min(85vw, 1100px);
    max-height: 85vh;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.photo-viewer-image[hidden],
.photo-viewer-placeholder[hidden] {
    display: none;
}

.orbit-plate {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.custom-cursor {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 140ms ease, transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
    will-change: left, top, transform;
}

.custom-cursor.is-visible {
    opacity: 1;
}

.custom-cursor.is-hovering {
    border-color: var(--ink);
    background: var(--ink);
    transform: translate(-50%, -50%) scale(1.35);
}

.custom-cursor.is-viewing {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-color: var(--ink);
    background: var(--ink);
    transform: translate(-50%, -50%) scale(1);
}

.custom-cursor.is-viewing::after {
    content: "view";
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.custom-cursor.is-pressed {
    transform: translate(-50%, -50%) scale(0.8);
}

@media (hover: hover) and (pointer: fine) {
    body.has-custom-cursor,
    body.has-custom-cursor * {
        cursor: none !important;
    }
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .photo-surface {
        animation: none;
    }

    .photo-focus-card {
        animation-duration: 0.01ms;
    }
}
