/* Home page (A4 design, Penpot B12_Home). Loaded after style.css / mobile.css on index.html only. */

:root {
    --hm-navy: #0a192f;
    --hm-section: #112240;
    --hm-surface: #233554;
    --hm-foot: #0b1a30;
    --hm-text: #e2e8f0;
    --hm-muted: #94a3b8;
    --hm-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hm-em { --a: 16, 185, 129; --c: #10b981; }
.hm-bl { --a: 59, 130, 246; --c: #3b82f6; }
.hm-vi { --a: 139, 92, 246; --c: #8b5cf6; }
.hm-am { --a: 245, 158, 11; --c: #f59e0b; }

body:has(main.hm) { background: var(--hm-navy); }

/* Content sits above the fixed particle canvas (z-index 0); particles show through the transparent sections */
.hm, .hm-footer { position: relative; z-index: 1; }
body.chat-fullscreen-active .hm { z-index: auto; } /* let the fixed fullscreen chat stack against the page, as before */

.hm {
    color: var(--hm-text);
    font-family: Inter, system-ui, sans-serif;
}

.hm *, .hm-footer * { box-sizing: border-box; }
.hm h1, .hm h2, .hm h3, .hm p, .hm figure, .hm blockquote, .hm ul { margin: 0; }
.hm ul { padding: 0; list-style: none; }
.hm a { text-decoration: none; }

.hm-wrap,
.hm-wrap.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.hm-i {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    vertical-align: middle;
}

/* ---------- Shared type ---------- */

.hm-eyebrow {
    font: 500 12px/1.2 var(--hm-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #10b981;
}

.hm-eyebrow--muted { color: var(--hm-muted); }
.hm-mono { font: 500 11px/1.2 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--hm-muted); }

.hm h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #fff;
    text-align: left;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.hm h2::after, .hm h2::before { content: none; }

.hm-lead { max-width: 720px; font-size: 18px; line-height: 1.55; color: var(--hm-muted); }

/* ---------- Buttons ---------- */

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, transform .2s;
}

.hm-btn .hm-i { width: 18px; height: 18px; }
.hm-btn--primary { background: #10b981; color: var(--hm-navy); }
.hm-btn--primary:hover { background: #0ea371; transform: translateY(-1px); }
.hm-btn--ghost { border: 1px solid var(--hm-surface); color: #fff; }
.hm-btn--ghost:hover { border-color: #10b981; }
.hm-btn--sm { height: 44px; padding: 0 16px; font-size: 15px; align-self: flex-start; }

/* ---------- Sections ---------- */

.hm-sec {
    position: relative;
    padding: 0 0 64px;
    background: transparent;
}

/* Section glows (700 px radial, as drawn) */
.hm-sec--glow-em { background: radial-gradient(circle 350px at calc(50% + 490px) 150px, rgba(16, 185, 129, .2), transparent); }
.hm-sec--glow-bl { background: radial-gradient(circle 350px at calc(50% - 540px) 150px, rgba(59, 130, 246, .2), transparent); }
.hm-sec--glow-am { background: radial-gradient(circle 350px at calc(50% + 490px) 150px, rgba(245, 158, 11, .2), transparent); }
.hm-sec--glow-vi { background: radial-gradient(circle 350px at calc(50% - 590px) 350px, rgba(139, 92, 246, .2), transparent); }

.hm-head {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.hm-head__text { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }

.hm-head__art {
    position: absolute;
    top: -12px;
    right: 0;
    width: 400px;
    height: auto;
    pointer-events: none;
}

.hm-art--why { width: 336px; top: 0; }

.hm-grid { display: grid; gap: 24px; }
.hm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hm-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hm-grid + .hm-grid, .hm-grid + .hm-quotes, .hm-band + .hm-grid { margin-top: 28px; }

/* ---------- Cards ---------- */

.hm-card,
.hm-tool,
.hm-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(var(--a), .4);
    background: linear-gradient(135deg, rgba(var(--a), .16), rgba(var(--a), 0)) var(--hm-section);
    color: var(--hm-text);
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}

a.hm-card:hover, .hm-tool:hover { transform: translateY(-2px); border-color: rgba(var(--a), .7); }

.hm-card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; color: #fff; }
.hm-card p { font-size: 14px; line-height: 1.5; color: var(--hm-muted); }

.hm-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--hm-surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--c);
}

.hm-flags { display: flex; gap: 8px; }
.hm-flags svg { width: 60px; height: 40px; border-radius: 4px; }

.hm-tile {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 8px;
    border: 1px solid rgba(var(--a), .45);
    background: rgba(var(--a), .16);
    color: var(--c);
}

.hm-tile svg { width: 40px; height: 40px; }

/* Stat cards */
.hm-stat { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 20px; }
.hm-stat__label { font: 500 11px/20px var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--hm-muted); }
.hm-stat__icon { width: 20px; height: 20px; color: var(--c); }
.hm-stat__value { grid-column: 1 / -1; font: 600 40px/1.2 var(--hm-mono); color: var(--c); }

/* Tool cards (A5 card) */
.hm-tool::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--c), rgba(var(--a), 0));
}

.hm-tool::after {
    content: "";
    position: absolute;
    left: -68px;
    top: -68px;
    width: 240px;
    height: 240px;
    background: radial-gradient(closest-side, rgba(var(--a), .28), rgba(var(--a), 0));
    pointer-events: none;
}

.hm-tool > * { position: relative; z-index: 1; }
.hm-tool > .hm-ghost { position: absolute; z-index: 0; top: 50px; right: 24px; width: 120px; height: 110px; pointer-events: none; }
.hm-tool__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hm-tool h3 { font-size: 20px; font-weight: 600; line-height: 1.3; color: #fff; }
.hm-tool p { font-size: 14px; line-height: 1.5; color: var(--hm-muted); }

.hm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(var(--a), .12);
    color: var(--c);
    font: 500 11px/1 var(--hm-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hm-badge .hm-i { width: 14px; height: 14px; }

.hm-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 32px;
    margin-top: auto;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(var(--a), .22);
    background: rgba(10, 25, 47, .7);
}

.hm-strip span { font: 500 10px/1.2 var(--hm-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--c); white-space: nowrap; }
.hm-strip .hm-strip__plain { font: 600 12px/1.2 Inter, sans-serif; letter-spacing: 0; text-transform: none; }
.hm-strip b { font-size: 13px; font-weight: 600; color: var(--hm-text); text-align: right; }
.hm-strip sub, .hm-strip sup { font-size: .7em; }

.hm-tool__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-cat { font: 500 11px/1.2 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c); }

.hm-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: 600 14px/24px Inter, sans-serif;
    color: var(--c);
    cursor: pointer;
}

.hm-go:hover .hm-i, .hm-more:hover .hm-i, a.hm-card:hover .hm-more .hm-i { transform: translateX(3px); }
.hm-go .hm-i, .hm-more .hm-i { transition: transform .2s; }

/* Promo panel in the tool grid */
.hm-promo {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 12px 12px 28px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, .45);
    background: linear-gradient(135deg, rgba(139, 92, 246, .32), rgba(59, 130, 246, .2)) var(--hm-section);
}

