/* ==========================================================================
   ThinkLab Dark — shared shell
   Tokens, base, typography, header, footer, and shared utilities.
   Extracted once from the OD redesign (index.html). Per-page CSS is
   enqueued separately as page-*.css.
   ========================================================================== */

/* --- Design tokens --- */
:root {
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --bg-elevated: #111111;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #424245;
    --accent: rgba(255, 255, 255, 0.9);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(0, 0, 0, 0.75);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'DM Mono', monospace;

    --spacing-section: 15vh;
}

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

html {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .display-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-body {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* --- Layout utilities --- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4vw;
}

.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* A light chapter on the dark site (homepage AI Automation, alternate chapters of
   /ai-automation/): the same type and spacing, inverted to Apple's off-white. */
.is-light {
    --bg-base: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --accent: rgba(0, 0, 0, 0.85);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.18);
    background: var(--bg-base);
    color: var(--text-primary);
}

.section-padding {
    padding: var(--spacing-section) 0;
    border-top: 1px solid var(--border-subtle);
}

.pill-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* --- Scroll reveal animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- CTA button --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

/* ==========================================================================
   Header
   ========================================================================== */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 4vw;
    height: 64px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    max-height: 36px;
    width: auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 1023px) {
    .desktop-nav { display: none; }
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link .chevron {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link .chevron {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: -1rem;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.lang-toggle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

/* --- Mobile nav --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1023px) {
    .mobile-toggle { display: flex; }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    z-index: 99;
    padding: 2rem 4vw;
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu .mobile-section {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
}

.mobile-menu .mobile-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

.mobile-lang {
    margin-top: 1.5rem;
    display: inline-flex;
    gap: 1rem;
}

.mobile-lang a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, var(--bg-base) 0%, #08080c 100%);
    border-top: 1px solid var(--border-subtle);
    padding: 8rem 4vw 4rem 4vw;
}

.footer-cta {
    text-align: center;
    margin-bottom: 6rem;
}

.footer-cta h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 4rem;
    }
}

.footer-col h4 {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-col .contact-detail {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-col .contact-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.125rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--text-secondary);
}

.footer-bottom .footer-legal {
    display: flex;
    gap: 2rem;
}

/* --- Footer link area (redesigned 2026-11-03: pictures and icons, not a text wall) ---
   Own class names so the old .footer-links/.footer-col copies in page stylesheets
   don't reach it. Services: photo tiles (a swipe row on phones). Below: company
   icon tiles beside contact cards with icons. */
.fnav {
    display: grid;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
}

.fnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fnav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

/* Services: photo tiles with the name on the picture */
.fnav-services {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 42%;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -4vw;
    padding: 0 4vw;
    scroll-padding: 0 4vw;
}

.fnav-services::-webkit-scrollbar {
    display: none;
}

.fnav-services li {
    scroll-snap-align: start;
}

.fnav-services a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: var(--bg-elevated);
}

.fnav-services img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fnav-services a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.78) 100%);
}

.fnav-services span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    z-index: 1;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
}

.fnav-services a:hover img {
    transform: scale(1.04);
}

/* Company icon tiles + contact cards */
.fnav-split {
    display: grid;
    gap: 3rem;
}

.fnav-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.fnav-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 0.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.fnav-icons svg {
    color: var(--text-primary);
}

.fnav-icons a:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.fnav-cards {
    display: grid;
    gap: 0.75rem;
}

