/*
Theme Name: DU ART
Text Domain: du-art
Description: Custom theme for DU ART Visual Archive — polaroid scrapbook design.
Version: 6.0.0
Author: Duarte Vaz de Almada
*/

:root {
    --max-width: 970px;
    --spacing: 8px;
    /* Base unit */
    --color-bg: #000000;
    --color-text: #FFFFFF;
    --font-main: 'Inter', Helvetica, Arial, sans-serif;
    --header-height: auto;
    /* Dynamic */
}

/* 1. RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* 2. LAYOUT */
/* 2. LAYOUT */
.du-container,
.container {
    width: 100%;
    max-width: 1200px;
    /* Aligned Grid Spec */
    margin: 0 auto;
    padding: 0 16px;
    /* 16px total side spacing */
}

/* Ensure no double padding if both classes overlap, though they shouldn't */

/* 3. HEADER */
.site-header {
    width: 100%;
    /* padding: calc(var(--spacing) * 4) 0; */
    padding: 0;
    /* Override/Reset */
    margin-bottom: 8px;
    background-color: var(--color-bg);
}

/* Force header content to match the grid container (User Request Step 1320) */
.site-header .du-container,
.site-header .header-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4px;
    /* padding-left: 16px; */
    /* padding-right: 16px; */
}

/* Safety: prevent unexpected padding from WP/theme */
.site-header .header-inner {
    box-sizing: border-box;
}

.header-container {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 2);
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* Logo */
.logo-block {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo-block span {
    display: block;
}

/* Claim (Desktop: Top Right, Mobile: Hidden/Adjusted) */
.claim-block {
    text-align: right;
    max-width: 300px;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
}

.claim-block h1 {
    font-size: inherit;
    font-weight: inherit;
}

/* Hamburger (Mobile Only) */
.hamburger-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
    z-index: 101;
    /* Above mobile menu */
}

.hamburger-btn .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
}

/* Navigation (Desktop) */
.main-nav {
    margin-top: calc(var(--spacing) * 2);
}

.nav-list {
    display: flex;
    gap: calc(var(--spacing) * 3);
    flex-wrap: wrap;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
}

.nav-link.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 4. MASONRY GRID Feed */
.masonry-grid {
    width: 100%;
    margin-bottom: 60px;
    /* Masonry.js handles layout */
}

.grid-item {
    width: 100%;
    /* Mobile: full width */
    margin-bottom: 8px;
    /* Fallback if Masonry fails */
    display: block;
    background-color: var(--color-bg);
}

/* Desktop: 3 columns (33.333% width per item) */
@media (min-width: 900px) {
    .grid-item {
        width: calc(33.333% - 6px);
        /* 3 columns with 8px gutter */
    }
}



.card-link {
    display: block;
    position: relative;
    /* White Border Frame */
    border: 8px solid #FFFFFF;
    background-color: #FFFFFF;
    transition: transform 0.2s ease;
}

/* Tumblr Import Styles (No Caption) */
.du-item--tumblr .card-meta {
    display: none !important;
    /* Force hide */
}

.du-item--tumblr .card-link {
    border-bottom: 8px solid #FFFFFF;
    padding-bottom: 0;
}

/* WP Post Styles (Captions Visible) */
.du-item--wp .card-meta {
    display: block;
    /* Ensure visibility */
    padding: var(--spacing);
    /* Restore padding if needed */
}



.card-link:hover {
    transform: translateY(-2px);
}

.card-media {
    position: relative;
    width: 100%;
    /* Aspect ratio provided by image itself */
}

.card-media img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f0f0f0;
    /* Placeholder color */
}

.video-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #FFF;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.card-meta {
    padding-top: var(--spacing);
    /* Meta is usually inside the white frame? Or outside on black? */
    /* "Title + short description always visible". */
    /* Assuming inside white frame or below image. */
    /* Let's put it below image (inside white frame padding). */
    padding: var(--spacing);
    color: #000;
    /* Text on White Card */
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 12px;
    color: #333;
}

.placeholder-media {
    background-color: #333;
    width: 100%;
    padding-bottom: 100%;
    /* Square fallback */
}


/* 5. MODAL (Hidden by default) */
.modal-overlay {
    display: none;
    /* JS toggles 'flex' */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: var(--spacing);
}

/* --- PAGE INTRO ITEM (Section Pages) --- */
/* Styled as a grid-item card without image */

.page-intro-item {
    background: #fff;
    padding: calc(var(--spacing) * 2);
    /* Inherits grid-item sizing from masonry */
}

/* 5. MODAL */

.modal-overlay.is-active {
    display: flex;
}

.modal-content {
    background-color: white;
    max-width: 970px;
    /* Same as container */
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    /* Full bleed media? Or padded? */
    border: 8px solid white;
    /* Frame */
}

#media-modal .modal-content {
    border: none !important;
    background-color: transparent !important;
}

/* === Modal controls - match Figma === */
#media-modal .modal-close,
#media-modal .modal-nav {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;

    /* Figma shadow: x0 y2 blur8, #000 @ 60% */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;

    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

/* X (close) - Position set by JS to align with nav-next */
#media-modal .modal-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px;
    /* compatible with JS */
    height: 77px;
    /* compatible with JS */
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 40px !important;
    line-height: 1 !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6) !important;
    z-index: 10000000 !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

#media-modal .modal-close:hover {
    opacity: 0.85 !important;
}


.modal-media-wrapper {
    position: relative;
    background: transparent !important;
    display: flex;
    justify-content: center;
    padding: 0;
}

/* Caixa branca de info na modal (estilo Figma) */
#media-modal .modal-info {
    display: none;
    /* controlado por JS */
    background: #ffffff;
    color: #000000;
    width: 100%;
    margin: 0;
    padding: 20px 24px 24px;
    box-sizing: border-box;
}

/* Título */
#media-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-transform: none;
}

/* Descrição */
#media-modal .modal-desc {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* 6. FOOTER (Fixed Back to Top) */
.site-footer {
    position: fixed;
    bottom: var(--spacing);
    right: 0;
    width: 100%;
    max-width: var(--max-width);
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    /* Let clicks pass through except btn */
    display: flex;
    justify-content: flex-end;
    padding-right: var(--spacing);
    z-index: 90;
}

.back-to-top-btn {
    pointer-events: auto;
    background-color: #000;
    color: #FFF;
    border: 1px solid #FFF;
    padding: 8px 12px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
}

/* 7. RESPONSIVE (Breakpoint 768px) */
@media (max-width: 768px) {

    /* Header */
    .hamburger-btn {
        display: flex;
    }

    .header-top-row {
        align-items: center;
    }

    .claim-block {
        display: none;
        /* Hide claim on mobile or move it? Usually hide or stack. */
        /* Let's hide to save space as per simplistic mobile Headers */
    }

    /* Mobile Menu Panel */
    .main-nav {
        display: none;
        /* Default hidden */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        z-index: 100;
        padding-top: 80px;
        /* Space below header */
        margin-top: 0;
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .nav-link {
        font-size: 24px;
    }

    /* Grid - 1 Col */
    .masonry-grid {
        column-count: 1;
    }

    /* Footer */
    .site-footer {
        justify-content: center;
        /* Center back to top on mobile */
        padding-right: 0;
        bottom: 20px;
    }
}

/* --- HEADER REDESIGN V3 (Override) --- */

/* 1. Header Container */
.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* 2. Inner Flex Structure */
.header-inner {
    display: flex;
    flex-direction: row;
    gap: 32px;
    /* Space between Logo and Right Col */
    align-items: flex-start;
    /* Clean top alignment */
}

/* 3. Logo (100x100 Desktop) */
.header-logo-card {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

/* Verbatim CSS from User Request (Step 1115) */
.du-logo__top {
    flex: 0 0 auto;
    height: 50px;
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border: 8px solid #ffffff;
    border-width: 8px 8px 0 8px;
    padding-right: 8px;
}

.du-logo__bottom {
    flex: 0 0 auto;
    height: 50px;
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border: 8px solid #ffffff;
    border-width: 0 8px 8px 8px;
    padding-right: 8px;
}

/* 4. Right Column (Nav + Headline) */
.header-right-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
    /* Match logo height? or auto? "Aligned to content grid" */
    /* If Logo is 100px, usually right side balances it. */
    flex-grow: 1;
}

/* Row A: Navigation (Top) */
.header-nav {
    display: flex;
    align-items: center;
    height: 50%;
    /* Top half approx */
    background: transparent;
    /* "Navigation items... Color: white" implies transparent bg on black body? */
    /* Previous spec had Black Bar. This spec says "Navigation items... Color: white" but doesn't mention Bar Background. */
    /* "Background: Logo top block black...". Site body is Black. */
    /* So plain text on black background is likely desired if no bar mentioned. */
    /* Previous spec explicitly said "Row A... white bar", "Row B... black bar". */
    /* THIS spec does NOT mention bars for content. Just "Navigation items... Color: white". */
    padding: 0;
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    /* Regular */
    font-size: 14px;
    /* Default size usually */
    color: #FFFFFF;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    text-decoration: underline;
    /* Standard interaction */
}

/* Row B: Headline (Bottom) */
.header-headline {
    display: flex;
    align-items: flex-end;
    /* Align bottom to match logo bottom? */
    height: 50%;
    padding-bottom: 8px;
    /* Optical alignment */
}

.header-headline h1 {
    font-family: 'Inter', sans-serif;
    /* Adjusted if needed */
    font-size: 14px;
    /* Headline size? Previous was large condensed. Now? quote: "A PICTURE..." */
    /* Spec just says "Headline text...". Doesn't specify size/weight. */
    /* Previous: Large condensed. Current mock context usually implies balancing Logo. */
    /* Let's stick to a clean, readable size. 14px-18px? */
    /* "Must sit BELOW the navigation". */
    color: #FFFFFF;
    /* Standard text */
    text-transform: uppercase;
    font-weight: 400;
    /* Regular to match nav? Or Bold? */
    /* Let's guess Bold given it's a statement. */
    margin: 0;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* --- HEADER REDESIGN V5 (Split Rows) --- */

/* 1. Header Container */
.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
    /* Ensure visual padding matching logic */
}

/* 2. Inner Flex Structure */
.header-inner {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    /* Corrected to 8px per User Step 1373 */
    box-sizing: border-box;
    padding: 0;
}

/* 3. Logo (100x100 Desktop) */
.header-logo-card {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin: 0;
    /* Reset margin */
}

/* Verbatim Logo CSS Preserved/Re-applied */
.du-logo__top {
    flex: 0 0 auto;
    height: 50px;
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border: 8px solid #ffffff;
    border-width: 8px 8px 0 8px;
    padding-right: 8px;
}

.du-logo__bottom {
    flex: 0 0 auto;
    height: 50px;
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border: 8px solid #ffffff;
    border-width: 0 8px 8px 8px;
    padding-right: 8px;
}

/* 4. Right Column (Flexible Width) */
.header-right-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    height: 100px;
    margin: 0;
    /* Reset margin */
}

