/* ============================================================
   KASHVISUALS – Robin Kachfi Video & Foto
   ============================================================ */

/* ---- Local Fonts ---- */
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/BebasNeue-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/SpaceMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/SpaceMono-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Mono';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/SpaceMono-Italic.woff2') format('woff2');
}

/* ---- Variables ---- */
:root {
    --color-bg:          #000000;
    --color-card:        #0d0d0d;
    --color-card-alt:    #0a0a0a;
    --color-white:       #ffffff;
    --color-border:      rgba(255, 255, 255, 0.1);
    --color-muted:       rgba(255, 255, 255, 0.5);

    --font-display:      'Bebas Neue', sans-serif;
    --font-mono:         'Space Mono', 'Input Mono', 'Courier New', monospace;

    --nav-height:        64px;
    --section-padding:   80px;
    --container-max:     1200px;
    --radius-sm:         8px;
    --radius-md:         12px;
    --radius-lg:         120px;

    --transition-fast:   0.2s ease;
    --transition-med:    0.4s ease;
}

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

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

body {
    font-family: var(--font-display);
    background-color: var(--color-bg);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--color-bg);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-wrapper {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--color-white);
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.nav-links a:hover {
    opacity: 1;
}

/* ---- Hamburger ---- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    border-radius: 1px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn.is-open .hamburger-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

.mobile-menu-btn.is-open .hamburger-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--color-card-alt);
    z-index: 99;
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--transition-med), opacity var(--transition-med);
}

.mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu nav a {
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Glowing button – replicates Framer's layered blur effect */
.btn-glow {
    position: relative;
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    overflow: visible;
    isolation: isolate;
    /* Outer ring */
    box-shadow:
        0 0 0 1px rgb(59, 59, 59),
        0 1px 9px 0 rgba(255, 255, 255, 0);
}

/* Green variant */
.btn-green {
    background: rgb(0, 20, 5);
    color: #00ff66;
    box-shadow:
        0 0 0 1px rgba(0, 255, 102, 0.4),
        0 0 16px 2px rgba(0, 255, 102, 0.25);
}

.btn-green::before {
    background: linear-gradient(180deg, rgba(0, 255, 102, 0.15) 0%, rgba(0, 255, 102, 0.05) 100%);
}

.btn-green::after {
    background: rgba(0, 255, 102, 0.6);
}

.btn-green:hover {
    box-shadow:
        0 0 0 1px rgba(0, 255, 102, 0.6),
        0 0 24px 4px rgba(0, 255, 102, 0.4);
}

/* Blue variant */
.btn-blue {
    background: rgb(0, 10, 25);
    color: #00aaff;
    box-shadow:
        0 0 0 1px rgba(0, 170, 255, 0.4),
        0 0 16px 2px rgba(0, 170, 255, 0.25);
}

.btn-blue::before {
    background: linear-gradient(180deg, rgba(0, 170, 255, 0.15) 0%, rgba(0, 170, 255, 0.05) 100%);
}

.btn-blue::after {
    background: rgba(0, 170, 255, 0.6);
}

.btn-blue:hover {
    box-shadow:
        0 0 0 1px rgba(0, 170, 255, 0.6),
        0 0 24px 4px rgba(0, 170, 255, 0.4);
}

/* Blue pulse glow button */
@keyframes blue-pulse {
    0%   { box-shadow: 0 0 0 1px rgba(0,170,255,0.3), 0 0 10px 2px rgba(0,170,255,0.15); text-shadow: 0 0 6px rgba(0,170,255,0.5); }
    50%  { box-shadow: 0 0 0 1px rgba(0,170,255,0.7), 0 0 28px 8px rgba(0,170,255,0.4); text-shadow: 0 0 14px #00aaff, 0 0 30px rgba(0,170,255,0.6); }
    100% { box-shadow: 0 0 0 1px rgba(0,170,255,0.3), 0 0 10px 2px rgba(0,170,255,0.15); text-shadow: 0 0 6px rgba(0,170,255,0.5); }
}

.btn-vhs {
    position: relative;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: rgb(0, 8, 20);
    color: #00aaff;
    overflow: visible;
    animation: blue-pulse 3s ease-in-out infinite;
}

.btn-vhs::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-md) + 1px);
    background: linear-gradient(180deg, rgba(0,170,255,0.12) 0%, rgba(0,170,255,0.03) 100%);
    z-index: -1;
}

/* Inner gradient background */
.btn-glow::before {
    content: '';
    position: absolute;
    inset: -1.15px;
    border-radius: calc(var(--radius-md) + 1.5px);
    background: linear-gradient(180deg, rgb(13, 13, 13) -74%, rgba(255, 255, 255, 0.1) 183%);
    z-index: -1;
}

