/* ========================================
   HUA TONG — Portfolio
   VoiceBox Design System
   Editorial · Flat · Sharp
   ======================================== */

:root {
    /* Brand */
    --color-black: #0A0A0A;
    --color-teal: #40C1AC;
    --color-teal-hover: #36A594;
    --color-teal-active: #2D8A7C;
    --color-white: #FAFAFA;

    /* Surfaces */
    --color-surface: #F5F5F5;
    --color-surface-raised: #E5E5E5;

    /* Text */
    --color-text: #0A0A0A;
    --color-text-secondary: #525252;
    --color-text-tertiary: #A3A3A3;

    /* Borders */
    --border-subtle: #E5E5E5;
    --border-medium: #D4D4D4;
    --border-strong: #0A0A0A;

    /* Fonts */
    --font-display: 'Archivo Black', Impact, 'Arial Black', sans-serif;
    --font-body: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', Consolas, monospace;

    /* Layout */
    --nav-height: 64px;
    --page-padding: 64px;
    --page-padding-mobile: 24px;
    --content-max: 1400px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

[id] { scroll-margin-top: calc(var(--nav-height) + 24px); }

/* --- Page jump navigation --- */
.page-jump-nav {
    position: sticky;
    z-index: 900;
    top: calc(var(--nav-height) + 18px);
    width: max-content;
    height: 0;
    margin: 18px 18px 0 auto;
    transform: translate3d(var(--jump-x, 0px), var(--jump-y, 0px), 0);
}

.jump-drag-handle {
    width: 100%;
    padding: 5px 8px 4px;
    border: 1px solid var(--color-black);
    border-bottom: 0;
    color: var(--color-text-secondary);
    background: rgba(243, 241, 234, 0.96);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-align: center;
    cursor: grab;
    touch-action: none;
}

.jump-drag-handle:active { cursor: grabbing; }

.page-jump-nav ul {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 15px 11px;
    border: 1px solid var(--color-black);
    background: rgba(243, 241, 234, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 4px 5px 0 rgba(10, 10, 10, 0.1);
}

.page-jump-nav ul::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 20px;
    bottom: 20px;
    left: 15px;
    width: 1.5px;
    background: rgba(10, 10, 10, 0.42);
}

.page-jump-nav a {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 18px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.page-jump-nav a::before {
    content: '';
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 1.5px solid var(--color-black);
    border-radius: 50%;
    background: var(--color-teal);
    transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.page-jump-nav a:hover::before,
.page-jump-nav a:focus-visible::before {
    transform: scale(1.45);
    background: var(--color-white);
}

.page-jump-nav a.active {
    color: var(--color-teal-active);
    font-size: 11px;
}

.page-jump-nav a.active::before {
    transform: scale(1.55);
    background: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(243, 241, 234, 0.95), 0 0 0 4.5px var(--color-black);
}

/* --- Previous / next project navigation --- */
.project-pagination {
    position: static;
    top: auto;
    z-index: auto;
    width: min(calc(100% - 2 * var(--page-padding)), 1200px);
    height: auto;
    margin: 0 auto 72px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    border-top: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
    background: #F3F1EA;
}

.project-pagination > a {
    min-height: 116px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color var(--transition), color var(--transition);
}

.project-pagination > a:hover,
.project-pagination > a:focus-visible {
    background: var(--color-teal);
}

.project-pagination .project-next {
    align-items: flex-end;
    text-align: right;
}

.project-pagination .back-to-top {
    min-width: 150px;
    align-items: center;
    border-right: 1px solid var(--color-black);
    border-left: 1px solid var(--color-black);
    text-align: center;
}

.pagination-label {
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
}

.pagination-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 1;
    letter-spacing: -0.025em;
}

@media (max-width: 900px) {
    .page-jump-nav {
        top: calc(var(--nav-height) + 8px);
        width: calc(100% - 32px);
        height: auto;
        margin: 8px 16px 0;
        transform: none !important;
        overflow-x: auto;
    }
    .jump-drag-handle { display: none; }
    .page-jump-nav ul {
        display: flex;
        gap: 18px;
        width: max-content;
        padding: 10px 12px;
    }
    .page-jump-nav ul::before {
        top: 15px;
        right: 18px;
        bottom: auto;
        left: 18px;
        width: auto;
        height: 1.5px;
    }
    .page-jump-nav a {
        flex-direction: row;
    }
    .project-pagination {
        width: calc(100% - 48px);
        margin-bottom: 64px;
        grid-template-columns: 1fr 1fr;
    }
    .project-pagination .back-to-top {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 64px;
        border-right: 0;
        border-bottom: 1px solid var(--color-black);
        border-left: 0;
    }
    .project-pagination .project-prev,
    .project-pagination .project-next {
        min-height: 100px;
    }
    .project-pagination .project-prev { border-right: 1px solid var(--color-black); }
}

@media (min-width: 1200px) {
    .home-page .timeline-section,
    .rr-evidence-page .rr-case {
        transform: translateX(-72px);
    }
}

/* --- Overline (reusable) --- */
.overline {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-teal);
    display: block;
}

/* --- Navigation --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    padding: 0 var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    border-bottom: 2px solid var(--border-strong);
}

.logo {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.logo::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background: url('assets/icon-128.png') center / contain no-repeat;
}

.logo:hover { color: var(--color-teal); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
    transition: border-color var(--transition), color var(--transition);
}

.nav-links a:hover { border-bottom-color: var(--color-teal); }
.nav-links a.active { border-bottom-color: var(--color-teal); }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-black);
    transition: all var(--transition);
}

/* ========================================
   HOME — Editorial Hero
   ======================================== */
.hero-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    border-bottom: 2px solid var(--border-strong);
}

