:root {
    color-scheme: light;
    --paper: #fdfdfb;
    --surface: #f5f5f2;
    --line: #deded8;
    --ink: #151515;
    --muted: #6e6e67;
    --focus: #1d4ed8;
    --warn: #755300;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
}

a, button, input, textarea, select { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); }
p { line-height: 1.65; }

.tw-header {
    align-items: center;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 clamp(20px, 5vw, 72px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.tw-brand {
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.tw-nav {
    display: flex;
    gap: clamp(18px, 3vw, 38px);
}

.tw-nav a, .tw-footer a, .section-head a, .text-link, .back-link, .prev-next a {
    border-bottom: 1px solid transparent;
    color: var(--ink);
    text-decoration: none;
}

.tw-nav a:hover, .tw-footer a:hover, .section-head a:hover, .text-link:hover, .back-link:hover, .prev-next a:hover {
    border-color: var(--ink);
}

.tw-menu-toggle, .tw-menu-button { display: none; }

.hero {
    align-items: center;
    display: grid;
    gap: clamp(40px, 7vw, 112px);
    grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
    min-height: calc(100svh - 64px);
    padding: clamp(44px, 8vw, 96px) clamp(20px, 6vw, 96px);
}

.hero-copy h1 {
    color: var(--ink);
    font-size: clamp(48px, 6vw, 86px);
    font-weight: 580;
    line-height: 0.92;
    margin: 18px 0 30px;
}

.page-title h1, .detail-info h1, .contact-layout h1, .about-layout h1 {
    color: var(--ink);
    font-size: clamp(48px, 7.4vw, 116px);
    font-weight: 580;
    line-height: 0.9;
    margin: 18px 0 30px;
}

.eyebrow {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.hero-art {
    color: var(--ink);
    display: grid;
    gap: 18px;
    text-decoration: none;
}

.hero-image {
    max-height: 72svh;
    object-fit: contain;
    width: 100%;
}

.tw-section, .tw-page, .detail-page {
    padding: clamp(42px, 7vw, 96px) clamp(20px, 6vw, 96px);
}

.section-head, .page-title {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 36px;
}

.section-head h2, .exhibition-row h2 {
    color: var(--ink);
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 520;
    margin: 0;
}

.work-grid {
    display: grid;
    gap: clamp(24px, 4vw, 54px) clamp(18px, 3vw, 36px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-teaser {
    color: var(--ink);
    text-decoration: none;
}

.work-image {
    aspect-ratio: 4 / 5;
    background: var(--surface);
    object-fit: contain;
    transition: transform 260ms ease;
    width: 100%;
}

.work-teaser:hover .work-image { transform: translateY(-4px); }

.work-teaser span {
    display: grid;
    gap: 4px;
    padding-top: 14px;
}

.work-teaser small, .lead, .detail-info dd, .cv-list p, .exhibition-row p, .legal p, .contact-layout p {
    color: var(--muted);
}

.intro-band {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: flex;
    gap: 32px;
    justify-content: space-between;
    padding: clamp(42px, 7vw, 84px) clamp(20px, 6vw, 96px);
}

.intro-band p {
    color: var(--ink);
    font-size: clamp(22px, 3.2vw, 42px);
    line-height: 1.12;
    margin: 0;
    max-width: 760px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 42px;
}

.filters button, .filters input, .contact-form input, .contact-form textarea, .contact-form button {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    min-height: 42px;
}

.filters button, .contact-form button {
    cursor: pointer;
    padding: 0 16px;
}

.filters button.active {
    background: var(--ink);
    color: var(--paper);
}

.filters input {
    flex: 1;
    min-width: 180px;
    padding: 0 14px;
}

.detail-layout {
    align-items: start;
    display: grid;
    gap: clamp(36px, 6vw, 92px);
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
}

.back-link {
    display: inline-flex;
    margin-bottom: 28px;
}

.detail-image {
    background: var(--surface);
    max-height: 78svh;
    object-fit: contain;
    width: 100%;
}

.thumb-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 14px;
}

.thumb-row button {
    background: transparent;
    border: 1px solid transparent;
    flex: 0 0 72px;
    height: 72px;
    padding: 0;
    width: 72px;
}

.thumb-row button.active { border-color: var(--ink); }
.thumb-row img { height: 100%; object-fit: cover; width: 100%; }

.detail-info {
    position: sticky;
    top: 92px;
}

.detail-info h1 { font-size: clamp(36px, 4vw, 62px); }

.detail-info dl {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding: 28px 0;
}

.detail-info dl div, .cv-list div {
    display: grid;
    gap: 18px;
    grid-template-columns: 92px 1fr;
}

.detail-info dt, .cv-list time {
    color: var(--ink);
    font-size: 13px;
    text-transform: uppercase;
}

.detail-info dd, .cv-list p { margin: 0; }
.incomplete { color: var(--warn); font-size: 13px; }

.prev-next {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 28px;
}

.exhibition-list {
    border-top: 1px solid var(--line);
    display: grid;
}

.exhibition-row {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: clamp(24px, 5vw, 72px);
    grid-template-columns: minmax(160px, 320px) minmax(0, 1fr);
    padding: 32px 0;
}

.exhibition-row img {
    aspect-ratio: 4 / 3;
    background: var(--surface);
    object-fit: contain;
    width: 100%;
}

.about-layout, .contact-layout {
    display: grid;
    gap: clamp(36px, 7vw, 96px);
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
}

.portrait {
    background: var(--surface);
    max-height: 680px;
    object-fit: contain;
    width: 100%;
}

.cv-list {
    display: grid;
    gap: 18px;
    margin-top: 40px;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form input, .contact-form textarea {
    padding: 12px 14px;
    width: 100%;
}

.legal {
    max-width: 920px;
}

.legal p { white-space: pre-wrap; }

.tw-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 18px;
    justify-content: space-between;
    padding: 28px clamp(20px, 6vw, 96px);
}

.image-placeholder {
    background: var(--surface);
    color: var(--muted);
    display: grid;
    min-height: 220px;
    place-items: center;
}

@media (max-width: 900px) {
    .tw-menu-button {
        border: 1px solid var(--line);
        display: grid;
        height: 42px;
        place-items: center;
        width: 42px;
    }

    .tw-menu-button span, .tw-menu-button::before, .tw-menu-button::after {
        background: var(--ink);
        content: "";
        display: block;
        height: 1px;
        transition: transform 220ms ease;
        width: 18px;
    }

    .tw-menu-button::before { transform: translateY(-6px); }
    .tw-menu-button::after { transform: translateY(6px); }

    .tw-nav {
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        display: grid;
        gap: 0;
        inset: 64px 0 auto;
        padding: 18px 20px;
        position: fixed;
        transform: translateY(-130%);
        transition: transform 220ms ease;
    }

    .tw-menu-toggle:checked ~ .tw-nav { transform: translateY(0); }
    .tw-nav a { border-bottom: 1px solid var(--line); padding: 14px 0; }

    .hero, .detail-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-info { position: static; }
}

@media (max-width: 560px) {
    .work-grid, .exhibition-row { grid-template-columns: 1fr; }
    .section-head, .intro-band, .tw-footer { align-items: flex-start; flex-direction: column; }
    .detail-info dl div, .cv-list div { gap: 4px; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
