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

::selection {
    background: #00cc55;
    color: #fff;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    background: #fff;
    color: #000;
    padding: 24px 20px;
    line-height: 1.5;
}

/* Header */
header {
    margin-bottom: 16px;
}

header h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px;
    font-weight: bold;
    color: #000;
}

/* Links */
a {
    color: #0000cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
}

th {
    text-align: left;
    font-weight: bold;
    padding: 2px 20px 2px 0;
    white-space: nowrap;
    color: #000;
}

th a {
    text-decoration: underline;
    color: #0000cc;
    font-weight: bold;
}

td {
    padding: 2px 20px 2px 0;
    white-space: nowrap;
    vertical-align: middle;
}

tr.divider td {
    padding: 0;
    height: 1px;
    background: #aaa;
}

tr.divider:hover td {
    background: #aaa;
}

@media (hover: hover) {
    tr:hover td {
        background: #efefef;
    }
}

.col-icon {
    width: 28px;
    padding-right: 4px;
    line-height: 0;
}

.col-name {
    min-width: 180px;
}

.col-date {
    min-width: 160px;
}

.col-size {
    min-width: 40px;
    text-align: left;
}

.col-desc {
    width: 100%;
}

/* Footer */
footer {
    margin-top: 12px;
    font-size: 13px;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
}

/* About page */
.about {
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', sans-serif;
    color: #FF0090;
    width: 100%;
    display: flow-root;
    margin-top: 20px;
}

.about-photo-wrap {
    float: right;
    width: clamp(200px, 42%, 480px);
    margin: 0 0 16px 28px;
    position: relative;
}

.about-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, #ff0090, transparent);
    background-size: 300% 100%;
    background-position: 0% 0%;
    mix-blend-mode: color;
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.6s ease;
    animation: about-overlay-sweep 8s ease-in-out infinite alternate;
}

@keyframes about-overlay-sweep {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 0%; }
}

.about-photo {
    display: block;
    width: 100%;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}
.about-photo-wrap:hover .about-photo,
.about-photo-wrap.revealed .about-photo {
    filter: grayscale(0%);
    transform: scale(1.015);
}
.about-photo-wrap:hover::after,
.about-photo-wrap.revealed::after {
    opacity: 0;
}

.about-name {
    font-size: clamp(28px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.about-name-line1 {
    display: block;
}

.about-name-line2 {
    display: block;
    padding-left: 1em;
}

.about-bio {
    font-size: clamp(13px, 1.4vw, 17px);
    font-weight: 700;
    line-height: 1.35;
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    margin-bottom: 28px;
}

.about-bio #about-seconds {
    font-family: monospace;
    font-weight: 400;
}

.about-clear {
    clear: both;
}

.about-section {
    margin-bottom: 20px;
}

.about-section-title {
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 4px;
}

.about-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', sans-serif;
    color: #FF0090;
    font-size: clamp(12px, 1.2vw, 15px);
}

.about-table td {
    padding: 2px 16px 2px 0;
    vertical-align: middle;
    white-space: nowrap;
}

.about-col-name {
    font-weight: 700;
    min-width: 180px;
}

.about-date-sub {
    display: none;
    font-weight: 400;
    font-style: italic;
    font-size: 0.9em;
    color: #767676;
}

.about-col-name a {
    color: #FF0090;
    text-decoration: underline;
}

.about-col-date {
    min-width: 150px;
}

.about-col-desc {
    font-weight: 400;
    width: 100%;
}

/* Subscribe form */
.subscribe-area {
    margin-top: 20px;
    max-width: 480px;
    line-height: 1.7;
}

.subscribe-area p {
    margin-bottom: 12px;
}

.subscribe-status {
    font-style: italic;
}

.subscribe-date {
    font-style: normal;
    color: #767676;
}

.subscriber-count {
    font-size: 12px;
    color: #767676;
    margin-top: 2px;
    margin-bottom: 12px;
}

.subscribe-error {
    color: #900;
}

