/* =========================================================
   flatcoat.cz — style.css
   Single stylesheet. Mobile-first. Custom properties.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: #0A0A0B;
    /* Cover iOS Safari overscroll bounce area with the site background */
    background-color: #0A0A0B;
}
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
    /* Colors */
    --bg-base: #0A0A0B;
    --bg-surface: #111113;
    --bg-elevated: #18181B;
    --border: #222226;
    --border-strong: #2E2E33;
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --accent: #FF2D55;
    --accent-glow: rgba(255, 45, 85, 0.35);
    --accent-soft: rgba(255, 45, 85, 0.08);
    --purple-glow: rgba(139, 92, 246, 0.25);

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-pad: clamp(1.25rem, 4vw, 2.5rem);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 200ms;
    --duration-base: 400ms;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p { color: var(--text-secondary); line-height: 1.7; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.accent { color: var(--accent); }

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--accent);
    color: white;
    z-index: 999;
}
.skip-link:focus { top: 0; }

/* ---------- Noise overlay ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal animation (JS-triggered) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Section spacing ---------- */
section { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 8rem); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background var(--duration-base) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(10, 10, 11, 0.85); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding-block: var(--space-4);
}

.site-header__logo img { height: 32px; width: auto; opacity: 0.95; }

.site-nav__list {
    display: flex;
    gap: var(--space-8);
}
.site-nav__list a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}
.site-nav__list a:hover { color: var(--text-primary); }

.site-nav__toggle { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px var(--accent-glow);
}
.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-elevated); border-color: var(--text-muted); }

/* Push content below fixed header */
main { padding-top: 80px; }

/* Mobile nav */
@media (max-width: 768px) {
    .site-header { border-bottom: none; }
    .site-nav { display: none; }
    .site-header__cta { display: none; }
    .site-nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: var(--space-2);
    }
    .site-nav__toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: transform var(--duration-fast);
    }
    .site-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: var(--space-6);
        border-bottom: 1px solid var(--border);
    }
    .site-nav.is-open .site-nav__list { flex-direction: column; gap: var(--space-4); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: var(--space-24);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: aurora 20s ease-in-out infinite;
}
.hero__aurora--1 {
    width: 60vw; height: 60vw;
    top: -20vw; left: -10vw;
    background: var(--accent-glow);
}
.hero__aurora--2 {
    width: 50vw; height: 50vw;
    bottom: -15vw; right: -10vw;
    background: var(--purple-glow);
    animation-delay: -10s;
}

@keyframes aurora {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 5%) scale(1.1); }
    66% { transform: translate(-5%, 10%) scale(0.95); }
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.15;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero__eyebrow { margin-bottom: var(--space-6); }

.hero__title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: var(--space-8);
}
.hero__title span { display: block; }

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
    color: var(--text-secondary);
}

.hero__ctas {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ---------- Section heads ---------- */
.section-head {
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: var(--space-16);
    text-align: center;
}
.section-head .eyebrow { margin-bottom: var(--space-4); }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-6);
}
.section-lead {
    font-size: 1.0625rem;
    max-width: 680px;
    margin-inline: auto;
}

/* ---------- Pillar grid ---------- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

.pillar {
    position: relative;
    padding: var(--space-8);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-base) var(--ease-out);
    overflow: hidden;
}
.pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), transparent 50%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}
.pillar:hover::before { opacity: 1; }
.pillar:hover {
    transform: translateY(-4px);
    background: var(--bg-elevated);
}

.pillar__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}
.pillar__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}
.pillar__text { font-size: 0.9375rem; line-height: 1.6; }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.service {
    position: relative;
    display: block;
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 350ms var(--ease-out),
                background 350ms var(--ease-out),
                border-color 350ms var(--ease-out),
                box-shadow 350ms var(--ease-out);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
}
.service:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
/* Radial spotlight that follows the cursor */
.service::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        520px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 45, 85, 0.18),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 400ms var(--ease-out);
    pointer-events: none;
    z-index: 0;
}
.service:hover::before { opacity: 1; }
/* Top sweep line */
.service::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 700ms var(--ease-out);
    z-index: 1;
}
.service > * { position: relative; z-index: 2; }
.service:hover {
    background: var(--bg-elevated);
    border-color: rgba(255, 45, 85, 0.5);
    transform: translateY(-6px);
    box-shadow:
        0 24px 48px -16px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 45, 85, 0.25),
        0 0 40px -8px rgba(255, 45, 85, 0.35);
}
.service:hover::after { left: 100%; }
.service .service__icon {
    transition: transform 350ms var(--ease-out),
                background 350ms var(--ease-out),
                color 350ms var(--ease-out),
                box-shadow 350ms var(--ease-out);
}
.service:hover .service__icon {
    transform: scale(1.1) rotate(-4deg);
    background: var(--accent);
    color: white;
    box-shadow: 0 0 24px rgba(255, 45, 85, 0.5);
}
.service .service__title {
    transition: color 300ms var(--ease-out), transform 350ms var(--ease-out);
}
.service:hover .service__title {
    color: var(--accent);
    transform: translateX(2px);
}

