/* ===================================
   BARLOW — LOCAL SELF-HOSTED
   =================================== */
 
@font-face
{
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/barlow-v13-latin_latin-ext-300.woff2') format('woff2');
}
 
@font-face
{
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/barlow-v13-latin_latin-ext-regular.woff2') format('woff2');
}
 
@font-face
{
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/barlow-v13-latin_latin-ext-500.woff2') format('woff2');
}
 
@font-face
{
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/barlow-v13-latin_latin-ext-600.woff2') format('woff2');
}
 
@font-face
{
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/barlow-v13-latin_latin-ext-700.woff2') format('woff2');
}

@font-face
{
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/barlow-v13-latin_latin-ext-800.woff2') format('woff2');
}

@font-face
{
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('fonts/barlow-v13-latin_latin-ext-900.woff2') format('woff2');
}

@font-face
{
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/dm-serif-display-v17-latin_latin-ext-regular.woff2') format('woff2');
}

@font-face
{
    font-family: 'DM Serif Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/dm-serif-display-v17-latin_latin-ext-italic.woff2') format('woff2');
}

*,*::before,*::after

{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root
{
    --color-bg:#050d20;
    --color-bg-light:#0a1a3a;
    --color-cream:#fcf5ed;
    --color-red:#d02c27;
    --color-gold:#c9a84c;
    --color-text:#b8c4d8;
    --color-white:#fff;
    --font-display:'Barlow',sans-serif;
    --font-serif:'DM Serif Display',serif;
}

html
{
    scroll-behavior:smooth;
}

body
{
    background:var(--color-bg);
    font-family:var(--font-display);
    color:var(--color-cream);
    overflow-x:hidden;
}

.sr-only
{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    border:0;
}

/* NAV */

.nav
{
    position:fixed;
    top:0;
    right:0;
    z-index:200;
    padding:24px 32px;
}

.hamburger
{
    display:flex;
    flex-direction:column;
    gap:7px;
    background:rgba(5,13,32,0.7);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:50%;
    cursor:pointer;
    width:52px;
    height:52px;
    align-items:center;
    justify-content:center;
    z-index:201;
    position:relative;
    box-shadow:0 2px 12px rgba(0,0,0,0.4);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    transition:background 0.3s,border-color 0.3s;
}

.hamburger:hover
{
    background:rgba(5,13,32,0.9);
    border-color:rgba(201,168,76,0.3);
}

.hamburger span
{
    display:block;
    width:22px;
    height:2px;
    background:var(--color-cream);
    border-radius:1px;
    transition:transform 0.4s,opacity 0.3s;
    transform-origin:center;
}

.hamburger.open span:nth-child(1)
{
    transform:translateY(9px) rotate(45deg)
}

.hamburger.open span:nth-child(2)
{
    opacity:0
}

.hamburger.open span:nth-child(3)
{
    transform:translateY(-9px) rotate(-45deg)
}

.nav-overlay
{
    position:fixed;
    inset:0;
    background:rgba(5,13,32,0.96);
    z-index:199;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:40px;
    opacity:0;
    pointer-events:none;
    transition:opacity 0.4s;
}

.nav-overlay.open
{
    opacity:1;
    pointer-events:all;
}

.nav-overlay a
{
    font-size:1.6rem;
    font-weight:600;
    color:var(--color-cream);
    text-decoration:none;
    letter-spacing:2px;
    text-transform:uppercase;
    transition:color 0.3s;
    position:relative;
}

.nav-overlay a::after
{
    content:'';
    position:absolute;
    bottom:-4px;
    left:0;
    width:0;
    height:2px;
    background:var(--color-gold);
    transition:width 0.3s;
}

.nav-overlay a:hover
{
    color:var(--color-gold)
}

.nav-overlay a:hover::after
{
    width:100%
}

/* LANG SWITCH */

.lang-switch
{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:20px;
}

.lang-switch a
{
    font-size:1rem;
    font-weight:600;
    letter-spacing:2px;
    color:var(--color-text);
    text-decoration:none;
    transition:color 0.3s;
}

.lang-switch a.lang-active
{
    color:var(--color-gold);
}

.lang-switch a:hover
{
    color:var(--color-gold);
}

.lang-switch a::after
{
    display:none;
}

.lang-divider
{
    color:rgba(255,255,255,0.2);
    font-weight:300;
}

/* SHIP PROGRESS */

.ship-progress
{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:4px;
    z-index:99;
    background:rgba(255,255,255,0.15);
    opacity:0;
    transition:opacity 0.5s;
}

.ship-progress.visible
{
    opacity:1
}

.ship-progress-fill
{
    height:100%;
    width:0%;
    background:var(--color-red);
    transition:width 0.05s linear;
    position:relative;
}

/* ===================================
HERO
=================================== */

.hero
{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:var(--color-bg);
}

.hero::before
{
    content:'';
    position:absolute;
    top:30%;
    left:50%;
    transform:translate(-50%,-50%);
    width:600px;
    height:600px;
    background:radial-gradient(circle,rgba(201,168,76,0.06) 0%,transparent 70%);
    pointer-events:none;
}

.hero-subtitle
{
    text-align:center;
    font-size:1.1rem;
    font-weight:300;letter-spacing:4px;
    text-transform:uppercase;
    color:var(--color-gold);
    opacity:0;
    animation:fadeDown 1s ease 0.2s forwards;
    position:relative;
    z-index:2;
}

.hero-thpv
{
    text-align:center;
    font-size:clamp(80px,15vw,200px);
    font-weight:900;
    letter-spacing:8px;
    line-height:1;
    margin-top:-10px;
    padding:0 16px;
    color:var(--color-white);
    opacity:0;
    animation:fadeDown 1s ease 0.5s forwards;
    position:relative;
    z-index:2;
}

/* ===========================================
BEMBRIDGE — background-clip:text
=========================================== */

.hero-bembridge
{
    font-size:clamp(60px,11vw,260px);
    font-weight:900;
    letter-spacing:6px;
    line-height:0.9;
    text-align:center;
    margin-top:-15px;
    padding:0 16px;
    max-width:100%;
    position:relative;z-index:2;

    background-image:url('grafiki/bembridge/statek.webp');
    background-size:cover;
    background-position:center 65%;
    background-repeat:no-repeat;

    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;

    -webkit-text-stroke:2px rgba(255, 255, 255, 0.952);

    filter:drop-shadow(0 2px 8px rgba(0,0,0,0.3));

    opacity:0;animation:fadeUp 1.2s ease 1s forwards;
}

.hero-year
{
    margin-top:24px;
    font-family:var(--font-serif);
    font-size:1.3rem;
    color:var(--color-gold);
    letter-spacing:2px;
    text-align:center;
    padding:0 24px;
    max-width:100%;
    opacity:0;
    animation:fadeUp 1s ease 1.8s forwards;
    position:relative;
    z-index:2;
}

.scroll-indicator
{
    position:absolute;
    bottom:40px;
    left:0;
    right:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    opacity:0;
    animation:fadeUp 1s ease 2.2s forwards;
    z-index:2;
}

.scroll-indicator span
{
    font-size:0.7rem;
    letter-spacing:3px;
    text-transform:uppercase;
    color:var(--color-text);
}

.scroll-arrow
{
    width:20px;
    height:20px;
    border-right:2px solid var(--color-gold);
    border-bottom:2px solid var(--color-gold);
    transform:rotate(45deg);
    animation:bounceArrow 2s ease infinite;
}

.hero-divider
{
    width:100%;
    height:4px;
    background:var(--color-white);
}

/* ===================================
TIMELINE
=================================== */

.timeline-strip
{
    background:var(--color-bg-light);
    padding:24px 5%;
    overflow-x:auto;
}

.timeline-track
{
    position:relative;
    height:200px;
    min-width:900px;
}

.timeline-track::before
{
    content:'';
    position:absolute;
    top:50%;
    left:0;
    right:0;
    height:2px;
    background:rgba(255,255,255,0.1);
    transform:translateY(-1px);
}

.timeline-node
{
    position:absolute;
    display:flex;
    flex-direction:column;
    align-items:center;
    z-index:1;
    cursor:pointer;
    transition:filter 0.3s;
}

.timeline-node.top
{
    bottom:50%;
    flex-direction:column-reverse;
    padding-bottom:10px;
}

.timeline-node.top .timeline-label
{
    margin-bottom:8px;
}

.timeline-node.bottom
{
    top:50%;padding-top:10px;
}

.timeline-node.bottom .timeline-label
{
    margin-top:8px;
}

.timeline-node:hover
{
    filter:brightness(1.3);
}

.timeline-year
{
    font-size:1.05rem;
    font-weight:700;
    color:var(--color-white);
    white-space:nowrap;
}

.timeline-dot
{
    width:14px;
    height:14px;
    border-radius:50%;
    flex-shrink:0;
    background:var(--color-bg-light);
    border:2px solid var(--color-gold);
    transition:0.3s;
}

.timeline-node:hover .timeline-dot
{
    background:var(--color-gold);
    box-shadow:0 0 12px rgba(201,168,76,0.4);
}

.timeline-label
{
    font-size:0.65rem;
    text-transform:uppercase;
    letter-spacing:1px;
    color:var(--color-text);
    text-align:center;
    max-width:110px;
    line-height:1.4;
}

/* ===================================
SECTIONS
=================================== */

.story-section
{
    padding:120px 0;
    position:relative;
}

.story-section:nth-child(even)
{
    background:var(--color-bg-light);
}

.story-inner
{
    max-width:900px;
    width:90%;
    margin:0 auto;
}

.story-era
{
    display:inline-block;
    font-size:0.7rem;
    font-weight:700;
    letter-spacing:4px;
    text-transform:uppercase;
    color:var(--color-gold);
    padding:6px 16px;
    border:1px solid rgba(201,168,76,0.3);
    border-radius:20px;
    margin-bottom:20px;
}

.story-title
{
    font-family:var(--font-serif);
    font-size:clamp(2rem,5vw,3.2rem);
    font-weight:400;
    color:var(--color-white);
    line-height:1.2;
    margin-bottom:32px;
}

.story-text
{
    font-size:1.1rem;
    line-height:1.9;
    color:var(--color-text);
    margin-bottom:24px;
}

.story-text strong
{
    color:var(--color-white);
    font-weight:600;
}

.story-highlight
{
    border-left:3px solid var(--color-red);
    padding:20px 28px;
    margin:36px 0;
    background:rgba(208,44,39,0.06);
    border-radius:0 8px 8px 0;
}

.story-highlight p
{
    font-family:var(--font-serif);
    font-size:1.2rem;
    line-height:1.7;
    color:var(--color-cream);
}

.story-image
{
    width:100%;
    height:50vh;
    min-height:300px;
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    position:relative;
}

.story-image::after
{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom,var(--color-bg) 0%,transparent 20%,transparent 80%,var(--color-bg) 100%);
}

