/* ═══════════════════════════════════
   malacarne.com — AI Consultation & Design
   Palette and type follow the trippy.ch design language:
   violet night, teal / pink / violet glows, light tracked headings.
   Night is the default; "dawn" (light) when chosen via the toggle.
   ═══════════════════════════════════ */

:root {
    --bg: #1a0a2e;
    --bg-card: rgba(39, 21, 64, 0.72);
    --bg-card-solid: #241338;
    --bg-section: #150825;
    --text: #e8e0f5;
    --text-2: #b9aed6;
    --text-3: #8a7fae;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-light: rgba(45, 212, 191, 0.12);
    --pink: #ec4899;
    --violet: #a855f7;
    --purple: #7c3aed;
    --border: rgba(168, 85, 247, 0.2);
    --border-strong: rgba(168, 85, 247, 0.42);
    --radius: 18px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 26px -14px rgba(124, 58, 237, 0.4);
    --shadow-lg: 0 20px 50px -24px rgba(124, 58, 237, 0.45);
    --glow-text: none;
    --haze-1: rgba(124, 58, 237, 0.16);
    --haze-2: rgba(236, 72, 153, 0.06);
    --haze-3: rgba(45, 212, 191, 0.05);
    --gradient: linear-gradient(120deg, #5eead4 0%, #c084fc 100%);
    --btn-gradient: linear-gradient(135deg, #6d28d9, #9333ea);
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f6f2fc;
    --bg-card: rgba(255, 255, 255, 0.86);
    --bg-card-solid: #ffffff;
    --bg-section: #efe7fa;
    --text: #1d1030;
    --text-2: #54476f;
    --text-3: #857a9f;
    --accent: #0f9b8e;
    --accent-hover: #0b7d73;
    --accent-light: rgba(15, 155, 142, 0.1);
    --pink: #db2777;
    --violet: #7c3aed;
    --purple: #6d28d9;
    --border: #e2d7f3;
    --border-strong: #c9b5ec;
    --shadow-sm: 0 1px 3px rgba(29, 16, 48, 0.06);
    --shadow-md: 0 8px 30px -12px rgba(124, 58, 237, 0.25);
    --shadow-lg: 0 24px 60px -24px rgba(124, 58, 237, 0.35);
    --glow-text: none;
    --haze-1: rgba(124, 58, 237, 0.14);
    --haze-2: rgba(236, 72, 153, 0.10);
    --haze-3: rgba(45, 212, 191, 0.10);
    --gradient: linear-gradient(120deg, #0f9b8e 0%, #7c3aed 55%, #db2777 100%);
    color-scheme: light;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ─── Scroll Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.stagger-1 { transition-delay: 0.1s; }
.reveal.stagger-2 { transition-delay: 0.2s; }
.reveal.stagger-3 { transition-delay: 0.3s; }

/* ─── Cursor Follower ─── */
.cursor-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
    will-change: left, top;
}
.hero:hover .cursor-glow { opacity: 1; }
@media (hover: none) or (pointer: coarse) { .cursor-glow { display: none; } }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
}

/* Smoky haze over the whole page, like trippy.ch */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 85% 5%, var(--haze-1), transparent 60%),
        radial-gradient(ellipse 60% 45% at 0% 60%, var(--haze-2), transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 100%, var(--haze-3), transparent 60%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(45, 212, 191, 0.35); color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; }

h1, h2, h3 { font-weight: 400; letter-spacing: 0.01em; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.25s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--btn-gradient);
    color: #fff;
    box-shadow: 0 6px 18px -8px rgba(124, 58, 237, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.75); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-light { background: rgba(255, 255, 255, 0.92); color: #2a1150; }
.btn-light:hover { background: #fff; transform: translateY(-1px); }

.text-link { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.03em; color: var(--accent); text-decoration: none; }
.text-link:hover { color: var(--pink); }

/* ─── Header ─── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--border);
}

nav { display: flex; align-items: center; justify-content: center; height: 64px; position: relative; }

.logo {
    position: absolute;
    left: 24px;
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.logo span { color: var(--pink); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--accent); border-color: var(--accent); }

.nav-right { position: absolute; right: 24px; display: flex; align-items: center; gap: 8px; }

.lang-toggle {
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-sep { color: var(--text-3); margin: 0 1px; }
.lang-option.active { color: var(--accent); }

.theme-toggle {
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px 8px 8px;
    z-index: 110;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* The header uses backdrop-filter, which makes it the containing block for fixed children:
   position the menu relative to the header (top: 64px) with an explicit viewport height. */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: var(--bg);
    z-index: 105;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.mobile-menu.show { display: flex; }
.mobile-menu a { font-size: 1.1rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); text-decoration: none; padding: 14px 32px; }
.mobile-menu a:hover { color: var(--accent); }

/* ─── Section heads ─── */
.section-head { margin-bottom: 44px; max-width: 660px; }
.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-head h2, .about-content h2, .contact h2 {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-shadow: var(--glow-text);
}
.section-lead { margin-top: 14px; font-size: 1.05rem; color: var(--text-2); line-height: 1.75; }

/* ─── Hero ───
   Only the tagline and the portrait. Behind them a Romanesco keeps growing out of the portrait
   (assets/js/hero-visual.js, WebGL). It fades out toward the bottom, and the lexicon band below
   starts transparent, so the two run into each other without an edge. */
.hero {
    position: relative;
    overflow: hidden;
    min-height: max(520px, calc(100svh - 64px - 112px));
    display: flex;
    align-items: center;
    padding: 56px 0 72px;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
#hero-canvas.is-on { opacity: 1; }
.hero-grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }

/* Your name is the hero: kicker, two lines of name (surname shading teal → violet), one calm tagline line */
.hero-text { display: grid; gap: 26px; justify-items: start; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--accent);
    animation: hk-in 0.9s ease 0.1s backwards;
}
.hero-kicker::before, .hero-kicker::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.hero-kicker::after { display: none; background: linear-gradient(270deg, transparent, var(--accent)); }
.hero-title { display: grid; gap: 22px; font-weight: 300; }
.hero-name {
    --g1: #5eead4;
    --g2: #c084fc;
    display: block;
    font-size: clamp(3rem, 7.2vw, 6.4rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--text);
}
[data-theme="light"] .hero-name { --g1: #0f9b8e; --g2: #7c3aed; --glow: #0f9b8e; }
.hn-first, .hn-last { display: block; white-space: nowrap; }
.hn-last { font-weight: 400; }
.hn-last .ch { color: var(--g2); color: color-mix(in oklab, var(--g1) calc(100% - var(--t) * 100%), var(--g2)); }
.hero-name .ch {
    display: inline-block;
    animation: hn-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards, hn-glow 1.4s ease backwards;
    animation-delay: calc(0.25s + var(--i) * 50ms), calc(1.5s + var(--i) * 60ms);
    transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), color 0.3s;
}
.hero-name .ch:hover { transform: translateY(-0.08em) rotate(-4deg); color: var(--accent); }
@keyframes hn-in { from { opacity: 0; transform: translateY(0.45em); filter: blur(8px); } }
@keyframes hn-glow { 45% { color: var(--glow, #f0fdfa); text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 70%, transparent); } }
@keyframes hk-in { from { opacity: 0; transform: translateY(6px); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-tagline {
    display: block;
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.005em;
    color: var(--text-2);
    animation: hk-in 1s ease 1.15s backwards;
}
.hero-tagline em { font-style: normal; font-weight: 500; color: var(--text); }

/* Where the Romanesco's heart sits (the visual itself is the canvas behind) */
.hero-heart { width: clamp(220px, 27vw, 340px); aspect-ratio: 1; margin-right: 4vw; }

/* "The human behind it": the portrait opens the About chapter */
.about-photo {
    display: block;
    width: clamp(112px, 12vw, 148px);
    aspect-ratio: 1;
    margin-bottom: 26px;
    object-fit: cover;
    object-position: 50% 22%;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--bg) 55%, transparent), 0 0 0 7px color-mix(in srgb, var(--accent) 35%, transparent), 0 22px 50px -24px rgba(0, 0, 0, 0.75);
}
.about-content p.section-label { font-size: 0.72rem; line-height: 1.5; color: var(--accent); margin-bottom: 10px; }
.contact .container > p.section-label { font-size: 0.72rem; line-height: 1.5; color: var(--accent); margin: 0 auto 12px; }

@media (prefers-reduced-motion: reduce) { .hero-kicker, .hero-name .ch, .hero-tagline { animation: none; } }

/* ─── Cards (shared look) ─── */
.service-card, .process-steps li, .project-card, .channel, .about-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ─── Services ─── */
.services { padding: 100px 0; background: color-mix(in srgb, var(--bg-section) 70%, transparent); }

.services-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px;
    border-radius: 22px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
}
.service-card:hover { border-color: var(--border-strong); }
.service-card h3 { font-size: 1.7rem; font-weight: 400; letter-spacing: 0.02em; line-height: 1.2; }
.service-card > p { color: var(--text-2); font-size: 0.97rem; line-height: 1.75; }
.service-card .btn, .service-card .text-link { margin-top: auto; align-self: flex-start; }

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(45, 212, 191, 0.3);
    font-size: 1.25rem;
}

.service-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 12px; }
.service-list li { position: relative; padding-left: 28px; font-size: 0.93rem; line-height: 1.6; color: var(--text-2); }
.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--accent-light);
    color: var(--accent);
}
.service-list li b { color: var(--text); font-weight: 600; }

