:root {
    --bg: #000000;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --line: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Arial Narrow", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.light-page {
    --bg: #ffffff;
    --text: #000000;
    --muted: rgba(0, 0, 0, 0.68);
    --line: rgba(0, 0, 0, 0.14);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.78);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.light-page header {
    background: rgba(255, 255, 255, 0.9);
}

a {
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
}

.logo {
    font-size: 1.35rem;
    font-weight: 500;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 400;
}

.center-main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 3rem 5rem;
}

.center-main h1,
.gallery-title {
    margin: 0;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 300;
    line-height: 1;
    text-transform: uppercase;
}

.center-main p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.about-main {
    min-height: 100vh;
    padding: 12rem 3rem 5rem;
    background: var(--bg);
}

.about-layout {
    border-top: 0;
    padding-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 4rem;
    align-items: center;
}

.reel-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    background: #f4f4f4;
}

.about-copy {
    max-width: 560px;
}

.about-copy p {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: left;
}

.about-copy p + p {
    margin-top: 1.2rem;
}

.education-main {
    background: var(--bg);
}

.education-main h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 300;
}

.education-main p {
    color: var(--text);
}

.education-page-links {
    margin-top: 2.25rem;
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.education-page-links a {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.15rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.education-page-links a:hover,
.education-page-links a:focus-visible {
    color: var(--text);
    border-color: var(--text);
}

.education-hub-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.education-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.education-card {
    min-height: 44vh;
    padding: 2rem;
    display: flex;
    align-items: flex-end;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-transform: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.education-card span {
    font-size: clamp(1.35rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.15;
}

.education-card:hover,
.education-card:focus-visible {
    background: var(--text);
    color: var(--bg);
}

.gallery-main,
.detail-main {
    padding: 8rem 3rem 5rem;
}

.gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    min-height: 34vh;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding-top: 3rem;
}

.original-gallery-page .gallery-main {
    padding-top: 12rem;
}

.original-gallery-page .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding-top: 0;
}

.original-gallery-page .work-thumb {
    border: 0;
    background: transparent;
}

.original-gallery-page .work-title {
    display: none;
}

.work-card {
    display: block;
}

.work-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f4f4f4;
    border: 1px solid var(--line);
    overflow: hidden;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 1.5rem;
}

.poster-thumb {
    aspect-ratio: 3 / 4;
}

.poster-thumb img {
    object-fit: cover;
    padding: 0;
}

.project-gallery-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-thumb {
    aspect-ratio: 16 / 9;
}

.project-thumb img {
    object-fit: cover;
    padding: 0;
    transition: transform 0.35s ease;
}

.work-overlay-title {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.34);
    color: #ffffff;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.25s ease;
    text-transform: none;
}

.work-card:hover .work-overlay-title,
.work-card:focus-visible .work-overlay-title {
    opacity: 1;
}

.work-card:hover .project-thumb img,
.work-card:focus-visible .project-thumb img {
    transform: scale(1.03);
}

.work-title {
    margin-top: 0.9rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 3rem;
    align-items: end;
    min-height: calc(100vh - 10rem);
}

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f4f4f4;
    border: 1px solid var(--line);
}

iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.shorts-hero {
    min-height: calc(100vh - 10rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.shorts-video-wrap {
    width: min(420px, 100%);
    aspect-ratio: 9 / 16;
}

.artist-note {
    width: min(760px, 100%);
    margin: 4rem auto 0;
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
}

.artist-note h1 {
    margin: 0 0 1.4rem;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1;
}

.artist-note p {
    margin: 0;
    color: var(--text);
    word-break: keep-all;
}

.artist-note p + p {
    margin-top: 0.85rem;
}

.thread-logo {
    display: block;
    width: min(36vw, 380px);
    min-width: 220px;
    height: auto;
}

.thread-logo-wrap {
    position: relative;
    display: inline-block;
}

.thread-logo-word {
    position: absolute;
    right: -6%;
    top: 50%;
    color: #000000;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4.2vw, 3.2rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.content {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: 3rem;
    padding-top: 5rem;
}

section {
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
}

h2 {
    margin: 0;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
}

p,
li {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

p {
    margin: 1rem 0 0;
}

ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

li + li {
    margin-top: 0.45rem;
}

.awards-section {
    grid-column: 1 / -1;
}

.awards-section ul {
    columns: 2;
    column-gap: 3rem;
}

.awards-section li {
    break-inside: avoid;
}

.project-detail-main {
    padding-top: 12rem;
}

.project-detail-hero img {
    width: 100%;
    display: block;
}

.project-detail-title {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 300;
    line-height: 1;
}

.project-detail-content a {
    color: var(--text);
    text-decoration: underline;
    text-transform: none;
}

.st-rob-main {
    padding-top: 12rem;
}

.st-rob-layout {
    border-top: 0;
    padding-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.55fr);
    gap: 2rem;
    align-items: start;
}

.st-rob-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f4f4f4;
}

.st-rob-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.st-rob-info h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1;
}

.st-rob-info dl {
    margin: 2rem 0 0;
}

.st-rob-info div + div {
    margin-top: 1.45rem;
}

.st-rob-info dt {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.st-rob-info dd {
    margin: 0.2rem 0 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.45;
}

.st-rob-info a {
    color: var(--text);
    text-decoration: underline;
    text-transform: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.8;
}

.site-footer a {
    color: var(--muted);
    text-transform: none;
}

.instagram-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    width: 1.15rem;
    height: 1.15rem;
}

.instagram-link svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-brand {
    color: var(--text);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 800px) {
    header,
    .about-main,
    .center-main,
    .gallery-main,
    .detail-main {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero,
    .about-layout,
    .st-rob-layout,
    .content,
    .gallery-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .original-gallery-page .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-gallery-page .gallery-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        min-height: 28vh;
        padding: 1.5rem;
    }

    .awards-section ul {
        columns: 1;
    }

    .site-footer {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
    }

    .footer-info {
        align-items: flex-start;
    }

    .instagram-link {
        align-self: flex-start;
    }
}
