:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --accent: #6E80B4;
    --accent-dark: #354365;
    --pill-bg: #e5e7eb;
    --border-subtle: #e5e7eb;
    --radius-lg: 18px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
}

body {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 1.25rem; }
.brand-logo { width: 230px; max-width: 45vw; }
.brand-logo img { width: 100%; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 0.25rem; }
.brand-name { font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-dark); }
.brand-tagline { font-size: 0.92rem; color: var(--text-muted); }

.header-right { display: flex; align-items: center; gap: 1rem; }
.claude-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.2rem 0.6rem 0.2rem 0.35rem; border-radius: 999px;
    background: #fef3ed; border: 1px solid #f5d0ba;
    font-size: 0.75rem; font-weight: 600; color: #9c4530;
    text-decoration: none; white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.claude-badge:hover { background: #fde8d8; border-color: #9c4530; }
.claude-badge:visited { color: #9c4530; }
.claude-badge img { height: 14px; width: auto; }
.lang-switch { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.lang-switch a, .lang-switch .lang-active { color: var(--text-main); text-decoration: none; padding: 0.28rem 0.7rem; border-radius: 999px; border: 1px solid transparent; }
.lang-switch a:hover { border-color: var(--border-subtle); background-color: #f9fafb; }
.lang-switch .active, .lang-switch .lang-active { border-color: var(--accent); background-color: #eef2ff; color: var(--accent-dark); }

@media (max-width: 900px) {
    header { flex-direction: column; align-items: flex-start; }
    .brand { flex-direction: column; align-items: flex-start; }
    .header-right { gap: 0.75rem; }
}

.content { max-width: 760px; }

.page-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.25;
    margin: 0 0 1rem;
    font-weight: 700;
}

.page-logo {
    display: block;
    height: 200px;
    margin: 0.5rem 0 1.5rem;
}

main p,
main li {
    color: var(--text-muted);
}

main a:not(.btn):not(.back-link):not(.breadcrumb a):not(.service-card):not(.floating-cta-btn):not(.footer-link) {
    color: var(--accent-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
main a:not(.btn):not(.back-link):not(.breadcrumb a):not(.service-card):not(.floating-cta-btn):not(.footer-link):hover {
    color: var(--text-main);
    border-bottom-color: var(--accent);
}
main a:not(.btn):not(.back-link):not(.breadcrumb a):not(.service-card):not(.floating-cta-btn):not(.footer-link):visited {
    color: var(--accent-dark);
}

.intro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-main);
}

.content ul {
    margin: 0.5rem 0 1.5rem;
    padding-left: 1.3rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.content li + li { margin-top: 0.3rem; }

.content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.content strong { color: var(--text-main); }

.content img:not(.btn-icon):not(.logo-item img) {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border-radius: 12px;
}

main > img {
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border-radius: 12px;
}

.content ol {
    margin: 0.5rem 0 1.5rem;
    padding-left: 1.3rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.content ol li + li { margin-top: 0.3rem; }

.content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text-main);
}

.content blockquote,
main blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
}

.content blockquote p,
main blockquote p {
    margin: 0;
}

.content pre,
main pre {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    color: var(--text-muted);
    margin: 1rem 0 1.5rem;
}

.dir-tree {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    font-size: 0.85rem;
    line-height: 1.8;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    color: var(--text-main);
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
    white-space: pre;
}

.dir-tree .caption {
    display: block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dir-tree .comment {
    color: #94a3b8;
    font-style: italic;
}

.dir-tree.bad {
    border-left: 3px solid #f87171;
}

.dir-tree.good {
    border-left: 3px solid #34d399;
}

.content code {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.88em;
}

/* Logo showcase */
.logo-showcase {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, rgba(110,128,180,0.05), rgba(53,67,101,0.08));
    border-radius: 12px;
    margin: 1rem 0 2rem;
}

.logo-showcase::before,
.logo-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.logo-showcase::before {
    left: 0;
    background: linear-gradient(to right, rgba(243,244,246,0.85), transparent);
}

.logo-showcase::after {
    right: 0;
    background: linear-gradient(to left, rgba(243,244,246,0.85), transparent);
}

/* Static logo grid (service pages) */
.logo-showcase--static { overflow: visible; padding: 1.25rem 1rem; }
.logo-showcase--static::before,
.logo-showcase--static::after { display: none; }

.logo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.logo-grid .logo-item {
    flex-shrink: 0;
    height: 28px;
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-logos 25s linear infinite;
}

.logo-track:hover { animation-play-state: paused; }

.logo-item {
    flex-shrink: 0;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.5rem;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.15);
}

.logo-item img { height: 100%; width: auto; display: block; }

/* Logo animation uses 3x duplication: original logos are repeated 3 times
   in the HTML so the track scrolls seamlessly. calc(-100% / 3) shifts
   by exactly one set, creating an infinite loop. */
@keyframes scroll-logos {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% / 3)); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; justify-content: center; flex-wrap: wrap; }
}