/* Row A: Quote (Top) */
/* Height: 50px. White BG. Border: 8px Top/Left/Right. */
.header-quote {
    height: 50px;
    background-color: #FFFFFF;
    border: 8px solid #FFFFFF;
    border-bottom: none;
    /* No bottom border */
    display: flex;
    align-items: center;
    padding-left: 16px;
    /* Inner padding */
}

.header-quote h1,
.header-quote .header-quote-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Row B: Navigation (Bottom) */
/* Height: 50px. Black BG. Border: 8px Left/Right/Bottom. */
.header-nav {
    height: 50px;
    background-color: #000000;
    border: 8px solid #FFFFFF;
    border-top: none;
    /* No top border */
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    /* Nav items distributed */
}

.nav-list {
    display: flex;
    width: 100%;
    justify-content: space-between;
    /* Equal spacing across width */
    list-style: none;
    padding: 0 16px;
    /* Side padding inside the block to keep text from edge? Spec says "horizontally distributed". Let's add slight padding safely. */
    margin: 0;
}

.nav-list li {
    flex: 1;
    /* Distribute space? Or just space-between? Spec: "distributed with equal spacing". Flex 1 works well usually or space-between. */
    text-align: center;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    /* Regular */
    font-size: 16px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.current-menu-item a {
    /* Removed global border-bottom to prefer specific Desktop ::after logic */
    text-decoration: none;
}

/* --- Desktop Nav Spacing Refinement (900px+) --- */
@media (min-width: 900px) {
    ul.nav-list {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        /* gaps iguais */
        gap: 0;
        /* sem gap extra */
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    ul.nav-list>li {
        flex: 0 0 auto;
        /* largura natural do texto */
        margin: 0;
        padding: 0;
        background: transparent;
    }

    ul.nav-list>li>a {
        display: inline-block;
        padding: 0;
        margin: 0;
        background: transparent;
        text-transform: uppercase;
        white-space: nowrap;
        position: relative;
        /* Anchor for ::after */
        color: #FFFFFF;
        font-weight: 400;
        /* Default Inactive */
        text-decoration: none;
        border: none;
        /* Reset old border */
    }

    /* Active State: Bold + Underline */

    ul.nav-list>li>a.is-active,
    ul.nav-list>li>a.active,
    ul.nav-list>li.current-menu-item>a,
    ul.nav-list>li.current_page_item>a {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #FFFFFF;
        text-decoration: none;
        border: none;
        position: relative;
    }

    /* Underline Logic (::after) - Active */
    ul.nav-list>li>a.is-active::after,
    ul.nav-list>li>a.active::after,
    ul.nav-list>li.current-menu-item>a::after,
    ul.nav-list>li.current_page_item>a::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: #FFFFFF;
        position: absolute;
        bottom: -4px;
        left: 0;
    }

    /* Hover State: Regular + Underline */
    ul.nav-list>li>a:hover {
        font-weight: 400;
        /* Stays regular */
        text-decoration: none;
        border: none;
    }

    /* Underline Logic (::after) - Hover (if not active) */
    ul.nav-list>li>a:not(.is-active):not(.active):hover::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: #FFFFFF;
        position: absolute;
        bottom: -4px;
        left: 0;
    }
}

/* --- MOBILE HEADER STYLES (New) --- */

/* Hide Hamburger on Desktop */
.hamburger-btn {
    display: none;
}

@media (max-width: 768px) {

    /* Layout Adjustments */
    .header-right-col {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        height: 100px;
        /* Maintain height */
        gap: 8px;
        /* Gap between headline part and hamburger */
    }

    /* Headline Text (Reset Desktop Styles) */
    .header-quote {
        flex: 1;
        /* Take available space */
        height: auto;
        background: transparent;
        border: none;
        padding: 0px;
        display: flex;
        align-items: center;
    }

    .header-quote h1,
    .header-quote .header-quote-text {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.05em;
        color: #FFFFFF;
        text-transform: uppercase;
        margin: 0;
        line-height: 1.2;
    }

    /* Anchor dropdown to the header block */
    .du-container.header-container {
        position: relative;
    }

    /* Reset previous anchors */
    .header-right-col {
        position: static;
    }

    /* Navigation (Default Hidden) */
    .header-nav {
        display: none;
    }

    /* dropdown container (NAV), not the UL */
    nav.header-nav.main-nav.is-open {
        display: block !important;
        position: absolute;
        top: 100px;
        left: 16px;
        right: 16px;
        width: auto;
        height: auto !important;
        background: #000;
        border: 8px solid #fff;
        box-sizing: border-box;
        z-index: 999;
    }

    /* inner list */
    nav.header-nav.main-nav.is-open>ul.nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin: 0;
        padding: 16px;
        width: 100%;
        list-style: none;
        box-sizing: border-box;
    }

    /* Link Typography */
    .header-nav.main-nav.is-open .nav-link {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: -0.05em;
        color: #fff;
        font-weight: 400;
        text-decoration: none;
        position: relative;
    }

    /* Mobile Hover/Active States */
    .header-nav.main-nav.is-open .nav-link:hover,
    .header-nav.main-nav.is-open .nav-link.active,
    .header-nav.main-nav.is-open .nav-list li.current-menu-item>.nav-link,
    .header-nav.main-nav.is-open .nav-list li.current_page_item>.nav-link,
    .header-nav.main-nav.is-open .nav-list li.current-menu-ancestor>.nav-link {
        font-weight: 700;
        text-decoration: none;
    }

    /* Mobile Underline (::after) */
    .header-nav.main-nav.is-open .nav-link:hover::after,
    .header-nav.main-nav.is-open .nav-link.active::after,
    .header-nav.main-nav.is-open .nav-list li.current-menu-item>.nav-link::after,
    .header-nav.main-nav.is-open .nav-list li.current_page_item>.nav-link::after,
    .header-nav.main-nav.is-open .nav-list li.current-menu-ancestor>.nav-link::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        position: absolute;
        bottom: -4px;
        left: 0;
    }

    /* Hamburger Button (Right) */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100px;
        /* Default height */
        height: auto;
        min-height: 100px;

        background-color: #000000;
        border: 8px solid #FFFFFF;
        box-sizing: border-box;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 14px;
        cursor: pointer;
        margin: 0;
        flex-shrink: 0;

        /* Ensure z-index layering */
        position: relative;
        z-index: 1001;
    }

    .hamburger-btn .bar {
        display: block;
        width: calc(100% - 32px);
        height: 8px;
        background-color: #FFFFFF;
    }

    /* Hamburger "active" when menu is open */
    button.hamburger-btn[aria-expanded="true"] {
        background: #000;
        border: 8px solid #fff;
        box-sizing: border-box;
        position: relative;
    }

    /* HAMBURGER BRIDGE (Sibling Sibling) */
    /* Default hidden */
    .hamburger-bridge {
        display: none;
    }

    /* Mobile Only + Menu Open */
    body.menu-open .hamburger-bridge {
        display: block;
        position: absolute;
        top: 100px;
        /* Header height */
        right: 16px;
        /* Container padding alignment */

        width: 100px;
        height: 16px;
        /* Overlap height */
        margin-top: -8px;
        /* Move up to straddle the line */

        background-color: #000;
        border-left: 8px solid #fff;
        border-right: 8px solid #fff;
        box-sizing: border-box;

        z-index: 1002;
        /* Above everything */
        pointer-events: none;
    }
}

/* ===== Desktop NAV FIX (force) ===== */
@media (min-width: 900px) {
    header.site-header nav.header-nav.main-nav ul.nav-list {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 16px !important;
        list-style: none !important;
    }

    header.site-header nav.header-nav.main-nav ul.nav-list>li {
        margin: 0 !important;
    }
}

/* ===== Mobile active nav item ===== */
@media (max-width: 768px) {
    .header-nav.main-nav.is-open .nav-link.is-active {
        font-weight: 700;
    }

    .header-nav.main-nav.is-open .nav-link.is-active::after {
        content: "";
        display: block;
        height: 2px;
        width: 100%;
        background: #ffffff;
        margin-top: 6px;
    }

    /* Consistent Hover */
    .header-nav.main-nav.is-open .nav-link:hover {
        font-weight: 700;
    }
}

/* FOOTER FIXED BAR (Figma-like) */
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    z-index: 9999;

    /* anula regras antigas */
    max-width: none !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 0 !important;
}

/* container centrado dentro da barra full width */
.site-footer .footer-inner {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    min-height: 18px;
    height: auto;
    /* permite crescer */
    position: relative;
    /* Contexto para o botão */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Texto centrado */
    gap: 0;
    box-sizing: border-box;
}

/* texto do footer */
.site-footer .footer-text {
    margin: 0;
    font-size: 10px;
    line-height: 1;
    color: #000;
    flex: 1;
    min-width: 0;

    /* Permite quebra de linha se necessário */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
    padding-right: 44px;
    /* Espaço para não bater no botão (virtualmente à direita) */
    padding-left: 44px;
    /* Balancear visualmente */
}