.hero-left {
    background-color: var(--color-black);
    padding: 64px var(--page-padding);
    padding-left: max(var(--page-padding), calc((100vw - 1200px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-left .overline {
    margin-bottom: 16px;
}

.hero-left h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 400;
    color: var(--color-white);
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.hero-right {
    background-color: var(--color-black);
    padding: 64px var(--page-padding);
    padding-right: max(var(--page-padding), calc((100vw - 1200px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-left: 2px solid #333;
}

.hero-right p {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: rgba(250, 250, 250, 0.75);
    line-height: 1.65;
    max-width: 380px;
    margin-bottom: 32px;
}

.hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-meta-item {
    font-size: 13px;
    color: rgba(250, 250, 250, 0.6);
    line-height: 1.4;
}

.hero-meta-item .meta-label {
    font-weight: 700;
    color: var(--color-white);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    margin-bottom: 4px;
}

/* ========================================
   HOME — Sub-page Hero (About, Playground)
   ======================================== */
.page-hero {
    background-color: var(--color-black);
    padding: 48px max(var(--page-padding), calc((100vw - 1200px) / 2));
    padding-top: 64px;
    border-bottom: 2px solid var(--border-strong);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 48px);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.page-hero h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background-color: var(--color-teal);
    margin-top: 16px;
}

.page-hero p {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(250, 250, 250, 0.65);
    max-width: 500px;
    line-height: 1.65;
    margin-top: 8px;
}

/* ========================================
   Sections
   ======================================== */
.section {
    width: min(calc(100% - 112px), 1200px);
    margin-left: auto;
    margin-right: auto;
    padding: var(--page-padding) 0;
}

.section-header {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-strong);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-count {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-tertiary);
}

/* ========================================
   Project Lead Card (full-width featured)
   ======================================== */
.project-lead {
    display: grid;
    grid-template-columns: 3fr 2fr;
    border: 2px solid var(--border-subtle);
    margin-bottom: 48px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.project-lead:hover {
    border-color: var(--color-teal);
}

.project-lead .lead-image {
    aspect-ratio: 16 / 10;
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.project-lead .lead-image .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-tertiary);
}

.project-lead .lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-lead .lead-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-left: 2px solid var(--border-subtle);
}

.project-lead .lead-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 10px;
    margin-bottom: 12px;
}

.project-lead .lead-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 340px;
}

/* ========================================
   Project Cards (grid)
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    display: block;
    cursor: pointer;
    transition: all var(--transition);
}

.project-card:hover .card-image {
    border-color: var(--color-teal);
}

.project-card .card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--color-surface);
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
    border: 2px solid var(--border-subtle);
    transition: border-color var(--transition);
}

.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card .card-image .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-tertiary);
}

.project-card .card-body {
    padding-top: 2px;
}

.project-card .card-body .overline {
    margin-bottom: 6px;
}

.project-card .card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.project-card .card-category {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ========================================
   Playground — open montage
   ======================================== */
.playground-page {
    background: var(--color-black);
    color: var(--color-teal);
}

.playground-page nav {
    background-color: var(--color-black);
    color: var(--color-teal);
    border-bottom: 0;
}

.playground-page .logo:hover {
    color: var(--color-teal);
}

.playground-page .nav-links a:hover,
.playground-page .nav-links a.active {
    border-bottom-color: var(--color-teal);
}

.playground-page .nav-toggle span {
    background-color: var(--color-teal);
}

.playground-page .nav-links.open {
    background-color: var(--color-black);
}

.playground-hero {
    min-height: 46vh;
    padding: clamp(64px, 9vw, 132px) var(--page-padding) 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--color-black);
    color: var(--color-teal);
}

.playground-hero h1 {
    max-width: 1280px;
    font-family: var(--font-display);
    font-size: clamp(54px, 11vw, 168px);
    font-weight: 400;
    line-height: .78;
    letter-spacing: -.07em;
}

.playground-hero h1 span {
    color: var(--color-teal);
}

.playground-hero-meta {
    margin-top: clamp(34px, 5vw, 72px);
    padding-top: 14px;
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    border-top: 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.playground-page footer {
    background-color: var(--color-black);
    color: var(--color-teal);
    border-top: 0;
}

.playground-page .footer-logo,
.playground-page footer a {
    color: var(--color-teal);
}

.playground-page .footer-logo::before {
    background-image: url('assets/icon-128.png');
}

.playground-page footer a:hover {
    color: var(--color-teal-hover);
}

.playground-montage {
    width: min(calc(100% - 2 * var(--page-padding)), 1400px);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 120px) 0;
    columns: 3;
    column-gap: clamp(12px, 1.6vw, 24px);
}

.montage-cluster {
    display: contents;
}

.montage-piece {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 clamp(12px, 1.6vw, 24px);
    overflow: visible;
    background: transparent;
    vertical-align: top;
    break-inside: avoid;
}

.montage-piece img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 1500px) {
    .playground-montage { columns: 4; }
}

/* ========================================
   About
   ======================================== */
.about-page {
    background-color: var(--color-teal);
    background-image:
        linear-gradient(rgba(10, 10, 10, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 10, .075) 1px, transparent 1px);
    background-size: 80px 80px;
}

.about-page .about-hero {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(170px, 240px);
    justify-content: space-between;
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    padding: clamp(44px, 5vw, 72px) max(var(--page-padding), calc((100vw - 1200px) / 2)) clamp(40px, 5vw, 72px);
    color: #111;
    border-bottom: 0;
    background: transparent;
}

