.ai-rebuild-hero::before {
    background:
        linear-gradient(126deg, var(--rebuild-paper) 0 43%, transparent 43%),
        linear-gradient(151deg, var(--rebuild-yellow) 0 64%, var(--rebuild-sky) 64% 100%);
}

.ai-rebuild-hero::after {
    z-index: -1;
    background:
        radial-gradient(circle at 79% 22%, rgba(255, 255, 255, .55), transparent 24%),
        linear-gradient(126deg, transparent 0 43%, rgba(20, 23, 25, .07) 43% 43.2%, transparent 43.2%);
}

.ai-rebuild-hero .rebuild-hero-copy {
    z-index: 2;
}

.ai-rebuild-hero h1 {
    max-width: 9ch;
}

.ai-workbench {
    position: relative;
    align-self: center;
    justify-self: stretch;
    min-height: 40rem;
    margin: 4rem var(--rebuild-gutter) 4rem 1rem;
    perspective: 1100px;
}

.ai-workbench::before {
    position: absolute;
    right: 1%;
    bottom: 1rem;
    left: 2%;
    height: 17rem;
    border: var(--rebuild-line);
    border-radius: 1.2rem 1.2rem .55rem .55rem;
    background:
        radial-gradient(circle at 16px 16px, rgba(20, 23, 25, .17) 0 1.2px, transparent 1.8px) 0 0 / 18px 18px,
        linear-gradient(145deg, #95a8ab, #56686d 45%, #324146);
    box-shadow: 0 2rem 2rem rgba(20, 23, 25, .23), inset 0 0 0 8px rgba(247, 241, 230, .2);
    content: "";
    transform: rotateX(4deg) rotateZ(-1deg);
}

.ai-workbench-cards {
    position: absolute;
    top: 2%;
    right: 3%;
    left: 3%;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ai-workbench-cards span {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 9.5rem;
    padding: 1rem;
    border: var(--rebuild-line);
    border-radius: .55rem;
    background:
        linear-gradient(rgba(20, 23, 25, .04) 1px, transparent 1px) 0 0 / 100% 1.7rem,
        var(--rebuild-paper);
    font: 900 clamp(1.25rem, 2vw, 2rem)/1 var(--rebuild-display);
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 .8rem 1.1rem rgba(20, 23, 25, .2);
    transform: rotate(-1deg);
}

.ai-workbench-cards span:nth-child(2) {
    transform: translateY(-.6rem) rotate(1deg);
}

.ai-workbench-cards span::before {
    position: absolute;
    top: -.5rem;
    left: 50%;
    width: .95rem;
    height: .95rem;
    border: 2px solid var(--rebuild-ink);
    border-radius: 50%;
    background: var(--rebuild-yellow);
    content: "";
    transform: translateX(-50%);
}

.ai-workbench-cards span::after {
    position: absolute;
    bottom: -6.7rem;
    left: 50%;
    width: 2px;
    height: 6.7rem;
    background: var(--rebuild-ink);
    content: "";
}

.ai-workbench-console {
    position: absolute;
    top: 48%;
    left: 50%;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, 3.7rem);
    place-content: center;
    gap: 1.35rem;
    width: min(72%, 30rem);
    min-height: 10rem;
    padding: 2rem 1.5rem 1.25rem;
    border: 3px solid var(--rebuild-ink);
    border-radius: .8rem;
    background: linear-gradient(145deg, #c5bca8, #77766e);
    box-shadow: 0 1rem 1.5rem rgba(20, 23, 25, .3), inset 0 0 0 6px rgba(247, 241, 230, .25);
    transform: translate(-50%, -50%) rotate(-1deg);
}

.ai-workbench-console i {
    display: block;
    width: 3.7rem;
    height: 3.7rem;
    border: 3px solid var(--rebuild-ink);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 7%, transparent 8%), var(--rebuild-yellow);
    box-shadow: inset 0 -9px 0 rgba(20, 23, 25, .18), 0 5px 0 rgba(20, 23, 25, .35);
}

.ai-workbench-console i:nth-child(2) {
    background-color: #a4bd8f;
}

.ai-workbench-console i:nth-child(3) {
    background-color: #89c5d9;
}

.ai-workbench-console strong {
    grid-column: 1 / -1;
    font-size: .68rem;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.ai-workbench-notes {
    position: absolute;
    right: 8%;
    bottom: 2.7rem;
    left: 8%;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

.ai-workbench-notes span {
    display: grid;
    place-items: center;
    min-height: 6.8rem;
    padding: .7rem;
    border: 2px solid var(--rebuild-ink);
    background: #e9e0cc;
    font: 900 .8rem/1.1 var(--rebuild-sans);
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 .55rem .65rem rgba(20, 23, 25, .2);
    transform: rotate(2deg);
}

.ai-workbench-notes span:nth-child(2) {
    background: #f5eddb;
    transform: rotate(-2deg);
}

.ai-workbench-notes span:nth-child(3) {
    background: #d8e7d0;
    transform: rotate(1deg);
}

.ai-tested-stamp {
    position: absolute;
    right: 0;
    bottom: 4rem;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 6.4rem;
    height: 6.4rem;
    border: 4px double var(--rebuild-ink);
    border-radius: 50%;
    background: var(--rebuild-paper);
    font: 900 1.2rem/1 var(--rebuild-display);
    letter-spacing: .05em;
    text-transform: uppercase;
    transform: rotate(-12deg);
}

.ai-thesis {
    display: grid;
    grid-template-columns: auto minmax(0, 1.35fr) minmax(17rem, .65fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    padding: clamp(2.5rem, 5vw, 5rem) var(--rebuild-gutter);
    border-bottom: var(--rebuild-line);
    background: linear-gradient(124deg, transparent 0 78%, var(--rebuild-mint) 78% 100%);
}

.ai-thesis-number {
    min-width: 7rem;
    padding-right: 2rem;
    border-bottom: 4px solid var(--rebuild-ink);
    font: 900 clamp(5.5rem, 9vw, 10rem)/.8 var(--rebuild-display);
}

.ai-thesis h2 {
    max-width: 14ch;
    margin: 1rem 0 0;
    font-size: clamp(3.2rem, 5.6vw, 6.5rem);
    line-height: .88;
}

.ai-thesis > p {
    max-width: 31rem;
    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.55;
}

.ai-lanes {
    border-bottom: var(--rebuild-line);
}

.ai-lane {
    display: grid;
    grid-template-columns: minmax(15rem, .48fr) minmax(27rem, 1fr);
    grid-template-areas:
        "heading machine"
        "ledger machine"
        "actions machine";
    gap: 1.5rem clamp(2rem, 5vw, 6rem);
    min-height: 46rem;
    padding: clamp(3rem, 6vw, 6rem) var(--rebuild-gutter);
    overflow: hidden;
    border-bottom: var(--rebuild-line);
    background: linear-gradient(128deg, transparent 0 72%, rgba(207, 232, 239, .7) 72%);
}

.ai-lane:last-child {
    border-bottom: 0;
}

.ai-lane.is-reversed {
    background: linear-gradient(128deg, transparent 0 72%, rgba(240, 217, 54, .35) 72%);
}

.ai-lane-heading {
    grid-area: heading;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1.2rem;
}

.ai-lane-heading > span {
    padding-bottom: .35rem;
    border-bottom: 3px solid var(--rebuild-ink);
    font: 900 2rem/1 var(--rebuild-display);
}

.ai-lane-heading h2 {
    max-width: 10ch;
    margin: 1rem 0;
    font-size: clamp(3.3rem, 5vw, 6rem);
    line-height: .88;
}

.ai-lane-heading p {
    max-width: 33rem;
    font-weight: 620;
    line-height: 1.55;
}

.ai-lane-machine {
    grid-area: machine;
    align-self: center;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
    min-height: 31rem;
    padding: 6rem 2rem 2rem;
    border: 3px solid var(--rebuild-ink);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 15px 15px, rgba(20, 23, 25, .11) 0 1px, transparent 1.8px) 0 0 / 20px 20px,
        linear-gradient(145deg, #d0c7b5, #9b9b91 60%, #686e6e);
    box-shadow: 0 2rem 2.5rem rgba(20, 23, 25, .2), inset 0 0 0 10px rgba(247, 241, 230, .25);
    transform: rotate(-1deg);
}

.ai-lane.is-reversed .ai-lane-machine {
    background:
        radial-gradient(circle at 15px 15px, rgba(247, 241, 230, .05) 0 1px, transparent 1.8px) 0 0 / 20px 20px,
        linear-gradient(145deg, #727870, #3e4949 55%, #20292b);
    color: var(--rebuild-paper);
}

.ai-machine-title {
    position: absolute;
    top: 1.8rem;
    right: 2rem;
    left: 2rem;
    display: block;
    padding: .8rem 1rem;
    border: 2px solid currentColor;
    border-radius: .45rem;
    background: rgba(20, 23, 25, .88);
    color: var(--rebuild-paper);
    font: 900 1.1rem/1 var(--rebuild-display);
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.ai-lane-machine i {
    display: grid;
    align-content: center;
    min-height: 9rem;
    padding: 1.1rem;
    border: 2px solid currentColor;
    border-radius: .55rem;
    background: rgba(247, 241, 230, .82);
    color: var(--rebuild-ink);
    font-style: normal;
    box-shadow: inset 0 -8px 0 rgba(20, 23, 25, .08);
}

.ai-lane-machine i::before {
    display: block;
    width: .75rem;
    height: .75rem;
    margin-bottom: .8rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--rebuild-yellow);
    content: "";
}

.ai-lane-machine b {
    font-size: .82rem;
    text-transform: uppercase;
}

.ai-lane-machine small {
    margin-top: .35rem;
    font-size: .72rem;
    line-height: 1.35;
}

.ai-lane-ledger {
    grid-area: ledger;
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 2px solid var(--rebuild-ink);
}

.ai-lane-ledger div {
    display: grid;
    grid-template-columns: minmax(8rem, .7fr) 1fr;
    gap: .8rem;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(20, 23, 25, .3);
}

.ai-lane-ledger dt {
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-lane-ledger dd {
    margin: 0;
    color: var(--rebuild-muted);
    font-size: .75rem;
    line-height: 1.4;
}

.ai-lane-actions {
    grid-area: actions;
    margin-top: 0;
}

.ai-proof-band h2 {
    margin-bottom: 2rem;
    font-size: clamp(2.6rem, 4vw, 4.8rem);
}

.ai-proof-band > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ai-proof-band article {
    display: grid;
    justify-items: center;
    padding: 1.5rem clamp(1rem, 3vw, 3rem);
    border-right: 1px solid rgba(247, 241, 230, .3);
    text-align: center;
}

.ai-proof-band article:last-child {
    border-right: 0;
}

.ai-proof-band article > span {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--rebuild-yellow);
    border-radius: 50%;
    color: var(--rebuild-sky);
    font-size: 2rem;
}

.ai-proof-band strong {
    font: 900 1.55rem/1 var(--rebuild-display);
    text-transform: uppercase;
}

.ai-proof-band p {
    max-width: 18rem;
    margin-bottom: 0;
    color: rgba(247, 241, 230, .78);
    line-height: 1.45;
}

.ai-capability-ledger,
.ai-method,
.ai-case-notes,
.ai-answers {
    padding: clamp(3rem, 6vw, 6rem) var(--rebuild-gutter);
    border-bottom: var(--rebuild-line);
}

.ai-capability-ledger {
    background: linear-gradient(130deg, var(--rebuild-paper) 0 78%, rgba(216, 232, 207, .65) 78% 100%);
}

.ai-capability-rows {
    margin-top: 3rem;
    border-top: var(--rebuild-line);
}

.ai-capability-rows article {
    display: grid;
    grid-template-columns: 4rem minmax(12rem, .55fr) 1fr minmax(15rem, .7fr);
    align-items: center;
    gap: 1.5rem;
    min-height: 8rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(20, 23, 25, .45);
}

.ai-capability-rows article > span {
    font: 900 1.7rem/1 var(--rebuild-display);
}

.ai-capability-rows h3 {
    margin: 0;
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    line-height: .95;
}

.ai-capability-rows p {
    line-height: 1.5;
}

.ai-capability-rows article > div {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ai-capability-rows small {
    padding: .45rem .65rem;
    border: 1px solid var(--rebuild-ink);
    border-radius: 999px;
    font-size: .67rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ai-method {
    background: var(--rebuild-sky);
}

.ai-method-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: ai-method;
}

.ai-method-track li {
    position: relative;
    min-height: 16rem;
    padding: 4rem 1.5rem 1.5rem;
    border: var(--rebuild-line);
    border-right: 0;
    background: rgba(247, 241, 230, .5);
}

.ai-method-track li:last-child {
    border-right: var(--rebuild-line);
}

.ai-method-track li::before {
    position: absolute;
    top: 2.2rem;
    right: -1.1rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border-top: var(--rebuild-line);
    border-right: var(--rebuild-line);
    background: var(--rebuild-sky);
    content: "";
    transform: rotate(45deg);
}

.ai-method-track li:last-child::before {
    display: none;
}

.ai-method-track span {
    position: absolute;
    top: 1rem;
    font: 900 1.4rem/1 var(--rebuild-display);
}

.ai-method-track strong {
    display: block;
    font: 900 clamp(2rem, 3vw, 3.2rem)/.92 var(--rebuild-display);
    text-transform: uppercase;
}

.ai-method-track p {
    line-height: 1.5;
}

.ai-case-notes {
    background: var(--rebuild-paper);
}

.ai-case-note-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3rem;
    border-top: var(--rebuild-line);
    border-left: var(--rebuild-line);
}

.ai-case-note-list a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    min-height: 15rem;
    padding: 2rem;
    border-right: var(--rebuild-line);
    border-bottom: var(--rebuild-line);
    background: rgba(207, 232, 239, .72);
    color: var(--rebuild-ink);
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease;
}

.ai-case-note-list a:nth-child(4n + 2),
.ai-case-note-list a:nth-child(4n + 3) {
    background: rgba(216, 232, 207, .72);
}

.ai-case-note-list a:hover {
    z-index: 2;
    background: var(--rebuild-yellow);
    transform: translateY(-3px);
}

.ai-case-note-list a > span {
    font: 900 1.5rem/1 var(--rebuild-display);
}

.ai-case-note-list small {
    display: block;
    margin-bottom: .65rem;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ai-case-note-list strong {
    display: block;
    max-width: 17ch;
    font: 900 clamp(1.7rem, 2.6vw, 2.8rem)/.95 var(--rebuild-display);
    text-transform: uppercase;
}

.ai-case-note-list p {
    max-width: 36rem;
    line-height: 1.45;
}

.ai-case-note-list i {
    align-self: end;
    font-size: 1.6rem;
    font-style: normal;
}

.ai-answers {
    background: var(--rebuild-paper-deep);
}

.ai-answer-list {
    margin-top: 3rem;
    border-top: var(--rebuild-line);
}

.ai-answer-list details {
    border-bottom: var(--rebuild-line);
}

.ai-answer-list summary {
    display: grid;
    grid-template-columns: 4rem 1fr 2rem;
    align-items: center;
    gap: 1rem;
    min-height: 6.5rem;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
}

.ai-answer-list summary::-webkit-details-marker {
    display: none;
}

.ai-answer-list summary span {
    font: 900 1.5rem/1 var(--rebuild-display);
}

.ai-answer-list summary strong {
    font: 900 clamp(1.5rem, 2.7vw, 2.8rem)/1 var(--rebuild-display);
    text-transform: uppercase;
}

.ai-answer-list summary i {
    position: relative;
    width: 1.6rem;
    height: 1.6rem;
}

.ai-answer-list summary i::before,
.ai-answer-list summary i::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.4rem;
    height: 2px;
    background: var(--rebuild-ink);
    content: "";
    transform: translate(-50%, -50%);
}

.ai-answer-list summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.ai-answer-list details[open] summary i::after {
    transform: translate(-50%, -50%) rotate(0);
}

.ai-answer-list details > p {
    max-width: 58rem;
    margin: -.5rem 3rem 1.8rem 5rem;
    font-size: 1.03rem;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .ai-workbench {
        min-height: 34rem;
        margin-right: 2rem;
    }

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

    .ai-thesis > p {
        grid-column: 2;
    }

    .ai-lane {
        grid-template-columns: minmax(14rem, .55fr) minmax(22rem, 1fr);
    }

    .ai-capability-rows article {
        grid-template-columns: 3rem minmax(10rem, .6fr) 1fr;
    }

    .ai-capability-rows article > div {
        grid-column: 2 / -1;
    }
}

@media (max-width: 980px) {
    .ai-rebuild-hero::before {
        background:
            linear-gradient(145deg, var(--rebuild-paper) 0 53%, transparent 53%),
            linear-gradient(156deg, var(--rebuild-yellow) 0 67%, var(--rebuild-sky) 67% 100%);
    }

    .ai-workbench {
        min-height: 39rem;
        margin: 0 var(--rebuild-gutter) 3rem;
    }

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

    .ai-lane {
        grid-template-columns: 1fr;
        grid-template-areas: "heading" "machine" "ledger" "actions";
        min-height: 0;
    }

    .ai-lane-machine {
        min-height: 27rem;
    }

    .ai-proof-band > div,
    .ai-method-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-proof-band article:nth-child(2) {
        border-right: 0;
    }

    .ai-proof-band article:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(247, 241, 230, .3);
    }

    .ai-method-track li:nth-child(2) {
        border-right: var(--rebuild-line);
    }

    .ai-method-track li:nth-child(2)::before,
    .ai-method-track li:last-child::before {
        display: none;
    }

    .ai-method-track li:nth-child(n + 3) {
        border-top: 0;
    }
}

@media (max-width: 700px) {
    .ai-workbench {
        min-height: 31rem;
    }

    .ai-workbench-cards {
        gap: .45rem;
    }

    .ai-workbench-cards span {
        min-height: 7.5rem;
        padding: .6rem;
        font-size: 1rem;
    }

    .ai-workbench-cards span::after {
        bottom: -4rem;
        height: 4rem;
    }

    .ai-workbench-console {
        top: 47%;
        grid-template-columns: repeat(3, 2.7rem);
        gap: .75rem;
        width: 76%;
        min-height: 8rem;
    }

    .ai-workbench-console i {
        width: 2.7rem;
        height: 2.7rem;
    }

    .ai-workbench-notes {
        right: 4%;
        bottom: 2rem;
        left: 4%;
        gap: .35rem;
    }

    .ai-workbench-notes span {
        min-height: 5rem;
        padding: .4rem;
        font-size: .66rem;
    }

    .ai-tested-stamp {
        right: -.5rem;
        bottom: 2.5rem;
        width: 4.7rem;
        height: 4.7rem;
        font-size: .9rem;
    }

    .ai-thesis {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ai-thesis-number {
        width: max-content;
        min-width: 5rem;
        padding-right: 1rem;
    }

    .ai-thesis > p {
        grid-column: 1;
    }

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

    .ai-lane-machine {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 5.5rem 1rem 1rem;
    }

    .ai-lane-machine i {
        min-height: 7rem;
    }

    .ai-lane-ledger div,
    .ai-capability-rows article,
    .ai-answer-list summary {
        grid-template-columns: 1fr;
    }

    .ai-capability-rows article {
        gap: .7rem;
    }

    .ai-capability-rows article > div {
        grid-column: 1;
    }

    .ai-proof-band > div,
    .ai-method-track,
    .ai-case-note-list {
        grid-template-columns: 1fr;
    }

    .ai-proof-band article,
    .ai-proof-band article:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(247, 241, 230, .3);
    }

    .ai-proof-band article:nth-child(3) {
        grid-column: 1;
        border-top: 0;
        border-bottom: 0;
    }

    .ai-method-track li,
    .ai-method-track li:nth-child(2) {
        border-right: var(--rebuild-line);
        border-bottom: 0;
    }

    .ai-method-track li:nth-child(n + 2) {
        border-top: var(--rebuild-line);
    }

    .ai-method-track li::before {
        display: none;
    }

    .ai-case-note-list a {
        min-height: 13rem;
        padding: 1.5rem;
    }

    .ai-answer-list summary {
        position: relative;
        gap: .6rem;
        padding-right: 2.5rem;
    }

    .ai-answer-list summary i {
        position: absolute;
        top: 1.2rem;
        right: 0;
    }

    .ai-answer-list details > p {
        margin: -.2rem 0 1.5rem;
    }
}