.cta-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.cta-row .btn {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease,
    transform 0.1s ease, box-shadow 0.12s ease;
}

.btn-primary {
    background-color: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
    box-shadow: 0 10px 20px rgba(55, 65, 81, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background-color: #2b3754;
    border-color: #2b3754;
    box-shadow: 0 14px 26px rgba(55, 65, 81, 0.3);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-main);
    border-color: var(--border-subtle);
}

.btn-secondary:hover { background-color: #f9fafb; }

.btn-icon {
    height: 20px;
    width: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--accent-dark);
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.15s ease;
}

.back-link:hover { color: var(--accent); }

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
    font-size: 0.9rem;
    border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.breadcrumb a {
    color: var(--accent-dark);
    text-decoration: none;
}
.breadcrumb a:hover,
.breadcrumb a:focus {
    text-decoration: underline;
    color: var(--accent);
}
.breadcrumb [aria-current="page"] {
    color: var(--text-main);
    font-weight: 500;
}
.breadcrumb-sep { color: var(--text-muted); }

footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.footer-right { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.footer-link { color: var(--text-muted); text-decoration: none; transition: color 0.15s ease; }
.footer-link:hover { color: var(--accent-dark); }
.dot { opacity: 0.8; }

/* Floating CTA */
.floating-cta { position: fixed; z-index: 100; display: flex; gap: 0.6rem; }
.floating-cta-btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.6rem 1.3rem 0.6rem 0.75rem; border-radius: 999px;
    font-size: 0.88rem; font-weight: 600; text-decoration: none;
    color: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap;
}
.floating-cta-btn:hover { transform: translateY(-2px); }
.cta-linkedin { background: #0077B5; box-shadow: 0 4px 20px rgba(0,119,181,0.4); }
.cta-linkedin:hover { box-shadow: 0 8px 28px rgba(0,119,181,0.55); }
.cta-linkedin img { height: 22px; width: 22px; border-radius: 5px; }
.cta-malt { background: #FC5656; box-shadow: 0 4px 20px rgba(252,86,86,0.4); }
.cta-malt:hover { box-shadow: 0 8px 28px rgba(252,86,86,0.55); }
.cta-malt img { height: 16px; width: auto; filter: brightness(0) invert(1); }
.cta-email { background: var(--accent-dark); box-shadow: 0 4px 20px rgba(53,67,101,0.4); border: none; cursor: pointer; font-family: inherit; }
.cta-email:hover { box-shadow: 0 8px 28px rgba(53,67,101,0.55); }
.cta-email svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 901px) {
    .floating-cta { bottom: 1.5rem; right: 1.5rem; flex-direction: column; align-items: flex-end; }
}

@media (max-width: 900px) {
    .floating-cta {
        bottom: 0; left: 0; right: 0; flex-direction: row;
        padding: 0.75rem 1rem; background: rgba(255,255,255,0.95);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-subtle); box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
        justify-content: center;
    }
    .floating-cta-btn { padding: 0.65rem; border-radius: 14px; }
    .cta-label { display: none; }
    .shell { padding-bottom: 5rem; }
}

@media (max-width: 480px) { .brand-logo { width: 190px; } }