.about-page .about-hero h1 {
    margin: 0;
    color: #111;
    font-size: clamp(60px, 7.8vw, 112px);
    line-height: .9;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.about-page .about-hero h1::after {
    display: none;
}

.about-content {
    width: min(calc(100% - 112px), 1200px);
    margin-left: auto;
    margin-right: auto;
    padding: 64px 0;
}

.about-page .about-content {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: clamp(28px, 4vw, 56px);
    border: 2px solid #111;
    background: #fbf5f0;
    box-shadow: 3px 4px 0 rgba(16, 16, 16, .07);
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 900px;
}

.about-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.about-contact-links a {
    color: var(--color-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-contact-links a:hover,
.about-contact-links a:focus-visible {
    color: var(--color-teal);
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-top: 48px;
    margin-bottom: 16px;
}

.about-content img {
    user-select: none;
    -webkit-user-drag: none;
}

.about-hero-copy {
    min-width: 0;
}

.about-hero .about-intro {
    max-width: 680px;
    margin-top: 28px;
}

.about-hero .about-intro p {
    max-width: none;
    margin: 0;
    color: #111;
    font-size: 16px;
    line-height: 1.65;
}

.about-hero .about-intro .about-intro-lead {
    margin-bottom: 12px;
    font-size: clamp(18px, 1.5vw, 20px);
    font-weight: 500;
    line-height: 1.5;
}

.about-portrait-frame {
    position: relative;
    width: min(100%, 210px);
    margin: 12px 12px 12px 0;
    justify-self: center;
    padding: 9px 9px 11px;
    border: 2px solid #111;
    background: #fafafa;
    box-shadow: 6px 8px 0 rgba(10, 10, 10, .12);
    transform: rotate(2deg);
    transform-origin: 50% 18px;
}

.about-portrait-frame::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: -13px;
    left: 50%;
    width: 22px;
    height: 22px;
    transform: translateX(-50%);
    border: 2px solid #111;
    border-radius: 50%;
    background: var(--color-teal);
    box-shadow: 2px 3px 0 rgba(10, 10, 10, .2);
}

.about-portrait-frame img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.about-coloring-game {
    margin-bottom: 40px;
}

.coloring-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.coloring-visual {
    min-width: 0;
}

.coloring-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 2388 / 1668;
    overflow: hidden;
    background: #42c5b5;
    border: 2px solid var(--color-black);
    cursor: progress;
    isolation: isolate;
    touch-action: manipulation;
}

.coloring-stage.is-ready {
    cursor: default;
}

.coloring-stage:focus-visible {
    outline: 4px solid var(--color-teal);
    outline-offset: 4px;
}

.coloring-stage.is-ready.is-over-piece {
    cursor: pointer;
}

.coloring-stage > img,
.coloring-pieces,
.coloring-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.coloring-stage > img {
    object-fit: contain;
}

.coloring-base {
    z-index: 0;
    background: #42c5b5;
    transition: opacity 0.35s ease;
}

.coloring-pieces {
    z-index: 10;
    pointer-events: none;
}

.coloring-piece {
    position: absolute;
    opacity: 0;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

/* Smaller numbered pieces always sit above larger numbered pieces. */
.coloring-piece[data-piece="12"] { z-index: 12; }
.coloring-piece[data-piece="11"] { z-index: 13; }
.coloring-piece[data-piece="10"] { z-index: 14; }
.coloring-piece[data-piece="9"]  { z-index: 15; }
.coloring-piece[data-piece="8"]  { z-index: 16; }
.coloring-piece[data-piece="7"]  { z-index: 17; }
.coloring-piece[data-piece="6"]  { z-index: 18; }
.coloring-piece[data-piece="5"]  { z-index: 19; }
.coloring-piece[data-piece="4"]  { z-index: 20; }
.coloring-piece[data-piece="3"]  { z-index: 21; }
.coloring-piece[data-piece="2"]  { z-index: 22; }
.coloring-piece[data-piece="1"]  { z-index: 23; }

.coloring-piece.is-selected,
.coloring-piece-bw {
    opacity: 1;
}

.coloring-piece-bw.is-hovered-bw {
    transform: scale(1.03);
    will-change: transform;
}

.coloring-full {
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
}

.coloring-frame {
    z-index: 100;
    pointer-events: none;
}

.coloring-stage.is-complete .coloring-base,
.coloring-stage.is-complete .coloring-pieces {
    opacity: 0;
}

.coloring-stage.is-complete .coloring-full {
    opacity: 1;
}

.coloring-caption {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 2px 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
}

.coloring-progress {
    flex: 0 0 auto;
    color: #177f74;
}

.coloring-notes {
    min-width: 0;
    max-height: min(70vh, 650px);
    overflow-y: auto;
    border: 2px solid var(--color-black);
    background: #fff;
    padding: 18px;
}

.coloring-notes-title {
    position: sticky;
    z-index: 1;
    top: -18px;
    margin: -18px -18px 0;
    padding: 15px 18px 13px;
    border-bottom: 2px solid var(--color-black);
    background: var(--color-black);
    color: #42c5b5;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.1;
}

.coloring-notes-empty {
    margin: 18px 0 0 !important;
    color: var(--color-text-secondary);
    font-size: 14px !important;
}

.coloring-note {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-medium);
}

.coloring-note:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.coloring-note-title {
    margin: 0 0 7px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
}

.coloring-note-title::after {
    content: ':';
}

.about-content .coloring-note p {
    max-width: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

@media (min-width: 1050px) {
    .coloring-layout {
        grid-template-columns: minmax(0, 2fr) minmax(290px, 0.82fr);
    }
}

@media (max-width: 1049px) {
    .coloring-notes {
        max-height: none;
        overflow: visible;
    }

    .coloring-notes-title {
        position: static;
    }
}

.about-playlist {
    min-width: 0;
    width: min(100%, 600px);
    margin-top: 48px;
    border: 2px solid #111;
    background: #fbf5f0;
    box-shadow: 3px 4px 0 rgba(16, 16, 16, .1);
}

.about-playlist-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 10px 12px;
    color: #42c5b5;
    background: #111;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.about-playlist-heading #about-playlist-title {
    color: #fff;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: .02em;
}

.about-playlist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-track {
    min-width: 0;
    min-height: 44px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(10, 10, 10, .38);
    color: #111;
    background: #fbf5f0;
    transition: background-color var(--transition), color var(--transition);
}

.about-track:nth-last-child(-n+2) {
    border-bottom: 0;
}

.about-track:nth-child(odd) {
    border-right: 1px solid rgba(10, 10, 10, .38);
}

.about-track:hover,
.about-track:focus-visible {
    background: #42c5b5;
    color: var(--color-black);
}

.about-track:focus-visible {
    outline: 2px solid #111;
    outline-offset: -4px;
}

.about-track-number {
    color: #177f74;
    font-family: var(--font-mono);
    font-size: 9px;
}

.about-track:hover .about-track-number,
.about-track:focus-visible .about-track-number {
    color: var(--color-black);
}

.about-track-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.about-track-copy strong,
.about-track-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-track-copy strong {
    font-size: 12px;
    line-height: 1.2;
}

.about-track-copy span {
    color: rgba(10, 10, 10, .62);
    font-size: 9px;
}

.about-track:hover .about-track-copy span,
.about-track:focus-visible .about-track-copy span {
    color: rgba(10, 10, 10, 0.68);
}

@media (max-width: 700px) {
    .about-page .about-hero {
        grid-template-columns: minmax(0, 1fr) minmax(112px, 34%);
        gap: 30px 24px;
    }

    .about-hero-copy {
        display: contents;
    }

    .about-page .about-hero h1 {
        grid-column: 1;
        grid-row: 1;
        font-size: clamp(36px, 10vw, 64px);
        line-height: .98;
    }

    .about-hero .about-intro {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0;
    }

    .about-portrait-frame {
        grid-column: 2;
        grid-row: 1;
        width: min(100%, 160px);
        margin: 8px 8px 8px 0;
        padding: 7px 7px 9px;
    }
}

@media (max-width: 620px) {
    .about-playlist-grid {
        grid-template-columns: 1fr;
    }

    .about-track:nth-last-child(2) {
        border-bottom: 1px solid rgba(10, 10, 10, .38);
    }

    .about-track:nth-child(odd) {
        border-right: 0;
    }
}

/* ========================================
   Project Detail
   ======================================== */
.project-detail-hero {
    background-color: var(--color-black);
    padding: var(--page-padding);
    padding-top: 64px;
    padding-bottom: 64px;
    border-bottom: 2px solid var(--border-strong);
}

.project-detail-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 38px);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.project-detail-hero h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background-color: var(--color-teal);
    margin-top: 16px;
}

