.adc-specs {
    /* Hero gradient stops have no counterpart in colors.css, so they live here. */
    --adc-specs-navy-a: #1a2542;
    --adc-specs-navy-b: #0e1c39;
    --adc-specs-glow-0: #1f2a4d;
    --adc-specs-glow-1: #0e1830;
    --adc-specs-glow-2: #08102a;

    padding: 60px 16px;
    background: var(--color-bg-white);
}

.adc-specs__hero {
    /* one design pixel of the camera artwork: full size on the desktop frame, shrinks with the hero */
    --ck: min(1px, max(0.44px, calc((100cqw - 548px) / 725)));
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1408px;
    margin-inline: auto;
    padding: 80px 60px;
    overflow: hidden;
    border-radius: 28px;
    color: var(--color-bg-white);
    isolation: isolate;
    container-type: inline-size;
    background:
        linear-gradient(
            160.446deg,
            color-mix(in srgb, var(--adc-specs-navy-a) 85%, transparent) 0%,
            color-mix(in srgb, var(--adc-specs-navy-b) 95%, transparent) 100%
        ),
        radial-gradient(
            ellipse 1164px 1254.1px at 422.4px 166.8px,
            var(--adc-specs-glow-0) 0%,
            var(--adc-specs-glow-1) 70%,
            var(--adc-specs-glow-2) 100%
        );
}

/* ---------- decoration: rotated svgs inside boxes measured after the rotation ---------- */
.adc-specs__decor,
.adc-specs__decor-extra {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.adc-specs__decor > span,
.adc-specs__decor-extra > span {
    position: relative;
    flex: none;
}

.adc-specs__decor img,
.adc-specs__decor-extra img {
    position: absolute;
    display: block;
    max-width: none;
}

/* ellipses: the svg is bigger than its box (blur), so it overflows by a percentage */
.adc-specs__decor--ellipse-a {
    top: -694px;
    left: -485px;
    width: 917.646px;
    height: 917.646px;
}

.adc-specs__decor--ellipse-a > span {
    width: 767.458px;
    height: 767.458px;
    transform: rotate(-167.28deg);
}

.adc-specs__decor--ellipse-a img,
.adc-specs__decor--ellipse-b img {
    inset: -43.52%;
    width: 187.04%;
    height: 187.04%;
}

.adc-specs__decor--ellipse-b {
    top: 408px;
    right: -387px;
    width: 774.163px;
    height: 774.163px;
}

.adc-specs__decor--ellipse-b > span {
    width: 767.458px;
    height: 767.458px;
    transform: rotate(89.5deg);
}

/* concentric line sets: the svg fills its box */
.adc-specs__decor--lines-a,
.adc-specs__decor--lines-b,
.adc-specs__decor--lines-c {
    --lw: 364.663px;
    --lh: 880px;
}

.adc-specs__decor--lines-a > span,
.adc-specs__decor--lines-b > span,
.adc-specs__decor--lines-c > span {
    width: var(--lw);
    height: var(--lh);
}

.adc-specs__decor--lines-a img,
.adc-specs__decor--lines-b img,
.adc-specs__decor--lines-c img {
    inset: 0;
    width: 100%;
    height: 100%;
}

.adc-specs__decor--lines-a {
    top: -854.98px;
    right: -359px;
    width: 880.109px;
    height: 880.109px;
}

.adc-specs__decor--lines-a > span {
    transform: rotate(135deg);
}

.adc-specs__decor--lines-b {
    top: -297.08px;
    left: -412.32px;
    width: 940.138px;
    height: 773.386px;
}

.adc-specs__decor--lines-b > span {
    transform: rotate(58.23deg);
}

.adc-specs__decor--lines-c {
    --lw: 570.184px;
    --lh: 1375.96px;
    top: -219px;
    right: -387px;
    width: 1376.132px;
    height: 1376.132px;
}

.adc-specs__decor--lines-c > span {
    transform: rotate(-135deg);
}

/* glows that sit on top of the camera */
.adc-specs__decor--glow-bottom {
    top: 576.89px;
    right: -45.5px;
    width: 729.467px;
    height: 253.194px;
}

.adc-specs__decor--glow-bottom > span {
    width: 715.582px;
    height: 192.437px;
    transform: rotate(4.93deg);
}

.adc-specs__decor--glow-bottom img {
    inset: -173.55% -46.67%;
    width: 193.34%;
    height: 447.1%;
}

.adc-specs__decor--glow-right {
    top: 451.43px;
    right: -347.2px;
    width: 545.422px;
    height: 569.78px;
}

.adc-specs__decor--glow-right > span {
    width: 565.058px;
    height: 540.484px;
    transform: rotate(89.5deg);
}

.adc-specs__decor--glow-right img {
    inset: -61.79% -59.1%;
    width: 218.2%;
    height: 223.58%;
}

/* ---------- header ---------- */
.adc-specs__header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adc-specs__title {
    margin: 0;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.72px;
}

.adc-specs__lead {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
}

/* ---------- camera artwork (desktop: pinned bottom right, behind the content) ---------- */
.adc-specs__visual {
    position: absolute;
    right: calc(-87 * var(--ck));
    bottom: 80px;
    width: calc(812 * var(--ck));
    height: calc(453 * var(--ck));
    pointer-events: none;
}

.adc-specs__camera {
    position: relative;
    width: 100%;
    height: 100%;
    font-size: var(--ck);
}

.adc-specs__photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill; /* the design stretches the photo to its frame */
}

