/* Homepage styles (the original simple design, restored 2026-10-15). Used by / and /hu/. */
:root {
    --bg: #FAF9F5;
    --bg-hover: #F0EEE6;
    --text: #141413;
    --text-muted: #5E5D59;
    --text-soft: #8a8882;
    --accent: #D97757;
    --accent-hover: #C96442;
    --border: rgba(20, 20, 19, 0.1);
    --icon-border: rgba(20, 20, 19, 0.12);
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --app-icon-mask: url('data:image/svg+xml,%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xml%3Aspace%3D%22preserve%22%20viewBox%3D%220%200%20230.5%20230.5%22%3E%0A%20%20%3Cpath%20fill-rule%3D%22evenodd%22%20stroke-linejoin%3D%22round%22%20stroke-miterlimit%3D%221.4%22%20clip-rule%3D%22evenodd%22%20d%3D%22M158.2%20230H64.1a320%20320%200%200%201-7-.1c-5%200-10-.5-15-1.3a50.8%2050.8%200%200%201-14.4-4.8%2048.2%2048.2%200%200%201-21-21%2050.9%2050.9%200%200%201-4.8-14.4%20100.7%20100.7%200%200%201-1.3-15v-7l-.1-8.2V64.1a320%20320%200%200%201%20.1-7c0-5%20.5-10%201.3-15a50.7%2050.7%200%200%201%204.8-14.4%2048.2%2048.2%200%200%201%2021-21%2051%2051%200%200%201%2014.4-4.8c5-.8%2010-1.2%2015-1.3a320%20320%200%200%201%207%200l8.2-.1h94.1a320%20320%200%200%201%207%20.1c5%200%2010%20.5%2015%201.3a52%2052%200%200%201%2014.4%204.8%2048.2%2048.2%200%200%201%2021%2021%2050.9%2050.9%200%200%201%204.8%2014.4c.8%205%201.2%2010%201.3%2015a320%20320%200%200%201%20.1%207v102.3l-.1%207c0%205-.5%2010-1.3%2015a50.7%2050.7%200%200%201-4.8%2014.4%2048.2%2048.2%200%200%201-21%2021%2050.8%2050.8%200%200%201-14.4%204.8c-5%20.8-10%201.2-15%201.3a320%20320%200%200%201-7%200l-8.2.1z%22%2F%3E%0A%3C%2Fsvg%3E%0A');
}

[data-theme="dark"] {
    --bg: #141413;
    --bg-hover: #1f1f1d;
    --text: #f0eee6;
    --text-muted: #a5a39b;
    --text-soft: #6e6c66;
    --accent: #e08868;
    --accent-hover: #f2a078;
    --border: rgba(240, 238, 230, 0.1);
    --icon-border: rgba(240, 238, 230, 0.12);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--bg-hover); }
.theme-toggle svg { width: 18px; height: 18px; color: var(--text-muted); transition: color 0.2s ease; }
.theme-toggle:hover svg { color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Language link, beside the theme toggle */
.lang-link {
    position: fixed;
    top: 1.5rem;
    right: 4.5rem;
    height: 40px;
    padding: 0 0.875rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-link:hover { border-color: var(--accent); color: var(--accent); }
.pillar-body a { color: var(--accent); text-decoration: none; }
.pillar-body a:hover { text-decoration: underline; }
footer .footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8125rem; }
footer .footer-links a:hover { color: var(--accent); }

/* Eyebrow */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Hero */
.site-hero {
    padding: 8rem 0 4rem;
}
.site-hero .eyebrow {
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 4.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.02;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-variation-settings: "opsz" 144;
}
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 44ch;
    font-weight: 400;
    line-height: 1.55;
}

/* Section header */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.section-header .eyebrow {
    white-space: nowrap;
    color: var(--accent);
}
.section-header hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border);
}
.section-intro {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
    max-width: 24ch;
    margin-bottom: 2.5rem;
    font-variation-settings: "opsz" 72;
}
.practice-section { padding: 3rem 0 1rem; }
.clients-section { padding: 4rem 0 1rem; }
.work-section { padding: 4rem 0 2rem; }
.track-section { padding: 4rem 0 1rem; }
.about-section { padding: 4rem 0 2rem; }