.site-footer .footer-text a {
    color: inherit;
    text-decoration: underline;
}

/* botão TOP encostado à direita, dentro da barra */
.site-footer .back-to-top-btn {
    position: absolute;
    right: 16px;
    /* Igual ao padding lateral */
    bottom: 100%;
    margin-bottom: 0px;
    width: 28px;
    height: 28px;
    padding: 0;
    background: #fff;
    border: 0;
    display: grid;
    place-items: center;
    gap: 0;
    cursor: pointer;
}

/* icon > rodado 90º (caret para cima) */
.site-footer .back-to-top-icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: block;
    margin: 0;
    border: none;
    transform: none;
}

.site-footer .back-to-top-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    width: 10px;
    height: 10px;
    border-top: 4px solid #000;
    border-right: 4px solid #000;
    transform: translate(-50%, -50%) rotate(-45deg);
    display: block;
}

/* label TOP */
.site-footer .back-to-top-label {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
    color: #000;
    font-weight: 700;
}

/* Prevent Padding Overlap */
.site-main {
    padding-bottom: 70px;
}

/* --- SWIPER MODAL INTEGRATION (Global) --- */

/* 1. Hide Legacy Nav Permanently */
#media-modal .modal-nav {
    /* display: none !important; */
    /* REMOVED - buttons should be visible */
}

/* 2. Swiper Container: Responsive Width */
.du-swiper {
    width: fit-content;
    display: inline-block;
    /* Fallback for fit-content support */
    max-width: calc(100vw - 80px);
    /* Leave room for arrows/padding */
    height: auto;
    margin: 0 auto;
}

.du-swiper .swiper-wrapper {
    align-items: center;
}

.du-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

/* 3. PROBLEM 2: Image Fitting - HOTFIX */

/* 1. Forçar o limitador real no stage */
.media-stage {
    height: calc(100vh - 40px) !important;
    max-height: calc(100vh - 40px) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    /* palco: ok ficar flex, mas sem esticar items */
    justify-content: center !important;
}

/* 2. Moldura: shrink-to-fit real e sem baseline */
.media-frame {
    position: relative !important;
    /* For button positioning */
    display: inline-block !important;
    line-height: 0 !important;
    border: 8px solid #fff !important;
    box-sizing: border-box !important;
}

/* 3. Imagem: sem baseline e sem comportamento inline */
.media-frame img {
    display: block !important;
    max-width: calc(100vw - 40px - 16px) !important;
    /* 16px = 2*border */
    max-height: calc(100vh - 40px - 16px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Neutralize Swiper injected heights */
.du-swiper .swiper-wrapper {
    height: auto !important;
}

.du-swiper .swiper-slide {
    height: auto !important;
    /* Removed conflicting rules - handled by media-stage/frame above */
}

/* Ensure Modal Wrapper doesn't force scroll bars internally */
.modal-media-wrapper {
    overflow: visible;
    min-height: auto;
    display: flex;
    /* Center the Swiper */
    justify-content: center;
}

/* Modal Content Overflow Fix - ALLOW OVERFLOW FOR BUTTONS */
#media-modal .modal-content {
    overflow: visible;
    /* Changed from hidden to allow buttons to show */
    height: auto;
    max-height: 90vh;
    display: block;
    width: auto;
}

/* 1) Garantir que o referencial do Swiper está correto dentro do modal */
#media-modal .modal-media-wrapper,
#media-modal #modal-media-display,
#media-modal .du-swiper,
#media-modal .swiper {
    position: relative;
    overflow: visible;
    /* Critical: allow buttons to overflow */
}

/* 2) Forçar setas visíveis, por cima de tudo e clicáveis */
/* POSITION RELATIVE TO MODAL OVERLAY, NOT SWIPER */
#media-modal .swiper-button-prev,
#media-modal .swiper-button-next {
    position: fixed;
    /* Changed from absolute to fixed */
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    /* Even higher to ensure visibility */
    pointer-events: auto;
    cursor: pointer;

    width: 44px;
    height: 44px;

    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #000;
    border-radius: 50%;
    margin-top: 0;
    color: #000;
    display: flex !important;
    justify-content: center;
    align-items: center;

    /* Add shadow for better visibility */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 3) Alinhar esquerda e direita, dentro do modal */
#media-modal .swiper-button-prev {
    left: 20px;
    /* Slightly more margin */
}

#media-modal .swiper-button-next {
    right: 20px;
    /* Slightly more margin */
}

/* 4) Garantir que o ícone aparece */
#media-modal .swiper-button-prev svg,
#media-modal .swiper-button-next svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: #000 !important;
    stroke: #000 !important;
}

/* Ensure default Swiper icons are visible if no SVG is present */
#media-modal .swiper-button-prev::after,
#media-modal .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
    color: #000 !important;
}

#media-modal .swiper-button-disabled {
    opacity: 0.35;
}

/* ==================== */
/* INFINITE SCROLL LOADER */
/* ==================== */
.infinite-loader {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.infinite-loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Arrows */
#media-modal .modal-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;

    font-size: 40px !important;
    cursor: pointer !important;

    /* área clicável confortável sem "desenhar" um botão */
    min-width: 60px !important;
    min-height: 77px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* posicionamento típico */
#media-modal .modal-nav.nav-prev {
    left: -22px !important;
}

#media-modal .modal-nav.nav-next {
    right: -22px !important;
}

/* ===================================================================
   MODAL COLUMN LAYOUT (Priority CSS - at end for specificity)
   =================================================================== */

/* Modal em coluna: imagem em cima, info em baixo */
#media-modal .modal-content,
#media-modal .modal-media-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* A modal tem altura máxima e pode fazer scroll se necessário */
#media-modal .modal-content {
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
}

/* Garantir que o bloco do swiper não "corta" o que vem a seguir */
#media-modal .modal-media-wrapper,
#media-modal .modal-media-display {
    overflow: visible !important;
    height: auto !important;
    flex: 0 0 auto !important;
}

/* A caixa branca (atualização para flex layout) */
#media-modal .modal-info {
    display: none;
    /* JS liga/desliga */
    background: #fff;
    color: #000;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px 24px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

/* Disabled (Figma arrow inativa: ~50% opacity) */
#media-modal .modal-nav.is-disabled,
#media-modal .modal-nav[disabled],
#media-modal .modal-nav[aria-disabled="true"] {
    opacity: 0.5 !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Allow arrows to overflow frame */
#media-modal .du-swiper .media-stage,
#media-modal .du-swiper .media-frame {
    overflow: visible !important;
}

/* ===================================================================
   FLEXIBLE MODAL LAYOUT (Image + Info Box Always Visible)
   =================================================================== */

/* Layout fixo: imagem + info sempre visível */
#media-modal .modal-content {
    max-height: calc(100vh - 40px);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow: hidden;
    padding: 0;
}

/* Área da imagem flexível */
#media-modal .modal-media-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* Swiper e containers a ocupar a área da imagem */
#media-modal .du-swiper,
#media-modal .swiper-wrapper,
#media-modal .swiper-slide,
#media-modal .media-stage,
#media-modal .media-frame {
    height: 100%;
    max-height: 600px;
}

#media-modal .media-frame {
    line-height: 0 !important;
}

/* Imagem ajusta-se ao espaço disponível sem cortar */
#media-modal .media-frame img {
    max-height: 600px !important;
    max-width: 100%;
    object-fit: contain;
    display: block !important;
}

/* Caixa branca sempre no fundo */
#media-modal .modal-info {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 !important;
    margin-top: 0 !important;
}

/* Variante Tumblr: caixa preta com texto branco */
#media-modal .modal-info.is-tumblr {
    background: #000000;
    color: #ffffff;
}
#media-modal .modal-info.is-tumblr .modal-title,
#media-modal .modal-info.is-tumblr .modal-desc {
    color: #ffffff;
}

/* ===================================================================
   CONTACT PAGE SOCIAL LINKS
   =================================================================== */

.contact-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 32px auto 0;
    flex-wrap: wrap;
}