.project-detail-hero .project-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.project-detail-hero .meta-item {
    color: rgba(250, 250, 250, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.project-detail-hero .meta-label {
    font-weight: 700;
    color: var(--color-white);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    margin-bottom: 4px;
}

.project-detail-content {
    padding: var(--page-padding);
    max-width: 840px;
}

.project-detail-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-detail-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-strong);
}

.project-detail-content .full-width-image {
    width: calc(100% + var(--page-padding) * 2);
    margin-left: calc(var(--page-padding) * -1);
    margin-top: 32px;
    margin-bottom: 32px;
    border-top: 2px solid var(--border-subtle);
    border-bottom: 2px solid var(--border-subtle);
}

.project-detail-content .full-width-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.project-detail-content .image-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.project-detail-content .image-row img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* ========================================
   Back Link
   ======================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-white);
    transition: color var(--transition);
    margin-bottom: 32px;
}

.back-link:hover {
    color: var(--color-teal);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background-color: var(--color-black);
    color: rgba(250, 250, 250, 0.6);
    padding: 48px var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-top: 2px solid var(--border-strong);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.footer-logo::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: url('assets/icon_white-128.png') center / contain no-repeat;
}

footer a {
    color: var(--color-white);
    transition: color var(--transition);
}

footer a:hover { color: var(--color-teal); }

.footer-left {
    min-width: 0;
}

.footer-left p,
footer > p:first-child {
    max-width: 720px;
    line-height: 1.5;
}

.footer-right,
footer > p:last-child:not(:first-child) {
    flex-shrink: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* ========================================
   Animations
   ======================================== */

/* ========================================
   HOME 2026 — Turquoise Timeline
   ======================================== */
.home-page {
    background-color: var(--color-teal);
    background-image:
        linear-gradient(rgba(10, 10, 10, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 10, .075) 1px, transparent 1px);
    background-size: 80px 80px;
}

.home-hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    overflow: hidden;
    color: var(--color-black);
    background: var(--color-teal);
    border-bottom: 2px solid var(--border-strong);
}

.home-hero-background {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(10, 10, 10, 0.38);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background:
        linear-gradient(rgba(10, 10, 10, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 10, 0.09) 1px, transparent 1px),
        var(--color-teal);
    background-size: 80px 80px;
}

.home-hero-wash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(245, 245, 245, 0.18), transparent 40%, rgba(10, 10, 10, 0.06));
}

.home-hero-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--nav-height));
    padding: 48px var(--page-padding) 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34vw);
    grid-template-rows: auto 1fr auto;
    column-gap: clamp(32px, 6vw, 96px);
    align-items: end;
}

