/* Shared AI directory and dedicated AI portfolio. */
.ai-directory, .ai-page {
    --ai-ink: #f4f3ed;
    --ai-muted: #a3b0b4;
    --ai-cyan: #6be4ff;
    --ai-line: rgba(194, 221, 229, .18);
    --ai-ground: #080d0f;
    color: var(--ai-ink);
}
.ai-directory *, .ai-page * { box-sizing: border-box; }
.ai-directory { padding: 2.5rem 0 4rem; scroll-margin-top: 100px; }
.ai-directory [data-ai-catalog] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
.ai-directory .ai-catalog-group { grid-column: 1 / -1; }
.ai-directory .ai-catalog-group:nth-child(n+2):nth-child(-n+4) { grid-column: auto; display: block; }
.ai-directory .ai-catalog-group:nth-child(n+2):nth-child(-n+4) .ai-group-heading { min-height: 4rem; }
.ai-directory .ai-catalog-group:nth-child(n+2):nth-child(-n+4) .ai-model-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-eyebrow {
    display: flex; align-items: center; gap: .7rem;
    margin: 0 0 1.1rem; color: var(--ai-cyan);
    font: 600 .68rem/1.4 ui-monospace, Consolas, monospace;
    letter-spacing: .13em;
}
.ai-directory-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.8rem; }
.ai-directory-heading h2 { margin: 0; font: 500 clamp(1.8rem, 3vw, 2.8rem)/1.05 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.ai-text-link { display: inline-flex; align-items: center; gap: 1.2rem; color: var(--ai-ink); text-decoration: none; font-size: .9rem; padding: .6rem 0; border-bottom: 1px solid var(--ai-cyan); }
.ai-text-link > span { color: var(--ai-cyan); font-size: 1.35em; }
.ai-directory a:focus-visible, .ai-page :is(a, button, video):focus-visible { outline: 2px solid var(--ai-cyan); outline-offset: 5px; }
.ai-catalog-group { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; padding: 1.35rem 0; border-top: 1px solid var(--ai-line); }
.ai-catalog-group[hidden] { display: none; }
.ai-group-heading { align-self: start; }
.ai-group-heading h3 { font: 500 .95rem/1.35 "Space Grotesk", sans-serif; margin: 0; max-width: 21ch; }
.ai-model-list { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; }
.ai-model-list > li { min-width: 0; }
.ai-model-mark { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: .5rem .25rem; color: var(--ai-ink); text-decoration: none; text-align: center; }
.ai-logo { display: inline-grid; width: 64px; height: 64px; flex: 0 0 64px; place-items: center; }
.ai-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ai-model-mark .ai-logo { width: 52px; height: 52px; flex-basis: 52px; transition: transform .2s ease; }
.ai-model-mark > span:last-child { font: 500 .79rem/1.25 "Space Grotesk", sans-serif; }
.ai-model-mark:hover { color: var(--ai-cyan); }
.ai-model-mark:hover .ai-logo { transform: translateY(-4px); }

/* Page shell */
.ai-page { margin: 0; background: var(--ai-ground); font: 400 16px/1.55 "Outfit", system-ui, sans-serif; }
.ai-page h1, .ai-page h2, .ai-page h3, .ai-page h4 { font-family: "Space Grotesk", sans-serif; }
.ai-page a { color: inherit; }
.ai-page img { max-width: 100%; }
.ai-page [hidden] { display: none !important; }
.ai-page :is(section, .ai-tool-entry) { scroll-margin-top: 100px; }
.ai-page h2 { font-size: clamp(2.2rem, 4.1vw, 4rem); font-weight: 500; line-height: 1.06; letter-spacing: -.05em; margin: 0; }
.ai-wrap { width: min(1440px, calc(100% - 96px)); margin-inline: auto; }
.ai-skip { position: fixed; top: -100px; left: 1rem; padding: 1rem; z-index: 100; background: var(--ai-cyan); color: #080d0f !important; }
.ai-skip:focus { top: 1rem; }
.ai-topbar { position: sticky; top: 0; z-index: 30; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 max(32px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid var(--ai-line); background: #080d0ff5; }
.ai-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-size: .86rem; font-weight: 600; line-height: 1.3; }
.ai-brand img { width: 40px; height: 40px; }
.ai-brand small { display: block; font-size: .73rem; color: var(--ai-muted); font-weight: 400; }
.ai-topbar nav { display: flex; align-items: center; gap: 2rem; }
.ai-topbar nav a { text-decoration: none; font-size: .82rem; }
.ai-topbar nav a:hover { color: var(--ai-cyan); }
.ai-dot { display: inline-block; width: 6px; height: 6px; background: var(--ai-cyan); border-radius: 50%; }
.ai-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 5rem); padding-top: clamp(3.5rem, 7vw, 7rem); padding-bottom: clamp(3.5rem, 6vw, 6rem); min-height: 690px; }
.ai-hero h1 { font-size: clamp(3.4rem, 5.3vw, 5.5rem); letter-spacing: -.065em; font-weight: 500; line-height: .99; margin: 1.7rem 0; }
.ai-hero h1 em { display: inline; color: var(--ai-cyan); font-style: normal; white-space: nowrap; }
.ai-hero-description { max-width: 42ch; color: var(--ai-muted); font-size: clamp(.97rem, 1.25vw, 1.12rem); line-height: 1.6; }
.ai-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.8rem; margin-top: 2.1rem; }
.ai-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.7rem; padding: 1rem 1.2rem; background: var(--ai-cyan); color: #061014 !important; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s ease; }
.ai-button:hover { background: #b8f2ff; }
.ai-button span { font-size: 1.2rem; }
.ai-hero-visual { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; padding: 30px 0 48px; }
.ai-still { display: block; position: relative; overflow: hidden; text-decoration: none; background: #122024; aspect-ratio: 9 / 18; }
.ai-still img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ai-still:hover img { transform: scale(1.04); }
.ai-still span { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: .3rem; padding: 2.5rem .7rem .7rem; background: linear-gradient(transparent, #020708db); color: #fff; font: .55rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .09em; }
.ai-still span b { color: var(--ai-cyan); font-weight: 400; }
.ai-still-one { margin-top: 58px; }
.ai-still-two { margin-top: 0; }
.ai-still-three { margin-top: 104px; }
.ai-visual-label, .ai-visual-foot { position: absolute; font: .56rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .12em; color: var(--ai-muted); }
.ai-visual-label { top: 0; left: 0; }
.ai-visual-foot { bottom: -4px; left: 0; padding-top: 12px; width: 100%; border-top: 1px solid var(--ai-line); }
.ai-section { padding-block: clamp(4rem, 7vw, 7rem); }
.ai-section-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2.8rem; }
.ai-section-heading > p { color: var(--ai-muted); max-width: 43ch; margin: 0 0 .2rem auto; font-size: 1rem; }
.ai-project-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3rem 1.3rem; }
.ai-project { grid-column: span 2; min-width: 0; }
.ai-project:nth-child(5) { grid-column: 2 / span 2; }
.ai-project-player { position: relative; aspect-ratio: 9/16; background: #030506; overflow: hidden; }
.ai-project-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ai-project-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 62px; height: 62px; padding: 0; border: 1px solid #c2f4ff99; border-radius: 50%; background: #061014ce; color: #f4fbfd; cursor: pointer; transition: background .2s, scale .2s; }
.ai-project-play::before { content: ""; position: absolute; inset: -6px; border: 1px solid #c2f4ff44; border-radius: 50%; }
.ai-project-play svg { width: 23px; height: 23px; fill: currentColor; }
.ai-project-play:hover { background: #6be4ff; color: #061014; scale: 1.06; }
.ai-project-line { display: flex; gap: .6rem; align-items: center; margin: .8rem 0 1.1rem; padding-top: .8rem; border-top: 1px solid var(--ai-line); }
.ai-project-line > span { color: var(--ai-cyan); font: .62rem/1 ui-monospace, Consolas, monospace; }
.ai-project-models { display: flex; flex-wrap: wrap; gap: .5rem .8rem; }
.ai-project-models a { display: flex; align-items: center; gap: .3rem; font-size: .6rem; text-decoration: none; }
.ai-project-models a:hover { color: var(--ai-cyan); }
.ai-project-models .ai-logo { width: 18px; height: 18px; flex-basis: 18px; }
.ai-project-caption h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.025em; font-weight: 600; }
.ai-project-caption .ai-project-subject { margin: .2rem 0 .7rem; color: var(--ai-ink); font-size: .87rem; }
.ai-project-caption p { color: var(--ai-muted); margin: 0; font-size: .82rem; line-height: 1.55; }
.ai-service-section { padding-block: clamp(4rem, 6vw, 6rem); background: #101d21; border-block: 1px solid var(--ai-line); }
.ai-service-layout { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(3rem, 7vw, 7rem); }
.ai-service-intro { max-width: 35ch; color: var(--ai-muted); margin-top: 1.5rem; }
.ai-offer-list article { display: grid; grid-template-columns: 36px 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--ai-line); }
.ai-offer-list article > span { color: var(--ai-cyan); font: .7rem/1.5 ui-monospace, Consolas, monospace; padding-top: .25rem; }
.ai-offer-list h3 { margin: 0 0 .7rem; font-size: 1.4rem; font-weight: 500; }
.ai-offer-list p { margin: 0; max-width: 57ch; color: var(--ai-muted); }
.ai-process { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ai-process li { border-top: 1px solid var(--ai-cyan); padding-top: 1.3rem; }
.ai-process li > span { color: var(--ai-cyan); font: .63rem/1.5 ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.ai-process h3 { font-weight: 500; font-size: 1.2rem; margin: 1.5rem 0 .7rem; }
.ai-process p { color: var(--ai-muted); font-size: .9rem; margin: 0; }
.ai-guide-promo { padding-block: clamp(4rem, 7vw, 7rem); border-block: 1px solid #cbd8e7; background: #edf3fb; color: #18283b; }
.ai-guide-promo-layout { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.ai-guide-promo-copy h2 { max-width: 13ch; margin: .9rem 0 1.4rem; font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1.02; font-weight: 500; letter-spacing: -.06em; }
.ai-guide-promo-copy > p:not(.ai-eyebrow) { max-width: 54ch; color: #63758b; line-height: 1.7; }
.ai-guide-promo-copy ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 2.2rem 0; padding: 0; border-block: 1px solid #cbd8e7; list-style: none; }
.ai-guide-promo-copy li { padding: 1rem 1rem 1rem 0; border-right: 1px solid #cbd8e7; }
.ai-guide-promo-copy li + li { padding-left: 1rem; }
.ai-guide-promo-copy li:last-child { border-right: 0; }
.ai-guide-promo-copy li strong, .ai-guide-promo-copy li span { display: block; }
.ai-guide-promo-copy li strong { margin-bottom: .35rem; font-size: .76rem; color: #1f3550; }
.ai-guide-promo-copy li span { color: #6b7d92; font-size: .68rem; line-height: 1.4; }
.ai-guide-promo .ai-button { background: #23354b; color: #fff !important; }
.ai-guide-promo .ai-button:hover { background: #345274; }
.ai-guide-promo-map { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; min-height: 300px; gap: .45rem; align-items: center; }
.ai-guide-promo-map::before { content: ""; position: absolute; top: 50%; left: 7%; right: 7%; height: 1px; background: #aebfd3; }
.ai-guide-promo-map a { position: relative; display: grid; min-width: 0; min-height: 160px; padding: 1rem .8rem; align-content: space-between; overflow: hidden; border-left: 1px solid #b9c9da; background: #f7faff; color: inherit; text-decoration: none; transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.ai-guide-promo-map a:nth-child(even) { translate: 0 38px; background: #e4ecf7; }
.ai-guide-promo-map a:first-child { border-left: 2px solid #285cc4; }
.ai-guide-promo-map a:hover, .ai-guide-promo-map a:focus-visible { z-index: 1; border-left-color: #285cc4; background: #fff; box-shadow: 0 12px 32px rgba(33, 61, 101, .12); outline: none; }
.ai-guide-promo-map span { color: #285cc4; font: 600 .62rem/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.ai-guide-promo-map strong { min-width: 0; font-size: .9rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; word-break: break-word; }
.ai-guide-promo-map small { min-width: 0; color: #6e8094; font-size: .65rem; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
html[data-theme="dark"] .ai-guide-promo-map a { border-left-color: var(--theme-accent); background: var(--theme-bg); color: var(--theme-ink); }
html[data-theme="dark"] .ai-guide-promo-map a:nth-child(even) { background: var(--theme-accent-soft); }
html[data-theme="dark"] .ai-guide-promo-map a:hover, html[data-theme="dark"] .ai-guide-promo-map a:focus-visible { border-left-color: var(--theme-accent); background: var(--theme-surface-soft); box-shadow: 0 12px 32px rgba(0, 0, 0, .24); }
.ai-full-catalog { border-top: 1px solid var(--ai-line); }
.ai-full-catalog h2 > span { color: var(--ai-muted); }
.ai-catalog-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.ai-filters { display: flex; flex-wrap: wrap; gap: .3rem; }
.ai-filters button { padding: .65rem .95rem; border: 1px solid transparent; background: transparent; color: var(--ai-muted); font: inherit; font-size: .85rem; cursor: pointer; }
.ai-filters button[aria-pressed="true"] { border-color: var(--ai-cyan); background: var(--ai-cyan); color: #061014; }
.ai-filters button:hover:not([aria-pressed="true"]) { border-color: var(--ai-line); color: var(--ai-ink); }
.ai-catalog-status { font: .61rem/1.5 ui-monospace, Consolas, monospace; color: var(--ai-muted); }
.ai-full-catalog .ai-catalog-group { grid-template-columns: 210px 1fr; gap: 3rem; padding-block: 2.7rem; }
.ai-full-catalog .ai-group-heading h3 { font-size: 1.2rem; }
.ai-full-catalog .ai-group-heading p { color: var(--ai-muted); font-size: .86rem; margin: .8rem 0 0; }
.ai-full-catalog .ai-model-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.8rem; }
.ai-tool-entry { display: flex; flex-direction: column; align-items: start; min-width: 0; }
.ai-tool-entry .ai-logo { margin-bottom: 1rem; }
.ai-tool-entry:target { outline: 1px solid var(--ai-cyan); outline-offset: 10px; }
.ai-tool-use { color: var(--ai-muted); font-size: .68rem; }
.ai-tool-body { display: flex; flex-direction: column; flex: 1; align-items: start; }
.ai-tool-body h4 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.025em; margin: .2rem 0 .8rem; }
.ai-tool-body p { margin: 0 0 1rem; font-size: .86rem; line-height: 1.6; color: var(--ai-muted); }
.ai-contact-section { background: #16292f; border-top: 1px solid #6be4ff45; padding-block: clamp(4rem, 7vw, 7rem); }
.ai-contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; }
.ai-contact-layout h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.ai-contact-layout p:not(.ai-eyebrow) { color: #bfcccf; max-width: 46ch; margin: 1.5rem 0 2rem; }
.ai-contact-details a { position: relative; display: block; text-decoration: none; border-top: 1px solid #6be4ff45; padding: 1.3rem 2rem 1.3rem 0; }
.ai-contact-details a > span { display: block; font: .62rem/1.5 ui-monospace, Consolas, monospace; letter-spacing: .1em; color: var(--ai-cyan); margin-bottom: .5rem; }
.ai-contact-details strong { font-size: clamp(1rem, 1.8vw, 1.6rem); font-weight: 500; overflow-wrap: anywhere; }
.ai-contact-details b { position: absolute; top: 50%; right: 0; font-size: 1.5rem; color: var(--ai-cyan); font-weight: 400; }
.ai-footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.8rem; color: var(--ai-muted); font-size: .77rem; }
.ai-footer a { text-decoration: none; }
.ai-footer a span { margin-left: .7rem; color: var(--ai-cyan); }

@media (max-width: 1180px) {
    .ai-guide-promo-layout { grid-template-columns: 1fr; gap: 3.5rem; }
    .ai-guide-promo-map { width: 100%; max-width: 860px; margin-inline: auto; }
}

@media (max-width: 1100px) {
    .ai-wrap { width: calc(100% - 56px); }
    .ai-hero { gap: 2rem; }
    .ai-hero h1 { font-size: clamp(3.1rem, 5.5vw, 4.3rem); }
    .ai-hero-visual { gap: 8px; }
    .ai-still-three { margin-top: 84px; }
    .ai-catalog-group { grid-template-columns: 150px 1fr; gap: 1rem; }
    .ai-model-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.3rem; }
    .ai-full-catalog .ai-catalog-group { grid-template-columns: 165px 1fr; gap: 2rem; }
    .ai-full-catalog .ai-model-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-topbar { gap: 1.5rem; padding-inline: 28px; }
    .ai-topbar nav { gap: 1.25rem; }
}
@media (max-width: 800px) {
    .ai-directory [data-ai-catalog] { grid-template-columns: 1fr; }
    .ai-directory .ai-catalog-group:nth-child(n+2):nth-child(-n+4) { display: grid; }
    .ai-directory .ai-catalog-group:nth-child(n+2):nth-child(-n+4) .ai-group-heading { min-height: 0; }
    .ai-directory .ai-catalog-group:nth-child(n+2):nth-child(-n+4) .ai-model-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ai-topbar { height: auto; min-height: 74px; flex-wrap: wrap; padding-block: .8rem; gap: .7rem 1rem; }
    .ai-topbar nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--ai-line); padding-top: .7rem; }
    .ai-page :is(section, .ai-tool-entry) { scroll-margin-top: 145px; }
    .ai-hero { grid-template-columns: 1fr; padding-top: 3rem; }
    .ai-hero-copy { max-width: 650px; }
    .ai-hero h1 { font-size: clamp(3.4rem, 8.5vw, 5rem); max-width: 15ch; }
    .ai-hero-visual { width: 100%; max-width: 600px; justify-self: center; }
    .ai-still { aspect-ratio: 9 / 16; }
    .ai-section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
    .ai-section-heading > p { margin-left: 0; }
    .ai-project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1rem; }
    .ai-project:nth-child(5) { grid-column: span 2; }
    .ai-project:last-child { grid-column: 2 / span 2; }
    .ai-service-layout, .ai-contact-layout, .ai-guide-promo-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .ai-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-directory-heading { align-items: start; flex-direction: column; gap: 1rem; }
    .ai-full-catalog .ai-catalog-group { grid-template-columns: 1fr; }
    .ai-full-catalog .ai-group-heading { max-width: 460px; }
    .ai-full-catalog .ai-group-heading h3 { max-width: none; }
    .ai-full-catalog .ai-tool-entry { flex-direction: row; gap: 1rem; }
    .ai-full-catalog .ai-logo { width: 48px; height: 48px; flex-basis: 48px; }
}
@media (max-width: 520px) {
    .ai-wrap { width: calc(100% - 36px); }
    .ai-topbar { padding-inline: 18px; }
    .ai-brand img { width: 32px; height: 32px; }
    .ai-brand { font-size: .8rem; }
    .ai-brand small { font-size: .65rem; }
    .ai-hero h1 { font-size: clamp(2.9rem, 12vw, 4rem); }
    .ai-hero-visual { padding-top: 24px; }
    .ai-still-one { margin-top: 40px; }
    .ai-still-three { margin-top: 75px; }
    .ai-still span { font-size: .43rem; padding-inline: .35rem; }
    .ai-catalog-group { grid-template-columns: 1fr; padding-block: 1.5rem; }
    .ai-group-heading { display: flex; align-items: baseline; gap: .7rem; }
    .ai-group-heading h3 { max-width: none; }
    .ai-model-list { gap: 1rem .5rem; }
    .ai-model-mark .ai-logo { width: 48px; height: 48px; flex-basis: 48px; }
    .ai-model-mark > span:last-child { font-size: .75rem; }
    .ai-project-grid { grid-template-columns: 1fr; }
    .ai-project, .ai-project:nth-child(5), .ai-project:last-child { grid-column: auto; }
    .ai-project-player { max-height: 660px; }
    .ai-project-models a { font-size: .73rem; }
    .ai-project-caption p { font-size: .92rem; }
    .ai-process { grid-template-columns: 1fr; }
    .ai-guide-promo-copy ul { grid-template-columns: 1fr; }
    .ai-guide-promo-copy li, .ai-guide-promo-copy li + li { padding: .9rem 0; border-right: 0; border-bottom: 1px solid #cbd8e7; }
    .ai-guide-promo-copy li:last-child { border-bottom: 0; }
    .ai-guide-promo-map { grid-template-columns: 1fr; min-height: 0; }
    .ai-guide-promo-map::before { top: 5%; bottom: 5%; left: 18px; right: auto; width: 1px; height: auto; }
    .ai-guide-promo-map a, .ai-guide-promo-map a:nth-child(even) { min-height: 0; translate: 0; grid-template-columns: 32px 1fr; gap: .35rem 1rem; padding: 1rem .9rem; }
    .ai-guide-promo-map small { grid-column: 2; }
    .ai-process h3 { margin-top: .8rem; }
    .ai-full-catalog .ai-model-list { grid-template-columns: 1fr; gap: 2rem; }
    .ai-full-catalog .ai-group-heading { display: block; }
    .ai-full-catalog .ai-logo { width: 56px; height: 56px; flex-basis: 56px; }
    .ai-filters button { font-size: .8rem; padding: .55rem .7rem; }
    .ai-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-directory *, .ai-page * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Realizacje AI: one calm horizontal row, with a maximum of four cards in view. */
.ai-project-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; }
.ai-project-viewport { min-width: 0; overflow: hidden; }
.ai-project-grid { display: grid !important; grid-auto-flow: column; grid-auto-columns: calc((100% - 3.75rem) / 4); grid-template-columns: none !important; gap: 1.25rem !important; overflow-x: auto; overscroll-behavior-inline: contain; padding: .15rem .1rem 1.1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ai-project-grid::-webkit-scrollbar { display: none; }
.ai-project { grid-column: auto !important; min-width: 0; scroll-snap-align: start; }
.ai-project-arrow { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid #bccbdd; background: transparent; color: #263c57; font: 1.2rem/1 "Space Grotesk", sans-serif; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.ai-project-arrow:hover:not(:disabled), .ai-project-arrow:focus-visible:not(:disabled) { border-color: #285cc4; background: #285cc4; color: #fff; }
.ai-project-arrow:disabled { cursor: default; opacity: .32; }
.ai-project-caption { display: grid; gap: .55rem; padding-top: .8rem; }
.ai-project-topline { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .7rem; border-top: 1px solid #cbd6e2; }
.ai-project-client, .ai-project-format, .ai-project-models-label { color: #5f7691; font: 600 .54rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.ai-project-format { color: #8a9bad; white-space: nowrap; }
.ai-project-caption h3 { margin: 0; color: #1e2e43; font-size: 1.1rem; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.ai-project-description { min-height: 4.7em; margin: 0; color: #687b91; font-size: .78rem; line-height: 1.55; }
.ai-project { display: flex; flex-direction: column; }
.ai-project-caption { display: flex; flex: 1 1 auto; flex-direction: column; gap: .55rem; }
.ai-project-models { display: flex; flex-direction: column; align-items: stretch; gap: .55rem; min-height: 5.5rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid #d8e0e9; }
.ai-project-models-label { display: flex; align-items: center; gap: .45rem; color: #5f7691; font: 600 .54rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.ai-project-models-label::before { content: ""; width: 1.2rem; height: 1px; flex: 0 0 1.2rem; background: #285cc4; opacity: .55; }
.ai-project-models-list { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; align-content: center; gap: .45rem; min-width: 0; }
.ai-project-models-list.is-multiple { display: flex; }
.ai-project-models a { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; min-height: 2.5rem; max-width: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #2d435d; box-shadow: none; font-size: 0; line-height: 1; text-decoration: none; white-space: nowrap; transition: color .18s ease; }
.ai-project-models a::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + .55rem); z-index: 10; width: max-content; max-width: 15rem; padding: .42rem .6rem; border: 1px solid #3e5875; border-radius: .45rem; background: #263950; color: #fff; font-size: .68rem; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, .25rem); transition: opacity .18s ease, transform .18s ease; }
.ai-project-models a:hover::after, .ai-project-models a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.ai-project-models a:hover .ai-logo, .ai-project-models a:focus-visible .ai-logo { transform: translateY(-2px) scale(1.04); }
.ai-project-models .ai-logo { width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; transition: transform .18s ease; }
@media (max-width: 800px) {
    .ai-project-grid { grid-auto-columns: calc((100% - 2rem) / 3); gap: 1rem !important; }
}
@media (max-width: 1200px) {
    .ai-project-models-list.is-multiple { display: flex; }
    .ai-project-models-list.is-multiple a { width: 2.35rem; height: 2.35rem; min-height: 2.35rem; padding: 0; font-size: 0; }
    .ai-project-models-list.is-multiple .ai-logo { width: 2.1rem; height: 2.1rem; flex-basis: 2.1rem; }
}
@media (max-width: 520px) {
    .ai-project-carousel { grid-template-columns: 2rem minmax(0, 1fr) 2rem; gap: .4rem; }
    .ai-project-grid { grid-auto-columns: 100%; gap: .8rem !important; padding-inline: 0; }
    .ai-project-arrow { width: 2rem; height: 2rem; font-size: 1rem; }
    .ai-project-description { min-height: 0; }
}
