.ai-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: clamp(640px, calc(100svh - 70px), 1000px);
    margin: 0 calc(50% - 50vw);
    overflow: hidden;
    isolation: isolate;
}

.ai-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(26px);
    transform: scale(1.05);
    transition: opacity 1.4s var(--ease), filter 2.2s var(--ease), transform 2.6s var(--ease);
}

.ai-hero__canvas.is-ready {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

.ai-hero__canvas.is-done {
    filter: none;
    transition: none;
}

.ai-hero__mark {
    position: absolute;
    right: calc(var(--ab-pad) + 2vw);
    top: 50%;
    z-index: -1;
    height: min(86%, 820px);
    aspect-ratio: 220 / 235;
    opacity: .75;
    transform: translate3d(0, calc(-50% + var(--my, 0px)), 0) rotate(var(--mr, 0deg));
    pointer-events: none;
}

.ai-hero__mark svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ai-hero__mark svg,
.ai-hero__mark .ab-mk__glass {
    -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 40%, transparent 100%);
    mask-image: radial-gradient(75% 75% at 50% 45%, #000 40%, transparent 100%);
}

.ai-mk__rim {
    stroke: url(#ai-mk-rim);
}

html.hm-pl-js .ai-hero.is-go .ab-mk__line,
html.hm-pl-js .ai-hero.is-go .ab-mk__rim {
    stroke-dashoffset: 0;
}

html.hm-pl-js .ai-hero.is-go .ab-mk__glass,
html.hm-pl-js .ai-hero.is-go .ab-mk__shade,
.ai-hero.is-go .ab-mk__trail {
    opacity: 1;
}

.ai-hero.is-go .ab-mk__trail {
    transition: opacity 1.2s var(--ease) 2.8s;
}

.ai-hero.is-still .ab-mk__run,
.ai-hero.is-still .ab-mk__glass::after {
    animation-play-state: paused;
}

.ai-hero__glow {
    position: absolute;
    right: 8%;
    top: 12%;
    z-index: -1;
    width: min(60vw, 820px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 120, 90, .22), rgba(227, 38, 45, .06) 55%, transparent);
    pointer-events: none;
}

.ai-hero__ascii {
    position: absolute;
    right: clamp(20px, 6vw, 110px);
    top: clamp(70px, 12vh, 140px);
    z-index: -1;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: .32em;
    color: rgba(12, 12, 14, .26);
    white-space: pre;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
    mask-image: radial-gradient(closest-side, #000 40%, transparent);
}

.ai-hero__ascii b {
    font-weight: 400;
    color: var(--accent);
}

.ai-hero__side {
    position: absolute;
    right: clamp(14px, 1.6vw, 28px);
    top: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.ai-hero__side span,
.ai-hero__side b {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .3em;
    color: rgba(12, 12, 14, .3);
}

.ai-hero__side b {
    font-size: 1.6rem;
    letter-spacing: .08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(12, 12, 14, .25);
}

.ai-hero__side i {
    width: 34px;
    height: 70px;
    background: repeating-linear-gradient(135deg, rgba(12, 12, 14, .1) 0 2px, transparent 2px 7px);
}

.ai-hero__inner {
    position: relative;
    z-index: 2;
    width: min(760px, 50%);
    padding: 0 0 clamp(40px, 6vh, 80px) var(--ab-pad);
    pointer-events: none;
}

.ai-hero__inner a,
.ai-hero__inner .hm-btn {
    pointer-events: auto;
}

.ai-hero .hm-plist__kicker {
    grid-column: auto;
}

.ai-hero .hm-plist__kicker .hm-brand {
    font-size: 1.15em;
    letter-spacing: .06em;
    color: var(--ink);
}

body.hm-inner .ai-hero__title {
    max-width: 13em;
    margin: clamp(18px, 2.4vw, 30px) 0 0;
    font-size: clamp(2.3rem, 4.3vw, 4.7rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.05em;
    color: var(--ink);
    text-wrap: balance;
}

.ai-hero__title .hm-w {
    display: inline-block;
    white-space: nowrap;
}

.ai-hero__title .hm-c {
    display: inline-block;
}

body.hm-inner .ai-hero__lead {
    max-width: 30em;
    margin: clamp(18px, 2vw, 26px) 0 0;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.65;
    color: var(--ink-2);
}

.ai-hero__lead .hm-brand {
    color: var(--ink);
}

.ai-hero__acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
    margin-top: clamp(24px, 3vw, 38px);
}

body.hm-inner .ai-hero__try {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-2);
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
    transition: color .4s var(--ease), border-color .4s var(--ease);
}

.ai-hero__try svg {
    width: 16px;
    height: 16px;
    transition: transform .5s var(--ease);
}

body.hm-inner .ai-hero__try:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.ai-hero__try:hover svg {
    transform: rotate(45deg);
}

.ai-hero__try svg path,
.ai-card__go svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-hero__status {
    position: absolute;
    left: var(--ab-pad);
    right: var(--ab-pad);
    bottom: 22px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: .74rem;
    letter-spacing: .08em;
    color: var(--ink-3);
    pointer-events: none;
}

.ai-hero__status span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-hero__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(227, 38, 45, .5);
    animation: ai-ping 2s var(--ease) infinite;
}

@keyframes ai-ping {
    0% { box-shadow: 0 0 0 0 rgba(227, 38, 45, .45); }
    100% { box-shadow: 0 0 0 9px rgba(227, 38, 45, 0); }
}

html.hm-pl-js .ai-hero__title {
    opacity: 0;
}

html.hm-pl-js .ai-hero__title.is-split {
    opacity: 1;
}

html.hm-pl-js .ai-hero__title .hm-c {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, .4em, 0);
    transition: opacity .8s var(--ease), filter .9s var(--ease), transform 1.2s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(.25s + min(var(--i), 60) * 18ms);
}