.home-edition {
    grid-column: 1 / -1;
    align-self: start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.home-hero h1 {
    grid-column: 1;
    align-self: center;
    font-family: var(--font-display);
    font-size: clamp(82px, 13vw, 208px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.065em;
}

.home-archive-word {
    display: block;
    margin-bottom: 0.18em;
    font-family: var(--font-body);
    font-size: 0.18em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
}

.home-portrait-placeholder {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: stretch;
    aspect-ratio: 4 / 5;
    max-height: 62vh;
    display: grid;
    place-items: center;
    border: 2px solid var(--color-black);
    background: rgba(243, 241, 234, 0.72);
    box-shadow: 16px 16px 0 rgba(10, 10, 10, 0.14);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.home-hero-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 18px;
    border-top: 2px solid var(--color-black);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline-section {
    width: min(calc(100% - 2 * var(--page-padding)), 1280px);
    margin: 0 auto;
    padding: 112px 0 128px;
}

.timeline-header {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 80px;
    align-items: end;
    padding-bottom: 72px;
    border-bottom: 2px solid var(--color-black);
}

.timeline-header h2 {
    margin-top: 14px;
    max-width: 800px;
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 86px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.timeline-header p {
    max-width: 420px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.project-timeline {
    position: relative;
    padding-top: 96px;
}

.project-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-1px);
    background: var(--color-black);
}

.timeline-project {
    position: relative;
    width: min(62%, 740px);
    margin-bottom: 112px;
    display: block;
    padding: 18px;
    background: var(--color-white);
    border: 2px solid var(--color-black);
    box-shadow: 5px 7px 0 rgba(10, 10, 10, 0.1);
    transform-origin: 50% 24px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.timeline-project:last-child { margin-bottom: 0; }
.timeline-project.animate-in { animation: none; }
.timeline-project.timeline-left {
    margin-right: auto;
    transform: rotate(-1.45deg);
}
.timeline-project.timeline-right {
    margin-left: auto;
    transform: rotate(1.65deg);
}
.timeline-project:nth-child(3n) { transform: rotate(-1.1deg); }

.timeline-project:hover,
.timeline-project:focus-visible {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 10px 10px 0 var(--color-teal);
}

.timeline-node {
    position: absolute;
    z-index: 4;
    top: 21px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-black);
    border-radius: 50%;
    background: var(--color-teal);
    box-shadow: 2px 3px 0 rgba(10, 10, 10, 0.2);
}

.timeline-left .timeline-node { left: 80.65%; }
.timeline-right .timeline-node { left: 19.35%; }

.timeline-card-head {
    min-height: 82px;
    padding: 4px 4px 15px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
}

.timeline-card-head h3 {
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 58px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-teal-active);
}

.timeline-image {
    width: 100%;
    aspect-ratio: 16 / 8.6;
    min-height: 0;
    overflow: hidden;
    background: #E5E5E5;
    border: 1px solid var(--color-black);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.timeline-project:hover .timeline-image img { transform: scale(1.025); }

.timeline-image-placeholder {
    display: grid;
    place-items: center;
    color: var(--color-text-secondary);
    background:
        linear-gradient(135deg, transparent 49.5%, rgba(10,10,10,.13) 50%, transparent 50.5%),
        #E5E5E5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.timeline-copy {
    padding: 15px 4px 3px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

.timeline-index {
    max-width: 280px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    text-align: right;
    color: var(--color-text-secondary);
}

.timeline-copy p {
    max-width: 620px;
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1.55;
}

.timeline-link {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--color-teal);
}

.timeline-placeholder-card {
    background: #ECEAE3;
}

.timeline-placeholder-card .timeline-image {
    min-height: 240px;
}

@media (max-width: 768px) {
    .home-hero-content {
        padding: 32px var(--page-padding-mobile);
        grid-template-columns: 1fr minmax(110px, 30vw);
        column-gap: 18px;
    }
    .home-hero h1 {
        font-size: clamp(62px, 20vw, 118px);
    }
    .home-portrait-placeholder {
        box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.14);
    }
    .home-hero-meta {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .timeline-section {
        width: calc(100% - 48px);
        padding: 72px 0 88px;
    }
    .timeline-header {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 48px;
    }
    .project-timeline {
        padding-top: 72px;
        padding-left: 34px;
    }
    .project-timeline::before {
        left: 7px;
        transform: none;
    }
    .timeline-project,
    .timeline-project.timeline-left,
    .timeline-project.timeline-right {
        width: calc(100% - 10px);
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 72px;
        transform: rotate(-0.35deg);
    }
    .timeline-left .timeline-node,
    .timeline-right .timeline-node {
        left: -39px;
        right: auto;
        top: 24px;
    }
    .timeline-card-head {
        min-height: 72px;
        gap: 18px;
    }
    .timeline-card-head h3 {
        font-size: clamp(28px, 8vw, 46px);
    }
}

@media (max-width: 560px) {
    .home-hero-content {
        min-height: calc(100svh - var(--nav-height));
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto auto;
    }
    .home-hero h1 {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        margin-bottom: 28px;
    }
    .home-portrait-placeholder {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        justify-self: end;
        width: 34vw;
        min-width: 120px;
        margin-top: 20px;
    }
    .home-hero-meta { grid-row: 4; }
    .timeline-card-head { display: block; }
    .timeline-index { margin-top: 12px; text-align: left; }
    .timeline-copy { grid-template-columns: 1fr; gap: 14px; }
    .timeline-image { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-project,
    .timeline-image img { transition: none; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.4s ease both; }
.animate-in:nth-child(1) { animation-delay: 0.03s; }
.animate-in:nth-child(2) { animation-delay: 0.06s; }
.animate-in:nth-child(3) { animation-delay: 0.09s; }
.animate-in:nth-child(4) { animation-delay: 0.12s; }
.animate-in:nth-child(5) { animation-delay: 0.15s; }
.animate-in:nth-child(6) { animation-delay: 0.18s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    :root { --page-padding: 48px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .playground-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --page-padding: var(--page-padding-mobile); }
    nav { padding: 0 var(--page-padding-mobile); }
    .section,
    .about-content {
        width: calc(100% - 48px);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0; bottom: 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        border-top: 2px solid var(--border-strong);
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 14px; }
    .nav-toggle { display: flex; }

    /* Hero stacks vertically */
    .hero-editorial {
        grid-template-columns: 1fr;
    }
    .hero-right {
        border-left: none;
        border-top: 2px solid #333;
    }
    .hero-left h1 { font-size: 48px; }

    /* Lead card stacks */
    .project-lead {
        grid-template-columns: 1fr;
    }
    .project-lead .lead-body {
        border-left: none;
        border-top: 2px solid var(--border-subtle);
    }

    .projects-grid { grid-template-columns: 1fr; gap: 32px; }
    .playground-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .project-detail-content .image-row { grid-template-columns: 1fr; }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

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

    .page-hero { padding-top: 48px; padding-bottom: 48px; }
    .project-detail-hero { padding-top: 48px; padding-bottom: 48px; }

    .playground-hero {
        min-height: 400px;
        padding: 72px 24px 30px;
    }
    .playground-hero h1 {
        font-size: clamp(52px, 20vw, 92px);
        line-height: .82;
    }
    .playground-hero-meta {
        flex-direction: column;
        gap: 6px;
    }
    .playground-montage {
        width: calc(100% - 32px);
        columns: 2;
        column-gap: 10px;
    }
}

@media (max-width: 480px) {
    .playground-grid { grid-template-columns: 1fr; }
    .playground-montage {
        width: calc(100% - 24px);
        columns: 1;
    }
    .hero-meta { flex-direction: column; gap: 16px; }
    .coloring-caption {
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coloring-base,
    .coloring-piece,
    .coloring-full {
        transition: none;
    }

    .coloring-piece-bw.is-hovered-bw {
        transform: none;
    }
}

/* ========================================
   Home — responsive evidence board
   ======================================== */
.home-page .home-hero {
    min-height: clamp(320px, 44svh, 460px);
    border-bottom: 0;
    background: transparent;
}

.home-page .home-hero-content {
    min-height: clamp(320px, 44svh, 460px);
    padding: clamp(34px, 5vw, 68px) var(--page-padding) clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(28px, 4vh, 44px);
}

.home-page .home-hero h1 {
    width: 100%;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(54px, 8vw, 116px);
    font-weight: 400;
    line-height: .82;
    letter-spacing: -.06em;
    white-space: nowrap;
}

.home-page .home-archive-word {
    display: block;
    margin: 0 0 .32em .06em;
    font-family: var(--font-body);
    font-size: .18em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .18em;
}

.home-page .home-hero-meta {
    width: 100%;
    padding-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    border-top: 2px solid var(--color-black);
}

.evidence-board-section {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: clamp(12px, 1.5vw, 22px) var(--page-padding) clamp(12px, 1.4vw, 20px);
    background: transparent;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.evidence-board-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.evidence-board-header h2 {
    margin: 2px 0 0;
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(25px, 2.65vw, 42px);
    line-height: .92;
    text-transform: uppercase;
}

.evidence-board-header p {
    max-width: 450px;
    margin: 0;
    font-size: clamp(11px, .95vw, 14px);
    line-height: 1.45;
    text-align: right;
}

.board-instruction {
    min-height: 48px;
    padding: 10px clamp(14px, 1.6vw, 26px);
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    gap: clamp(16px, 2.4vw, 38px);
    color: #42c5b5;
    background: #111;
    border: 2px solid #111;
    border-bottom: 0;
    font-size: clamp(9px, .75vw, 12px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .02em;
}

.board-instruction strong {
    color: #fff;
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(10px, .9vw, 14px);
    text-transform: uppercase;
    white-space: nowrap;
}

.board-instruction b {
    color: inherit;
    font-weight: 800;
    text-transform: uppercase;
}

.project-filters {
    min-width: 0;
    padding: 9px clamp(12px, 1.4vw, 22px);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #111;
    border-bottom: 0;
    background: #fff;
}

.project-filters-label {
    flex: none;
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(8px, .7vw, 11px);
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-filter-list {
    min-width: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.project-filter-list::-webkit-scrollbar { display: none; }

.project-filter,
.project-filter-clear {
    flex: none;
    padding: 5px 9px;
    border: 1px solid #111;
    border-radius: 999px;
    color: #111;
    background: #fbf5f0;
    font: inherit;
    font-size: clamp(7px, .62vw, 10px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.project-filter:hover,
.project-filter:focus-visible,
.project-filter.is-selected {
    color: #071f1c;
    background: #60d9ca;
    border-color: #177f74;
    outline: none;
}

.project-filter:focus-visible,
.project-filter-clear:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.project-filter-clear {
    margin-left: auto;
    color: #fff;
    background: #111;
}

.project-filter-clear[hidden] { display: none; }

.evidence-board-shell {
    min-height: 0;
    display: grid;
    grid-template-rows: clamp(800px, 58vw, 1000px) auto;
    border: 2px solid #111;
    background: #fbf5f0;
    box-shadow: 3px 4px 0 rgba(16, 16, 16, .07);
}

.evidence-board-canvas {
    position: relative;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    background-color: #fbf5f0;
    background-image:
        linear-gradient(rgba(67, 197, 181, .038) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 197, 181, .038) 1px, transparent 1px);
    background-size: 28px 28px;
}

.board-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
    transition: z-index 0s linear .2s;
}

.evidence-board-canvas.has-active .board-connections {
    z-index: 8;
    transition-delay: 0s;
}

.board-line {
    fill: none;
    stroke: #827f7c;
    stroke-width: 1.15;
    stroke-dasharray: 4 5;
    vector-effect: non-scaling-stroke;
    opacity: .55;
    transition: stroke .2s ease, stroke-width .2s ease, opacity .2s ease;
}

.board-line.is-active {
    stroke: #42c5b5;
    stroke-width: 2.35;
    stroke-dasharray: none;
    opacity: 1;
}

.board-line.is-muted { opacity: .1; }
.board-line.is-filtered-out { opacity: .035; }
.board-pin {
    fill: #42c5b5;
    stroke: #111;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    opacity: 0;
    transition: opacity .16s ease;
}

.board-pin.is-active { opacity: 1; }
.board-pin.is-filtered-out { opacity: 0; }

.evidence-card {
    --card-scale: 1;
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    z-index: 2;
    width: calc(var(--w) * 1%);
    min-width: 105px;
    margin: 0;
    padding: clamp(5px, .58vw, 10px);
    border: 1.7px solid #171717;
    border-radius: 0;
    color: #111;
    background: #fff;
    box-shadow: 2px 3px 0 rgba(10, 10, 10, .1);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--card-scale));
    transform-origin: 50% 20%;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, opacity .2s ease;
    outline: none;
}

.evidence-card::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 5;
    width: clamp(10px, .86vw, 14px);
    aspect-ratio: 1;
    border: 1.5px solid #101010;
    border-radius: 50%;
    background: #42c5b5;
    box-shadow: 1px 2px 0 rgba(0, 0, 0, .16);
    transform: translate(-50%, -50%);
    transition: transform .2s ease, background .2s ease;
}

.evidence-card.is-active,
.evidence-card:hover,
.evidence-card:focus-visible {
    --card-scale: 1.3;
    z-index: 7;
    border-color: #42c5b5;
    transform: translate(-50%, calc(-50% - var(--active-lift, 0px))) rotate(var(--r)) scale(var(--card-scale));
    box-shadow: 3px 4px 0 rgba(66, 197, 181, .28);
}

.evidence-card.is-active::before,
.evidence-card:hover::before,
.evidence-card:focus-visible::before,
.evidence-card.is-connected::before {
    transform: translate(-50%, -50%) scale(1.16);
    background: #60d9ca;
}

.evidence-board-canvas.has-active .evidence-card.is-active::before,
.evidence-board-canvas.has-active .evidence-card.is-connected::before {
    opacity: 0;
}

.evidence-card.is-muted { opacity: .42; }
.evidence-card.is-connected { opacity: 1; }
.evidence-card.is-filtered-out {
    --card-scale: 1;
    z-index: 2;
    opacity: .22;
    pointer-events: none;
    cursor: default;
    transform: translate(-50%, -50%) rotate(var(--r)) scale(1);
    border-color: #171717;
    box-shadow: 2px 3px 0 rgba(10, 10, 10, .06);
}

.evidence-card.is-filtered-out .evidence-hover-copy {
    opacity: 0;
    transform: translate(-50%, -92%);
}

.evidence-card:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .evidence-board-canvas,
    .evidence-board-canvas * {
        cursor: url('assets/evidence-magnifier.svg') 9 9, pointer;
    }
}

.anchor-point {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 1px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.evidence-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--cover-ratio, 16 / 9);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .42);
    background: #e7e2de;
}

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

.evidence-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-empty {
    display: grid;
    place-items: center;
    color: var(--color-teal-active);
    background:
        repeating-linear-gradient(135deg, transparent 0 9px, rgba(66,197,181,.11) 9px 10px),
        #eee9e5;
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(15px, 1.55vw, 25px);
    line-height: .9;
    text-align: center;
}

.evidence-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: clamp(4px, .45vw, 7px);
}

.evidence-label strong {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(8px, .78vw, 12px);
    line-height: 1.05;
    text-transform: uppercase;
}

.evidence-label time {
    flex: none;
    font-size: clamp(6px, .58vw, 9px);
    line-height: 1.1;
    color: #77716d;
    text-align: right;
}

.evidence-card:is(
    [data-node="entangled"],
    [data-node="sea"],
    [data-node="magician"],
    [data-node="jamsesh"]
) .evidence-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2px;
}

.evidence-card:is(
    [data-node="entangled"],
    [data-node="sea"],
    [data-node="magician"],
    [data-node="jamsesh"]
) .evidence-label time {
    max-width: 100%;
    text-align: left;
    white-space: normal;
}

.evidence-hover-copy {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    z-index: -1;
    width: max-content;
    max-width: 175%;
    padding: 4px 7px;
    overflow: hidden;
    color: #fff;
    background: #111;
    font-size: clamp(6px, .52vw, 8px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -92%);
    transition: opacity .15s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}

.evidence-card.is-active .evidence-hover-copy,
.evidence-card:hover .evidence-hover-copy,
.evidence-card:focus-visible .evidence-hover-copy {
    opacity: 1;
    transform: translate(-50%, 4px);
}

.evidence-magician .evidence-thumb { aspect-ratio: 4 / 5; }
.evidence-magician .evidence-thumb img {
    object-fit: contain;
    background: #fff;
}

.evidence-caption {
    min-height: 50px;
    padding: 7px clamp(14px, 1.5vw, 24px);
    border-top: 2px solid #111;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    background: #fff;
}

.evidence-caption-index {
    color: #87817c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
}

.evidence-caption p {
    margin: 0;
    font-size: clamp(10px, .9vw, 13px);
    line-height: 1.35;
    transition: color .2s ease;
}

.evidence-caption.is-active p { color: #177f74; }

@media (min-width: 781px) {
    .evidence-card[data-node="pollen"],
    .evidence-card[data-node="rick"] {
        --active-lift: clamp(48px, 6svh, 72px);
    }

    .evidence-card[data-node="pollen"]:is(.is-active, :hover, :focus-visible)::after,
    .evidence-card[data-node="rick"]:is(.is-active, :hover, :focus-visible)::after {
        content: '';
        position: absolute;
        top: 100%;
        left: -20%;
        z-index: 0;
        width: 140%;
        height: calc(var(--active-lift) + 18px);
        background: transparent;
    }

    .evidence-board-section {
        width: min(calc(100% - 32px), calc(150svh - 156px), 1440px);
        height: auto;
        min-height: 620px;
        aspect-ratio: 3 / 2;
        margin: 16px auto;
        padding: 0;
    }

    .evidence-board-shell {
        grid-template-rows: minmax(0, 1fr) auto;
    }
}

@media (min-width: 781px) and (max-width: 900px) {
    .evidence-label {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 2px;
    }

    .evidence-label strong {
        font-size: 7.5px;
    }

    .evidence-label time {
        max-width: 100%;
        font-size: 5.5px;
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 780px) {
    .evidence-board-section { padding-left: 24px; padding-right: 24px; }
    .evidence-card {
        left: calc(var(--mx) * 1%);
        top: calc(var(--my) * 1%);
        width: calc(var(--mw) * 1%);
        min-width: 74px;
    }
    .evidence-card.is-active,
    .evidence-card:hover,
    .evidence-card:focus-visible { --card-scale: 1.22; }
    .evidence-label {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
    .evidence-label time {
        max-width: 100%;
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 700px) {
    .home-page .home-hero,
    .home-page .home-hero-content { min-height: 340px; }
    .home-page .home-hero-content {
        padding: 38px 24px 30px;
        gap: 34px;
    }
    .home-page .home-hero h1 { font-size: clamp(46px, 16vw, 72px); }
    .home-page .home-hero-meta {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .evidence-board-section {
        padding: 14px 12px;
    }
    .board-instruction {
        padding: 10px 12px;
        grid-template-columns: 1fr;
        gap: 5px;
        font-size: 8px;
    }
    .board-instruction strong { margin-bottom: 3px; font-size: 10px; }
    .project-filters {
        padding: 9px 10px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 7px 10px;
    }
    .project-filters-label { font-size: 9px; }
    .project-filter-list {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .project-filter,
    .project-filter-clear {
        padding: 6px 9px;
        font-size: 8px;
    }
    .project-filter-clear {
        grid-column: 2;
        grid-row: 1;
    }
    .evidence-board-shell { grid-template-rows: clamp(610px, 150vw, 760px) auto; }
    .evidence-board-header { align-items: start; gap: 12px; }
    .evidence-board-header p { max-width: 48%; font-size: 9px; }
    .evidence-board-shell { box-shadow: 4px 5px 0 rgba(16,16,16,.08); }
    .evidence-card { padding: 4px; box-shadow: 3px 4px 0 rgba(10,10,10,.1); }
    .evidence-label { gap: 3px; margin-top: 3px; }
    .evidence-label strong { font-size: clamp(6px, 1.7vw, 9px); }
    .evidence-label time { font-size: clamp(5px, 1.28vw, 7px); }
    .evidence-hover-copy {
        top: calc(100% - 1px);
        left: 50%;
        padding: 3px 5px;
        font-size: clamp(5px, 1.25vw, 7px);
    }
    .evidence-caption {
        min-height: 62px;
        padding: 8px 10px;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 3px;
    }
    .evidence-caption-index { font-size: 7px; }
    .evidence-caption p { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .evidence-card,
    .board-line,
    .evidence-hover-copy { transition: none; }
}

/* ========================================
   Home — minimal project index and view switch
   ======================================== */
.home-view[hidden] { display: none !important; }
.home-page[data-home-view="basic"] { background-image: none; }

.home-page .home-hero,
.home-page .home-hero-content { min-height: clamp(270px, 29svh, 340px); }

.home-page .home-hero-content {
    padding: clamp(34px, 4vw, 56px) var(--page-padding) clamp(28px, 3vw, 42px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: clamp(34px, 5vw, 76px);
}

.home-page .home-hero h1 {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin-bottom: 0;
    align-self: center;
    font-size: clamp(62px, 7.6vw, 112px);
}

.home-hero-intro {
    grid-column: 2;
    grid-row: 1;
    max-width: 560px;
}

.home-page .home-hero-meta {
    width: auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
    border: 0;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .1em;
}

.home-hero-intro p {
    margin-top: 16px;
    font-size: clamp(14px, 1.08vw, 17px);
    font-weight: 500;
    line-height: 1.5;
}

.home-projects-anchor { height: 0; scroll-margin-top: var(--nav-height); }

.home-view-toolbar {
    position: sticky;
    z-index: 950;
    top: var(--nav-height);
    width: min(calc(100% - 2 * var(--page-padding)), 1440px);
    height: 46px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.home-view-switch {
    display: inline-flex;
    pointer-events: auto;
    border: 1.5px solid var(--color-black);
    background: var(--color-teal);
    box-shadow: 2px 2px 0 var(--color-black);
}

.home-view-switch button {
    min-width: 62px;
    padding: 6px 10px;
    border: 0;
    border-right: 1.5px solid var(--color-black);
    color: var(--color-black);
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}
.home-view-switch button:last-child { border-right: 0; }
.home-view-switch button:hover { background: rgba(255, 255, 255, .25); }
.home-view-switch button[aria-pressed="true"],
.home-view-switch button[aria-pressed="true"]:hover { color: #fff; background: var(--color-black); }
.home-view-switch button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--color-black); outline-offset: 2px; }

.basic-projects {
    width: min(calc(100% - 2 * var(--page-padding)), 1440px);
    margin: 0 auto clamp(48px, 6vw, 88px);
}

.basic-projects-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 4vw, 72px);
}

.basic-projects-column { min-width: 0; }
.basic-projects-lab { margin-top: clamp(48px, 6vw, 88px); }
.basic-lab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 4vw, 72px);
}
.basic-column-title {
    margin: 0 0 clamp(20px, 2.4vw, 32px);
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.basic-card-list { display: grid; align-content: start; gap: clamp(20px, 2.4vw, 34px); }
.basic-project-card { min-width: 0; }
.basic-card-surface {
    min-height: clamp(218px, 16vw, 248px);
    display: grid;
    grid-template-columns: 48% minmax(0, 1fr);
    align-items: stretch;
    border: 2px solid var(--color-black);
    color: var(--color-black);
    background: #3dc0ab;
    box-shadow: 3px 4px 0 rgba(10, 10, 10, .15);
    transition: transform .18s ease, box-shadow .18s ease;
}
.basic-card-media {
    --media-inset: clamp(6px, .6vw, 10px);
    min-width: 0;
    min-height: 0;
    padding: var(--media-inset);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fbf5f0;
}
.basic-card-media img {
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-black);
    background: #3dc0ab;
    object-fit: contain;
}
.basic-card-media--dark img { background: #111; }
.basic-card-media--trace { position: relative; }
.basic-card-rotated-frame {
    position: absolute;
    inset: var(--media-inset);
    overflow: hidden;
    border: 1px solid var(--color-black);
    background: #3dc0ab;
    container-type: size;
}
.basic-card-rotated-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75%;
    width: min(75cqw, 100cqh);
    height: auto;
    max-width: none;
    border: 0;
    object-fit: contain;
    transform: translate(-50%, -50%) rotate(-90deg);
}
.basic-card-media--placeholder {
    color: var(--color-teal-active);
    font-family: var(--font-display);
    font-size: clamp(42px, 4vw, 68px);
}
.basic-card-media--placeholder > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-black);
    background: repeating-linear-gradient(135deg, #eee9e5 0 11px, #dcefeb 11px 12px);
}
.basic-card-content {
    min-width: 0;
    padding: clamp(14px, 1.4vw, 22px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fbf5f0;
}
.basic-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 10px;
    color: #514c48;
    font-size: clamp(9px, .65vw, 10px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.basic-card-meta time { white-space: nowrap; }
.basic-card-content h3 {
    margin-top: clamp(10px, 1.2vw, 18px);
    font-family: var(--font-display);
    font-size: clamp(19px, 1.65vw, 28px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -.05em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.basic-card-summary { margin-top: 8px; font-size: clamp(11px, .8vw, 13px); line-height: 1.45; }
.basic-card-preview-label {
    display: block;
    margin-top: 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
a.basic-card-surface:hover,
a.basic-card-surface:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 5px 6px 0 var(--color-black);
}
a.basic-card-surface:focus-visible { outline: 3px solid var(--color-black); outline-offset: 4px; }

@media (max-width: 1100px) {
    .home-page .home-hero,
    .home-page .home-hero-content { min-height: 0; }
    .home-page .home-hero-content { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 26px; }
    .home-page .home-hero h1 { grid-column: 1; grid-row: 1; }
    .home-hero-intro { grid-column: 1; grid-row: 2; }
    .home-hero-intro { max-width: 760px; }
}

@media (max-width: 900px) {
    .basic-projects-columns { grid-template-columns: 1fr; gap: 54px; }
    .basic-lab-grid { grid-template-columns: 1fr; gap: clamp(20px, 2.4vw, 34px); }
    .basic-column-title { margin-bottom: 20px; }
    .basic-card-content h3 { font-size: clamp(22px, 4vw, 32px); }
}

@media (max-width: 560px) {
    .home-page .home-hero-content { padding: 32px 24px 25px; gap: 22px; }
    .home-page .home-hero h1 { font-size: clamp(46px, 14vw, 74px); }
    .home-page .home-hero-meta { font-size: 9px; gap: 4px 12px; }
    .home-hero-intro p { margin-top: 12px; font-size: 13px; line-height: 1.45; }
    .home-view-toolbar { width: calc(100% - 48px); height: 42px; }
    .home-view-switch button { min-width: 55px; padding: 5px 8px; font-size: 9px; }
    .basic-projects { width: calc(100% - 48px); }
    .basic-column-title { font-size: clamp(28px, 9vw, 39px); }
    .basic-card-list { gap: 18px; }
    .basic-lab-grid { gap: 18px; }
    .basic-card-surface { min-height: 190px; grid-template-columns: 44% minmax(0, 1fr); }
    .basic-card-content { padding: 10px 11px; }
    .basic-card-meta { display: grid; justify-content: start; font-size: 9px; gap: 2px; }
    .basic-card-content h3 { margin-top: 9px; font-size: clamp(17px, 5vw, 22px); }
    .basic-card-summary { margin-top: 6px; font-size: 11px; line-height: 1.35; }
    .basic-card-preview-label { margin-top: 5px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .basic-card-surface { transition: none; }
}