.hm-promo__text { display: flex; flex-direction: column; gap: 12px; width: 244px; flex: none; }
.hm-promo__text .hm-eyebrow { color: #8b5cf6; }
.hm-promo h3 { font-size: 20px; font-weight: 600; line-height: 1.3; color: #fff; }
.hm-promo__art { flex: 1; min-width: 0; height: auto; max-height: 240px; }

/* ---------- Hero ---------- */

.hm-hero {
    position: relative;
    padding: 48px 0 56px;
    border-top: 1px solid var(--hm-surface);
    border-bottom: 1px solid var(--hm-surface);
    background:
        radial-gradient(circle 400px at calc(50% - 440px) 315px, rgba(16, 185, 129, .22), transparent),
        radial-gradient(circle 450px at calc(50% + 370px) 510px, rgba(59, 130, 246, .26), transparent),
        radial-gradient(circle 350px at calc(50% + 10px) 1050px, rgba(139, 92, 246, .16), transparent),
        transparent;
    overflow: hidden;
}

.hm-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text chat" "art premium";
    column-gap: 80px;
    row-gap: 24px;
    align-items: start;
}

.hm-hero__text { grid-area: text; display: flex; flex-direction: column; gap: 20px; }
.hm-hero__brand { display: flex; align-items: center; gap: 16px; }
.hm-hero__logo { width: 72px; height: 72px; padding: 6px; border-radius: 16px; background: #fff; object-fit: contain; }

.hm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .12);
    color: #10b981;
    font: 500 11px/1 var(--hm-mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hm-chip .hm-i { width: 14px; height: 14px; }

.hm-hero h1 {
    min-height: 3.45em; /* typing phrases wrap to up to three lines; reserve them to avoid layout shift */
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #fff;
    text-align: left;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.hm-hero h1 .typing-accent { font-family: inherit; font-weight: 700; color: #10b981; background: none; -webkit-text-fill-color: #10b981; }
.hm-hero h1 .typing-cursor { background: #10b981; }

.hm-hero__sub { font-size: 20px; font-weight: 600; line-height: 1.3; color: #fff; }
.hm-hero__lead { font-size: 18px; line-height: 1.55; color: var(--hm-muted); }
.hm-hero__desc { font-size: 15px; line-height: 1.55; color: var(--hm-muted); }
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 4px; }
.hm-hero__note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hm-muted); }
.hm-hero__note .hm-i { color: #10b981; }

.hm-hero__art {
    grid-area: art;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, .4);
    background: linear-gradient(135deg, rgba(59, 130, 246, .26), rgba(16, 185, 129, .14)) var(--hm-section);
    overflow: hidden;
}

.hm-hero__flow { font: 500 11px/1.2 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--hm-muted); padding-top: 39px; }
.hm-hero__flow span { margin: 0 6px; }
.hm .hm-hero__art .illus-hero { width: 100%; max-width: 560px; height: auto; margin: 0; }

.hm-premium {
    grid-area: premium;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, .4);
    background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, 0)) var(--hm-section);
}

.hm .hm-premium__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.hm-premium__title .hm-i { width: 20px; height: 20px; color: #10b981; }
.hm-premium p { font-size: 14px; line-height: 1.6; color: var(--hm-muted); }
.hm-premium strong { color: var(--hm-text); font-weight: 600; }
.hm-premium__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.hm-pchip {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px 0 8px;
    border-radius: 8px;
    border: 1px solid rgba(var(--a), .35);
    background: rgba(var(--a), .12);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s;
}

.hm-pchip:hover { border-color: var(--c); }
.hm-pchip svg { width: 24px; height: 24px; flex: none; color: var(--c); }

/* ChemAI Assistant panel (existing chat markup, restyled) */
.hm-hero .chat-container {
    grid-area: chat;
    border-radius: 12px;
    border: 1px solid var(--hm-surface);
    background: var(--hm-section);
    box-shadow: none;
    backdrop-filter: none;
    overflow: hidden;
}

.hm-hero .chat-container:not(.fullscreen) {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 604px;
    margin: 0;
}

.hm-hero .chat-container .chat-header {
    min-height: 72px;
    padding: 0 16px;
    gap: 12px;
    background: transparent;
    border-bottom: 1px solid var(--hm-surface);
}

.hm-hero .chat-container .chatbot-logo { width: 40px; height: 40px; padding: 3px; border-radius: 9px; background: #fff; }
.hm-hero .chat-container .chat-title h2 { display: block; margin: 0; font-size: 17px; font-weight: 600; color: #fff; text-align: left; }
.hm-hero .chat-container .chat-title h2 .ui-icon { display: none; }
.hm-hero .chat-container .chat-title p { margin: 4px 0 0; font-size: 13px; color: var(--hm-muted); }
.hm-hero .chat-container .ai-status-dot { background: #10b981; }

.hm-hero .chat-container .control-btn,
.hm-hero .chat-container .fullscreen-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--hm-surface);
    background: transparent;
    color: var(--hm-text);
    box-shadow: none;
    padding: 0; /* style.css side padding squeezed the icon to 10px */
    justify-content: center;
}

.hm-hero .chat-container .chat-header .control-btn svg,
.hm-hero .chat-container .fullscreen-btn svg { width: 18px; height: 18px; }

.hm-hero .chat-container .chat-messages {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 20px;
    background: var(--hm-navy);
    isolation: isolate;
}

.hm-hero .chat-container .chat-messages::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../brand/art/home/chat-wallpaper.svg") left top / 578px auto repeat-y;
    opacity: .2;
    pointer-events: none;
}

/* Fullscreen: wallpaper spans the whole screen and scrolls with the chat (the absolute
   ::before only covers the first screenful); the 80% navy layer stands in for its .2 opacity.
   Padding keeps the 1040px reading column. */
.hm-hero .chat-container.fullscreen .chat-messages {
    max-width: none !important;
    padding-inline: calc(max(0px, 50% - 520px) + clamp(1rem, 4vw, 2.5rem)) !important;
    background:
        linear-gradient(rgba(8, 22, 39, .8), rgba(8, 22, 39, .8)),
        url("../brand/art/home/chat-wallpaper.svg") left top / 578px auto repeat !important;
    background-attachment: local !important;
}

.hm-hero .chat-container.fullscreen .chat-messages::before { display: none; }

.hm-hero .chat-container .bot-message .message-content {
    max-width: 464px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--hm-surface);
    background: var(--hm-section);
    color: var(--hm-text);
    box-shadow: none;
    text-align: left;
}