.subscribe-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.subscribe-row {
    display: flex;
    gap: 8px;
}

.subscribe-form input[type="email"] {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    border: 1px solid #aaa;
    padding: 3px 6px;
    flex: 1;
    min-width: 0;
    background: #fff;
    color: #000;
}

.subscribe-form input[type="email"]:focus {
    outline: 1px solid #000;
}

.subscribe-form button[type="submit"] {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    border: 1px solid #aaa;
    padding: 3px 12px;
    background: #fff;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
}

.subscribe-form button[type="submit"]:hover {
    background: #efefef;
}

/* House prompt buttons */
.retro-btn {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    border: 1px solid #aaa;
    padding: 3px 12px;
    background: #fff;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
}

.retro-btn:hover {
    background: #efefef;
}

/* Image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.image-grid a {
    display: block;
    position: relative;
}

.image-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* Row preview panel */
#project-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: calc(100vw - 32px);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    will-change: transform;
}

#project-preview.visible {
    opacity: 1;
}

#project-preview-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
}

/* Homepage "now:" status line */
.now-line {
    margin: 0 0 14px;
    font-size: 14px;
    color: #767676;
}
.now-line .now-date {
    font-size: 12px;
}

/* Homepage README note (mod_autoindex style) */
.readme {
    margin: 22px 0 8px;
    max-width: 70ch;
    font-size: 14px;
    line-height: 1.6;
}
.readme-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.04em;
}
.readme p { margin: 0 0 10px; }
.readme a { text-decoration: underline; }
.readme code { font-family: 'Courier New', Courier, monospace; font-size: 13px; }
.readme-sig { color: #767676; font-size: 12px; margin-top: 4px; }

/* README as an expanding folder row (mirrors the project "tree" toggle) */
.readme-toggle { cursor: pointer; }
.readme-toggle.open { color: #FF0090; }
.readme-tree-cell { padding-top: 2px; padding-bottom: 12px; vertical-align: top; white-space: normal; overflow-wrap: break-word; }
.readme-tree-cell .readme { margin: 2px 0 0; }

/* Collapsible loose-file list (opt-in via meta collapse_files_mobile) — all widths */
.files-toggle-row { display: table-row; }
.files-toggle { cursor: pointer; }
.files-caret { font-size: 10px; color: #767676; margin-left: 2px; }
.proj-file-row { display: none; }
table.files-open .proj-file-row { display: table-row; }

/* Keyboard navigation (j/k or arrows + Enter) — highlighted row */
tr.kbd-active td { background: #dce6ff; }
tr.kbd-active td.col-icon { box-shadow: inset 3px 0 0 #0000cc; }

/* Clickable path breadcrumb — keep the heading look, underline on hover */
header h1 a { color: inherit; text-decoration: none; }
header h1 a:hover { text-decoration: underline; }

/* ── Accessibility: respect reduced-motion + visible keyboard focus ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    #page-grain, #page-texture, .footer-blink { animation: none !important; }
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #FF0090;
    outline-offset: 2px;
}

/* ── CRT / phosphor terminal themes (toggle in the shell: `theme <name>`) ── */
html.crt {
    --crt-bg: #050805; --crt-fg: #33ff5a; --crt-link: #8aff8a;
    --crt-glow: rgba(51,255,90,0.45); --crt-bd: rgba(51,255,90,0.25);
    --crt-img: grayscale(1) brightness(0.85) sepia(1) hue-rotate(70deg) saturate(4);
}
html.crt.t-amber   { --crt-bg:#0a0600; --crt-fg:#ffb000; --crt-link:#ffd877; --crt-glow:rgba(255,176,0,.4);  --crt-bd:rgba(255,176,0,.25);  --crt-img:grayscale(1) brightness(.9) sepia(1) hue-rotate(5deg) saturate(4); }
html.crt.t-blue    { --crt-bg:#03060c; --crt-fg:#49d0ff; --crt-link:#9fe6ff; --crt-glow:rgba(73,208,255,.4); --crt-bd:rgba(73,208,255,.25); --crt-img:grayscale(1) brightness(.85) sepia(1) hue-rotate(165deg) saturate(4); }
html.crt.t-vapor   { --crt-bg:#0b0614; --crt-fg:#ff5fd2; --crt-link:#7fd9ff; --crt-glow:rgba(255,95,210,.4); --crt-bd:rgba(255,95,210,.25); --crt-img:grayscale(1) brightness(.9) sepia(1) hue-rotate(265deg) saturate(5); }
html.crt.t-gameboy { --crt-bg:#0f1f08; --crt-fg:#9bbc0f; --crt-link:#cfe07a; --crt-glow:rgba(155,188,15,.35); --crt-bd:rgba(155,188,15,.25); --crt-img:grayscale(1) brightness(.85) sepia(1) hue-rotate(50deg) saturate(3) contrast(1.1); }
html.crt.t-noir    { --crt-bg:#000000; --crt-fg:#e8e8e8; --crt-link:#ffffff; --crt-glow:rgba(255,255,255,.22); --crt-bd:rgba(255,255,255,.2); --crt-img:grayscale(1) contrast(1.15); }

html.crt body { background: var(--crt-bg) !important; font-family: 'Courier New', Courier, monospace !important; }
html.crt * { color: var(--crt-fg) !important; text-shadow: 0 0 3px var(--crt-glow); border-color: var(--crt-bd) !important; }
html.crt a, html.crt a * { color: var(--crt-link) !important; }
html.crt img { filter: var(--crt-img) !important; }
html.crt body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9997;
    background: repeating-linear-gradient(rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.22) 3px 4px);
}

/* Sortable column arrow */
.sort-arrow { font-size: 10px; color: #767676; margin-left: 3px; }

/* ── Easter eggs ─────────────────────────────────────────── */
/* Konami code: reveal colour */
body.konami img { filter: none !important; }

/* Toast notice */
.egg-toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 8px 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
    z-index: 2100;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.egg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Fake terminal */
#egg-terminal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(46vh, 360px);
    display: none;
    flex-direction: column;
    background: #0b0b0b;
    color: #cfcfcf;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.5;
    z-index: 2000;
    border-top: 1px solid #333;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}
#egg-terminal.open { display: flex; }
.egg-term-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    background: #1a1a1a;
    color: #888;
    font-size: 11px;
    border-bottom: 1px solid #2a2a2a;
}
.egg-term-bar button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}
.egg-term-bar button:hover { color: #fff; }
.egg-term-out {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
    white-space: pre-wrap;
    word-break: break-word;
}
.egg-term-out div { margin-bottom: 2px; }
.egg-term-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 12px 10px;
    border-top: 1px solid #1a1a1a;
}
.egg-term-prompt { color: #7CFC7C; white-space: nowrap; }
.egg-term-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    padding: 0;
}
/* iOS auto-zooms when focusing an input under 16px — bump the shell line on phones */
@media (max-width: 600px) {
    .egg-term-line { font-size: 16px; }
}

/* Look layouts */
.look-display { margin-top: 24px; }

.look-acc-item { border-bottom: 1px solid #eee; }
.look-acc-header { padding: 5px 0; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; user-select: none; }
.look-acc-header:hover { color: var(--look-color, #FF0090); }
.look-acc-arrow { font-size: 9px; }
.look-acc-body { padding: 8px 0 16px; }

.look-sel-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.look-sel-btn { font-family: 'Times New Roman', Times, serif; font-size: 14px; border: 1px solid #aaa; padding: 3px 12px; background: #fff; color: #000; cursor: pointer; }
.look-sel-btn.active { background: #000; color: #fff; border-color: #000; }
.look-sel-btn:hover:not(.active) { background: #efefef; }

.look-section { margin-bottom: 28px; }
.look-section-label { font-size: 12px; font-style: italic; color: #767676; margin-bottom: 6px; }

.look-cover-link { position: relative; display: block; }
.look-cover-label { position: absolute; bottom: 6px; left: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,0.55); padding: 2px 6px; font-family: 'Times New Roman', Times, serif; pointer-events: none; }
#look-lb { position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.lb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.96); }
.lb-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.lb-img { max-width: 80vw; max-height: 88vh; max-height: 88dvh; width: auto; height: auto; display: block; }
.lb-close { position: fixed; top: 8px; right: 12px; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; padding: 8px; min-width: 44px; min-height: 44px; }
.lb-prev, .lb-next { background: none; border: none; color: #fff; font-size: 40px; cursor: pointer; padding: 8px 12px; line-height: 1; min-width: 44px; min-height: 44px; }
.lb-prev:hover, .lb-next:hover { color: var(--look-color, #FF0090); }
.lb-look-name { position: fixed; top: 20px; left: 24px; font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', sans-serif; font-size: clamp(18px, 2.5vw, 32px); font-weight: 700; color: #fff; letter-spacing: 0.04em; pointer-events: none; z-index: 2; }
.lb-counter { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); color: #555; font-size: 12px; font-family: 'Times New Roman', Times, serif; white-space: nowrap; }

@media (max-width: 600px) {
    .lb-inner { gap: 0; justify-content: center; width: 100%; }
    .lb-img { max-width: 100vw; max-height: 82vh; max-height: 82dvh; }
    .lb-prev { position: fixed; left: 0; top: 50%; transform: translateY(-50%); }
    .lb-next { position: fixed; right: 0; top: 50%; transform: translateY(-50%); }
    .lb-look-name { font-size: 16px; top: 14px; left: 14px; }
}

.look-display .image-grid img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.image-grid-fit img {
    aspect-ratio: var(--image-aspect, 2/3);
    object-fit: cover;
}

.look-split { display: flex; gap: 28px; align-items: flex-start; }
.look-split-nav { display: flex; flex-direction: column; gap: 4px; min-width: 52px; flex-shrink: 0; padding-top: 2px; }
.look-split-btn { font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', sans-serif; font-size: 17px; font-weight: 700; border: none; border-left: 2px solid #eee; padding: 4px 0 4px 12px; background: none; color: #ccc; cursor: pointer; text-align: left; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.look-split-btn.active { color: var(--look-color, #FF0090); border-left-color: var(--look-color, #FF0090); }
.look-split-btn:hover:not(.active) { color: #000; border-left-color: #000; }
.look-split-content { flex: 1; min-width: 0; }
.look-panel { transition: opacity 0.18s ease; }

.inspo-label {
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    font-style: italic;
    color: #767676;
    margin-bottom: 8px;
}

/* Conveyor belt image layout */
.conveyor {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 20px;
    cursor: grab;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

.conveyor::-webkit-scrollbar { display: none; }

.conveyor-item {
    flex-shrink: 0;
    display: block;
    height: 62vh;
    -webkit-user-drag: none;
}

.conveyor-item img {
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;
}

/* Full-bleed image layout */
.image-bleed {
    margin-left: -20px;
    margin-right: -20px;
}

/* Masonry image layout */
.image-masonry {
    column-gap: 4px;
    margin-top: 20px;
}

.image-masonry a {
    display: block;
    break-inside: avoid;
    margin-bottom: 4px;
    position: relative;
}

.image-masonry a::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.image-masonry img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .image-masonry { column-count: 2 !important; }
}

/* Islands layout — one cluster per discipline folder */
.image-islands {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.image-island {}

.image-island-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #767676;
    margin: 0 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd;
}

.image-island-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.image-island-grid a {
    display: block;
    position: relative;
    overflow: hidden;
}

.image-island-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.15s ease;
}

.image-island-grid a:hover::after {
    background: rgba(0,0,0,0.05);
}

.image-island-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.image-island-grid a:only-child {
    grid-column: 1 / -1;
}

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

.image-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.image-centered a {
    display: block;
    max-width: 520px;
    width: 100%;
    position: relative;
}

.image-centered a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.15s ease;
}

.image-centered a:hover::after {
    background: rgba(0,0,0,0.04);
}

.image-centered img {
    width: 100%;
    height: auto;
    display: block;
}

/* Inspiration masonry grid */
.inspo-grid {
    column-count: 6;
    column-gap: 4px;
}

.inspo-grid a {
    display: block;
    break-inside: avoid;
    margin-bottom: 4px;
    position: relative;
}

.inspo-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.inspo-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.inspo-full {
    column-span: all;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .inspo-grid { column-count: 3; }
}

/* Featured image/gif above pullquote */
.project-featured {
    margin-top: 20px;
    max-width: 300px;
}

.project-featured a {
    display: block;
}

/* Project hero + spec rail (uses the empty space beside the hero) */
.project-top { display: flex; align-items: flex-start; gap: 36px; flex-wrap: wrap; margin: 16px 0 6px; }
.project-top .project-hero { margin: 0; flex: 0 1 760px; }
.project-spec { flex: 1 1 180px; min-width: 160px; margin: 4px 0 0; font-family: 'Times New Roman', Times, serif; font-size: 13px; }
.project-spec-row { display: flex; gap: 12px; padding: 4px 0; border-bottom: 1px dotted #ddd; }
.project-spec-row dt { color: var(--page-color, #000); min-width: 58px; font-weight: 700; }
.project-spec-row dd { margin: 0; color: #333; }

/* Project hero image (featured/preview) — leads the page above the listing */
.project-hero { margin: 16px 0 6px; max-width: min(100%, 760px); }
.project-hero a { display: block; }
.project-hero img { width: 100%; height: auto; display: block; outline: 1px solid var(--page-color, #000); }
.project-hero-cap { font-size: 12px; color: #767676; margin: 6px 0 0; font-family: 'Times New Roman', Times, serif; }

/* Tree layout for look sections */
.tree-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
    border-left: 2px solid #eee;
    margin-left: 28px;
    width: calc(100% - 28px);
}

.tree-table td {
    padding: 2px 20px 2px 0;
    white-space: nowrap;
    vertical-align: middle;
}

.tree-table tr:hover td {
    background: #f7f7f7;
}

.tree-images-row:hover td {
    background: none !important;
}

.tree-images-row .image-grid {
    margin-top: 8px;
    margin-bottom: 12px;
}

.flat-looks-inline { margin-top: 32px; }
.flat-looks-inline-section { margin-bottom: 40px; }
.flat-looks-inline-label {
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #767676;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}
.flat-looks-inline .image-grid {
    gap: 4px;
}

.project-recent-poster {
    margin-top: 20px;
    max-width: 440px;
}

.project-recent-poster a {
    display: block;
}

.project-recent-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.recent-poster-label {
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    font-style: italic;
    color: #767676;
    margin-bottom: 6px;
}

.project-featured img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project page */
.project-pullquote {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(22px, 4vw, 42px);
    font-style: italic;
    font-weight: 400;
    color: #FF0090;
    line-height: 1.2;
    max-width: 640px;
    margin: 28px 0 8px 0;
    border: none;
    padding: 0;
}

.project-body {
    margin-top: 16px;
    max-width: 640px;
    line-height: 1.6;
}

.project-role-block {
    margin-top: 16px;
    max-width: 640px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 32px;
}

.project-role-row {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #767676;
    margin-bottom: 3px;
}

.project-role-row dt {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.project-role-row dd {
    margin: 0;
    color: inherit;
}

.image-credit {
    font-size: 11px;
    color: #767676;
    margin-top: 6px;
    letter-spacing: 0.04em;
}

.font-preview {
    margin-top: 20px;
    max-width: 640px;
}

.font-preview-block {
    margin-bottom: 24px;
}

.font-preview-label {
    display: block;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    font-style: italic;
    color: #767676;
    margin-bottom: 4px;
}

.font-preview-block p {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

.word-s {
    display: inline;
    transition: filter 0.15s ease;
}

/* Video */
.project-video-wrap {
    margin-top: 20px;
}

.project-video {
    width: 100%;
    height: auto;
    display: block;
}

/* PDF embed */
.pdf-embed-wrap {
    margin-top: 20px;
    width: 100%;
}

.pdf-embed {
    width: 100%;
    height: 95vh;
    min-height: 600px;
    border: none;
}

.pdf-mobile-fallback {
    display: none;
}

@media (hover: none) {
    .pdf-embed { display: none; }
    .pdf-mobile-fallback {
        display: block;
        padding: 16px 0;
        font-size: 14px;
    }
    .pdf-mobile-fallback a {
        color: inherit;
        text-decoration: underline;
    }
}

/* Cap multi-column image grids at 2 on mobile */
@media (max-width: 600px) {
    .image-grid[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .image-masonry {
        column-count: 2 !important;
    }
}

/* Footer blink */
.footer-blink {
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Responsive */
@media (max-width: 600px) {
    table { font-size: 12px; table-layout: fixed; }
    #project-preview { width: 195px; }   /* ~35% smaller than the 300px desktop preview */
    /* Taller rows give the primary navigation usable tap targets */
    th, td { padding: 11px 10px 11px 0; }

    .col-size, thead th.col-size { display: none; }
    .col-date, thead th.col-date { display: none; }
    /* Keep one line + ellipsis, but shrink the type so more of the name fits */
    .col-name { max-width: 0; width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
    .col-desc { max-width: 0; width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
    .footer-detail { display: none; }
    header { margin-bottom: 8px; }

    /* About CV lists: stack each entry as blocks so the icon can't overlap text */
    .about-table, .about-table tbody, .about-table tr, .about-table td { display: block; width: auto; }
    .about-table tr { margin-bottom: 14px; }
    .about-table .col-icon { display: none; }
    .about-table td { white-space: normal; padding: 0; }
    .about-col-name { min-width: 0; }
    .about-col-date { display: none; }
    .about-date-sub { display: block; margin-top: 1px; }
    .about-col-desc { margin-top: 2px; }
}

/* =====================
   Print stylesheet
   ===================== */
@media print {
    /* Strip all colour, grain, animation */
    * {
        background: white !important;
        color: black !important;
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        outline: none !important;
    }

    /* Hide decorative / interactive elements */
    #page-grain,
    .project-recent-poster,
    .flat-looks-inline,
    .look-display,
    .image-grid,
    .image-masonry,
    .image-islands,
    .image-centered,
    .project-featured,
    .subscribe-area,
    .font-preview,
    footer .footer-detail { display: none !important; }

    /* Keep the header and table, make them crisp */
    body {
        font-family: 'Courier New', Courier, monospace !important;
        font-size: 11pt;
        margin: 2cm;
    }

    header h1 {
        font-size: 14pt;
        font-weight: bold;
        margin-bottom: 12pt;
        border-bottom: 1pt solid black;
        padding-bottom: 6pt;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
        font-family: 'Courier New', Courier, monospace !important;
    }

    th, td {
        padding: 3pt 12pt 3pt 0;
        border-bottom: 0.5pt solid #ccc;
        white-space: nowrap;
    }

    tr.divider td {
        border-bottom: 1pt solid black;
        height: 0;
        padding: 0;
    }

    /* Show URLs next to links */
    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 8pt;
        color: #555 !important;
    }

    /* But not for icon/nav links */
    .col-icon a::after,
    header a::after,
    th a::after { content: none; }

    /* Body text prints in full */
    .project-body,
    .project-pullquote,
    .project-role-block,
    .about { display: block !important; }

    .project-pullquote {
        font-style: italic;
        font-size: 13pt;
        border-left: 2pt solid black;
        padding-left: 12pt;
        margin: 12pt 0;
    }

    /* Footer minimal */
    footer {
        margin-top: 24pt;
        font-size: 8pt;
        border-top: 0.5pt solid black;
        padding-top: 6pt;
    }

    /* Page breaks */
    .project-body { page-break-inside: avoid; }
    header { page-break-after: avoid; }
}