/* Top glow highlight */
.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(1px);
    z-index: 1;
}

/* ============================================================
   SECTION BADGE
   ============================================================ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-card);
    border-radius: 20px;
    padding: 6px 14px 6px 8px;
    font-family: var(--font-display);
    font-size: 12px;
    box-shadow:
        16px 24px 20px 8px rgba(0, 0, 0, 0.4),
        0 2px 0 0 rgba(184, 180, 180, 0.08) inset;
}

/* Nested-square icon (matches Framer badge) */
.badge-icon {
    width: 16px;
    height: 16px;
    background: var(--color-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon-inner {
    width: 10px;
    height: 10px;
    background: var(--color-card);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon-dot {
    width: 5px;
    height: 5px;
    background: var(--color-white);
    border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

/* Background video */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding: 0 24px;
    padding-bottom: 100px; /* space for marquee */
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(72px, 12vw, 140px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Logo Marquee */
.marquee-wrapper {
    position: absolute;
    bottom: 32px;
    left: 0;
    width: 100%;
    z-index: 2;
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0) 100%
    );
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 51px;
    width: max-content;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    flex-shrink: 0;
    width: 120px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.85;
}

.marquee-item--rotated img {
    transform: rotate(-2deg);
}

.marquee-item--square {
    width: 112px;
    height: 112px;
}

/* ============================================================
   PROJECTS PREVIEW
   ============================================================ */
.projects-preview {
    position: relative;
    padding: var(--section-padding) 24px;
}

.projects-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.projects-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* ---- Portfolio Hero Video ---- */
.portfolio-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.portfolio-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Portfolio Category Buttons ---- */
.portfolio-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.portfolio-filter-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-size: clamp(16px, 1.8vw, 24px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.portfolio-filter-box:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--color-white);
}

.portfolio-filter-box.is-active {
    border-color: var(--color-white);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Portfolio Carousel ---- */
.portfolio-carousel-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: translateY(32px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    max-height: 0;
    overflow: hidden;
}

.portfolio-carousel-wrap.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 9999px;
    overflow: visible;
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.01s;
}

.portfolio-item.is-offpage {
    display: none;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.carousel-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

.carousel-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
    background: var(--color-white);
    transform: scale(1.4);
}

/* ---- Portfolio Grid ---- */
.portfolio-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    transition: opacity 0.25s ease;
}

.collage-inner {
    position: relative;
}

.collage-expand-btn {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.05em;
    padding: 10px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: center;
}

.collage-expand-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* ---- Foto Collage Mode ---- */
.portfolio-grid.foto-mode {
    display: block;
    columns: 5;
    column-gap: 0;
    transition: none;
}

.portfolio-grid.foto-mode .portfolio-item {
    break-inside: avoid;
    display: block;
    margin: 0;
    padding: 0;
    gap: 0;
}

.portfolio-grid.foto-mode .portfolio-item.is-hidden {
    display: none;
}

.portfolio-grid.foto-mode .portfolio-item.foto-featured img {
    transform: scale(1.12);
    transform-origin: top center;
}

.portfolio-grid.foto-mode .portfolio-thumb {
    aspect-ratio: unset;
    border-radius: 0;
}

.portfolio-grid.foto-mode .portfolio-thumb img {
    object-fit: contain;
    width: 100%;
    height: auto;
    display: block;
    transition: none;
}

.portfolio-grid.foto-mode .portfolio-item:hover .portfolio-thumb img {
    transform: none;
}

.portfolio-grid.foto-mode .portfolio-overlay {
    display: none;
}

.portfolio-grid.foto-mode .portfolio-item.foto-extra {
    display: none;
}

.collage-fade {
    display: none;
}

.collage-inner.foto-mode {
    max-height: 500px;
    overflow: hidden;
}

.collage-inner.foto-mode .collage-fade {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    pointer-events: none;
}

.collage-inner.foto-expanded {
    max-height: none;
    overflow: visible;
}

.collage-inner.foto-expanded .collage-fade {
    display: none;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-thumb {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-card);
}

.portfolio-thumb video,
.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-thumb video,
.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.04);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-play {
    font-size: 28px;
    color: var(--color-white);
    line-height: 1;
}

.portfolio-label {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--color-muted);
    letter-spacing: 0.05em;
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-med);
}

.lightbox.is-open {
    pointer-events: all;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}

.lightbox-inner {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 1000px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lightbox-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.lightbox-media video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    border-radius: var(--radius-md);
}

.lightbox-media img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    font-size: 20px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    padding: 8px;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    font-size: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-white);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast);
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.15);
}

.lightbox-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--color-muted);
    letter-spacing: 0.05em;
}

.projects-cta {
    text-align: center;
}