.contact-social__item {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.contact-social__item svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

.contact-social__item:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.contact-social__item:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

/* ===================================================================
   Polaroid scrapbook design system.
   Globals (body, grain, vignette, cursor) are scoped to body.kv-v6
   so the legacy templates keep their own look. Component classes
   (.polaroid, .btn, .section-tag, …) are unique to this design and
   don't collide with anything pre-existing.
   =================================================================== */

:root {
    --kv-bg: #0e0d0c;
    --kv-bg-2: #14110f;
    --kv-ink: #f3eee5;
    --kv-ink-dim: #a39c8f;
    --kv-ink-faint: #5a554c;
    --kv-paper: #f4ede0;
    --kv-paper-edge: #ded4c2;
    --kv-accent: #ff5a2f;
    --kv-accent-dim: #c9421f;
    --kv-line: #2a2622;
    --kv-grain-op: 0.18;
}

body.kv-v6 {
    background-color: var(--kv-bg);
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(255,90,47,0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(255,90,47,0.04), transparent 60%);
    color: var(--kv-ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grain overlay (page-wide) */
body.kv-v6::before {
    content: "";
    position: fixed; inset: 0; pointer-events: none; z-index: 1000;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
    opacity: var(--kv-grain-op);
}

/* Vignette */
body.kv-v6::after {
    content: "";
    position: fixed; inset: 0; pointer-events: none; z-index: 999;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

body.kv-v6 ::selection { background: var(--kv-accent); color: #0e0d0c; }

/* Reduced motion: kill grain animation-like noise & particle drift */
@media (prefers-reduced-motion: reduce) {
    body.kv-v6::before { opacity: 0.08; }
}

/* Type utilities */
.kv-v6 .display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.025em; }
.kv-v6 .mono    { font-family: 'JetBrains Mono', monospace; }
.kv-v6 .hand    { font-family: 'Caveat', cursive; }
.kv-v6 .accent  { color: var(--kv-accent); }

/* Layout container (KV-only) */
.kv-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

/* Polaroid card */
.polaroid {
    background: var(--kv-paper);
    padding: 14px 14px 56px 14px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 12px 24px -12px rgba(0,0,0,0.65),
        0 30px 60px -20px rgba(0,0,0,0.8);
    border: 1px solid rgba(0,0,0,0.15);
    transition: transform 480ms cubic-bezier(.2,.8,.2,1), box-shadow 480ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
    position: relative;
}
.polaroid::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
    mix-blend-mode: multiply;
    opacity: 0.5;
}
.polaroid .photo {
    position: relative;
    background: #1a1815;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.polaroid.is-portrait .photo { aspect-ratio: 3 / 4; }
.polaroid .photo > img,
.polaroid .photo > .ph {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: contrast(0.95) saturate(0.85);
}
.polaroid .photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.35;
}
.polaroid .caption {
    position: absolute;
    left: 14px; right: 14px; bottom: 12px;
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: #2a2723;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.01em;
}
.polaroid.is-clickable { cursor: pointer; }
.polaroid.is-clickable:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.03) !important;
    z-index: 50 !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 30px 50px -15px rgba(0,0,0,0.85),
        0 60px 100px -30px rgba(255,90,47,0.15);
}

/* Striped placeholder for missing imagery */
.ph {
    background:
        repeating-linear-gradient(135deg, rgba(255,90,47,0.10) 0 6px, rgba(255,90,47,0.02) 6px 14px),
        linear-gradient(180deg, #2a2622, #1a1815);
    display: flex; align-items: center; justify-content: center;
    color: var(--kv-ink-faint);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 12px;
}

/* Section header tag */
.section-tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--kv-ink-dim);
}
.section-tag .dot { width: 6px; height: 6px; background: var(--kv-accent); border-radius: 50%; }
.section-tag .num { color: var(--kv-accent); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 22px;
    background: var(--kv-accent);
    color: #0e0d0c;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    border: 1px solid var(--kv-accent);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255,90,47,0.5); }
.btn-ghost {
    background: transparent;
    color: var(--kv-ink);
    border: 1px solid var(--kv-line);
}
.btn-ghost:hover { border-color: var(--kv-accent); color: var(--kv-accent); }

/* Frame for paintings */
.frame {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2)),
        #1a1715;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.5),
        0 30px 60px -20px rgba(0,0,0,0.8),
        inset 0 0 60px rgba(0,0,0,0.4);
    position: relative;
}
.frame::before {
    content: ""; position: absolute; inset: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

/* Tape */
.tape {
    position: absolute;
    width: 90px; height: 24px;
    background: rgba(255, 220, 150, 0.55);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Particles */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particles span {
    position: absolute;
    width: 2px; height: 2px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: kv-drift 12s linear infinite;
}
@keyframes kv-drift {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(-300px) translateX(40px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .particles { display: none; }
}

/* Marquee */
@keyframes kv-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--kv-line);
    border-bottom: 1px solid var(--kv-line);
}
.marquee-track {
    display: flex; gap: 64px;
    width: max-content;
    animation: kv-marquee 40s linear infinite;
    padding: 22px 0;
}
.marquee-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--kv-ink-dim);
    display: flex; align-items: center; gap: 64px;
    white-space: nowrap;
}
.marquee-item .accent-dot { width: 8px; height: 8px; background: var(--kv-accent); border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* Custom cursor ring (desktop only) */
.cursor-ring {
    position: fixed; pointer-events: none; z-index: 9999;
    width: 36px; height: 36px;
    border: 1px solid var(--kv-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 200ms ease, height 200ms ease, opacity 200ms ease;
    mix-blend-mode: difference;
    opacity: 0;
}
@media (pointer: fine) {
    body.kv-v6 .cursor-ring { opacity: 1; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Smooth scroll for KV pages */
body.kv-v6 { scroll-behavior: smooth; }

/* Neutralise legacy card-link styling inside KV pages.
   Why: modal.js listens for clicks on .card-link, so KV polaroids
   reuse the class. The legacy rule paints a white frame+background
   meant for the old grid cards — we strip it so the polaroid's own
   paper background and shadow read on the dark page. */
body.kv-v6 .card-link {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    transition: none;
}
body.kv-v6 .card-link:hover { transform: none; }

/* KV nav (fixed top) */
.kv-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 64px;
    display: flex; align-items: center; justify-content: space-between;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(14,13,12,0.85), rgba(14,13,12,0.4));
    border-bottom: 1px solid var(--kv-line);
}
.kv-logo {
    display: inline-flex; align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 14px; letter-spacing: 0.05em;
    color: var(--kv-ink);
    text-decoration: none;
}
.kv-logo .slash {
    color: var(--kv-accent);
    margin: 0 2px;
    font-weight: 400;
}
.kv-nav-list {
    display: flex; align-items: center; gap: 36px;
    list-style: none; margin: 0; padding: 0;
}
.kv-nav-link {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--kv-ink-dim);
    display: inline-flex; align-items: baseline; gap: 8px;
    transition: color 200ms ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
}
.kv-nav-link:hover { color: var(--kv-ink); }
.kv-nav-link.is-active {
    color: var(--kv-ink);
    border-bottom-color: var(--kv-accent);
}
.kv-nav-link .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--kv-accent);
}
.kv-nav-meta {
    display: flex; align-items: center; gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.kv-nav-meta .live-dot {
    width: 6px; height: 6px;
    background: #5fbf7a;
    border-radius: 50%;
    box-shadow: 0 0 10px #5fbf7a;
}

/* Hamburger toggle (visible only at <=900px) */
.kv-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}
.kv-nav-toggle__bar {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--kv-ink);
    transition: transform 220ms ease, opacity 200ms ease;
    transform-origin: center;
}
body.kv-nav-open .kv-nav-toggle { z-index: 102; }
body.kv-nav-open .kv-nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--kv-accent);
}
body.kv-nav-open .kv-nav-toggle__bar:nth-child(2) { opacity: 0; }
body.kv-nav-open .kv-nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--kv-accent);
}

/* Mobile responsive (KV nav collapses to hamburger drawer) */
@media (max-width: 900px) {
    .kv-nav { padding: 14px 24px; }
    .kv-nav-toggle { display: flex; }
    .kv-nav-meta { display: none; }
    .kv-container { padding: 0 24px; }

    /* Drawer: full-screen overlay below the nav bar */
    .kv-nav-list {
        position: fixed;
        top: 64px; left: 0; right: 0;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 32px 24px 80px;
        background: rgba(14, 13, 12, 0.98);
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 280ms ease, visibility 0s linear 280ms;
        z-index: 101;
        overflow-y: auto;
    }
    body.kv-nav-open .kv-nav-list {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transition: opacity 280ms ease, visibility 0s linear 0s;
    }
    .kv-nav-list li {
        list-style: none;
        border-bottom: 1px solid var(--kv-line);
    }
    .kv-nav-link {
        display: flex;
        padding: 22px 0;
        font-size: 22px;
        gap: 14px;
        border-bottom: 0;
        padding-bottom: 22px;
    }
    .kv-nav-link .num {
        font-size: 11px;
        min-width: 24px;
        align-self: center;
    }
    .kv-nav-link.is-active {
        color: var(--kv-accent);
        border-bottom: 0;
    }
    /* Lock body scroll while drawer is open */
    body.kv-nav-open { overflow: hidden; }
}

/* Standalone wrapper used on /section/* and /contact/.
   Each section partial already has 160-180px top padding which is
   plenty to clear the fixed nav (~80px tall), so no extra padding
   is needed on the wrapper itself. The class stays as a hook for
   any per-page tweaks that may follow. */
.kv-standalone { display: block; }

/* Site bar (logo + copyright + version) — slim row at the bottom of
   standalone pages. Mirrors the inline footer in section-contact. */
.kv-site-bar {
    margin-top: 40px;
    padding: 32px 24px;
    border-top: 1px solid var(--kv-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.kv-site-bar__copy,
.kv-site-bar__version {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.kv-site-bar__copy { flex: 1; text-align: center; }
@media (max-width: 800px) {
    .kv-site-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .kv-site-bar__copy { text-align: left; flex: none; }
}

/* ===================================================================
   Hero — section 00
   =================================================================== */

.kv-hero {
    position: relative;
    min-height: 100vh;
    padding-top: 90px;
    overflow: hidden;
}

.kv-hero__container {
    position: relative;
    z-index: 5;
    padding-top: 60px;
}

/* Vertical "du—art" treatment */
.kv-hero__vertical-word {
    position: absolute;
    left: 200px; top: 780px;
    transform-origin: left top;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 180px;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--kv-accent);
    opacity: 0.32;
    white-space: nowrap;
    pointer-events: none;
}
.kv-hero__vertical-word-em { font-weight: 400; }

.kv-hero__vertical-mono {
    position: absolute;
    left: 28px; top: 110px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* Eyebrow row */
.kv-hero__eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}
.kv-hero__eyebrow-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.kv-hero__eyebrow-mono {
    font-size: 11px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.kv-hero__eyebrow-name {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: var(--kv-ink);
}
.kv-hero__eyebrow-right {
    font-size: 11px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Two-column composition */
.kv-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: flex-start;
}

.kv-hero__statement { position: relative; }
.kv-hero__h1 {
    font-size: clamp(64px, 7.5vw, 132px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--kv-ink);
    margin: 0 0 32px 0;
}
.kv-hero__h1-em {
    font-weight: 300;
    font-style: italic;
    color: var(--kv-ink-dim);
}

.kv-hero__lede {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 560px;
    margin-bottom: 32px;
}
.kv-hero__lede-rule {
    width: 40px; height: 1px;
    background: var(--kv-accent);
    margin-top: 12px;
    flex-shrink: 0;
}
.kv-hero__lede p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--kv-ink-dim);
    text-wrap: pretty;
    margin: 0;
}

.kv-hero__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.kv-hero__cta-num {
    font-size: 10px;
    color: var(--kv-accent);
}

/* Polaroid stack */
.kv-hero__stack {
    position: relative;
    height: 600px;
    margin-left: -40px;
}
.kv-hero__pin {
    position: absolute;
    /* Inline transform from data-parallax overrides this once JS kicks in */
    transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.kv-hero__scribble {
    position: absolute;
    top: 0; left: 30px;
    font-size: 28px;
    color: var(--kv-accent);
    transform: rotate(-8deg);
}
.kv-hero__scribble svg {
    display: block;
    margin-top: 4px;
}

/* Bottom metric strip */
.kv-hero__metrics {
    margin: 80px 0 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--kv-line);
}
.kv-hero__metric { margin: 0; }
.kv-hero__metric-key {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}
.kv-hero__metric-val {
    font-size: 28px;
    font-weight: 400;
    color: var(--kv-ink);
    margin: 0;
}

/* Hero responsive */
@media (max-width: 1100px) {
    .kv-hero__grid { grid-template-columns: 1fr; gap: 60px; }
    .kv-hero__stack { margin-left: 0; height: 540px; }
    .kv-hero__vertical-word { font-size: 120px; top: 1000px; }
}

/* ===================================================================
   Inspiration — section 01 (Tumblr wall)
   =================================================================== */

.kv-inspiration {
    position: relative;
    padding: 160px 0 80px;
    min-height: 1100px;
}

.kv-inspiration__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 60px;
    position: relative;
    z-index: 5;
}

