/**
 * Horizontal Scroll Projects - Frontend CSS
 * Huisstijl: The New School
 */

/* ── TNS typografie variabelen ── */
.hsp-section {
    --hsp-bg: #ffffff;
    --hsp-text: #102F49;
    --hsp-gold: #BFA46A;
    --hsp-card-w: 550px;
    --hsp-gap: 30px;
    --hsp-ratio: 4/3;
    --hsp-pad: clamp(20px, 5vw, 80px);

    /* TNS fonts */
    --hsp-font-heading: 'Hind', -apple-system, BlinkMacSystemFont, sans-serif;
    --hsp-font-body:    'Helvetica Now Display', 'Helvetica Neue', Arial, sans-serif;

    position: relative;
    background: var(--hsp-bg);
    color: var(--hsp-text);
    width: 100%;
    font-family: var(--hsp-font-body);
}

.hsp-section * { box-sizing: border-box; }

/* Pin spacer styling (created by ScrollTrigger) */
.hsp-section .pin-spacer {
    background: var(--hsp-bg) !important;
}

.hsp-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
    background: var(--hsp-bg);
    position: sticky;
    top: 0;
}

/* Header */
.hsp-header { margin-bottom: 50px; }

.hsp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--hsp-pad);
}

/* Eyebrow / subtitle — goud, uppercase, klein */
.hsp-subtitle {
    font-family: var(--hsp-font-body);
    font-size: clamp(11px, 1vw, 13px);
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hsp-gold);
    margin: 0 0 12px;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Streepje voor eyebrow, net als TNS blocks */
.hsp-subtitle::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--hsp-gold);
    flex-shrink: 0;
}

/* Hoofdtitel — TNS heading stijl */
.hsp-title {
    font-family: var(--hsp-font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 0.95;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--hsp-text);
}

/* Scroll area */
.hsp-scroll-area {
    width: 100%;
    overflow: hidden;
}

.hsp-container-left {
    max-width: 1400px;
    margin-left: auto;
    margin-right: 0;
    padding-left: var(--hsp-pad);
}

@media (min-width: 1480px) {
    .hsp-container-left {
        margin-left: max(var(--hsp-pad), calc((100vw - 1400px) / 2));
        max-width: none;
    }
}

.hsp-track {
    display: flex;
    gap: var(--hsp-gap);
    padding-right: var(--hsp-pad);
    will-change: transform;
}

/* Cards */
.hsp-card {
    flex: 0 0 var(--hsp-card-w);
    width: var(--hsp-card-w);
}

.hsp-card-inner {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
}

a.hsp-card-inner:hover { transform: translateY(-6px); }

.hsp-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: var(--hsp-ratio);
    border-radius: 0;
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 20px;
}

.hsp-card-media img,
.hsp-video-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hsp-card-inner:hover .hsp-card-media img,
.hsp-card-inner:hover .hsp-video-self video {
    transform: scale(1.05);
}

/* "Bekijk project" pill op hover */

/* Overlay verwijderd — content staat nu onder de foto */

.hsp-view-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: transparent;
    color: var(--hsp-gold, #BFA46A);
    font-family: var(--hsp-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all 0.25s ease;
    pointer-events: none;
}

.hsp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.hsp-placeholder svg {
    width: 50px;
    height: 50px;
    opacity: 0.3;
}

.hsp-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.hsp-video iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%) scale(1.5);
    transform-origin: center center;
    border: none;
    pointer-events: none;
}

.hsp-video-self video {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hsp-card-content { padding: 0 4px; }

.hsp-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* Kaarttitel — overschreven door USP-stijl onderaan */
.hsp-card-title {
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
}

/* Categorieën — altijd onder de titel, goud, klein, uppercase */
.hsp-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.hsp-card-cats {
    font-family: var(--hsp-font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--hsp-gold);
    opacity: 1;
    white-space: nowrap;
}

/* Beschrijving */
.hsp-card-desc {
    font-family: var(--hsp-font-body);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    line-height: 1.65;
    margin: 0;
    color: #000000;
}

/* Lees meer */
.hsp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-family: var(--hsp-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--hsp-gold);
    opacity: 0.8;
    transition: opacity 0.25s ease, gap 0.25s ease;
}

.hsp-read-more::after {
    content: '→';
    font-size: 0.9em;
}

a.hsp-card-inner:hover .hsp-read-more {
    opacity: 1;
    gap: 8px;
}

.hsp-error {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hsp-section { --hsp-card-w: 420px; --hsp-gap: 24px; }
    .hsp-wrapper { padding: 50px 0; }
    .hsp-header { margin-bottom: 40px; }
}

@media (max-width: 768px) {
    .hsp-section { --hsp-card-w: 80vw !important; --hsp-gap: 20px; }
    .hsp-wrapper { padding: 40px 0; }
    .hsp-card-media { border-radius: 0; margin-bottom: 15px; }
    .hsp-card-meta { flex-direction: column; gap: 4px; }
    .hsp-card-desc { font-size: 13px; }
}