.adc-specs__layer[hidden] {
    display: none;
}

.adc-specs__layer {
    position: absolute;
    inset: 0;
}

.adc-specs__layer > span {
    position: absolute;
}

.adc-specs__layer img {
    display: block;
    max-width: none;
}

/* state effects sit over the photo with the blend modes the design uses */
.adc-specs__lens {
    display: flex;
    align-items: center;
    justify-content: center;
    left: 89.82em;
    top: 208.89em;
    width: 100.844em;
    height: 117.533em;
    mix-blend-mode: plus-lighter;
}

.adc-specs__lens > span {
    position: relative;
    flex: none;
    width: 62.674em;
    height: 100.061em;
    transform: rotate(-26.6deg);
}

.adc-specs__lens img {
    position: absolute;
    inset: -2% -3.19%;
    width: 106.38%;
    height: 104%;
}

.adc-specs__lens-b {
    left: 103em;
    top: 216.57em;
    width: 78.439em;
    height: 100.929em;
    mix-blend-mode: hard-light;
}

.adc-specs__lens-b img {
    position: absolute;
    inset: -24.97% -32.13%;
    width: 164.26%;
    height: 149.94%;
}

.adc-specs__fx img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.adc-specs__fx--network-a {
    left: 326em;
    top: 1.5em;
    width: 399em;
    height: 99.5em;
    mix-blend-mode: plus-lighter;
}

.adc-specs__fx--network-b {
    left: 319em;
    top: 54em;
    width: 404em;
    height: 60em;
    mix-blend-mode: hard-light;
}

.adc-specs__fx--network-a img {
    inset: -0.42% -0.13% -0.5% -0.11%;
    width: 100.24%;
    height: 100.92%;
}

.adc-specs__fx--network-b img {
    inset: -42% -6.24%;
    width: 112.48%;
    height: 184%;
}

.adc-specs__fx--chip {
    left: 326em;
    top: 131em;
    width: 310em;
    height: 292em;
    mix-blend-mode: lighten;
}

.adc-specs__fx--chip img {
    width: 99.68%;
}

.adc-specs__fx--chip-lines {
    left: 390em;
    top: 220em;
    width: 103.5em;
    height: 127.5em;
    mix-blend-mode: plus-lighter;
}

.adc-specs__fx--chip-lines img {
    inset: -0.36% -0.46% -0.38% -0.48%;
    width: 100.94%;
    height: 100.74%;
}

.adc-specs__fx--cabin-glow {
    left: 52.05em;
    top: 128.19em;
    width: 265.07em;
    height: 244.95em;
    mix-blend-mode: plus-lighter;
}

.adc-specs__fx--cabin-glow img {
    inset: -8.16% -7.55%;
    width: 115.1%;
    height: 116.32%;
}

.adc-specs__fx--cabin-edge {
    display: flex;
    align-items: center;
    justify-content: center;
    left: 244.85em;
    top: 145.32em;
    width: 86.586em;
    height: 248.021em;
    mix-blend-mode: hard-light;
}

.adc-specs__fx--cabin-edge > span {
    position: relative;
    flex: none;
    width: 244.925em;
    height: 75.91em;
    transform: rotate(87.48deg);
}

.adc-specs__fx--cabin-edge img {
    inset: -33.2% -10.29%;
    width: 120.58%;
    height: 166.4%;
}

.adc-specs__fx--location-a {
    left: 326em;
    top: 2em;
    width: 399em;
    height: 99.5em;
    mix-blend-mode: plus-lighter;
}

.adc-specs__fx--location-a img {
    inset: -0.42% -0.13% -0.5% -0.11%;
    width: 100.24%;
    height: 100.92%;
}

.adc-specs__fx--location-b {
    left: 326em;
    top: 59em;
    width: 404em;
    height: 58em;
    mix-blend-mode: hard-light;
}

