:root {
    --bg0: #06070a;
    --bg1: #090b10;
    --bg2: #0d1119;

    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.70);
    --faint: rgba(255, 255, 255, 0.45);

    --gold: #c9ab2a;
    --gold2: #e3cf75;

    --line: rgba(255, 255, 255, 0.10);
    --line2: rgba(255, 255, 255, 0.16);

    --glass: rgba(255, 255, 255, 0.06);
    --glass2: rgba(255, 255, 255, 0.09);

    --shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
    --shadow2: 0 18px 60px rgba(0, 0, 0, 0.55);

    --r: 18px;
    --r2: 28px;
    --max: 1240px;

    --navH: 76px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: #000;
    /*
radial-gradient(900px 520px at 18% -8%, rgba(201, 171, 42, 0.18), transparent 62%),
radial-gradient(900px 560px at 86% 6%, rgba(90, 167, 255, 0.10), transparent 58%),
linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg2) 100%);
     */
    overflow-x: hidden;
}

/* Premium noise (very subtle) */
body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.05), transparent 22%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, 0.03), transparent 20%);
    mix-blend-mode: overlay;
    opacity: 0.42;
    filter: blur(0.2px);
}

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

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

button, input, textarea {
    font: inherit;
    color: inherit;
}

.wrap {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.40);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform .15s ease, border-color .2s ease, background .2s ease;
    user-select: none;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.btn.primary {
    border-color: rgba(201, 171, 42, 0.38);
    background: linear-gradient(135deg, rgba(201, 171, 42, 0.24), rgba(255, 255, 255, 0.06));
    box-shadow: 0 24px 90px rgba(201, 171, 42, 0.10);
}

.btn.primary:hover {
    border-color: rgba(201, 171, 42, 0.58);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    box-shadow: 0 0 0 4px rgba(201, 171, 42, 0.14);
}

/* NAV */
.nav {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--navH);
    display: flex;
    align-items: center;
    background: rgba(6, 7, 10, 0.38);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .25s ease, border-color .25s ease;
}

.nav.scrolled {
    background: rgba(6, 7, 10, 0.68);
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 90%;
}

.nav-links {
    margin: 0 auto; /* középre tolja */
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #ffffff;
    padding: 6px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: "Copperplate", "Copperplate Gothic Light", "Copperplate Gothic", serif; /* ✅ copperplate */
}

.brand-sub {
    font-size: 12px;
    color: var(--faint);
    margin-top: 2px;
}

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

    padding: 0; /* ✅ nincs “doboz” padding */
    border: 0; /* ✅ nincs körvonal */
    border-radius: 0; /* ✅ nincs pill forma */
    background: transparent; /* ✅ nincs háttér */
}

.nav-links a {
    font-size: 15px; /* ✅ nagyobb betű */
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.78);
    padding: 6px 0; /* ✅ nincs “pill button” érzés */
    border-radius: 0;

    transition: color .2s ease, transform .2s ease;
}

.nav-links a:hover {
    color: var(--text);
    transform: translateY(-1px);
    background: transparent; /* ✅ hover se tegyen hátteret */
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.hamburger:before {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.80);
    margin: 0 auto;
    box-shadow: 0 6px 0 rgba(255, 255, 255, 0.55), 0 -6px 0 rgba(255, 255, 255, 0.55);
    border-radius: 2px;
}

/* =========================
   MOBILE MENU – CLEAN MODAL
   ========================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    padding: 0;

    background: rgba(6, 7, 10, 0.96); /* ✅ erős, tiszta háttér */
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    align-items: center;
    justify-content: center;
}

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

/* Menü tartalom doboz */
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(320px, 86vw);
}

/* Menü linkek */
.mobile-menu a {
    display: block;
    text-align: center;

    padding: 16px 14px;
    border-radius: 16px;

    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);

    transition: transform .15s ease, background .2s ease;
}

.mobile-menu a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
}

/* Body lock */
body.menu-open {
    overflow: hidden;
}

.hero,
.section {
    position: relative;
    z-index: 1;
}

.nav {
    z-index: 100;
}

/* Close button */
.menu-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 44px;
    height: 44px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);

    color: #fff;
    font-size: 22px;
    line-height: 1;

    display: grid;
    place-items: center;

    cursor: pointer;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition: transform .15s ease, background .2s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.12);
}

