:root {
    --bg: #0a0a0a;
    --bg-soft: #121212;
    --panel: #141414;
    --panel-soft: #181818;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f2ed;
    --muted: #a7a199;
    --muted-strong: #d5d0c7;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1180px;
}

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

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ccff00;
    color: #000;
    padding: 8px 16px;
    z-index: 9999;
    font-weight: bold;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #000;
}

/* Accessibility: Global Focus Outline Fix */
:focus-visible {
    outline: 2px solid #ccff00;
    outline-offset: 3px;
    border-radius: 2px;
}

html {
    scroll-behavior: smooth;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, #0c0c0c 0%, #090909 100%);
    color: var(--text);
    font-family: "Inter", "Space Grotesk", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.page-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-bg {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.15;
}

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-shell {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-text strong,
.brand-text span {
    display: block;
}

.brand-text strong {
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-text span {
    color: var(--muted);
    font-size: 0.82rem;
}

.brand-logo {
    height: clamp(56px, 8.5vw, 88px);
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
    flex-shrink: 0;
}

/* Dark módban logo.png-t mutatjuk (nem invertálunk — képcsere van) */
body[data-theme="dark"] .brand-logo { filter: drop-shadow(0 1px 4px rgba(255,255,255,0.06)); }

/* ─── Brand tagline: "ai powered, genz approved." ─── */
.brand-tagline {
    display: none; /* mobilon rejtve */
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.brand-tagline-text {
    position: relative;
    display: inline-block;
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: lowercase;
    color: #0a0a0a;
    padding: 0.1em 0.5em 0.22em;
    white-space: nowrap;
    z-index: 1;
}

/* Neon brush stroke a szöveg alatt */
.brand-tagline-text::before {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 28%;
    bottom: -22%;
    background: #ccff00;
    z-index: -1;
    transform: rotate(-0.7deg);
    /* Ecsetvonás hatású szaggatott él clip-path-szal */
    clip-path: polygon(
        0% 14%, 4% 0%, 9% 20%, 16% 3%, 24% 22%, 32% 2%, 40% 20%, 48% 4%, 56% 22%, 64% 2%, 72% 20%, 80% 3%, 88% 21%, 94% 2%, 98% 16%, 100% 8%,
        100% 78%, 98% 100%, 93% 74%, 87% 98%, 80% 72%, 72% 100%, 64% 74%, 56% 98%, 48% 72%, 40% 100%, 32% 74%, 24% 98%, 16% 72%, 9% 98%, 4% 76%, 0% 88%
    );
    opacity: 0.96;
}

/* Desktop: megjelenítjük a tagline-t */
@media (min-width: 861px) {
    .brand-tagline { display: flex; }

    .brand {
        gap: 0.9rem;
    }
}

/* Dark mode: szöveg maradjon sötét a neon ecset felett */
body[data-theme="dark"] .brand-tagline-text { color: #f4f2ed; }

.mobile-page-title {
    display: none;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    white-space: nowrap;
}
body[data-theme="dark"] .mobile-page-title { color: #f4f2ed; }

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    flex-direction: column;
    gap: 6px;
    z-index: 105;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #0e0e0e;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
body[data-theme="dark"] .hamburger span { background: #f4f2ed; }

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.34rem;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-nav a {
    position: relative;
    color: var(--muted-strong);
    font-size: 0.79rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.42rem 0.74rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.24rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(244, 242, 237, 0.94), rgba(255, 255, 255, 0.08));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.site-nav a:active {
    transform: translateY(1px);
}

.nav-cta {
    flex-shrink: 0;
}

.section {
    position: relative;
    padding: 5rem 0;
}

.ascii-hero {
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.ascii-hero-inner {
    display: grid;
    justify-items: center;
    gap: 1rem;
}


.ascii-sub {
    text-align: center;
}

body[data-page="home"]:not([data-theme="dark"]) .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
}

.home-nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.95rem;
}

.home-nav {
    justify-self: center;
}

.home-nav-meta {
    display: grid;
    gap: 0.2rem;
    text-align: right;
    padding-right: 0.25rem;
}

.home-nav-meta span {
    color: var(--muted-strong);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-nav-meta span:first-child {
    animation: meta-pulse 3.2s ease-in-out infinite;
}

.hero-slogan {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.94rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-strong);
}

.hero-slogan::before,
.hero-slogan::after {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}

/* Home vNext */
.home-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-nav-grid {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav actions";
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0;
}

.home-nav-grid .brand {
    grid-area: brand;
}

.home-actions {
    grid-area: actions;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.home-nav-grid .nav-cta {
    justify-self: auto;
}

.home-nav-grid .site-nav {
    grid-area: nav;
    justify-self: center;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-nav-grid .site-nav::-webkit-scrollbar {
    display: none;
}

.home-nav {
    grid-area: nav;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-nav::-webkit-scrollbar {
    display: none;
}

.home-value {
    padding-top: 1.7rem;
    padding-bottom: 2.6rem;
}

.value-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: start;
}

.value-copy {
    min-width: 0;
}

.value-copy h1 {
    margin-top: 1rem;
    max-width: 7.4ch;
    font-size: clamp(2rem, 5.1vw, 4.45rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.value-copy h1 span {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.value-eyebrow {
    display: inline-block;
    max-width: 30ch;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.value-copy p {
    margin-top: 1.15rem;
    max-width: 60ch;
    color: var(--muted-strong);
    font-size: 1.06rem;
}

.benefit-lines {
    border-left: 1px solid var(--line-strong);
    padding-left: 1rem;
}

.benefit-item {
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--line);
    opacity: 0.34;
    filter: saturate(0.7);
    transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.benefit-item:first-child {
    border-top: 0;
}

.benefit-index,
.step-no,
.proof-metric span {
    display: inline-block;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.benefit-item h2 {
    margin-top: 0.65rem;
    font-size: clamp(1.45rem, 2.3vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.benefit-item p {
    margin-top: 0.6rem;
    color: var(--muted-strong);
    font-size: 0.98rem;
}

.benefit-item.is-live {
    transform: translateX(8px);
    opacity: 1;
    filter: saturate(1);
}

.benefit-item.is-live .benefit-index,
.benefit-item.is-live h2,
.benefit-item.is-live p {
    color: var(--text);
}

.home-process {
    padding-top: 1rem;
}

.process-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.8rem;
    align-items: start;
}

.process-intro h2,
.home-final h2 {
    margin-top: 0.8rem;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.process-line {
    list-style: none;
    display: grid;
    gap: 1rem;
    padding-left: 0;
}

.flow-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
}

.flow-step:first-child {
    border-top: 0;
    padding-top: 0;
}

.flow-step h3 {
    margin-top: 0.15rem;
    font-size: 1.24rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.flow-step p {
    margin-top: 0.45rem;
    color: var(--muted-strong);
    font-size: 0.96rem;
}

.step-no {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    line-height: 1;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.flow-step.is-live .step-no {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.home-proof {
    padding-top: 1.2rem;
    padding-bottom: 4rem;
}

.proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    padding: 1.1rem 0;
}

.proof-metric strong {
    display: block;
    margin-top: 0.48rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.proof-metric strong[data-brush] {
    position: relative;
    display: inline-block;
    padding: 0.06em 0.2em 0.08em 0.04em;
    isolation: isolate;
}

.proof-metric strong[data-brush]::before {
    content: "";
    position: absolute;
    left: -0.12em;
    right: -0.16em;
    bottom: 0.04em;
    height: 0.5em;
    border-radius: 999px;
    background:
        radial-gradient(60% 100% at 10% 50%, rgba(248, 158, 66, 0.44), rgba(248, 158, 66, 0.08) 72%),
        linear-gradient(95deg, rgba(248, 158, 66, 0.78), rgba(248, 158, 66, 0.5));
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    z-index: -1;
}

.proof-metric strong[data-brush].is-painted::before {
    animation: brushSweep 620ms cubic-bezier(0.25, 0.88, 0.32, 1) forwards;
}

@keyframes brushSweep {
    0% {
        transform: scaleX(0.05);
        opacity: 0;
    }
    45% {
        transform: scaleX(1.02);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 0.92;
    }
}

.home-final {
    padding-top: 2rem;
}

.hero-page {
    padding-top: 2.4rem;
    padding-bottom: 3.4rem;
}

.home-sell {
    padding-top: 1.2rem;
    padding-bottom: 2.2rem;
}

.sell-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
    gap: 1.6rem;
    align-items: end;
}

.sell-copy h1 {
    margin-top: 1rem;
    max-width: 10.3ch;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.sell-copy p {
    margin-top: 1.2rem;
    max-width: 62ch;
    color: var(--muted-strong);
    font-size: 1.08rem;
}

.sell-audit {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border-radius: var(--radius-xl);
    padding: 1rem 1.2rem;
    overflow: hidden;
}

.audit-screen {
    position: relative;
    min-height: 150px;
    margin-bottom: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    background-size: 20px 20px, 20px 20px, auto;
}

.scan-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 242, 237, 0.72);
}

.scan-grid {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0.3;
}

.scan-beam {
    position: absolute;
    left: -30%;
    top: 0;
    bottom: 0;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-18deg);
    animation: beam-pass 4.8s linear infinite;
}

.scan-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
    animation: dot-float 4.2s ease-in-out infinite;
}

.scan-dot-1 {
    top: 56%;
    left: 22%;
}

.scan-dot-2 {
    top: 36%;
    left: 58%;
    animation-delay: 0.7s;
}

.scan-dot-3 {
    top: 72%;
    left: 76%;
    animation-delay: 1.1s;
}

.audit-row {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    transition: opacity 180ms ease, transform 180ms ease;
}

.audit-row:first-child {
    border-top: 0;
}

.audit-row span,
.friction-index,
.system-tag,
.proof-label {
    display: inline-block;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.audit-row strong {
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.audit-row.is-live {
    opacity: 1;
    transform: translateX(4px);
}

.sell-audit .audit-row:not(.is-live) {
    opacity: 0.56;
}

.frictions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.friction-card {
    min-height: 250px;
    padding: 1.3rem;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius-xl);
}

.friction-card h2,
.system-intro h2,
.proof-cta h2 {
    margin-top: 0.85rem;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.friction-card p,
.system-node p,
.proof-stat p,
.proof-cta p {
    margin-top: 0.8rem;
    color: var(--muted-strong);
    font-size: 0.98rem;
}

.system-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: start;
}

.system-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    position: relative;
}

.system-map::before {
    content: "";
    position: absolute;
    left: 16.66%;
    right: 16.66%;
    top: 33%;
    height: 1px;
    background: var(--line-strong);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 900ms ease;
}

.system-map.is-live::before {
    transform: scaleX(1);
}

.system-node {
    min-height: 190px;
    padding: 1.25rem;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius-xl);
    position: relative;
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.system-node.is-live {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
}

.system-node-main {
    grid-column: span 3;
    min-height: 140px;
}

.system-node-service {
    min-height: 150px;
}

.system-node h3 {
    margin-top: 0.75rem;
    font-size: 1.45rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.text-link {
    display: inline-flex;
    margin-top: 0.4rem;
    color: var(--text);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--line-strong);
    transition: opacity 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
    opacity: 0.72;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.system-caption {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.proof-stat,
.proof-cta {
    border-top: 1px solid var(--line-strong);
    padding-top: 1rem;
}

.proof-stat strong {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.hero-home-grid,
.intro-grid,
.feature-row,
.detail-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-home-grid,
.intro-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--muted-strong);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-intro h1,
.section-heading h2 {
    margin-top: 1rem;
    font-size: clamp(2.5rem, 6vw, 5.75rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    text-wrap: balance;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-copy h1 {
    max-width: 10.8ch;
}

.page-intro h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.section-heading h2 {
    max-width: 13ch;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-copy p,
.page-intro p,
.section-heading p,
.feature-row p,
.service-link-copy p,
.detail-card p {
    margin-top: 1.15rem;
    color: rgba(5, 5, 5, 0.62);
    font-size: 1.04rem;
    max-width: 58ch;
}

body[data-theme="dark"] .hero-copy p,
body[data-theme="dark"] .page-intro p,
body[data-theme="dark"] .section-heading p,
body[data-theme="dark"] .feature-row p,
body[data-theme="dark"] .service-link-copy p,
body[data-theme="dark"] .detail-card p {
    color: rgba(241, 244, 251, 0.72);
}

.rotating-word {
    display: inline-block;
    position: relative;
    min-width: 5.8ch;
    color: var(--text);
    white-space: nowrap;
}

.rotating-word::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: 0.12em;
    background: rgba(255, 255, 255, 0.14);
    z-index: -1;
}

.rotating-word.is-changing {
    animation: word-flip 240ms ease;
}

.hero-notes {
    margin-top: 1.6rem;
    display: grid;
    gap: 0.65rem;
}

.hero-notes span {
    display: block;
    color: var(--muted-strong);
    font-size: 0.96rem;
}

.hero-notes span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 1px;
    margin-right: 0.7rem;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.42);
}

.action-row,
.mini-stats,
.service-link-grid,
.service-stack,
.pill-row {
    display: grid;
    gap: 1rem;
}

.action-row {
    margin-top: 1.9rem;
    display: flex;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--text);
    color: #0a0a0a;
    font-weight: 700;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #ffffff;
}

.button-secondary {
    background: transparent;
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.04);
}

.mini-stats {
    margin-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-box,
.hero-image-card,
.floating-panel,
.service-link-card,
.intro-card,
.feature-row,
.detail-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.stat-box {
    padding: 1.15rem;
}

.stat-box strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.05;
}

.stat-box span {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-visual-home {
    position: relative;
    min-height: 560px;
}

.hero-image-card {
    position: absolute;
    top: 0; right: 3rem; bottom: 5.8rem; left: 0;
    overflow: hidden;
}

.hero-image-card img,
.intro-card img,
.feature-row img,
.image-card img,
.service-link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.hero-image-card:hover img,
.intro-card:hover img,
.feature-row:hover img,
.image-card:hover img,
.service-link-card:hover img {
    transform: scale(1.03);
}

.card-badge,
.floating-panel span {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
}

.floating-panel {
    position: absolute;
    right: 0;
    width: 44%;
    padding: 1.1rem;
}

.floating-panel strong {
    display: block;
    margin-top: 0.7rem;
    font-size: 1.05rem;
    line-height: 1.25;
}

.floating-panel:first-of-type {
    top: 2rem;
}

.floating-panel.alt {
    bottom: 0;
    right: 1.8rem;
}

.compact-section {
    padding-top: 2rem;
    padding-bottom: 4.2rem;
}

.section-heading {
    margin-bottom: 1.8rem;
}

.service-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-link-card {
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease;
}

.service-link-card:hover,
.service-link-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.service-link-card img {
    height: 250px;
}

.service-link-copy {
    padding: 1.3rem;
}

.service-link-copy span,
.detail-card h2,
.feature-row span {
    color: var(--muted);
}

.service-link-copy span,
.feature-row span {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.service-link-copy h3,
.feature-row h2,
.detail-card h2 {
    margin-top: 0.8rem;
    font-size: 1.45rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.intro-card {
    overflow: hidden;
    min-height: 360px;
}

.feature-row {
    grid-template-columns: minmax(280px, 420px) 1fr;
    align-items: stretch;
    overflow: hidden;
}

.feature-row.reverse {
    grid-template-columns: 1fr minmax(280px, 420px);
}

.feature-row.reverse img {
    order: 2;
}

.feature-row > div {
    padding: 1.55rem;
    align-self: center;
}

.feature-row img {
    min-height: 280px;
}

.detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card {
    padding: 1.35rem;
}

.detail-card.image-card {
    padding: 0;
    overflow: hidden;
    min-height: 300px;
}

.detail-card.image-card img {
    height: 100%;
}

.pill-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
}

.pill-row span {
    padding: 0.52rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 5, 5, 0.14);
    background: rgba(5, 5, 5, 0.04);
    color: rgba(5, 5, 5, 0.66);
    font-size: 0.82rem;
}

body[data-theme="dark"] .pill-row span {
    border-color: var(--z-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--z-muted);
}

.tilt-card {
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 320ms ease,
                box-shadow 320ms ease;
}

.tilt-card:hover,
.tilt-card:focus-visible {
    transform: translateY(-8px) scale(1.016);
    border-color: rgba(5, 5, 5, 0.22);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.13);
}

body[data-theme="dark"] .tilt-card:hover,
body[data-theme="dark"] .tilt-card:focus-visible {
    border-color: var(--z-line);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════
   EXTRÉM REVEAL ANIMÁCIÓS MODULOK
═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: perspective(1200px) translate3d(0, 60px, -180px) rotateX(-22deg) rotateY(6deg) scale(0.88);
    transform-style: preserve-3d;
    transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1), transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1 !important;
    transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1) !important;
}

/* --- VARIÁCIÓK --- */
.reveal-left {
    transform: perspective(1200px) translate3d(-55px, 30px, -150px) rotateY(22deg) rotateZ(-5deg) scale(0.85);
}
.reveal-right {
    transform: perspective(1200px) translate3d(55px, 30px, -150px) rotateY(-22deg) rotateZ(5deg) scale(0.85);
}
.reveal-zoom-out {
    transform: perspective(1200px) translate3d(0, 0, 280px) scale(1.6);
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-rotate {
    transform: perspective(1200px) translate3d(0, 80px, -150px) rotateZ(-90deg) scale(0.5);
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-elastic {
    transform: perspective(1200px) translate3d(0, -60px, 0) scaleY(1.3) scaleX(0.8);
    transition-timing-function: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
.reveal-flip {
    transform: perspective(1200px) rotateX(60deg) translate3d(0, 40px, -80px);
    transform-origin: top center;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-drop {
    transform: perspective(1200px) translate3d(0, -50px, 80px) rotateZ(18deg) scale(1.15);
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-link-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.service-link-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.mini-stats .reveal:nth-child(2) { transition-delay: 90ms; }
.mini-stats .reveal:nth-child(3) { transition-delay: 180ms; }
.detail-grid .reveal:nth-child(2) { transition-delay: 140ms; }
.detail-grid .reveal:nth-child(3) { transition-delay: 280ms; }
.service-stack .feature-row:nth-child(2).reveal { transition-delay: 60ms; }
.service-stack .feature-row:nth-child(3).reveal { transition-delay: 120ms; }
.svc-landing-cards .reveal:nth-child(1) { transition-delay: 0ms; }
.svc-landing-cards .reveal:nth-child(2) { transition-delay: 110ms; }
.svc-landing-cards .reveal:nth-child(3) { transition-delay: 220ms; }

#gz-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.82);
    z-index: 120;
    pointer-events: none;
    transform-origin: 0 50%;
    transform: scaleX(0);
}

@keyframes word-flip {
    0% { opacity: 0.25; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes meta-pulse {
    0%, 100% { opacity: 0.62; }
    50% { opacity: 1; }
}

@keyframes beam-pass {
    0% { transform: translateX(0) skewX(-18deg); }
    100% { transform: translateX(420%) skewX(-18deg); }
}

@keyframes dot-float {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.42; }
    50% { transform: translate3d(0, -10px, 0); opacity: 1; }
}

main {
    animation: page-fade-in 300ms ease both;
}

@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .sell-grid,
    .frictions-grid,
    .system-grid,
    .proof-grid,
    .hero-home-grid,
    .intro-grid,
    .detail-grid,
    .service-link-grid,
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-intro h1,
    .section-heading h2 {
        max-width: none;
    }

    .sell-copy h1 {
        max-width: none;
    }

    .hero-visual-home {
        min-height: 500px;
    }

    .system-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-map::before {
        display: none;
    }

    .system-node-main {
        grid-column: span 2;
    }

    .system-caption {
        grid-column: auto;
    }

    .value-grid,
    .process-grid,
    .proof-row {
        grid-template-columns: 1fr;
    }

    .home-nav-grid {
        grid-template-columns: auto auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
    }
}

@media (max-width: 980px) {
    .nav-shell {
        min-height: auto;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.58rem 0 0.72rem;
        gap: 0.62rem;
    }

    .nav-shell .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav-shell .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-shell .site-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-shell .nav-cta {
        margin-left: auto;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 860px) {
    .site-nav,
    .home-nav {
        display: inline-flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar,
    .home-nav::-webkit-scrollbar {
        display: none;
    }

    .frictions-grid,
    .proof-grid,
    .mini-stats {
        grid-template-columns: 1fr;
    }

    .system-map {
        grid-template-columns: 1fr;
    }

    .system-node-main {
        grid-column: auto;
    }

    .system-caption {
        font-size: 0.84rem;
    }

    .value-eyebrow {
        max-width: 100%;
    }

    .nav-shell .nav-cta {
        display: none;
    }

    .site-nav {
        border-radius: 14px;
        padding: 0.28rem;
    }

    .site-nav a {
        font-size: 0.74rem;
        letter-spacing: 0.1em;
        padding: 0.4rem 0.62rem;
        white-space: nowrap;
    }

    .feature-row > div,
    .detail-card,
    .service-link-copy {
        padding: 1.15rem;
    }
}

@media (max-width: 680px) {
    .site-nav:not(.mobile-drawer-active),
    .home-nav-grid .site-nav:not(.mobile-drawer-active) {
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
    }
    .container {
        width: min(var(--max-width), calc(100% - 1.25rem));
    }

    .nav-shell {
        min-height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 0.82rem;
    }

    .brand-text strong {
        font-size: 0.9rem;
        letter-spacing: 0.07em;
    }

    .brand-text span,
    .nav-cta {
        display: none;
    }

    .site-nav a {
        white-space: nowrap;
        text-align: center;
        font-size: 0.68rem;
        padding: 0.38rem 0.45rem;
    }

    .home-nav-grid {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
        min-height: auto;
        padding: 0.5rem 0;
        gap: 0.5rem 0.7rem;
    }

    .ascii-hero {
        padding-top: 1.6rem;
    }

    .home-sell,
    .hero-page {
        padding-top: 2rem;
    }

    .sell-copy h1,
    .hero-copy h1,
    .page-intro h1,
    .section-heading h2 {
        font-size: clamp(2.1rem, 12vw, 3.7rem);
    }

    .sell-audit,
    .friction-card,
    .system-node {
        padding: 1rem;
    }

    .hero-slogan {
        letter-spacing: 0.14em;
        font-size: 0.82rem;
    }

    .hero-slogan::before,
    .hero-slogan::after {
        width: 18px;
    }

    .home-nav,
    .home-nav-grid .site-nav:not(.mobile-drawer-active) {
        gap: 0.25rem;
    }

    .value-copy h1 {
        max-width: none;
        font-size: clamp(1.9rem, 11.2vw, 3.25rem);
        line-height: 0.95;
    }

    .proof-stat,
    .proof-cta {
        border-top: 1px solid var(--line-strong);
    }

    .system-node h3 {
        font-size: 1.25rem;
    }

    .action-row {
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-visual-home {
        min-height: 420px;
    }

    .hero-image-card {
        top: 0; right: 1.2rem; bottom: 5.4rem; left: 0;
    }

    .feature-row img,
    .intro-card,
    .detail-card.image-card {
        min-height: 220px;
    }
}

/* ZGEN Kinetic Overhaul v2 */
:root {
    --z-bg: #060709;
    --z-panel: #0f1115;
    --z-panel-soft: #121720;
    --z-text: #eef3ff;
    --z-muted: #9cabcb;
    --z-line: rgba(158, 176, 213, 0.24);
    --z-lime: #ccff00;
    --z-cyan: #40f5e0;
    --z-hot: #ff5a3d;
    --scroll-depth: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: #050505;
    font-family: "Inter", "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    background: #ffffff;
    touch-action: pan-y;
}

body[data-page="home"] main,
body[data-page="home"] .site-header {
    position: relative;
    z-index: 1;
}

.theme-toggle {
    min-height: 40px;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 5, 5, 0.2);
    background: rgba(255, 255, 255, 0.94);
    color: #050505;
    font-family: "Avenir Next", "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: #ffffff;
    border-color: rgba(5, 5, 5, 0.34);
    box-shadow: 0 6px 18px rgba(5, 5, 5, 0.12);
    transform: translateY(-1px);
}

body[data-theme="dark"] {
    background: #07090d;
    color: #f1f4fb;
}

body[data-theme="dark"] .site-header {
    background: rgba(7, 9, 13, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .site-nav {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .site-nav a,
body[data-theme="dark"] .brand-text strong,
body[data-theme="dark"] .page-intro h1,
body[data-theme="dark"] .z-service-info h2,
body[data-theme="dark"] .mockup-text h2 {
    color: #ffffff;
}

body[data-theme="dark"] .page-intro p,
body[data-theme="dark"] .z-service-info p,
body[data-theme="dark"] .mockup-text p,
body[data-theme="dark"] .detail-card p,
body[data-theme="dark"] .feature-row p,
body[data-theme="dark"] .brand-text span {
    color: rgba(241, 244, 251, 0.72);
}

body[data-theme="dark"] .z-services,
body[data-theme="dark"] .mockup-outer {
    background: #07090d;
}

body[data-theme="dark"] .feature-tag {
    color: #f1f4fb;
    border-color: rgba(241, 244, 251, 0.36);
    background: rgba(241, 244, 251, 0.08);
}

body[data-theme="dark"] .button-primary {
    background: #f1f4fb;
    border-color: #f1f4fb;
    color: #050505;
}

body[data-theme="dark"] .button-secondary {
    color: #f1f4fb;
    border-color: rgba(241, 244, 251, 0.35);
}

body[data-theme="dark"] .theme-toggle {
    background: transparent;
    color: #f1f4fb;
    border-color: rgba(241, 244, 251, 0.35);
    box-shadow: none;
}

body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible {
    background: rgba(241, 244, 251, 0.1);
    border-color: rgba(241, 244, 251, 0.55);
    box-shadow: none;
}

body[data-page="home"][data-theme="dark"] .site-nav:not(.mobile-drawer-active) {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page="home"][data-theme="dark"] .site-nav:not(.mobile-drawer-active) a {
    border: 0;
    color: #f1f4fb;
}

body[data-page="home"][data-theme="dark"] .site-nav:not(.mobile-drawer-active) a::after {
    background: #f1f4fb;
}

body[data-page="home"][data-theme="dark"] .brand-mark {
    border-color: rgba(244, 242, 237, 0.2);
    background: rgba(244, 242, 237, 0.08);
    color: #f4f2ed;
}

.cinematic-section {
    --c-progress: 0;
    perspective: 2000px;
}

.cinematic-section > .container,
.cinematic-section .intro-grid,
.cinematic-section .detail-grid,
.cinematic-section .feature-row,
.cinematic-section .z-service-row,
.cinematic-section .z-hype-grid {
}

.cinematic-section > .container {
    transform: translate3d(calc((1 - var(--c-progress)) * -50px), calc((1 - var(--c-progress)) * 90px), calc((1 - var(--c-progress)) * -280px)) rotateX(calc((1 - var(--c-progress)) * 22deg)) rotateY(calc((1 - var(--c-progress)) * -14deg)) rotateZ(calc((1 - var(--c-progress)) * 5deg)) scale(calc(0.84 + var(--c-progress) * 0.16));
    opacity: calc(var(--c-progress));
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.cinematic-section .feature-row,
.cinematic-section .detail-card,
.cinematic-section .intro-card,
.cinematic-section .service-link-card,
.cinematic-section .z-service-row,
.cinematic-section .z-hype-card {
    transform: translate3d(0, calc((1 - var(--c-progress)) * 50px), calc((1 - var(--c-progress)) * -80px)) rotateX(calc((1 - var(--c-progress)) * 14deg)) scale(calc(0.92 + var(--c-progress) * 0.08));
    opacity: calc(var(--c-progress));
    transform-style: preserve-3d;
}

.section {
    --kinetic-shift: 0px;
    --kinetic-tilt: 0deg;
}

body::before {
    display: none;
}

body[data-theme="dark"]::before {
    content: "";
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(112deg, rgba(213, 255, 63, 0.06) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(-112deg, rgba(64, 245, 224, 0.05) 0 1px, transparent 1px 38px);
    opacity: 0.45;
}

.site-bg {
    display: none;
}

body[data-theme="dark"] .site-bg {
    display: block;
    opacity: 0.18;
    background-size: 44px 44px;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.is-scrolled .site-header {
    background: rgba(255, 255, 255, 0.99);
    border-bottom-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07);
}

body[data-theme="dark"] .site-header {
    background: rgba(10, 10, 12, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none;
}

body[data-theme="dark"].is-scrolled .site-header {
    background: rgba(8, 8, 10, 0.99) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.35) !important;
}

.brand-mark {
    border-color: rgba(5, 5, 5, 0.18);
    background: rgba(5, 5, 5, 0.06);
    color: #050505;
    font-weight: 800;
}

body[data-theme="dark"] .brand-mark {
    border-color: rgba(244, 242, 237, 0.2);
    background: rgba(244, 242, 237, 0.08);
    color: #f4f2ed;
}

.brand-text strong,
.site-nav a,
.eyebrow,
.benefit-index,
.step-no,
.proof-metric span,
.system-tag,
.proof-label,
.audit-row span,
.friction-index,
.feature-tag,
.ticker-content {
    font-family: "Space Mono", "Space Grotesk", monospace;
}

.brand-text span,
.service-link-copy span,
.feature-row span,
.detail-card h2 {
    color: rgba(5, 5, 5, 0.5);
}

body[data-theme="dark"] .brand-text span,
body[data-theme="dark"] .service-link-copy span,
body[data-theme="dark"] .feature-row span,
body[data-theme="dark"] .detail-card h2 {
    color: var(--z-muted);
}

.site-nav {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: 1rem;
}

body[data-theme="dark"] .site-nav {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 1rem;
}

.site-nav a {
    color: #0a0a0a;
    letter-spacing: 0.16em;
    border: 0;
    padding: 0.22rem 0.05rem;
    font-size: 0.7rem;
    border-radius: 0;
}

body[data-theme="dark"] .site-nav a {
    color: rgba(244, 242, 237, 0.72);
    letter-spacing: 0.16em;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.site-nav a::after {
    background: #050505;
}

body[data-theme="dark"] .site-nav a::after {
    background: rgba(244, 242, 237, 0.8);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: #050505;
    border-color: transparent;
    background: transparent;
}

body[data-theme="dark"] .site-nav a:hover,
body[data-theme="dark"] .site-nav a:focus-visible,
body[data-theme="dark"] .site-nav a.is-active {
    color: #f4f2ed;
    border-color: transparent;
    background: transparent;
}

.button {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.button-primary {
    background: #050505;
    border-color: #050505;
    color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-2px);
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.button-secondary {
    border-color: rgba(5, 5, 5, 0.3);
    background: transparent;
    color: #050505;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(5, 5, 5, 0.06);
    border-color: rgba(5, 5, 5, 0.5);
}

body[data-theme="dark"] .button-primary {
    background: #f1f4fb;
    border-color: #f1f4fb;
    color: #050505;
}

body[data-theme="dark"] .button-primary:hover,
body[data-theme="dark"] .button-primary:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
}

body[data-theme="dark"] .button-secondary {
    border-color: rgba(241, 244, 251, 0.38);
    color: #f1f4fb;
}

body[data-theme="dark"] .button-secondary:hover,
body[data-theme="dark"] .button-secondary:focus-visible {
    background: rgba(241, 244, 251, 0.08);
    border-color: rgba(241, 244, 251, 0.6);
}



.stat-box,
.hero-image-card,
.floating-panel,
.service-link-card,
.intro-card,
.feature-row,
.detail-card,
.sell-audit,
.friction-card,
.system-node {
    border-color: rgba(5, 5, 5, 0.1);
    background: #ffffff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
}

body[data-theme="dark"] .stat-box,
body[data-theme="dark"] .hero-image-card,
body[data-theme="dark"] .floating-panel,
body[data-theme="dark"] .service-link-card,
body[data-theme="dark"] .intro-card,
body[data-theme="dark"] .feature-row,
body[data-theme="dark"] .detail-card,
body[data-theme="dark"] .sell-audit,
body[data-theme="dark"] .friction-card,
body[data-theme="dark"] .system-node {
    border-color: rgba(158, 176, 213, 0.28);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 58%),
        linear-gradient(180deg, rgba(11, 13, 18, 0.96), rgba(8, 10, 14, 0.95));
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
}

.feature-row,
.detail-card,
.intro-card,
.service-link-card {
    border-radius: 20px;
}

.eyebrow,
.benefit-index,
.step-no,
.proof-metric span,
.system-tag,
.proof-label,
.audit-row span,
.friction-index {
    color: rgba(5, 5, 5, 0.44);
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .benefit-index,
body[data-theme="dark"] .step-no,
body[data-theme="dark"] .proof-metric span,
body[data-theme="dark"] .system-tag,
body[data-theme="dark"] .proof-label,
body[data-theme="dark"] .audit-row span,
body[data-theme="dark"] .friction-index {
    color: rgba(213, 255, 63, 0.86);
}

.benefit-item {
    opacity: 0.22;
    filter: saturate(0.6);
}

.benefit-item.is-live {
    opacity: 1;
    transform: translateX(10px) scale(1.01);
    filter: none;
}

.benefit-item.is-live h2 {
    color: #ffffff;
}

.value-copy h1,
.hero-copy h1,
.page-intro h1,
.section-heading h2,
.sell-copy h1,
.mockup-text h2,
.screen-content h2 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.055em;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.svc-landing-headline, .z-team-header h2, .testi-header h2, .sdh-title, .pf2-headline {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.z-intro {
    padding-top: 4rem;
    padding-bottom: 0;
    overflow: hidden;
}

.z-ascii-center {
    display: flex;
    justify-content: center;
    padding: 0 1.5rem 2.8rem;
}

#gz-ascii-logo {
    display: block;
    width: min(100%, 960px);
    max-width: 100%;
    height: auto;
    opacity: 0.78;
}

body[data-theme="dark"] #gz-ascii-logo {
    opacity: 0.9;
}

/* TikTok phone embed */
.tk-screen {
    background: #000;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.tk-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.tk-slide {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
    overflow: hidden;
}

.tk-slide-active {
    opacity: 1;
    pointer-events: auto;
}

/* Facade */
.tk-facade {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: #111;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 300ms ease;
    z-index: 2;
}

.tk-thumb {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tk-facade-center {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0,0,0,0.2);
}

.tk-play-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding-left: 4px;
    transition: transform 180ms ease, background 180ms ease;
}

.tk-facade:hover .tk-play-btn {
    transform: scale(1.1);
    background: rgba(0,0,0,0.65);
}

.tk-facade-footer {
    position: absolute;
    bottom: 18px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
    pointer-events: none;
}

/* TikTok player/v1 iframe — fills screen, sits behind facade (z:1) */
.tk-iframe {
    border: none;
    display: block;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}

/* TikTok modal lightbox */
#tk-modal {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
#tk-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
#tk-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    z-index: 1;
}
#tk-modal-close:hover {
    background: rgba(204,255,0,0.14);
    border-color: #ccff00;
    color: #ccff00;
}
#tk-modal-inner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.75);
    width: 325px;
    height: 580px;
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#tk-modal.is-open #tk-modal-inner {
    transform: scale(1);
}
#tk-modal-inner iframe {
    display: block;
    width: 325px;
    height: 580px;
    border: none;
    border-radius: 18px;
}

.tk-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.tk-nav-btn:hover {
    background: rgba(0,0,0,0.8);
}

.tk-prev { left: 6px; }
.tk-next { right: 6px; }

.tk-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 20;
}

.tk-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.tk-dot-active {
    background: #fff;
    transform: scale(1.35);
}

/* Service page timelines (szolgaltatasok.html) */
.svc-timelines-section {
    padding-top: 0;
}

.svc-tl-block {
    padding: 4.5rem 0;
}

.svc-tl-head {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

.svc-tl-badge {
    font-family: "Space Mono", monospace;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(14, 14, 14, 0.07);
    letter-spacing: -0.04em;
    padding-top: 0.1rem;
    user-select: none;
}

.svc-tl-name {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.95;
    text-transform: uppercase;
    margin: 0 0 0.7rem;
}

.svc-tl-lead {
    font-size: 1rem;
    color: rgba(14, 14, 14, 0.55);
    line-height: 1.6;
    max-width: 56ch;
    margin: 0;
}

.svc-tl-content {
    padding-left: 7rem;
}

.svc-tl-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink, #0e0e0e);
    text-decoration: none;
    padding: 0.65rem 1.2rem;
    border: 1.5px solid rgba(14, 14, 14, 0.2);
    border-radius: 6px;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.svc-tl-cta span {
    transition: transform 180ms ease;
}

.svc-tl-cta:hover {
    background: #ccff00;
    border-color: #ccff00;
    color: #0e0e0e;
}

.svc-tl-cta:hover span {
    transform: translateX(4px);
}

.svc-tl-sep {
    height: 1px;
    background: rgba(14, 14, 14, 0.1);
    margin: 0 0 0;
}

@media (max-width: 860px) {
    .svc-tl-head {
        grid-template-columns: 3rem 1fr;
        gap: 0 1rem;
    }
    .svc-tl-badge {
        font-size: 2rem;
    }
    .svc-tl-content {
        padding-left: 4rem;
    }
}

@media (max-width: 680px) {
    .svc-tl-head {
        grid-template-columns: 1fr;
    }
    .svc-tl-badge {
        font-size: 1.2rem;
        color: rgba(14,14,14,0.3);
        margin-bottom: 0.5rem;
    }
    .svc-tl-content {
        padding-left: 0;
    }
    .svc-tl-block {
        padding: 3rem 0;
    }
}

body[data-theme="dark"] .svc-tl-badge {
    color: rgba(244, 242, 237, 0.07);
}

body[data-theme="dark"] .svc-tl-lead {
    color: rgba(244, 242, 237, 0.5);
}

body[data-theme="dark"] .svc-tl-cta {
    color: #f4f2ed;
    border-color: rgba(244, 242, 237, 0.2);
}

body[data-theme="dark"] .svc-tl-cta:hover {
    background: #ccff00;
    border-color: #ccff00;
    color: #0e0e0e;
}

body[data-theme="dark"] .svc-tl-sep {
    background: rgba(244, 242, 237, 0.1);
}

/* Process Timeline */
.process-section {
    padding-top: 1rem;
}

.timeline-intro {
    margin-bottom: 3.5rem;
}

.timeline-intro .eyebrow {
    display: block;
    margin-bottom: 0.6rem;
}

.timeline-intro h2 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}

.process-timeline {
    position: relative;
    padding-left: 0;
    max-width: 720px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 1.85rem;
    top: 0.5rem;
    bottom: 3.5rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(14,14,14,0.12), rgba(14,14,14,0.12) 85%, transparent);
}

.timeline-step {
    display: grid;
    grid-template-columns: 3.8rem 1fr;
    gap: 0 1.8rem;
    padding-bottom: 3rem;
    position: relative;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-num {
    font-family: "Space Mono", monospace;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: rgba(14,14,14,0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding-top: 0.1rem;
}

.timeline-num::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(14,14,14,0.18);
    flex-shrink: 0;
}

.timeline-body {
    padding-top: 0;
}

.timeline-tag {
    display: inline-block;
    font-family: "Space Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.18rem 0.52rem;
    border-radius: 4px;
    background: rgba(14,14,14,0.06);
    color: rgba(14,14,14,0.42);
    margin-bottom: 0.55rem;
}

.timeline-body h3 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.4rem;
}

.timeline-body p {
    font-size: 0.95rem;
    color: rgba(14,14,14,0.58);
    line-height: 1.7;
    margin: 0;
    max-width: 500px;
}

body[data-theme="dark"] .process-timeline::before {
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 85%, transparent);
}

body[data-theme="dark"] .timeline-num {
    color: rgba(244,242,237,0.3);
}

body[data-theme="dark"] .timeline-num::after {
    background: rgba(244,242,237,0.18);
}

body[data-theme="dark"] .timeline-tag {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.35);
}

body[data-theme="dark"] .timeline-body p {
    color: rgba(244,242,237,0.52);
}

/* Portfolio clients section */
.pf-clients-section {
    padding-top: 0;
    padding-bottom: 1rem;
}

.pf-clients-head {
    margin-bottom: 2.8rem;
}

.pf-clients-head h2 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0.4rem 0 0;
}

.pf-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    border: 1px solid rgba(14,14,14,0.09);
    border-radius: 16px;
    overflow: hidden;
}

.pf-client-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.8rem 2rem;
    background: rgba(14,14,14,0.02);
    transition: background 220ms ease;
}

.pf-client-item:hover {
    background: rgba(14,14,14,0.05);
}

.pf-client-name {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.pf-client-sub {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(14,14,14,0.42);
}

body[data-theme="dark"] .pf-clients-grid {
    border-color: rgba(255,255,255,0.07);
}

body[data-theme="dark"] .pf-client-item {
    background: rgba(255,255,255,0.02);
}

body[data-theme="dark"] .pf-client-item:hover {
    background: rgba(255,255,255,0.05);
}

body[data-theme="dark"] .pf-client-sub {
    color: rgba(244,242,237,0.35);
}

/* Portfolio page */
.pf-hero {
    background: #060709;
    padding-top: 5.5rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.pf-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        repeating-linear-gradient(112deg, rgba(204, 255, 0, 0.05) 0 1px, transparent 1px 52px),
        repeating-linear-gradient(-112deg, rgba(64, 245, 224, 0.03) 0 1px, transparent 1px 46px);
    pointer-events: none;
}

.pf-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
}

.pf-hero-title {
    margin-top: 1.2rem;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.85;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    color: #f1f4fb;
}

.pf-hero-lead {
    margin-top: 1.1rem;
    color: rgba(241, 244, 251, 0.5);
    font-size: 1.04rem;
    max-width: 48ch;
    line-height: 1.55;
}

.pf-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    text-align: right;
    padding-bottom: 0.5rem;
}

.pf-stat strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ccff00;
    font-weight: 600;
}

.pf-stat span {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(241, 244, 251, 0.38);
    margin-top: 0.2rem;
}

.pf-grid-section {
    background: #060709;
    padding-top: 0;
    padding-bottom: 0;
}

.pf-full-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
    background: rgba(255,255,255,0.06);
}

.pf-card {
    display: block;
    background: #0a0c10;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: background 260ms ease;
}

.pf-card:hover {
    background: #0f1218;
}

.pf-card-large {
    grid-row: span 1;
}

.pf-card-cta {
    background: #ccff00;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    cursor: default;
}

.pf-card-cta:hover {
    background: #d4ff1a;
}

.pf-card-browser {
    position: relative;
    overflow: hidden;
}

.pf-viewport-lg {
    height: 480px;
}

.pf-card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.pf-card-num {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: rgba(241, 244, 251, 0.3);
    flex-shrink: 0;
}

.pf-card-body {
    flex: 1;
}

.pf-card-body h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: #f1f4fb;
    margin: 0;
    font-weight: 600;
}

.pf-card-body p {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(241, 244, 251, 0.38);
    margin: 0.2rem 0 0;
}

.pf-card-arrow {
    font-size: 1.4rem;
    color: rgba(204, 255, 0, 0);
    transition: color 220ms ease, transform 220ms ease;
    flex-shrink: 0;
}

.pf-card:hover .pf-card-arrow {
    color: #ccff00;
    transform: translate(3px, -3px);
}

.pf-cta-inner {
    text-align: center;
    padding: 2rem;
}

.pf-cta-eyebrow {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(5, 5, 5, 0.55);
    margin-bottom: 1rem;
}

.pf-cta-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #050505;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.pf-cta-title span {
    color: rgba(5, 5, 5, 0.45);
}

.pf-cta-btn {
    background: #050505;
    color: #ccff00;
    border-color: #050505;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.pf-cta-btn:hover,
.pf-cta-btn:focus-visible {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

@media (max-width: 980px) {
    .pf-hero-inner {
        grid-template-columns: 1fr;
    }

    .pf-hero-meta {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }

    .pf-full-grid {
        grid-template-columns: 1fr;
    }

    .pf-viewport-lg {
        height: 340px;
    }

    .pf-card-cta {
        min-height: 280px;
    }

    .pf2-entry {
        grid-template-columns: 1fr;
        grid-template-areas: "head" "browser" "foot";
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    .pf2-entry:nth-of-type(1) { top: 70px; z-index: 10; }
    .pf2-entry:nth-of-type(2) { top: 90px; z-index: 11; }
    .pf2-entry:nth-of-type(3) { top: 110px; z-index: 12; }
    .pf2-entry:nth-of-type(4) { top: 130px; z-index: 13; }
    .pf2-num { font-size: clamp(2rem, 6vw, 3rem) !important; }
    .pf2-name { font-size: clamp(1.6rem, 5vw, 2.4rem) !important; }
    .pf2-browser .browser-viewport { height: 400px !important; }
    .pf-scroll-hint {
        display: none !important;
    }
    .pf2-entry-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
    .pf2-num {
        font-size: clamp(2.8rem, 5vw, 4rem);
    }
    .pf2-name {
        font-size: clamp(2.4rem, 6vw, 3.8rem);
    }
}

@media (max-width: 680px) {
    .pf-hero {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .pf-hero-meta {
        gap: 1.2rem;
    }

    .pf-viewport-lg,
    .browser-viewport {
        height: 220px;
    }

    .pf-card-cta {
        min-height: 240px;
    }
}

@media (max-width: 680px) {
    .z-intro {
        padding-top: 2.5rem;
    }
}

body[data-page="home"] .cinematic-section {
    --c-progress: 0;
}

body[data-page="home"] .cinematic-section > .container,
body[data-page="home"] .cinematic-section .ticker-container,
body[data-page="home"] .cinematic-section .z-hype-grid,
body[data-page="home"] .cinematic-section .z-service-row,
body[data-page="home"] .cinematic-section .z-cta-footer .container {
}

body[data-page="home"] .z-img-box img {
    transform: scale(calc(1.05 - var(--c-progress) * 0.05));
}

body[data-page="home"] .z-hype-card {
    transform: translateY(calc((1 - var(--c-progress)) * 14px));
    opacity: calc(0.58 + var(--c-progress) * 0.42);
}

body[data-page="home"] .z-hype-card:nth-child(2) {
    transition-delay: 80ms;
}

body[data-page="home"] .z-hype-card:nth-child(3) {
    transition-delay: 160ms;
}

.ticker-container {
    position: relative;
    overflow: hidden;
    background: #050505;
    padding: 1.45rem 0;
    transform: rotate(-3deg) translateY(-30px);
    width: 120%;
    margin-left: -10%;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    color: #f4f7ff;
    font-size: clamp(1rem, 3.2vw, 1.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: zlab-ticker-move 20s linear infinite;
}

.ticker-content.is-js-driven {
    animation: none;
    will-change: transform;
}

.ticker-content span {
    margin-right: 3.2rem;
}

.ticker-content em {
    color: var(--z-lime);
    font-style: normal;
}

@keyframes zlab-ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mockup-outer {
    padding-top: 4rem;
    padding-bottom: 5rem;
    background: #f9f9f9;
}

.mockup-sticky {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(300px, 520px);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.phone-frame {
    width: 260px;
    max-width: 100%;
    height: 564px;
    aspect-ratio: 9 / 19.5;
    max-height: 72vh;
    background: #000;
    border-radius: 44px;
    border: 9px solid #1a1a1a;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transform-origin: center center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
}

.dynamic-island {
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 32px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0e1015, #252e3a);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.screen-content h2 {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    color: var(--z-lime);
}

.mockup-text {
    position: relative;
    max-width: 470px;
    opacity: 0;
    transform: translate3d(22px, 24px, 0);
    transition: opacity 200ms linear, transform 200ms linear;
    z-index: 2;
}

.mockup-text h2 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 0.9;
    margin-bottom: 0.9rem;
}

.mockup-text p {
    color: rgba(5, 5, 5, 0.66);
    font-size: 1.06rem;
    line-height: 1.6;
}

.z-services {
    padding-top: 2.1rem;
    padding-bottom: 5.5rem;
    background: #ffffff;
}

.z-hype {
    padding-top: 1rem;
    padding-bottom: 2.3rem;
    background: #0a0a0a;
}

.z-hype-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.z-hype-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111111;
    padding: 1.4rem 1.2rem;
    border-radius: 12px;
    transition: border-color 220ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.z-hype-card:hover {
    border-color: rgba(232, 255, 0, 0.3);
}

.z-hype-card span {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #e8ff00;
}

.z-hype-card h3 {
    margin-top: 0.7rem;
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: 1.36rem;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #f4f2ed;
}

.z-hype-card p {
    margin-top: 0.65rem;
    color: rgba(244, 242, 237, 0.55);
    line-height: 1.5;
}

.z-service-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 7rem;
    --row-progress: 0;
}

.z-service-row.z-reverse {
    grid-template-columns: 1.2fr 1fr;
}

.z-service-info h2 {
    margin-top: 1rem;
    margin-bottom: 1.2rem;
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: clamp(2.2rem, 5.8vw, 4.3rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.z-service-info p {
    max-width: 52ch;
    color: rgba(5, 5, 5, 0.66);
    font-size: 1.08rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border: 1px solid #ccff00;
    color: #050505;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0.55rem 0.55rem 0;
    background: rgba(204, 255, 0, 0.2);
}

.z-img-box {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #efefef;
    min-height: 420px;
}

.z-img-box::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(120deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.45) 56%, rgba(5, 5, 5, 0));
    transform-origin: left center;
    transform: scaleX(calc(1 - var(--row-progress)));
    pointer-events: none;
}

.z-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.z-service-row .z-service-info {
    transform: translate3d(calc((1 - var(--row-progress)) * 30px), 0, 0);
    opacity: calc(0.45 + var(--row-progress) * 0.55);
}

.z-service-row.z-reverse .z-service-info {
    transform: translate3d(calc((1 - var(--row-progress)) * -30px), 0, 0);
}

.z-img-box:hover img,
.z-img-box:focus-within img {
    filter: grayscale(0);
    transform: scale(1.03);
}

.svc-portfolio {
    background: #060709;
    padding-top: 5rem;
    padding-bottom: 5.5rem;
    position: relative;
    overflow: hidden;
}

.svc-portfolio::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        repeating-linear-gradient(112deg, rgba(204, 255, 0, 0.04) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(-112deg, rgba(64, 245, 224, 0.03) 0 1px, transparent 1px 44px);
    pointer-events: none;
}

.svc-portfolio-head {
    margin-bottom: 3rem;
}

.svc-portfolio-title {
    margin-top: 1rem;
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 0.88;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #f1f4fb;
}

.svc-portfolio-title span {
    color: #ccff00;
}

.svc-portfolio-lead {
    margin-top: 1rem;
    color: rgba(241, 244, 251, 0.52);
    font-size: 1.02rem;
    max-width: 52ch;
}

.svc-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.browser-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f1115;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(204, 255, 0, 0);
    text-decoration: none;
    color: inherit;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 280ms ease;
}

.browser-card:hover,
.browser-card:focus-visible {
    transform: translateY(-8px) scale(1.008);
    border-color: rgba(204, 255, 0, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(204, 255, 0, 0.2);
}

.browser-chrome,
.browser-inner-chrome {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    background: #1a1d24;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pf-inline-viewport {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
    width: 100%;
    flex-shrink: 0;
}

.pf-inline-viewport .browser-viewport {
    height: 520px;
}

@media (max-width: 1100px) {
    .pf-inline-viewport .browser-viewport {
        height: 400px;
    }
}

@media (max-width: 680px) {
    .pf-inline-viewport .browser-viewport {
        height: 260px;
    }
}

.browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    padding: 0.26rem 0.55rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Space Mono", monospace;
    font-size: 0.67rem;
    color: rgba(241, 244, 251, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ccff00;
    flex-shrink: 0;
}

.browser-live span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccff00;
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.2);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.2); }
    50% { box-shadow: 0 0 0 5px rgba(204, 255, 0, 0.08); }
}

.browser-viewport {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #0a0c10;
}

.browser-scale-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    transform-origin: top left;
}

.browser-viewport iframe {
    display: block;
    width: 1440px;
    height: 1080px;
    border: none;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.browser-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #0f1115;
}

.browser-footer-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #f1f4fb;
}

.browser-footer-sub {
    margin-top: 0.18rem;
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(241, 244, 251, 0.38);
}

.browser-cta {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(204, 255, 0, 0.55);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 160ms ease;
    flex-shrink: 0;
}

.browser-card:hover .browser-cta {
    color: #ccff00;
}

@media (max-width: 860px) {
    .svc-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .browser-viewport {
        height: 280px;
    }
}

@media (max-width: 680px) {
    .svc-portfolio {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .browser-viewport {
        height: 210px;
    }
}

.z-cta-footer {
    background: #050505;
    color: #ffffff;
    text-align: center;
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
}

.z-cta-footer h2 {
    font-family: "Syne", "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 9vw, 7rem);
    line-height: 0.86;
    letter-spacing: -0.04em;
}

.z-cta-footer p {
    margin-top: 1.15rem;
    font-family: "Space Mono", monospace;
    opacity: 0.44;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
}

.rotating-word {
    color: var(--z-lime);
}

.rotating-word::after {
    background: linear-gradient(90deg, rgba(213, 255, 63, 0.18), rgba(64, 245, 224, 0.4));
}

main {
    animation: zgen-page-enter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    main { animation: none; opacity: 1; }
}

body.is-route-ready.is-route-leaving main {
    animation: zgen-page-leave 320ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

body.is-route-ready.is-route-leaving .site-header {
    animation: zgen-header-leave 320ms ease forwards;
}

@keyframes zgen-page-enter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes zgen-page-leave {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-18px) scale(0.985);
    }
}

@keyframes zgen-header-leave {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

@media (max-width: 980px) {
    .section {
        padding: 3.9rem 0;
    }

    .mockup-sticky {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .mockup-text {
        position: static;
        margin-top: 1rem;
        max-width: 620px;
        text-align: center;
    }

    .mockup-outer {
        min-height: auto;
        padding-bottom: 0.3rem;
    }

    .phone-frame {
        width: min(300px, 72vw);
        height: 651px;
        aspect-ratio: 9 / 19.5;
        max-height: 68vh;
        transform: scale(1) !important;
    }

    .z-hype-grid {
        grid-template-columns: 1fr;
    }

    .z-service-row,
    .z-service-row.z-reverse {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin-bottom: 3.2rem;
    }

    .nav-shell {
        min-height: auto;
        flex-wrap: wrap;
        gap: 0.65rem;
        padding: 0.58rem 0 0.72rem;
    }

    .nav-shell .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-shell .site-nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 860px) {
    html,
    body,
    main,
    .site-header,
    .site-nav,
    .nav-shell,
    .feature-row,
    .intro-grid,
    .detail-grid,
    .value-grid,
    .proof-row {
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        border-radius: 11px;
    }

    body[data-page="home"] .site-nav:not(.mobile-drawer-active) {
        width: auto;
        gap: 0.78rem;
        justify-content: flex-start;
    }

    .site-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.71rem;
        padding: 0.4rem 0.56rem;
    }

    .nav-shell .nav-cta {
        display: none;
    }

    .hero-slogan {
        letter-spacing: 0.12em;
    }

    .ticker-container {
        width: 126%;
        margin-left: -13%;
        transform: rotate(-2deg);
    }

    .mockup-outer {
        min-height: auto;
        padding-bottom: 0;
    }

    .mockup-sticky {
        position: relative;
        min-height: auto;
    }

    .mockup-text {
        opacity: 1 !important;
        transform: none !important;
    }

}

@media (max-width: 860px) {
    .phone-frame {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 680px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    .container {
        width: calc(100% - 1rem);
    }

    .section {
        padding: 3.2rem 0;
    }

    body[data-page="home"] .site-nav:not(.mobile-drawer-active) {
        display: flex;
        overflow-x: auto;
    }

    .ticker-content {
        font-size: 1rem;
    }

    .ticker-content span {
        margin-right: 2.1rem;
    }

    .mockup-outer {
        min-height: auto;
        padding-top: 0.25rem;
        padding-bottom: 0;
    }

    .mockup-sticky {
        position: relative;
        min-height: auto;
        gap: 1rem;
        padding: 0.5rem 0 1.5rem;
    }

    .mockup-text {
        padding: 0 0.25rem;
    }

    .phone-frame {
        width: min(220px, 64vw);
        height: 477px;
        aspect-ratio: 9 / 19.5;
        max-height: 54vh;
        transform: scale(1) !important;
        border-width: 6px;
        border-radius: 28px;
    }

    .z-services {
        padding-top: 2rem;
        padding-bottom: 3.1rem;
    }

    .z-img-box {
        min-height: 260px;
    }

    .feature-row > div,
    .detail-card,
    .service-link-copy,
    .friction-card,
    .system-node,
    .sell-audit {
        padding: 0.95rem;
    }

    .feature-row,
    .detail-card,
    .intro-card,
    .service-link-card,
    .sell-audit,
    .friction-card,
    .system-node {
        border-radius: 16px;
    }

    .feature-row img,
    .intro-card,
    .detail-card.image-card {
        min-height: 210px;
    }

    .button {
        width: 100%;
    }
}


/* ═══════════════════════════════════════════
   Device Showcase — iPhone / iPad / MacBook
   ═══════════════════════════════════════════ */

.device-showcase {
    padding: 4rem 0 5rem;
}

.device-showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.device-showcase-header h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.device-showcase-header p {
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Stage — full-width overflow container with fade edges */
.dk-stage {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 1.5rem;
}

.device-trio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    padding: 0;
}

/* A konténer */
.tk-raw-phone {
    position: relative;
    display: block;
    /* 3912×8000 px → arány: 3912/8000 = 0.489 → 9:18.41 */
    width: 280px;
    height: 573px; /* fallback: aspect-ratio nem támogatott böngészőkre (Safari <15) */
    aspect-ratio: 3912 / 8000;
}

/* A videót tartalmazó képernyő, ami levágja a széleket (clipping mask) */
.tk-phone-screen {
    position: absolute;
    top: 0.762%;
    left: 2.5%;
    width: 95%;
    height: 98.438%;
    z-index: 1;
    border-radius: 44px;
    overflow: hidden;
    background: #0a0a0a;
}

.tk-phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    object-fit: cover;
}

.tk-raw-phone video,
.tk-raw-phone .tk-phone-content {
    /* A videó most már 100%-ban kitölti a .tk-phone-screen wrappert */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Egyedi TikTok stílusú lejátszó gombok */
.tk-custom-ui {
    position: absolute;
    bottom: 12%; 
    right: 6%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tk-custom-ui button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f4f2ed;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.tk-custom-ui button:hover {
    background: #0e0e0e;
    border-color: #ccff00;
    color: #ccff00;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(204, 255, 0, 0.25);
}

.tk-custom-ui button svg {
    width: 18px;
    height: 18px;
    transition: fill 0.25s ease;
}

.tk-crop-box {
    position: absolute;
    top: 2%;
    left: 4%;
    width: 92%;
    height: 96%;
    border-radius: 12%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none; /* Nem lehet rákattintani a videóra (így nem tud megállni és továbblépni) */
}

.tk-iframe-zoomed {
    position: absolute;
    width: 115%;
    height: 130%;
    top: -8%;
    left: -7.5%;
    border: none;
    background: #000;
}

/* Each device wrapper */
.device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Navigation arrows */
.dk-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(40,40,40,0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dk-arrow:hover {
    background: rgba(204,255,0,0.25);
    border-color: rgba(204,255,0,0.6);
    transform: translateY(-50%) scale(1.08);
}

.dk-arrow-prev { left: 2rem; }
.dk-arrow-next { right: 2rem; }

/* Status bar inside phone screen */
.dk-statusbar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    height: 32px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    pointer-events: none;
}

.dk-sb-time {
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
    font-family: "SF Pro Display", "Inter", sans-serif;
}

.dk-sb-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.device-label {
    font-size: 0.82rem;
    font-family: "Space Mono", monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* ── iPhone frame ── */
.dk-phone {
    position: relative;
    width: 270px;
    height: 585px;
    aspect-ratio: 9 / 19.5;
    background: #1c1c1e;
    border: 3px solid #3a3a3c;
    border-radius: 52px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        0 40px 90px rgba(0, 0, 0, 0.85),
        0 0 60px rgba(0, 0, 0, 0.4);
}

.dk-island {
    position: absolute;
    top: 18px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 72px;
    height: 22px;
    background: #000;
    border-radius: 12px;
    z-index: 10;
}

.dk-phone .dk-screen {
    position: absolute;
    top: 12px; right: 12px; bottom: 12px; left: 12px;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
}

.dk-phone .dk-screen::before,
.dk-phone .dk-screen::after { content: none; }

/* ── iPad frame ── */
.dk-ipad {
    position: relative;
    width: 330px;
    height: 440px;
    aspect-ratio: 3 / 4;
    background: #1c1c1e;
    border: 4px solid #3a3a3c;
    border-radius: 26px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(0, 0, 0, 0.4);
}

.dk-ipad .dk-screen {
    position: absolute;
    top: 20px; right: 14px; bottom: 20px; left: 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.dk-ipad .dk-screen::before,
.dk-ipad .dk-screen::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 42px;
    background: #1c1c1e;
    z-index: 5;
    pointer-events: none;
}
.dk-ipad .dk-screen::before { left: 0; border-radius: 10px 0 0 10px; }
.dk-ipad .dk-screen::after  { right: 0; border-radius: 0 10px 10px 0; }

/* ── MacBook frame ── */
.dk-mac {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dk-mac-display {
    position: relative;
    width: 540px;
    height: 338px;
    aspect-ratio: 16 / 10;
    background: #1c1c1e;
    border: 3px solid #3a3a3c;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        0 30px 70px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.dk-mac-display .dk-screen {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 30%;
    right: 30%;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.dk-mac-display .dk-screen::before,
.dk-mac-display .dk-screen::after { content: none; }

.dk-mac-hinge {
    width: 568px;
    height: 5px;
    background: linear-gradient(90deg, #1a1a1a, #404040 50%, #1a1a1a);
}

.dk-mac-base {
    width: 624px;
    height: 16px;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-radius: 0 0 10px 10px;
    -webkit-clip-path: polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%);
    clip-path: polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%);
}

/* ── Responsive ── */
@media (max-width: 1600px) {
    .dk-mac-display { width: 460px; height: 288px; }
    .dk-mac-hinge { width: 484px; }
    .dk-mac-base { width: 532px; }
    .dk-ipad { width: 300px; height: 400px; }
    .dk-phone { width: 250px; height: 542px; }
    .tk-raw-phone { width: 250px; height: 511px; }
}

@media (max-width: 1300px) {
    .dk-mac-display { width: 380px; height: 238px; }
    .dk-mac-hinge { width: 400px; }
    .dk-mac-base { width: 440px; }
    .dk-ipad { width: 260px; height: 347px; }
    .dk-phone { width: 220px; height: 477px; }
    .tk-raw-phone { width: 220px; height: 450px; }
}

@media (max-width: 1050px) {
    .dk-mac-display { width: 300px; height: 188px; }
    .dk-mac-hinge { width: 316px; }
    .dk-mac-base { width: 348px; }
    .dk-ipad { width: 220px; height: 293px; }
    .dk-phone { width: 190px; height: 412px; }
    .tk-raw-phone { width: 190px; height: 389px; }
    .device-trio { gap: 1.5rem; }
}

@media (max-width: 860px) {
    .tk-raw-phone { width: 240px; height: 491px; }
}

@media (max-width: 860px) {
    /* Csak a nem-JS-reel carousel kap scrollozható layoutot */
    .device-trio:not(.dk-reel) {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 2rem;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    .device-trio:not(.dk-reel)::-webkit-scrollbar { display: none; }
    .device-trio:not(.dk-reel) .dk-reel-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        display: block !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* A JS-vezérelt dk-reel-nél a JS állítja a transform/opacity értékeket */
    .device-trio.dk-reel .dk-reel-item {
        display: inline-block; /* tartalom szélessége, hogy natW helyes legyen JS-ben */
    }

    .dk-ipad {
        width: 280px;
        height: 373px;
    }

    .dk-phone {
        width: 220px;
        height: 477px;
    }
}

/* ═══════════════════════════════════════════
   Services Hero & Tab Navigation
   ═══════════════════════════════════════════ */

.svc-hero {
    padding: 5rem 0 5rem;
    border-bottom: 1px solid var(--line);
}

.svc-hero-eyebrow {
    margin-bottom: 2.5rem;
}

.svc-hero-title {
    display: flex;
    flex-direction: column;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.04;
    margin-bottom: 2.5rem;
}

.svc-hero-line {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    border-top: 1px solid var(--line);
    padding: 0.6rem 0;
}

.svc-hero-line:last-child {
    border-bottom: 1px solid var(--line);
}

.svc-hero-num {
    font-style: normal;
    font-size: 0.2em;
    font-family: "Space Mono", monospace;
    color: var(--muted);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding-top: 0.2em;
}

.svc-hero-desc {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 500px;
    line-height: 1.65;
}

.svc-tab-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 4.5rem;
    padding-top: 0.5rem;
}

.svc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    font-size: 0.82rem;
    font-family: "Space Mono", monospace;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted-strong);
    background: transparent;
    transition: border-color 200ms, color 200ms, background 200ms, transform 180ms;
    cursor: pointer;
}

.svc-tab-btn:hover {
    border-color: rgba(180, 255, 50, 0.55);
    color: #b4ff32;
    background: rgba(180, 255, 50, 0.06);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   Services Landing — 3 kártyagomb
   ═══════════════════════════════════════════ */

.svc-landing {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 6rem 0 5rem;
    border-bottom: 1px solid var(--line);
}

.svc-landing-eyebrow {
    margin-bottom: 1.5rem;
}

.svc-landing-headline {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.svc-landing-sub {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 3.5rem;
}

.svc-landing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.svc-card-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 2.5rem 2rem 2rem;
    background: rgba(14, 14, 14, 0.04);
    border: 1.5px solid rgba(14, 14, 14, 0.25);
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    color: #0e0e0e;
    font-family: inherit;
    overflow: hidden;
    transition: border-color 240ms ease, color 240ms ease, transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.svc-card-btn::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: #ccff00;
    opacity: 0;
    transition: opacity 240ms ease;
    z-index: 0;
}

.svc-card-btn > * {
    position: relative;
    z-index: 1;
}

.svc-card-btn:hover,
.svc-card-btn.is-active {
    border-color: #ccff00;
    color: #0e0e0e;
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(204, 255, 0, 0.18);
}

.svc-card-btn:hover::before,
.svc-card-btn.is-active::before {
    opacity: 1;
}

.svc-card-num {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    opacity: 0.35;
    transition: opacity 240ms ease;
}

.svc-card-btn:hover .svc-card-num,
.svc-card-btn.is-active .svc-card-num {
    opacity: 0.55;
}

.svc-card-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    font-weight: 600;
    line-height: 1.15;
    word-break: break-word;
}

.svc-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.6;
    flex-grow: 1;
    transition: opacity 240ms ease;
}

.svc-card-btn:hover .svc-card-desc,
.svc-card-btn.is-active .svc-card-desc {
    opacity: 0.75;
}

.svc-card-arrow {
    font-size: 1.4rem;
    transition: transform 240ms ease;
    margin-top: 0.5rem;
}

.svc-card-btn:hover .svc-card-arrow,
.svc-card-btn.is-active .svc-card-arrow {
    transform: translateX(8px);
}

.svc-tl-block.is-svc-hidden,
.svc-tl-sep.is-svc-hidden {
    display: none;
}

@media (max-width: 860px) {
    .svc-landing {
        min-height: auto;
        padding: 4rem 0;
    }
    .svc-landing-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .svc-card-btn {
        padding: 1.75rem 1.5rem 1.5rem;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
    .svc-card-desc {
        width: 100%;
    }
    .svc-card-arrow {
        margin-top: 0;
        margin-left: auto;
    }
}

body[data-theme="dark"] .svc-card-btn {
    color: #f4f2ed;
    background: rgba(244, 242, 237, 0.05);
    border-color: rgba(244, 242, 237, 0.22);
}

body[data-theme="dark"] .svc-card-btn:hover,
body[data-theme="dark"] .svc-card-btn.is-active {
    color: #0e0e0e;
}

/* ═══════════════════════════════════════════
   Device Reel — orbit carousel
   ═══════════════════════════════════════════ */

/* JS sets position:relative + height on this element */
.device-trio.dk-reel {
    overflow: visible;
    width: 100%; /* Safari: megakadályozza a flex container összeomlását absolute children esetén */
}

.device-trio.dk-reel::before,
.device-trio.dk-reel::after {
    content: none !important;
    display: none !important;
}

body[data-theme="dark"] .device-trio.dk-reel::before,
body[data-theme="dark"] .device-trio.dk-reel::after {
    content: "";
    position: absolute;
    left: -2rem; right: -2rem;
    height: 20px;
    pointer-events: none;
    z-index: 10;
    background: repeating-linear-gradient(
        90deg,
        transparent 0, transparent 8px,
        rgba(244,242,237,0.1) 8px, rgba(244,242,237,0.18) 16px,
        transparent 16px, transparent 28px
    );
}
body[data-theme="dark"] .device-trio.dk-reel::before { top: 0; }
body[data-theme="dark"] .device-trio.dk-reel::after  { bottom: 0; }

/* Dots + progress */
.dk-reel-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.dk-reel-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.dk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(14,14,14,0.18);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 280ms, transform 280ms, width 280ms, border-radius 280ms;
}

.dk-dot.is-active {
    background: #0e0e0e;
    width: 28px;
    border-radius: 4px;
    transform: none;
}

.dk-progress-track {
    width: 160px;
    height: 2px;
    background: rgba(14,14,14,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.dk-progress-fill {
    height: 100%;
    background: #ccff00;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* Dark theme overrides */
body[data-theme="dark"] .dk-reel-stage::before,
body[data-theme="dark"] .dk-reel-stage::after {
    background: repeating-linear-gradient(
        90deg,
        transparent 0, transparent 10px,
        rgba(244,242,237,0.09) 10px, rgba(244,242,237,0.09) 18px,
        transparent 18px, transparent 30px
    );
}
body[data-theme="dark"] .dk-dot { background: rgba(244,242,237,0.18); }
body[data-theme="dark"] .dk-dot.is-active { background: #ccff00; }
body[data-theme="dark"] .dk-reel-flash { background: #ccff00; }
body[data-theme="dark"] .dk-progress-track { background: rgba(244,242,237,0.1); }

/* Responsive */
@media (max-width: 1000px) {
    .device-trio.dk-reel { gap: 0; }
    .dk-reel-strip { gap: 3rem; }
    .dk-reel-strip .dk-reel-item {
        -webkit-transform: scale(0.38);
        transform: scale(0.38);
        -webkit-transform-origin: top center;
        transform-origin: top center;
    }
    .dk-reel-strip .dk-reel-item:hover { opacity: 0.85; }
}

@media (max-width: 860px) {
    .dk-reel-strip .dk-reel-item {
        -webkit-transform: scale(0.32);
        transform: scale(0.32);
        -webkit-transform-origin: top center;
        transform-origin: top center;
    }
    .dk-reel-strip { gap: 2rem; }
}


/* ═══════════════════════════════════════════
   PORTFOLIO v2 — full redesign
═══════════════════════════════════════════ */

/* Hero */
.pf2-hero {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.pf2-headline {
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 600;
    line-height: 0.88;
    letter-spacing: -0.04em;
    margin: 0.5rem 0 1.5rem;
}

.pf2-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.pf2-stat strong {
    display: block;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    color: #ccff00;
}

.pf2-stat span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 0.25rem;
}

.pf2-stat-sep {
    font-size: 1.5rem;
    opacity: 0.2;
    font-weight: 300;
}

/* Projects */
.pf2-projects {
    padding-top: 0;
    padding-bottom: 2rem;
}

.pf2-projects > .container {
    transform: none !important;
}

.pf2-entry {
    position: -webkit-sticky;
    position: sticky;
    background: #ffffff;
    border: 1px solid rgba(5, 5, 5, 0.08);
    border-radius: 20px;
    padding: clamp(1.2rem, 2.5vh, 2rem) clamp(1.2rem, 2.5vw, 2.5rem);
    margin-bottom: 1.5rem;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.04);
    transform-origin: top center;
    display: grid;
    grid-template-columns: 0.85fr 1.45fr;
    grid-template-areas: "head browser" "foot browser";
    gap: 1rem 2.5rem;
    align-items: stretch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.pf2-entry:nth-of-type(1) { top: 90px; z-index: 10; }
.pf2-entry:nth-of-type(2) { top: 110px; z-index: 11; }
.pf2-entry:nth-of-type(3) { top: 130px; z-index: 12; }
.pf2-entry:nth-of-type(4) { top: 150px; z-index: 13; }

.pf2-entry-head {
    grid-area: head;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.pf2-entry-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pf2-num {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #ccff00;
}

.pf2-cat {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.45;
}

.pf2-name {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.035em;
    margin: 0;
}

.pf2-live-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    padding: 0.55rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.pf2-live-btn:hover {
    background: #ccff00;
    border-color: #ccff00;
    color: #0e0e0e;
}

/* Browser preview */
.pf2-browser {
    grid-area: browser;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.pf2-chrome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    background: rgba(14,14,14,0.05);
    border-bottom: 1px solid var(--line);
}

.pf2-url {
    font-size: 0.72rem;
    font-family: monospace;
    opacity: 0.5;
    flex: 1;
    text-align: center;
}

.pf2-browser .browser-viewport {
    border-radius: 0;
    border: none;
    flex: 1;
}

/* Footer row */
.pf2-entry-foot {
    grid-area: foot;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
}

.pf2-foot-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pf2-foot-metrics {
    display: flex;
    gap: 2.5rem;
    text-align: left;
}

.pf-metric strong {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ccff00;
    line-height: 1;
    letter-spacing: -0.05em;
}

.pf-metric span {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-top: 0.4rem;
}

.pf2-foot-info p {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.65;
    max-width: 54ch;
}

/* Clients */
.pf2-clients {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pf2-clients-head {
    margin-bottom: 2.5rem;
}

.pf2-clients-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 0.4rem 0 0;
}

.pf2-client-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pf2-client {
    display: grid;
    grid-template-columns: 2.5rem 1fr 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s ease;
}

.pf2-client:first-child {
    border-top: 1px solid var(--line);
}

.pf2-client-idx {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.3;
}

.pf2-client-name {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pf2-client-cat {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.45;
    text-align: right;
}

/* Dark theme */
body[data-theme="dark"] .pf2-entry {
    background: #0a0c10;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .pf2-chrome {
    background: rgba(244,242,237,0.04);
}

body[data-theme="dark"] .pf2-browser {
    border-color: rgba(244,242,237,0.1);
}

body[data-theme="dark"] .pf2-client {
    border-color: rgba(244,242,237,0.08);
}

body[data-theme="dark"] .pf2-client:first-child {
    border-color: rgba(244,242,237,0.08);
}

/* Responsive */
@media (max-width: 860px) {
    .pf2-entry {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .pf2-client {
        grid-template-columns: 2rem 1fr;
        grid-template-rows: auto auto;
    }

    .pf2-client-cat {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 580px) {
    .pf2-stats {
        gap: 1.2rem;
    }

    .pf2-entry {
        padding: 2.5rem 0;
    }
}

/* TikTok iframe: prevent page scroll while user touches device */
.dk-screen {
    touch-action: manipulation;
}


/* ═══════════════════════════════════════════
   KAPCSOLAT v3
═══════════════════════════════════════════ */

.kt2-hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.kt2-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.kt2-badge {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0e0e0e;
    background: #ccff00;
    padding: 0.3em 0.85em;
    border-radius: 99px;
}

.kt2-headline {
    font-size: clamp(4.5rem, 13vw, 12rem);
    font-weight: 600;
    line-height: 0.88;
    letter-spacing: -0.04em;
    margin: 0 0 2.5rem;
}

.kt2-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1.2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #0e0e0e;
    border-bottom: 2px solid rgba(0,0,0,0.2);
    padding-bottom: 0.25rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.kt2-email-link:hover {
    color: #ccff00;
    border-color: #ccff00;
}

.kt2-email-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.kt2-email-link:hover .kt2-email-icon {
    transform: translate(4px, -4px);
}

/* Process steps */
.kt2-process {
    padding-top: 3rem;
    padding-bottom: 4rem;
    border-top: 1px solid rgba(0,0,0,0.12);
}

.kt2-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.kt2-step {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.5rem 2rem 2.5rem 0;
    border-right: 1px solid rgba(0,0,0,0.12);
}

.kt2-step:last-child {
    border-right: none;
    padding-right: 0;
}

.kt2-step:not(:first-child) {
    padding-left: 2rem;
}

.kt2-step-num {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #88aa00;
}

.kt2-step-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.65rem;
    color: #0e0e0e;
}

.kt2-step-body p {
    font-size: 0.9rem;
    color: #0e0e0e;
    opacity: 0.55;
    line-height: 1.65;
    margin: 0;
}

/* Services list */
.kt2-services {
    padding-top: 0;
    padding-bottom: 5rem;
}

.kt2-services-inner {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.12);
}

.kt2-services-label {
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.kt2-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.kt2-services-list li {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0e0e0e;
    opacity: 0.8;
    position: relative;
    padding-right: 1.5rem;
}

.kt2-services-list li::after {
    content: "/";
    position: absolute;
    right: 0;
    opacity: 0.25;
}

.kt2-services-list li:last-child::after {
    display: none;
}

/* Dark / responsive */
body[data-theme="dark"] .kt2-process {
    border-color: rgba(255,255,255,0.12);
}

body[data-theme="dark"] .kt2-step {
    border-color: rgba(255,255,255,0.12);
}

body[data-theme="dark"] .kt2-step-num {
    color: #ccff00;
}

body[data-theme="dark"] .kt2-step-body h3 {
    color: #f4f2ed;
}

body[data-theme="dark"] .kt2-step-body p {
    color: #f4f2ed;
}

body[data-theme="dark"] .kt2-services-inner {
    border-color: rgba(255,255,255,0.12);
}

body[data-theme="dark"] .kt2-services-list li {
    color: #f4f2ed;
}

body[data-theme="dark"] .kt2-email-link {
    color: #f4f2ed;
    border-color: rgba(255,255,255,0.2);
}

body[data-theme="dark"] .kt2-headline {
    color: #f4f2ed;
}

@media (max-width: 860px) {
    .kt2-process-grid {
        grid-template-columns: 1fr;
    }

    .kt2-step {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 2rem 0;
    }

    .kt2-step:not(:first-child) {
        padding-left: 0;
    }

    .kt2-step:last-child {
        border-bottom: none;
    }

    .kt2-services-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ═══════════════════════════════════════════
   HOMEPAGE CLIENTS — chaos blob
═══════════════════════════════════════════ */

.z-clients { padding: 0; }

.chaos-wrap {
    position: relative;
    background: #0c0c0c;
    overflow: hidden;
    font-family: 'DM Sans', 'Inter', sans-serif;
}

.chaos-bg-text {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
    font-size: clamp(80px, 18vw, 160px);
    color: #ffffff06;
    letter-spacing: 0.05em;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.chaos-header {
    position: absolute;
    top: 36px; left: 40px;
    z-index: 10;
}

.chaos-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.chaos-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 3vw, 38px);
    font-weight: 600;
    color: #fff;
    line-height: 1;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.chaos-count {
    position: absolute;
    top: 36px; right: 40px;
    z-index: 10;
    text-align: right;
}

.chaos-count-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 600;
    color: #e8ff00;
    line-height: 1;
}

.chaos-count-label {
    font-size: 10px;
    color: #333;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.chaos-bottom {
    position: absolute;
    bottom: 28px;
    left: 40px; right: 40px;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    z-index: 10;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
}

.chaos-bottom-text {
    font-size: 12px;
    color: #333;
    letter-spacing: 0.05em;
}

.chaos-cta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0c0c0c;
    background: #e8ff00;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    -webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
    transition: opacity 0.2s, transform 0.2s;
}

.chaos-cta:hover { opacity: 0.85; -webkit-transform: scale(1.04); transform: scale(1.04); }

/* ─── Partners grid ─── */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem 2rem;
    padding: 118px 44px 98px;
    max-width: 1180px;
    margin: 0 auto;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(22px) scale(0.93);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.partner-card.is-visible {
    opacity: 1;
    transform: none;
}

.partner-card:hover {
    transform: scale(1.07);
}

.partner-card-logo {
    width: 130px;
    height: 130px;
    background: #161616;
    border: 1px solid #242424;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.partner-card-logo--white {
    background: #ffffff;
}

.partner-card:hover .partner-card-logo {
    border-color: #e8ff00;
    box-shadow: 0 0 22px rgba(232, 255, 0, 0.18);
}

.partner-card-logo img {
    width: 108px;
    height: 108px;
    object-fit: contain;
    display: block;
}

.partner-card-name {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #444;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    transition: color 0.25s;
}

.partner-card:hover .partner-card-name {
    color: #e8ff00;
}

.partner-card-tag {
    font-size: 9px;
    color: #282828;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.z-clients {
    background: #fff;
    padding: 5rem 0 6rem;
}

.z-cl-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.z-cl-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(14,14,14,0.35);
}

/* Editorial list */
.z-cl-list {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.z-cl-row {
    display: grid;
    grid-template-columns: 3rem 1fr auto auto;
    align-items: center;
    gap: 0 2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
}

a.z-cl-row:hover { background: rgba(0,0,0,0.025); margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }

.z-cl-num {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(14,14,14,0.2);
}

.z-cl-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0e0e0e;
}

.z-cl-cat {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(14,14,14,0.3);
    white-space: nowrap;
}

.z-cl-row img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    opacity: 0.85;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.z-cl-row:hover img { opacity: 1; }

/* white-content logos on white bg */
.z-cl-row img.cl-invert { filter: invert(1) brightness(0.1); }

@media (max-width: 640px) {
    .z-cl-row { grid-template-columns: 2.5rem 1fr auto; gap: 0 1rem; }
    .z-cl-cat { display: none; }
    .z-cl-row img { height: 28px; max-width: 80px; }
}

/* Marquee kept for portfolio page compatibility */
.z-cl-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    background: #111;
    padding: 2rem 0;
    position: relative;
}

.z-cl-marquee::before,
.z-cl-marquee::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 10%;
    z-index: 2;
    pointer-events: none;
}
.z-cl-marquee::before { left: 0; background: linear-gradient(to right, #111, transparent); }
.z-cl-marquee::after { right: 0; background: linear-gradient(to left, #111, transparent); }

.z-cl-strip {
    display: flex;
    align-items: center;
    gap: 0 6rem;
    flex-shrink: 0;
    padding: 0 3rem;
    -webkit-animation: z-marquee 30s linear infinite;
    animation: z-marquee 30s linear infinite;
}

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

.z-cl-strip .z-cl-logo {
    flex-direction: row;
    gap: 0;
    padding: 0;
    border: none;
    background: transparent !important;
    opacity: 0.75;
    -webkit-transform: none;
    transform: none;
}

.z-cl-strip .z-cl-logo.is-visible {
    opacity: 0.75;
    -webkit-transform: none;
    transform: none;
}

.z-cl-strip .z-cl-logo:hover { opacity: 1; }
.z-cl-strip .z-cl-logo .cl-name { display: none; }

.z-cl-marquee .cl-invert {
    filter: invert(1);
}

@media (max-width: 640px) {
    .z-cl-grid { gap: 2rem 3rem; }
    .z-cl-logo img { height: 36px; max-width: 130px; }
}

/* Mobile: ensure cinematic sections stay readable */
@media (max-width: 768px) {
    [data-page="home"] .cinematic-section > .container {
        opacity: 1 !important;
    }
}

/* ═══════════════════════════════════════════
   MOBILE OPTIMIZATIONS
═══════════════════════════════════════════ */

/* --- Navigation tap targets + device reel UI --- */
@media (max-width: 860px) {
    .site-nav a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 0.72rem;
    }

    /* Hide carousel controls — JS carousel disabled on mobile */
    .dk-reel-ui {
        display: none;
    }

    /* Device showcase */
    .device-showcase {
        padding: 3rem 0 4rem;
    }

    .device-showcase-header {
        margin-bottom: 2rem;
    }

    .device-trio {
        gap: 2rem;
    }
}

/* --- Small screen tweaks (≤680px) --- */
@media (max-width: 680px) {
    /* Reduce top padding on pages with large hero */
    .kt2-hero {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .pf2-hero {
        padding-top: 3.5rem;
    }

    /* Scale down very large headings that could overflow narrow screens */
    .kt2-headline,
    .pf2-headline {
        font-size: clamp(2.6rem, 10vw, 12rem);
        line-height: 0.92;
    }

    .svc-landing-headline { font-size: clamp(2rem, 8vw, 2.8rem) !important; }
    .z-team-header h2 { font-size: clamp(1.4rem, 6.5vw, 2.2rem) !important; }
    .testi-header h2 { font-size: clamp(1.4rem, 6.5vw, 2.2rem) !important; }
    .sdh-title { font-size: clamp(1.6rem, 7vw, 2.5rem) !important; }
    .svc-tl-name { font-size: clamp(1.5rem, 7vw, 2.5rem) !important; }

    .svc-landing-headline {
        font-size: clamp(2rem, 9vw, 6.5rem);
    }

    /* Action row: ensure both buttons are full-width and stack cleanly */
    .action-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-row .button {
        text-align: center;
        justify-content: center;
    }

    /* z-service-row: tighten last row on mobile */
    .z-service-row:last-of-type {
        margin-bottom: 1.5rem;
    }

    /* Process timeline: tighter on mobile */
    .timeline-step {
        padding-bottom: 2rem;
    }

    /* Chaos section header spacing */
    .chaos-title {
        font-size: 28px;
    }

    .chaos-count-num {
        font-size: 38px;
    }
}

/* --- Partners grid responsive --- */
@media (max-width: 860px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem 1.4rem;
        padding: 105px 28px 88px;
    }
}

@media (max-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 60px 16px 50px;
    }

    .partner-card-logo {
        width: 100px;
        height: 100px;
    }

    .partner-card-logo img {
        width: 80px;
        height: 80px;
    }

    .partner-card-name {
        max-width: 84px;
        font-size: 9px;
    }

    .chaos-header {
        top: 18px;
        left: 16px;
    }

    .chaos-count {
        top: 18px;
        right: 16px;
    }

    .chaos-bottom {
        left: 16px;
        right: 16px;
        bottom: 14px;
    }
}

@media (max-width: 400px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 88px 14px 80px;
    }
}

/* --- Ensure no horizontal overflow anywhere on mobile --- */
@media (max-width: 480px) {
    .z-hype-card h3 {
        font-size: 1.18rem;
    }

    .timeline-body h3 {
        font-size: 1rem;
    }

    .timeline-body p {
        font-size: 0.9rem;
    }

    /* Phone device frame: shrink to fit very narrow screens */
    .dk-phone {
        width: min(200px, 56vw);
    }

    .dk-ipad {
        width: min(260px, 76vw);
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

    /* ASCII logo: reduce padding so canvas fits */
    .z-ascii-center {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }


/* Services timeline name: prevent overflow on narrow screens */
@media (max-width: 580px) {
    .svc-tl-name {
        font-size: clamp(1.5rem, 7.5vw, 3.8rem);
        word-break: break-word;
        hyphens: auto;
        hyphens: manual;
    }
}

/* Portfolio "Velük dolgoztunk" marquee logos — fix image sizing */
.z-cl-strip .z-cl-logo img {
    height: 44px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.z-cl-strip .z-cl-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Portfolio z-clients section — label row layout */
.z-cl-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 1.5rem;
}

.z-cl-count {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
}

/* Dark mode — subtle background grid lines */
body[data-theme="dark"]::before {
    opacity: 0.1 !important;
    background:
        repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 52px),
        repeating-linear-gradient(-112deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 46px) !important;
}


/* ─── Large caps text overflow fixes (mobile) ─── */
@media (max-width: 580px) {
    /* CTA footer "SECURE THE BAG." / "A KÖVETKEZŐ TE VAGY." */
    .z-cta-footer h2 {
        font-size: clamp(1.8rem, 8vw, 7rem);
        word-break: break-word;
    }

    /* Portfolio entry names (e.g. "Galape Autóbontó") */
    .pf2-name {
        font-size: clamp(1.4rem, 5vw, 4.2rem);
    }

    /* Portfolio large number "01" etc — keep proportional */
    .pf2-num {
        font-size: clamp(2rem, 5vw, 5rem);
    }

    /* Home page service headings "SHORT FORM / MASTERY." */
    .z-service-info h2 {
        font-size: clamp(1.8rem, 7.5vw, 4.3rem);
    }

    /* "NEM EGY ARCTALAN ÜGYNÖKSÉG." kilógásának javítása */
    .z-team-header h2 {
        font-size: clamp(1.7rem, 8vw, 3rem);
    }

    /* "AKIKKEL EGYÜTT DOLGOZTUNK." kilógásának javítása */
    .home-partners .svc-landing-headline {
        font-size: clamp(1.7rem, 8vw, 3rem);
    }

/* ═══════════════════════════════════════════
   LEGAL / ADATKEZELÉS JOGI OLDAL
═══════════════════════════════════════════ */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 540px;
}

.legal-list li {
    font-size: 0.95rem;
    color: rgba(14, 14, 14, 0.65);
    line-height: 1.6;
    position: relative;
    padding-left: 1.4rem;
}

.legal-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #ccff00;
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
    font-weight: 700;
}

.legal-list li strong {
    color: #0e0e0e;
    font-weight: 700;
}

.timeline-body p + p {
    margin-top: 0.85rem;
}

.timeline-body p + .legal-list {
    margin-top: 1rem;
}

.timeline-body a {
    color: #ccff00;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 150ms ease;
}

.timeline-body a:hover {
    color: #a3cc00;
}

body[data-theme="dark"] .legal-list li {
    color: rgba(244, 242, 237, 0.6);
}

body[data-theme="dark"] .legal-list li strong {
    color: #f1f4fb;
}

    /* ASCII logo: always constrained within its container */
    #gz-ascii-logo {
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 400px) {
    /* Extra guard for very small screens */
    .kt2-headline,
    .pf2-headline {
        font-size: clamp(2.2rem, 10.5vw, 12rem);
    }

    .z-cta-footer h2 {
        font-size: clamp(1.6rem, 8vw, 7rem);
    }
}

/* ═══════════════════════════════════════════
   HOMEPAGE EDITORIAL REDESIGN
   .hz-*       → z-hype section
   .mn-partners-* → z-clients section
   .mn-testi-* → z-testimonials section
   .mn-svc-*   → z-services section
═══════════════════════════════════════════ */

/* ── 1. z-hype: editorial numbered list ── */
.z-hype { background: #0a0a0a; padding-top: 0; padding-bottom: 0; }

.hz-list { border-top: 1px solid rgba(255,255,255,0.08); }

.hz-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr 1.6fr;
    gap: 0 2.5rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: center;
    transition: background 200ms ease;
}

.hz-item:hover {
    background: rgba(255,255,255,0.02);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hz-num {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: #e8ff00;
}

.hz-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: #f4f2ed;
}

.hz-desc {
    color: rgba(244,242,237,0.5);
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 680px) {
    .hz-item {
        grid-template-columns: 2rem 1fr;
        grid-template-rows: auto auto;
        gap: 0.3rem 1rem;
    }
    .hz-desc {
        grid-column: 2;
        margin-top: 0.2rem;
    }
}

/* ── 2. z-clients: minimal partners ── */
.z-clients { padding: 0; background: transparent; }

.mn-partners-wrap { background: #0c0c0c; padding: 4rem 0; }

.mn-partners-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0;
}

.mn-partners-count {
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: rgba(244,242,237,0.45);
}

.mn-partners-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: rgba(244,242,237,0.4);
}

.mn-partners-wrap .partners-grid {
    padding: 2.5rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ── 3. z-testimonials: editorial quotes ── */
.mn-testi-header { margin-bottom: 3rem; }

.mn-testi-headline {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
    margin-top: 0.6rem;
}

.mn-testi-list { border-top: 1px solid rgba(255,255,255,0.08); }

.mn-testi {
    margin: 0;
    padding: 2.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mn-testi-q {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    color: rgba(244,242,237,0.82);
    font-style: italic;
    max-width: 72ch;
    margin-bottom: 1.2rem;
}

.mn-testi-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mn-testi-by img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: #1a1a1a;
    padding: 3px;
    border: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.mn-testi-by span {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(244,242,237,0.45);
}

.mn-testi-by em {
    color: rgba(244,242,237,0.65);
    font-style: normal;
}

/* ── 4. z-services: editorial service list ── */
.z-services { background: #0a0a0a; padding-top: 5rem; padding-bottom: 5rem; }

.mn-svc-header { margin-bottom: 2rem; }

.mn-svc-list { border-top: 1px solid rgba(255,255,255,0.08); }

.mn-svc-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 2rem;
    padding: 2.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: inherit;
    align-items: center;
    transition: background 200ms ease;
}

.mn-svc-row:hover {
    background: rgba(255,255,255,0.025);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mn-svc-row:hover .mn-svc-arrow {
    color: #e8ff00;
    transform: translateX(4px);
}

.mn-svc-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #f4f2ed;
}

.mn-svc-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}

.mn-svc-tags span {
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    color: #e8ff00;
    background: rgba(232,255,0,0.08);
    border: 1px solid rgba(232,255,0,0.18);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.mn-svc-body p {
    color: rgba(244,242,237,0.5);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 52ch;
}

.mn-svc-arrow {
    font-size: 1.4rem;
    color: rgba(244,242,237,0.3);
    transition: color 200ms ease, transform 200ms ease;
}

@media (max-width: 680px) {
    .mn-svc-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .mn-svc-body {
        grid-column: 1 / -1;
    }
}

/* Dark-mode overrides for new editorial sections */
body[data-theme="dark"] .z-services {
    background: #0a0a0a;
}

body[data-theme="dark"] .mn-testi-headline,
body[data-theme="dark"] .mn-svc-name,
body[data-theme="dark"] .hz-title {
    color: #f4f2ed;
}

body[data-theme="dark"] .mn-partners-wrap {
    background: #0c0c0c;
}

/* ═══════════════════════════════════════════
   SYSTEM PREFS (Privacy / Cookies)
═══════════════════════════════════════════ */

.pz-widget {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: auto;
    z-index: 8500;
    width: min(380px, calc(100vw - 3rem));
    background: #050505;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    font-family: "Space Mono", monospace;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.pz-widget.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

.pz-sys {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    color: rgba(244,242,237,0.5);
}

.pz-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8ff00;
    box-shadow: 0 0 8px rgba(232, 255, 0, 0.8);
    animation: pz-blink 2s infinite;
}

@keyframes pz-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.pz-close {
    background: none;
    border: none;
    color: rgba(244,242,237,0.4);
    font-family: inherit;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 150ms ease;
    padding: 0;
}

.pz-close:hover {
    color: #e8ff00;
}

.pz-body {
    padding: 1.2rem 1rem;
}

.pz-text {
    font-size: 0.75rem;
    color: rgba(244,242,237,0.7);
    line-height: 1.6;
    margin: 0 0 1.2rem;
}

.pz-text a {
    color: #e8ff00;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pz-text a:hover {
    color: #fff;
}

.pz-switches {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pz-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.pz-switch input {
    display: none;
}

.pz-track {
    position: relative;
    width: 32px;
    height: 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 99px;
    transition: background 200ms ease, border-color 200ms ease;
}

.pz-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: transform 200ms ease, background 200ms ease;
}

.pz-switch input:checked ~ .pz-track {
    background: rgba(232,255,0,0.15);
    border-color: #e8ff00;
}

.pz-switch input:checked ~ .pz-track .pz-thumb {
    transform: translateX(14px);
    background: #e8ff00;
}

.pz-switch.is-locked {
    pointer-events: none;
    opacity: 0.6;
}

.pz-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #f4f2ed;
}

.pz-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.pz-btn {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.15);
    font-family: inherit;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #f4f2ed;
    padding: 1rem 0;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.pz-btn:last-child {
    border-right: none;
}

.pz-btn:hover {
    background: rgba(255,255,255,0.06);
}

.pz-btn--primary {
    color: #e8ff00;
}

.pz-btn--primary:hover {
    background: #e8ff00;
    color: #000;
}

.pz-trigger {
    position: fixed;
    bottom: 1.5rem;
    right: auto;
    left: 4.8rem;
    z-index: 8400;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(244,242,237,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.9);
    transition: opacity 300ms ease, transform 300ms cubic-bezier(0.16,1,0.3,1), border-color 200ms ease, color 200ms ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.pz-trigger.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.pz-trigger:hover {
    border-color: #ccff00;
    color: #ccff00;
}

@media (max-width: 860px) {
    .pz-widget {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
    .pz-trigger {
        bottom: calc(75px + env(safe-area-inset-bottom));
        left: 4.2rem;
        right: auto;
        width: 42px;
        height: 42px;
    }
}

/* ═══════════════════════════════════════════
   Grain overlay
═══════════════════════════════════════════ */

.site-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.048;
    background-image: url("../assets/noise.svg");
    background-size: 180px 180px;
    background-repeat: repeat;
    transform: translateZ(0);
}

/* ═══════════════════════════════════════════
   Team / About Section
═══════════════════════════════════════════ */

.z-team {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.z-team-header {
    margin-bottom: 3rem;
}

.z-team-header h2 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(2.4rem, 6.5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0.8rem 0 1.2rem;
    text-transform: uppercase;
}

.z-team-header p {
    font-size: 1.05rem;
    color: rgba(5, 5, 5, 0.66);
    line-height: 1.6;
}

body[data-theme="dark"] .z-team-header p {
    color: rgba(244, 242, 237, 0.6);
}

.z-team-showcase {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    transform: translateZ(0);
}

.z-team-pic-large {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #111;
}

.z-team-pic-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(0.5) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.z-team-showcase:hover .z-team-pic-large img {
    transform: scale(1.03);
    filter: grayscale(0) contrast(1);
}

.z-team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2.5rem 2rem;
    background: linear-gradient(0deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.z-team-names {
    display: flex;
    gap: 3rem;
}

.z-team-person {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.z-team-person strong {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.z-team-person span {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ccff00;
}

.z-team-badge-new {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.z-team-badge-new strong {
    color: #ccff00;
}

@media (max-width: 860px) {
    .z-team-showcase {
        display: flex;
        flex-direction: column;
    }
    .z-team-pic-large {
        aspect-ratio: 16 / 10;
    }
    .z-team-overlay {
        position: relative;
        background: transparent;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
        padding: 2rem 1.5rem;
    }
    .z-team-names {
        flex-direction: column;
        gap: 1.2rem;
    }
    .z-team-person strong {
        font-size: 1.6rem;
    }
}

/* ═══════════════════════════════════════════
   Testimonials
═══════════════════════════════════════════ */

.z-testimonials {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.testi-header {
    margin-bottom: 3rem;
}

.testi-header h2 {
    margin-top: 0.7rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.testi-card {
    position: relative;
    margin: 0;
    padding: 1.8rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: border-color 220ms ease, transform 220ms ease;
    opacity: 0;
    transform: translateY(20px);
}

.testi-card.is-visible {
    opacity: 1;
    transform: none;
}

.testi-card:nth-child(2) { transition-delay: 90ms; }
.testi-card:nth-child(3) { transition-delay: 180ms; }

.testi-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.testi-mark {
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 0.8;
    color: #e8ff00;
    user-select: none;
}

.testi-quote {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted-strong);
    flex: 1;
    font-style: italic;
}

.testi-footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.testi-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
    background: #1a1a1a;
    padding: 5px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.07);
}

.testi-author strong {
    display: block;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

.testi-author span {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

@media (max-width: 860px) {
    .testi-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1.5rem;
        scrollbar-width: none;
        max-width: 100%;
    }
    .testi-grid::-webkit-scrollbar { display: none; }
    .testi-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        opacity: 1;
        transform: none;
    }
    .testi-card:nth-child(2),
    .testi-card:nth-child(3) { transition-delay: 0ms; }
}

/* ═══════════════════════════════════════════
   Calculator CTA strip
═══════════════════════════════════════════ */

.z-calc-strip {
    background: #e8ff00;
    padding: 4rem 0;
    text-align: center;
}

.z-calc-strip h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600;
    color: #0c0c0c;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
    line-height: 1.05;
}

.z-calc-strip p {
    color: rgba(12, 12, 12, 0.55);
    font-size: 0.94rem;
    margin-bottom: 2rem;
}

.z-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0c0c0c;
    color: #e8ff00;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.z-calc-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════════════════════════
   Árkalkulátor oldal
═══════════════════════════════════════════ */

body[data-page="kalkulator"] main {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.calc-shell {
    width: min(640px, 100%);
    position: relative;
}

.calc-progress-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.calc-progress-fill {
    height: 100%;
    background: #e8ff00;
    border-radius: 999px;
    transition: transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.calc-step {
    display: none;
    animation: calc-slide-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.calc-step.is-active {
    display: block;
}

@keyframes calc-slide-in {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
}

.calc-step-num {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
    display: block;
}

.calc-question {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.calc-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.calc-opt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1.1rem 1.2rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, transform 150ms ease;
    color: var(--text);
}

.calc-opt:hover {
    border-color: #e8ff00;
    background: #e8ff00;
    color: #0c0c0c;
    transform: translateY(-2px);
}

.calc-opt:hover .calc-opt-sub {
    color: rgba(12, 12, 12, 0.55);
}

.calc-opt.is-selected {
    border-color: #e8ff00;
    background: #e8ff00;
    color: #0c0c0c;
}

.calc-opt.is-selected .calc-opt-sub {
    color: rgba(12, 12, 12, 0.55);
}

.calc-opt-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.calc-opt-sub {
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.calc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.calc-back-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: "Space Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0.5rem 0;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.calc-back-btn:hover { color: var(--text); }
.calc-back-btn:disabled { opacity: 0; pointer-events: none; }

/* Result screen */
.calc-result-screen {
    text-align: center;
    padding: 1rem 0;
}

.calc-result-label {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.calc-result-range {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 8vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #e8ff00;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.calc-result-note {
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 38ch;
    margin: 0 auto 2.2rem;
    line-height: 1.55;
}

.calc-result-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e8ff00;
    color: #0c0c0c;
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease;
    margin-bottom: 1.2rem;
    display: block;
}

.calc-result-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(232, 255, 0, 0.2);
}

.calc-restart-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 160ms ease;
}

.calc-restart-btn:hover { color: var(--text); }

/* Email Composer (Előnézet) */
.calc-email-composer {
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 24px 50px rgba(0,0,0,0.25);
    animation: calc-slide-in 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cec-header {
    background: rgba(14,14,14,0.03);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
body[data-theme="dark"] .cec-header { background: rgba(255,255,255,0.02); }

.cec-dots { display: flex; gap: 6px; }
.cec-dots span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.cec-dots span:nth-child(2) { background: #ffbc2e; }
.cec-dots span:nth-child(3) { background: #28c840; }

.cec-subject {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.cec-meta {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}
.cec-meta strong { color: var(--text); font-weight: 600; width: 80px; display: inline-block; }
.cec-meta div { margin-bottom: 0.4rem; }
.cec-meta div:last-child { margin-bottom: 0; }

/* ÚJ HTML EMAIL VÁSZON */
.cec-email-canvas {
    background: rgba(0, 0, 0, 0.05);
    padding: 2rem 1.2rem;
    display: flex;
    justify-content: center;
}
body[data-theme="dark"] .cec-email-canvas { background: rgba(0, 0, 0, 0.3); }

.cec-html-template {
    width: 100%;
    max-width: 540px;
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.cec-html-top {
    background: #ccff00;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #000;
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.cec-html-top .brand-mark {
    width: 28px; height: 28px;
    font-size: 0.65rem;
    border-color: rgba(0,0,0,0.2);
    background: transparent;
    color: #000;
}

.cec-html-content {
    padding: 2rem 1.5rem;
}

.cec-html-textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    margin-bottom: 2rem;
}
.cec-html-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.cec-html-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
}

.cec-html-col h5 {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1rem;
}

.cec-summary-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.cec-summary-list li {
    font-size: 0.85rem; color: #fff; display: flex; gap: 0.5rem;
}
.cec-summary-list li span {
    color: #ccff00;
}

.cec-html-col .cec-total {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ccff00;
    text-align: left;
    border: none;
    padding: 0;
}

.cec-html-sender {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 2rem;
}
.cec-html-sender input {
    flex: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 0.7rem 1rem; color: #fff; font-family: "Inter", sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.cec-html-sender input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.cec-html-sender input:focus { border-color: #ccff00; }

.cec-html-captcha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin-top: -0.5rem;
    padding-top: 1.5rem;
}
.cec-html-captcha label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: "Inter", sans-serif;
}
.cec-captcha-visual {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cec-captcha-visual canvas {
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
#cec-captcha-refresh {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0 0.2rem;
}
#cec-captcha-refresh:hover {
    color: #ccff00;
    transform: rotate(90deg);
}
.cec-html-captcha input[type="text"]:not(#cec-bot-check) {
    width: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.6rem;
    color: #ccff00;
    font-family: "Space Mono", monospace;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.cec-html-captcha input:focus {
    border-color: #ccff00;
}

@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-error-shake {
    animation: shake-error 0.3s ease-in-out;
    border-color: #ff5f57 !important;
    color: #ff5f57 !important;
}

.cec-footer { padding: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; background: rgba(14,14,14,0.02); }
body[data-theme="dark"] .cec-footer { background: rgba(255,255,255,0.01); }

.cec-send-btn {
    background: #ccff00; color: #0e0e0e; border: none; padding: 0.9rem 2rem; border-radius: 99px; font-family: "Space Mono", monospace; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cec-send-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(204,255,0,0.2); background: #d4ff1a; }
.cec-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 580px) {
    .cec-html-sender { flex-direction: column; gap: 0.7rem; }
    .cec-html-captcha { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .cec-html-captcha input { width: 100%; }
}

@media (max-width: 480px) {
    .calc-options {
        grid-template-columns: 1fr;
    }
    .cec-send-btn { width: 100%; }
}

/* ═══════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════ */

.site-footer {
    background: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.sf-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.2rem 0;
}

.sf-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ═══════════════════════════════════════════
   MASSIVE SOCIAL LINKS (Footer)
═══════════════════════════════════════════ */
.sf-social-massive {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #080808;
}

.sf-social-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 1.2rem);
    padding: 3.5rem clamp(0.5rem, 1.5vw, 2rem);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 3rem);
    font-weight: 600;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 242, 237, 0.25);
    text-stroke: 1px rgba(244, 242, 237, 0.25);
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: color 400ms ease, -webkit-text-stroke-color 400ms ease;
}

.sf-social-link:last-child { border-right: none; }

.sf-social-link::before {
    content: ""; position: absolute;
    bottom: 0; left: 0; right: 0; top: 100%;
    transition: top 400ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

/* Hover animáció színei a meglévő neon változóidból */
.sf-social-link.tk::before { background: var(--z-lime, #ccff00); }
.sf-social-link.ig::before { background: var(--z-hot, #ff5a3d); }
.sf-social-link.fb::before { background: var(--z-cyan, #40f5e0); }

.sf-social-link span, .sf-social-link svg { position: relative; z-index: 1; }

.sf-social-link svg {
    width: clamp(28px, 4vw, 48px); height: clamp(28px, 4vw, 48px);
    stroke: rgba(244, 242, 237, 0.25); stroke-width: 2;
    transition: stroke 400ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sf-social-link:hover { color: #050505; -webkit-text-stroke-color: transparent; }
.sf-social-link:hover::before { top: 0; }
.sf-social-link:hover svg { stroke: #050505; transform: translate(6px, -6px); }

@media (max-width: 860px) {
    .sf-social-massive { flex-direction: column; }
    .sf-social-link {
        border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 2rem 1.2rem; justify-content: space-between;
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }
    .sf-social-link:last-child { border-bottom: none; }
}

.sf-brand,
body[data-theme="dark"] .sf-brand {
    color: #f4f2ed;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.sf-brand:hover,
body[data-theme="dark"] .sf-brand:hover {
    border: none !important;
    box-shadow: none !important;
}

.sf-brand .brand-mark {
    border-color: rgba(244, 242, 237, 0.2);
    background: rgba(244, 242, 237, 0.06);
    color: #f4f2ed;
}

.sf-brand .brand-text strong { color: #f4f2ed; }
.sf-brand .brand-text span   { color: rgba(244, 242, 237, 0.45); }

.sf-email {
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: rgba(244, 242, 237, 0.5);
    text-decoration: none;
    transition: color 180ms ease;
}

.sf-email:hover { color: #e8ff00; }

.sf-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.sf-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sf-col-label {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 242, 237, 0.25);
    margin-bottom: 0.3rem;
}

.sf-col a,
.sf-col span {
    font-size: 0.9rem;
    color: rgba(244, 242, 237, 0.5);
    text-decoration: none;
    transition: color 160ms ease;
    line-height: 1.4;
}

.sf-col a:hover { color: #f4f2ed; }

.sf-wordmark {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    text-stroke: 1px rgba(255, 255, 255, 0.1);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    width: 100%;
    padding: 0.6rem 1rem 0;
    box-sizing: border-box;
    text-align: center;
    /* JS will set exact font-size; fallback keeps it contained */
    font-size: 11vw;
}

.sf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244, 242, 237, 0.2);
}

@media (max-width: 680px) {
    .sf-nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .sf-col:last-child {
        grid-column: 1 / -1;
    }
    .sf-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .sf-wordmark {
        font-size: clamp(2.8rem, 16vw, 7rem);
    }
}

/* ═══════════════════════════════════════════
   HOME PAGE — NEW SECTIONS
═══════════════════════════════════════════ */

/* svc-card-btn used as <a> link */
a.svc-card-btn { text-decoration: none; }

/* Hero dual buttons */
.home-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.home-hero-cta--ghost {
    background: transparent;
    color: #0e0e0e;
    border: 1.5px solid rgba(14, 14, 14, 0.22);
}

.home-hero-cta--ghost:hover {
    background: #0e0e0e;
    color: #f4f2ed;
    border-color: #0e0e0e;
    transform: translateY(-2px);
}

body[data-theme="dark"] .home-hero-cta--ghost {
    color: #f4f2ed;
    border-color: rgba(244, 242, 237, 0.2);
}

body[data-theme="dark"] .home-hero-cta--ghost:hover {
    background: #f4f2ed;
    color: #0e0e0e;
}

/* ─── Contact form ─── */
.kt2-form-section {
    border-top: 1px solid var(--line);
}

.kt2-form-header {
    margin-bottom: 2.5rem;
}

.kt2-form-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
    margin-top: 0.6rem;
}

.kt2-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 720px;
}

.kt2-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.kt2-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.kt2-field label {
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.kt2-field input,
.kt2-field textarea {
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    resize: vertical;
    outline: none;
}

.kt2-field input::placeholder,
.kt2-field textarea::placeholder {
    color: rgba(167, 161, 153, 0.5);
}

.kt2-field input:focus,
.kt2-field textarea:focus {
    border-color: #e8ff00;
    box-shadow: 0 0 0 3px rgba(232, 255, 0, 0.1);
}

.kt2-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.kt2-form-note {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.kt2-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e8ff00;
    color: #0c0c0c;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.kt2-form-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(232, 255, 0, 0.25);
}

.kt2-form-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.kt2-form-success {
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    color: #e8ff00;
    min-height: 1.4em;
}

@media (max-width: 580px) {
    .kt2-field-row { grid-template-columns: 1fr; }
}

/* ─── Sticky mobile CTA ─── */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #e8ff00;
    color: #0c0c0c;
    font-family: "Space Mono", monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem;
    border-radius: 10px;
    transition: background 180ms ease;
}

.sticky-mobile-cta a:hover { background: #ccff00; }

@media (max-width: 860px) {
    .sticky-mobile-cta { display: block; }
    /* push page content above sticky bar */
    body { padding-bottom: 72px; }
}

/* Hero statement */
.home-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(5, 5, 5, 0.08);
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: end;
}

.home-hero-h {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.95;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 1rem 0 1.5rem;
    color: #0e0e0e;
}

.home-hero-sub {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(14, 14, 14, 0.55);
    max-width: 48ch;
    margin-bottom: 2rem;
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0e0e0e;
    color: #f4f2ed;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    transition: background 200ms ease, transform 200ms ease;
}

.home-hero-cta:hover {
    background: #ccff00;
    color: #0e0e0e;
    transform: translateY(-2px);
}

.home-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding-bottom: 0.5rem;
    border-left: 1px solid rgba(14, 14, 14, 0.1);
    padding-left: 2.5rem;
}

.home-stat strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #0e0e0e;
}

.home-stat span {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(14, 14, 14, 0.4);
    margin-top: 0.25rem;
}

@media (max-width: 680px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .home-hero-stats {
        flex-direction: row;
        justify-content: center;
        text-align: center;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(14, 14, 14, 0.1);
        padding-top: 1.5rem;
    }
}

/* Dark mode hero */
body[data-theme="dark"] .home-hero {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
body[data-theme="dark"] .home-hero-h { color: #f4f2ed; }
body[data-theme="dark"] .home-hero-sub { color: rgba(244, 242, 237, 0.5); }
body[data-theme="dark"] .home-hero-cta { background: #f4f2ed; color: #0e0e0e; }
body[data-theme="dark"] .home-hero-cta:hover { background: #ccff00; }
body[data-theme="dark"] .home-stat strong { color: #f4f2ed; }
body[data-theme="dark"] .home-stat span { color: rgba(244, 242, 237, 0.35); }
body[data-theme="dark"] .home-hero-stats { border-color: rgba(255, 255, 255, 0.08); }

/* Services section wrapper */
.home-services {
    border-top: 1px solid rgba(5, 5, 5, 0.08);
    border-bottom: 1px solid rgba(5, 5, 5, 0.08);
}

body[data-theme="dark"] .home-services {
    border-color: rgba(255, 255, 255, 0.06);
}

/* Partners — logo grid */
.home-partners {
    border-bottom: 1px solid rgba(5, 5, 5, 0.08);
}

.home-partners .partners-grid {
    padding: 2.5rem 0 2rem;
}

body[data-theme="dark"] .home-partners {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.hp-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(5, 5, 5, 0.1);
    margin-bottom: 0;
}

.hp-count {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: rgba(14, 14, 14, 0.38);
}

.hp-list {
    border-bottom: 1px solid rgba(5, 5, 5, 0.07);
}

.hp-row {
    display: grid;
    grid-template-columns: 2.2rem 1fr auto auto;
    align-items: center;
    gap: 0 1.5rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(5, 5, 5, 0.07);
    text-decoration: none;
    color: inherit;
    transition: background 180ms ease, padding 180ms ease;
}

a.hp-row:hover {
    background: rgba(204, 255, 0, 0.06);
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    margin: 0 -0.8rem;
}

a.hp-row:hover .hp-arrow { opacity: 1; transform: translateX(4px); }

.hp-num {
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: rgba(14, 14, 14, 0.28);
}

.hp-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #0e0e0e;
}

.hp-tag {
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(14, 14, 14, 0.35);
}

.hp-arrow {
    font-size: 1rem;
    color: rgba(14, 14, 14, 0.25);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
}

.hp-foot {
    padding-top: 1.8rem;
}

.hp-join {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(14, 14, 14, 0.5);
    text-decoration: none;
    transition: color 180ms ease;
}

.hp-join:hover { color: #0e0e0e; }
.hp-join span { transition: transform 180ms ease; }
.hp-join:hover span { transform: translateX(4px); }

/* Dark mode partners */
body[data-theme="dark"] .hp-head,
body[data-theme="dark"] .hp-list,
body[data-theme="dark"] .hp-row { border-color: rgba(255, 255, 255, 0.06); }
body[data-theme="dark"] .hp-name { color: #f4f2ed; }
body[data-theme="dark"] .hp-num { color: rgba(244, 242, 237, 0.25); }
body[data-theme="dark"] .hp-tag { color: rgba(244, 242, 237, 0.32); }
body[data-theme="dark"] .hp-arrow { color: rgba(244, 242, 237, 0.25); }
body[data-theme="dark"] .hp-count { color: rgba(244, 242, 237, 0.32); }
body[data-theme="dark"] .hp-join { color: rgba(244, 242, 237, 0.4); }
body[data-theme="dark"] .hp-join:hover { color: #f4f2ed; }
body[data-theme="dark"] a.hp-row:hover { background: rgba(204, 255, 0, 0.04); }

@media (max-width: 580px) {
    .hp-row { grid-template-columns: 2rem 1fr auto; }
    .hp-arrow { display: none; }
    .hp-tag { font-size: 0.6rem; }
}

/* ═══════════════════════════════════════════
   HOME — merged intro (no ticker ribbon)
═══════════════════════════════════════════ */

.home-hero-merged {
    padding-bottom: 0;
}

.home-hero-merged .home-hero-inner {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.home-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    margin-bottom: 1.4rem;
}

.home-hero-tags span {
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(14, 14, 14, 0.35);
}

body[data-theme="dark"] .home-hero-tags span {
    color: rgba(244, 242, 237, 0.3);
}

/* ═══════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════ */

body[data-page="error"] main {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.error-bg-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(12rem, 35vw, 28rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(14, 14, 14, 0.05);
    text-stroke: 1px rgba(14, 14, 14, 0.05);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

body[data-theme="dark"] .error-bg-num {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.05);
}

.error-inner {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.error-eyebrow {
    display: block;
    margin-bottom: 1rem;
}

.error-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.error-sub {
    font-size: 1rem;
    color: rgba(14, 14, 14, 0.5);
    max-width: 50ch;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

body[data-theme="dark"] .error-sub { color: rgba(244, 242, 237, 0.45); }

.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 4rem;
}

.error-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid rgba(14, 14, 14, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

body[data-theme="dark"] .error-nav-grid {
    border-color: rgba(255, 255, 255, 0.06);
}

.error-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.2rem 1rem;
    text-decoration: none;
    background: rgba(14, 14, 14, 0.02);
    border-right: 1px solid rgba(14, 14, 14, 0.08);
    transition: background 180ms ease;
}

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

.error-nav-item:hover { background: rgba(204, 255, 0, 0.06); }

body[data-theme="dark"] .error-nav-item {
    background: rgba(255, 255, 255, 0.02);
    border-right-color: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .error-nav-item:hover {
    background: rgba(204, 255, 0, 0.05);
}

.error-nav-num {
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: #e8ff00;
}

/* ═══════════════════════════════════════════
   Service Detail Pages (webfejlesztes, webujratervezes, grafika)
   ═══════════════════════════════════════════ */

.svc-detail-hero { padding: 5rem 0 4rem; border-bottom: 1px solid rgba(5,5,5,0.08); }
.sdh-eyebrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.sdh-back { font-family: "Space Mono", monospace; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); text-decoration: none; transition: color 160ms ease; }
.sdh-back:hover { color: var(--text); }
.sdh-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin-bottom: 1.2rem; }
.sdh-lead { font-size: 1.05rem; color: rgba(14,14,14,0.55); max-width: 56ch; line-height: 1.6; margin-bottom: 2rem; }
body[data-theme="dark"] .sdh-lead { color: rgba(244,242,237,0.5); }
body[data-theme="dark"] .svc-detail-hero { border-bottom-color: rgba(255,255,255,0.06); }
.svc-detail-cards { margin-top: 3rem; }

.svc-detail-cards .svc-landing-cards {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .svc-detail-cards .svc-landing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .svc-detail-cards .svc-landing-cards {
        grid-template-columns: 1fr;
    }
    .svc-detail-hero {
        padding: 3.5rem 0 3rem;
    }
}

.error-nav-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(14, 14, 14, 0.7);
}

body[data-theme="dark"] .error-nav-name { color: rgba(244, 242, 237, 0.6); }

@media (max-width: 640px) {
    .error-nav-grid { grid-template-columns: 1fr 1fr; }
    .error-nav-item { border-right: 1px solid rgba(14,14,14,0.08); border-bottom: 1px solid rgba(14,14,14,0.08); }
}

/* ═══════════════════════════════════════════
   KAPCSOLAT — split hero + form layout
═══════════════════════════════════════════ */

.kt2-hero--split {
    padding-bottom: 4rem;
}

.kt2-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    min-width: 0;
}

.kt2-split-left,
.kt2-split-right {
    min-width: 0;
    overflow: hidden;
}

/* Scale down the huge headline inside the split layout */
.kt2-hero--split .kt2-headline {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1.8rem;
}

.kt2-split-right {
    padding-top: 0.5rem;
}

.kt2-split-right .kt2-form {
    max-width: 100%;
}

@media (max-width: 860px) {
    .kt2-split-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .kt2-hero--split .kt2-headline {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }
}

/* ═══════════════════════════════════════════
   SCROLL HINT — pulsing down arrow
═══════════════════════════════════════════ */

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    animation: scroll-hint-fade 1s ease 1.5s forwards;
}

@keyframes scroll-hint-fade {
    to { opacity: 1; }
}

.scroll-hint-label {
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(14, 14, 14, 0.35);
}

.scroll-hint-arrow {
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(14, 14, 14, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(14, 14, 14, 0.4);
    animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

body[data-theme="dark"] .scroll-hint-label { color: rgba(244, 242, 237, 0.3); }
body[data-theme="dark"] .scroll-hint-arrow  { border-color: rgba(244, 242, 237, 0.15); color: rgba(244, 242, 237, 0.35); }

/* ═══════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    bottom: 4.4rem;
    left: 3.15rem;
    right: auto;
    width: 44px;
    height: 44px;
    background: #e8ff00;
    color: #0c0c0c;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transition: opacity 280ms ease, transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: none;
}

/* Amikor a social gomb hoverelve van, a Vissza gomb felugrik az útjából! */
body:has(.float-social-wrap:hover) .back-to-top.is-visible,
body:has(.float-social-wrap.is-open) .back-to-top.is-visible {
    transform: translateY(-135px);
}

body:has(.float-social-wrap:hover) .back-to-top.is-visible:hover,
body:has(.float-social-wrap.is-open) .back-to-top.is-visible:hover {
    transform: translateY(-135px) scale(1.1);
}

.back-to-top:hover {
    background: #ccff00;
    transform: scale(1.1);
}

/* on mobile push above sticky CTA */
@media (max-width: 860px) {
    .back-to-top {
        bottom: calc(127px + env(safe-area-inset-bottom));
        left: 2.6rem;
        right: auto;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    body:has(.float-social-wrap:hover) .back-to-top.is-visible,
    body:has(.float-social-wrap.is-open) .back-to-top.is-visible {
        transform: translateY(-125px);
    }
}

/* ═══════════════════════════════════════════
   FLOATING SOCIAL TRIANGLE
═══════════════════════════════════════════ */
.float-social-wrap {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: auto;
    z-index: 8400;
}

.float-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(244,242,237,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
    position: relative;
}

.float-social-btn:hover,
.float-social-wrap.is-open .float-social-btn {
    border-color: #ccff00;
    color: #ccff00;
}

.float-social-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.float-social-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    right: auto;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom left;
    pointer-events: none;
    transition: opacity 250ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Láthatatlan híd a gomb és a menü között, hogy ne tűnjön el, amikor átviszed az egeret */
.float-social-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
}

/* Kattintás NÉLKÜL, hoverre is lenyílik */
.float-social-wrap:hover .float-social-menu,
.float-social-wrap.is-open .float-social-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.float-social-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.6rem 1rem;
    color: #f4f2ed;
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: background 150ms ease, color 150ms ease;
    white-space: nowrap;
}

.float-social-menu a:hover {
    background: rgba(204,255,0,0.1);
    color: #ccff00;
}

@media (max-width: 860px) {
    .float-social-wrap {
        bottom: calc(75px + env(safe-area-inset-bottom));
        left: 1rem;
        right: auto;
    }
    .float-social-btn {
        width: 42px;
        height: 42px;
    }
    .float-social-menu {
        left: 0;
        right: auto;
        bottom: calc(100% + 10px);
    }
}

/* ═══════════════════════════════════════════
   AI CHATBOT (Bottom Left)
═══════════════════════════════════════════ */
.ai-chat-wrap {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    z-index: 8400;
}

.ai-chat-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ccff00;
    border: none;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(204, 255, 0, 0.3);
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease;
    position: relative;
}

.ai-chat-btn:hover,
.ai-chat-wrap.is-open .ai-chat-btn {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(204, 255, 0, 0.4);
}

.ai-chat-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.6);
    animation: ai-pulse 2.5s infinite;
    pointer-events: none;
}

@keyframes ai-pulse {
    0% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(204, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); }
}

.ai-chat-window {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 3rem));
    background: #050505;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.ai-chat-wrap.is-open .ai-chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-chat-header {
    padding: 1rem 1.2rem;
    background: rgba(204, 255, 0, 0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccff00;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
}

.ai-title {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.1;
}

.ai-title span {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 0.2rem;
}

.ai-chat-body {
    padding: 1.2rem;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.ai-msg {
    background: rgba(255,255,255,0.05);
    padding: 0.8rem 1rem;
    border-radius: 12px 12px 12px 2px;
    color: #eef3ff;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 85%;
    border: 1px solid rgba(255,255,255,0.05);
}

.ai-msg.user {
    background: #ccff00;
    color: #000;
    border-radius: 12px 12px 2px 12px;
    align-self: flex-end;
    border: none;
}

.ai-chat-input {
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 0.5rem;
    background: #0a0a0a;
}

.ai-chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    outline: none;
}

.ai-chat-input input::placeholder {
    color: rgba(255,255,255,0.3);
}

.ai-chat-input button {
    background: #ccff00;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ai-chat-input button:hover {
    transform: scale(1.05);
    background: #d4ff1a;
}

.ai-msg a:hover { color: #fff !important; }

.ai-msg.typing { color: rgba(255,255,255,0.5); font-style: italic; padding: 0.6rem 1rem; }
.ai-msg.typing span { animation: ai-dot 1.4s infinite; opacity: 0; }
.ai-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-dot { 0%, 20% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 860px) {
    .ai-chat-wrap {
        bottom: calc(75px + env(safe-area-inset-bottom));
        right: 1rem;
        left: auto;
    }
    .ai-chat-window {
        width: calc(100vw - 2rem);
    }
}

/* ═══════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE OVERRIDES
   Covers every page at every breakpoint.
   Nothing above is removed — only additions.
═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   Desktop reset: undo mobile-only rules
   (body padding-bottom for sticky CTA bar
   must not bleed into desktop viewports)
   ───────────────────────────────────────── */
@media (min-width: 861px) {
    body {
        padding-bottom: 0 !important;
    }
}

/* ─────────────────────────────────────────
   1024px and below — tablets
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Section vertical breathing room */
    .section {
        padding: 4rem 0;
    }

    /* Home hero: tighten gap before it goes single-col at 860 */
    .home-hero-inner {
        gap: 2.5rem;
    }

    /* Contact split grid: reduce gap at tablet */
    .kt2-split-grid {
        gap: 2.5rem;
    }

    /* Service detail hero — 4-col → 2-col already via existing rule,
       but ensure padding doesn't feel cramped */
    .svc-detail-hero {
        padding: 4rem 0 3rem;
    }

    /* Portfolio entry heading: reduce gap */
    .pf2-entry-head {
        gap: 1.5rem;
    }

    /* Portfolio large headline */
    .pf2-headline {
        font-size: clamp(3.5rem, 10vw, 12rem);
    }

    /* Contact large headline in split layout */
    .kt2-hero--split .kt2-headline {
        font-size: clamp(2rem, 4.5vw, 4rem);
    }
}

/* ─────────────────────────────────────────
   860px and below — large mobile / small tablet
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    /* ── Home hero: stack copy + stats ── */
    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-hero-merged .home-hero-inner {
        padding-bottom: 3.5rem;
    }

    /* Stats go horizontal beneath copy */
    .home-hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem 2.5rem;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(14, 14, 14, 0.1);
        padding-top: 1.5rem;
        padding-bottom: 0;
    }

    body[data-theme="dark"] .home-hero-stats {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    /* Hero headline — scale down for tablet widths */
    .home-hero-h {
        font-size: clamp(2.4rem, 9vw, 4rem);
    }

    /* Hero sub and buttons: cap width so they don't stretch awkwardly */
    .home-hero-sub {
        max-width: 100%;
    }

    /* Section padding */
    .section {
        padding: 3.8rem 0;
    }

    /* Home hero section itself */
    .home-hero {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* Services landing headline */
    .svc-landing-headline {
        font-size: clamp(2.4rem, 8vw, 6.5rem);
    }

    /* Service timeline content: remove indent on mobile */
    .svc-tl-content {
        padding-left: 0;
    }

    /* Testimonials: center grid */
    .testi-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Service cards grid (home page) */
    .svc-landing-cards {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    /* Contact: process grid already 1-col, ensure services inner wraps */
    .kt2-services-inner {
        flex-direction: column;
        gap: 1.2rem;
    }

    /* Portfolio hero stacks already — ensure headline is readable */
    .pf2-headline {
        font-size: clamp(3rem, 11vw, 12rem);
    }

    /* Device showcase */
    .device-showcase-header h2 {
        font-size: clamp(1.6rem, 5vw, 3rem);
    }

    .device-showcase-header p {
        font-size: 0.97rem;
    }

    /* Home services section */
    .home-services .svc-landing-cards {
        grid-template-columns: 1fr;
    }

    /* Partners head flex: allow wrap */
    .hp-head {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Hype section list already handled, but tighten padding */
    .hz-item {
        padding: 1.8rem 0;
    }

    /* z-hype section already 1-col */

    /* Service rows on home */
    .mn-svc-row {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding: 2rem 0;
    }

    /* Contact split layout: single column */
    .kt2-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Contact headline in full hero */
    .kt2-headline {
        font-size: clamp(3rem, 11vw, 12rem);
    }

    /* Error nav grid: 2×2 on tablet */
    .error-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-nav-item {
        border-right: 1px solid rgba(14, 14, 14, 0.08);
        border-bottom: 1px solid rgba(14, 14, 14, 0.08);
    }

    body[data-theme="dark"] .error-nav-item {
        border-right-color: rgba(255, 255, 255, 0.06);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    /* Home hero tags: smaller gap on mobile */
    .home-hero-tags {
        gap: 0.4rem 0.9rem;
    }

    /* Portfolio entry foot: already 1-col at 860px */
}

/* ─────────────────────────────────────────
   640px and below — phones
   ───────────────────────────────────────── */
@media (max-width: 640px) {
    /* General section tightening */
    .section {
        padding: 3rem 0;
    }

    /* Container: slightly tighter on phones */
    .container {
        width: calc(100% - 1.5rem);
    }

    /* ── Hero ── */
    .home-hero {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .home-hero-h {
        font-size: clamp(2.2rem, 9.5vw, 3.6rem);
        margin-bottom: 1.2rem;
    }

    .home-hero-sub {
        font-size: 0.97rem;
        margin-bottom: 1.5rem;
    }

    .home-hero-cta {
        font-size: 0.72rem;
        padding: 0.8rem 1.4rem;
    }

    .home-hero-btns {
        gap: 0.6rem;
    }

    /* Hero tags: even tighter */
    .home-hero-tags {
        gap: 0.3rem 0.7rem;
        margin-bottom: 1rem;
    }

    .home-hero-tags span {
        font-size: 0.62rem;
    }

    /* Stats row: wrap gracefully */
    .home-hero-stats {
        gap: 1rem 2rem;
    }

    .home-stat strong {
        font-size: 1.6rem;
    }

    /* ── Navigation ── */
    /* home-nav-grid already switches to brand|actions / nav nav at 680px;
       no changes needed, just ensure nav CTA button doesn't break layout */
    .home-actions .button-primary {
        font-size: 0.72rem;
        padding: 0.62rem 0.9rem;
        min-height: 40px;
        letter-spacing: 0.02em;
    }

    .home-actions {
        gap: 0.4rem;
    }

    /* ── Service cards ── */
    .svc-landing-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .svc-card-btn {
        padding: 1.5rem 1.2rem 1.2rem;
    }

    /* Service detail 4-card grid → 1-col */
    .svc-detail-cards .svc-landing-cards {
        grid-template-columns: 1fr;
    }

    /* ── Service rows (home editorial) ── */
    .mn-svc-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.8rem;
        padding: 1.8rem 0;
    }

    .mn-svc-arrow {
        display: none;
    }

    .mn-svc-name {
        font-size: clamp(1.3rem, 6vw, 2.2rem);
    }

    /* ── Footer ── */
    .sf-nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
        padding-top: 2.2rem;
        padding-bottom: 2.2rem;
    }

    .sf-col:last-child {
        grid-column: 1 / -1;
    }

    .sf-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .sf-top {
        padding: 1.6rem 0;
    }

    .sf-wordmark {
        font-size: clamp(2.5rem, 15vw, 6rem);
    }

    .sf-bottom {
        font-size: 0.6rem;
    }

    /* ── Hype list (hz-item) — already handled at 680px,
       reinforce for 640px ── */
    .hz-item {
        grid-template-columns: 1.8rem 1fr;
        gap: 0.25rem 0.8rem;
        padding: 1.5rem 0;
    }

    .hz-desc {
        grid-column: 2;
        margin-top: 0.15rem;
    }

    /* ── Testimonials ── */
    .testi-grid {
        max-width: 100%;
    }

    .testi-card {
        padding: 1.4rem;
    }

    /* ── Portfolio ── */
    .pf2-hero {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .pf2-headline {
        font-size: clamp(2.6rem, 11vw, 12rem);
        margin-bottom: 1.8rem;
    }

    .pf2-entry {
        padding: 2.5rem 0;
    }

    .pf2-entry-head {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem;
    }

    .pf2-live-btn {
        grid-column: 1 / -1;
    }

    .pf2-num {
        font-size: clamp(2rem, 6vw, 5rem);
    }

    .pf2-name {
        font-size: clamp(1.4rem, 5.5vw, 4.2rem);
    }

    /* ── Contact page ── */
    .kt2-hero {
        padding-top: 2.8rem;
        padding-bottom: 2rem;
    }

    .kt2-headline {
        font-size: clamp(2.6rem, 11vw, 12rem);
        margin-bottom: 1.8rem;
    }

    .kt2-hero--split .kt2-headline {
        font-size: clamp(2.2rem, 9vw, 5rem);
    }

    .kt2-email-link {
        font-size: clamp(1rem, 4vw, 2.8rem);
    }

    .kt2-process {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    /* ── Device showcase ── */
    .device-showcase-header h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .device-showcase-header p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .device-showcase {
        padding: 2.5rem 0 3rem;
    }

    .device-showcase-header {
        margin-bottom: 1.5rem;
    }

    /* ── Service detail hero ── */
    .svc-detail-hero {
        padding: 2.8rem 0 2.5rem;
    }

    .sdh-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .sdh-eyebrow {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .sdh-lead {
        font-size: 0.97rem;
    }

    /* ── Calculator ── */
    .calc-shell {
        padding: 0 0.5rem;
    }

    body[data-page="kalkulator"] main {
        padding: 2rem 0.75rem;
    }

    /* ── CTA strip ── */
    .z-calc-strip {
        padding: 3rem 0;
    }

    .z-calc-strip h2 {
        font-size: clamp(1.4rem, 5.5vw, 2.8rem);
    }

    /* ── Partners grid (home page list view) ── */
    .hp-row {
        grid-template-columns: 2rem 1fr auto;
        gap: 0 1rem;
    }

    /* ── z-cta-footer ── */
    .z-cta-footer {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .z-cta-footer h2 {
        font-size: clamp(1.8rem, 8vw, 7rem);
        word-break: break-word;
    }

    /* ── Hype cards (z-hype-grid) ── */
    .z-hype-grid {
        grid-template-columns: 1fr;
    }

    .z-hype-card {
        padding: 1.2rem 1rem;
    }

    /* ── svc-tl (szolgaltatasok) ── */
    .svc-tl-block {
        padding: 2.5rem 0;
    }

    .svc-tl-head {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .svc-tl-badge {
        font-size: 1rem;
        color: rgba(14, 14, 14, 0.25);
        margin-bottom: 0.4rem;
    }

    /* ── kt2-split form fields ── */
    .kt2-field-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ── Sticky CTA: safe area ── */
    .sticky-mobile-cta {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    /* ── Partners wrap on home ── */
    .mn-partners-wrap {
        padding: 2.5rem 0;
    }

    .mn-partners-head {
        flex-direction: column;
        gap: 0.4rem;
        padding-bottom: 1.8rem;
    }
}

/* ─────────────────────────────────────────
   480px and below
   ───────────────────────────────────────── */
@media (max-width: 480px) {
    /* Calculator shell: tighter padding on very narrow phones */
    .calc-shell {
        padding: 0 0.25rem;
    }

    body[data-page="kalkulator"] main {
        padding: 1.5rem 0.5rem;
    }

    /* Calculator options: single column (already at 480px — reinforce) */
    .calc-options {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    /* Service card padding: ultra-compact */
    .svc-card-btn {
        padding: 1.2rem 1rem 1rem;
    }
}

/* ─────────────────────────────────────────
   400px and below — small phones (320-400px)
   ───────────────────────────────────────── */
@media (max-width: 400px) {
    /* Aggressive font reduction for very small screens */
    .home-hero-h {
        font-size: clamp(1.9rem, 10vw, 3rem);
    }

    .home-hero-sub {
        font-size: 0.92rem;
    }

    .kt2-headline,
    .pf2-headline {
        font-size: clamp(2rem, 10.5vw, 12rem);
    }

    .z-cta-footer h2 {
        font-size: clamp(1.5rem, 8.5vw, 7rem);
    }

    /* Partners: 2 per row */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 80px 12px 72px;
        gap: 0.8rem;
    }

    .partner-card-logo {
        width: 76px;
        height: 76px;
    }

    .partner-card-logo img {
        width: 60px;
        height: 60px;
    }

    /* Nav: hide brand subtitle and shrink mark */
    .brand-text span {
        display: none;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 0.78rem;
        border-radius: 10px;
    }

    /* Home actions: hide theme toggle label if needed */
    .theme-toggle {
        padding: 0.38rem 0.72rem;
        font-size: 0.72rem;
    }

    /* Hero CTAs: stack vertically */
    .home-hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-cta {
        justify-content: center;
        text-align: center;
    }

    /* Section padding: ultra-compact */
    .section {
        padding: 2.5rem 0;
    }

    /* Container: minimal margin */
    .container {
        width: calc(100% - 1rem);
    }

    /* Footer wordmark: prevent overflow */
    .sf-wordmark {
        font-size: clamp(2rem, 14vw, 5rem);
    }

    /* Testimonial cards */
    .testi-card {
        padding: 1.2rem;
    }

    /* Process timeline: tighter */
    .timeline-step {
        grid-template-columns: 3rem 1fr;
        gap: 0 1.2rem;
        padding-bottom: 1.8rem;
    }

    /* Portfolio headline */
    .pf2-headline {
        font-size: clamp(1.8rem, 9.5vw, 12rem);
    }
    .pf2-headline .reveal-line {
        overflow: visible !important;
        padding-right: 0 !important;
    }
    .pf2-headline .reveal-line span {
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Error page: ensure nav grid readable */
    .error-nav-grid {
        grid-template-columns: 1fr 1fr;
    }

    .error-nav-item {
        padding: 1rem 0.75rem;
    }

    /* Service detail */
    .sdh-title {
        font-size: clamp(1.8rem, 9vw, 3.5rem);
    }

    /* Contact */
    .kt2-email-link {
        font-size: clamp(0.9rem, 5vw, 2.8rem);
        word-break: break-all;
    }

    /* Hype card headings */
    .z-hype-card h3 {
        font-size: 1.1rem;
    }

    /* Service name in editorial rows */
    .mn-svc-name {
        font-size: clamp(1.2rem, 6.5vw, 2.2rem);
    }
}

/* ─────────────────────────────────────────
   1440px and above — large screens
   ───────────────────────────────────────── */
@media (min-width: 1440px) {
    /* Prevent sf-wordmark from over-scaling on large screens */
    .sf-wordmark {
        font-size: 10vw;
    }

    /* Ensure hero headline doesn't go beyond design intent */
    .home-hero-h {
        font-size: clamp(4rem, 5.5vw, 6rem);
    }

    /* Contact + portfolio large headlines: cap them */
    .kt2-headline,
    .pf2-headline {
        font-size: clamp(8rem, 13vw, 14rem);
    }

    /* Ensure container never feels too narrow on 1920px+ */
    :root {
        --max-width: 1280px;
    }
}

/* ─────────────────────────────────────────
   1920px and above — ultra-wide
   ───────────────────────────────────────── */
@media (min-width: 1920px) {
    :root {
        --max-width: 1380px;
    }

    /* Wordmark: keep contained */
    .sf-wordmark {
        font-size: 9vw;
    }
}

/* ═══════════════════════════════════════════
   Staggered Text Mask Reveal
═══════════════════════════════════════════ */
.reveal-mask {
    opacity: 1;
    transform: none !important;
}

.reveal-line {
    display: block;
    overflow: hidden;
    /* Padding hogy az alsó betűszárak (j, p, g) ne vágódjanak le */
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
    /* Extra padding jobb oldalra, hogy a rotáció ne vágja le az utolsó betűt */
    padding-right: 0.1em;
}

.reveal-line span {
    display: inline-block;
    white-space: nowrap;
    transform: perspective(1200px) translate3d(0, 180%, 400px) rotateX(-100deg) rotateY(30deg) rotateZ(-20deg) scale(0.3);
    transform-origin: center bottom;
    transition: transform 1.4s cubic-bezier(0.2, 0.9, 0.2, 1.1), opacity 1.4s ease;
    opacity: 0;
}

.reveal-mask.is-visible .reveal-line span {
    transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    opacity: 1;
}

.reveal-mask .reveal-line:nth-child(1) span { transition-delay: 0ms; }
.reveal-mask .reveal-line:nth-child(2) span { transition-delay: 120ms; }
.reveal-mask .reveal-line:nth-child(3) span { transition-delay: 240ms; }
.reveal-mask .reveal-line:nth-child(4) span { transition-delay: 360ms; }

/* ─── FAQ ─── */
.z-faq {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.z-faq-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.z-faq-count {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(5, 5, 5, 0.4);
}

.z-faq-headline {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #050505;
    margin-bottom: 4rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.z-faq-list {
    border-top: 1px solid rgba(5, 5, 5, 0.12);
}

.z-faq-item {
    border-bottom: 1px solid rgba(5, 5, 5, 0.12);
    transition: background 220ms ease, border-color 220ms ease;
}

.z-faq-item:hover {
    background: #e8ff00;
    border-bottom-color: #e8ff00;
}

.z-faq-item:hover .z-faq-q {
    color: #000;
}

.z-faq-item:hover .z-faq-qtext,
.z-faq-item:hover .z-faq-num {
    color: #000;
}

.z-faq-item:hover .z-faq-toggle {
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.08);
}

.z-faq-item:hover .z-faq-toggle-bar {
    background: #000;
}

.z-faq-item.is-open {
    background: rgba(0, 0, 0, 0.025);
}

.z-faq-item.is-open:hover {
    background: #e8ff00;
}

.z-faq-q {
    width: 100%;
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #050505;
    font-family: inherit;
    text-align: left;
    transition: color 200ms ease;
}

.z-faq-num {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(5, 5, 5, 0.3);
    transition: color 200ms ease;
}

.z-faq-item.is-open .z-faq-num,
.z-faq-item:hover .z-faq-num {
    color: #050505;
}

.z-faq-qtext {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #050505;
    transition: color 200ms ease;
}

.z-faq-toggle {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(5, 5, 5, 0.2);
    display: grid;
    place-items: center;
    transition: background 220ms ease, border-color 220ms ease;
}

.z-faq-item.is-open .z-faq-toggle {
    background: #050505;
    border-color: #050505;
}

.z-faq-toggle-bar {
    position: absolute;
    width: 12px;
    height: 1.5px;
    border-radius: 2px;
    background: #050505;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease, background 220ms ease;
}

.z-faq-toggle-bar:nth-child(2) {
    transform: rotate(90deg);
}

.z-faq-item.is-open .z-faq-toggle-bar {
    background: #fff;
}

.z-faq-item.is-open .z-faq-toggle-bar:nth-child(2) {
    transform: rotate(0deg);
    opacity: 0;
}

.z-faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.z-faq-item.is-open .z-faq-a {
    max-height: 400px;
}

.z-faq-a-inner {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.z-faq-a-inner::before {
    content: "";
    display: block;
}

.z-faq-a-inner p {
    color: rgba(5, 5, 5, 0.62);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 68ch;
}

.z-faq-a-inner strong {
    color: #050505;
}

.z-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.2rem;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid #050505;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #050505;
    text-decoration: none;
    background: transparent;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
    grid-column: 2;
    justify-self: start;
}

.z-faq-link:hover {
    background: #050505;
    color: #ccff00;
    transform: translateY(-2px);
}

/* dark mode overrides */
body[data-theme="dark"] .z-faq { background: #07090d; }
body[data-theme="dark"] .z-faq-item:hover { background: #e8ff00; border-bottom-color: #e8ff00; }
body[data-theme="dark"] .z-faq-item:hover .z-faq-q,
body[data-theme="dark"] .z-faq-item:hover .z-faq-qtext,
body[data-theme="dark"] .z-faq-item:hover .z-faq-num { color: #000; }
body[data-theme="dark"] .z-faq-item:hover .z-faq-toggle { border-color: rgba(0,0,0,0.25); background: rgba(0,0,0,0.08); }
body[data-theme="dark"] .z-faq-item:hover .z-faq-toggle-bar { background: #000; }
body[data-theme="dark"] .z-faq-count { color: rgba(241, 244, 251, 0.4); }
body[data-theme="dark"] .z-faq-headline { color: #f1f4fb; }
body[data-theme="dark"] .z-faq-list { border-top-color: rgba(255, 255, 255, 0.1); }
body[data-theme="dark"] .z-faq-item { border-bottom-color: rgba(255, 255, 255, 0.1); }
body[data-theme="dark"] .z-faq-item.is-open { background: rgba(255, 255, 255, 0.03); }
body[data-theme="dark"] .z-faq-q { color: #f1f4fb; }
body[data-theme="dark"] .z-faq-num { color: rgba(241, 244, 251, 0.3); }
body[data-theme="dark"] .z-faq-item.is-open .z-faq-num { color: #e8ff00; }
body[data-theme="dark"] .z-faq-qtext { color: #f1f4fb; }
body[data-theme="dark"] .z-faq-item.is-open .z-faq-qtext { color: #e8ff00; }
body[data-theme="dark"] .z-faq-toggle { border-color: rgba(255, 255, 255, 0.18); }
body[data-theme="dark"] .z-faq-item.is-open .z-faq-toggle { background: #e8ff00; border-color: #e8ff00; }
body[data-theme="dark"] .z-faq-toggle-bar { background: #f1f4fb; }
body[data-theme="dark"] .z-faq-item.is-open .z-faq-toggle-bar { background: #000; }
body[data-theme="dark"] .z-faq-a-inner p { color: rgba(241, 244, 251, 0.65); }
body[data-theme="dark"] .z-faq-a-inner strong { color: #f1f4fb; }
body[data-theme="dark"] .z-faq-link {
    color: #f1f4fb;
    border-color: rgba(255,255,255,0.25);
    background: transparent;
}
body[data-theme="dark"] .z-faq-link:hover {
    background: #e8ff00;
    color: #000;
    border-color: #e8ff00;
}

@media (max-width: 640px) {
    .z-faq-q {
        grid-template-columns: 2.2rem 1fr auto;
        gap: 0.85rem;
        padding: 1.4rem 0;
    }

    .z-faq-a-inner {
        grid-template-columns: 2.2rem 1fr;
        gap: 0.85rem;
    }

    .z-faq-qtext {
        font-size: 1rem;
    }
    .home-stat {
        align-items: center;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════
   MOBILE REDESIGN V2
   Hamburger drawer · device reel · layout
   ═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. FONT — Syne mindenhol a kulcselemeken
   ───────────────────────────────────────── */
h1, h2, h3,
.svc-landing-headline,
.z-faq-headline,
.home-hero-h,
.pf2-headline,
.kt2-headline,
.sdh-title,
.svc-tl-name,
.svc-card-name,
.z-team-header h2,
.testi-header h2 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 600;
}

/* ─────────────────────────────────────────
   2. HAMBURGER DRAWER NAV (≤860px)
   ───────────────────────────────────────── */
@media (max-width: 860px) {

    /* Mindig legyen látható a hamburger */
    .hamburger { display: flex; }

    /* Egyetlen soros navbar: logo | cím | gombok */
    .home-nav-grid {
        grid-template-columns: auto minmax(0,1fr) auto !important;
        grid-template-areas: "brand nav actions" !important;
        grid-template-rows: auto !important;
        min-height: 60px !important;
        padding: 0.5rem 0 !important;
        gap: 0 !important;
        align-items: center;
    }

    /* Az oldal neve középen */
    .home-nav-grid .mobile-page-title {
        display: flex !important;
        grid-area: nav;
        align-items: center;
        justify-content: center;
        font-family: "Space Grotesk", sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #0a0a0a;
        white-space: nowrap;
        pointer-events: none;
    }
    body[data-theme="dark"] .home-nav-grid .mobile-page-title { color: #f4f2ed; }

    /* Header + hamburger a drawer FELETT marad (drawer z-index: 9998) */
    .home-actions {
        position: relative;
        z-index: 50;
    }
    body.menu-open .site-header {
        z-index: 9999 !important;
    }

    /* Navigációs drawer — teljes képernyő, jobbról csúszik be */
    .home-nav-grid .site-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 38 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        background: #060606 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 2rem 2rem 4rem !important;
        transform: translateX(100%) !important;
        transition: transform 0.42s cubic-bezier(0.65,0,0.35,1) !important;
        pointer-events: none !important;
        overflow: hidden !important;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        scrollbar-width: auto !important;
    }

    body.menu-open .home-nav-grid .site-nav {
        transform: translateX(0) !important;
        pointer-events: auto !important;
    }

    /* Drawer menüpontok — kisebb méret hogy "Szolgáltatások" is kifér */
    .home-nav-grid .site-nav a {
        font-family: "Space Grotesk", sans-serif !important;
        font-size: min(1.8rem, calc((100vw - 5rem) / 13)) !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
        text-transform: uppercase !important;
        color: rgba(244,242,237,0.3) !important;
        padding: 0.5rem 0.5rem !important;
        width: 100% !important;
        text-align: center !important;
        border: none !important;
        border-radius: 0 !important;
        background: none !important;
        transition: color 180ms ease !important;
        white-space: nowrap !important;
        min-height: auto !important;
        display: block !important;
    }
    .home-nav-grid .site-nav a:hover  { color: rgba(244,242,237,0.75) !important; background: none !important; }
    .home-nav-grid .site-nav a.is-active { color: #ccff00 !important; background: none !important; }
    .home-nav-grid .site-nav a::after { display: none !important; }

    /* CTA gomb eltüntetése mobilon */
    .home-nav-grid .nav-cta { display: none !important; }

    /* Hamburger → X animáció (bars sötét maradnak — header fehér háttéren látszanak) */
    body.menu-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    body.menu-open .hamburger span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
    body.menu-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    body[data-theme="dark"] .hamburger span { background: #f4f2ed; }

    /* Actions sor */
    .home-actions { gap: 0.5rem; align-items: center; }

    /* Logo nagyobb */
    .brand-logo { height: clamp(52px, 10vw, 68px); }
}

/* ─────────────────────────────────────────
   3. HERO GOMBOK — ne legyenek teljes szélességűek
   ───────────────────────────────────────── */
@media (max-width: 600px) {
    .home-hero-btns {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.6rem !important;
    }
    .home-hero-cta {
        flex: 0 0 auto !important;
        width: auto !important;
        font-size: 0.82rem;
        padding: 0.75rem 1.1rem;
    }
}

/* ─────────────────────────────────────────
   4. DEVICE REEL — 3 telefon JS-layouttal
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    /* Teljes szélességű reel, hogy a JS-elrendezés működjön */
    .device-trio.dk-reel {
        position: relative !important;
        /* Felülírjuk a flex/scroll layoutot */
        display: block !important;
        flex-direction: unset !important;
        scroll-snap-type: none !important;
        justify-content: unset !important;
        scrollbar-width: auto !important;
        padding: 0 !important;
        gap: unset !important;
    }

    /* Ne írjuk felül a JS transform/opacity értékeit */
    .device-trio.dk-reel .dk-reel-item {
        flex: unset !important;
        scroll-snap-align: unset !important;
        /* transform és opacity: JS állítja */
    }

    /* Mutassuk a dot navigációt */
    .dk-reel-ui { display: flex !important; }

    /* Telefonméret mobilon */
    .device-trio.dk-reel .tk-raw-phone { width: 170px !important; height: 348px !important; }
}

/* ─────────────────────────────────────────
   5. SZOLGÁLTATÁS KÁRTYÁK — kisebb mobilon
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    .svc-card-btn {
        padding: 1.15rem 1rem 0.95rem !important;
        gap: 0.5rem !important;
    }
    .svc-card-name { font-size: 1.05rem !important; }
    .svc-card-desc { font-size: 0.82rem !important; line-height: 1.5 !important; }
    .svc-card-arrow { font-size: 1.05rem !important; margin-top: 0.15rem !important; }
}

/* ─────────────────────────────────────────
   6. VÉLEMÉNYEK — fér ki a képernyőn
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    .testi-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 0.75rem !important;
        padding-bottom: 1.5rem !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100% !important;
    }
    .testi-grid::-webkit-scrollbar { display: none !important; }
    .testi-card {
        flex: 0 0 90% !important;
        scroll-snap-align: center !important;
        padding: 1.2rem 1.1rem !important;
        min-width: 0 !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .testi-quote {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }
    .testi-mark { font-size: 2.5rem !important; line-height: 1 !important; }
    .testi-footer { margin-top: 1rem !important; }
}

/* ─────────────────────────────────────────
   7. PORTFOLIO — arányos szöveg + thumbnail
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    .pf2-num { font-size: clamp(1.3rem, 4vw, 1.8rem) !important; }
    .pf2-name { font-size: clamp(1.2rem, 4.5vw, 1.7rem) !important; }
    .pf2-browser .browser-viewport { height: 260px !important; }
    .pf2-entry { padding: clamp(1.2rem,3vw,2rem) !important; }
}
@media (max-width: 640px) {
    .pf2-num { font-size: clamp(1.1rem, 4vw, 1.4rem) !important; }
    .pf2-name { font-size: clamp(1rem, 4.5vw, 1.3rem) !important; }
    .pf2-browser .browser-viewport { height: 210px !important; }
}

/* ─────────────────────────────────────────
   8. SZOLGÁLTATÁS RÉSZLETEK — title overflow javítás
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    .sdh-title {
        font-size: clamp(1.5rem, 5.5vw, 2.4rem) !important;
        word-break: break-word !important;
    }
    .sdh-title .reveal-line span { white-space: normal !important; }
    .svc-tl-name {
        font-size: clamp(1.3rem, 5vw, 2rem) !important;
        word-break: break-word !important;
    }
    .svc-tl-content { padding-left: 0 !important; }
    .svc-landing-headline .reveal-line span { white-space: normal !important; }
}

/* ─────────────────────────────────────────
   9. EGYÉB MOBIL KIEGÉSZÍTÉSEK
   ───────────────────────────────────────── */

/* Sticky CTA eltűnik menu-open közben */
body.menu-open .sticky-mobile-cta { display: none !important; }

/* Theme toggle szöveg méret */
@media (max-width: 860px) {
    .theme-toggle {
        font-size: 0.72rem;
        padding: 0.45rem 0.75rem;
    }
}

/* ─────────────────────────────────────────
   10. MOBILE DRAWER — body gyökerén (z-index root contextben)
   JS appendeli a <body>-ra → nincs stacking context gond
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    .site-nav.mobile-drawer-active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 9998 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        background: #060606 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 2rem !important;
        transform: translateX(100%) !important;
        transition: transform 0.42s cubic-bezier(0.65,0,0.35,1) !important;
        pointer-events: none !important;
        overflow-y: auto !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
    }

    body.menu-open .site-nav.mobile-drawer-active {
        transform: translateX(0) !important;
        pointer-events: auto !important;
    }

    .site-nav.mobile-drawer-active a {
        font-family: "Syne", sans-serif !important;
        font-size: clamp(0.95rem, 6vw, 1.8rem) !important;
        font-weight: 800 !important;
        letter-spacing: -0.01em !important;
        text-transform: uppercase !important;
        color: rgba(244,242,237,0.32) !important;
        padding: 0.4rem 0.5rem !important;
        width: 100% !important;
        text-align: center !important;
        border: none !important;
        border-radius: 0 !important;
        background: none !important;
        transition: color 180ms ease !important;
        white-space: nowrap !important;
        word-break: normal !important;
        min-height: auto !important;
        display: block !important;
    }
    .site-nav.mobile-drawer-active a:hover  { color: rgba(244,242,237,0.75) !important; }
    .site-nav.mobile-drawer-active a.is-active { color: #ccff00 !important; }
    .site-nav.mobile-drawer-active a::after { display: none !important; }
}

/* ── Drawer egységes stílus minden oldalon (home-page override-ok felülírása) ── */
body .site-nav.mobile-drawer-active {
    font-family: "Syne", sans-serif !important;
    background: #060606 !important;
}
body .site-nav.mobile-drawer-active a {
    font-family: "Syne", sans-serif !important;
    font-size: clamp(0.95rem, 6vw, 1.8rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase !important;
    color: rgba(244,242,237,0.32) !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
    padding: 0.4rem 0.5rem !important;
}
body .site-nav.mobile-drawer-active a:hover  { color: rgba(244,242,237,0.75) !important; }
body .site-nav.mobile-drawer-active a.is-active { color: #ccff00 !important; }
body .site-nav.mobile-drawer-active a::after { display: none !important; }

/* ─────────────────────────────────────────
   11. PORTFOLIO — helyes grid mobilon
   (az alap .pf2-entry rule késõbb volt definiálva, ezért felülírta a 980px queryt)
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    .pf2-entry {
        position: relative !important;
        top: auto !important;
        grid-template-columns: 1fr !important;
        grid-template-areas: "head" "browser" "foot" !important;
        gap: 1.2rem !important;
        margin-bottom: 2rem !important;
        overflow: hidden !important;
    }
    .pf2-entry-foot {
        gap: 1rem !important;
    }
    .pf2-foot-metrics {
        gap: 1.5rem !important;
    }
}

/* ─────────────────────────────────────────
   12. FAQ HEADLINE — nem fér ki mobilon
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    .z-faq-headline {
        font-size: clamp(1.3rem, 6.5vw, 2.2rem) !important;
        letter-spacing: -0.03em !important;
        margin-bottom: 2rem !important;
        hyphens: none !important;
        line-height: 1.05 !important;
    }
    /* A reveal-line span fehér-space elárasztásának megakadályozása */
    .z-faq-headline .reveal-line span {
        white-space: normal !important;
        word-break: break-word !important;
    }
}

/* ═══════════════════════════════════════════
   PREMIUM MICRO-INTERACTIONS
═══════════════════════════════════════════ */

/* 1. Kártya Reflektorfény (Spotlight Glow) */
.spotlight-card {
    position: relative;
}
.spotlight-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(204, 255, 0, 0.08),
        transparent 40%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: 10;
}
body[data-theme="dark"] .spotlight-card::after {
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(204, 255, 0, 0.12),
        transparent 40%
    );
}
.spotlight-card:hover::after {
    opacity: 1;
}

/* 2. Egyedi Aura Kurzor */
.gz-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border 0.25s ease, margin 0.25s ease;
    will-change: transform;
}
.gz-cursor.is-hovering {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    background: rgba(204, 255, 0, 0.08);
    border: 1.5px solid rgba(204, 255, 0, 0.45);
}

/* ─────────────────────────────────────────
   13. LOGO CSERE — fehér logo alapból, sima logo éjjel módban
   ───────────────────────────────────────── */
.brand-logo-dark { display: none; }

body[data-theme="dark"] .brand-logo-default { display: none; }
body[data-theme="dark"] .brand-logo-dark {
    display: block;
    filter: none;
}


/* ─────────────────────────────────────────
   14. PORTFOLIO HEADLINE — ne vágódjon le mobilon
   ───────────────────────────────────────── */
@media (max-width: 860px) {
    .pf2-headline {
        font-size: clamp(1.8rem, 9.5vw, 12rem) !important;
        overflow: visible !important;
    }
    .pf2-headline .reveal-line {
        overflow: visible !important;
        padding-right: 0 !important;
    }
    .pf2-headline .reveal-line span {
        white-space: normal !important;
        word-break: break-word !important;
    }
}


/* ═══════════════════════════════════════════
   PORTFOLIO V5 — SUPREME STICKY SHOWCASE
═══════════════════════════════════════════ */

.pf5-hero {
    padding: 8rem 0 4rem;
    background: transparent;
    color: #050505;
    position: relative;
    overflow: hidden;
}

.pf5-hero::before {
    content: "";
    position: absolute;
    top: -50%; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(204, 255, 0, 0.12), transparent 70%);
    pointer-events: none;
}

.pf5-hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.5rem, 11vw, 11rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.88;
    margin: 0;
    text-transform: uppercase;
    color: #050505;
}

.pf5-hero-title span.outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(5,5,5,0.25);
}

.pf5-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 5rem;
    border-top: 1px solid rgba(5,5,5,0.1);
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pf5-hero-desc {
    color: rgba(5,5,5,0.6);
    max-width: 45ch;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.pf5-hero-scroll {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #ccff00;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pf5-hero-scroll svg {
    width: 16px;
    height: 16px;
    animation: scroll-bounce 2s infinite;
}

.pf5-stack-section {
    background: transparent;
    padding: 2rem 0 6rem;
    position: relative;
}

.pf5-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.pf5-card {
    position: relative;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(5,5,5,0.08);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.pf5-glow {
    position: absolute;
    top: 50%;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--theme, #ccff00) 0%, transparent 70%);
    opacity: 0.15;
    transform: translate(30%, -50%) translateZ(0);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.6s ease;
    will-change: transform, opacity;
}

.pf5-card:hover {
    transform: translateY(-4px);
    border-color: rgba(5,5,5,0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.pf5-card:hover .pf5-glow {
    opacity: 0.25;
    transform: translate(20%, -50%) scale(1.1);
}

.pf5-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    height: 100%;
}

.pf5-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    width: 100%;
}

.pf5-col-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pf5-card--full {
    grid-column: 1 / -1;
}

@media (min-width: 981px) {
    .pf5-card--full .pf5-inner {
        flex-direction: row;
        align-items: center;
    }
    .pf5-card--full .pf5-col-left,
    .pf5-card--full .pf5-col-right {
        width: 50%;
    }
}

.pf5-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pf5-num {
    font-family: "Space Mono", monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme, #ccff00);
}

.pf5-cat {
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #050505;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(5,5,5,0.2);
    border-radius: 99px;
    background: rgba(5,5,5,0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pf5-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #050505;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
}

@media (min-width: 981px) {
    .pf5-card--full .pf5-title {
        font-size: clamp(3rem, 5.5vw, 5.5rem);
    }
}

.pf5-title span.outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(5,5,5,0.3);
    transition: -webkit-text-stroke-color 0.3s ease;
}

.pf5-card:hover .pf5-title span.outline {
    -webkit-text-stroke-color: var(--theme, #ccff00);
}

.pf5-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 3rem;
}

.pf5-tags span {
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(5,5,5,0.7);
    background: rgba(5,5,5,0.06);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.pf5-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--theme, #ccff00);
    color: #000;
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2rem;
    margin-top: auto;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pf5-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    filter: brightness(1.1);
}

.pf5-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    background: rgba(240,240,240,0.6);
    border: 1px solid rgba(5,5,5,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pf5-card:hover .pf5-visual {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-8px);
    border-color: rgba(5,5,5,0.2);
}

.pf5-visual img, .pf5-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.pf5-card:hover .pf5-visual img, 
.pf5-card:hover .pf5-visual video {
    transform: scale(1.05);
}

.pf5-visual--full {
    padding: 0;
}
.pf5-visual--full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.pf5-visual--phone {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    aspect-ratio: auto;
    padding: 0;
    overflow: visible !important;
}

.pf5-visual--phone .tk-raw-phone {
    width: 240px;
    height: 491px;
    margin: 0 auto;
    transform: perspective(1200px) rotateY(-12deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border-radius: 44px;
}

.pf5-card:hover .pf5-visual--phone .tk-raw-phone {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-10px);
}

/* Dark mode portfolio overrides */
body[data-theme="dark"] .pf5-hero {
    color: #fff;
}
body[data-theme="dark"] .pf5-hero-title {
    color: #fff;
}
body[data-theme="dark"] .pf5-hero-title span.outline {
    -webkit-text-stroke: 2px rgba(255,255,255,0.25);
}
body[data-theme="dark"] .pf5-hero-bottom {
    border-top-color: rgba(255,255,255,0.1);
}
body[data-theme="dark"] .pf5-hero-desc {
    color: rgba(255,255,255,0.6);
}
body[data-theme="dark"] .pf5-card {
    background: #0f1115;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
body[data-theme="dark"] .pf5-card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
body[data-theme="dark"] .pf5-cat {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}
body[data-theme="dark"] .pf5-title {
    color: #fff;
}
body[data-theme="dark"] .pf5-title span.outline {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
}
body[data-theme="dark"] .pf5-tags span {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
}
body[data-theme="dark"] .pf5-btn:hover {
    box-shadow: 0 12px 30px rgba(255,255,255,0.1);
}
body[data-theme="dark"] .pf5-visual {
    background: rgba(20,20,20,0.6);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
body[data-theme="dark"] .pf5-card:hover .pf5-visual {
    border-color: rgba(255,255,255,0.2);
}

@media (max-width: 1100px) {
    .pf5-inner {
    }
    .pf5-card--full .pf5-title {
        font-size: clamp(2.8rem, 5vw, 4.5rem);
    }
}

@media (max-width: 860px) {
    .pf5-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pf5-card--full {
        grid-column: auto;
    }
    .pf5-card--full .pf5-inner {
        flex-direction: column;
        text-align: center;
    }
    .pf5-card--full .pf5-col-left,
    .pf5-card--full .pf5-col-right {
        width: 100%;
    }
    .pf5-stack-section {
        padding: 1rem 0 4rem;
    }
    .pf5-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
    .pf5-hero {
        padding: 7rem 0 3rem;
    }
    .pf5-hero-title {
        font-size: clamp(3rem, 14vw, 7rem);
    }
    .pf5-hero-bottom {
        margin-top: 3rem;
    }
    .pf5-inner {
        gap: 2.5rem;
        text-align: center;
    }
    .pf5-meta, .pf5-tags {
        justify-content: center;
    }
    .pf5-col-left {
        align-items: center;
    }
    .pf5-visual {
        transform: none !important;
        max-width: 90%;
        aspect-ratio: 16 / 9;
        padding: 2rem;
    }
    .pf5-card:hover .pf5-visual {
        transform: translateY(-5px) !important;
    }
    .pf5-visual--phone .tk-raw-phone {
        transform: none !important;
        width: 190px;
        height: 389px;
    }
    .pf5-card:hover .pf5-visual--phone .tk-raw-phone {
        transform: translateY(-5px) !important;
    }
    .pf5-glow {
        top: 70%;
        right: 50%;
        width: 80vw;
        height: 80vw;
    }
    .pf5-card:hover .pf5-glow {
        transform: translate(50%, -50%) scale(1.05);
    }
}

@media (max-width: 580px) {
    .pf5-card {
        height: auto;
        padding: 2.5rem 1.25rem;
        border-radius: 20px;
    }
    .pf5-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }
    .pf5-visual {
        max-width: 100%;
    }
    .pf5-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ─── Mobil scroll-lag fix ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .cinematic-section { perspective: none; }
    .cinematic-section > .container {
        transform: translateY(calc((1 - var(--c-progress)) * 30px));
        transform-style: flat;
        will-change: auto;
    }
    .cinematic-section .feature-row,
    .cinematic-section .detail-card,
    .cinematic-section .intro-card,
    .cinematic-section .service-link-card,
    .cinematic-section .z-service-row,
    .cinematic-section .z-hype-card {
        transform: translateY(calc((1 - var(--c-progress)) * 20px));
        transform-style: flat;
    }
    .tk-phone-screen { -webkit-mask-image: none; }
    .tk-custom-ui button {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10,10,10,0.85);
    }
    .device-item { will-change: auto; }
}

/* ─── Brand: AI powered [LOGO] approved. ───────────────────────────────── */

/* Logo méret */
.brand-logo {
    height: clamp(56px, 8.5vw, 88px);
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter 0.35s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(204,255,0,0.32)) drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}
body[data-theme="dark"] .brand-logo {
    filter: drop-shadow(0 0 14px rgba(204,255,0,0.65)) drop-shadow(0 0 30px rgba(204,255,0,0.28)) !important;
}
.brand:hover .brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(204,255,0,0.72)) drop-shadow(0 2px 6px rgba(0,0,0,0.2)) !important;
}
body[data-theme="dark"] .brand:hover .brand-logo {
    filter: drop-shadow(0 0 26px rgba(204,255,0,0.95)) drop-shadow(0 0 50px rgba(204,255,0,0.48)) !important;
}

/* Mobil: eredeti logo méret */
@media (max-width: 860px) {
    .brand-logo { height: clamp(52px, 10vw, 68px); }
}

/* Brand container */
.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.brand:hover { transform: translateY(-2px); }

/* brand-pre / brand-post — mobilon rejtve */
.brand-pre,
.brand-post {
    display: none;
    font-family: "Space Mono", monospace;
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    color: rgba(5,5,5,0.50);
    transition: color 0.25s ease;
}

/* Desktopon megjelenik */
@media (min-width: 861px) {
    .brand-pre,
    .brand-post { display: block; }
}

/* Footerben mindig látható */
.sf-brand .brand-pre,
.sf-brand .brand-post {
    display: block !important;
    color: rgba(244,242,237,0.45) !important;
}

body[data-theme="dark"] .brand-pre,
body[data-theme="dark"] .brand-post {
    color: rgba(244,242,237,0.45);
}

/* // elválasztók */
.brand-pre::after {
    content: " //";
    color: #8fc400;
    font-weight: 300;
    letter-spacing: -0.02em;
}
.brand-post::before {
    content: "// ";
    color: #8fc400;
    font-weight: 300;
    letter-spacing: -0.02em;
}
body[data-theme="dark"] .brand-pre::after,
body[data-theme="dark"] .brand-post::before,
.sf-brand .brand-pre::after,
.sf-brand .brand-post::before {
    color: #ccff00;
    text-shadow: 0 0 8px rgba(204,255,0,0.7);
    animation: slash-glow 2.8s ease-in-out infinite;
}
@keyframes slash-glow {
    0%,100% { text-shadow: 0 0 6px rgba(204,255,0,0.55); }
    50%      { text-shadow: 0 0 14px rgba(204,255,0,0.95), 0 0 28px rgba(204,255,0,0.5); }
}

/* Dark mode: brand-logo csere */
.brand-logo-dark { display: none; }
body[data-theme="dark"] .brand-logo-default { display: none; }
body[data-theme="dark"] .brand-logo-dark { display: block; }

/* ─── Agency Table Portfolio ────────────────────────────────────────────── */

.pf-table-section { padding: 0 0 6rem; }

.pf-table-wrap {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0 3rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
}

.pf-table-list {
    border-top: 1px solid rgba(5,5,5,0.12);
}
body[data-theme="dark"] .pf-table-list {
    border-top-color: rgba(244,242,237,0.12);
}

.pf-table-header {
    display: grid;
    grid-template-columns: 3.5rem 1fr 130px 64px 2rem;
    padding: 0.9rem 0;
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(5,5,5,0.28);
    border-bottom: 1px solid rgba(5,5,5,0.06);
}
body[data-theme="dark"] .pf-table-header {
    color: rgba(244,242,237,0.25);
    border-bottom-color: rgba(244,242,237,0.06);
}

.pf-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 130px 64px 2rem;
    align-items: center;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(5,5,5,0.07);
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease, padding-left 0.35s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}
body[data-theme="dark"] .pf-row {
    border-bottom-color: rgba(244,242,237,0.07);
}
.pf-row:hover, .pf-row.is-active {
    background: rgba(5,5,5,0.025);
    padding-left: 1.2rem;
}
body[data-theme="dark"] .pf-row:hover,
body[data-theme="dark"] .pf-row.is-active {
    background: rgba(244,242,237,0.04);
}
.pf-row::before {
    content: "";
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 2px;
    background: #ccff00;
    border-radius: 1px;
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
    transform-origin: center;
}
.pf-row:hover::before, .pf-row.is-active::before { transform: scaleY(1); }

.pf-row-num {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(5,5,5,0.25);
    transition: color 0.25s ease;
}
body[data-theme="dark"] .pf-row-num { color: rgba(244,242,237,0.22); }
.pf-row:hover .pf-row-num,
.pf-row.is-active .pf-row-num { color: #8fc400; }
body[data-theme="dark"] .pf-row:hover .pf-row-num,
body[data-theme="dark"] .pf-row.is-active .pf-row-num { color: #ccff00; }

.pf-row-info { display: flex; flex-direction: column; gap: 0.3rem; }

.pf-row-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 2.4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #050505;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
body[data-theme="dark"] .pf-row-name { color: #f4f2ed; }
.pf-row:hover .pf-row-name,
.pf-row.is-active .pf-row-name { transform: translateX(6px); }

.pf-row-sub {
    font-family: "Space Mono", monospace;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    color: rgba(5,5,5,0.35);
}
body[data-theme="dark"] .pf-row-sub { color: rgba(244,242,237,0.30); }

.pf-row-type {
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(5,5,5,0.42);
}
body[data-theme="dark"] .pf-row-type { color: rgba(244,242,237,0.38); }

.pf-row-year {
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    color: rgba(5,5,5,0.28);
}
body[data-theme="dark"] .pf-row-year { color: rgba(244,242,237,0.25); }

.pf-row-arrow {
    font-size: 1.3rem;
    color: rgba(5,5,5,0.15);
    justify-self: end;
    transition: color 0.2s ease, transform 0.25s ease;
}
body[data-theme="dark"] .pf-row-arrow { color: rgba(244,242,237,0.15); }
.pf-row:hover .pf-row-arrow,
.pf-row.is-active .pf-row-arrow { color: #8fc400; transform: translate(3px,-3px); }
body[data-theme="dark"] .pf-row:hover .pf-row-arrow,
body[data-theme="dark"] .pf-row.is-active .pf-row-arrow { color: #ccff00; }

.pf-preview-col {
    position: sticky;
    top: 100px;
    height: 520px;
}
.pf-preview-panel {
    width: 100%; height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #111;
}
.pf-preview-item {
    position: absolute; inset: 0;
    background: var(--pf-bg, #111);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(1.04) translateY(12px);
    transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
                transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.pf-preview-item.is-active { opacity: 1; transform: scale(1) translateY(0); }
.pf-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
.pf-preview-item[data-pf="3"] img,
.pf-preview-item[data-pf="4"] img,
.pf-preview-item[data-pf="5"] img {
    object-fit: contain;
    padding: 2.5rem;
}
.pf-preview-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 3rem; font-weight: 800;
    color: rgba(64,245,224,0.55);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9; text-align: center;
}

@media (max-width: 860px) {
    .pf-table-wrap { grid-template-columns: 1fr; padding: 0 1rem; }
    .pf-preview-col { display: none; }
    .pf-table-header, .pf-row { grid-template-columns: 2.8rem 1fr 1.5rem; }
    .pf-th-hide, .pf-row-type, .pf-row-year { display: none; }
    .pf-row-name { font-size: clamp(1.4rem, 6vw, 2rem); }
}

/* ═══ CURSOR-FOLLOW PORTFOLIO ══════════════════════════════════════════════ */

.pfx-section {
    padding: 0 0 8rem;
    position: relative;
}

.pfx-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    border-top: 1px solid rgba(5,5,5,0.10);
}

body[data-theme="dark"] .pfx-list {
    border-top-color: rgba(244,242,237,0.10);
}

/* Amikor bármelyik item hover-ben van, a többiek elhalványulnak */
.pfx-list:has(.pfx-item:hover) .pfx-item:not(:hover) {
    opacity: 0.18;
}

.pfx-item {
    display: grid;
    grid-template-columns: 5rem 1fr auto;
    align-items: center;
    gap: 0 1.5rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid rgba(5,5,5,0.08);
    text-decoration: none;
    color: inherit;
    cursor: none;
    transition: opacity 0.35s ease;
    position: relative;
}

body[data-theme="dark"] .pfx-item {
    border-bottom-color: rgba(244,242,237,0.08);
}

.pfx-num {
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(5,5,5,0.22);
    transition: color 0.3s ease;
    letter-spacing: 0.1em;
}

body[data-theme="dark"] .pfx-num {
    color: rgba(244,242,237,0.20);
}

.pfx-item:hover .pfx-num {
    color: var(--pfx-a, #ccff00);
}

.pfx-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.8rem, 7vw, 8.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.88;
    text-transform: uppercase;
    color: #050505;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), color 0.3s ease;
    display: block;
}

body[data-theme="dark"] .pfx-title {
    color: #f4f2ed;
}

.pfx-item:hover .pfx-title {
    transform: translateX(18px);
    color: var(--pfx-a, #050505);
}

body[data-theme="dark"] .pfx-item:hover .pfx-title {
    color: var(--pfx-a, #f4f2ed);
}

.pfx-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pfx-item:hover .pfx-meta {
    opacity: 1;
    transform: translateX(0);
}

.pfx-cat {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(5,5,5,0.45);
}

body[data-theme="dark"] .pfx-cat {
    color: rgba(244,242,237,0.40);
}

.pfx-arrow {
    font-size: 2rem;
    color: var(--pfx-a, #ccff00);
    line-height: 1;
}

/* ── Floating cursor image ── */
.pfx-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0;
    width: 380px;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.75) rotate(-4deg);
    transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1),
                transform 0.4s cubic-bezier(0.16,1,0.3,1);
    will-change: transform, left, top;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.pfx-cursor.is-visible {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1) rotate(0deg);
}

.pfx-cursor-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.pfx-frame {
    position: absolute;
    inset: 0;
    background: var(--pfx-bg, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pfx-frame.is-active {
    opacity: 1;
}

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

.pfx-frame-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(64,245,224,0.6);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-align: center;
}

/* ── Mobile: normál stack, nincs cursor-follow ── */
@media (max-width: 860px) {
    .pfx-cursor { display: none; }
    .pfx-item {
        grid-template-columns: 3rem 1fr;
        cursor: pointer;
    }
    .pfx-meta { display: none; }
    .pfx-title { font-size: clamp(2rem, 9vw, 3.5rem); }
    .pfx-list:has(.pfx-item:hover) .pfx-item:not(:hover) { opacity: 1; }
}
/* ══════════════════════════════════════════════════════════════════════════ */

/* ═══ IMAGE GRID PORTFOLIO (4brands stílus) ════════════════════════════════ */

.pfg-section {
    width: 100%;
    overflow: hidden;
    padding: 0 0 6rem;
}

.pfg-grid {
    column-count: 4;
    column-gap: 0;
    column-fill: balance;
    width: 100%;
    background: #0a0a0a;
    position: relative;
}

.pfg-item {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #0d0d0d;
    cursor: pointer;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 0;
}

/* Teljes szélességű item (webhely screenshot stb.) */
.pfg-item--full {
    column-span: all;
}

/* Typewriter statement card */
.pfg-item--type {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    background: #050505;
    overflow: hidden;
    position: relative;
}

.pfg-item--type::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(204, 255, 0, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.pfg-type-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

/* Typewriter alsó szöveg */
.pfg-type-bottom {
    width: 100%;
    text-align: center;
}

.pfg-type-bottom .pfg-type-label,
.pfg-type-bottom .pfg-type-static,
.pfg-type-bottom .pfg-type-dynamic {
    text-align: center;
}

/* Logo blokk a kártya tetején — vertikális, középre igazítva */
.pfg-type-brand.brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
}

.pfg-type-brand .brand-logo {
    height: auto;
    width: 60%;
    max-width: 140px;
}

.pfg-type-brand .brand-pre,
.pfg-type-brand .brand-post {
    font-family: "Space Mono", monospace;
    font-size: clamp(0.58rem, 0.7vw, 0.75rem);
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.pfg-type-label {
    font-family: "Space Mono", monospace;
    font-size: clamp(0.6rem, 0.85vw, 0.9rem);
    letter-spacing: 0.18em;
    color: rgba(204, 255, 0, 0.7);
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.pfg-type-static {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 0.05em;
    line-height: 1.05;
}

.pfg-item--fill-col img {
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.pfg-type-dynamic {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0;
    line-height: 1.05;
    min-height: 1.1em;
}

.pfg-type-cursor {
    display: inline-block;
    color: #ccff00;
    animation: type-cursor 0.65s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes type-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Képek természetes méretben — nincs zoom */
.pfg-item img {
    width: 100%;
    height: auto;
    display: block;
}

.pfg-item video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Logo képeknél extra padding */
.pfg-item img.pfg-logo {
    padding: 15%;
}

/* Overlay */
.pfg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.20) 45%,
        transparent 68%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem 1.8rem 2rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16,1,0.3,1);
}

.pfg-item:hover .pfg-overlay {
    opacity: 1;
    transform: translateY(0);
}

.pfg-num {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.4rem;
    display: block;
}

.pfg-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.pfg-cat {
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    display: block;
}

/* Mobile */
@media (max-width: 860px) {
    .pfg-grid { column-count: 2; }
    .pfg-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%); }
}

@media (max-width: 480px) {
    .pfg-grid { column-count: 1; }
    .pfg-item--full { column-span: all; }
}
/* ══════════════════════════════════════════════════════════════════════════ */

/* ── Portfolio hover popup gallery ─────────────────────────────────────── */
.pfg-hover-popup {
    position: fixed;
    pointer-events: none;
    z-index: 9900;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 8px;
    opacity: 0;
    transform: scale(0.94) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-width: 640px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.pfg-hover-popup.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.pfg-hover-popup img {
    width: 200px;
    height: 148px;
    object-fit: cover;
    border-radius: 9px;
    display: block;
}

/* 2 képnél szűkebb grid */
.pfg-hover-popup.cols-2 {
    grid-template-columns: repeat(2, 220px);
    max-width: 472px;
}
.pfg-hover-popup.cols-2 img {
    width: 220px;
    height: 164px;
}

/* Popup badge az item-en */
.pfg-popup-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 10px;
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.pfg-item:hover .pfg-popup-badge {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 860px) {
    .pfg-hover-popup { display: none; }
}

/* ═══════════════════════════════════════════
   SERVICE CONTACT PAGES — split layout
═══════════════════════════════════════════ */
/* Viewport lock — nem lehet scrollozni */
body[data-page*="kapcsolat"]:not([data-page="kapcsolat"]) {
    overflow: hidden;
    height: 100vh;
}

.svc-contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100vh - 80px); /* header magasságát levonjuk */
    overflow: hidden;
}

.svc-contact-form-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(1rem, 2.5vw, 2rem) clamp(1.2rem, 3.5vw, 3rem);
    background: #ffffff;
    overflow-y: auto;
    gap: 0.8rem;
}

body[data-theme="dark"] .svc-contact-form-side {
    background: #0f0f0f;
}

body[data-theme="dark"] .svc-contact-title {
    color: #f4f2ed;
}

body[data-theme="dark"] .svc-contact-label {
    color: rgba(244,242,237,0.45);
}

body[data-theme="dark"] .gz-field label {
    color: rgba(244,242,237,0.45);
}

body[data-theme="dark"] .gz-field input,
body[data-theme="dark"] .gz-field textarea {
    color: #f4f2ed;
    border-color: rgba(255,255,255,0.12);
}

.svc-contact-label {
    font-family: "Space Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted, #a7a199);
    margin-bottom: 0.6rem;
}

.svc-contact-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}

.gz-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.gz-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gz-field label {
    font-family: "Space Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted, #a7a199);
}

.gz-field input,
.gz-field textarea {
    background: #f7f7f5;
    border: 1.5px solid #d8d6d0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    color: #0a0a0a;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: none;
    width: 100%;
    box-sizing: border-box;
}

body[data-theme="dark"] .gz-field input,
body[data-theme="dark"] .gz-field textarea {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.14);
    color: #f4f2ed;
}

.gz-field input:focus,
.gz-field textarea:focus {
    border-color: #ccff00;
}

.gz-submit-btn {
    align-self: flex-start;
    background: #0a0a0a;
    color: #f4f2ed;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.gz-submit-btn:hover { background: #222; transform: translateY(-2px); }

body[data-theme="dark"] .gz-field input,
body[data-theme="dark"] .gz-field textarea {
    color: #f4f2ed;
    border-color: rgba(255,255,255,0.15);
}

body[data-theme="dark"] .gz-submit-btn {
    background: #ccff00;
    color: #0a0a0a;
}

/* Compact composer a service contact oldalakon */
.page-email-composer.calc-email-composer {
    margin-top: 0;
    margin-bottom: 0;
    animation: none;
}

.page-email-composer .cec-meta {
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
}

.page-email-composer .cec-meta div {
    margin-bottom: 0.2rem;
}

.page-email-composer .cec-email-canvas {
    padding: 0.8rem 1rem;
}

.page-email-composer .cec-html-top {
    padding: 0.8rem 1rem;
}

.page-email-composer .cec-html-content {
    padding: 0.8rem 1rem 0;
}

.page-email-composer .cec-html-sender {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
}

.page-email-composer .cec-html-captcha {
    padding: 0.6rem 1rem 0.8rem;
}

.page-email-composer .cec-footer {
    padding: 0.7rem 1rem;
}

.page-email-composer .cec-html-textarea {
    min-height: 70px;
}

.gz-form-success {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    min-height: 1.4em;
    margin-top: 0.25rem;
}

/* Marquee oldal — 3 vertikális oszlop */
.svc-contact-marquee-side {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 6px;
    background: #f0f0ee;
}

body[data-theme="dark"] .svc-contact-marquee-side {
    background: #111111;
}

/* Egy-egy vertikális sáv */
.svc-marquee-col {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* A belső track — JS mozgatja, CSS animáció nincs */
.svc-marquee-track {
    display: flex;
    flex-direction: column;
    gap: 6px;
    will-change: transform;
}

.svc-marquee-track img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
}

/* Mobil — oszlopok egymás alá kerülnek */
@media (max-width: 860px) {
    .svc-contact-wrap { grid-template-columns: 1fr; }
    .svc-contact-marquee-side {
        min-height: 280px;
        flex-direction: row;
    }
}