.hm-hero .chat-container .bot-message .message-content > p { font-size: 15px; line-height: 1.6; color: var(--hm-text); }
.hm-hero .chat-container .bot-message .message-content > ul { margin: 8px 0; padding: 0; list-style: none; }

.hm-hero .chat-container .bot-message .message-content > ul li {
    position: relative;
    padding: 4px 0 4px 24px;
    font-size: 15px;
    color: var(--hm-text);
}

.hm-hero .chat-container .bot-message .message-content > ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 10px;
    height: 5px;
    border-left: 1.5px solid #10b981;
    border-bottom: 1.5px solid #10b981;
    transform: rotate(-45deg);
}

.hm-hero .chat-container .message-header .message-time { font: 500 11px/1.2 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--hm-muted); }
.hm-hero .chat-container .bot-message .message-header .message-time::before { content: "ChemAI \00b7  "; }
.hm-hero .chat-container .tts-btn { color: #10b981; background: transparent; border: 0; }

.hm-hero .chat-container .chat-input-container {
    padding: 16px;
    background: transparent;
    border-top: 1px solid var(--hm-surface);
}

.hm-hero .chat-container .chat-form { gap: 8px; align-items: center; }
.hm-hero .chat-container .input-controls { gap: 8px; }

.hm-hero .chat-container .input-controls .control-btn { width: 44px; height: 44px; }

.hm-hero .chat-container #userInput {
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--hm-surface);
    background: var(--hm-navy);
    color: var(--hm-text);
    font-size: 15px;
}

.hm-hero .chat-container .chat-form button[type="submit"] {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 8px;
    border: 0;
    background: #10b981;
    color: var(--hm-navy);
}

/* ---------- Virtual lab band ---------- */

.hm-band {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, .4);
    background: linear-gradient(135deg, rgba(16, 185, 129, .22), rgba(59, 130, 246, .18)) var(--hm-section);
}

.hm-band img, .hm-band svg { display: block; width: 100%; height: auto; border-radius: 40px; background: #f3f7fa; }

/* ---------- Songs ---------- */

.hm-songs {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, .45);
    background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(245, 158, 11, .1)) var(--hm-section);
}

.hm-songs__text { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.hm-songs__text > p:not(.hm-eyebrow) { max-width: 620px; font-size: 16px; line-height: 1.55; color: var(--hm-muted); }
.hm-songs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }
.hm-songs__actions .hm-btn { height: 44px; padding: 0 16px; font-size: 15px; }

.hm-songs__art {
    display: grid;
    place-items: center;
    width: 320px;
    height: 184px;
    flex: none;
    border-radius: 8px;
    border: 1px solid var(--hm-surface);
    background: var(--hm-navy);
}

.hm-songs__art svg { width: 200px; height: 120px; }

/* ---------- Why ---------- */

.hm-why { min-height: 302px; }
.hm-why h3 { font-size: 20px; }
.hm-why .hm-why__art { width: 160px; height: 120px; margin: -4px 0 8px -16px; }

.hm-why__icon {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(var(--a), .4);
    background: rgba(var(--a), .12);
    color: var(--c);
}

.hm-why__icon .hm-i { width: 18px; height: 18px; }

/* ---------- Testimonials ---------- */

.hm-quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hm-quote { gap: 16px; background: linear-gradient(135deg, rgba(var(--a), .12), rgba(var(--a), 0)) var(--hm-section); }
.hm-quote__mark { width: 18px; height: 18px; color: var(--c); }
.hm-quote blockquote { padding: 0; border: 0; font-size: 15px; line-height: 1.55; font-style: normal; color: var(--hm-text); }
.hm-quote figcaption { display: flex; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hm-surface); }
.hm-quote figcaption > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.hm-quote b { font-size: 14px; font-weight: 600; color: #fff; }
.hm-quote small { font-size: 13px; color: var(--hm-muted); }
.hm-flag { width: 24px; height: 16px; margin-top: 4px; border-radius: 2px; }

.hm-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    border: 1px solid rgba(var(--a), .6);
    background: rgba(var(--a), .15);
    color: var(--c);
    font: 500 15px var(--hm-mono);
}

/* ---------- FAQ ---------- */

.hm-faq { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: stretch; }
.hm-faq__list { display: flex; flex-direction: column; gap: 12px; }

.hm-faq details {
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--hm-surface);
    background: var(--hm-section);
    transition: border-color .2s;
}

.hm-faq details[open] {
    border-color: rgba(16, 185, 129, .4);
    background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(16, 185, 129, 0)) var(--hm-section);
}

.hm-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.hm-faq summary::-webkit-details-marker { display: none; }

.hm-faq summary::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-right: 1.5px solid var(--hm-muted);
    border-bottom: 1.5px solid var(--hm-muted);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s;
}

.hm-faq details[open] summary::after { border-color: #10b981; transform: translateY(2px) rotate(-135deg); }
.hm-faq details p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--hm-muted); }

.hm-faq__art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 32px 0;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, .35);
    background: linear-gradient(160deg, rgba(16, 185, 129, .16), rgba(59, 130, 246, .14) 55%, rgba(139, 92, 246, .16));
}

.hm-faq__art svg { width: 160px; height: 120px; }

