/* =========================================
   STYLE – NEZNALX
   Cinematic Editorial · Liquid Glass
   ========================================= */

:root {
    /* --- Colors --- */
    --navy:         #1F2A44;
    --navy-dark:    #151d30;
    --navy-light:   #2a3d5f;
    --beige:        #E8E4DD;
    --beige-dark:   #D4CDC3;
    --text-dark:    #222222;
    --text-light:   #666666;
    --white:        #FFFFFF;

    /* Czekoladowy brąz */
    --accent:       #203565;
    --accent-light: #203565;
    --accent-muted: #203565;

    --accent-beige:       #c5a28c;

    /* --- Glass Effects --- */
    --glass-bg:     rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --blur-amt:     blur(20px);

    /* --- Spacing --- */
    --gap-desktop:      24px;
    --container-width:  1200px;
    --section-padding:  120px;

    /* --- Typography --- */
    --font-main:  'Raleway', sans-serif;
    --font-serif: 'Raleway', serif;

    /* --- Transitions --- */
    --smooth:   cubic-bezier(0.23, 1, 0.32, 1);
    --duration: 0.6s;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--beige);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

img { width: 100%; display: block; }

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-family: var(--font-serif);
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 64px);
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

h3 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 32px);
    color: var(--navy);
    margin-bottom: 16px;
}

h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 12px;
}

p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.8;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-muted) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.italic-accent {
    font-style: italic;
    color: var(--accent-beige);
}

.small-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-beige);
    font-weight: 600;
    margin-bottom: 16px;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 18px 40px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: all var(--duration) var(--smooth);
    border: 1px solid var(--navy);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left var(--duration) var(--smooth);
    z-index: -1;
}

.btn-primary:hover::before { left: 0; }

.btn-primary:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 18px 40px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: all var(--duration) var(--smooth);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-large { padding: 24px 60px; font-size: 16px; }

.btn-nav {
    background: var(--accent-muted);
    color: var(--white) !important;
    padding: 7px 16px !important;
    border-radius: 100px !important;
    font-size: 11px !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.btn-nav::after { display: none !important; }

.btn-nav:hover {
    background: var(--accent);
    opacity: 1 !important;
    transform: none;
}

/* ========== TOP BAR – SINUSOIDA ========== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: transparent;
    z-index: 200;
    overflow: visible;
    pointer-events: none;
    transition: opacity 0.5s var(--smooth), transform 0.5s var(--smooth);
}

.top-bar.hidden {
    opacity: 0;
    transform: translateY(-100%);
}

/* SVG sinusoida – desktop only */
.top-bar svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    overflow: visible;
    display: block;
}

.top-bar-text {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    fill: rgba(255, 255, 255, 0.85);
}

/* Mobile topbar – elegant static bar, same feel as desktop */
.top-bar-mobile {
    display: none;
    width: 100%;
    height: 48px;
    background: var(--navy-dark);
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.top-bar-mobile span {
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    pointer-events: none;

    /* Hidden by default on homepage — toggled via JS */
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.5s var(--smooth), transform 0.5s var(--smooth);
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Subpages: always visible, anchored to top */
.navbar.subpage {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    top: 0;
    padding: 16px 0;
}

.navbar.subpage .nav-pill {
    background: rgba(31, 42, 68, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(31, 42, 68, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nav-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 24px;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 28px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo .dot { color: var(--accent-muted); }
.logo:hover { transform: scale(1.05); }

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-muted);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* ========== HERO ========== */
.hero {
    height: 100vh;
    min-height: 700px;
    width: 100%;
    background-image: url("../assets/hero-bg.JPG");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 96px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0%;
    background: linear-gradient(135deg, rgba(31, 42, 68, 0.7) 0%, rgba(21, 29, 48, 0.85) 100%);
    z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-muted);
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--accent-muted);
    padding: 8px 20px;
    border-radius: 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s var(--smooth);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    margin-top: 12px;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0%, 100% { transform: translateY(0);    opacity: 0; }
    50%       { transform: translateY(20px); opacity: 1; }
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--navy);
    position: relative;
}

.services-header { text-align: center; margin-bottom: 80px; }
.services-header h2,
.services-header p { color: var(--white); }
.services-header p { opacity: 0.7; margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card-clean {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-amt);
    -webkit-backdrop-filter: var(--blur-amt);
    border: var(--glass-border);
    padding: 60px 40px;
    border-radius: 8px;
    transition: all var(--duration) var(--smooth);
    position: relative;
    overflow: hidden;
}

.service-card-clean::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-muted));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--smooth);
}

