/* ==========================================================================
   LUKASZ KAPUSCINSKI - FINE ART PORTRAIT PORTFOLIO
   Clean, Solid, High-End Editorial Style
   ========================================================================== */

/* ==========================================================================
   CUSTOM EDITORIAL FONTS (GT Super Display by Grilli Type)
   ========================================================================== */
@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GTSuperDisplay-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GTSuperDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GTSuperDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GTSuperDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silver South Script';
    src: url('fonts/SilverSouthScript.woff2') format('woff2'),
         url('fonts/SilverSouthScript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Eyesome Script';
    src: url('fonts/EyesomeScript.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #FDFBF7;
    --text: #1C1C1C;
    --muted: #6B6B6B;
    --accent: #8C7A6B;
    --border: rgba(0, 0, 0, 0.08);
    --card-bg: #EAE6DF;
}

/* Photoshop Neutral Dark Theme (Rozjaśniony o ton: szary pulpit Photoshopa #353535) */
html.dark-mode,
body.dark-mode {
    --bg: #353535;
    --text: #ECE8E1;
    --muted: #B5B0A6;
    --accent: #D4AF37;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: #2A2A2A;
}

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

body {
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(253, 251, 247, 0.35) 50%, rgba(226, 217, 202, 0.65) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
    min-height: 100vh;
}

h1, h2 {
    font-family: 'Eyesome Script', cursive;
    font-weight: normal;
}

h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Ciemny motyw: Galeryjny snop światła rozświetlający od samej góry ekranu */
html.dark-mode body,
body.dark-mode {
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 95% 70% at 50% -5%, rgba(255, 255, 255, 0.08) 0%, rgba(60, 60, 60, 0.35) 40%, rgba(26, 26, 26, 0.7) 100%);
    background-attachment: fixed;
}

/* Szlachetna faktura papieru barytowego (Scrolluje się razem ze stroną!) */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Poniżej listków (10) i kart (20) */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='barytaGrain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23barytaGrain)'/%3E%3C/svg%3E");
    opacity: 0.085;
    mix-blend-mode: multiply;
    transition: opacity 0.4s ease;
}

/* Ciemny motyw: Oprasowany karton Bristol z delikatnym satynowym odbłyskiem włókien */
html.dark-mode body::before,
body.dark-mode::before {
    opacity: 0.055;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='bristolSatin'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23bristolSatin)'/%3E%3C/svg%3E");
}

/* Typography Helpers */
.sans {
    font-family: 'Montserrat', -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
}

/* ==========================================================================
   THEME TOGGLE BUTTON (TOP RIGHT)
   ========================================================================== */
.theme-toggle-btn {
    position: fixed;
    top: 1.8rem;
    right: 2rem;
    z-index: 1000;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    transform: scale(1.08);
}

.theme-toggle-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

body:not(.dark-mode) .theme-toggle-btn .sun-icon { display: none; }
body:not(.dark-mode) .theme-toggle-btn .moon-icon { display: block; }
html.dark-mode .theme-toggle-btn .sun-icon,
body.dark-mode .theme-toggle-btn .sun-icon { display: block; }
html.dark-mode .theme-toggle-btn .moon-icon,
body.dark-mode .theme-toggle-btn .moon-icon { display: none; }

