.home-atac {
    --home-atac-deep: #102338;
    --home-atac-light: #f3f8fd;
    --home-atac-muted: #bdcede;
    --home-accent: #87d1ec;
    position: relative;
    background: var(--home-atac-deep);
    color: var(--home-atac-light);
}

.home-atac-stage {
    display: grid;
    align-items: center;
    padding-block: clamp(46px, 6.8svh, 86px);
    background: radial-gradient(ellipse at 82% 35%, #1b3b58, transparent 65%);
}

.home-atac-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(32px, 5vw, 75px);
}

.home-atac-copy h2 {
    max-width: 12ch;
    margin: 0 0 18px;
    font-size: clamp(2.35rem, 5vw, 4.45rem);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: 1.03;
    text-wrap: balance;
}

.home-atac-copy > p:not(.home-kicker) {
    max-width: 34ch;
    margin: 0 0 20px;
    color: var(--home-atac-muted);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    text-wrap: pretty;
}

.home-atac-copy .primary { min-height: 44px; }
.home-atac-copy .primary:focus-visible { outline-color: var(--home-accent); }

.home-atac-chart {
    min-width: 0;
    margin: 0;
    padding: clamp(15px, 2.4vw, 29px);
    border: 1px solid #a1bed7;
    border-radius: var(--radius);
    background: #f3f8fc;
    color: var(--ink);
    box-shadow: 0 14px 40px #09192c65;
    font-variant-numeric: tabular-nums;
}

.home-atac-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px 18px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #c2d3e2;
}

.home-atac-caption strong {
    color: #163958;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
}

.home-atac-caption span,
.home-atac-axis,
.home-atac-library {
    color: #365e80;
    font-size: .77rem;
    font-weight: 760;
    letter-spacing: .035em;
}

.home-atac-tracks {
    position: relative;
    display: grid;
    gap: 11px;
    margin-top: 13px;
    overflow: clip;
}

.home-atac-lane {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.home-atac-library {
    position: relative;
    z-index: 2;
    width: max-content;
    padding-right: 5px;
    background: #f3f8fc;
}

.home-atac-plot {
    display: block;
    width: 100%;
    height: clamp(51px, 10.5svh, 100px);
    border-bottom: 1px solid #7796af;
    fill: currentColor;
    background:
        repeating-linear-gradient(90deg, #83a6c63d 0 1px, transparent 1px 25%),
        linear-gradient(0deg, transparent calc(50% - 1px), #b6cadc 50%, transparent calc(50% + 1px)),
        #edf4fa;
}

.home-atac-series-0 { color: #317eb1; }
.home-atac-series-1 { color: #205281; }
.home-atac-band { fill: #95c9ed; opacity: var(--home-atac-band, .68); }
.home-atac-spans { fill: #789ab8; }
.home-atac-ghost { opacity: .24; }

.home-atac-cursor {
    display: none;
    position: absolute;
    z-index: 1;
    inset: calc(1.55 * .77rem + 4px) 0 0;
    border-left: 1px solid #116692;
    transform: translateX(var(--home-atac-cursor, 0%));
    pointer-events: none;
}

.home-atac-cursor::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #116692;
    box-shadow: 0 0 0 2px #f3f8fc;
    transform: translate(-50%, -60%);
    content: "";
}

.home-atac[data-scanning] .home-atac-cursor { display: block; }

.home-atac-axis {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
}

.home-atac-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 8px 15px;
    align-items: center;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid #b9d0e4;
    border-radius: var(--radius);
    background: #e5f1fa;
}

.home-atac-selection {
    display: grid;
    gap: 1px;
    overflow-wrap: anywhere;
}

.home-atac-selection strong { color: #184c75; font-size: .93rem; }
.home-atac-selection span,
.home-atac-result dt,
.home-atac-units { color: #3c5b76; font-size: .75rem; }
.home-atac-result dl { display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.home-atac-result dd { margin: 0; color: #163c5f; font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.home-atac-units { margin: 10px 0 0; }

@media (min-width: 900px) and (min-height: 690px) and (prefers-reduced-motion: no-preference) {
    .home-atac[data-motion] { min-height: calc(162svh - var(--home-atac-header, 50px)); }
    .home-atac[data-motion] .home-atac-stage {
        position: sticky;
        top: var(--home-atac-header, 50px);
        min-height: calc(100svh - var(--home-atac-header, 50px));
    }
}

@media (max-width: 760px) {
    .home-atac-layout { grid-template-columns: 1fr; gap: 22px; }
    .home-atac-copy h2 { max-width: 15ch; margin-bottom: 11px; }
    .home-atac-copy > p:not(.home-kicker) { margin-bottom: 14px; }
    .home-atac-result { grid-template-columns: 1fr; }
    .home-atac-result dl { justify-content: start; gap: 12px 22px; flex-wrap: wrap; }
}