/* Featured card: calm, deep violet with a soft static light in one corner */
.service-card.featured {
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.22), transparent 55%), linear-gradient(135deg, #140b28, #24104a);
    color: #ede6fb;
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: var(--shadow-lg);
}
.service-card.featured > * { position: relative; z-index: 1; }
.service-card.featured:hover { border-color: rgba(160, 120, 255, 0.6); }
.service-card.featured > p, .service-card.featured .service-list li { color: #c9bde3; }
.service-card.featured .service-list li b { color: #fff; }
.service-card.featured .service-list li::before { background: rgba(45, 212, 191, 0.16); color: #5eead4; }
.service-card.featured .service-icon { background: rgba(45, 212, 191, 0.12); color: #5eead4; }

.service-badge {
    position: absolute !important;
    top: 28px;
    right: 28px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--pink);
    color: #fff;
}

.process { margin-top: 56px; }
.process-title { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-steps li { position: relative; padding: 24px 24px 22px; border-radius: 18px; }
.process-steps li:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.8rem;
    z-index: 1;
}
.step-no {
    display: inline-block;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.06em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}
.process-steps b { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.process-steps p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* ─── AI Literacy band ─── */
.lexikon {
    padding: 0 0 100px;
    background: linear-gradient(180deg, rgba(16, 6, 28, 0) 0, rgba(16, 6, 28, 0.85) 120px, #10061c 240px);
    color: #ede6fb;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}

/* The way into the lexicon, right under the hero */
.lex-bridge { position: relative; z-index: 2; display: flex; justify-content: center; padding-top: 4px; padding-bottom: 76px; }
.lex-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    width: min(100%, 1040px);
    align-items: center;
    gap: 14px 20px;
    max-width: 100%;
    padding: 14px 14px 14px 16px;
    border-radius: 24px;
    border: 1px solid transparent;
    background:
        linear-gradient(#170a2b, #170a2b) padding-box,
        linear-gradient(120deg, #2dd4bf, #a855f7 55%, #ec4899) border-box;
    color: #ede6fb;
    text-decoration: none;
    box-shadow: 0 22px 50px -26px rgba(124, 58, 237, 0.7), 0 0 0 6px rgba(45, 212, 191, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lex-cta:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -24px rgba(45, 212, 191, 0.45), 0 0 0 6px rgba(45, 212, 191, 0.09); }
.lex-cta:focus-visible { outline: 2px solid #5eead4; outline-offset: 4px; }
.lex-cta-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(45, 212, 191, 0.12); color: #5eead4; }
.lex-cta-text b { display: block; font-size: 1.12rem; font-weight: 500; letter-spacing: 0.01em; }
.lex-cta-text small { display: block; margin-top: 3px; font-size: 0.84rem; line-height: 1.45; color: #b9aed6; }
.lex-count { color: #5eead4; font-weight: 600; font-variant-numeric: tabular-nums; }
.lex-cta-chips { display: flex; gap: 6px; }
.lex-cta-chips span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(168, 85, 247, 0.35); color: #d9cff2; white-space: nowrap; }
/* "Open →": a pill with a light that sweeps across it and an arrow that nudges forward,
   three times after the page loads, then it rests (none in calm mode / reduced motion) */
.lex-cta-go {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px 11px 20px; border-radius: 999px;
    font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; color: #10061c; white-space: nowrap;
    background: linear-gradient(135deg, #5eead4, #2dd4bf 55%, #14b8a6);
    box-shadow: 0 10px 26px -10px rgba(45, 212, 191, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.lex-cta-go::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.75) 48%, transparent 66%);
    transform: translateX(-120%);
    animation: go-shine 5.5s ease-in-out 1.8s 3;
}
.lex-cta-go-arrow { animation: go-nudge 5.5s ease-in-out 1.8s 3; transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes go-shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
@keyframes go-nudge { 0%, 66%, 100% { transform: none; } 72% { transform: translateX(5px); } 78% { transform: translateX(-1px); } 84% { transform: translateX(3px); } }
.lex-cta:hover .lex-cta-go { box-shadow: 0 14px 34px -10px rgba(45, 212, 191, 0.95), 0 0 0 4px rgba(45, 212, 191, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.lex-cta:hover .lex-cta-go-arrow { transform: translateX(4px); }
.lex-cta:hover .lex-cta-go::before { animation: go-shine 1.1s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .lex-cta-go::before, .lex-cta-go-arrow { animation: none; } }
.lex-cta:hover .lexikon::before {
    content: ''; position: absolute; width: 620px; height: 620px; right: -200px; top: 40px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 65%); pointer-events: none;
}
.lexikon::after {
    content: ''; position: absolute; width: 460px; height: 460px; left: -160px; bottom: -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent 65%); pointer-events: none;
}
.lexikon-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; z-index: 1; }
.lexikon-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: #10061c; background: #2dd4bf; padding: 5px 12px; border-radius: 99px; margin-bottom: 18px;
}
.lexikon h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 400; letter-spacing: 0.02em; line-height: 1.18; margin-bottom: 18px; }
.lexikon h2 em { background: linear-gradient(120deg, #2dd4bf 0%, #a855f7 50%, #ec4899 100%); -webkit-background-clip: text; background-clip: text; }
.lexikon-content > p { color: #b9aed6; font-size: 1rem; line-height: 1.8; margin-bottom: 24px; max-width: 520px; }
.lexikon-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 22px; }
.lexikon-facts li { display: flex; align-items: baseline; gap: 8px; font-size: 0.86rem; color: #b9aed6; }
.lexikon-facts b { font-size: 1.45rem; font-weight: 300; color: #5eead4; letter-spacing: 0.04em; }
.lexikon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; min-height: 34px; }
.lexikon-chips a {
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em; text-decoration: none; color: #e4dbf5; padding: 6px 13px; border-radius: 99px;
    border: 1px solid rgba(168, 85, 247, 0.35); transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lexikon-chips a:hover { border-color: #2dd4bf; color: #5eead4; transform: translateY(-1px); box-shadow: 0 0 14px rgba(45, 212, 191, 0.3); }
.lexikon-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.lexikon .btn-outline { color: #ede6fb; border-color: rgba(168, 85, 247, 0.45); }
.lexikon .btn-outline:hover { color: #5eead4; border-color: #2dd4bf; }

.lexikon-demo {
    background: rgba(30, 15, 55, 0.85); border: 1px solid rgba(168, 85, 247, 0.3); border-radius: 20px; padding: 24px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(124, 58, 237, 0.4); font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
}
.ld-label { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a89ec7; }
.ld-dot { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; }
@keyframes ldPulse { 50% { opacity: 0.35; } }
@keyframes ldPop { from { transform: scale(0.7); opacity: 0; } }
.ld-text { font-family: var(--sans); font-weight: 400; font-size: 1.1rem; line-height: 1.5; color: #fff; min-height: 3.4em; margin: 14px 0 18px; }
.ld-picked { display: inline-block; background: #2dd4bf; color: #10061c; border-radius: 6px; padding: 0 6px; animation: ldPop 0.35s ease-out; box-shadow: 0 0 16px rgba(45, 212, 191, 0.5); }
.ld-caret { display: inline-block; width: 2px; height: 1.1em; background: #2dd4bf; vertical-align: -0.15em; opacity: 0.7; }
.ld-cands { display: grid; gap: 7px; }
.ld-cand { display: grid; grid-template-columns: 120px 1fr 42px; gap: 10px; align-items: center; font-size: 0.8rem; color: #d9cdef; }
.ld-bar { height: 10px; border-radius: 99px; background: #2e1d4a; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #7c3aed, #c084fc); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ld-bar i.on { width: var(--p); }
.ld-cand.win { color: #fff; }
.ld-cand.win .ld-bar i { background: linear-gradient(90deg, #14b8a6, #5eead4); }
.ld-p { text-align: right; color: #a89ec7; }
.ld-cap { margin-top: 16px; font-family: var(--sans); font-size: 0.78rem; color: #a89ec7; }

/* ─── Projects & channels ─── */
.projects { padding: 100px 0; }
.projects-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; align-items: stretch; }

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
}
.project-card:hover { border-color: var(--border-strong); }
.project-stack { display: flex; flex-direction: column; gap: 24px; }
.project-img { height: 250px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.project-card:hover .project-img img { transform: scale(1.02); }
.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.project-body h3 { font-size: 1.4rem; font-weight: 300; letter-spacing: 0.08em; }
.project-body p { font-size: 0.93rem; color: var(--text-2); line-height: 1.7; }
.project-tag {
    align-self: flex-start;
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); border: 1px solid rgba(45, 212, 191, 0.35); padding: 4px 11px; border-radius: 99px;
}

.channels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; grid-auto-rows: 1fr; }
.channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}
.channel:hover { border-color: var(--border-strong); }
.channel-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.channel.yt .channel-icon { background: #FF0033; }
.channel.ig .channel-icon { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF 80%, #515BD4); }
.channel.li .channel-icon { background: #0A66C2; }
.channel-text { display: flex; flex-direction: column; min-width: 0; }
.channel-text b { font-size: 1rem; font-weight: 500; letter-spacing: 0.03em; }
.channel-text small { font-size: 0.8rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-cta { margin-left: auto; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--accent); white-space: nowrap; }

/* ─── About ─── */
.about { padding: 100px 0; background: color-mix(in srgb, var(--bg-section) 70%, transparent); }
.about-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: start; }
.about-content h2 { margin-bottom: 22px; }
.about-content p { color: var(--text-2); font-size: 1rem; line-height: 1.9; margin-bottom: 16px; }
.about-content strong { color: var(--text); font-weight: 600; }
.about-content a { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(45, 212, 191, 0.4); }
.about-content a:hover { color: var(--pink); border-color: var(--pink); }

.about-info { display: flex; flex-direction: column; gap: 20px; padding: 30px; border-radius: 22px; }
.info-block h4 { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.info-block p { font-size: 0.95rem; font-weight: 400; }
.info-block a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-strong); transition: border-color 0.2s, color 0.2s; }
.info-block a:hover { color: var(--accent); border-color: var(--accent); }
.social-links { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.social-links a { color: var(--text-2); transition: color 0.2s, transform 0.2s; display: flex; }
.social-links a:hover { color: var(--accent); transform: translateY(-2px); }

/* ─── Contact ─── */
.contact { padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.contact::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 820px;
    height: 460px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, var(--haze-1), transparent 65%);
    pointer-events: none;
}
.contact h2 { margin-bottom: 14px; }
.contact .container > p { color: var(--text-2); font-size: 1.06rem; max-width: 520px; margin: 0 auto 32px; line-height: 1.75; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
footer { padding: 26px 0 96px; border-top: 1px solid var(--border); position: relative; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
footer p { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-right { right: 16px; }

    .hero { min-height: 0; padding: 84px 0 44px; }   /* room above for the whole Romanesco head (hero-visual.js fits it in) */
    .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 30px; }
    .hero-heart { order: -1; width: clamp(110px, 30vw, 150px); margin-right: 0; }
    .hero-text { justify-items: center; gap: 18px; }
    .hero-kicker::after { display: block; }
    .hero-title { gap: 16px; }
    .hero-name { font-size: clamp(2.7rem, 13vw, 4rem); }
    .lex-cta { grid-template-columns: auto minmax(0, 1fr) auto; }
    .lex-cta-chips { display: none; }

    .services-grid, .lexikon-grid, .projects-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
    .lexikon-grid { gap: 36px; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .services, .projects, .about, .lexikon { padding: 64px 0; }
    .contact { padding: 72px 0; }
    .section-head { margin-bottom: 32px; }
    .service-card { padding: 28px 22px; }
    .service-badge { top: 22px; right: 20px; }
    .process-steps { grid-template-columns: 1fr; }
    .process-steps li:not(:last-child)::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%); }
    .lex-bridge { padding-bottom: 56px; }
    .lex-cta { gap: 12px 14px; padding: 12px 12px 12px 12px; }
    .lex-cta-icon { width: 42px; height: 42px; border-radius: 13px; }
    .lex-cta-go { padding: 12px; }
    .lex-cta-go-label { display: none; }
    .lex-cta-text b { font-size: 1rem; }
        .project-img { height: 180px; }
    .lexikon-demo { padding: 18px; }
    .ld-cand { grid-template-columns: 96px 1fr 40px; }
    .contact-actions .btn { flex: 1 1 auto; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