.story-image-caption
{
    position:absolute;
    bottom:32px;
    right:32px;
    font-size:0.75rem;
    color:rgba(255,255,255,0.5);
    letter-spacing:1px;
    z-index:1;
}

/* SPEC TABLE */

.spec-btn
{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:32px;
    padding:14px 28px;
    background:transparent;
    border:1px solid var(--color-gold);
    border-radius:6px;
    color:var(--color-gold);
    font-family:var(--font-display);
    font-size:0.9rem;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    cursor:pointer;
    transition:all 0.3s;
}

.spec-btn:hover
{
    background:var(--color-gold);
    color:var(--color-bg);
}

.spec-btn-arrow
{
    transition:transform 0.3s;
    font-size:0.8rem;
}

.spec-btn.open .spec-btn-arrow
{
    transform:rotate(180deg);
}

.spec-table-wrapper
{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.6s ease,opacity 0.4s ease;
    opacity:0;
}

.spec-table-wrapper.open
{
    max-height:950px;
    opacity:1;
    margin-top:32px;
}

.spec-table-wrapper p
{
    margin-top: 15px;
    font-size: 0.85rem;
    line-height: 20px;
    color: #ffffffc5;
}

.spec-table
{
    width:100%;
    border-collapse:collapse;
}

.spec-table tr
{
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.spec-table td
{
    padding:12px 16px;
    font-size:0.95rem;
    color:var(--color-text);
    vertical-align:top;
}

.spec-table td:first-child
{
    color:var(--color-cream);
    font-weight:600;width:40%;
}

.spec-table tr:hover
{
    background:rgba(255,255,255,0.03);
}

/* VIDEO */

.video-wrapper
{
    position:relative;
    width:100%;
    max-width:800px;
    margin:48px auto 0;
    padding-bottom:56.25%;
    height:0;
    border-radius:12px;
    overflow:hidden;
    background:var(--color-bg-light);
    border:1px solid rgba(255,255,255,0.08);
}

.video-wrapper iframe
{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
}

.video-placeholder
{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:16px;color:var(--color-text);
}

.video-placeholder-icon
{
    width:64px;
    height:64px;
    border-radius:50%;
    background:var(--color-red);
    display:flex;
    align-items:center;
    justify-content:center;
}

.video-placeholder-icon::after
{
    content:'';
    display:block;
    width:0;
    height:0;
    border-style:solid;
    border-width:12px 0 12px 22px;
    border-color:transparent transparent transparent white;
    margin-left:4px;
}

.video-placeholder span
{
    font-size:0.85rem;
    letter-spacing:1px;
}

/* STATS */

.stats-grid
{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    margin:48px 0;
}

.stat-card
{
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:12px;
    padding:28px;
    text-align:center;
    transition:0.3s;
}

.stat-card:hover
{
    background:rgba(255,255,255,0.06);
    border-color:var(--color-gold);
    transform:translateY(-4px);
}

.stat-number
{
    font-size:2.4rem;
    font-weight:800;
    color:var(--color-gold);
    line-height:1;
    margin-bottom:8px;
}

.stat-label
{
    font-size:0.8rem;
    text-transform:uppercase;
    letter-spacing:2px;
    color:var(--color-text);
}

.fade-in
{
    opacity:0;
    transform:translateY(40px);
    transition:opacity 0.8s ease,transform 0.8s ease;
}

.fade-in.visible
{
    opacity:1;
    transform:translateY(0);
}

.bembridge-footer
{
    padding:30px 0 32px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,0.08);
}