.link-arrow {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.05em;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-white);
    padding-bottom: 2px;
    transition: opacity var(--transition-fast);
}

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

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    position: relative;
    padding: var(--section-padding) 24px;
    overflow-x: hidden;
}

.services-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.services-container h2,
.services-header h2 {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.services-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.services-description p {
    font-family: var(--font-mono);
    font-size: 22px;
    line-height: 1.8;
    color: var(--color-muted);
}

.services-video {
    width: 100%;
    aspect-ratio: 5120 / 1080;
    overflow: hidden;
    background: var(--color-card);
    margin-bottom: 80px;
}

.services-video video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.services-border {
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--color-border);
}

/* ============================================================
   VIDEOGRAFIE
   ============================================================ */
.section-subtitle {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================
   DISCIPLINES
   ============================================================ */
.disciplines {
    padding: var(--section-padding) 24px;
}

.disciplines-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 32px 40px;
    text-align: center;
    flex-wrap: wrap;
}

.discipline-item {
    flex: 0 1 200px;
}

.discipline-item h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.discipline-item p {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-muted);
}

/* Fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.15s; }
.fade-up:nth-child(3) { transition-delay: 0.30s; }

/* Side CTA – green slide-in banner (in-flow, between description and disciplines) */
.section-side-cta {
    display: block;
    position: relative;
    left: 0;
    transform: translateX(calc(-100% - 100vw));
    margin: 48px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00ff66;
    white-space: nowrap;
    text-decoration: none;
    padding: 14px 28px;
    background: rgb(0, 20, 5);
    border: 1px solid rgba(0, 255, 102, 0.4);
    border-radius: var(--radius-sm);
    box-shadow:
        0 0 24px 4px rgba(0, 255, 102, 0.25),
        inset 0 0 20px rgba(0, 255, 102, 0.06);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.8), 0 0 24px rgba(0, 255, 102, 0.4);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    width: fit-content;
}


.section-side-cta.is-visible {
    transform: translateX(0);
    pointer-events: auto;
}

.section-side-cta:hover {
    box-shadow: 0 0 32px 8px rgba(0, 255, 102, 0.4), inset 0 0 24px rgba(0, 255, 102, 0.1);
}

@media (max-width: 768px) {
    .section-side-cta { display: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    position: relative;
    padding: var(--section-padding) 24px;
}

.about-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-description p {
    font-family: var(--font-mono);
    font-size: 22px;
    line-height: 1.8;
    color: var(--color-muted);
}

.about-border {
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--color-border);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: var(--section-padding) 24px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.contact-container h2 {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.form-status {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 14px;
    text-align: center;
    margin-bottom: 8px;
}
.form-success {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid rgba(0, 255, 102, 0.4);
    color: #00ff66;
}
.form-error {
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.4);
    color: #ff3c3c;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.05em;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: border-color var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn-glow {
    align-self: flex-start;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 32px 24px;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-muted);
}

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

.footer-links a {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 4px;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-instagram:hover {
    color: var(--color-white);
}

.footer-instagram svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Nav */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero */
    .hero-content {
        padding-bottom: 120px;
    }

    /* Disciplines: single column on mobile */
    .disciplines-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-cell {
        aspect-ratio: 16 / 9;
    }

    /* Contact form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Portfolio filter grid: 2 columns on mobile */
    .portfolio-filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }


    /* Portfolio grid */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-glow {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================================
   VIDEO – Audio permanently disabled
   ============================================================ */
video::-webkit-media-controls-mute-button         { display: none !important; }
video::-webkit-media-controls-volume-slider       { display: none !important; }
video::-webkit-media-controls-volume-control-container { display: none !important; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -8px 60px rgba(0, 0, 0, 0.9);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cookie-banner-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin: 0;
}
.cookie-banner-text {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}
.cookie-banner-text a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-banner-text a:hover {
    color: #fff;
}
.cookie-categories {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex: 1 1 180px;
    transition: border-color 0.2s ease;
}
.cookie-category:hover {
    border-color: rgba(255, 255, 255, 0.25);
}
.cookie-category input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
}
.cookie-category input[type="checkbox"]:checked {
    background: #fff;
    border-color: #fff;
}
.cookie-category input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: 700;
}
.cookie-category input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: default;
}
.cookie-cat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}
.cookie-cat-desc {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-top: 2px;
}
.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cookie-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex: 1 1 auto;
    text-align: center;
}
.cookie-btn-decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
}
.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.cookie-btn-save {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
}
.cookie-btn-save:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.cookie-btn-accept {
    background: #fff;
    border: 1px solid #fff;
    color: #000;
    font-weight: 700;
}
.cookie-btn-accept:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.85);
}

/* YouTube placeholder when consent declined */
.portfolio-item[data-type="youtube"] .yt-blocked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--color-card);
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 16px;
}