.kv-inspiration__h2 {
    font-size: clamp(56px, 7vw, 120px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin: 24px 0 0 0;
}
.kv-inspiration__h2-em {
    font-style: italic;
    font-weight: 300;
    color: var(--kv-ink-dim);
}
.kv-inspiration__handnote {
    font-size: 28px;
    color: var(--kv-accent);
    margin: 12px 0 0 0;
    transform: rotate(-2deg);
    display: inline-block;
}

.kv-inspiration__header-right {
    max-width: 320px;
    padding-bottom: 12px;
    flex-shrink: 0;
}
.kv-inspiration__lede {
    font-size: 14px;
    line-height: 1.55;
    color: var(--kv-ink-dim);
    text-wrap: pretty;
    margin: 0;
}
.kv-inspiration__attribution {
    font-size: 12px;
    line-height: 1.55;
    color: var(--kv-ink-faint);
    text-wrap: pretty;
    margin: 12px 0 0 0;
    font-style: italic;
}
.kv-inspiration__attribution a {
    color: var(--kv-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kv-inspiration__wall {
    position: relative;
    height: 1000px;
    margin: 0 32px;
    background: transparent;
}
.kv-inspiration__wall::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255,90,47,0.04), transparent 70%);
    pointer-events: none;
}

.kv-inspiration__pin {
    position: absolute;
}
.kv-inspiration__tape {
    left: 50%; top: -10px;
    transform: translateX(-50%) rotate(-4deg);
}
.kv-inspiration__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Anchor wrapper around any polaroid that opens the lightbox modal.
   Neutralises the legacy .card-link rule (8px white border + bg) which
   would otherwise paint a white box around polaroids on dark sections.
   Stays display:block so the inner .polaroid (width:100% on filmgrid /
   width:Xpx on Hero) can resolve correctly inside any container. */
.kv-polaroid-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: transparent !important;
    border: 0 !important;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.kv-polaroid-link:hover { transform: none; }
.kv-polaroid-link:focus-visible {
    outline: 2px solid var(--kv-accent);
    outline-offset: 4px;
}
/* Inside flex/grid cells where the polaroid uses width:100%, the anchor
   would otherwise shrink to 0. Stretch it to fill the cell so the
   percentage width can resolve against a real container width. */
.kv-hobbies__filmcell .kv-polaroid-link { width: 100%; }

.kv-inspiration__empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--kv-ink-faint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 11px;
}

.kv-inspiration__pin-note {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.kv-inspiration__pin-note .mono {
    font-size: 9px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.kv-inspiration__pin-dot {
    width: 10px; height: 10px;
    background: var(--kv-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,90,47,0.2);
}
.kv-inspiration__arrow {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

.kv-inspiration__footer {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--kv-line);
}
.kv-inspiration__count {
    font-size: 11px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Inspiration responsive */
@media (max-width: 1100px) {
    .kv-inspiration__header { flex-direction: column; align-items: flex-start; }
    .kv-inspiration__header-right { max-width: 100%; }
}

/* ===================================================================
   Inspiration archive — /inspiration/archive/ (masonry + infinite)
   =================================================================== */

.kv-archive {
    position: relative;
    padding: 140px 0 100px;
}
.kv-archive__head {
    margin-bottom: 60px;
}
.kv-archive__h1 {
    font-size: clamp(56px, 7vw, 120px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin: 24px 0 0 0;
}
.kv-archive__h1-em {
    font-style: italic;
    font-weight: 300;
    color: var(--kv-ink-dim);
}
.kv-archive__handnote {
    font-size: 28px;
    color: var(--kv-accent);
    margin: 12px 0 0 0;
    transform: rotate(-2deg);
    display: inline-block;
}
.kv-archive__lede {
    font-size: 14px;
    color: var(--kv-ink-dim);
    margin: 24px 0 0 0;
    max-width: 560px;
}
.kv-archive__lede a {
    color: var(--kv-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Masonry-driven archive grid.
   Items keep margin-based spacing so Masonry's percentPosition works
   without a fixed gutter. .kv-archive__sizer is a hidden invisible
   anchor that defines the column width. */
.kv-archive__grid {
    position: relative;
    margin: 0 32px;
}
.kv-archive__sizer,
.kv-archive__cell {
    width: calc((100% - 4 * 24px) / 5);
}
.kv-archive__sizer {
    position: absolute;
    top: 0; left: 0;
    height: 0;
    visibility: hidden;
}
.kv-archive__cell {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 32px;
    /* Masonry positions absolutely, but keep inline-block as a fallback
       before init kicks in. */
}

.kv-archive__sentinel {
    height: 1px;
    margin-top: 80px;
}
.kv-archive__status {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    min-height: 16px;
}
.kv-archive__bottom-nav {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--kv-line);
    display: flex;
    justify-content: center;
}

.kv-archive__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 48px 0;
}

/* Responsive column counts via item width — Masonry just packs whatever
   width we give it. */
@media (max-width: 1280px) {
    .kv-archive__sizer,
    .kv-archive__cell { width: calc((100% - 3 * 24px) / 4); }
}
@media (max-width: 900px) {
    .kv-archive__grid { margin: 0 24px; }
    .kv-archive__sizer,
    .kv-archive__cell { width: calc((100% - 2 * 16px) / 3); }
    .kv-archive__cell { margin-bottom: 24px; }
}
@media (max-width: 600px) {
    .kv-archive__sizer,
    .kv-archive__cell { width: calc((100% - 12px) / 2); }
}

/* ===================================================================
   Modal lightbox dressed as a polaroid card.
   Reuses the existing #media-modal markup; only the visuals change
   while a polaroid-themed page is the host.
   =================================================================== */

body.kv-v6 #media-modal {
    background: rgba(8, 7, 6, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* Polaroid card.
   The bottom cream "footer" comes from the .modal-info's own top
   padding (28px) plus the card's bottom padding (24px) — together
   that's the classic polaroid footer with the caption centred.
   Most properties carry !important because the legacy .modal-content
   rule (line ~326) is a low-specificity universal rule that still wins
   in places where its declarations come later in the cascade. */
body.kv-v6 #media-modal .modal-content {
    background: var(--kv-paper) !important;
    padding: 18px 18px 24px 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 30px 50px -15px rgba(0, 0, 0, 0.85),
        0 60px 100px -30px rgba(255, 90, 47, 0.15) !important;
    transform: rotate(-1deg) !important;
    width: auto !important;
    /* Cap the card width so a long caption (e.g. a race description with
       hand-written quote and stats) wraps inside the card instead of
       stretching it to fill the viewport. */
    max-width: min(92vw, 720px) !important;
    max-height: 92vh !important;
    overflow: visible !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: relative !important;
}
/* Paper grain on the card */
body.kv-v6 #media-modal .modal-content::after {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
    mix-blend-mode: multiply;
    opacity: 0.5;
}

/* Photo region (dark, like .polaroid .photo) */
body.kv-v6 #media-modal .modal-media-wrapper {
    background: #1a1815;
    overflow: hidden;
    max-height: 70vh !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    position: relative;
}
body.kv-v6 #media-modal .media-frame {
    line-height: 0 !important;
    background: #1a1815;
    max-height: 70vh !important;
    height: auto !important;
    /* Neutralise the legacy 8px white passe-partout (style.css:1310). On
       the polaroid card, the cream paper already frames the photo — an
       extra white border just looks like a misplaced inner box. */
    border: 0 !important;
}
body.kv-v6 #media-modal .media-frame img {
    max-height: 70vh !important;
    /* Constrained by the card (.modal-content) instead of the viewport so
       a long caption that wraps below the photo doesn't end up wider
       than the photo itself. */
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block !important;
    filter: contrast(0.95) saturate(0.85);
}
/* Film grain on the photo */
body.kv-v6 #media-modal .modal-media-wrapper::after {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.35;
}

/* Caption block — sits in the polaroid's cream footer in normal flex
   flow. We force-override the inline width that the modal JS sets (it
   was meant for the legacy white box that hugged the image edge); now
   the caption can span the polaroid card width. */
body.kv-v6 #media-modal .modal-info,
body.kv-v6 #media-modal .modal-info.is-tumblr {
    position: static !important;
    background: transparent !important;
    color: #2a2723 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 28px 4px 0 4px !important;
    text-align: center;
    flex: 0 0 auto !important;
    z-index: 2;
}
/* Honour the JS-set display:none when there's no caption */
body.kv-v6 #media-modal .modal-info[style*="display: none"] {
    display: none !important;
}
body.kv-v6 #media-modal .modal-title {
    font-family: 'Caveat', cursive !important;
    font-weight: 500 !important;
    font-size: 28px !important;
    color: #2a2723 !important;
    line-height: 1.05 !important;
    letter-spacing: 0.01em !important;
    margin: 0 0 6px 0 !important;
    text-transform: none !important;
}
body.kv-v6 #media-modal .modal-desc {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    color: #5a554c !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}
body.kv-v6 #media-modal .modal-info.is-tumblr .modal-title,
body.kv-v6 #media-modal .modal-info.is-tumblr .modal-desc {
    color: #2a2723 !important;
}