.service__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
}
.service__icon svg { width: 20px; height: 20px; }

.service__title { font-size: 1.0625rem; margin-bottom: var(--space-2); }
.service__text { font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }

.service--featured {
    border-color: rgba(255, 45, 85, 0.4);
    background: linear-gradient(180deg, rgba(255, 45, 85, 0.06), rgba(20, 20, 22, 0.4));
    position: relative;
}
.service__hot {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(255, 45, 85, 0.7));
    animation: flame-flicker 2.4s ease-in-out infinite;
}
.service__hot svg { width: 24px; height: 24px; }
@keyframes flame-flicker {
    0%, 100% { transform: scale(1) rotate(-1deg); opacity: 1; }
    50%      { transform: scale(1.08) rotate(1deg); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
    .service__hot { animation: none; }
}
.service--featured .service__icon {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 28px rgba(255, 45, 85, 0.4);
}

/* ---------- Why / Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

.stat {
    padding: var(--space-8);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
}
.stat__number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-4);
}
.stat__number--text { font-size: clamp(2rem, 4vw, 2.75rem); }
.stat__plus { color: var(--accent); -webkit-background-clip: initial; background-clip: initial; }
.stat__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}
.stat__text { font-size: 0.9375rem; color: var(--text-secondary); }

/* ---------- Founder ---------- */
.founder-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: 900px;
    margin-inline: auto;
    padding: var(--space-12);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.founder-card__photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
}
.founder-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.founder-card__body .eyebrow { color: var(--accent); margin-bottom: var(--space-3); }
.founder-card__name { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-1); }
.founder-card__role { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-4); }
.founder-card__statement { font-size: 1rem; line-height: 1.7; margin-bottom: var(--space-6); }
.founder-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: all var(--duration-base) var(--ease-out);
}
.founder-card__link:hover { background: var(--accent); color: white; border-color: var(--accent); }

@media (max-width: 700px) {
    .founder-card {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-6);
        text-align: center;
    }
    .founder-card__photo { max-width: 240px; margin-inline: auto; }
    .founder-card__link { align-self: center; }
}

/* ---------- Contact ---------- */
.contact {
    position: relative;
    overflow: hidden;
    text-align: center;
}
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__aurora {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 60vw;
    max-width: 1000px;
    max-height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    opacity: 0.5;
}
.contact__content { position: relative; z-index: 2; max-width: 700px; }
.contact__title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-block: var(--space-4) var(--space-6);
    letter-spacing: -0.03em;
}
.contact__subtitle { font-size: 1.125rem; margin-bottom: var(--space-8); }
.contact__content { max-width: 720px; }

/* Contact form */
.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: left;
    padding: var(--space-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl, 20px);
    background: rgba(20, 20, 22, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.contact-form__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(10, 10, 11, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.9375rem;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}
.contact-form textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(10, 10, 11, 0.85);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 45, 85, 0.55);
}
.contact-form__footer {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-2);
}
.contact-form__status {
    margin: 0;
    min-height: 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}