/* Practice pillars */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.pillar {
    padding-right: 1.75rem;
    border-right: 1px solid var(--border);
}
.pillar > * { padding-left: 1.75rem; }
.pillar:first-child > * { padding-left: 0; }
.pillar:last-child {
    border-right: none;
    padding-right: 0;
}
.pillar-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin: 0.75rem 0 0.625rem;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 72;
}
.pillar-body {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Split rows — client work + track record */
.split-row {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
    gap: 2.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
}
.split-row:last-child { border-bottom: 1px solid var(--border); }
.split-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.375rem;
    font-variation-settings: "opsz" 72;
}
.split-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}
.split-body {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.split-scope {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin-top: 0.875rem;
}
/* Work grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.work-card {
    padding: 2rem 1.75rem 2rem 0;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.work-card:nth-child(3n) {
    border-right: none;
    padding-right: 0;
}
.work-card:nth-child(1),
.work-card:nth-child(2),
.work-card:nth-child(3) {
    border-top: none;
}
.work-card > * {
    padding-left: 1.75rem;
}
.work-card:nth-child(3n+1) > * {
    padding-left: 0;
}
.work-card:hover {
    background: var(--bg-hover);
}
.work-card .eyebrow {
    margin-bottom: 1.25rem;
    color: var(--text-soft);
}
.work-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--text);
    margin: 1rem 0 0.5rem;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 72;
}
.work-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}
.work-card-links {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.work-card-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
}
.work-card-link:hover {
    color: var(--accent-hover);
}
.work-card-link .arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}
.work-card-link:hover .arrow {
    transform: translateX(3px);
}

.work-card-title a { color: inherit; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 0.875rem; }
.chip {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.125rem 0.5rem;
    line-height: 1.6;
}
.card-legal { font-size: 0.75rem; color: var(--text-soft); margin-top: 0.875rem; }
.card-legal a { color: var(--text-muted); text-decoration: none; }
.card-legal a:hover { text-decoration: underline; }

/* App icon */
.app-icon-wrap {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}
.app-icon {
    position: relative;
    display: block;
    width: 64px;
    height: 64px;
}
.app-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mask-image: var(--app-icon-mask);
    -webkit-mask-image: var(--app-icon-mask);
}
.app-icon-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    color: var(--icon-border);
}

/* About */
.about-content {
    max-width: 560px;
    padding-top: 0.5rem;
}
.about-bio {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.45;
    letter-spacing: -0.01em;
    margin-bottom: 1.75rem;
    font-variation-settings: "opsz" 72;
}
.about-bio em {
    font-style: italic;
    color: var(--accent);
}
.about-contact {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}
.about-contact a {
    color: var(--accent);
    text-decoration: none;
}
.about-contact a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}
.social-links {
    display: flex;
    gap: 1.25rem;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.social-link:hover { color: var(--accent); }
.social-link svg { width: 20px; height: 20px; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    font-size: 0.8125rem;
    color: var(--text-soft);
    margin-top: 4rem;
}
footer .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
footer .footer-row p {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 960px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .work-card {
        padding-right: 1.5rem;
    }
    .work-card:nth-child(3n) {
        border-right: 1px solid var(--border);
        padding-right: 1.5rem;
    }
    .work-card:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }
    .work-card:nth-child(3) {
        border-top: 1px solid var(--border);
    }
    .work-card > * {
        padding-left: 1.5rem;
    }
    .work-card:nth-child(3n+1) > * {
        padding-left: 1.5rem;
    }
    .work-card:nth-child(2n+1) > * {
        padding-left: 0;
    }
    .pillars {
        grid-template-columns: 1fr;
    }
    .pillar {
        border-right: none;
        border-top: 1px solid var(--border);
        padding: 1.5rem 0 0;
    }
    .pillar:first-child {
        border-top: none;
        padding-top: 0;
    }
    .pillar > *,
    .pillar:first-child > * {
        padding-left: 0;
    }
    .pillar-title { margin-top: 0.5rem; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .site-hero { padding: 6rem 0 2rem; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 3.5rem); }
    .practice-section { padding: 2rem 0 1rem; }
    .clients-section,
    .track-section { padding: 3rem 0 1rem; }
    .work-section { padding: 3rem 0 2rem; }
    .section-intro { font-size: 1.25rem; max-width: none; }
    .split-row {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    .work-grid { grid-template-columns: 1fr; }
    .work-card,
    .work-card:nth-child(3n),
    .work-card:nth-child(2n) {
        border-right: none !important;
        padding: 2rem 0;
    }
    .work-card:nth-child(n) {
        border-top: 1px solid var(--border);
    }
    .work-card:first-child {
        border-top: none;
    }
    .work-card > *,
    .work-card:nth-child(n) > * {
        padding-left: 0 !important;
    }
    .section-header { gap: 1rem; margin-bottom: 2rem; }
    .about-bio { font-size: 1.125rem; }
    .theme-toggle { top: 1rem; right: 1rem; }
    .lang-link { top: 1rem; right: 4rem; }
}