/* Close button — accent-coloured ring, kept readable on the paper card.
   The legacy modal JS hardcodes 44x77 (the navigation-arrow size) when
   positioning this button; force a square close-button shape regardless,
   so we don't depend on every JS code path being updated in lockstep. */
body.kv-v6 #media-modal .modal-close {
    background: transparent !important;
    color: var(--kv-accent) !important;
    border: 1px solid var(--kv-accent) !important;
    font-family: 'JetBrains Mono', monospace !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 6px 10px !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Nav arrows — keep the look but match the KV palette */
body.kv-v6 #media-modal .modal-nav {
    background: rgba(14, 13, 12, 0.6) !important;
    color: var(--kv-paper) !important;
    border-color: rgba(244, 237, 224, 0.25) !important;
}
body.kv-v6 #media-modal .modal-nav:hover {
    background: var(--kv-accent) !important;
    color: #0e0d0c !important;
    border-color: var(--kv-accent) !important;
}

/* Mobile: kill the rotation so the card fits cleanly */
@media (max-width: 700px) {
    body.kv-v6 #media-modal .modal-content {
        transform: none !important;
        padding: 12px 12px 18px 12px !important;
    }
    body.kv-v6 #media-modal .modal-info,
    body.kv-v6 #media-modal .modal-info.is-tumblr {
        padding: 20px 4px 0 4px !important;
    }
    body.kv-v6 #media-modal .modal-title { font-size: 24px !important; }
}
@media (max-width: 900px) {
    /* Wall is hand-positioned for desktop. On mobile we collapse it into a
       simple flow grid so polaroids stay legible. */
    .kv-inspiration { padding: 100px 0 60px; min-height: 0; }
    .kv-inspiration__wall {
        position: static;
        height: auto;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 12px;
        padding: 0 16px;
    }
    .kv-inspiration__pin {
        position: static !important;
        display: flex;
        justify-content: center;
    }
    .kv-inspiration__pin > a {
        width: 100%;
        max-width: 100%;
    }
    /* Force polaroids inside the wall to fit their grid cell. The
       inline widths emitted by du_polaroid() are desktop-targeted —
       but we keep the rotation so the wall doesn't feel like a uniform
       grid of straight cards. */
    .kv-inspiration__wall .polaroid {
        width: 100% !important;
        max-width: 170px !important;
    }
    .kv-inspiration__tape,
    .kv-inspiration__pin-note,
    .kv-inspiration__arrow { display: none; }
    .kv-inspiration__footer { flex-direction: column; align-items: flex-start; }
    .kv-inspiration__h2 { font-size: clamp(40px, 11vw, 72px); }
}
@media (max-width: 700px) {
    .kv-hero { padding-top: 70px; }
    .kv-hero__container { padding-top: 24px; }
    .kv-hero__eyebrow { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 32px; }
    .kv-hero__eyebrow-right { display: none; }
    .kv-hero__h1 { font-size: clamp(44px, 12vw, 84px); }
    .kv-hero__metrics { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 60px; }
    .kv-hero__metric-val { font-size: 22px; }
    .kv-hero__vertical-word, .kv-hero__vertical-mono { display: none; }

    /* On mobile turn the absolutely-positioned hero stack into a
       compact 2×2 scrapbook so all four polaroids stay visible
       (each retains its inline rotation for character). */
    .kv-hero__stack {
        position: relative;
        height: auto;
        margin: 24px 0 0 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
        padding: 16px 4px 0;
        transform: none !important;
    }
    .kv-hero__pin {
        position: static !important;
        transform: none !important;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    .kv-hero__pin .polaroid {
        width: 100% !important;
        max-width: 170px !important;
    }
    /* Let each photo keep its natural aspect ratio on mobile so the
       polaroids stop looking uniformly tall regardless of source image. */
    .kv-hero__pin .polaroid:has(img) .photo {
        aspect-ratio: auto;
        height: auto;
    }
    .kv-hero__pin .polaroid:has(img) .photo > img {
        position: static;
        width: 100%;
        height: auto;
        display: block;
    }
    /* Slightly smaller handwritten caption on mobile so 2-line captions
       like "me, at work · 10 yrs" don't dominate the polaroid footer. */
    .kv-hero__pin .polaroid .caption {
        font-size: 16px;
        line-height: 1.05;
    }
    .kv-hero__scribble { display: none; }
}

/* ===================================================================
   Paintings — section 02
   =================================================================== */

.kv-paintings {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4) 50%, transparent);
}

.kv-paintings__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 80px;
}
.kv-paintings__h2 {
    font-size: clamp(56px, 7vw, 120px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin: 24px 0 0 0;
}
.kv-paintings__h2-em {
    font-style: italic;
    font-weight: 300;
    color: var(--kv-ink-dim);
}
.kv-paintings__header-right {
    max-width: 320px;
    padding-bottom: 12px;
}
.kv-paintings__lede {
    font-size: 14px;
    line-height: 1.55;
    color: var(--kv-ink-dim);
    text-wrap: pretty;
    margin: 0;
}

.kv-paintings__empty {
    padding: 48px 0;
    color: var(--kv-ink-faint);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.kv-paintings__empty code,
.kv-paintings__empty em {
    font-style: normal;
    color: var(--kv-accent);
}

/* Gallery grid: framed canvas + side panel */
.kv-paintings__gallery {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 64px;
    align-items: flex-start;
}

.kv-paintings__canvas {
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    display: block;
    overflow: hidden;
    position: relative;
}
.kv-paintings__canvas img,
.kv-paintings__canvas .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Side detail panel */
.kv-paintings__detail { color: var(--kv-ink); }
.kv-paintings__plate {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.kv-paintings__title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
}

.kv-paintings__specs {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px 24px;
    margin: 0 0 32px 0;
}
.kv-paintings__specs dt {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding-top: 4px;
    margin: 0;
}
.kv-paintings__specs dd {
    font-size: 14px;
    color: var(--kv-ink);
    border-bottom: 1px solid var(--kv-line);
    padding: 0 0 8px 0;
    margin: 0;
}

.kv-paintings__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--kv-ink-dim);
    text-wrap: pretty;
    margin: 0 0 32px 0;
}

.kv-paintings__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.kv-paintings__thumb {
    width: 56px;
    height: 56px;
    border: 0;
    padding: 0;
    background: #1a1815;
    cursor: pointer;
    outline: 1px solid var(--kv-line);
    outline-offset: 2px;
    transition: outline-color 200ms ease;
    overflow: hidden;
}
.kv-paintings__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(0.95) saturate(0.85);
}
.kv-paintings__thumb-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.15em;
}
.kv-paintings__thumb.is-active { outline-color: var(--kv-accent); }
.kv-paintings__thumb:hover     { outline-color: var(--kv-ink-dim); }
.kv-paintings__thumb.is-active:hover { outline-color: var(--kv-accent); }

.kv-paintings__cta {
    display: flex;
    gap: 12px;
}

/* Process videos row */
.kv-paintings__process { margin-top: 100px; }
.kv-paintings__process-tag {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.kv-paintings__process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.kv-paintings__video {
    margin: 0;
    position: relative;
    background: #1a1815;
    border: 1px solid var(--kv-line);
    overflow: hidden;
    transition: border-color 300ms ease, transform 300ms ease;
}
.kv-paintings__video:hover { border-color: var(--kv-accent); }
.kv-paintings__video-el {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0e0d0c;
}
.kv-paintings__video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--kv-ink-faint);
    background:
        repeating-linear-gradient(135deg, rgba(255,90,47,0.08) 0 6px, rgba(255,90,47,0.02) 6px 14px),
        linear-gradient(180deg, #2a2622, #1a1815);
}
.kv-paintings__video-placeholder svg { color: var(--kv-accent); opacity: 0.7; }
.kv-paintings__video-placeholder .mono {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}
.kv-paintings__video-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 18px;
    border-top: 1px solid var(--kv-line);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--kv-ink-dim);
    background: #14110f;
}
.kv-paintings__video-caption { color: var(--kv-accent); text-transform: uppercase; }

/* Paintings responsive */
@media (max-width: 1100px) {
    .kv-paintings { padding: 120px 0 80px; }
    .kv-paintings__header { flex-direction: column; align-items: flex-start; }
    .kv-paintings__header-right { max-width: 100%; }
    .kv-paintings__gallery { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 700px) {
    .kv-paintings { padding: 80px 0 60px; }
    .kv-paintings__h2 { font-size: clamp(40px, 11vw, 72px); }
    .kv-paintings__title { font-size: 28px; }
    .kv-paintings__specs { grid-template-columns: 70px 1fr; gap: 8px 16px; }
    .kv-paintings__process { margin-top: 60px; }
    .kv-paintings__process-grid { grid-template-columns: 1fr; gap: 24px; }
    .kv-paintings__cta { flex-wrap: wrap; }
    .kv-paintings__cta .btn { flex: 1 1 0; justify-content: center; min-width: 140px; }
}

/* ===================================================================
   Job — section 03
   =================================================================== */

.kv-job {
    position: relative;
    padding: 180px 0 140px;
    border-top: 1px solid var(--kv-line);
    background: linear-gradient(180deg, transparent, rgba(255, 90, 47, 0.025));
}

/* ---- Header: title + manifesto ---- */
.kv-job__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 100px;
    align-items: flex-start;
}
.kv-job__title-col {
    position: sticky;
    top: 100px;
}
.kv-job__h2 {
    font-size: clamp(56px, 7vw, 120px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin: 28px 0 32px 0;
}
.kv-job__h2-em {
    font-style: italic;
    font-weight: 300;
    color: var(--kv-ink-dim);
}
.kv-job__sub {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--kv-ink);
    max-width: 480px;
    text-wrap: balance;
    margin: 0;
}
.kv-job__badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.kv-job__badge {
    font-size: 11px;
    color: var(--kv-ink-dim);
    padding: 6px 12px;
    border: 1px solid var(--kv-line);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.kv-job__badge--accent {
    color: var(--kv-accent);
    border-color: var(--kv-accent);
}

/* Manifesto column */
.kv-job__manifesto { padding-top: 12px; }
.kv-job__manifesto-tag {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.kv-job__manifesto-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--kv-ink-dim);
    text-wrap: pretty;
}
.kv-job__manifesto-body p { margin: 0; }
.kv-job__hl { color: var(--kv-ink); }
.kv-job__manifesto-body em {
    font-style: italic;
    color: var(--kv-ink);
}

