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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #FAFAFA;
    color: #333333;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.65;
    letter-spacing: 0em;
    -webkit-font-smoothing: antialiased;
}

.wordmark {
    position: fixed;
    top: 24px;
    left: 24px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #6B6B6B;
    z-index: 100;
    box-shadow: 0 1px 0 0 #E5E5E5;
    padding-bottom: 4px;
}

.corner-mark {
    position: fixed;
    z-index: 90;
}

.corner-mark::before,
.corner-mark::after {
    content: '';
    position: absolute;
    background-color: #E5E5E5;
}

.corner-mark::before {
    width: 24px;
    height: 1px;
}

.corner-mark::after {
    width: 1px;
    height: 24px;
}

.corner-tl {
    top: 16px;
    left: 16px;
}
.corner-tl::before { top: 0; left: 0; }
.corner-tl::after { top: 0; left: 0; }

.corner-tr {
    top: 16px;
    right: 16px;
}
.corner-tr::before { top: 0; right: 0; }
.corner-tr::after { top: 0; right: 0; }

.corner-bl {
    bottom: 16px;
    left: 16px;
}
.corner-bl::before { bottom: 0; left: 0; }
.corner-bl::after { bottom: 0; left: 0; }

.corner-br {
    bottom: 16px;
    right: 16px;
}
.corner-br::before { bottom: 0; right: 0; }
.corner-br::after { bottom: 0; right: 0; }

.column {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40vh;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0A0A0A;
    margin-bottom: 24px;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0A0A0A;
    margin-bottom: 24px;
}

h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #333333;
    margin-bottom: 8px;
}

.tagline {
    color: #333333;
    max-width: 480px;
}

.block {
    margin-bottom: 128px;
}

.block p {
    margin-bottom: 16px;
}

.divider {
    border: none;
    height: 1px;
    background-color: #6B6B6B;
    margin-bottom: 48px;
}

.meta {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #6B6B6B;
    text-transform: uppercase;
}

.project-card {
    border-left: 3px solid #E5E5E5;
    padding: 16px 0 16px 20px;
    margin: 32px 0;
    transition: border-color 300ms ease-out, transform 300ms ease-out, clip-path 300ms ease-out;
    transform-origin: left center;
    clip-path: none;
}

.project-card:hover {
    border-color: #0A0A0A;
    transform: scale(1.02);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

a {
    color: #0A0A0A;
    text-decoration: none;
    border-bottom: 2px solid #E5E5E5;
    transition: border-color 200ms ease-out;
}

a:hover {
    border-color: #0A0A0A;
}

.fade-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms cubic-bezier(0.25, 0.1, 0.25, 1), transform 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-section {
    position: relative;
    padding-bottom: 80px;
}

.diagonal-terminus {
    position: relative;
    height: 40px;
    margin-bottom: 32px;
}

.diagonal-terminus::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0A0A0A;
    transform: rotate(-45deg);
    transform-origin: top left;
}

.diagonal-terminus.drawn::after {
    width: 200px;
    transition: width 800ms ease-out;
}

.contact-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: #6B6B6B;
    line-height: 2.2;
}

.contact-line {
    display: block;
}

.contact-line a {
    font-family: 'Space Mono', monospace;
    color: #0A0A0A;
    border-bottom: 2px solid #E5E5E5;
}

.contact-line a:hover {
    border-color: #0A0A0A;
}

@media (max-width: 768px) {
    .column {
        padding: 0 24px;
    }

    .block {
        margin-bottom: 80px;
    }

    .corner-mark {
        display: none;
    }
}
