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

body {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 122%;
    background: #ffffff;
    background-image:
        linear-gradient(rgba(9, 13, 206, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 13, 206, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    color: #111111;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

/* Main Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Fixed Left Sidebar — 40% bio */
.sidebar {
    width: 40%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(9, 13, 206, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 13, 206, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    border-right: 1px solid rgba(9, 13, 206, 0.08);
}

/* Sidebar background (blueprint removed) */
.sidebar::before {
    display: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 800'%3E%3Cdefs%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='600' height='800' fill='url(%23grid)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3C!-- Main split: 40/60 --%3E%3Crect x='20' y='20' width='560' height='760' /%3E%3Cline x1='240' y1='20' x2='240' y2='780' stroke-width='2'/%3E%3C!-- LEFT SIDE: Sidebar 40%25 --%3E%3Ctext x='30' y='45' font-size='10' font-family='monospace' fill='%23ffffff'%3ESIDEBAR 40%25%3C/text%3E%3C!-- Name area --%3E%3Crect x='35' y='60' width='190' height='70' stroke-dasharray='4'/%3E%3Ctext x='45' y='85' font-size='8' font-family='monospace' fill='%23ffffff'%3ENAME%3C/text%3E%3Cline x1='45' y1='95' x2='140' y2='95' stroke-width='2'/%3E%3Cline x1='45' y1='110' x2='160' y2='110' stroke-width='2'/%3E%3C!-- Bio area --%3E%3Crect x='35' y='150' width='190' height='200' stroke-dasharray='4'/%3E%3Ctext x='45' y='175' font-size='8' font-family='monospace' fill='%23ffffff'%3EBIO%3C/text%3E%3Cline x1='45' y1='190' x2='200' y2='190' stroke-dasharray='2'/%3E%3Cline x1='45' y1='210' x2='210' y2='210' stroke-dasharray='2'/%3E%3Cline x1='45' y1='230' x2='180' y2='230' stroke-dasharray='2'/%3E%3Cline x1='45' y1='250' x2='195' y2='250' stroke-dasharray='2'/%3E%3Cline x1='45' y1='270' x2='150' y2='270' stroke-dasharray='2'/%3E%3C!-- Links --%3E%3Crect x='35' y='370' width='90' height='30' stroke-dasharray='4'/%3E%3Ctext x='45' y='390' font-size='7' font-family='monospace' fill='%23ffffff'%3EMORE%3C/text%3E%3Crect x='35' y='410' width='90' height='30' stroke-dasharray='4'/%3E%3Ctext x='45' y='430' font-size='7' font-family='monospace' fill='%23ffffff'%3ECURIOSITIES%3C/text%3E%3C!-- Footer: Social + Points --%3E%3Crect x='35' y='700' width='190' height='60' stroke-dasharray='4'/%3E%3Ctext x='45' y='720' font-size='8' font-family='monospace' fill='%23ffffff'%3EFOOTER%3C/text%3E%3Crect x='45' y='735' width='40' height='15'/%3E%3Crect x='95' y='735' width='40' height='15'/%3E%3Crect x='145' y='735' width='30' height='15'/%3E%3Ccircle cx='200' cy='742' r='8'/%3E%3Ctext x='195' y='745' font-size='6' font-family='monospace' fill='%23ffffff'%3EPT%3C/text%3E%3C!-- RIGHT SIDE: Content 60%25 --%3E%3Ctext x='255' y='45' font-size='10' font-family='monospace' fill='%23ffffff'%3ECONTENT 60%25%3C/text%3E%3C!-- Search bar --%3E%3Crect x='255' y='60' width='310' height='35' rx='3'/%3E%3Ccircle cx='275' cy='77' r='8' stroke-dasharray='2'/%3E%3Cline x1='295' y1='77' x2='450' y2='77' stroke-dasharray='3'/%3E%3C!-- Filters --%3E%3Crect x='255' y='110' width='50' height='25' rx='3'/%3E%3Crect x='315' y='110' width='60' height='25' rx='3'/%3E%3Crect x='385' y='110' width='70' height='25' rx='3'/%3E%3Crect x='465' y='110' width='60' height='25' rx='3'/%3E%3C!-- View toggle --%3E%3Crect x='540' y='110' width='25' height='25' rx='2'/%3E%3C!-- Grid header --%3E%3Crect x='255' y='155' width='310' height='30' stroke-dasharray='4'/%3E%3Ctext x='265' y='175' font-size='7' font-family='monospace' fill='%23ffffff'%3E%23%3C/text%3E%3Ctext x='295' y='175' font-size='7' font-family='monospace' fill='%23ffffff'%3ETHINGS I HAVE DONE%3C/text%3E%3Ctext x='480' y='175' font-size='7' font-family='monospace' fill='%23ffffff'%3ETYPE%3C/text%3E%3Ctext x='535' y='175' font-size='7' font-family='monospace' fill='%23ffffff'%3EYEAR%3C/text%3E%3C!-- Grid rows --%3E%3Crect x='255' y='185' width='310' height='35'/%3E%3Crect x='255' y='220' width='310' height='35'/%3E%3Crect x='255' y='255' width='310' height='35'/%3E%3Crect x='255' y='290' width='310' height='35'/%3E%3Crect x='255' y='325' width='310' height='35'/%3E%3Crect x='255' y='360' width='310' height='35'/%3E%3Crect x='255' y='395' width='310' height='35'/%3E%3Crect x='255' y='430' width='310' height='35'/%3E%3C!-- Dimension annotations --%3E%3Cline x1='20' y1='10' x2='240' y2='10' stroke-dasharray='2'/%3E%3Cline x1='240' y1='10' x2='580' y2='10' stroke-dasharray='2'/%3E%3Ctext x='120' y='8' font-size='6' font-family='monospace' fill='%23ffffff'%3E40%25%3C/text%3E%3Ctext x='400' y='8' font-size='6' font-family='monospace' fill='%23ffffff'%3E60%25%3C/text%3E%3Cline x1='20' y1='5' x2='20' y2='15'/%3E%3Cline x1='240' y1='5' x2='240' y2='15'/%3E%3Cline x1='580' y1='5' x2='580' y2='15'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 48px;
    position: relative;
    z-index: 1;
}

/* Logo */
.sidebar-top {
    padding-bottom: 0;
}

.logo {
    font-family: 'EB Garamond', serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #090DCE;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.logo-line {
    display: flex;
}

.logo .letter {
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.logo .letter:hover {
    color: #00F504;
    transform: translateY(calc(-2px - var(--random-lift, 0px)));
}

/* Location line under name */
.location-line {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: rgba(17, 17, 17, 0.4);
    letter-spacing: 0.02em;
    margin-top: 8px;
}

.location-label {
    color: rgba(9, 13, 206, 0.4);
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    margin-right: 4px;
}

.location-label:nth-of-type(2) {
    margin-left: 12px;
}

/* Bio */
.sidebar-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 48px;
}

.bio-lines {
    max-width: 400px;
}

.index-card-line {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: #111111;
    margin-bottom: 12px;
}

.index-card-line:last-of-type {
    margin-bottom: 48px;
}

/* Currently / Previously era labels */
.bio-era-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(9, 13, 206, 0.4);
    margin-bottom: 10px;
    margin-top: 28px;
}

.bio-era-label:first-child {
    margin-top: 0;
}

.bio-link {
    color: #090DCE;
    text-decoration: none;
    border-bottom: 1px dotted #00F504;
    transition: opacity 0.2s;
}

.bio-link:hover {
    opacity: 0.7;
}

/* Bio tooltip trigger — underlined phrase with hover detail */
.bio-tooltip-trigger {
    color: #090DCE;
    border-bottom: 1px dotted #00F504;
    cursor: default;
    position: relative;
}

.bio-tooltip {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: 280px;
    background: #ffffff;
    color: #111111;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
    padding: 12px 14px;
    border-radius: 5px;
    border: 1px solid rgba(0, 245, 4, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
    z-index: 100;
}

.bio-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 16px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-left: 1px solid rgba(0, 245, 4, 0.5);
    border-top: 1px solid rgba(0, 245, 4, 0.5);
    transform: rotate(45deg);
}

.bio-tooltip-trigger:hover .bio-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Punch holes — left margin, realistic binder holes */
.punch-holes {
    position: fixed;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 12px;
    z-index: 200;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22vh;
}

.punch-hole {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(9, 13, 206, 0.04);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.08),
        inset 0 -1px 1px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(9, 13, 206, 0.08);
    flex-shrink: 0;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(9, 13, 206, 0.08);
    padding-top: 24px;
}

.sidebar-link {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #090DCE;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 1px dotted #00F504;
    display: inline-block;
    width: fit-content;
}

.sidebar-link:hover {
    color: #00F504;
    border-bottom-color: #00F504;
}

/* Scrollable Right Content — 60% projects */
.main-content {
    width: 60%;
    margin-left: 40%;
    min-height: 100vh;
    padding: 24px 32px;
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(9, 13, 206, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 13, 206, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    color: #111111;
    display: flex;
    flex-direction: column;
    font-family: 'Inter Tight', sans-serif;
}


/* Section Title */
.section-title {
    display: none;
}

/* Blueprint Toggle Icon */
.blueprint-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 28px;
    height: 28px;
    background: rgba(9, 13, 206, 0.06);
    border: 1px solid rgba(9, 13, 206, 0.2);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.blueprint-toggle svg {
    width: 16px;
    height: 16px;
    color: rgba(9, 13, 206, 0.4);
    transition: color 0.2s;
}

.blueprint-toggle:hover {
    background: rgba(9, 13, 206, 0.12);
    border-color: rgba(9, 13, 206, 0.4);
}

.blueprint-toggle:hover svg {
    color: #090DCE;
}

/* Blueprint Popover - shows on hover */
.blueprint-modal {
    position: absolute;
    top: 60px;
    right: 24px;
    width: 280px;
    background: #090DCE;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(9, 13, 206, 0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    pointer-events: none;
}

.blueprint-toggle:hover + .blueprint-modal,
.blueprint-modal:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.blueprint-content {
    position: relative;
    width: 100%;
}

.blueprint-close {
    display: none;
}

.blueprint-drawing {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 800'%3E%3Cdefs%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='600' height='800' fill='url(%23grid)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3C!-- Main split: 40/60 --%3E%3Crect x='20' y='20' width='560' height='760' /%3E%3Cline x1='240' y1='20' x2='240' y2='780' stroke-width='2'/%3E%3C!-- LEFT SIDE: Sidebar 40%25 --%3E%3Ctext x='30' y='45' font-size='10' font-family='monospace' fill='%23ffffff'%3ESIDEBAR 40%25%3C/text%3E%3C!-- Name area --%3E%3Crect x='35' y='60' width='190' height='70' stroke-dasharray='4'/%3E%3Ctext x='45' y='85' font-size='8' font-family='monospace' fill='%23ffffff'%3ENAME%3C/text%3E%3Cline x1='45' y1='95' x2='140' y2='95' stroke-width='2'/%3E%3Cline x1='45' y1='110' x2='160' y2='110' stroke-width='2'/%3E%3C!-- Bio area --%3E%3Crect x='35' y='150' width='190' height='200' stroke-dasharray='4'/%3E%3Ctext x='45' y='175' font-size='8' font-family='monospace' fill='%23ffffff'%3EBIO%3C/text%3E%3Cline x1='45' y1='190' x2='200' y2='190' stroke-dasharray='2'/%3E%3Cline x1='45' y1='210' x2='210' y2='210' stroke-dasharray='2'/%3E%3Cline x1='45' y1='230' x2='180' y2='230' stroke-dasharray='2'/%3E%3Cline x1='45' y1='250' x2='195' y2='250' stroke-dasharray='2'/%3E%3Cline x1='45' y1='270' x2='150' y2='270' stroke-dasharray='2'/%3E%3C!-- Links --%3E%3Crect x='35' y='370' width='90' height='30' stroke-dasharray='4'/%3E%3Ctext x='45' y='390' font-size='7' font-family='monospace' fill='%23ffffff'%3EMORE%3C/text%3E%3Crect x='35' y='410' width='90' height='30' stroke-dasharray='4'/%3E%3Ctext x='45' y='430' font-size='7' font-family='monospace' fill='%23ffffff'%3ECURIOSITIES%3C/text%3E%3C!-- Footer: Social + Points --%3E%3Crect x='35' y='700' width='190' height='60' stroke-dasharray='4'/%3E%3Ctext x='45' y='720' font-size='8' font-family='monospace' fill='%23ffffff'%3EFOOTER%3C/text%3E%3Crect x='45' y='735' width='40' height='15'/%3E%3Crect x='95' y='735' width='40' height='15'/%3E%3Crect x='145' y='735' width='30' height='15'/%3E%3Ccircle cx='200' cy='742' r='8'/%3E%3Ctext x='195' y='745' font-size='6' font-family='monospace' fill='%23ffffff'%3EPT%3C/text%3E%3C!-- RIGHT SIDE: Content 60%25 --%3E%3Ctext x='255' y='45' font-size='10' font-family='monospace' fill='%23ffffff'%3ECONTENT 60%25%3C/text%3E%3C!-- Search bar --%3E%3Crect x='255' y='60' width='310' height='35' rx='3'/%3E%3Ccircle cx='275' cy='77' r='8' stroke-dasharray='2'/%3E%3Cline x1='295' y1='77' x2='450' y2='77' stroke-dasharray='3'/%3E%3C!-- Filters --%3E%3Crect x='255' y='110' width='50' height='25' rx='3'/%3E%3Crect x='315' y='110' width='60' height='25' rx='3'/%3E%3Crect x='385' y='110' width='70' height='25' rx='3'/%3E%3Crect x='465' y='110' width='60' height='25' rx='3'/%3E%3C!-- View toggle --%3E%3Crect x='540' y='110' width='25' height='25' rx='2'/%3E%3C!-- Grid header --%3E%3Crect x='255' y='155' width='310' height='30' stroke-dasharray='4'/%3E%3Ctext x='265' y='175' font-size='7' font-family='monospace' fill='%23ffffff'%3E%23%3C/text%3E%3Ctext x='295' y='175' font-size='7' font-family='monospace' fill='%23ffffff'%3ETHINGS I HAVE DONE%3C/text%3E%3Ctext x='480' y='175' font-size='7' font-family='monospace' fill='%23ffffff'%3ETYPE%3C/text%3E%3Ctext x='535' y='175' font-size='7' font-family='monospace' fill='%23ffffff'%3EYEAR%3C/text%3E%3C!-- Grid rows --%3E%3Crect x='255' y='185' width='310' height='35'/%3E%3Crect x='255' y='220' width='310' height='35'/%3E%3Crect x='255' y='255' width='310' height='35'/%3E%3Crect x='255' y='290' width='310' height='35'/%3E%3Crect x='255' y='325' width='310' height='35'/%3E%3Crect x='255' y='360' width='310' height='35'/%3E%3Crect x='255' y='395' width='310' height='35'/%3E%3Crect x='255' y='430' width='310' height='35'/%3E%3C!-- Dimension annotations --%3E%3Cline x1='20' y1='10' x2='240' y2='10' stroke-dasharray='2'/%3E%3Cline x1='240' y1='10' x2='580' y2='10' stroke-dasharray='2'/%3E%3Ctext x='120' y='8' font-size='6' font-family='monospace' fill='%23ffffff'%3E40%25%3C/text%3E%3Ctext x='400' y='8' font-size='6' font-family='monospace' fill='%23ffffff'%3E60%25%3C/text%3E%3Cline x1='20' y1='5' x2='20' y2='15'/%3E%3Cline x1='240' y1='5' x2='240' y2='15'/%3E%3Cline x1='580' y1='5' x2='580' y2='15'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
}

.blueprint-label {
    text-align: center;
    margin-top: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Controls: Filters + View Toggle */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.filters {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 5px 10px;
    border: 1px solid rgba(9, 13, 206, 0.2);
    border-radius: 2px;
    background: transparent;
    color: rgba(17, 17, 17, 0.6);
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.7rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn:hover {
    background: rgba(9, 13, 206, 0.06);
    border-color: #090DCE;
    color: #090DCE;
}

.filter-btn.active {
    background: #090DCE;
    color: #ffffff;
    border-color: #090DCE;
}

/* Sub-filters (shown below main filters when Projects is active) */
.sub-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease;
    margin-top: 0;
    pointer-events: none;
}

.sub-filter-buttons.visible {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 8px;
    pointer-events: auto;
}

.sub-filter-btn {
    padding: 4px 10px;
    border: 1px solid rgba(0, 245, 4, 0.3);
    border-radius: 2px;
    background: transparent;
    color: rgba(0, 245, 4, 0.6);
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.15s;
}

.sub-filter-btn:hover {
    background: rgba(0, 245, 4, 0.1);
    border-color: #00F504;
    color: #00F504;
}

.sub-filter-btn.active {
    background: #00F504;
    color: #090DCE;
    border-color: #00F504;
}

/* View Toggle - No borders */
.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    padding: 8px;
    background: transparent;
    border: none;
    color: rgba(17, 17, 17, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: rgba(17, 17, 17, 0.7);
}

.view-btn.active {
    color: #111111;
}

/* View Containers */
.view-container {
    display: none;
    flex: 1;
}

.view-container.active {
    display: block;
}

/* List View - Data Grid */
.data-grid {
    border: 1px solid rgba(9, 13, 206, 0.08);
    border-radius: 2px;
    overflow: hidden;
    flex: 1;
}

.grid-header {
    display: grid;
    grid-template-columns: 88px 1fr 72px;
    height: 40px;
    padding: 0 12px;
    align-items: center;
    background: rgba(9, 13, 206, 0.03);
    border-bottom: 1px solid rgba(9, 13, 206, 0.08);
    letter-spacing: 0.04em;
    text-transform: none;
}

.grid-header span {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    font-weight: 400;
    color: rgba(9, 13, 206, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.grid-header .col-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    font-weight: 400;
    color: rgba(9, 13, 206, 0.4);
}

.grid-header .col-title {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.58rem !important;
    font-weight: 700;
    color: rgba(9, 13, 206, 0.5) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.grid-header .col-type {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.58rem !important;
    font-weight: 400;
    color: rgba(9, 13, 206, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.grid-header .col-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    font-weight: 400;
    text-align: right;
    justify-content: flex-end;
    display: flex;
    color: rgba(9, 13, 206, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.grid-body {
    overflow-y: auto;
}

.grid-row {
    display: grid;
    grid-template-columns: 88px 1fr 72px;
    min-height: 72px;
    height: auto;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(9, 13, 206, 0.08);
    cursor: default;
    transition: background 0.15s ease;
    position: relative;
    align-items: start;
    gap: 0;
}

.grid-row:hover {
    background: rgba(9, 13, 206, 0.04);
}

.grid-row.hidden {
    display: none;
}

.grid-row span {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: #111111;
}

/* col-num no longer used in list view */

.col-title {
    font-family: 'EB Garamond', serif !important;
    font-size: 1.15rem !important;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #111111;
}

.col-type {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.6rem !important;
    color: rgba(17, 17, 17, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.col-year {
    color: rgba(17, 17, 17, 0.45);
    font-size: 0.6rem !important;
    font-family: 'Space Mono', monospace !important;
    letter-spacing: 0.04em;
    display: block;
}

/* Expanded row — dramatic project page */
.grid-row-expanded {
    display: none;
    border-bottom: 1px solid rgba(9, 13, 206, 0.08);
    animation: expandIn 0.25s ease;
    overflow: hidden;
}

.grid-row-expanded.active {
    display: block;
}

@keyframes expandIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.expanded-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 200px;
    max-height: 260px;
}

.expanded-content.no-image {
    grid-template-columns: 1fr;
    max-height: none;
}

.expanded-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 260px;
    background-size: cover;
    background-position: center top;
    border-right: 1px solid rgba(9, 13, 206, 0.08);
}

.expanded-body {
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background: rgba(9, 13, 206, 0.02);
    overflow-y: auto;
}

.expanded-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: rgba(17, 17, 17, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.expanded-project-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #111111;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.expanded-text {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(17, 17, 17, 0.7);
    line-height: 1.6;
    max-width: 440px;
}

.expanded-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: #00F504;
    text-decoration: none;
    width: fit-content;
    border-bottom: 1px solid rgba(0, 245, 4, 0.3);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.expanded-link:hover { opacity: 0.7; }

.expanded-quote {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #111111;
    line-height: 1.5;
    border-left: 2px solid #00F504;
    padding-left: 20px;
}

.expanded-video {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 260px;
    object-fit: cover;
    display: block;
    border-right: 1px solid rgba(9, 13, 206, 0.08);
}

/* Inline project content (Dexter-style) */
.col-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 12px;
    padding-top: 1px;
}

.col-desc {
    font-family: 'EB Garamond', serif;
    font-size: 0.92rem;
    color: rgba(17, 17, 17, 0.6);
    line-height: 1.55;
    max-width: 520px;
}


/* Left thumbnail — replaces numeral column */
.col-thumb-left {
    width: 78px;
    height: 58px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: start;
    margin-right: 4px;
    background: rgba(9, 13, 206, 0.04);
    border: 1px solid rgba(0, 245, 4, 0.18);
}

.col-thumb-left img,
.col-thumb-left video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.col-thumb-left.empty {
    background: transparent;
    border-color: transparent;
}

/* Type-only meta column */
.col-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 2px;
}

/* hover state — subtle lift */
.grid-row:hover {
    background: rgba(9, 13, 206, 0.04);
}

/* Featured Rows — green number accent only */
.grid-row.featured .col-num {
    color: #00F504 !important;
    font-size: 1rem !important;
}

/* Hover Image Preview */
.hover-preview {
    position: fixed;
    width: 240px;
    height: 180px;
    border-radius: 2px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(4, 7, 120, 0.97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.15s ease;
}

.hover-preview.visible {
    opacity: 1;
}

/* Masonry Grid View */
.masonry-grid {
    column-count: 3;
    column-gap: 12px;
}

/* Design view — 2 columns so images are larger */
.masonry-grid.design-view {
    column-count: 2;
    column-gap: 16px;
}

.masonry-grid.active {
    display: block;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.masonry-item:hover {
    transform: none;
}

.masonry-item.hidden {
    display: none;
}

.masonry-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    border: 1px solid rgba(0, 245, 4, 0.4);
    transition: opacity 0.15s ease, border-color 0.2s, box-shadow 0.3s;
}

.masonry-item:hover .masonry-image {
    border-color: rgba(9, 13, 206, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.masonry-info {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.masonry-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.masonry-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #111111;
}

.masonry-type {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    color: rgba(17, 17, 17, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Quote Cards for Writing */
.quote-card {
    background: rgba(9, 13, 206, 0.03);
    border: 1px solid rgba(0, 245, 4, 0.4);
    border-radius: 2px;
    padding: 0;
    overflow: hidden;
}

.quote-card .quote-content {
    padding: 32px 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-card.size-small .quote-content {
    min-height: 160px;
    padding: 24px 20px;
}

.quote-card.size-medium .quote-content {
    min-height: 200px;
}

.quote-card.size-large .quote-content {
    min-height: 280px;
    padding: 40px 28px;
}

.quote-card:hover {
    background: rgba(9, 13, 206, 0.05);
    border-color: rgba(9, 13, 206, 0.3);
}

.quote-mark {
    font-family: 'EB Garamond', serif;
    font-size: 4rem;
    line-height: 0.5;
    color: rgba(9, 13, 206, 0.2);
    margin-bottom: 8px;
}

.quote-text {
    font-family: 'EB Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
    color: #111111;
    margin-bottom: 16px;
}

.quote-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.5);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.quote-card .masonry-info {
    padding: 12px 24px;
    border-top: 1px solid rgba(9, 13, 206, 0.08);
    justify-content: flex-end;
}

.text-card {
    perspective: 800px;
    background: transparent;
    border: none;
}

/* Video card in masonry grid */
.masonry-video {
    width: 100%;
    border-radius: 2px;
    border: 1px solid rgba(0, 245, 4, 0.4);
    overflow: hidden;
    position: relative;
}

.masonry-video video {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.text-card-inner {
    position: relative;
    min-height: 160px;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-card:hover .text-card-inner {
    transform: rotateY(180deg);
}

.text-card-front,
.text-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid rgba(0, 245, 4, 0.4);
    border-radius: 2px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.text-card-front {
    background: rgba(9, 13, 206, 0.03);
}

.text-card-back {
    transform: rotateY(180deg);
    background: #090DCE;
    border-color: #090DCE;
}

.text-card-back-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.text-card-back-desc {
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
}

.text-card-back-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.text-card-back-footer .masonry-type,
.text-card-back-footer .masonry-year {
    color: rgba(255, 255, 255, 0.4);
}

.text-card-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    color: #00F504;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: opacity 0.15s;
}

.text-card-link:hover {
    opacity: 0.7;
}

.masonry-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    color: rgba(17, 17, 17, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.masonry-link {
    color: rgba(0, 245, 4, 0.6);
    font-size: 0.7rem;
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1;
}

.masonry-link:hover { color: #00F504; }

/* ↗ icon inline next to list title */
.col-title-link {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.75rem;
    color: #00F504;
    text-decoration: none;
    vertical-align: middle;
    transition: opacity 0.15s;
}

.col-title-link:hover {
    opacity: 0.7;
}

/* ↗ icon inline next to masonry title */
.masonry-title-link {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.75rem;
    color: #00F504;
    text-decoration: none;
    vertical-align: middle;
    transition: opacity 0.15s;
}

.masonry-title-link:hover {
    opacity: 0.7;
}

/* Clickable image/video wrapper */
.masonry-media-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.masonry-media-link .masonry-video,
.masonry-media-link .masonry-image {
    display: block;
}

/* Link badge — top-right corner of image/video */
.masonry-link-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 245, 4, 0.5);
    border-radius: 50%;
    color: #00F504;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.15s;
    z-index: 2;
    pointer-events: none;
}

.masonry-media-link:hover .masonry-link-badge {
    opacity: 0.7;
}

/* Sidebar Footer */
.sidebar-bottom {
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
    color: rgba(17, 17, 17, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #090DCE;
}


/* Text selection — neon chartreuse */
::selection {
    background: rgba(0, 245, 4, 0.6);
    color: inherit;
}

::-moz-selection {
    background: rgba(0, 245, 4, 0.6);
    color: inherit;
}



/* Letter spacing in name */
.letter-space {
    width: 0.3em;
    flex-shrink: 0;
}

/* Mobile nav — hidden on desktop */
.mobile-nav {
    display: none;
}


/* Blueprint Loading State */
.blueprint-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #090DCE;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.blueprint-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.blueprint-loader.hidden {
    display: none;
}

.blueprint-loader-svg {
    width: 50%;
    max-width: 400px;
    height: auto;
    opacity: 0.4;
}

.loader-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2.5s ease forwards;
}

.loader-line:nth-child(1) { animation-delay: 0s; }
.loader-line:nth-child(2) { animation-delay: 0.05s; }
.loader-line:nth-child(3) { animation-delay: 0.1s; }
.loader-line:nth-child(4) { animation-delay: 0.15s; }
.loader-line:nth-child(5) { animation-delay: 0.2s; }
.loader-line:nth-child(6) { animation-delay: 0.25s; }
.loader-line:nth-child(7) { animation-delay: 0.3s; }
.loader-line:nth-child(8) { animation-delay: 0.35s; }
.loader-line:nth-child(9) { animation-delay: 0.4s; }
.loader-line:nth-child(10) { animation-delay: 0.45s; }
.loader-line:nth-child(11) { animation-delay: 0.5s; }
.loader-line:nth-child(12) { animation-delay: 0.55s; }
.loader-line:nth-child(13) { animation-delay: 0.6s; }
.loader-line:nth-child(14) { animation-delay: 0.65s; }
.loader-line:nth-child(15) { animation-delay: 0.7s; }
.loader-line:nth-child(16) { animation-delay: 0.75s; }
.loader-line:nth-child(17) { animation-delay: 0.8s; }
.loader-line:nth-child(18) { animation-delay: 0.85s; }
.loader-line:nth-child(19) { animation-delay: 0.9s; }
.loader-line:nth-child(20) { animation-delay: 0.95s; }

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.loader-welcome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Amiri', serif;
    font-size: 2.4rem;
    color: #00F504;
    letter-spacing: 0.05em;
    direction: rtl;
    animation: fadeInWelcome 1s ease 1.5s forwards;
    opacity: 0;
}

@keyframes fadeInWelcome {
    to { opacity: 1; }
}


/* Scroll progress bar (mobile) — green line under header */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: #00F504;
    z-index: 100;
    transition: width 0.1s linear;
    display: none;
}


/* End of list moment */
.end-of-list {
    text-align: center;
    padding: 64px 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.end-of-list.visible {
    opacity: 1;
    transform: translateY(0);
}

.end-arabic {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: rgba(9, 13, 206, 0.3);
    letter-spacing: 0.05em;
    direction: rtl;
}

/* Blueprint toggle: desktop vs mobile SVGs */
.blueprint-desktop {
    display: block;
}

.blueprint-mobile {
    display: none;
}

/* Staggered entrance animation */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-row.row-enter {
    animation: fadeSlideUp 0.35s ease forwards;
}

/* Show all button — hidden on desktop */
.show-all-btn {
    display: none;
}

/* Expand indicator — hidden on desktop */
.grid-row::after {
    display: none;
}


/* ============================================================
   MOBILE — 900px and below
   Every measurement on an 8px grid. Every detail intentional.
   ============================================================ */
@media (max-width: 900px) {

    .layout {
        flex-direction: column;
    }

    /* ----------------------------------------------------------
       LAYER 1: Sticky header — 56px, name + navigation
       Just the essentials. Nothing more.
       ---------------------------------------------------------- */
    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 50;
        border-right: none;
        border-bottom: none;
        padding-top: env(safe-area-inset-top);
    }

    .sidebar-content {
        padding: 0;
        gap: 0;
        justify-content: flex-start;
    }

    .sidebar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 56px;
        padding: 0 24px;
        background-color: #ffffff;
        background-image:
            linear-gradient(rgba(9, 13, 206, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(9, 13, 206, 0.035) 1px, transparent 1px);
        background-size: 24px 24px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .location-line {
        display: none;
    }

    /* Mobile nav: About + Notes in the sticky header */
    .mobile-nav {
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .mobile-nav a {
        font-family: 'Inter Tight', sans-serif;
        font-size: 0.75rem;
        font-weight: 500;
        color: rgba(9, 13, 206, 0.55);
        text-decoration: none;
        letter-spacing: -0.01em;
        transition: color 0.2s;
    }

    .mobile-nav a:hover {
        color: #090DCE;
    }

    /* ----------------------------------------------------------
       LAYER 2: Bio — scrolls naturally
       ---------------------------------------------------------- */
    .sidebar-middle {
        justify-content: flex-start;
        padding: 24px 24px 32px;
    }

    .bio-lines {
        max-width: 100%;
    }

    .index-card-line {
        font-size: 0.88rem;
    }

    /* Hide desktop sidebar links — nav is in the header */
    .sidebar-links {
        display: none;
    }

    .sidebar-bottom {
        display: none;
    }

    /* Hide hover preview on mobile */
    .hover-preview {
        display: none;
    }

    /* Featured rows on mobile — same height, weight does the work */

    /* ----------------------------------------------------------
       LAYER 3: Projects — the main event
       Full-width blue. Content-first. No wasted space.
       ---------------------------------------------------------- */
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 0;
        flex: 1;
    }

    /* ----------------------------------------------------------
       FILTERS: horizontal pill row, proper touch targets
       ---------------------------------------------------------- */
    .controls {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0;
        padding: 16px 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

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

    .filter-buttons {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .filter-btn {
        font-size: 0.7rem;
        padding: 8px 14px;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 32px;
        border-radius: 16px;
    }

    /* Hide view toggle — list only on mobile */
    .view-toggle {
        display: none;
    }

    /* Force list view */
    .masonry-grid {
        display: none !important;
    }

    .data-grid {
        display: block !important;
        border: none;
        border-radius: 0;
    }

    /* ----------------------------------------------------------
       TABLE HEADER: subtle, informational
       ---------------------------------------------------------- */
    .grid-header {
        grid-template-columns: 1fr;
        height: 40px;
        padding: 0 24px;
        border-bottom: 1px solid rgba(9, 13, 206, 0.08);
    }

    .grid-header .col-num,
    .grid-header .col-type,
    .grid-header .col-year {
        display: none;
    }

    .grid-header .col-title {
        font-size: 0.72rem !important;
        font-weight: 600;
        color: rgba(9, 13, 206, 0.4) !important;
        letter-spacing: 0.03em;
    }

    /* ----------------------------------------------------------
       PROJECT ROWS: 48px height, aligned to grid
       Each row is a tap target. Green + hints at expandability.
       ---------------------------------------------------------- */
    .grid-row {
        grid-template-columns: 64px 1fr;
        height: auto;
        min-height: 56px;
        padding: 10px 24px;
        border-bottom: 1px solid rgba(9, 13, 206, 0.08);
        transition: background 0.15s ease, transform 0.1s ease;
        gap: 0;
        align-items: start;
    }

    .grid-row:active {
        transform: scale(0.98);
    }

    .grid-row .col-meta {
        display: none;
    }

    .col-thumb-left {
        width: 54px;
        height: 44px;
    }

    .col-title {
        font-size: 0.92rem !important;
        line-height: 1.3;
    }

    .col-desc {
        font-size: 0.85rem;
    }

    /* No expand indicator needed — content is inline */
    .grid-row::after {
        display: none;
    }

    /* ----------------------------------------------------------
       SCROLL PROGRESS — green line at very top
       ---------------------------------------------------------- */
    .scroll-progress {
        display: block;
        top: env(safe-area-inset-top);
    }

    /* col-desc slightly smaller on mobile */
    .col-desc {
        font-size: 0.85rem;
    }

    /* ----------------------------------------------------------
       SHOW ALL — subtle, centered, below the grid
       ---------------------------------------------------------- */
    .show-all-btn {
        display: block !important;
        width: 100%;
        padding: 20px 24px;
        background: transparent;
        border: none;
        color: #00F504;
        font-family: 'Space Mono', monospace;
        font-size: 0.72rem;
        letter-spacing: 0.03em;
        cursor: pointer;
        transition: opacity 0.2s;
        text-align: center;
    }

    .show-all-btn:active {
        opacity: 0.6;
    }

    .show-all-btn.hidden {
        display: none !important;
    }

    .grid-row.mobile-hidden,
    .grid-row-expanded.mobile-hidden {
        display: none;
    }

    .expanded-content {
        grid-template-columns: 1fr;
    }

    .expanded-image {
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(9, 13, 206, 0.08);
    }

    .expanded-body {
        padding: 28px 24px;
    }

    .expanded-project-title {
        font-size: 1.5rem;
    }

    .expanded-video {
        min-height: 200px;
        border-right: none;
    }


    /* ----------------------------------------------------------
       LOADING SCREEN — mobile: show phone layout, hide desktop
       ---------------------------------------------------------- */
    .blueprint-desktop {
        display: none;
    }

    .blueprint-mobile {
        display: block;
    }

    .blueprint-loader-svg {
        width: 55%;
        max-width: 240px;
    }

    .loader-welcome {
        font-size: 2rem;
    }

    /* ----------------------------------------------------------
       END-OF-LIST — smaller on mobile
       ---------------------------------------------------------- */
    .end-of-list {
        padding: 48px 24px;
    }

    .end-arabic {
        font-size: 1.6rem;
    }

}