@media (max-width: 480px) {
    .hsp-section { --hsp-card-w: 85vw !important; --hsp-gap: 16px; }
}


.hsp-section * { box-sizing: border-box; }

/* Pin spacer styling (created by ScrollTrigger) */
.hsp-section .pin-spacer {
    background: var(--hsp-bg) !important;
}

.hsp-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
    background: var(--hsp-bg);
    position: sticky;
    top: 0;
}

/* Header */
.hsp-header { margin-bottom: 50px; }

.hsp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--hsp-pad);
}

.hsp-subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    font-style: italic;
    margin: 0 0 10px;
    opacity: 0.6;
}

.hsp-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Scroll area - clips horizontal overflow */
.hsp-scroll-area {
    width: 100%;
    overflow: hidden;
}

.hsp-container-left {
    max-width: 1400px;
    margin-left: auto;
    margin-right: 0;
    padding-left: var(--hsp-pad);
}

@media (min-width: 1480px) {
    .hsp-container-left {
        margin-left: max(var(--hsp-pad), calc((100vw - 1400px) / 2));
        max-width: none;
    }
}

.hsp-track {
    display: flex;
    gap: var(--hsp-gap);
    padding-right: var(--hsp-pad);
    will-change: transform;
}

/* Cards */
.hsp-card {
    flex: 0 0 var(--hsp-card-w);
    width: var(--hsp-card-w);
}

.hsp-card-inner {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
}

a.hsp-card-inner:hover { transform: translateY(-8px); }

.hsp-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: var(--hsp-ratio);
    border-radius: 0;
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 20px;
}

.hsp-card-media img,
.hsp-video-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hsp-card-inner:hover .hsp-card-media img,
.hsp-card-inner:hover .hsp-video-self video {
    transform: scale(1.08);
}



.hsp-view-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: transparent;
    color: var(--hsp-gold, #BFA46A);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all 0.25s ease;
    pointer-events: none;
}

.hsp-card-inner:hover .hsp-view-more {
    opacity: 1;
    transform: translateY(0);
}

.hsp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.hsp-placeholder svg {
    width: 50px;
    height: 50px;
    opacity: 0.3;
}

.hsp-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hsp-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.5);
    transform-origin: center center;
    border: none;
    pointer-events: none;
}

.hsp-video-self video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hsp-card-content { padding: 0 4px; }

.hsp-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Overschreven door USP-stijl onderaan */
.hsp-card-title { font-family: 'Hind', -apple-system, BlinkMacSystemFont, sans-serif; margin: 0; }
.hsp-card-cats  { }
.hsp-card-desc  { }

.hsp-read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
    transition: opacity 0.3s;
}

a.hsp-card-inner:hover .hsp-read-more { opacity: 1; }

.hsp-error {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .hsp-section { --hsp-card-w: 420px; --hsp-gap: 24px; }
    .hsp-wrapper { padding: 50px 0; }
    .hsp-header { margin-bottom: 40px; }
}

@media (max-width: 768px) {
    .hsp-section { --hsp-card-w: 80vw !important; --hsp-gap: 20px; }
    .hsp-wrapper { padding: 40px 0; }
    .hsp-card-media { border-radius: 0; margin-bottom: 15px; }
    .hsp-card-meta { flex-direction: column; gap: 6px; }
    .hsp-card-desc { font-size: 14px; }
}

@media (max-width: 480px) {
    .hsp-section { --hsp-card-w: 85vw !important; --hsp-gap: 16px; }
}
/* ── USP-stijl kaarten ── */
.hsp-card-inner {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 0;
    transition: transform 0.4s ease;
}

a.hsp-card-inner:hover { transform: translateY(-6px); }

.hsp-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: var(--hsp-ratio);
    overflow: hidden;
    background: #102F49;
    margin-bottom: 0;
}

.hsp-card-media img,
.hsp-video-self video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    border-radius: 0;
}

.hsp-card-inner:hover .hsp-card-media img,
.hsp-card-inner:hover .hsp-video-self video {
    transform: scale(1.05);
}

/* Geen gradient overlay — content staat onder de foto */
.hsp-card-media::after { display: none; }

/* Content onder de foto */
.hsp-card-content {
    position: static;
    padding: 20px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hsp-card-meta { display: flex; flex-direction: column; gap: 6px; }

/* ── Exacte USP-photos stijl ── */
.hsp-card-title {
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700 !important;
    color: #102F49 !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin: 0 0 4px;
}

.hsp-card-cats {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #BFA46A;
    order: -1;
    margin-bottom: 4px;
}

.hsp-card-desc {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    color: rgba(16,47,73,0.70);
    line-height: 1.6;
    margin: 0;
}

/* Lees meer */
.hsp-view-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #BFA46A;
    margin-top: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}
.hsp-card-inner:hover .hsp-view-more {
    gap: 10px;
    color: #102F49;
    transform: none !important;
}

.hsp-read-more { display: none; }
.hsp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #aaa;
}
.hsp-placeholder svg { width: 48px; height: 48px; }
