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

:root {
    --bg: #0a0a0a;
    --text: #d0d0d0;
    --text-dim: #888;
    --text-bright: #f0f0f0;
    --accent: #888;
    --border: #2a2a2a;
    --grid-gap: 1.5rem;
    --edge: 1.75rem;
}

html {
    background: var(--bg);
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'Inter', -apple-system, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--text-bright);
}

/* ─── Top strip ─── */

.top-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto auto;
    align-items: center;
    padding: var(--edge);
    gap: var(--grid-gap);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}

.top-strip a.alt-link {
    color: var(--text-dim);
    text-align: right;
}

.top-strip a.alt-link:hover {
    color: var(--text-bright);
}

/* ─── Hero section ─── */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: var(--grid-gap);
    padding: 3rem var(--edge) var(--edge);
}

.hero-title {
    grid-column: 1;
    grid-row: 1;
}

.video-text-wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: 1em;
}


.hero-title h1 {
    font-size: clamp(3rem, 9vw, 9rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-bright);
}

.line {
    display: block;
}

.line--tagline {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    color: var(--text);
    letter-spacing: -0.02em;
    font-weight: 500;
}

.line--accent {
    color: var(--text-dim);
}

/* ─── Water video behind headlines ─── */

.text-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-title h1 {
    position: relative;
    z-index: 1;
}


.section-head h2 {
    color: #aac3d8;
}

@media (prefers-reduced-motion: reduce) {
    .text-video {
        animation: none;
    }
}

.hero-aside {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.hero-aside p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
    max-width: 28ch;
}

.hero-aside p + p {
    margin-top: 1.25rem;
}

.welcome-line {
    color: var(--text-bright) !important;
    font-size: 14px !important;
    margin-bottom: 1rem !important;
}

.hero-aside .bunny {
    margin-top: 1.5rem;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 8px;
    line-height: 1.15;
    color: var(--text-dim);
    white-space: pre;
    overflow-x: auto;
}

.hero-meta {
    color: var(--text-dim);
}

.hero-meta a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* ─── Hero photo ─── */

.hero-photo {
    max-width: 600px;
    margin-top: 1rem;
}

.hero-photo img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    cursor: pointer;
}

.hero-photo figcaption {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* ─── Hero columns (bottom row) ─── */

.hero-columns {
    grid-column: 1;
    grid-row: 2;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--grid-gap);
    align-self: end;
    padding-bottom: 4rem;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.col-label {
    color: var(--text-dim);
    font-size: 12px;
}

.col-date {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 0.75rem;
}

.col p {
    font-size: 13px;
    line-height: 1.5;
}

/* ─── Hero CV sidebar ─── */

.hero-cv {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.cv-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cv-label {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.cv-item {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    font-size: 13px;
}

.cv-item .cv-date {
    color: var(--text-dim);
    margin-top: 2px;
}

/* ─── Page number indicator ─── */

.page-num {
    position: absolute;
    bottom: 1.25rem;
    left: var(--edge);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

/* ─── Sections ─── */

.section {
    padding: 5rem var(--edge);
    border-top: 1px solid var(--border);
}

.section-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: var(--grid-gap);
    margin-bottom: 3rem;
}

.page-num-small {
    font-size: 13px;
    color: var(--text-dim);
}

.section-head h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-bright);
}

.section-meta {
    font-size: 12px;
    color: var(--text-dim);
    text-align: right;
}

/* ─── Statement section ─── */

.statement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.statement-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.statement-col .col-label {
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.statement-col p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    max-width: 38ch;
}

/* ─── Project list (art section) ─── */

.project-list {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 80px;
    gap: var(--grid-gap);
    align-items: baseline;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    font-size: 15px;
    transition: padding 0.2s ease, color 0.15s;
}

.project-row:last-child {
    border-bottom: 1px solid var(--border);
}

.project-row:hover {
    padding-left: 1rem;
    color: var(--text-bright);
}

.proj-num {
    font-size: 12px;
    color: var(--text-dim);
}

.proj-title {
    font-weight: 500;
}

.proj-type {
    font-size: 12px;
    color: var(--text-dim);
}

.proj-year {
    font-size: 12px;
    color: var(--text-dim);
    text-align: right;
}

/* ─── Writing grid ─── */

.writing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--grid-gap);
}

.writing-col {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.writing-col .col-label {
    margin-bottom: 0.5rem;
}

.writing-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.writing-item a {
    text-decoration: none;
}

.writing-item strong {
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

.writing-item a:hover strong {
    color: var(--text-bright);
}

.writing-item span {
    font-size: 12px;
    color: var(--text-dim);
}

.writing-note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    max-width: 30ch;
}

/* ─── Bottom strip ─── */

.bottom-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    padding: var(--edge);
    gap: var(--grid-gap);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}

.bottom-strip a {
    color: var(--text);
}

.bottom-strip a:hover {
    color: var(--text-bright);
}

/* ─── CV section ─── */

.cv-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.cv-toggle:hover {
    border-color: var(--text);
    color: var(--text-bright);
}

.cv-full {
    max-width: 800px;
}

.cv-section {
    margin-bottom: 3rem;
}

.cv-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.cv-entry-full {
    margin-bottom: 1.25rem;
}

.cv-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    font-size: 13px;
    line-height: 1.5;
}

.cv-entry-head strong {
    font-weight: 500;
    color: var(--text-bright);
}

.cv-year-right {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

.cv-entry-full p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    margin-top: 2px;
}

.cv-sub-label {
    color: var(--text-dim) !important;
    font-size: 12px !important;
    margin-top: 0.5rem !important;
}

.cv-full ul {
    list-style: none;
    margin-top: 0.25rem;
}

.cv-full ul li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    padding-left: 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cv-full ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

.cv-year-inline {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Photo strip ─── */

.photo-strip {
    display: flex;
    gap: var(--grid-gap);
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    overflow-x: auto;
}

.photo-strip img {
    height: 240px;
    width: auto;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.15s;
}

.photo-strip img:hover {
    opacity: 0.8;
}

/* ─── Lightbox ─── */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
    :root {
        --edge: 1.25rem;
    }

    .top-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .top-strip a.alt-link {
        text-align: left;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .hero-title,
    .hero-aside,
    .hero-columns,
    .hero-cv {
        grid-column: 1;
    }

    .hero-title { grid-row: 1; }
    .hero-aside { grid-row: 2; margin-top: 2rem; }
    .hero-columns { grid-row: 3; grid-template-columns: 1fr; margin-top: 2.5rem; padding-bottom: 2rem; }
    .hero-cv { grid-row: 4; padding-bottom: 6rem; }

    .hero-aside p { max-width: none; }

    .page-num {
        bottom: 1rem;
    }

    .section-head {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .section-meta {
        text-align: left;
    }

    .project-row {
        grid-template-columns: 40px 1fr 60px;
        font-size: 14px;
    }

    .proj-type {
        display: none;
    }

    .writing-grid,
    .statement-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bottom-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}