.kv-job__pullquote {
    margin: 40px 0 0 0;
    padding: 28px 0 0 24px;
    border-left: 2px solid var(--kv-accent);
}
.kv-job__pullquote p {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--kv-ink);
    text-wrap: balance;
    margin: 0;
}
.kv-job__pullquote-em {
    color: var(--kv-accent);
    font-style: italic;
}

/* ---- Capabilities block ---- */
.kv-job__caps-block { margin-bottom: 120px; }
.kv-job__caps-head,
.kv-job__milestones-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--kv-line);
    gap: 24px;
}
.kv-job__caps-head .mono,
.kv-job__milestones-head .mono {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.kv-job__caps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--kv-line);
}
.kv-job__cap {
    appearance: none;
    -webkit-appearance: none;
    padding: 36px 28px;
    background: transparent;
    color: var(--kv-ink);
    border: 0;
    border-right: 1px solid var(--kv-line);
    transition: background 280ms ease, color 280ms ease;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    font: inherit;
}
.kv-job__cap:last-child { border-right: 0; }
.kv-job__cap:hover,
.kv-job__cap:focus-visible,
.kv-job__cap.is-active {
    background: var(--kv-accent);
    color: #0e0d0c;
    outline: 0;
}
.kv-job__cap-arrow {
    font-size: 11px;
    opacity: 0.7;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.kv-job__cap-arrow::before { content: "— "; }
.kv-job__cap:hover .kv-job__cap-arrow::before,
.kv-job__cap:focus-visible .kv-job__cap-arrow::before,
.kv-job__cap.is-active .kv-job__cap-arrow::before { content: "↗ "; }
.kv-job__cap-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}
.kv-job__cap-meta {
    font-size: 10px;
    opacity: 0.7;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Detail pane below the cards */
.kv-job__cap-detail {
    display: grid;
    grid-template-columns: 60px 1fr 200px;
    align-items: flex-start;
    padding: 32px 0 0;
    gap: 32px;
}
/* Flash hint when the active capability changes (mobile especially):
   gives a clear visual signal that the text below updated. */
@keyframes kv-job-cap-flash {
    0%   { background: rgba(255, 90, 47, 0.0); }
    20%  { background: rgba(255, 90, 47, 0.10); }
    100% { background: rgba(255, 90, 47, 0.0); }
}
.kv-job__cap-detail--flash { animation: kv-job-cap-flash 600ms ease-out; }
@media (prefers-reduced-motion: reduce) {
    .kv-job__cap-detail--flash { animation: none; }
}
.kv-job__cap-detail-num {
    font-size: 11px;
    color: var(--kv-accent);
    letter-spacing: 0.2em;
    padding-top: 6px;
}
.kv-job__cap-detail-text {
    font-size: 17px;
    line-height: 1.55;
    color: var(--kv-ink);
    text-wrap: pretty;
    max-width: 720px;
    margin: 0;
}
.kv-job__cap-detail-bars {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}
.kv-job__cap-detail-bar {
    width: 24px;
    height: 2px;
    background: var(--kv-line);
    transition: background 280ms ease;
}
.kv-job__cap-detail-bar.is-active { background: var(--kv-accent); }

/* ---- Milestones ---- */
.kv-job__milestones { margin-bottom: 80px; }

.kv-job__row {
    display: grid;
    grid-template-columns: 50px 1.4fr 2fr 0.8fr 80px;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--kv-line);
    color: var(--kv-ink);
    transition: padding 300ms ease;
    position: relative;
}
.kv-job__row:hover { padding-left: 20px; }
.kv-job__row-num {
    font-size: 11px;
    color: var(--kv-accent);
    letter-spacing: 0.2em;
}
.kv-job__row-org {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.015em;
    transition: color 300ms ease;
}
.kv-job__row:hover .kv-job__row-org { color: var(--kv-accent); }
.kv-job__row-note {
    font-size: 14px;
    color: var(--kv-ink-dim);
    line-height: 1.45;
    text-wrap: pretty;
}
.kv-job__row-tag {
    font-size: 10px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: left;
}
.kv-job__row-year {
    font-size: 11px;
    color: var(--kv-ink-dim);
    text-align: right;
}