.service-card-clean:hover::before { transform: scaleX(1); }

.service-card-clean:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-number {
    font-family: var(--font-serif);
    font-size: 72px;
    color: #e5ccb3;
    position: absolute;
    top: 20px; right: 20px;
    font-weight: 700;
    line-height: 1;
}

.service-icon { font-size: 40px; color: var(--accent-beige); margin-bottom: 24px; }
.service-card-clean h3 { color: var(--white); font-size: 28px; margin-bottom: 16px; }
.service-card-clean p { color: rgba(255, 255, 255, 0.7); font-size: 15px; margin-bottom: 24px; }

.service-link {
    color: var(--accent-beige);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.service-link:hover { color: var(--white); }

/* ========== STATS SECTION ========== */
.stats-section { padding: 100px 0; background: var(--beige); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item:last-child { border-right: none; }

.stat-item .number {
    font-family: var(--font-serif);
    font-size: clamp(60px, 8vw, 96px);
    color: var(--navy);
    line-height: 1;
    font-weight: 700;
    display: inline-block;
}

.stat-item .label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-top: 16px;
}

/* ========== ABOUT SECTION ========== */
.about-section { padding: var(--section-padding) 0; background: var(--beige-dark); }

.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--navy);
}

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

.about-text {
    background: var(--white);
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

/* ========== PROCESS SECTION ========== */
.process-section { padding: 80px 0; background: var(--beige); }

.process-header { text-align: center; margin-bottom: 80px; }

.process-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.process-steps { display: flex; flex-direction: column; gap: 80px; }

.process-step {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.process-step.reverse { grid-template-columns: 1fr 400px; }
.process-step.reverse .process-visual { order: 2; }
.process-step.reverse .process-content { order: 1; }

.process-visual { position: relative; }

.process-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: block;
}

.step-number {
    position: absolute;
    font-family: var(--font-serif);
    font-size: clamp(100px, 12vw, 140px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    z-index: 10;
}

.step-number.left  { top: -30px; left: -30px; }
.step-number.right { top: -30px; right: -30px; }

.process-content { text-align: left; }

.process-content h3 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.process-content p { font-size: 16px; line-height: 1.8; color: var(--text-dark); }

.process-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ========== CTA SECTION ========== */
.cta-section { padding: var(--section-padding) 0; background: var(--navy); text-align: center; }
.cta-content h2 { color: var(--white); margin-bottom: 24px; }
.cta-content p  { color: rgba(255, 255, 255, 0.7); margin: 0 auto 40px; }

/* ========== PAGE HEADER ========== */
.page-header { padding: 120px 0 80px; background: var(--beige); text-align: center; }
.page-header h1 { color: var(--navy); margin-bottom: 24px; }
.page-header p  { margin: 0 auto; color: var(--text-light); }

/* ========== PORTFOLIO SECTION ========== */
.portfolio-section { padding: 80px 0; background: var(--beige); }

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.filter-btn:hover,
.filter-btn.active { background: var(--navy); color: var(--white); }

/* --- Masonry – B&W → kolor po hover --- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.5s var(--smooth);
}

.masonry-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.masonry-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.7s var(--smooth), filter 0.5s ease;
    filter: grayscale(100%) contrast(1.05);
    display: block;
}

.masonry-item:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) contrast(1);
}

.masonry-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15, 20, 35, 0.92) 0%, transparent 100%);
    padding: 50px 28px 24px;
    color: var(--white);
    transition: background 0.5s ease;
}

.masonry-item:hover .masonry-info {
    background: linear-gradient(to top, rgba(92, 51, 23, 0.85) 0%, transparent 100%);
}

.masonry-info h4 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--white);
    letter-spacing: 1px;
}

.masonry-info p {
    font-size: 12px;
    opacity: 0.75;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.masonry-info .masonry-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-beige);
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--smooth);
}

.masonry-item:hover .masonry-cta {
    opacity: 1;
    transform: translateY(0);
}

/* --- Lightbox – fullscreen cinematic gallery --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--smooth), visibility 0.5s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 80px 0;
}

/* Close button */
.close-modal {
    position: fixed;
    top: 20px; right: 20px;
    font-size: 20px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    z-index: 1010;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* Main media area */
.modal-gallery-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    flex: 1;
    min-height: 0;
    position: relative;
}

.modal-main-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.modal-main-media img.modal-main-img,
.modal-main-media video.modal-main-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s var(--smooth);
}

.modal-main-media img.modal-main-img.loaded,
.modal-main-media video.modal-main-img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Thumbnails strip */
.modal-gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 12px 0;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    flex-shrink: 0;
}