html.hm-pl-js .ai-hero__inner > .hm-plist__kicker,
html.hm-pl-js .ai-hero__lead,
html.hm-pl-js .ai-hero__acts,
html.hm-pl-js .ai-hero__status,
html.hm-pl-js .ai-hero__side,
html.hm-pl-js .ai-hero__ascii {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

html.hm-pl-js .ai-hero__side {
    transform: translate3d(0, -50%, 0);
}

html.hm-pl-js .ai-hero__lead {
    transition-delay: .7s;
}

html.hm-pl-js .ai-hero__acts {
    transition-delay: .9s;
}

html.hm-pl-js .ai-hero__status,
html.hm-pl-js .ai-hero__side,
html.hm-pl-js .ai-hero__ascii {
    transition-delay: 1.2s;
}

html.hm-pl-js .ai-hero.is-go .ai-hero__title .hm-c,
html.hm-pl-js .ai-hero.is-go .ai-hero__inner > .hm-plist__kicker,
html.hm-pl-js .ai-hero.is-go .ai-hero__lead,
html.hm-pl-js .ai-hero.is-go .ai-hero__acts,
html.hm-pl-js .ai-hero.is-go .ai-hero__status,
html.hm-pl-js .ai-hero.is-go .ai-hero__ascii {
    opacity: 1;
    filter: none;
    transform: none;
}

html.hm-pl-js .ai-hero.is-go .ai-hero__side {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
}

.ai-ticker {
    margin-top: 0;
}

.ai-intro__text {
    max-width: 1200px;
}

body.hm-inner .ai-intro__text p {
    font-size: clamp(1.45rem, 3vw, 2.8rem);
    line-height: 1.28;
    letter-spacing: -.035em;
}

.ai-stats__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent);
    mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent);
    pointer-events: none;
}

.ai-stats .ab-stats__panel {
    background: #0c0c0e;
}

.ai-stats__list .ab-stat__num {
    font-size: clamp(3rem, 5.4vw, 5.2rem);
}

.ai-sol__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

body.hm-inner .ai-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 280px;
    padding: clamp(24px, 2.4vw, 34px);
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--paper);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    transition: box-shadow .6s var(--ease), transform .6s var(--ease);
}

.ai-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -40%), rgba(227, 38, 45, .1), transparent 60%);
    opacity: 0;
    transition: opacity .5s var(--ease);
    pointer-events: none;
}

.ai-card:hover {
    box-shadow: var(--shadow-2);
    transform: translate3d(0, -4px, 0);
}

.ai-card:hover::before {
    opacity: 1;
}

.ai-card__no {
    position: absolute;
    right: 24px;
    top: 22px;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: .76rem;
    letter-spacing: .1em;
    color: var(--ink-3);
}

.ai-card__ic {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    transition: transform .7s var(--ease);
}

.ai-card:hover .ai-card__ic {
    transform: rotate(-8deg) scale(1.06);
}

.ai-card__ic svg,
.ai-proc__ic svg {
    width: 26px;
    height: 26px;
}

.ai-card__ic svg *,
.ai-proc__ic svg * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.hm-inner .ai-card__name {
    margin: 10px 0 0;
    padding-right: 30px;
    font-size: clamp(1.15rem, 1.45vw, 1.4rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.025em;
    color: inherit;
}

body.hm-inner .ai-card__desc {
    margin: 0;
    font-size: .95rem;
    line-height: 1.65;
    color: var(--ink-3);
}

.ai-card__go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink);
    transition: color .4s var(--ease);
}

.ai-card__go svg {
    width: 16px;
    height: 16px;
    transition: transform .5s var(--ease);
}

.ai-card:hover .ai-card__go {
    color: var(--accent);
}

.ai-card:hover .ai-card__go svg {
    transform: rotate(45deg);
}

body.hm-inner .ai-card.is-lead {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 100%;
    background: #0c0c0e;
    color: #fff;
}

.ai-card.is-lead::before {
    background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 10%), rgba(255, 107, 61, .3), transparent 60%);
    opacity: 1;
}

.ai-card.is-lead .ai-card__ic {
    background: rgba(255, 255, 255, .08);
    color: #ff6b3d;
}