/* Contact slide-in panel */
.contact-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.15); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.contact-overlay.open { opacity: 1; pointer-events: auto; }
.contact-panel {
    position: fixed; bottom: 2rem; right: 1.5rem; z-index: 201; width: 460px; max-width: calc(100vw - 3rem);
    background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    transform: translateX(calc(100% + 2rem)); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.2,0.64,1), opacity 0.3s ease;
    padding: 1.8rem 2rem; pointer-events: none;
}
.contact-panel.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.contact-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.contact-panel-title { font-size: 0.95rem; font-weight: 600; color: var(--text-main); }
.contact-panel-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-muted); padding: 0.3rem 0.45rem; border-radius: 8px; transition: background 0.12s ease, color 0.12s ease; line-height: 1; }
.contact-panel-close:hover { background: var(--pill-bg); color: var(--text-main); }
.contact-fields { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-fields input, .contact-fields textarea {
    width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border-subtle); border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; color: var(--text-main); background: var(--surface);
    transition: border-color 0.15s ease; resize: vertical;
}
.contact-fields input:focus, .contact-fields textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110,128,180,0.12); }
.contact-fields textarea { min-height: 160px; }
.contact-submit {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.5rem; border-radius: 999px;
    font-size: 0.95rem; font-weight: 500; font-family: inherit; color: #fff; background-color: var(--accent-dark);
    border: none; cursor: pointer; transition: background-color 0.12s ease, transform 0.1s ease;
}
.contact-submit:hover { background-color: #2b3754; transform: translateY(-1px); }
.contact-status { font-size: 0.82rem; color: var(--accent-dark); margin-top: 0.4rem; min-height: 1.2em; }
.contact-status.error { color: #dc2626; }
@media (max-width: 900px) {
    .contact-panel {
        bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%); opacity: 0;
        transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1), opacity 0.25s ease;
    }
    .contact-panel.open { transform: translateY(0); opacity: 1; }
    .contact-panel .contact-fields textarea { min-height: 100px; }
}

/* ===== Homepage layout ===== */
main.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    main.home-grid { grid-template-columns: minmax(0, 1fr); }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background-color: #e5e7eb;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.9rem;
    font-weight: 400;
    line-height: 1.35;
}

.eyebrow-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--accent);
    display: inline-block;
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    line-height: 1.25;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.hero-headline span { display: inline; }

.hero-headline .accent {
    color: var(--accent-dark);
    font-weight: 600;
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 36rem;
    line-height: 1.6;
    margin: 0 0 1.3rem;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
    justify-content: center;
}

.chip {
    font-size: 0.78rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background-color: var(--pill-bg);
    color: #111827;
    border: 1px solid #d1d5db;
    white-space: nowrap;
}

.points {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
}

.point { display: flex; gap: 1rem; align-items: flex-start; }

