* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f0f0ec;
    color: #111;
    font-family: Arial, sans-serif;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.site-header,
footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.site-header {
    border: none;
}

.hero {
    padding: 40px 0;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: -0.05em;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    border-top: none;
    padding: 32px 0;
}

h2 {
    font-size: 12px;
    font-weight: normal;
    color: #777;
}

/* ===== ABOUT / DIRECTORY ===== */

.about {
    padding: 20px 0 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}


.about-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.about-signature {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0;
}

.site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
}

.site-nav h2 {
    margin: 0 0 12px;
}

.site-nav a {
    font-size: 16px;
    color: #1749b2;
    text-decoration: underline;
}

.about-content {
    display: flex;
    flex-direction: column;

    grid-column: 2 / 4;
    padding-left: 0;
    padding-right: 15%;
}

.about-content .about-category {
    font-size: 12px;
    color: #777;
    letter-spacing: 0.05em;
}


.about-content .about-name {
    margin-top: auto;
    margin-bottom: 0;
    text-align: right;
    font-size: 12px;
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-left,
    .about-content {
        grid-column: auto;
    }

    .about-signature {
        width: 50vw;
        max-width: 100%;
    }


}


.site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
}

.site-nav h2 {
    margin: 0 0 12px;
}

.site-nav a {
    color: #1749b2;
    font-size: 16px;
    text-decoration: underline;
}

.directory-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;

    margin-bottom: 80px;
}

.site-info {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.site-info p {
    margin: 0;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.03em;
}

.profile p {
    line-height: 1.8;
}

footer {
    border-top: 1px solid #111;
    padding-top: 16px;
}

@media (max-width: 600px) {
    .page {
        padding: 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 14vw;
        line-height: 0.95;
        overflow-wrap: anywhere;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-header,
    footer {
        font-size: 10px;
    }
}





/* ===== WORKS ===== */
.works {
    border-top: 1px solid #111;
    padding: 32px 0 80px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-heading p {
    font-size: 12px;
    font-weight: normal;
    color: #777;
    margin: 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
}

.work-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #d8d8d4;
}

.work h3 {
    margin: 12px 0 4px;
    font-size: 16px;
}

.work p {
    margin: 0;
    font-size: 12px;
    color: #666;
}


.work h3 {
    font-size: 16px;
}

@media (max-width: 600px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

html {
    scroll-behavior: smooth;
}


.work-button {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* ===== MODAL ===== */
#work-dialog {
    width: min(900px, 90vw);
    max-height: 90vh;
    padding: 32px;
    border: 1px solid #111;
    background: #f0f0ec;
    color: #111;
}

#work-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    border-bottom: none;
    padding-bottom: 16px;
}

#close-dialog {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

#dialog-content h2 {
    font-size: clamp(32px, 5vw, 64px);
    color: #111;
    margin: 8px 0 24px;
}

#dialog-content p {
    line-height: 1.8;
    white-space: pre-line;
}

#dialog-content figure {
    margin: 48px 0;
}

#dialog-content img {
    display: block;
    width: 100%;
    height: auto;
}

#dialog-content figcaption {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}

#dialog-content .work-metadata {
  font-size: 12px;
  letter-spacing: 0.03em;
  margin: -16px 0 32px;
}

.dialog-header span {
  font-size: 11px;
  font-weight: normal;
  color: #777;
  letter-spacing: 0.05em;
}

.back-to-top {
    position: fixed;
    right: 80px;
    bottom: 64px;

    font-size: 12px;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.05em;
    z-index: 10;
}

.back-to-top:hover {
    text-decoration: underline;
}


.work-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}



/* ===== ABOUT IMAGE ===== */

.about-signature {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0;
    opacity: 1;
}

@media (max-width: 600px) {
    .about-signature {
        width: 50vw;
        max-width: 100%;
        height: auto;
    }
}



/* ===== JOURNAL ===== */

.journal {
    padding: 00px 0 80px;
}

.journal-list {
    margin-top: 40px;
}

.journal-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 16px 0;
    text-decoration: none;
    color: inherit;
}

.journal-date {
    font-size: 12px;
    color: #777;
}

.journal-title {
    font-size: 16px;
    font-weight: 500;
}

.journal-item:hover .journal-title {
    text-decoration: underline;
}

.journal-more {
    display: block;
    width: fit-content;
    margin-top: 40px;
    font-size: 12px;
    color: #1749b2;
}

@media (max-width: 600px) {
    .journal-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}



/* ===== LINKS & CONTACT ===== */

.links {
    padding: 20px 0 80px;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
}

.links-heading h3 {
    margin: 0;
    font-size: clamp(48px, 7vw, 70px);
    letter-spacing: -0.05em;
    line-height: 1;
}

.links-heading p {
    font-size: 12px;
    margin-top: 16px;
}

.links-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  text-align: right;
}

.links-content a {
    color: #1749b2;
    font-size: 18px;
    text-decoration: underline;
}

.links-content h4 {
    margin: 24px 0 0;
    font-size: 12px;
    font-weight: normal;
    color: #777;
}

@media (max-width: 600px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .links {
        padding: 48px 0 80px;
    }
}

/* ===== 3D MODEL VIEWER ===== */

.work-3d {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  background: #e5e5e5;
}