/* ==========================================================================
   Zuber & Co. — brand layer over the Framo corporate theme
   Keep the reference layout, motion and component system; carry our palette.
   ========================================================================== */

:root {
    --color-primary-base: #a8441f;
    --color-secondary-base: #171614;
    --color-tertiary-base: #c08a63;
    --color-quaternary-base: #6b665d;
    --color-accent-base: #c0603a;

    --color-bg: #f7f3ed;
    --color-bg-soft: #efe9e0;
    --color-bg-muted: #e8e1d6;
    --color-border: #dfd6c8;
    --color-border-soft: #e9e2d7;
    --color-dark: #171614;

    --color-text: #171614;
    --color-text-soft: #4f4a43;
    --color-text-muted: #6b665d;
}

html {
    background: var(--color-bg);
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Skip link */
.skip-link {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-dark);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0 0 0.5rem 0.5rem;
    transition: transform 0.2s ease;
}
.skip-link:focus-visible {
    transform: translate(-50%, 0);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Casework names in the trust marquee */
.logo-item span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--color-text-soft);
    white-space: nowrap;
}

/* Hero credential row */
.custom-hero-creds li {
    color: var(--color-text-soft);
}

/* Play affordance on video cards */
.custom-case-go i.ph-play {
    font-size: 1.125rem;
}
.custom-case-media img {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.custom-case:hover .custom-case-media img {
    transform: scale(1.025);
}

/* Fire decoded (YouTube) cards */
.custom-insight-media img {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.custom-insight:hover .custom-insight-media img,
.custom-insight-media:hover img {
    transform: scale(1.025);
}
.custom-insight-play {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #fff;
    background: rgba(23, 22, 20, 0.82);
    border-radius: 999px;
    font-size: 0.9rem;
    pointer-events: none;
}
.custom-insight-dur {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: rgba(23, 22, 20, 0.82);
    border-radius: 0.35rem;
    pointer-events: none;
}
.custom-insight-dur:empty {
    display: none;
}

/* Contact form note */
.custom-contact-note {
    max-width: 42ch;
}

/* Hero film: keep the arch crop honest on portrait sources */
[data-hero-video] {
    background: #100f0e;
}

/* Prefer a warm selection colour throughout */
::selection {
    background: #e7c6b3;
    color: #171614;
}
