*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #060606;
    --text: #ffffff;
    --text-muted: #ffffff;
    --text-dim: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    /* Golden-ratio (phi = 1.618) spacing scale: each step is the previous x phi */
    --phi: 1.618;
    --space-3xs: 0.236rem;  /* phi^-3 */
    --space-2xs: 0.382rem;  /* phi^-2 */
    --space-xs: 0.618rem;   /* phi^-1 */
    --space-sm: 1rem;       /* base   */
    --space-md: 1.618rem;   /* phi^1  */
    --space-lg: 2.618rem;   /* phi^2  */
    --space-xl: 4.236rem;   /* phi^3  */
    --space-2xl: 6.854rem;  /* phi^4  */

    --leading: 1.618;       /* golden line-height for body copy */
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

#depth-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl) var(--space-md);
}

.content {
    /* Column width and its inner rhythm share the golden ratio */
    max-width: 34rem;
    width: 100%;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.logo-container {
    margin-bottom: var(--space-md);
    display: inline-block;
}

.wordmark {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.4s ease;
}

.wordmark:hover {
    color: #ffffff;
}

.tagline {
    font-size: 1.625rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.description {
    font-size: 1.0625rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: var(--space-sm);
    line-height: var(--leading);
    text-align: left;
}

.contact {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.section {
    margin-bottom: var(--space-lg);
}

.section:last-child {
    margin-bottom: 0;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border);
}

.work {
    margin-bottom: var(--space-lg);
}

.work:last-child {
    margin-bottom: 0;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin-bottom: var(--space-xs);
}

.work-summary {
    font-size: 1rem;
    font-weight: 300;
    line-height: var(--leading);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: var(--space-md);
}

.work-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xs);
}

.work-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-list li {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    padding: var(--space-2xs) 0;
    border-bottom: 1px solid var(--border);
}

.work-list li:last-child {
    border-bottom: none;
}

.work-frame-intro {
    font-size: 1rem;
    font-weight: 300;
    line-height: var(--leading);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: var(--space-xs);
}

.work-frame {
    margin: 0;
}

.work-frame-row {
    display: flex;
    gap: var(--space-xs);
    align-items: baseline;
    padding: var(--space-2xs) 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    line-height: 1.5;
}

.work-frame-row:last-child {
    border-bottom: none;
}

.work-frame-row dt {
    font-weight: 500;
    color: #ffffff;
    flex-shrink: 0;
    min-width: 6.854rem;
}

.work-frame-row dd {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.index {
    display: flex;
    flex-direction: column;
}

.index a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.index a:last-child {
    border-bottom: none;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border);
}

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

.index a:hover {
    border-color: var(--border-strong);
}

.index a:hover .index-title {
    color: var(--text);
}

.index a:hover .index-detail {
    color: var(--text-muted);
}

.index-title {
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #ffffff;
    transition: color 0.3s ease;
}

.index-detail {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #ffffff;
    transition: color 0.3s ease;
    text-align: right;
}

@media (max-width: 480px) {
    main {
        padding: var(--space-lg) var(--space-sm);
    }

    .intro {
        margin-bottom: var(--space-md);
    }

    .wordmark {
        font-size: 1.625rem;
    }

    .logo-container {
        margin-bottom: var(--space-sm);
    }

    .tagline {
        font-size: 1.375rem;
    }

    .description {
        font-size: 1rem;
    }

    .work-title {
        font-size: 1.125rem;
    }

    .work-frame-row {
        flex-direction: column;
        gap: 0.125rem;
    }

    .work-frame-row dt {
        min-width: 0;
    }

    .contact {
        font-size: 1.125rem;
    }

    .section {
        margin-bottom: var(--space-md);
    }

    .index-title {
        font-size: 1.125rem;
    }

    .index-detail {
        font-size: 0.9375rem;
    }

    .index a {
        padding: var(--space-xs) 0;
    }
}

::selection {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