.contact-form__status:empty { display: none; }
.contact-form__status.is-success { color: #34D399; }
.contact-form__status.is-error { color: #FF2D55; }

@media (max-width: 640px) {
    .contact-form__row { grid-template-columns: 1fr; }
    .contact-form { padding: var(--space-5); }
}

/* Attention pulse — triggered when header CTA navigates to #contact */
.contact.is-attention .contact__aurora {
    animation: contact-aurora-pulse 1600ms ease-out;
}
.contact.is-attention .contact__title {
    animation: contact-title-pop 1200ms ease-out;
}
.contact.is-attention .contact-form {
    animation: contact-form-glow 1800ms ease-out;
}
@keyframes contact-aurora-pulse {
    0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    40%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.25); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
}
@keyframes contact-title-pop {
    0%   { transform: scale(1); text-shadow: 0 0 0 rgba(255,45,85,0); }
    35%  { transform: scale(1.04); text-shadow: 0 0 60px rgba(255,45,85,0.55); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(255,45,85,0); }
}
@keyframes contact-form-glow {
    0%   { box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 0 0 rgba(255,45,85,0); border-color: var(--border); }
    35%  { box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 0 6px rgba(255,45,85,0.35); border-color: rgba(255,45,85,0.7); }
    100% { box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 0 0 rgba(255,45,85,0); border-color: var(--border); }
}

/* Full-page flash overlay shown when header CTA pressed */
.cta-flash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255,45,85,0.35), transparent 60%);
    opacity: 0;
    animation: cta-flash 900ms ease-out forwards;
}
@keyframes cta-flash {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .contact.is-attention .contact__aurora,
    .contact.is-attention .contact__title,
    .contact.is-attention .contact-form,
    .cta-flash { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding-block: var(--space-16) var(--space-8);
    background: var(--bg-base);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-8);
    align-items: start;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.site-footer__logo {
    display: block;
    height: 32px;
    width: 32px;
    max-height: 32px;
    max-width: 32px;
    flex: 0 0 auto;
    opacity: 0.95;
}
.site-footer__tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.site-footer__address {
    font-style: normal;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.site-footer__legal { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); }
.site-footer__social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}
.site-footer__social a:hover { background: var(--accent); color: white; border-color: var(--accent); }
.site-footer__bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}
.site-footer__copyright {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
    .site-footer__brand { align-items: center; }
    .site-footer__social { justify-self: center; }
    .site-footer__bottom { flex-direction: column; gap: var(--space-4); }
}

/* ---------- Language switcher ---------- */
.lang-switcher {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.lang-switcher:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.lang-switcher:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.lang-switcher.is-cs {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------- Footer cookie notice ---------- */
.site-footer__cookie {
    width: 100%;
    font-size: 0.6875rem;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0.65;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    text-align: center;
}
.site-footer__cookie a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-footer__cookie a:hover { opacity: 1; }

/* ==========================================================================
   reCAPTCHA Enterprise badge — fully hidden. Google's TOS requires that when
   the badge is hidden, the legal notice is shown elsewhere on the page; that
   text lives in the site footer (.site-footer__recaptcha).
   ========================================================================== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    bottom: -9999px !important;
    right: -9999px !important;
}

/* Discreet reCAPTCHA legal notice inside the contact form */
.contact-form__recaptcha {
    margin-top: var(--space-2);
    margin-bottom: 0;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    opacity: 0.7;
}
.contact-form__recaptcha a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--duration-fast), border-color var(--duration-fast);
}
.contact-form__recaptcha a:hover {
    color: var(--text-secondary);
    border-bottom-color: var(--text-muted);
}

/* ==========================================================================
   Mobile optimization — consolidated fixes for narrow viewports
   ========================================================================== */
@media (max-width: 768px) {
    /* Hero: stop stretching to full viewport height — content should start
       near the top of the screen instead of being vertically centered in a
       huge empty block. */
    .hero {
        min-height: auto;
        padding-block: var(--space-16) var(--space-12);
        align-items: flex-start;
    }
    .hero__content { padding-top: var(--space-8); }
    .hero__title { font-size: clamp(2.75rem, 12vw, 4.5rem); margin-bottom: var(--space-6); }
    .hero__subtitle { font-size: 1rem; margin-bottom: var(--space-6); }
    .hero__ctas { gap: var(--space-3); }
    .hero__ctas .btn { width: 100%; max-width: 280px; }
    .hero__scroll { display: none; }

    /* Contact form: prevent horizontal overflow on narrow screens */
    .contact { padding-block: var(--space-16); }
    .contact__title { font-size: clamp(2rem, 9vw, 3rem); }
    .contact__subtitle { font-size: 1rem; }
    .contact-form {
        padding: var(--space-4);
        gap: var(--space-3);
        max-width: 100%;
    }
    .contact-form__field { min-width: 0; }
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.75rem 0.875rem;
        font-size: 16px; /* prevents iOS Safari zoom on focus */
    }
    .contact-form textarea {
        resize: none;
        min-height: 140px;
    }
    .contact-form__footer {
        flex-direction: column;
        gap: var(--space-3);
        margin-top: var(--space-3);
    }
    .contact-form__footer .btn { width: 100%; }
    .contact-form__recaptcha { font-size: 0.625rem; }
}