/* ---- Closer strip ---- */
.kv-job__closer {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--kv-line);
}
.kv-job__closer-key {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.kv-job__closer-val {
    font-size: 22px;
    font-weight: 400;
    color: var(--kv-ink);
    letter-spacing: -0.01em;
}

/* ---- Job responsive ---- */
@media (max-width: 1100px) {
    .kv-job { padding: 120px 0 100px; }
    .kv-job__header { grid-template-columns: 1fr; gap: 48px; }
    .kv-job__title-col { position: static; }
    .kv-job__caps {
        grid-template-columns: repeat(2, 1fr);
    }
    .kv-job__cap { min-height: 180px; padding: 28px 20px; }
    .kv-job__cap:nth-child(2n) { border-right: 0; }
    .kv-job__cap:nth-child(-n+2) { border-bottom: 1px solid var(--kv-line); }
    .kv-job__cap-detail { grid-template-columns: 50px 1fr; row-gap: 20px; }
    .kv-job__cap-detail-bars { grid-column: 1 / -1; justify-content: flex-start; }
    .kv-job__row {
        grid-template-columns: 40px 1fr 60px;
        gap: 12px;
    }
    .kv-job__row-note,
    .kv-job__row-tag { display: none; }
    .kv-job__closer { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .kv-job { padding: 80px 0 60px; }
    .kv-job__h2 { font-size: clamp(40px, 11vw, 72px); }
    .kv-job__sub { font-size: 22px; }
    .kv-job__pullquote p { font-size: 18px; }
    .kv-job__caps-head,
    .kv-job__milestones-head { flex-direction: column; gap: 6px; align-items: flex-start; }
    .kv-job__caps { grid-template-columns: 1fr; }
    /* Compact cards on mobile: number + title + meta in a single tight
       row, no big min-height. Keeps the whole capabilities + detail
       pane visible together so the user sees the detail change after
       tapping a card. */
    .kv-job__cap {
        border-right: 0;
        border-bottom: 1px solid var(--kv-line);
        min-height: 0;
        padding: 18px 18px;
        gap: 4px;
    }
    .kv-job__cap-title { font-size: 22px; margin-bottom: 4px; }
    .kv-job__cap:last-of-type { border-bottom: 0; }
    .kv-job__row {
        grid-template-columns: 1fr auto;
        gap: 6px;
        padding: 22px 0;
    }
    .kv-job__row-num { display: none; }
    .kv-job__row-org { font-size: 22px; grid-column: 1 / -1; }
    .kv-job__row-year { font-size: 10px; }
    .kv-job__row:hover { padding-left: 12px; }
    .kv-job__closer-val { font-size: 18px; }
}

/* ===================================================================
   Hobbies — section 04
   =================================================================== */

.kv-hobbies {
    position: relative;
    padding: 160px 0 120px;
}

.kv-hobbies__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 80px;
}
.kv-hobbies__h2 {
    font-size: clamp(56px, 7vw, 120px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin: 24px 0 0 0;
}
.kv-hobbies__h2-em {
    font-style: italic;
    font-weight: 300;
    color: var(--kv-ink-dim);
}
.kv-hobbies__handnote {
    font-size: 28px;
    color: var(--kv-accent);
    margin: 12px 0 0 0;
    transform: rotate(-2deg);
    display: inline-block;
}

/* Scrapbook layout (desktop only) */
.kv-hobbies__scrapbook {
    position: relative;
    margin: 0 32px;
    min-height: 1100px;
}
.kv-hobbies__col-tag {
    font-size: 10px;
    color: var(--kv-accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Left column: race timeline */
.kv-hobbies__col--left {
    position: absolute;
    top: 0;
    left: 4%;
    width: 46%;
}

.kv-hobbies__race {
    margin-bottom: 80px;
    position: relative;
}
.kv-hobbies__race--quote {
    margin-left: 60px;
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
.kv-hobbies__race--bare { margin-bottom: 0; }

/* Race log card (sits beside polaroid 1) */
.kv-hobbies__racelog {
    position: absolute;
    top: 60px;
    left: 320px;
    max-width: 280px;
    padding: 20px 24px;
    background: rgba(20, 17, 15, 0.7);
    border: 1px solid var(--kv-line);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.kv-hobbies__racelog-tag {
    font-size: 9px;
    color: var(--kv-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.kv-hobbies__racelog-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 8px 0;
    color: var(--kv-ink);
}
.kv-hobbies__racelog-note {
    font-size: 13px;
    color: var(--kv-ink-dim);
    line-height: 1.5;
    margin: 0;
}
.kv-hobbies__racelog-distances {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--kv-ink-dim);
}

/* Race 2: handwritten quote beside polaroid */
.kv-hobbies__quote {
    max-width: 220px;
    margin-top: 50px;
    font-size: 22px;
    color: var(--kv-ink);
    transform: rotate(3deg);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kv-hobbies__quote-line.accent { color: var(--kv-accent); }

/* Right column: film + studio */
.kv-hobbies__col--right {
    position: absolute;
    top: 80px;
    right: 4%;
    width: 40%;
}

.kv-hobbies__filmgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 60px;
}
.kv-hobbies__filmcell {
    display: flex;
    justify-content: center;
}

/* Studio note */
.kv-hobbies__studio {
    padding: 32px;
    background: var(--kv-bg-2);
    border: 1px solid var(--kv-line);
    position: relative;
    transform: rotate(-1.5deg);
}
.kv-hobbies__studio-tape {
    left: 24px;
    top: -12px;
    transform: rotate(-3deg);
}
.kv-hobbies__studio-tag {
    font-size: 10px;
    color: var(--kv-accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.kv-hobbies__studio-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--kv-ink);
    text-wrap: pretty;
    margin: 0 0 12px 0;
}
.kv-hobbies__studio-sig {
    font-size: 22px;
    color: var(--kv-accent);
    text-align: right;
}

/* Hobbies responsive */
@media (max-width: 1100px) {
    .kv-hobbies { padding: 120px 0 100px; }
    .kv-hobbies__scrapbook {
        position: static;
        margin: 0 24px;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    .kv-hobbies__col--left,
    .kv-hobbies__col--right {
        position: static;
        width: 100%;
    }
    /* Race log card no longer floats — flow it under the polaroid */
    .kv-hobbies__racelog {
        position: static;
        max-width: 100%;
        margin: 16px 0 0 0;
    }
    .kv-hobbies__race--quote { margin-left: 0; }
    .kv-hobbies__filmgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 800px) {
    .kv-hobbies { padding: 80px 0 60px; }
    .kv-hobbies__h2 { font-size: clamp(40px, 11vw, 72px); }
    .kv-hobbies__scrapbook {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .kv-hobbies__race--quote {
        flex-direction: column;
        gap: 20px;
    }
    .kv-hobbies__quote {
        margin-top: 0;
        max-width: 100%;
        transform: rotate(0);
    }
    .kv-hobbies__filmgrid { grid-template-columns: repeat(2, 1fr); }
    .kv-hobbies__studio { transform: rotate(0); }
    /* Race polaroids have fixed pixel widths (300/260/240) for the
       desktop scrapbook. On phones we let them shrink with the column. */
    .kv-hobbies__race .polaroid {
        width: 100% !important;
        max-width: 320px !important;
        transform: rotate(0) !important;
    }
    /* The anchor wrapper must stretch on phones — its flex parent
       (.kv-hobbies__race--quote with align-items:flex-start in column
       direction) otherwise leaves it at shrink-to-fit width 0, and the
       polaroid inside (width:100%) collapses with it. */
    .kv-hobbies__race .kv-polaroid-link {
        width: 100%;
        max-width: 320px;
    }
}

/* ===================================================================
   Contact / Footer — section 05.
   Form posts to /wp-json/du/v1/contact (saves as du_message);
   reCAPTCHA loads only when a site key is configured.
   =================================================================== */

.kv-contact {
    position: relative;
    padding: 160px 0 60px;
    border-top: 1px solid var(--kv-line);
}

.kv-contact__h2 {
    font-size: clamp(72px, 10vw, 180px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 32px 0 80px 0;
    color: var(--kv-ink);
}
.kv-contact__h2-em {
    font-style: italic;
    font-weight: 300;
    color: var(--kv-ink-dim);
}
.kv-contact__h2-accent { color: var(--kv-accent); }

/* Form + side meta layout */
.kv-contact__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--kv-line);
    margin-bottom: 80px;
}

.kv-contact__col-tag {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.kv-contact__col-tag.accent { color: var(--kv-accent); }

/* ---- Form column ---- */
.kv-contact__form-col { min-width: 0; }
.kv-contact__form-h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--kv-ink);
    margin: 0 0 8px 0;
    text-wrap: balance;
}
.kv-contact__form-lede {
    font-size: 14px;
    line-height: 1.55;
    color: var(--kv-ink-dim);
    margin: 0 0 40px 0;
}

.kv-contact__honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.kv-contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.kv-contact__field { margin-bottom: 32px; }
.kv-contact__row .kv-contact__field { margin-bottom: 0; }

.kv-contact__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.kv-contact__label-hint,
.kv-contact__label-counter {
    color: var(--kv-ink-faint);
    font-size: 10px;
    letter-spacing: 0.2em;
}
.kv-contact__err {
    color: var(--kv-accent);
    letter-spacing: 0.15em;
    display: none;
}
.form-group.is-error .kv-contact__err { display: inline-block; }

/* Inputs — underline-only, dark theme.
   Override the legacy .contact-box rules (which target page-id-1406)
   shouldn't apply here, but we still bump specificity with body.kv-v6. */
body.kv-v6 .kv-contact__input {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--kv-line);
    color: var(--kv-ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    border-radius: 0;
    outline: 0;
    transition: border-color 200ms ease;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
body.kv-v6 .kv-contact__input::placeholder {
    color: var(--kv-ink-faint);
    opacity: 1;
}
body.kv-v6 .kv-contact__input:focus,
body.kv-v6 .kv-contact__input:hover {
    border-bottom-color: var(--kv-accent);
    background: transparent;
}
body.kv-v6 .form-group.is-error .kv-contact__input {
    border-bottom-color: var(--kv-accent);
}
body.kv-v6 .kv-contact__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

/* Optional reCAPTCHA spacing */
.kv-contact__recaptcha { margin: 0 0 32px 0; }

/* Consent — custom checkbox in a bordered card */
.kv-contact__consent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    margin: 0 0 32px 0;
    padding: 16px 18px;
    border: 1px solid var(--kv-line);
    background: rgba(20, 17, 15, 0.4);
    position: relative;
    flex-wrap: wrap;
}
.kv-contact__consent-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
.kv-contact__consent-box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1px solid var(--kv-line);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease, border-color 200ms ease;
    position: relative;
}
.kv-contact__consent-input:checked + .kv-contact__consent-box { background: var(--kv-accent); border-color: var(--kv-accent); }
.kv-contact__consent-input:checked + .kv-contact__consent-box::after {
    content: "✓";
    color: #0e0d0c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.kv-contact__consent.is-error .kv-contact__consent-box,
.form-group.is-error .kv-contact__consent-box {
    border-color: var(--kv-accent);
}
.kv-contact__consent-text {
    flex: 1 1 200px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--kv-ink-dim);
}
.kv-contact__consent-strong { color: var(--kv-ink); }
.kv-contact__consent-err {
    flex-basis: 100%;
    color: var(--kv-accent);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: none;
    margin-top: 8px;
    margin-left: 30px;
}

.kv-contact__submit-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.kv-contact__submit { padding: 14px 22px; }
.kv-contact__submit:disabled { opacity: 0.6; cursor: progress; }
.kv-contact__submit-meta {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.kv-contact__feedback {
    margin-top: 24px;
    font-size: 13px;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border: 1px solid var(--kv-line);
    color: var(--kv-ink-dim);
    display: none;
}
.kv-contact__feedback.is-success {
    color: var(--kv-accent);
    border-color: var(--kv-accent);
    background: rgba(255, 90, 47, 0.04);
    display: block;
}
.kv-contact__feedback.is-error {
    color: var(--kv-accent);
    border-color: var(--kv-accent);
    display: block;
}

/* Success card (KV) — replaces the form on submit */
.kv-contact__sent {
    padding: 40px 32px;
    border: 1px solid var(--kv-accent);
    background: rgba(255, 90, 47, 0.04);
    position: relative;
}
.kv-contact__sent[hidden] { display: none; }
.kv-contact__sent-tag {
    font-size: 10px;
    color: var(--kv-accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.kv-contact__sent-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 8px 0;
    color: var(--kv-ink);
}
.kv-contact__sent-body {
    font-size: 14px;
    color: var(--kv-ink-dim);
    line-height: 1.55;
    margin: 0;
}
.kv-contact__sent-again {
    margin-top: 24px;
    background: transparent;
    border: 0;
    color: var(--kv-accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
}

/* ---- Side meta column ---- */
.kv-contact__meta { padding-top: 8px; }
.kv-contact__reply-window {
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--kv-ink);
    margin-bottom: 6px;
}
.kv-contact__reply-blurb {
    font-size: 13px;
    color: var(--kv-ink-dim);
    line-height: 1.55;
    margin: 0 0 40px 0;
}

.kv-contact__socials {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}
.kv-contact__social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--kv-line);
    text-decoration: none;
    color: var(--kv-ink);
    font-size: 14px;
    transition: color 200ms ease;
}
.kv-contact__social:hover { color: var(--kv-accent); }
.kv-contact__social-dash {
    width: 14px;
    height: 1px;
    background: var(--kv-accent);
    transition: width 240ms ease;
    flex-shrink: 0;
}
.kv-contact__social:hover .kv-contact__social-dash { width: 32px; }
.kv-contact__social-name { flex: 1; }
.kv-contact__social-handle {
    font-size: 10px;
    color: var(--kv-ink-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.kv-contact__based {
    font-size: 14px;
    color: var(--kv-ink-dim);
    line-height: 1.55;
}
.kv-contact__based-sub { color: var(--kv-ink-faint); }

/* Marquee group reset */
.kv-contact__marquee-group { display: flex; gap: 64px; }

/* Footer bar */
.kv-contact__footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.kv-contact__copy,
.kv-contact__version {
    font-size: 10px;
    color: var(--kv-ink-faint);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.kv-contact__copy { flex: 1; text-align: center; }

/* ---- Contact responsive ---- */
@media (max-width: 1100px) {
    .kv-contact { padding: 120px 0 60px; }
    .kv-contact__grid {
        grid-template-columns: 1fr;
        gap: 56px;
        padding-top: 32px;
    }
    .kv-contact__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
    .kv-contact { padding: 100px 0 60px; }
    .kv-contact__h2 { font-size: clamp(48px, 14vw, 96px); margin-bottom: 56px; }
    .kv-contact__grid { gap: 48px; }
    .kv-contact__row { grid-template-columns: 1fr; gap: 32px; }
    .kv-contact__form-h3 { font-size: 24px; }
    .kv-contact__submit-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .kv-contact__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .kv-contact__copy { text-align: left; flex: none; }
    .marquee-item { font-size: 20px; }
}