.bembridge-footer p
{
    font-size:0.8rem;
    color:var(--color-text);
    letter-spacing:1px;
}

.bembridge-footer a
{
    color:var(--color-gold);
    text-decoration:none;
}

@keyframes fadeDown
{
    from
    {
        opacity:0;transform:translateY(-30px);
    }

    to
    {
        opacity:1;transform:translateY(0);
    }
}

@keyframes fadeUp
{
    from
    {
        opacity:0;transform:translateY(20px);
    }

    to
    {
        opacity:1;transform:translateY(0);
    }
}

@keyframes bounceArrow
{
    0%,100%
    {
        transform:rotate(45deg) translateY(0);
    }

    50%
    {
        transform:rotate(45deg) translateY(6px);
    }
}

/* ===================================
TIMELINE PIONOWY — ekrany <= 1100px
=================================== */

@media(max-width:1100px)
{
    .timeline-strip
    {
        padding:40px 5%;
        overflow-x:visible;
    }

    .timeline-track
    {
        display:flex;
        flex-direction:column;
        height:auto;
        min-width:0;
        gap:0;
        padding-left:28px;
    }

    .timeline-track::before
    {
        top:0;
        bottom:0;
        left:14px;
        right:auto;
        width:2px;
        height:100%;
        transform:none;
    }

    .timeline-node
    {
        position:relative;
        flex-direction:row;
        align-items:center;
        gap:16px;
        padding:12px 0;
        left:auto !important;
        top:auto !important;
        bottom:auto !important;
        transform:none !important;
    }

    .timeline-node.top,
    .timeline-node.bottom
    {
        flex-direction:row;
        padding:12px 0;
        top:auto;
        bottom:auto;
    }

    .timeline-node.top .timeline-label,
    .timeline-node.bottom .timeline-label
    {
        margin:0;
    }

    .timeline-dot
    {
        position:absolute;
        left:-28px;
        flex-shrink:0;
    }

    .timeline-year
    {
        font-size:1.1rem;
        min-width:50px;
    }

    .timeline-label
    {
        text-align:left;
        max-width:none;
    }
}

@media(max-width:768px)
{
    .hero-thpv
    {
        letter-spacing:4px;
        font-size:clamp(50px,14vw,120px);
    }

    .hero-bembridge
    {
        letter-spacing:2px;
        -webkit-text-stroke:1px rgba(255, 255, 255, 0.952);
        font-size:clamp(36px,12vw,90px);
    }

    .hero-year
    {
        font-size:1rem;
        letter-spacing:1px;
        padding:0 20px;
    }

    .stats-grid
    {
        grid-template-columns:1fr;
    }

    .spec-table-wrapper.open
    {
        max-height:1100px;
    }

    .story-section
    {
        padding:80px 0;
    }

    .story-image
    {
        background-attachment:scroll;
    }

    .nav-overlay a
    {
        font-size:1.2rem;
    }

}