html.dark-mode .logo-img,
html.dark-mode .footer-logo,
body.dark-mode .logo-img,
body.dark-mode .footer-logo {
    filter: brightness(0) invert(1) opacity(0.9);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON (BOTTOM RIGHT)
   ========================================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ==========================================================================
   HEADER ARCHITECTURE (Dwupoziomowy / Tiers)
   ========================================================================== */
.site-header {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2; /* Poniżej listków (10), dzięki czemu listki przelatują swobodnie nad nagłówkiem */
}

/* Górny pas nagłówka: Logo, Tytuł, Subtitle, Instagram */
.site-header-main {
    width: 100%;
    background-color: rgba(225, 216, 200, 0.4);
    padding: 3.2rem 1.5rem 1.8rem;
    transition: background-color 0.4s ease;
}

html.dark-mode .site-header-main,
body.dark-mode .site-header-main {
    background-color: rgba(25, 25, 25, 0.45);
}

/* Dolny pas nagłówka: Dedykowany plasterek nawigacji (kontrastujący) */
.site-header-nav-tier {
    width: 100%;
    background-color: rgba(215, 204, 186, 0.55);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.85rem 1.5rem;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

html.dark-mode .site-header-nav-tier,
body.dark-mode .site-header-nav-tier {
    background-color: rgba(18, 18, 18, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header-nav-tier .site-nav {
    margin-top: 0;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.site-header .logo-img {
    height: 95px;
    width: auto;
    display: block;
    margin: 0 auto 1.4rem auto;
    transition: filter 0.4s ease;
}

.site-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.4rem 0;
    line-height: 1.1;
}

.site-header .subtitle {
    color: var(--muted);
    margin: 0;
}

.header-social {
    margin-top: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-social .social-link {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header-social .social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.header-social .social-link svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.75;
    fill: none;
}

.site-nav {
    margin-top: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.site-nav .nav-link,
.footer-nav .nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    padding: 0.4rem 0.6rem;
    position: relative;
    opacity: 0.75;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.site-nav .nav-link:hover,
.footer-nav .nav-link:hover {
    opacity: 1;
    color: var(--accent);
}

.site-nav .nav-link::after,
.footer-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 1px;
    background-color: var(--accent);
    transition: transform 0.25s ease;
}

.site-nav .nav-link:hover::after,
.footer-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ==========================================================================
   CONTAINER & HUB (INDEX) LAYOUT - EDITORIAL SPLIT CARDS (50/50)
   ========================================================================== */
.main-content {
    max-width: 960px;
    margin: 4.5rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: auto;
}

.main-content.home-hub {
    max-width: 1160px;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.session-card-item {
    width: 100%;
}

/* Karta Horyzontalna (Split Card 50/50 Editorial) */
.split-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 20;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease,
                background-color 0.3s ease;
    
    /* Jasny motyw (Ivory canvas) - bogaty trójwymiarowy cień galeryjny */
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 38px -8px rgba(60, 50, 40, 0.12), 0 4px 12px -2px rgba(60, 50, 40, 0.05);
}

/* Ciemny motyw (Neutralny szary karton albumowy) */
html.dark-mode .split-card,
body.dark-mode .split-card {
    background: #2A2A2A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 42px -10px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Hover na całą kartę */
.split-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 24px 48px -10px rgba(140, 122, 107, 0.22), 0 6px 16px -2px rgba(140, 122, 107, 0.08);
}

html.dark-mode .split-card:hover,
body.dark-mode .split-card:hover {
    border-color: var(--accent);
    box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.18);
}

/* Lewa kolumna: Tekst i metadane */
.split-card-content {
    flex: 1 1 52%;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.split-card-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.split-card-meta .session-index {
    font-weight: 500;
}

.split-card-meta .meta-dot {
    opacity: 0.5;
}

.split-card-title {
    font-family: 'Eyesome Script', cursive;
    font-size: 2.85rem;
    font-weight: normal;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin: 0 0 1rem 0;
    color: var(--text);
    transition: color 0.3s ease;
}

.split-card:hover .split-card-title {
    color: var(--accent);
}

.split-card-desc {
    font-family: 'Poppins', sans-serif;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 300;
    font-style: normal;
    line-height: 1.75;
    letter-spacing: 0.01em;
    margin-bottom: 1.8rem;
    max-width: 520px;
}

.split-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 2.2rem;
}

.split-card-tags .pill {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #F4EFEB;
    color: #555048;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

html.dark-mode .split-card-tags .pill,
body.dark-mode .split-card-tags .pill {
    background: rgba(255, 255, 255, 0.06);
    color: #C8C3BA;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.split-card:hover .split-card-tags .pill {
    border-color: rgba(140, 122, 107, 0.3);
}

html.dark-mode .split-card:hover .split-card-tags .pill,
body.dark-mode .split-card:hover .split-card-tags .pill {
    border-color: rgba(212, 175, 55, 0.35);
}

.split-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s ease;
    margin-top: auto;
}

.split-card-action .action-arrow {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease, color 0.3s ease;
}

.split-card:hover .split-card-action {
    color: var(--accent);
}

.split-card:hover .action-arrow {
    transform: translateX(6px);
    color: var(--accent);
}

/* Prawa kolumna: Okno / Ramka ze zdjęciem (styl passe-partout / fine art frame) */
.split-card-media-wrapper {
    flex: 1 1 48%;
    padding: 1.6rem 1.6rem 1.6rem 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.split-card-media {
    width: 100%;
    min-height: 380px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.split-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.split-card:hover .split-card-media img {
    transform: scale(1.035);
    filter: brightness(1.03);
}

.media-frame-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

html.dark-mode .media-frame-overlay,
body.dark-mode .media-frame-overlay {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

/* Responsywność dla urządzeń mobilnych i tabletów */
@media (max-width: 920px) {
    .main-content.home-hub {
        padding: 0 1.2rem;
        margin: 2.5rem auto;
    }

    .session-list {
        gap: 2.5rem;
    }

    .split-card {
        flex-direction: column-reverse;
    }

    .split-card-content {
        padding: 2.2rem 1.8rem;
    }

    .split-card-media-wrapper {
        padding: 1.2rem 1.2rem 0 1.2rem;
        min-height: 280px;
    }

    .split-card-media {
        min-height: 280px;
        height: 280px;
    }

    .split-card-title {
        font-size: 2.35rem;
    }
}

/* ==========================================================================
   AUTHENTIC BOTANICAL LEAVES (Z-INDEX 5: POD ZDJĘCIAMI, NAD TŁEM I HEADEREM)
   ========================================================================== */
.leaf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* Nad tłem, headerem i footerem (z:2), pod zdjęciami (z:20) */
    overflow: hidden;
}

@media (max-width: 768px) {
    .leaf-container {
        display: none !important;
    }
}

.botanical-leaf {
    position: absolute;
    top: -120px;
    pointer-events: none;
    will-change: transform;
}

.botanical-leaf img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

/* Delikatna obrysówka */
body:not(.dark-mode) .botanical-leaf img {
    opacity: 0.55;
}

html.dark-mode .botanical-leaf img,
body.dark-mode .botanical-leaf img {
    filter: invert(1) brightness(1.8);
    opacity: 0.75;
}

/* Rozmiary */
.size-lg { width: 52px; }
.size-md { width: 38px; }
.size-sm { width: 26px; }

/* 
   LINIOWA PRĘDKOŚĆ (LINEAR):
   Zero hamowania, zero śmietniczka! 
*/
@keyframes windLinear1 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    4% { opacity: 1; }
    96% { opacity: 1; }
    100% {
        transform: translate3d(55vw, 120vh, 0) rotate(260deg);
        opacity: 0;
    }
}

@keyframes windLinear2 {
    0% {
        transform: translate3d(0, 0, 0) rotate(-30deg);
        opacity: 0;
    }
    4% { opacity: 1; }
    96% { opacity: 1; }
    100% {
        transform: translate3d(62vw, 120vh, 0) rotate(320deg);
        opacity: 0;
    }
}

@keyframes windLinear3 {
    0% {
        transform: translate3d(0, 0, 0) rotate(20deg);
        opacity: 0;
    }
    4% { opacity: 1; }
    96% { opacity: 1; }
    100% {
        transform: translate3d(45vw, 120vh, 0) rotate(210deg);
        opacity: 0;
    }
}

/* Zróżnicowane czasy stałe liniowe */
.leaf-pos-1 {
    left: 2%;
    animation: windLinear1 22s linear infinite;
    animation-delay: 0s;
}
.leaf-pos-2 {
    left: 25%;
    animation: windLinear2 28s linear infinite;
    animation-delay: 5s;
}
.leaf-pos-3 {
    left: 48%;
    animation: windLinear3 24s linear infinite;
    animation-delay: 11s;
}
.leaf-pos-4 {
    left: -5%;
    animation: windLinear1 33s linear infinite;
    animation-delay: 17s;
}
.leaf-pos-5 {
    left: 16%;
    animation: windLinear2 18s linear infinite; /* Szybki, wyprzedza */
    animation-delay: 8s;
}
.leaf-pos-6 {
    left: 62%;
    animation: windLinear3 31s linear infinite;
    animation-delay: 22s;
}
.leaf-pos-7 {
    left: 36%;
    animation: windLinear1 26s linear infinite;
    animation-delay: 2s;
}

/* ==========================================================================
   SINGLE SESSION PAGE LAYOUT
   ========================================================================== */
.single-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 5rem auto;
    position: relative;
    z-index: 5;
}

.single-intro h1 {
    font-family: 'Eyesome Script', cursive;
    font-size: 3.5rem;
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.single-intro p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    font-style: normal;
    color: var(--muted);
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.gallery-flow {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 20;
}

.gallery-row-horiz {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gallery-row-horiz a {
    display: block;
    width: 100%;
}

.gallery-row-horiz img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 20;
}

.gallery-row-vert {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
}

.gallery-row-vert a {
    flex: 1;
    display: block;
}

.gallery-row-vert img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 20;
}

.gallery-row-vert.single {
    justify-content: center;
}

.gallery-row-vert.single a {
    flex: 0 1 540px;
}

/* ==========================================================================
   CURATORIAL ESSAY (SESSION DETAIL PAGE)
   ========================================================================== */
.session-essay {
    position: relative;
    z-index: 5;
    max-width: 780px;
    margin: 6.5rem auto 3.5rem auto;
    padding: 0 1.5rem;
}

.session-essay .essay-inner {
    width: 100%;
}

.session-essay .essay-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.session-essay .essay-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.session-essay .essay-title {
    font-family: 'Eyesome Script', cursive;
    font-size: 3.1rem;
    font-weight: normal;
    letter-spacing: 0.02em;
    color: var(--text);
    margin: 0 0 1.5rem 0;
    line-height: 1.25;
}

.session-essay .essay-divider {
    width: 60px;
    height: 1px;
    background: var(--border);
    margin: 0 auto;
}

.session-essay .essay-body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.01em;
    color: var(--text);
}

.session-essay .essay-lead {
    font-family: 'Poppins', sans-serif;
    font-size: 0.98rem;
    line-height: 1.85;
    font-style: normal;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: left;
}

.session-essay p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 1.8rem;
    text-align: left;
}

.session-essay em {
    font-style: italic;
}

.session-essay .essay-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin: 3.5rem 0 1.5rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   AUTHENTIC ARTIST SIGNATURE
   ========================================================================== */
.essay-signature {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.essay-signature .signature-name {
    font-family: 'Eyesome Script', cursive;
    font-size: 2.6rem;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.essay-signature .signature-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 768px) {
    .single-intro h1 {
        font-size: 2.7rem;
    }
    .session-essay {
        margin: 4.5rem auto 2.5rem auto;
        padding: 0 1.25rem;
    }
    .session-essay .essay-title {
        font-size: 2.35rem;
    }
    .essay-signature {
        align-items: center;
        text-align: center;
        margin-top: 3rem;
    }
    .essay-signature .signature-name {
        font-size: 2.15rem;
    }
    .session-essay .essay-lead {
        font-size: 1.0rem;
        line-height: 1.75;
    }
    .session-essay p {
        font-size: 0.90rem;
        line-height: 1.75;
    }
    .session-essay .essay-subheading {
        font-size: 1.05rem;
        margin-top: 2.8rem;
    }
}

.bottom-nav {
    margin-top: 3.5rem;
    text-align: center;
    position: relative;
    z-index: 25;
}

.bottom-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    padding: 0.8rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}

.bottom-nav a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .site-header h1 { font-size: 2.2rem; }
    .session-card .card-media { height: 380px; }
    .gallery-row-vert {
        flex-direction: column;
        gap: 2rem;
    }
    .gallery-row-vert a { width: 100%; }
    .theme-toggle-btn { top: 1.2rem; right: 1.2rem; width: 40px; height: 40px; }
    .scroll-top-btn { bottom: 1.2rem; right: 1.2rem; width: 40px; height: 40px; }
}

/* ==========================================================================
   TWO-TIER FOOTER ARCHITECTURE
   ========================================================================== */
.site-footer {
    width: 100%;
    margin-top: 6rem;
    position: relative;
    z-index: 2; /* Poniżej listków (10), dzięki czemu listki przelatują swobodnie nad stopką */
    text-align: center;
}

/* Górny pas: Logo + Instagram (Półprzezroczysty, zachowuje fakturę papieru) */
.footer-tier-upper {
    width: 100%;
    background-color: rgba(225, 216, 200, 0.4);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

html.dark-mode .footer-tier-upper,
body.dark-mode .footer-tier-upper {
    background-color: rgba(25, 25, 25, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Środkowy pas: Pasek Nawigacji (Zbalansowany, spójny z nagłówkiem) */
.footer-tier-nav {
    width: 100%;
    background-color: rgba(218, 207, 190, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.1rem 1.5rem;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

html.dark-mode .footer-tier-nav,
body.dark-mode .footer-tier-nav {
    background-color: rgba(20, 20, 20, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}

/* Dolny pas: Prawa autorskie + Nota (Głębszy pas fundamentowy, zachowuje fakturę papieru) */
.footer-tier-lower {
    width: 100%;
    background-color: rgba(210, 198, 180, 0.65);
    padding: 1.8rem 1.5rem;
    transition: background-color 0.4s ease;
}

html.dark-mode .footer-tier-lower,
body.dark-mode .footer-tier-lower {
    background-color: rgba(12, 12, 12, 0.75);
}

.footer-tier-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-tier-lower .footer-tier-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.45rem;
}

.footer-social {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-social .social-link {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-social .social-link svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.75;
    fill: none;
}

.site-footer .copyright {
    font-family: 'Montserrat', sans-serif;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}

.site-footer .footer-note,
.site-footer .note {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.85;
    margin: 0;
}

/* ==========================================================================
   ELEGANT EDITORIAL LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    user-select: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-caption {
    color: #C0C0C0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 1.2rem;
    text-align: center;
}

.lightbox-btn {
    position: absolute;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.25s ease;
    z-index: 10001;
}

.lightbox-btn:hover {
    color: #FFFFFF;
    transform: scale(1.15);
}

.lightbox-btn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.lightbox-close {
    top: 1.5rem;
    right: 2rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.15);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.15);
}

@media (max-width: 768px) {
    .lightbox-btn svg { width: 22px; height: 22px; }
    .lightbox-prev { left: 0.3rem; }
    .lightbox-next { right: 0.3rem; }
    .lightbox-close { top: 1rem; right: 1rem; }
    .lightbox-img { max-height: 74vh; }
}

/* ==========================================================================
   CONTACT PAGE & TEXT PAGE STYLES
   ========================================================================== */
.contact-lead-desc {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0;
    color: var(--text);
    max-width: 620px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.contact-card-box {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2.2rem 3.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin: 1.5rem auto 0 auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark-mode .contact-card-box {
    background: rgba(30, 30, 30, 0.45);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-value-link {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value-link:hover {
    color: var(--accent);
}

.contact-divider-dot {
    font-size: 1.8rem;
    color: var(--border);
    line-height: 1;
}

@media (max-width: 640px) {
    .contact-card-box {
        flex-direction: column;
        gap: 1.8rem;
        padding: 1.8rem 2rem;
    }
    .contact-divider-dot {
        display: none;
    }
}

/* ==========================================================================
   GALLERY CONTACT FORM STYLES
   ========================================================================== */
.gallery-contact-form {
    max-width: 640px;
    margin: 0 auto 3.5rem auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

html.dark-mode .form-input {
    background: rgba(40, 40, 40, 0.6);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.form-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(140, 122, 107, 0.15);
}

html.dark-mode .form-input:focus {
    background: rgba(45, 45, 45, 0.9);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C7A6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

.form-submit-btn {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bg);
    background-color: var(--text);
    border: 1px solid var(--text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.form-submit-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-submit-btn .btn-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

.form-submit-btn:hover .btn-icon {
    transform: translate(2px, -2px);
}

.form-status-msg {
    margin-top: 1rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-status-msg .status-success {
    color: #2e7d32;
    padding: 0.75rem 1rem;
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 4px;
}

.form-status-msg .status-notice {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: italic;
}

.form-status-msg .status-error {
    color: #c62828;
    padding: 0.75rem 1rem;
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.2);
    border-radius: 4px;
}

/* Przycisk odsłaniania maila (Obfuscation) */
.reveal-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px dashed var(--accent);
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reveal-email-btn:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-style: solid;
}

.reveal-email-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