.ai-card.is-lead .ai-card__no {
    color: rgba(255, 255, 255, .45);
}

body.hm-inner .ai-card.is-lead .ai-card__name {
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -.04em;
}

body.hm-inner .ai-card.is-lead .ai-card__desc {
    max-width: 32em;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: rgba(255, 255, 255, .66);
}

.ai-card.is-lead .ai-card__go {
    color: #fff;
}

.ai-card__wave {
    display: flex;
    align-items: center;
    gap: 5px;
    height: clamp(80px, 9vw, 130px);
    margin-top: auto;
    padding-top: 24px;
}

.ai-card__wave i {
    flex: 1;
    max-width: 14px;
    height: calc(var(--h, .6) * 100%);
    border-radius: 6px;
    background: linear-gradient(180deg, #ff6b3d, #e3262d);
    opacity: calc(.35 + var(--h, .6) * .65);
    transform: scaleY(.3);
    animation: ai-wave 1.8s ease-in-out infinite;
    animation-delay: calc(var(--d, 0) * -.11s);
    animation-play-state: paused;
}

.ai-sol.is-run .ai-card__wave i {
    animation-play-state: running;
}

@keyframes ai-wave {
    0%, 100% { transform: scaleY(.25); }
    50% { transform: scaleY(1); }
}

.ai-proc__ic {
    color: var(--ink-3);
}

.ab-proc__step.is-on .ai-proc__ic {
    color: var(--accent);
}

body.hm-inner .ai-proc__desc {
    max-width: 16em;
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--ink-3);
}

.ai-cta-wrap {
    padding-bottom: 10px;
}

.ai-cta {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: clamp(50px, 8vw, 120px) clamp(24px, 5vw, 80px);
    border-radius: clamp(24px, 3vw, 44px);
    background: #0c0c0e;
    color: #fff;
    text-align: center;
}

.ai-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 120%), rgba(255, 107, 61, .28), transparent 60%);
    pointer-events: none;
}

.ai-cta__glow {
    position: absolute;
    left: 50%;
    bottom: -60%;
    z-index: -2;
    width: 90%;
    aspect-ratio: 1.6;
    margin-left: -45%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(227, 38, 45, .45), transparent);
    pointer-events: none;
}

.ai-cta__dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.2px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, transparent 30%, #000);
    mask-image: radial-gradient(60% 70% at 50% 40%, transparent 30%, #000);
    pointer-events: none;
}

.ai-cta .hm-plist__kicker {
    grid-column: auto;
    color: rgba(255, 255, 255, .6);
}

body.hm-inner .ai-cta__title {
    max-width: 16em;
    margin: 18px 0 0;
    font-size: clamp(2rem, 4.4vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.045em;
    color: #fff;
    text-wrap: balance;
}

body.hm-inner .ai-cta__text {
    max-width: 34em;
    margin: 18px 0 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .66);
}

.ai-cta .ab-acts {
    justify-content: center;
}

.ai-cta .hm-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .22);
}

.ai-cta .hm-btn--ghost::before,
.ai-cta .hm-btn--accent::before {
    background: #fff;
}

.ai-cta .hm-btn--ghost:hover,
.ai-cta .hm-btn--accent:hover {
    color: var(--ink);
}

body.hm-inner .ai-credit {
    margin: 18px 0 0;
    font-size: .72rem;
    text-align: center;
    color: var(--ink-3);
    opacity: .7;
}

@media (max-width: 1100px) {
    .ai-sol__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.hm-inner .ai-card.is-lead {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 360px;
    }
}

@media (max-width: 991px) {
    .ai-hero__inner {
        width: min(560px, 70%);
    }

    .ai-proc .ab-proc__step {
        grid-template-rows: auto auto auto;
    }

    .ai-proc .ab-proc__ic {
        grid-row: 1 / 4;
    }

    .ai-proc__desc {
        grid-column: 2;
    }
}

@media (max-width: 767px) {
    .ai-hero {
        display: block;
        height: auto;
        min-height: 0;
        padding-top: 56svh;
    }

    .ai-hero__canvas {
        bottom: auto;
        height: 64svh;
    }

    .ai-hero__glow {
        right: -20%;
        top: 4%;
        width: 120vw;
    }

    .ai-hero__ascii {
        top: 20px;
        right: 10px;
        font-size: 8px;
    }

    .ai-hero__side {
        display: none;
    }

    .ai-hero__mark {
        right: -6%;
        top: 30svh;
        height: 52svh;
    }

    .ai-hero__inner {
        width: auto;
        padding: 0 var(--gut) 70px;
        background: linear-gradient(180deg, rgba(242, 242, 243, 0), var(--bg) 60px);
    }

    body.hm-inner .ai-hero__title {
        font-size: clamp(2.2rem, 9.6vw, 3rem);
    }

    .ai-hero__status {
        left: var(--gut);
        right: var(--gut);
    }

    .ai-sol__grid {
        grid-template-columns: 1fr;
    }

    body.hm-inner .ai-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-card__wave i,
    .ai-hero__status i {
        animation: none;
    }
}