.adc-specs__fx--location-b img {
    inset: -43.45% -6.24%;
    width: 112.48%;
    height: 186.9%;
}

.adc-specs__fx--ai-edge {
    display: flex;
    align-items: center;
    justify-content: center;
    left: 344.85em;
    top: 353.76em;
    width: 116.819em;
    height: 82.676em;
    mix-blend-mode: hard-light;
}

.adc-specs__fx--ai-edge > span {
    position: relative;
    flex: none;
    width: 32.892em;
    height: 114.741em;
    transform: rotate(117.84deg);
}

.adc-specs__fx--ai-edge img {
    inset: -13.07% -45.6%;
    width: 191.2%;
    height: 126.14%;
}

.adc-specs__fx--ai-beam {
    display: flex;
    align-items: center;
    justify-content: center;
    left: 140em;
    top: -554em;
    width: 1306.552em;
    height: 1129.796em;
}

.adc-specs__fx--ai-beam > span {
    position: relative;
    flex: none;
    width: 1113.558em;
    height: 855.448em;
    transform: rotate(16.04deg);
}

.adc-specs__fx--ai-beam img {
    inset: 0.16% 0.1% 0.17% 0.34%;
    width: 99.56%;
    height: 99.67%;
}

.adc-specs__decor-extra {
    display: none;
}

/* ---------- specs + active feature ---------- */
.adc-specs__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 608px;
    max-width: 100%;
}

.adc-specs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.adc-specs__spec {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 14px;
    color: inherit;
    background: var(--color-bg-white-6);
    box-shadow: inset 0 0 0 1px var(--color-bg-white-10);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.adc-specs__spec:hover {
    background: var(--color-bg-white-10);
}

.adc-specs__spec.active,
.adc-specs__spec.active:hover {
    background: var(--color-primary);
}

.adc-specs__spec:focus-visible {
    outline: 2px solid var(--color-bg-white);
    outline-offset: 2px;
}

.adc-specs__spec-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    color: var(--color-bg-white);
    background: var(--color-bg-white-10);
}

.adc-specs__spec.active .adc-specs__spec-icon {
    color: var(--color-primary);
    background: var(--color-bg-white);
}

/* the exported icons are used as masks so one file serves both colours */
.adc-specs__glyph {
    display: block;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--glyph) center / contain no-repeat;
    mask: var(--glyph) center / contain no-repeat;
}

.adc-specs__glyph--road {
    --glyph: url("img/icon-video.svg");
}

.adc-specs__glyph--connectivity {
    --glyph: url("img/icon-wifi.svg");
}

.adc-specs__glyph--storage {
    --glyph: url("img/icon-database.svg");
}

.adc-specs__glyph--cabin {
    --glyph: url("img/icon-eye.svg");
}

.adc-specs__glyph--location {
    --glyph: url("img/icon-map-pin.svg");
}

.adc-specs__glyph--ai {
    --glyph: url("img/icon-ai-safety.svg");
}

.adc-specs__spec-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
}

.adc-specs__spec-label {
    color: var(--color-bg-white-60);
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 1px;
}

.adc-specs__spec-value {
    font-size: 16px;
    line-height: 22px;
}

.adc-specs__feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: 14px;
    background: var(--color-bg-white-6);
    box-shadow: inset 0 0 0 1px var(--color-bg-white-10);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.adc-specs__feature[hidden] {
    display: none;
}

.adc-specs__feature-label {
    margin: 0 0 -6px;
    color: var(--color-primary-alt);
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 1px;
}