.modal-thumb {
    width: 48px;
    height: 34px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.modal-thumb:hover { opacity: 0.7; }

.modal-thumb.active {
    opacity: 1;
    border-color: var(--accent-muted);
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-play {
    color: var(--white);
    font-size: 12px;
    line-height: 1;
    background: rgba(0,0,0,0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation arrows */
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    z-index: 1010;
    font-size: 16px;
    transition: all 0.3s ease;
    user-select: none;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.modal-nav.prev { left: 20px; }
.modal-nav.next { right: 20px; }

/* Info bar – fixed bottom strip */
.modal-details-col {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.4) 85%, transparent 100%);
    padding: 60px 40px 28px;
    z-index: 1005;
    display: flex;
    align-items: flex-end;
    gap: 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s 0.1s var(--smooth), transform 0.5s 0.1s var(--smooth);
}

.modal-overlay.active .modal-details-col {
    opacity: 1;
    transform: translateY(0);
}

.modal-info-text {
    flex: 1;
    min-width: 0;
}

.modal-category-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-details-col h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--white);
    line-height: 1.3;
}

.modal-details-col .modal-desc {
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    font-size: 13px;
    margin-bottom: 0;
    max-width: 560px;
}

.modal-info-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
    align-items: flex-end;
}

.modal-result-item { text-align: center; }

.modal-result-item .result-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-muted);
    line-height: 1;
}

.modal-result-item .result-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

.modal-details-col .btn-primary {
    font-size: 10px;
    padding: 10px 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.modal-desc-toggle { display: none; }

/* Next project button */
.modal-next-project {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    z-index: 1010;
    padding: 10px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-next-project:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Media counter */
.modal-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
    z-index: 1005;
}

/* ========== OFFER SECTION ========== */
.offer-section { padding: 60px 0 80px; background: var(--beige); }

.offer-hover-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.offer-card {
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.offer-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }

.offer-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.offer-header:hover { background: var(--beige); }

.offer-header h3 { margin: 0; font-size: 24px; color: var(--navy); }

.offer-arrow {
    font-size: 24px;
    color: var(--accent-muted);
    transition: transform 0.3s ease;
}

.offer-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 40px;
}

.offer-card.active .offer-details { padding: 0 40px 30px; }

.offer-details p { margin-bottom: 16px; color: var(--text-light); max-width: 100%; }

.offer-details ul { list-style: none; padding-left: 0; margin-bottom: 24px; }

.offer-details ul li {
    padding-left: 24px;
    margin-bottom: 10px;
    position: relative;
    color: var(--text-light);
    max-width: 100%;
}

.offer-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-muted);
    font-weight: 700;
}

/* ========== CONTACT SECTION ========== */
.contact-section { padding: 120px 0 80px; background: var(--beige); }