.point-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.point-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.point-text { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Panel (homepage sidebar) */
.panel {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.panel-block-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.panel-text { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 0.5rem; line-height: 1.6; }
.panel-list { margin: 0.25rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--text-muted); }
.panel-list li + li { margin-top: 0.1rem; }

.panel-link {
    color: var(--accent-dark);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.panel-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.panel-link:visited { color: var(--accent-dark); }

.panel-divider { border: none; border-top: 1px solid var(--border-subtle); margin: 0.25rem 0; }

/* Panel section title – small uppercase label (vs h2.section-title on service pages) */
.panel .section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

/* Logo showcase inside panel – white gradient instead of gray */
.panel .logo-showcase { margin: 0; }
.panel .logo-showcase::before { background: linear-gradient(to right, rgba(255,255,255,0.85), transparent); }
.panel .logo-showcase::after { background: linear-gradient(to left, rgba(255,255,255,0.85), transparent); }

@media (min-width: 901px) {
    .panel { position: sticky; top: 1.5rem; }
}

/* Service cards (homepage) */
.service-cards { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }

.service-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.12s ease, background-color 0.12s ease;
}
.service-card:hover { border-color: var(--accent); background-color: #eef2ff; }
.service-icon { font-size: 1.1rem; flex-shrink: 0; }
.service-label { font-size: 0.85rem; font-weight: 500; flex: 1; }
.service-icon-svg { width: 1.3rem; height: 1.3rem; flex-shrink: 0; color: var(--text-main); }
.service-arrow { font-size: 0.85rem; color: var(--text-muted); flex-shrink: 0; }
.afup-note { margin-top: 0.75rem; font-size: 0.85rem; color: #374151; }

/* Expertise cards (homepage) */
.expertise {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.expertise-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.3rem 1.4rem;
}

.expertise-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expertise-card-text { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

.expertise-card-list {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.expertise-card-list li + li { margin-top: 0.15rem; }

/* References (homepage) */
.references { margin-top: 0.5rem; }
.ref-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }

.ref-chip {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

/* Approach (homepage) */
.approach { margin-top: 0.5rem; }
.approach-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 72rem; }
.approach-text + .approach-text { margin-top: 0.75rem; }

/* Testimonial widget – desktop floating */
.testimonial-widget {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    opacity: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    overflow: hidden;
    border-radius: 50%;
}

@keyframes avatarEnterLeft {
    from { opacity: 0; transform: translate(-80px, 0); }
    to { opacity: 1; transform: translate(0, 0); }
}
@keyframes avatarEnterBottom {
    from { opacity: 0; transform: translate(0, 80px); }
    to { opacity: 1; transform: translate(0, 0); }
}
@keyframes avatarExitLeft {
    from { opacity: 1; transform: translate(0, 0); }
    to { opacity: 0; transform: translate(-80px, 0); }
}
@keyframes avatarExitBottom {
    from { opacity: 1; transform: translate(0, 0); }
    to { opacity: 0; transform: translate(0, 80px); }
}

@keyframes talk {
    0%, 100% { transform: scaleY(1); }
    12% { transform: scaleY(2.2); }
    25% { transform: scaleY(0.7); }
    40% { transform: scaleY(1.8); }
    55% { transform: scaleY(1); }
    70% { transform: scaleY(2); }
    85% { transform: scaleY(0.6); }
}

.talking .testimonial-mouth { animation: talk 0.85s ease-in-out infinite; transform-origin: center center; }

.testimonial-bubble {
    background: var(--surface);
    border-radius: 18px 18px 18px 4px;
    padding: 1rem 1.25rem;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
    will-change: transform, opacity;
}

.testimonial-bubble.enter { opacity: 1; transform: translateY(0); }

.testimonial-bubble.exit {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.testimonial-text {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-main);
    font-style: italic;
    padding-left: 0.75rem;
    border-left: 2px solid var(--accent);
    transition: opacity 0.3s ease;
}

.testimonial-meta { margin-top: 0.6rem; font-size: 0.73rem; color: var(--text-muted); }
.testimonial-meta strong { color: var(--text-main); font-weight: 600; }
.testimonial-dots { display: flex; gap: 4px; margin-top: 0.5rem; }

.testimonial-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border-subtle);
    transition: background 0.3s ease;
}

.testimonial-dot.active { background: var(--accent); }

/* Mobile testimonials – stacked cards */
.testimonials-mobile { display: none; margin-top: 0.5rem; }
.testimonials-stack { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; }

.tcard {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.2rem 1.3rem;
}

.tcard-quote {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-main);
    font-style: italic;
    padding-left: 0.75rem;
    border-left: 2px solid var(--accent);
}

.tcard-meta { margin-top: 0.7rem; font-size: 0.78rem; color: var(--text-muted); }
.tcard-meta strong { color: var(--text-main); font-weight: 600; }

@media (max-width: 900px) {
    .testimonial-widget { display: none !important; }
    .testimonials-mobile { display: block; }
    .home-grid .cta-row { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-widget { display: none !important; }
    .testimonials-mobile { display: block; }
}

/* Contact inline form (homepage mobile) */
.contact-inline {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    max-width: 480px;
}

.contact-intro { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; }

.contact-inline .contact-fields input,
.contact-inline .contact-fields textarea {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
}

.contact-inline .contact-fields textarea { min-height: 80px; }

.contact-inline .contact-submit {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
}

@media (min-width: 901px) { .contact-inline { display: none; } }

/* ===== Partners page ===== */
.page-intro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 42rem;
    margin: 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.partner-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(110, 128, 180, 0.12);
}

.partner-card-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.partner-card-badge { width: 40px; height: auto; flex-shrink: 0; }
.partner-card-name { font-size: 1rem; font-weight: 600; margin: 0; }
.partner-card-name a { color: var(--accent-dark); text-decoration: none; transition: color 0.15s ease; }
.partner-card-name a:hover { color: var(--accent); }
.partner-card-url { font-size: 0.82rem; color: var(--text-muted); }
.partner-card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Expertise list (Symfony pages) */
.expertise-list {
    margin: 0.5rem 0 1.5rem;
    padding-left: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.expertise-list li {
    padding-left: 0.2rem;
}

.expertise-list li + li {
    margin-top: 0.3rem;
}

/* Use cases (Symfony page) */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 0.5rem 0 1.5rem;
}

.use-case {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.2rem 1.3rem;
}

.use-case-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--text-main);
}

.use-case p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Missions (Symfony page) */
.missions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0.5rem 0 1.5rem;
}

.mission {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.4rem 1.5rem;
}

.mission-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.mission-company {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.mission-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.mission-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 0.6rem;
}

.mission p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.mission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.mission-tag {
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background-color: var(--pill-bg);
    color: var(--text-main);
    border: 1px solid #d1d5db;
    white-space: nowrap;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}