.fnav-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 3rem 0.875rem 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.fnav-card::after {
    content: "→";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.fnav-card:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.fnav-card:hover::after {
    color: var(--text-primary);
    transform: translate(3px, -50%);
}

.fnav-card-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.fnav-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.fnav-card-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fnav-card-value {
    font-size: 1rem;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* Desktop: back to the first footer's columns (Seric): Services and Company as plain
   link lists, Contact as the icon cards (spanning the old Contact + Social columns).
   The phone layout above (photo rail, icon tiles) is unchanged. */
@media (min-width: 900px) {
    .fnav {
        grid-template-columns: 1fr 1fr 2fr;
        gap: 4rem;
        margin-bottom: 4rem;
    }

    .fnav-split {
        display: contents;
    }

    .fnav-label {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        margin-bottom: 1.5rem;
    }

    .fnav-services,
    .fnav-icons {
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .fnav-services a,
    .fnav-icons a {
        display: inline;
        position: static;
        aspect-ratio: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        overflow: visible;
        color: var(--text-secondary);
        font-size: 0.9375rem;
        font-weight: 400;
        transition: color 0.3s ease;
    }

    .fnav-services img,
    .fnav-services a::after,
    .fnav-icons svg {
        display: none;
    }

    .fnav-services span {
        position: static;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
    }

    .fnav-services a:hover,
    .fnav-icons a:hover {
        color: var(--text-primary);
        background: none;
    }

    .fnav-cards {
        grid-template-columns: 1fr;
    }
}

/* --- Language switcher -----------------------------------------------------
   Shows only the current language. The alternatives live in the dropdown, so
   the header never presents two language codes side by side as an ambiguous
   pair. Reuses .nav-item / .dropdown, so it inherits the nav's glass styling
   and its hover behaviour for free. */

.lang-switcher .lang-current {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    gap: 0.4375rem;
}

.lang-switcher .lang-current:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.lang-globe {
    flex-shrink: 0;
    opacity: 0.7;
}

.lang-switcher .lang-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

/* The switcher sits at the end of the nav, so the panel hangs from the right
   edge instead of overflowing the viewport. */
.lang-switcher .lang-dropdown {
    left: auto;
    right: -0.5rem;
    min-width: 170px;
}

.lang-dropdown a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.lang-dropdown .lang-code-sm {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-tertiary);
}

.lang-dropdown a:hover .lang-code-sm,
.lang-dropdown a:focus-visible .lang-code-sm {
    color: var(--text-secondary);
}

/* Keyboard and click parity with the hover rule above: :focus-within covers
   tabbing even with no JS, and the aria-expanded state covers an explicit tap. */
.lang-switcher:focus-within .lang-dropdown,
.lang-switcher .lang-current[aria-expanded="true"] + .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher .lang-current[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* ── "Talk to our AI agent" section (template-parts/agent-cta.php) ── */
.agent-cta { padding: var(--spacing-section) 0; border-top: 1px solid var(--border-subtle); }
.agent-cta-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .agent-cta-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 5rem; } }
.agent-cta-copy h2 { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; margin: 1rem 0 1.25rem; }
.agent-cta-copy p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.65; max-width: 34rem; }
.agent-cta-actions { margin: 2rem 0 1rem; }
.agent-cta-actions .cta-button { cursor: pointer; font: inherit; }
.agent-cta-note { font-size: 0.85rem !important; color: var(--text-tertiary) !important; }
:lang(th) .agent-cta-copy h2 { font-family: var(--font-body); line-height: 1.3; letter-spacing: 0; }

.agent-viz { width: 100%; max-width: 400px; justify-self: center; background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.agent-viz-head { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border-subtle); font-size: 0.85rem; }
.agent-viz-head span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-tertiary); }
.agent-viz-head i { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.15); align-self: center; }
.agent-viz-log { display: grid; gap: 0.6rem; padding: 1.1rem; min-height: 360px; align-content: start; }
.av-msg { max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 16px; font-size: 0.85rem; line-height: 1.45; }
.av-you { justify-self: end; background: var(--text-primary); color: var(--bg-base); border-bottom-right-radius: 5px; }
.av-ai { justify-self: start; background: var(--bg-surface); color: var(--text-primary); border-bottom-left-radius: 5px; }
.av-typing { justify-self: start; display: flex; gap: 4px; padding: 0.7rem 0.85rem; background: var(--bg-surface); border-radius: 16px; }
.av-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); animation: av-dot 1s infinite; }
.av-typing i:nth-child(2) { animation-delay: .15s; } .av-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes av-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.av-card { border: 1px solid var(--border-strong); border-radius: 14px; padding: 0.8rem; display: grid; gap: 0.6rem; }
.av-card-title { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; }
.av-slots { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0.4rem 0.5rem; align-items: center; font-size: 0.75rem; }
.av-slots span { color: var(--text-tertiary); min-width: 2.2rem; }
.av-slots em { font-style: normal; text-align: center; border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.25rem 0; }
.av-booked { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem; border-radius: 14px; background: rgba(52,199,89,.1); border: 1px solid rgba(52,199,89,.35); font-size: 0.8rem; }
.av-booked b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #34c759; color: #04210d; font-size: 0.8rem; }

/* Plays once when the section scrolls in. Without JS or with reduced motion, the end state shows. */
.agent-cta.is-ready .agent-viz-log > * { opacity: 0; transform: translateY(8px); }
.agent-cta.is-ready .av-typing { display: none; }
.agent-cta.is-in .agent-viz-log > * { animation: av-in .45s ease forwards; }
.agent-cta.is-in .av-typing { display: flex; animation: av-blip 1s ease .9s forwards; }
.agent-cta.is-in .av-1 { animation-delay: .3s; }
.agent-cta.is-in .av-3 { animation-delay: 1.9s; }
.agent-cta.is-in .av-4 { animation-delay: 3.3s; }
.agent-cta.is-in .av-5 { animation-delay: 4.5s; }
.agent-cta.is-in .av-6 { animation-delay: 6.6s; }
.agent-cta.is-in .av-pick { animation: av-pick .3s ease 5.8s forwards; }
.agent-cta:not(.is-ready) .av-typing { display: none; }
.agent-cta:not(.is-ready) .av-pick { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }
@keyframes av-in { to { opacity: 1; transform: none; } }
@keyframes av-blip { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; margin: -0.3rem 0; } }
@keyframes av-pick { to { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); } }
@media (prefers-reduced-motion: reduce) {
	.agent-cta.is-ready .agent-viz-log > * { opacity: 1; transform: none; animation: none !important; }
	.agent-cta .av-typing { display: none !important; }
	.agent-cta .av-pick { background: var(--text-primary); color: var(--bg-base); }
}
@media (max-width: 599px) { .agent-viz-log { min-height: 330px; } }