.contact-split {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 60px;
    align-items: start;
}

.contact-info h1 {
    color: var(--navy);
    margin-bottom: 24px;
    font-size: clamp(36px, 5vw, 56px);
}

.contact-info > p { margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 30px; }

.contact-item h4 { color: var(--navy); margin-bottom: 8px; font-size: 16px; }

.contact-item p,
.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover { color: var(--accent-muted); }

/* Dimmed socials */
.social-dimmed {
    opacity: 0.3 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* --- Contact Tabs --- */
.contact-tabs-wrapper {
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.contact-tab-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-tab-btn {
    padding: 22px 20px;
    background: var(--beige);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.contact-tab-btn:hover { color: var(--navy); background: var(--beige-dark); }

.contact-tab-btn.active {
    background: var(--white);
    color: var(--navy);
    border-bottom: 2px solid var(--accent-muted);
}

.contact-tab-pane { display: none; padding: 40px; }
.contact-tab-pane.active { display: block; }

/* --- Forms --- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; }

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-input {
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    font-family: var(--font-main);
    font-size: 15px;
    background: var(--beige);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-muted);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(160, 103, 58, 0.1);
}

textarea.form-input { resize: vertical; min-height: 120px; }

select.form-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0673A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: var(--beige);
    padding-right: 40px;
}

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

.form-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-muted);
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 100%;
}

.checkbox-group { display: flex; flex-direction: column; gap: 10px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.checkbox-label:hover { color: var(--text-dark); }

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-muted);
    cursor: pointer;
    flex-shrink: 0;
}

/* Form feedback */
.form-feedback {
    padding: 16px 20px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    max-width: 100%;
}

.form-feedback.success {
    background: rgba(92, 51, 23, 0.08);
    color: var(--accent);
    border: 1px solid rgba(92, 51, 23, 0.25);
    display: block;
}

.form-feedback.error {
    background: rgba(180, 60, 60, 0.08);
    color: #b43c3c;
    border: 1px solid rgba(180, 60, 60, 0.25);
    display: block;
}

/* ========== FAQ SECTION ========== */
.faq-section { padding: 80px 0; background: var(--beige-dark); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--white);
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover { background: var(--beige); }
.faq-question h4 { margin: 0; color: var(--navy); font-size: 18px; }

.faq-toggle {
    font-size: 28px;
    color: var(--accent-muted);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 30px 24px;
}

.faq-answer p { margin: 0; color: var(--text-light); line-height: 1.8; max-width: 100%; }

/* ========== FOOTER ========== */
footer {
    background: var(--navy-dark);
    color: var(--beige);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 { color: var(--white); margin-bottom: 24px; font-size: 18px; }
.footer-col p  { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-muted);
    padding-left: 5px;
}

.footer-col ul li a.social-dimmed {
    opacity: 0.25 !important;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p { color: rgba(255, 255, 255, 0.4); font-size: 12px; margin: 0; }

/* ========== ERROR PAGE ========== */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.error-code {
    font-family: var(--font-serif);
    font-size: clamp(120px, 20vw, 200px);
    font-weight: 700;
    color: var(--navy);
    opacity: 0.08;
    line-height: 1;
    margin-bottom: -40px;
}

.error-page h1 { color: var(--navy); }
.error-page p  { color: var(--text-light); margin: 16px auto 32px; }

/* ========== LEGAL PAGES ========== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 5% 80px;
}

.legal-content h1 { margin-bottom: 2rem; color: var(--navy); }

.legal-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--navy); }

.legal-content p,
.legal-content li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 100%;
}

.legal-content ul,
.legal-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }

.legal-content li { margin-bottom: 0.5rem; }

.legal-update {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== UGC PAGE ========== */
.ugc-info-section { padding: var(--section-padding) 0; background: var(--beige); }

.ugc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ugc-info-text h2 { color: var(--navy); margin-bottom: 24px; }
.ugc-info-text p  { color: var(--text-light); max-width: 480px; }

.ugc-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 48px;
    background: var(--navy);
    border-radius: 8px;
}

.ugc-stat { text-align: center; }

.ugc-stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 700;
    color: var(--accent-muted);
    line-height: 1;
}

.ugc-stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

/* ========== TILT CARDS ========== */
[data-tilt] { will-change: transform; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .services-grid,
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 40px;
    }

    .stat-item:last-child { border-bottom: none; padding-bottom: 0; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .process-step,
    .process-step.reverse { grid-template-columns: 1fr; gap: 40px; }

    .process-step.reverse .process-visual { order: 1; }
    .process-step.reverse .process-content { order: 2; }

    .process-visual { max-width: 400px; margin: 0 auto; }

    .step-number.left,
    .step-number.right { font-size: 80px; top: -15px; left: -15px; right: auto; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }

    .modal-content { padding: 50px 16px 0; }

    .modal-details-col {
        padding: 32px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-details-col .modal-desc { -webkit-line-clamp: 1; }

    .modal-info-stats { gap: 16px; }

    .modal-details-col .btn-primary { display: none; }

    /* Mobile expandable description */
    .modal-details-col .modal-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .modal-details-col .modal-desc.expanded {
        -webkit-line-clamp: unset;
        display: block;
    }

    .modal-desc-toggle {
        display: inline-block !important;
        font-size: 11px;
        color: var(--accent-muted);
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 4px;
        font-weight: 600;
    }

    .modal-nav { width: 36px; height: 36px; font-size: 14px; }
    .modal-nav.prev { left: 8px; }
    .modal-nav.next { right: 8px; }

    .modal-next-project { font-size: 10px; padding: 8px 16px; }

    .modal-counter { left: 16px; top: 16px; font-size: 10px; }

    .modal-gallery-col { max-width: 100%; }

    .modal-main-media img.modal-main-img,
    .modal-main-media video.modal-main-img {
        max-height: 55vh;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 160px 0 100px;
        background-attachment: scroll;
        background-position: 15% center;
    }

    .hero-cta { flex-direction: column; align-items: flex-start; }

    .btn-primary,
    .btn-secondary { width: 100%; text-align: center; }

    /* --- Topbar: hide SVG, show plain mobile bar --- */
    .top-bar svg { display: none; }
    .top-bar-mobile { display: flex; }

    /* --- Mobile navbar: pill shows only burger --- */
    .navbar {
        top: 16px;
    }

    .nav-pill {
        padding: 10px 20px;
        position: relative;
    }

    /* Hide links, show burger */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        background: rgba(31, 42, 68, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        min-width: 200px;
        text-align: center;
        z-index: 100;
        box-shadow: 0 16px 40px rgba(0,0,0,0.35);
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
        transition: opacity 0.3s var(--smooth), transform 0.3s var(--smooth);
        pointer-events: none;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 12px 24px;
        font-size: 13px;
        opacity: 0.85;
        letter-spacing: 1.5px;
    }

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

    .nav-links .btn-nav {
        margin: 8px 16px 4px;
        display: block;
        text-align: center;
        border-radius: 100px !important;
        padding: 9px 16px !important;
    }

    .burger { display: flex; }

    .burger.active .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.active .line2 { opacity: 0; }
    .burger.active .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* --- Process step numbers --- */
    .step-number.left  { top: -60px; left: -10px; font-size: 80px; }
    .step-number.right { top: -60px; right: -10px; left: auto; font-size: 80px; }

    .about-text { padding: 40px 30px; }

    .page-header { padding: 100px 0 60px; }

    .contact-split { grid-template-columns: 1fr; gap: 40px; }

    .contact-tab-pane { padding: 28px 24px; }

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

    .masonry-grid { grid-template-columns: 1fr; }

    .offer-header { padding: 24px 30px; }
    .offer-details { padding: 0 30px; }
    .offer-card.active .offer-details { padding: 0 30px 24px; }

    .ugc-info-grid { grid-template-columns: 1fr; gap: 40px; }
    .ugc-stats { padding: 32px 24px; }
}