.adc-specs__feature-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.adc-specs__feature-copy {
    margin: 0;
    color: var(--color-bg-white-80);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* The desktop design breaks these descriptions by hand (the Figma text has line breaks), not by width */
.adc-specs__br {
    display: none;
}

@media (min-width: 1280px) {
    .adc-specs__br {
        display: inline;
    }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
    .adc-specs {
        padding: 40px 16px;
    }

    .adc-specs__hero {
        gap: 40px;
        padding: 60px;
        background:
            linear-gradient(
                137.336deg,
                color-mix(in srgb, var(--adc-specs-navy-a) 85%, transparent) 0%,
                color-mix(in srgb, var(--adc-specs-navy-b) 95%, transparent) 100%
            ),
            radial-gradient(
                ellipse 626.65px 1751.8px at 227.4px 233px,
                var(--adc-specs-glow-0) 0%,
                var(--adc-specs-glow-1) 70%,
                var(--adc-specs-glow-2) 100%
            );
    }

    .adc-specs__header {
        order: 1;
    }

    .adc-specs__title {
        font-size: 42px;
        line-height: 1.16;
        letter-spacing: -0.21px;
    }

    .adc-specs__lead {
        font-size: 18px;
    }

    /* the artwork moves into the flow, between the header and the specs */
    .adc-specs__visual {
        position: relative;
        right: auto;
        bottom: auto;
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 638 / 365;
        container-type: inline-size;
    }

    .adc-specs__camera {
        --ck: calc(100cqw / 812);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100cqw * 377 / 638);
        font-size: var(--ck);
    }

    .adc-specs__panel {
        order: 3;
        gap: 33.579px;
        width: 100%;
    }

    .adc-specs__grid {
        gap: 16.789px;
    }

    .adc-specs__spec {
        gap: 10.493px;
        -webkit-backdrop-filter: blur(8.395px);
        backdrop-filter: blur(8.395px);
    }

    .adc-specs__spec-icon {
        width: 37.776px;
        height: 37.776px;
        border-radius: 18.888px;
    }

    .adc-specs__glyph {
        width: 18.888px;
        height: 18.888px;
    }

    .adc-specs__spec-text {
        gap: 4.197px;
    }

    .adc-specs__spec-label {
        letter-spacing: 1.0493px;
    }

    .adc-specs__feature {
        gap: 10.493px;
        -webkit-backdrop-filter: blur(8.395px);
        backdrop-filter: blur(8.395px);
    }

    .adc-specs__feature-label {
        letter-spacing: 1.0493px;
    }

    /* decoration for the narrower frame */
    .adc-specs__decor--ellipse-a {
        top: -570px;
        left: -481px;
    }

    .adc-specs__decor--lines-b {
        top: -173.09px;
        left: -408.32px;
    }

    .adc-specs__decor--lines-c {
        top: 367px;
        right: auto;
        left: 94px;
    }

    .adc-specs__decor--glow-right {
        top: 957px;
        right: -422px;
        width: 579.1px;
        height: 604.962px;
    }

    .adc-specs__decor--glow-right > span {
        width: 599.949px;
        height: 573.857px;
    }

    .adc-specs__decor--glow-bottom {
        display: none;
    }
}

/* three specs per row need ~735px (the longest value is nowrap); below that the six specs
   become a horizontal strip that bleeds to the card edge, as on the mobile design */
@media (max-width: 740px) {
    .adc-specs__grid {
        display: flex;
        gap: 16.789px;
        margin-right: -60px;
        padding-right: 60px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .adc-specs__grid::-webkit-scrollbar {
        display: none;
    }

    .adc-specs__spec {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
}

/* ---------- mobile ---------- */
@media (max-width: 576px) {
    .adc-specs {
        padding: 60px 16px 0;
    }

    .adc-specs__hero {
        gap: 40px;
        padding: 32px 24px 24px;
        background:
            linear-gradient(
                125.411deg,
                color-mix(in srgb, var(--adc-specs-navy-a) 85%, transparent) 0%,
                color-mix(in srgb, var(--adc-specs-navy-b) 95%, transparent) 100%
            ),
            radial-gradient(
                ellipse 298.44px 1273.3px at 108.3px 169.36px,
                var(--adc-specs-glow-0) 0%,
                var(--adc-specs-glow-1) 70%,
                var(--adc-specs-glow-2) 100%
            );
    }

    .adc-specs__title {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.064px;
    }

    .adc-specs__lead {
        font-weight: 500;
        line-height: 1.44;
    }

    .adc-specs__visual {
        aspect-ratio: 313 / 179;
    }

    .adc-specs__camera {
        height: calc(100cqw * 185 / 313);
    }

    .adc-specs__decor-extra {
        top: -156px;
        left: 192px;
        z-index: -1;
        display: flex;
        width: 426.084px;
        height: 426.084px;
    }

    .adc-specs__decor-extra > span {
        width: 356.348px;
        height: 356.348px;
        transform: rotate(-167.28deg);
    }

    .adc-specs__decor-extra img {
        inset: -43.52%;
        width: 187.04%;
        height: 187.04%;
    }

    .adc-specs__decor--ellipse-a {
        top: -531px;
        left: -367px;
        width: 753.531px;
        height: 753.531px;
    }

    .adc-specs__decor--ellipse-a > span {
        width: 630.203px;
        height: 630.203px;
    }

    .adc-specs__decor--lines-b {
        top: -205.07px;
        left: -307.33px;
        width: 772.001px;
        height: 635.071px;
        --lw: 299.445px;
        --lh: 722.618px;
    }

    .adc-specs__decor--glow-right {
        display: none;
    }

    .adc-specs__panel {
        gap: 16px;
    }

    .adc-specs__grid {
        margin-right: -24px;
        padding-right: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adc-specs__spec {
        transition: none;
    }
}