/* ---------- CTA ---------- */

.hm-cta {
    position: relative;
    padding: 64px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, .5);
    background: linear-gradient(135deg, rgba(16, 185, 129, .34), rgba(59, 130, 246, .3)) var(--hm-section);
    overflow: hidden;
}

.hm-cta__body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.hm .hm-cta h2 { max-width: 760px; font-size: 32px; text-align: center; }
.hm-cta__body > p { max-width: 760px; font-size: 18px; line-height: 1.55; color: var(--hm-muted); }

.hm-elements { display: flex; gap: 8px; }

.hm-elements span {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 48px;
    height: 48px;
    padding: 0 0 8px 7px;
    border-radius: 8px;
    border: 1px solid var(--hm-surface);
    background: var(--hm-navy);
    font: 500 18px/1 var(--hm-mono);
    color: #fff;
}

.hm-elements span.is-on { border-color: #10b981; color: #10b981; }
.hm-elements i { position: absolute; top: 5px; left: 7px; font: 400 9px var(--hm-mono); color: var(--hm-muted); }

.hm-cta__side, .hm-cta__energy, .hm-cta__orbit { position: absolute; pointer-events: none; }
.hm-cta__side { top: 90px; width: 160px; height: 120px; }
.hm-cta__side--l { left: 64px; }
.hm-cta__side--r { right: 64px; }
.hm-cta__energy { left: 0; bottom: 0; width: 480px; height: 120px; }
.hm-cta__orbit { right: 0; bottom: -2px; width: 480px; height: 161px; }

/* ---------- Footer ---------- */

.hm-footer { margin-top: 0; padding: 64px 0 32px; border-top: 0; background: var(--hm-foot); color: var(--hm-text); }
.hm-footer__grid { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: 48px; }
.hm-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.hm-footer__name { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
.hm-footer__name img { width: 40px; height: 40px; padding: 3px; border-radius: 8px; background: #fff; }
.hm-footer__brand > p:not(.hm-footer__name) { margin: 0; font-size: 14px; line-height: 1.6; color: var(--hm-muted); }
.hm-footer__mail { display: flex; align-items: center; gap: 8px; }
.hm-footer__mail .hm-i, .hm-footer__mail a { color: #10b981; }
.hm-footer h4 { margin: 0 0 12px; }
.hm-footer__links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-footer__links--2 { grid-template-columns: auto auto; justify-content: start; column-gap: 24px; }
.hm-footer__links a { font-size: 14px; color: var(--hm-text); text-decoration: none; }
.hm-footer__links a:hover { color: #10b981; }
.hm-footer__bottom { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--hm-surface); }
.hm-footer__bottom p { margin: 0; font-size: 13px; color: var(--hm-muted); text-align: left; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .hm-grid--4, .hm-quotes { grid-template-columns: repeat(2, 1fr); }
    .hm-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .hm-promo { grid-column: 1 / -1; }
    .hm-head__art { position: static; width: 100%; max-width: 400px; }
    .hm-cta__side { display: none; }
}

@media (max-width: 1023px) {
    .hm-hero__grid { grid-template-columns: 1fr; grid-template-areas: "text" "premium" "art" "chat"; }
}

@media (max-width: 760px) {
    .hm-wrap, .hm-wrap.container { padding: 0 16px; }
    .hm-hero { padding: 32px 0 40px; }
    .hm-hero h1 { font-size: 32px; }
    .hm-hero__lead { font-size: 16px; }
    .hm-hero__desc { font-size: 14px; }
    .hm-hero__actions { flex-direction: column; }
    .hm-hero__actions .hm-btn { width: 100%; }
    .hm-premium { padding: 20px; }
    .hm-pchip { font-size: 13px; }
    .hm-hero__flow { padding-top: 0; font-size: 9px; }
    .hm-hero__text, .hm-hero__text h1, .hm-hero__text p { text-align: left; }
    .hm-hero__brand { justify-content: flex-start; }
    .hm-pchip { white-space: nowrap; }
    .hm-hero .chat-container:not(.fullscreen) { height: auto; }
    .hm-hero .chat-container:not(.fullscreen) .chat-messages { flex: none; height: 400px; max-height: none; }
    .hm-hero .chat-container .chat-header { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; padding: 12px 16px; }
    .hm-hero .chat-container .chat-header-left { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
    .hm-hero .chat-container .chat-header-controls { flex-wrap: nowrap; gap: 8px; }
    .hm-hero .chat-container .chat-form { display: flex; flex-flow: row wrap; gap: 8px; }
    .hm-hero .chat-container .input-controls { order: 2; display: flex; width: 100%; }
    .hm-hero .chat-container #userInput { order: 0; flex: 1 1 0; width: auto; min-width: 0; margin: 0; }
    .hm-hero .chat-container .chat-form button[type="submit"] { order: 1; margin: 0; }
    .hm-hero .chat-container .chat-header .chat-header-controls .save-chat-btn,
    .hm-hero .chat-container .chat-header .chat-header-controls .minimize-btn { display: none; }

    .hm h2 { font-size: 24px; }
    .hm-lead { font-size: 16px; }
    .hm-head__art { max-width: none; }
    .hm-grid--3, .hm-grid--4 { grid-template-columns: 1fr; }
    .hm-grid { gap: 16px; }

    .hm-promo { flex-direction: column-reverse; align-items: stretch; padding: 20px; }
    .hm-promo__text { width: auto; }
    .hm-btn--sm { align-self: stretch; }

    .hm-songs { flex-direction: column; align-items: stretch; gap: 24px; padding: 20px; }
    .hm-songs__actions { flex-direction: column; align-items: stretch; }
    .hm-songs__art { width: 100%; }
    .hm-band { padding: 12px; }
    .hm-band img, .hm-band svg { border-radius: 16px; }

    .hm-stat__value { font-size: 36px; }

    .hm-quotes {
        display: flex;
        gap: 16px;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .hm-quote { flex: 0 0 312px; scroll-snap-align: start; }

    .hm-faq { grid-template-columns: 1fr; }
    .hm-faq__art { display: none; }
    .hm-faq details { padding: 16px; }

    .hm-cta { padding: 96px 20px 32px; }
    .hm .hm-cta h2 { font-size: 24px; }
    .hm-cta__body > p { font-size: 16px; }
    .hm-cta__body .hm-btn { width: 100%; }
    .hm-elements span:last-child { display: none; }
    .hm-cta__orbit { display: none; }
    .hm-cta__energy { top: 8px; left: -40px; bottom: auto; width: 420px; opacity: .8; }

    .hm-footer { padding: 48px 0 96px; }
    .hm-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .hm-footer__links:not(.hm-footer__links--2) { grid-template-columns: 1fr 1fr; column-gap: 24px; }
    .hm-footer__links--2 { column-gap: 16px; }
}

/* ---------- Motion (A4 motion board: play once on entry, then a quiet idle loop) ---------- */

.hm-art * { transform-box: fill-box; }
.hm-art [transform] { transform-box: view-box; } /* keep rotate(a cx cy) attributes in user space */

@media (prefers-reduced-motion: no-preference) {
    .hm-art.is-off *, .hm-art.is-off { animation-play-state: paused !important; }

    @keyframes hm-rise { from { opacity: 0; transform: translateY(6px); } }
    @keyframes hm-fade { from { opacity: 0; } }
    @keyframes hm-grow { from { transform: scaleY(0); } }
    @keyframes hm-pop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
    @keyframes hm-pop-in { from { opacity: 0; transform: scale(.8); } }
    @keyframes hm-scale-in { from { opacity: 0; transform: scale(.9); } }
    @keyframes hm-draw { from { stroke-dashoffset: 1; } }
    @keyframes hm-pulse { 50% { transform: scale(1.06); } }
    @keyframes hm-twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(20deg) scale(1.2); } }
    @keyframes hm-drop { 0% { opacity: 0; transform: translateY(-10px); } 70% { opacity: 1; transform: translateY(2px); } 100% { transform: none; } }
    @keyframes hm-breathe { 50% { transform: scaleX(.6); } }
    @keyframes hm-light { from { opacity: .2; } }
    @keyframes hm-shine { 0%, 90%, 100% { transform: scale(1); } 95% { transform: scale(1.15); } }
    @keyframes hm-breathe-n { 50% { transform: scale(1.12); } }

    /* Elements wait at frame A until their section is revealed */
    .reveal:not(.visible) .hm-art *, .reveal:not(.visible) .hm-art { animation-play-state: paused; }

    /* Trust */
    .hm-art--trust [class^="head-"], .hm-art--trust [class^="body-"] { animation: hm-rise .6s ease-out both; }
    .hm-art--trust .head-2, .hm-art--trust .body-2 { animation-delay: .12s; }
    .hm-art--trust .head-3, .hm-art--trust .body-3 { animation-delay: .24s; }
    .hm-art--trust .people-underline { animation: hm-fade .5s .4s both; }
    .hm-art--trust [class^="bar-"] { transform-origin: bottom; animation: hm-grow 1s ease-out .3s both; }
    .hm-art--trust .bar-2 { animation-delay: .45s; }
    .hm-art--trust .bar-3 { animation-delay: .6s; }
    .hm-art--trust .bar-4 { animation-delay: .75s; }
    .hm-art--trust .trend-line, .hm-art--trust .shield-check { stroke-dasharray: 1; }
    .hm-art--trust .trend-line { animation: hm-draw .5s ease-out 1.2s both; }
    .hm-art--trust .trend-arrow { transform-origin: center; animation: hm-pop .3s 1.6s both; }
    .hm-art--trust .shield { transform-origin: center; animation: hm-scale-in .4s .6s both, hm-pulse .3s 1.8s; }
    .hm-art--trust .shield-check { animation: hm-draw .3s 1.5s both; }

    /* Countries */
    .hm-art--countries .globe, .hm-art--countries .globe-grid { transform-origin: center; animation: hm-scale-in .5s ease-out both; }
    .hm-art--countries .globe-meridian { transform-origin: center; animation: hm-scale-in .5s ease-out both, hm-breathe 6s ease-in-out 2s infinite; }
    .hm-art--countries [class^="pin-"] { animation: hm-drop .6s ease-out .4s both; }
    .hm-art--countries [class^="pin-amber"] { animation-delay: .55s; }
    .hm-art--countries [class^="pin-violet"] { animation-delay: .7s; }
    .hm-art--countries [class^="pin-green"] { animation-delay: .85s; }
    .hm-art--countries [class^="route-"] { animation: hm-fade .8s .8s both; }

    /* Testimonials */
    .hm-art--testi .head-left, .hm-art--testi .body-left { animation: hm-fade .3s both; }
    .hm-art--testi .bubble-left { transform-origin: left bottom; animation: hm-pop-in .3s .2s both; }
    .hm-art--testi [class^="star-"] { transform-origin: center; animation: hm-pop .6s .9s both, hm-shine 6s 3s infinite; }
    .hm-art--testi .star-2 { animation-delay: 1.02s, 3.3s; }
    .hm-art--testi .star-3 { animation-delay: 1.14s, 3.6s; }
    .hm-art--testi .star-4 { animation-delay: 1.26s, 3.9s; }
    .hm-art--testi .star-5 { animation-delay: 1.38s, 4.2s; }
    .hm-art--testi .lines-left { animation: hm-fade .4s .9s both; }
    .hm-art--testi .head-right, .hm-art--testi .body-right { animation: hm-fade .3s .8s both; }
    .hm-art--testi .bubble-right { transform-origin: right bottom; animation: hm-pop-in .3s 1s both; }
    .hm-art--testi .lines-right { animation: hm-fade .2s 1.8s both; }

    /* CTA energy profile (entry); the marble loop is added by js/home-motion.js */
    .hm-art--energy .axes, .hm-art--energy .axis-arrows { animation: hm-fade .3s both; }
    .hm-art--energy .curve { stroke-dasharray: 1; animation: hm-draw 1s ease-out .2s both; }
    .hm-art--energy [class^="dot-"] { transform-origin: center; animation: hm-pop .4s .5s both; }
    .hm-art--energy .dot-transition { animation-delay: .8s; }
    .hm-art--energy .dot-product { animation-delay: 1.1s; }

    /* CTA orbitals (entry + nucleus); electron and trail-dot loops are added by js/home-motion.js */
    .hm-art--orbit [class^="orbit-"] { stroke-dasharray: 1; animation: hm-draw .8s ease-out both; }
    .hm-art--orbit .orbit-2 { animation-delay: .15s; }
    .hm-art--orbit .orbit-3 { animation-delay: .3s; }
    .hm-art--orbit .nucleus { transform-origin: center; animation: hm-breathe-n 3s ease-in-out infinite; }
    .hm-art--orbit .trail-path { stroke-dasharray: 3 5; animation: hm-trail 3s linear infinite; }
    @keyframes hm-trail { to { stroke-dashoffset: -16; } }

    /* Idle sparkles everywhere */
    .hm-art [class^="spark-"] { transform-origin: center; animation: hm-twinkle 2.4s ease-in-out infinite; }

    /* Hero (A4 motion 1): one 6 s loop. Percent = seconds / 6; 90-100 % fades the answer and coloured paths back to Frame A */
    @keyframes h-question { 0% { opacity: 0; transform: translateX(-12px); } 6.67%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
    @keyframes h-dot { 0%, 1% { opacity: 0; } 2.5%, 90% { opacity: 1; } 100% { opacity: 0; } }
    @keyframes h-draw { 0%, 13.33% { stroke-dashoffset: 1; opacity: 1; } 33.33%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
    @keyframes h-node { 0% { transform: scale(.6); } 4.17%, 76% { transform: scale(1); } 86%, 100% { transform: scale(.6); } }
    @keyframes h-answer { 0%, 36.67% { opacity: 0; transform: scale(.96); } 46.67%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
    @keyframes h-badge { 0%, 46.67% { transform: scale(0); } 50% { transform: scale(1.15); } 52%, 100% { transform: scale(1); } }
    @keyframes h-liquid { 0%, 46.67% { transform: scaleY(0); } 60%, 90% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
    @keyframes h-bubble { 0% { opacity: 0; transform: none; } 20% { opacity: .8; } 100% { opacity: 0; transform: translateY(-10px); } }
    @keyframes h-breathe { 50% { opacity: .75; } }
    @keyframes h-shimmer { 0%, 100% { opacity: .22; } 50% { opacity: .4; } }
    @keyframes h-drift { 25% { transform: translate(4px, -2px) rotate(6deg); } 75% { transform: translate(-4px, 2px) rotate(-6deg); } }
    .hm-art--hero * { transform-origin: center; }
    .hm-art--hero .h-question { animation: h-question 6s ease-out infinite; }
    .hm-art--hero .h-trail-in, .hm-art--hero .h-trail-out, .hm-art--hero .h-trail-lab { animation: h-dot 6s infinite both; }
    .h-trail-in-0 { animation-delay: .4s !important; } .h-trail-in-1 { animation-delay: .52s !important; } .h-trail-in-2 { animation-delay: .64s !important; }
    .h-trail-out-0 { animation-delay: 2.2s !important; } .h-trail-out-1 { animation-delay: 2.32s !important; } .h-trail-out-2 { animation-delay: 2.44s !important; }
    .h-trail-lab-0 { animation-delay: 2.8s !important; } .h-trail-lab-1 { animation-delay: 2.93s !important; } .h-trail-lab-2 { animation-delay: 3.06s !important; }
    .h-trail-lab-3 { animation-delay: 3.19s !important; } .h-trail-lab-4 { animation-delay: 3.32s !important; } .h-trail-lab-5 { animation-delay: 3.45s !important; }
    .hm-art--hero .h-path-ai, .hm-art--hero .h-path-ai-double, .hm-art--hero .h-path-chem { stroke-dasharray: 1; animation: h-draw 6s ease-in-out infinite; }
    .hm-art--hero .h-nodes-ai, .hm-art--hero .h-nodes-chem { animation: h-node 6s ease-out infinite both; }
    .h-nodes-ai-0 { animation-delay: .8s !important; } .h-nodes-ai-1, .h-nodes-chem-0 { animation-delay: 1.4s !important; } .h-nodes-ai-2, .h-nodes-chem-1 { animation-delay: 2s !important; }
    .hm-art--hero .h-answer { animation: h-answer 6s ease-out infinite; }
    .hm-art--hero .h-badge { animation: h-badge 6s ease-out infinite; }
    .hm-art--hero .h-liquid { transform-origin: bottom; animation: h-liquid 6s ease-out infinite; }
    .hm-art--hero .h-bubbles { animation: h-bubble 1.4s ease-out infinite; }
    .hm-art--hero .h-nodes-idle { animation: h-breathe 3s ease-in-out infinite; }
    .h-nodes-idle-1 { animation-delay: -1.1s !important; } .h-nodes-idle-2 { animation-delay: -2.3s !important; } .h-nodes-idle-3 { animation-delay: -.6s !important; }
    .hm-art--hero .h-edges, .hm-art--hero .h-ann-edges { animation: h-shimmer 4s ease-in-out infinite; }
    .h-ann-top-right-edges { animation-delay: -1.3s !important; } .h-ann-bottom-edges { animation-delay: -2.6s !important; }
    .hm-art--hero .h-ann-node { animation: h-breathe 3s ease-in-out infinite; }
    .h-ann-node:nth-child(3n) { animation-delay: -1.1s !important; } .h-ann-node:nth-child(3n+1) { animation-delay: -2.2s !important; }
    /* Side-network signal: 10 % in Frame A, full in Frames B-C, back with the loop end */
    @keyframes h-sig { 0%, 13.33% { opacity: .1; } 33.33%, 90% { opacity: 1; } 100% { opacity: .1; } }
    .hm-art--hero .h-ann-signal { animation: h-sig 6s ease-in-out infinite; }
    .hm-art--hero .h-spark, .hm-art--hero .h-spark-small { animation: hm-twinkle 2.4s ease-in-out infinite; }
    .hm-art--hero .h-molecule, .hm-art--hero .h-ring-grp { animation: h-drift 8s ease-in-out infinite; }
    .hm-art--hero .h-ring-grp { animation-delay: -4s; }

    /* FAQ art, real-time help (5 s loop): question bobs, answer bubble pops in, typing dots bounce, bolt flashes */
    @keyframes fq-bob { 50% { transform: translateY(-3px); } }
    @keyframes fq-pop { 0%, 8% { opacity: 0; transform: scale(.85); } 16%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.85); } }
    @keyframes fq-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
    @keyframes fq-bolt { 0%, 70%, 100% { opacity: .55; transform: none; } 78% { opacity: 1; transform: scale(1.2) rotate(-8deg); } 86% { opacity: .8; transform: scale(.95); } }
    .hm-art--faq-help .fq-q { animation: fq-bob 3s ease-in-out infinite; }
    .hm-art--faq-help .fq-a { transform-origin: 80% 100%; animation: fq-pop 5s ease-out infinite; }
    .hm-art--faq-help .fq-dot { animation: fq-dot 1.2s ease-in-out infinite; }
    .hm-art--faq-help .fq-dot-1 { animation-delay: .15s; } .hm-art--faq-help .fq-dot-2 { animation-delay: .3s; }
    .hm-art--faq-help .fq-bolt { transform-origin: center; animation: fq-bolt 2.5s ease-in-out infinite; }

    /* FAQ art, interactive tools (5 s loop): cursor glides to the middle knob, drags it left, lets go and returns */
    @keyframes ft-cursor { 0%, 12% { transform: none; } 32%, 38% { transform: translate(2px, -20px); } 40% { transform: translate(2px, -20px) scale(.9); } 62%, 72% { transform: translate(-12px, -20px) scale(.9); } 76% { transform: translate(-12px, -20px); } 94%, 100% { transform: none; } }
    @keyframes ft-drag { 0%, 40% { transform: none; } 62%, 84% { transform: translateX(-14px); } 100% { transform: none; } }
    @keyframes ft-drift { 50% { transform: translateX(6px); } }
    @keyframes ft-pulse { 50% { transform: scale(1.12); } }
    .hm-art--faq-tools .ft-cursor { animation: ft-cursor 5s ease-in-out infinite; }
    .hm-art--faq-tools .ft-knob-1 { animation: ft-drag 5s ease-in-out infinite; }
    .hm-art--faq-tools .ft-knob-0 { animation: ft-drift 3.2s ease-in-out infinite; }
    .hm-art--faq-tools .ft-knob-2 { animation: ft-drift 3.2s ease-in-out -1.6s infinite; }
    .hm-art--faq-tools .ft-centre { transform-origin: center; animation: ft-pulse 2.4s ease-in-out infinite; }
    .hm-art--faq-tools .ft-atom { transform-origin: center; animation: ft-pulse 2.4s ease-in-out -1.2s infinite; }

    /* Testimonials typing dots (added by js/home-motion.js): bounce one after another, then fade out */
    @keyframes hm-typing { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 35% { transform: translateY(-3px); } 55% { transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
    .hm-art--testi .hm-typing { opacity: 0; animation: hm-typing .5s ease-in-out .5s both; }
    .hm-art--testi .hm-typing-1 { animation-delay: .6s; }
    .hm-art--testi .hm-typing-2 { animation-delay: .7s; }
    .hm-art--testi .hm-typing--right { animation-delay: 1.3s; }
    .hm-art--testi .hm-typing--right.hm-typing-1 { animation-delay: 1.4s; }
    .hm-art--testi .hm-typing--right.hm-typing-2 { animation-delay: 1.5s; }

    /* Section headers reused from the Tools page (A5 / tools - motion). Entries are replayed by js/home-motion.js */
    @keyframes t-fall { 0% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
    @keyframes t-rise8 { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
    @keyframes t-rise10 { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
    @keyframes t-drain { 0%, 100% { transform: none; } 90% { transform: scaleY(.76); } }
    @keyframes t-fill-y { from { transform: scaleY(0); } }
    @keyframes t-fill-x { from { transform: scaleX(0); } }
    @keyframes t-slide-knob { from { transform: translateX(-80px); } }
    @keyframes t-back-out { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }
    @keyframes t-pop-back { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: none; } }
    @keyframes t-capsule { from { opacity: 0; transform: rotate(-8deg); } }
    @keyframes t-frag { from { opacity: 0; transform: translateY(8px); } }
    @keyframes t-bob3 { 50% { transform: translateY(-3px); } }
    @keyframes t-sway4 { 25% { transform: translateX(4px); } 75% { transform: translateX(-4px); } }
    @keyframes t-spin { to { transform: rotate(360deg); } }
    @keyframes t-dim { 50% { opacity: .4; } }
    .hm-art--vlab .v-burette-liq { transform-origin: bottom; animation: t-drain 6s ease-in-out infinite; }
    .hm-art--vlab .v-drop { animation: t-fall 1.2s ease-in infinite; }
    .hm-art--vlab .v-flask-liq { animation: hm-fade 1s .6s both; }
    .hm-art--vlab .v-bubble { animation: t-rise8 2s ease-out infinite; }
    .hm-art--vlab .v-bubble + .v-bubble { animation-delay: -1s; }
    .hm-art--vlab .v-tube { transform-origin: bottom; animation: t-fill-y .4s ease-out .5s both; }
    .hm-art--vlab .v-tube-2 { animation-delay: .7s; }
    .hm-art--vlab .v-tube-3 { animation-delay: .9s; }
    .hm-art--vlab .v-trophy { transform-origin: center bottom; animation: t-back-out .3s .6s both; }
    .hm-art--vlab .v-xp-bar { transform-origin: left; animation: t-fill-x 1s ease-out .8s both; }
    .hm-art--vlab .v-xp-knob { animation: t-slide-knob 1s ease-out .8s both; }
    .hm-art--vlab .v-xp-label { animation: hm-fade .3s 1.8s both; }
    .hm-art--vlab .v-gamepad { animation: hm-fade .4s 1.2s both; }
    .hm-art--vlab .v-star { transform-origin: center; animation: hm-twinkle 2s ease-in-out infinite; }
    .hm-art--vlab .v-star:nth-of-type(odd) { animation-delay: -1s; }
    .hm-art--tools .f-bubble { animation: t-rise10 2.4s ease-out infinite; }
    .hm-art--tools .f-bubble:nth-of-type(2n) { animation-delay: -.8s; }
    .hm-art--tools .f-bubble:nth-of-type(3n) { animation-delay: -1.6s; }
    .hm-art--tools .f-spark { transform-origin: center; animation: hm-pop .3s .3s both, hm-twinkle 2s 1.1s ease-in-out infinite; }
    .hm-art--tools .f-draw { stroke-dasharray: 1; animation: hm-draw .5s ease-out .4s both; }
    .hm-art--tools .f-ribbon-line { animation-duration: .6s; animation-delay: .9s; }
    .hm-art--tools .f-capsule { transform-origin: center; animation: t-capsule .4s ease-out .4s both; }
    .hm-art--tools .f-capsule > * { animation: t-bob3 3s ease-in-out 1s infinite; }
    .hm-art--tools .f-fragments > * { animation: t-frag .4s ease-out .9s both; }
    .hm-art--tools .f-fragments > :nth-child(2) { animation-delay: .98s; }
    .hm-art--tools .f-fragments > :nth-child(3) { animation-delay: 1.06s; }
    .hm-art--tools .f-fragments > :nth-child(4) { animation-delay: 1.14s; }
    .hm-art--tools .f-fragments > :nth-child(5) { animation-delay: 1.22s; }
    .hm-art--tools .f-ribbon { animation: t-sway4 4s ease-in-out 1.5s infinite; }
    .hm-art--why .w-hex { transform-origin: center; animation: hm-scale-in .4s ease-out both; }
    .hm-art--why .w-ring { transform-origin: center; animation: t-spin 24s linear infinite; }
    .hm-art--why .w-draw { stroke-dasharray: 1; animation: hm-draw .4s ease-out .4s both; }
    .hm-art--why .w-conn-l { animation-delay: .6s; }
    .hm-art--why .w-conn-r { animation-delay: 1s; }
    .hm-art--why .w-badge { transform-origin: center; animation: t-pop-back .4s ease-out .7s both; }
    .hm-art--why .w-badge-2 { animation-delay: .9s; }
    .hm-art--why .w-badge-3 { animation-delay: 1.1s; }
    .hm-art--why .w-badge-4 { animation-delay: 1.3s; }
    .hm-art--why .w-badge > * { animation: t-bob3 4s ease-in-out infinite; }
    .hm-art--why .w-badge-2 > * { animation-delay: -1s; }
    .hm-art--why .w-badge-3 > * { animation-delay: -2s; }
    .hm-art--why .w-badge-4 > * { animation-delay: -3s; }
    .hm-art--why .w-spark { animation: t-dim 2s ease-in-out infinite; }
    .hm-art--why .w-spark:nth-of-type(odd) { animation-delay: -1s; }

    /* Continuous loops: entry sequences above are replayed by js/home-motion.js; art with no entry gets an idle loop */
    @keyframes hm-float { 50% { transform: translateY(-4px); } }
    @keyframes hm-glow { 50% { opacity: .35; } }
    @keyframes hm-flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    .illus:not(.illus-hero), .hm-ghost, .hm-promo__art { animation: hm-float 6s ease-in-out infinite; }
    .hm-ghost:nth-of-type(odd) { animation-delay: -3s; }
    .hm-art--ghost .svg-circle { transform-origin: center; animation: hm-breathe-n 2.4s ease-in-out infinite; }
    .hm-art--ghost .svg-circle:nth-of-type(3n+1) { animation-delay: -.8s; }
    .hm-art--ghost .svg-circle:nth-of-type(3n+2) { animation-delay: -1.6s; }
    .hm-art--promo .title-dots, .hm-art--promo .result-lines, .hm-art--promo .side-lines { animation: hm-glow 3s ease-in-out infinite; }
    .hm-art--promo .result-check, .hm-art--promo .icon-spark { transform-origin: center; animation: hm-shine 3s ease-in-out infinite; }

    /* ChemLab window (Tools hero) and songs flask (Home + Tools song banner): inlined by brand/tools/inline-illus.js */
    @keyframes il-level { 50% { transform: scaleY(.72); } }
    @keyframes il-rock3 { 25% { transform: rotate(3deg); } 75% { transform: rotate(-3deg); } }
    @keyframes il-scan { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
    @keyframes il-halo { 50% { opacity: .5; transform: scale(1.08); } }
    @keyframes il-bob { 50% { transform: translateY(-6px); } }
    @keyframes il-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.1); } }
    @keyframes il-wave { to { stroke-dashoffset: -20; } }
    .hm-art--chemlab .halo { transform-origin: center; animation: il-halo 4s ease-in-out infinite; }
    .hm-art--chemlab .icon-flask { transform-origin: 50% 100%; animation: il-rock3 5s ease-in-out infinite; }
    .hm-art--chemlab .icon-liquid { transform-origin: 50% 100%; animation: il-level 3s ease-in-out infinite; }
    .hm-art--chemlab .icon-bubbles { animation: t-rise10 2.4s ease-out infinite; }
    .hm-art--chemlab .icon-spark { transform-origin: center; animation: hm-twinkle 2s ease-in-out infinite; }
    .hm-art--chemlab .side-mark { transform-origin: center; animation: hm-pulse 2s ease-in-out infinite; }
    .hm-art--chemlab .side-mark-line { transform-origin: left; animation: il-scan 3s ease-out infinite; }
    .hm-art--chemlab .title-dots, .hm-art--chemlab .side-lines, .hm-art--chemlab .result-lines { animation: hm-glow 3s ease-in-out infinite; }
    .hm-art--chemlab .result-lines { animation-delay: -1.5s; }
    .hm-art--chemlab .result-check { transform-origin: center; animation: hm-shine 3s ease-in-out infinite; }
    .hm-art--songs .note-stem, .hm-art--songs .note-heads { animation: il-bob 2s ease-in-out infinite; }
    .hm-art--songs .note-small-stem, .hm-art--songs .note-small-head { animation: il-bob 2s ease-in-out -1s infinite; }
    .hm-art--songs .cups { transform-origin: center; animation: il-beat 1s ease-out infinite; }
    .hm-art--songs .liquid { transform-origin: 50% 100%; animation: il-level 2.4s ease-in-out infinite; }
    .hm-art--songs .bubbles { animation: t-rise10 2.4s ease-out infinite; }
    .hm-art--songs .wave { stroke-dasharray: 6 4; animation: il-wave 1.5s linear infinite; }
    .hm-art--songs .wave-atoms { transform-origin: center; animation: hm-breathe-n 1s ease-in-out infinite; }
}

.hm-footer::before { content: none; }
.hm-footer li { margin: 0; padding: 0; }
.hm-footer a { padding: 0; text-decoration: none; }