/* --- OVERLAP SECTION SYSTEM --- */
.section {
    position: relative;
    padding: 76px 0;
    z-index: 1;
}

/* sections overlap each other */
.section.overlap {
    margin-top: -54px;
    padding-top: 110px;
}

.section .shell {
    position: relative;
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section .shell:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 520px at 18% 0%, rgba(201, 171, 42, 0.14), transparent 60%),
    radial-gradient(900px 520px at 85% 25%, rgba(90, 167, 255, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.55));
    pointer-events: none;
    opacity: 0.85;
}

.section-inner {
    position: relative;
    padding: 26px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 22px;
    letter-spacing: -0.02em;
    margin: 0;
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--r);
    padding: 18px;
    box-shadow: var(--shadow2);
    transition: transform .18s ease, border-color .2s ease, background .2s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.05);
}

.kicker {
    font-size: 12px;
    color: var(--faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card h3 {
    margin: 10px 0 8px;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

/* HERO */
.hero {
    position: relative;
    min-height: calc(100vh - var(--navH));
    display: flex;
    align-items: center;
    padding: 44px 0 36px;
    z-index: 5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: stretch;
}

.h1 {
    font-size: clamp(44px, 5.0vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    margin: 14px 0 14px;
    font-weight: 700;
}

.lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 18px;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    color: var(--faint);
    font-size: 13px;
}

.trust span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.hero-media {
    position: relative;
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 520px;
    background: rgba(255, 255, 255, 0.04);
    isolation: isolate;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    opacity: 1;
    will-change: transform;
}

.hero-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
    max-width: 86%;
}

.hero-badge .k {
    font-size: 12px;
    color: var(--faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.hero-badge .v {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ABOUT content */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    align-items: stretch;
}

.statement {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 171, 42, 0.25);
    background: linear-gradient(135deg, rgba(201, 171, 42, 0.14), rgba(255, 255, 255, 0.03));
    box-shadow: 0 28px 120px rgba(201, 171, 42, 0.08);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pillars {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.media {
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
    min-height: 360px;
    position: relative;
    isolation: isolate;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.86;
    will-change: transform;
}

/* --- PINNED HORIZONTAL SYSTEM --- */
.pin {
    position: relative;
}

/* wrapper that becomes "pinned" */
.pin .pin-stage {
    position: sticky;
    top: calc(var(--navH) + 18px);
    height: calc(100vh - var(--navH) - 36px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 570px;
}

.pin .pin-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.pin .pin-title {
    font-size: 22px;
    letter-spacing: -0.02em;
    margin: 0;
}

.pin .pin-sub {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.pin-body {
    flex: 1;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 14px;
    align-items: stretch;
    min-height: 0;
}

.pin-left {
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow2);
    padding: 18px;
}

.pin-left h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.pin-left p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.goldline {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 171, 42, 0.55), transparent);
    margin: 12px 0;
    opacity: 0.85;
}

.pin-right {
    border-radius: var(--r2);
    border: 0px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow2);
    overflow: hidden;
    position: relative;
    min-height: 0;
}

/* horizontal track */
.htrack {
    height: 100%;
    display: flex;
    gap: 12px;
    padding: 0px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.hcard {
    flex: 0 0 calc(100% - 0px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.50);
    padding: 18px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hcard:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(800px 420px at 20% 20%, rgba(201, 171, 42, 0.16), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.hcard .inner {
    position: relative;
    z-index: 1;
}

.hcard h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.hcard p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.hcard .img {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

.hcard .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.86;
    transform: scale(1.02);
}

.hcard .img:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 14px;
    align-items: start;
}

.contact-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-item .label {
    color: var(--faint);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-item .value {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-item .hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.contact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ico {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.ico svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.88);
}

.form {
    display: grid;
    gap: 10px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--faint);
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.input, .textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.20);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.input:focus, .textarea:focus {
    border-color: rgba(201, 171, 42, 0.55);
    box-shadow: 0 0 0 6px rgba(201, 171, 42, 0.14);
    transform: translateY(-1px);
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

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

.fineprint {
    color: var(--faint);
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0 0;
}

footer {
    padding: 28px 0 44px;
    color: var(--faint);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

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

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

/* Reveal + Parallax */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: transform, opacity;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.parallax {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Make pinned sections tall enough to scroll through horizontal track */
.pin {
    /* JS will set this height precisely based on content */
    padding: 76px 0;
}

/* Responsive */
@media (max-width: 980px) {
    .hcard .img {
        height: 150px;
    }

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

    .hero-media {
        min-height: 360px;
    }

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

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

    .pin-body {
        grid-template-columns: 1fr;
    }

    .hcard {
        flex-basis: 92%;
    }

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

    .nav-links {
        display: none;
    }

    .hamburger {
        display: inline-grid;
        place-items: center;
    }
}

/* pin sections should visually fill the entire scroll length */
.section.pin .shell {
    height: 100%;
}

.section.pin .section-inner {
    height: 100%;
}

/* IMPORTANT: sticky won't work inside overflow:hidden ancestors */
.section.pin .shell {
    overflow: visible !important;
}

/* pin sections: remove outer padding so pin math is clean */


/* B solution: enable pin on mobile too */
.hcard {
    flex: 0 0 100%;
}

.pin .pin-stage {
    height: calc(100dvh - var(--navH) - 36px);
}

/* =========================
   TRADING – VERTICAL LAYOUT
   ========================= */

.trading-vertical {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.trade-item {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 36px;
}

.trade-head {
    max-width: 680px;
}

.trade-head h3 {
    font-size: 26px;
    letter-spacing: -0.02em;
    margin: 8px 0 12px;
}

.trade-head p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.trade-media {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.trade-media.single {
    grid-template-columns: 1fr;
}

.trade-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

/* Mobile */
@media (max-width: 980px) {
    .trade-media {
        grid-template-columns: 1fr;
    }

    .trade-media img {
        height: 260px;
    }
}

/* =========================
   FULLBLEED SCROLL STORY
   ========================= */
.section.fullbleed {
    padding-left: 0;
    padding-right: 0;
}

.trade-story {
    position: relative;
    min-height: 100vh;
}

/* Sticky background behind everything */
.story-bg {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Two layers for crossfade */
.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: translate3d(0, 0, 0) scale(1.08);
    will-change: transform, opacity;
    opacity: 0;

    /* ✅ lassabb, filmes átmenet */
    transition: opacity 1.2s cubic-bezier(.22, .61, .36, 1),
    transform 2.2s cubic-bezier(.22, .61, .36, 1);
}

.bg-layer.is-on {
    opacity: 1;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 520px at 18% 0%, rgba(201, 171, 42, 0.14), transparent 60%),
    radial-gradient(900px 520px at 85% 25%, rgba(90, 167, 255, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.68));
    pointer-events: none;
}

/* Panels: each drives one viewport of scroll */
.story-panels {
    position: relative;
    z-index: 1;
}

.story-panel {
    min-height: calc(100vh - var(--navH));
    display: flex;
    align-items: center;
    padding: 44px 0;
}

/* Card that floats above background */
.story-card {
    width: min(720px, 100%);
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    padding: 22px 22px;
}

.story-card h2 {
    margin: 10px 0 10px;
    font-size: clamp(30px, 3.2vw, 46px);
    letter-spacing: -0.03em;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

/* Nice “flow” between panels */
.story-panel + .story-panel {
    border-top: 0;
}

/* Trading intro block */
.story-head{
    padding: 10px 0 24px;
    position: relative;
    z-index: 2;
}
.trade-intro{
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}
.trade-intro p{ margin: 10px 0 0; }
.trade-points{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.trade-points span{
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

/* Trading story text background */
.story-scrim{
    max-width: 780px;
    padding: 28px 32px;
    border-radius: 18px;
    background:
            radial-gradient(
                    120% 120% at 0% 0%,
                    rgba(0,0,0,.65) 0%,
                    rgba(0,0,0,.45) 45%,
                    rgba(0,0,0,.20) 70%,
                    rgba(0,0,0,0) 100%
            ),
            linear-gradient(
                    to bottom,
                    rgba(0,0,0,.55),
                    rgba(0,0,0,.15)
            );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* finomabb szöveg */
.story-scrim p{
    color: rgba(255,255,255,.88);
}

/* pills maradjanak könnyűek */
.trade-points span{
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
}
.pin-points{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}
.pin-points span{
    padding:8px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.78);
    font-size:13px;
}

/* Mobile tweaks */
@media (max-width: 980px) {
    .story-bg {
        top: 0;
        height: 100vh;
    }

    .section-head {
        flex-wrap: wrap;
    }
    .pin .pin-top {
        flex-wrap: wrap;
    }

    .story-card {
        padding: 18px;
    }
}

/* ABOUT – make left text fill height and align pillars to image bottom */
.about-grid{
    display:grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
    align-items: stretch;          /* key: both columns same height */
}

/* Left column becomes a vertical layout */
.about-copy{
    display:flex;
    flex-direction: column;
    height: 100%;
}

/* Push the 3 cards to the bottom of the left column */
.about-copy .pillars{
    margin-top: auto;              /* key: aligns to bottom */
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Make the image column match height and crop nicely */
.about-grid .media{
    height: 100%;
}

.about-grid .media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;           /* ha nálad más radius van, igazítsd */
    display:block;
}
/* ABOUT – compress left column to content (no forced equal height) */
.about-grid{
    display:grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
    align-items: start;          /* was: stretch */
}

/* remove forced fill */
.about-copy{
    display:block;               /* was: flex */
    height:auto;                 /* was: 100% */
}

/* cards follow content (no pushing to bottom) */
.about-copy .pillars{
    margin-top: 18px;            /* was: auto */
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* image stays nice without forcing same height as left */
.about-grid .media img{
    width:100%;
    height:auto;                 /* was: 100% */
    object-fit: cover;
    display:block;
    border-radius: 18px;
    max-height: 380px;          /* állítható (pl. 480–620) */
}

/* Responsive: stack on mobile */
@media (max-width: 980px){
    .about-grid{
        grid-template-columns: 1fr;
    }
    .about-copy{
        height: auto;
    }
    .about-copy .pillars{
        margin-top: 18px;
        grid-template-columns: 1fr;
    }
    .about-grid .media img{
        height: auto;
    }
    .media {
        min-height: auto;
    }
}


/* =========================
   LOGISTICS – MOBILE FIX
   ========================= */
@media (max-width: 980px){



    #logistics .pin-body{
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    /* 2) Make the right cards visible + horizontally swipeable */
    #logistics .pin-right{

        -webkit-overflow-scrolling: touch;
        padding: 12px !important;
        border-radius: var(--r2);
    }


    .section.pin{ padding: 76px 0 !important; }
    .section.pin .wrap{ padding: 0 !important; }


    #logistics .hcard{
        flex: 0 0 86vw !important;          /* kártya szélesség mobilon */
        scroll-snap-align: start;
    }

    /* 3) Optional: a túl hosszú szöveg ne nyomja le mindent */
    #logistics .pin-left{
        padding: 16px !important;
    }

    #logistics .pin-left p{
        font-size: 14px;
        line-height: 1.6;
    }
}

/* =========================
   LOGISTICS – MOBILE (scroll-driven, but visible)
   ========================= */
@media (max-width: 980px){

    /* maradhat 1 oszlop, csak osszuk fel a magasságot */
    #logistics .pin-stage{
        max-height: none; /* ne korlátozd 570-re mobilon */
    }

    #logistics .pin-body{
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* a szöveg doboz ne legyen végtelen: belső scroll */
    #logistics .pin-left{
        max-height: 46dvh;         /* állítható: 40–55dvh */
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* a kártyák doboza látszódjon mindig */
    #logistics .pin-right{
        height: 38dvh;             /* állítható: 28–40dvh */
        overflow: hidden;          /* a JS mozgatja a track-et */
    }

    /* kártya szélesség mobilon */
    #logistics .hcard{
        flex: 0 0 92%;
    }

    #logistics .hcard .img{
        height: 150px;             /* nálad már van, maradhat */
    }
    .pin .pin-stage{
        position: sticky;
        top: calc(var(--navH) + 18px);
        height: calc(100svh - var(--navH) - 36px);
        display: flex;
        flex-direction: column;
        gap: 14px;
        max-height: none; /* NE 570 mobilon */
    }
}