#domain-first-preview {
    --paper: #eeeade;
    --ink: #22221e;
    --red: #e6412c;
    --blue: #2547bb;
    --yellow: #476b5a;
}
#domain-first-preview * {
    box-sizing: border-box;
}
#domain-first-preview {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}
#domain-first-preview {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family:
        ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
        monospace;
}
#domain-first-preview a {
    color: inherit;
    text-decoration: none;
}
#domain-first-preview a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 7px;
}
#domain-first-preview .hero {
    padding: 24px 4% 0;
}
#domain-first-preview .edition,
#domain-first-preview .hero-bottom,
#domain-first-preview .eyebrow,
#domain-first-preview .section-tag,
#domain-first-preview .panel-top,
#domain-first-preview .coordinate,
#domain-first-preview .vertical-label {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
}
#domain-first-preview .edition {
    display: flex;
    justify-content: space-between;
}
#domain-first-preview .hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 670px;
    position: relative;
}
#domain-first-preview .hero-copy {
    z-index: 2;
    padding-top: 60px;
}
#domain-first-preview .eyebrow {
    display: flex;
    gap: 9px;
    align-items: center;
}
#domain-first-preview .eyebrow i {
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
}
#domain-first-preview h1 {
    font-size: clamp(75px, 9.4vw, 155px);
    line-height: 0.86;
    letter-spacing: -0.07em;
    margin: 34px 0 28px;
    font-weight: 900;
}
#domain-first-preview h1 span {
    color: var(--red);
}
#domain-first-preview .intro {
    display: flex;
    align-items: flex-end;
    gap: 40px;
}
#domain-first-preview .intro p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
#domain-first-preview .button {
    background: var(--ink);
    color: var(--paper);
    padding: 19px 22px;
    font-size: 13px;
    display: flex;
    gap: 38px;
    white-space: nowrap;
}
#domain-first-preview .button:hover {
    background: var(--blue);
}
#domain-first-preview .composition {
    position: relative;
    min-width: 0;
    overflow: hidden;
    margin: 40px 0 40px 0;
}
#domain-first-preview .grid {
    position: absolute;
    inset: 25px 18px 55px 5px;
    background-image:
        linear-gradient(#22221e13 1px, transparent 1px),
        linear-gradient(90deg, #22221e13 1px, transparent 1px);
    background-size: 58px 58px;
}
#domain-first-preview .blue-square {
    position: absolute;
    width: 52%;
    aspect-ratio: 1;
    background: var(--blue);
    left: 7%;
    top: 13%;
    transform: rotate(-12deg);
}
#domain-first-preview .yellow-plane {
    position: absolute;
    background: var(--yellow);
    width: 53%;
    height: 28%;
    left: 38%;
    top: 52%;
    transform: rotate(-12deg);
}
#domain-first-preview .black-beam {
    position: absolute;
    background: var(--ink);
    width: 110%;
    height: 13%;
    left: -5%;
    top: 48%;
    transform: rotate(-48deg);
}
#domain-first-preview .red-disc {
    position: absolute;
    width: 59%;
    aspect-ratio: 1;
    background: var(--red);
    border-radius: 50%;
    top: 30%;
    left: 33%;
}
#domain-first-preview .ring {
    position: absolute;
    width: 28%;
    aspect-ratio: 1;
    border: 1px solid var(--paper);
    border-radius: 50%;
    top: 46%;
    left: 49%;
}
#domain-first-preview .axis {
    position: absolute;
    height: 90%;
    width: 1px;
    background: var(--ink);
    left: 62%;
    top: 0;
    transform: rotate(24deg);
    opacity: 0.5;
}
#domain-first-preview .coordinate {
    position: absolute;
    bottom: 5px;
    left: 7%;
    font-size: 9px;
}
#domain-first-preview .vertical-label {
    position: absolute;
    right: -90px;
    top: 49%;
    transform: rotate(-90deg);
    font-size: 9px;
}
#domain-first-preview .small-cross {
    position: absolute;
    top: 0;
    right: 20px;
    font: 30px monospace;
}
#domain-first-preview .hero-bottom {
    border-top: 1px solid var(--ink);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}
#domain-first-preview .approach {
    padding: 80px 4% 75px;
    border-top: 1px solid var(--ink);
}
#domain-first-preview .section-tag {
    font-size: 11px;
}
#domain-first-preview .approach-main {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 70px;
    margin: 42px 0 60px;
}
#domain-first-preview h2 {
    font-size: clamp(40px, 5vw, 77px);
    line-height: 1;
    letter-spacing: -0.055em;
    margin: 0;
    font-weight: 900;
}
#domain-first-preview .approach h2 span {
    color: var(--red);
}
#domain-first-preview .approach-text {
    max-width: 420px;
}
#domain-first-preview .approach-text p {
    font-size: 15px;
    line-height: 1.7;
}
#domain-first-preview .approach-text .lead {
    font-size: 23px;
    line-height: 1.35;
    margin-top: 0;
}
#domain-first-preview .principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink);
}
#domain-first-preview .principles > div {
    padding: 28px 32px 0 0;
}
#domain-first-preview .principles > div + div {
    border-left: 1px solid var(--ink);
    padding-left: 32px;
}
#domain-first-preview .symbol {
    display: block;
    width: 36px;
    height: 36px;
    margin-bottom: 26px;
}
#domain-first-preview .circle {
    background: var(--red);
    border-radius: 50%;
}
#domain-first-preview .square {
    background: var(--blue);
}
#domain-first-preview .triangle {
    background: var(--yellow);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
#domain-first-preview .principles p {
    font-size: 14px;
    line-height: 1.5;
}
#domain-first-preview .principles p:first-of-type {
    font: 10px monospace;
    letter-spacing: 1px;
}
#domain-first-preview .principles h3 {
    font-size: 24px;
    letter-spacing: -0.6px;
    margin: 20px 0 10px;
}
#domain-first-preview .system {
    padding: 65px 4% 80px;
    background: var(--ink);
    color: var(--paper);
}
#domain-first-preview .system-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 15px 0;
}
#domain-first-preview .system-heading p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
#domain-first-preview .system-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
#domain-first-preview .system-panels article {
    padding: 28px 32px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}
#domain-first-preview .runtime {
    background: var(--paper);
}
#domain-first-preview .scaffolder {
    background: var(--blue);
    color: var(--paper) !important;
}
#domain-first-preview .panel-top {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}
#domain-first-preview .runtime-art,
#domain-first-preview .scaffold-art {
    height: 205px;
    position: relative;
    margin: 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#domain-first-preview .runtime-art i {
    width: 62px;
    height: 62px;
    background: var(--red);
}
#domain-first-preview .runtime-art i:nth-child(2) {
    border-radius: 50%;
    background: var(--blue);
    transform: translateY(-28px);
}
#domain-first-preview .runtime-art i:nth-child(3) {
    background: var(--yellow);
    transform: translateY(28px);
}
#domain-first-preview .runtime-art i:last-child {
    background: var(--ink);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
#domain-first-preview .scaffold-art {
    display: grid;
    grid-template-columns: 70px 70px;
    grid-template-rows: 70px 70px;
    gap: 0;
    transform: rotate(-12deg);
}
#domain-first-preview .scaffold-art i {
    border: 1px solid var(--paper);
}
#domain-first-preview .scaffold-art i:first-child {
    background: var(--paper);
}
#domain-first-preview .scaffold-art i:last-child {
    background: var(--red);
    border-radius: 50%;
    border: 0;
    transform: translate(20px, 20px);
}
#domain-first-preview .system-panels h3 {
    font-size: 36px;
    letter-spacing: -1.3px;
    margin: 0;
}
#domain-first-preview .system-panels p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 380px;
    min-height: 75px;
}
#domain-first-preview .system-panels a {
    border-top: 1px solid;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
#domain-first-preview .start {
    padding: 65px 4% 80px;
    background: var(--red);
}
#domain-first-preview .start-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
    margin-top: 45px;
}
#domain-first-preview .start h2 {
    font-size: clamp(65px, 8vw, 122px);
    line-height: 0.9;
}
#domain-first-preview .start h2 span {
    color: var(--paper);
}
#domain-first-preview .next {
    max-width: 340px;
    align-self: end;
}
#domain-first-preview .next-art {
    width: 65px;
    height: 65px;
    background: var(--ink);
    border-radius: 50% 50% 0 0;
    margin-bottom: 35px;
}
#domain-first-preview .next h3 {
    font-size: 25px;
    letter-spacing: -1px;
}
#domain-first-preview .next p {
    font-size: 15px;
    line-height: 1.6;
}
#domain-first-preview .next a {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 13px;
}
#domain-first-preview footer {
    padding: 32px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#domain-first-preview footer > span {
    font: 10px monospace;
    letter-spacing: 1px;
}
@media (min-width: 1600px) {
    #domain-first-preview {
        max-width: 1800px;
        margin: auto;
    }
}
@media (max-width: 1050px) {
    #domain-first-preview .intro {
        display: block;
    }
    #domain-first-preview .button {
        margin-top: 20px;
        width: max-content;
    }
    #domain-first-preview .hero-main {
        min-height: 680px;
    }
    #domain-first-preview .composition {
        margin-top: 80px;
    }
    #domain-first-preview .approach-main {
        gap: 35px;
    }
}
@media (max-width: 700px) {
    #domain-first-preview .edition {
        font-size: 8px;
    }
    #domain-first-preview .hero-main {
        display: block;
        min-height: 0;
    }
    #domain-first-preview .hero-copy {
        padding-top: 42px;
    }
    #domain-first-preview h1 {
        font-size: clamp(76px, 17vw, 120px);
    }
    #domain-first-preview .intro {
        display: flex;
        gap: 15px;
        align-items: center;
        justify-content: space-between;
    }
    #domain-first-preview .intro p {
        font-size: 12px;
    }
    #domain-first-preview .button {
        padding: 15px;
        font-size: 11px;
        gap: 18px;
        margin: 0;
    }
    #domain-first-preview .composition {
        height: 410px;
        margin: 32px 0 22px;
    }
    #domain-first-preview .hero-bottom {
        font-size: 8px;
    }
    #domain-first-preview .hero-bottom > span:last-child {
        display: none;
    }
    #domain-first-preview .approach,
    #domain-first-preview .system,
    #domain-first-preview .start {
        padding-top: 45px;
        padding-bottom: 45px;
    }
    #domain-first-preview .approach-main,
    #domain-first-preview .start-row {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 30px;
    }
    #domain-first-preview .approach-main {
        margin-bottom: 35px;
    }
    #domain-first-preview .approach-text .lead {
        font-size: 21px;
    }
    #domain-first-preview .principles {
        grid-template-columns: 1fr;
    }
    #domain-first-preview .principles > div {
        padding: 24px 0 !important;
        position: relative;
        padding-left: 60px !important;
    }
    #domain-first-preview .principles > div + div {
        border-left: 0;
        border-top: 1px solid;
    }
    #domain-first-preview .symbol {
        position: absolute;
        left: 0;
        top: 32px;
        width: 30px;
        height: 30px;
    }
    #domain-first-preview .principles h3 {
        margin-top: 14px;
    }
    #domain-first-preview .system-heading {
        display: block;
    }
    #domain-first-preview .system-heading p {
        margin-top: 25px;
    }
    #domain-first-preview .system-panels {
        grid-template-columns: 1fr;
    }
    #domain-first-preview .system-panels article {
        padding: 24px;
    }
    #domain-first-preview .runtime-art,
    #domain-first-preview .scaffold-art {
        height: 170px;
    }
    #domain-first-preview .system-panels p {
        min-height: 0;
    }
    #domain-first-preview .start h2 {
        font-size: 19vw;
    }
    #domain-first-preview .next {
        max-width: 100%;
    }
    #domain-first-preview .next-art {
        display: none;
    }
    #domain-first-preview .next h3 {
        margin-top: 0;
    }
    #domain-first-preview footer > span:nth-child(2) {
        display: none;
    }
    #domain-first-preview footer > span {
        font-size: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    #domain-first-preview {
        scroll-behavior: auto;
    }
}

/* Explicit product text colors override the surrounding chat theme. */
#domain-first-preview {
    color: #181816;
    color-scheme: light;
}
#domain-first-preview
    :is(h1, h2, h3, h4, p, a, span, sup, nav, header, footer) {
    color: inherit;
}
#domain-first-preview :is(header, .hero, .approach, footer, .runtime) {
    color: #181816;
}
#domain-first-preview .system {
    color: #eeeade;
}
#domain-first-preview .scaffolder {
    color: #eeeade;
}
#domain-first-preview .start {
    color: #181816;
}
#domain-first-preview .button {
    color: #eeeade;
}
#domain-first-preview h1 span,
#domain-first-preview .approach h2 span {
    color: #b92b1b;
}
#domain-first-preview .start h2 span {
    color: #181816;
}
#domain-first-preview
    :is(
        .edition,
        .eyebrow,
        .section-tag,
        .hero-bottom,
        .coordinate,
        .vertical-label,
        .panel-top
    ) {
    opacity: 1;
}

/* A disciplined modular composition: aligned parts, shared proportions. */
#domain-first-preview .composition {
    display: flex;
    align-items: center;
    justify-content: center;
}
#domain-first-preview .composition .grid,
#domain-first-preview .composition .blue-square,
#domain-first-preview .composition .yellow-plane,
#domain-first-preview .composition .black-beam,
#domain-first-preview .composition .red-disc,
#domain-first-preview .composition .ring,
#domain-first-preview .composition .axis,
#domain-first-preview .composition .small-cross,
#domain-first-preview .composition .vertical-label {
    display: none;
}
#domain-first-preview .ordered-art {
    width: 84%;
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    position: relative;
}
#domain-first-preview .ordered-art > div {
    min-width: 0;
    min-height: 0;
}
#domain-first-preview .ordered-art .oa-circle {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    background: #e6412c;
    border-radius: 50%;
}
#domain-first-preview .ordered-art .oa-blue {
    grid-column: 3;
    grid-row: 1 / 3;
    background: #2547bb;
}
#domain-first-preview .ordered-art .oa-black {
    grid-column: 1 / 3;
    grid-row: 3;
    background: #22221e;
}
#domain-first-preview .ordered-art .oa-yellow {
    grid-column: 3;
    grid-row: 3;
    background: #476b5a;
}
#domain-first-preview .ordered-art:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    border-top: 1px solid #22221e;
}
#domain-first-preview .ordered-art:after {
    content: "";
    position: absolute;
    left: -18px;
    top: 0;
    bottom: 0;
    border-left: 1px solid #22221e;
}
#domain-first-preview .composition .coordinate {
    bottom: 12px;
    left: 8%;
}
@media (max-width: 700px) {
    #domain-first-preview .ordered-art {
        width: min(80%, 350px);
    }
}

#domain-first-preview .system-panels {
    grid-template-columns: 1fr;
}
#domain-first-preview .system-panels article {
    min-height: 320px;
}
#domain-first-preview .runtime-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
#domain-first-preview .runtime-links a {
    border: 1px solid #22221e66;
    padding: 9px 12px;
    font: 11px monospace;
    display: inline-block;
}
#domain-first-preview .scaffolder-feature {
    padding: 66px 4% 0;
    background: var(--blue);
    color: var(--paper);
}
#domain-first-preview .scaffolder-feature-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
    padding: 44px 0 52px;
}
#domain-first-preview .sf-feature-kicker {
    font: 10px monospace;
    letter-spacing: 1px;
    color: #ffffffb5;
}
#domain-first-preview .scaffolder-feature h2 {
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.91;
    letter-spacing: -0.06em;
    margin: 18px 0;
}
#domain-first-preview .scaffolder-feature-main > div:first-child p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 440px;
    color: #ffffffd4;
}
#domain-first-preview .sf-feature-button {
    display: inline-flex;
    gap: 42px;
    padding: 16px 20px;
    background: var(--paper);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    margin-top: 18px;
}
#domain-first-preview .sf-feature-map {
    border: 1px solid #ffffff77;
    min-height: 290px;
    padding: 25px 28px 20px 48px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font: 12px monospace;
    position: relative;
}
#domain-first-preview .sf-feature-map:before {
    content: "";
    position: absolute;
    left: 28px;
    top: 39px;
    bottom: 27px;
    width: 1px;
    background: #ffffff76;
}
#domain-first-preview .sf-feature-map span {
    font-size: 15px;
    margin-bottom: 6px;
}
#domain-first-preview .sf-feature-map i,
#domain-first-preview .sf-feature-map b {
    font-style: normal;
    font-weight: 400;
    padding-left: 17px;
    position: relative;
}
#domain-first-preview .sf-feature-map i:before {
    content: "├";
    position: absolute;
    left: -19px;
    color: #ffffff9d;
}
#domain-first-preview .sf-feature-map b {
    color: #ffffffbd;
    font-size: 10px;
}
#domain-first-preview .sf-feature-map b:before {
    content: "└";
    position: absolute;
    left: -19px;
    color: #ffffff9d;
}
#domain-first-preview .sf-feature-foot {
    border-top: 1px solid #ffffff66;
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    font: 9px monospace;
    letter-spacing: 1px;
    color: #ffffffc2;
}
@media (max-width: 700px) {
    #domain-first-preview .scaffolder-feature-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 32px 0 38px;
    }
    #domain-first-preview .scaffolder-feature h2 {
        font-size: 15vw;
    }
    #domain-first-preview .sf-feature-map {
        min-height: 260px;
    }
    #domain-first-preview .sf-feature-foot {
        font-size: 7px;
        gap: 10px;
        flex-wrap: wrap;
    }
}

/* Small text on the blue scaffolder feature stays fully opaque for contrast. */
#domain-first-preview .sf-feature-kicker,
#domain-first-preview .scaffolder-feature-main > div:first-child p,
#domain-first-preview .sf-feature-map b,
#domain-first-preview .sf-feature-map i:before,
#domain-first-preview .sf-feature-map b:before,
#domain-first-preview .sf-feature-foot {
    color: #fff;
}

/* The closing callout uses a dark red field so every text size clears AA. */
#domain-first-preview .start {
    background: #b52f22;
    color: #fff;
}
#domain-first-preview .start h2 span {
    color: #fff;
}

/* Anchored sections keep some air above them. */
#domain-first-preview section[id] {
    scroll-margin-top: 76px;
}
#domain-first-preview .system-section-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
#domain-first-preview .back-to-top {
    font: 11px monospace;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
}

/* A compact, nested project tree in the existing feature panel. */
#domain-first-preview .sf-feature-map {
    display: block;
    min-width: 0;
    min-height: 260px;
    padding: 20px 24px;
    overflow: hidden;
}
#domain-first-preview .sf-feature-map:before {
    content: none;
}
#domain-first-preview .sf-landing-tree,
#domain-first-preview .sf-landing-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#domain-first-preview .sf-landing-tree ul {
    padding-left: 18px;
}
#domain-first-preview .sf-landing-tree li {
    position: relative;
    min-width: 0;
}
#domain-first-preview .sf-landing-tree li li:before {
    content: "";
    position: absolute;
    left: -13px;
    top: 0;
    height: 13px;
    width: 9px;
    border-left: 1px solid #ffffff77;
    border-bottom: 1px solid #ffffff77;
}
#domain-first-preview .sf-landing-tree li li:after {
    content: "";
    position: absolute;
    left: -13px;
    top: 13px;
    bottom: 0;
    border-left: 1px solid #ffffff77;
}
#domain-first-preview .sf-landing-tree li li:last-child:after {
    display: none;
}
#domain-first-preview .sf-landing-tree span {
    display: block;
    margin: 0;
    font: 11px/1.7 monospace;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #fff;
}
#domain-first-preview .sf-landing-tree > li > span {
    font-weight: 700;
    font-size: 13px;
}
#domain-first-preview .next {
    align-self: start;
}
#domain-first-preview .next h3 {
    margin-top: 0;
}

#domain-first-preview .sf-feature-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    text-align: center;
}
#domain-first-preview .sf-feature-button span {
    display: inline-flex;
    align-items: center;
    line-height: inherit;
}
#domain-first-preview footer > .df-footer-motto {
    display: block;
}
#domain-first-preview footer > span:last-child {
    display: block;
}
/* Balanced vertical positioning in the landing's editorial sections. */
#domain-first-preview .approach-main {
    align-items: center;
}
#domain-first-preview .approach-text {
    align-self: center;
    transform: translateY(-16px);
}
#domain-first-preview .approach-text p:last-child {
    margin-bottom: 0;
}
#domain-first-preview .start {
    display: flex;
    flex-direction: column;
    min-height: 80svh;
    box-sizing: border-box;
}
#domain-first-preview .start-row {
    flex: 1;
    align-items: center;
    min-height: 420px;
}
#domain-first-preview .start-row > h2 {
    align-self: center;
    margin: 0;
}
@media (max-width: 700px) {
    #domain-first-preview .approach-text {
        transform: none;
    }
    #domain-first-preview .start-row {
        min-height: 0;
        row-gap: 40px;
        margin-top: 60px;
        margin-bottom: 20px;
    }
}

/* Two matching paper panels inside The System. */
#domain-first-preview .system-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
#domain-first-preview .system-panels article {
    background: var(--paper);
    color: var(--ink);
    min-width: 0;
}
#domain-first-preview .system-panels p {
    max-width: 660px;
    min-height: 0;
}
#domain-first-preview .assembled-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 205px;
    margin: 22px 0;
}
#domain-first-preview .assembled-frame {
    box-sizing: border-box;
    width: 184px;
    height: 184px;
    border: 3px solid var(--ink);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}
#domain-first-preview .assembled-frame i {
    display: block;
    width: 100%;
    height: 100%;
}
#domain-first-preview .assembled-red {
    background: var(--red);
}
#domain-first-preview .assembled-blue {
    background: var(--blue);
    border-radius: 50%;
}
#domain-first-preview .assembled-yellow {
    background: var(--yellow);
}
#domain-first-preview .assembled-black {
    background: var(--ink);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
@media (max-width: 700px) {
    #domain-first-preview .assembled-art {
        height: 170px;
    }
    #domain-first-preview .assembled-frame {
        width: 160px;
        height: 160px;
        padding: 20px;
        gap: 14px;
    }
}

/* Center the copy against the complete label-and-heading column. */
#domain-first-preview .approach {
    padding-top: 48px;
    padding-bottom: 48px;
}
#domain-first-preview .approach-main {
    align-items: center;
    margin: 0 0 40px;
}
#domain-first-preview .approach-heading {
    min-width: 0;
}
#domain-first-preview .approach-heading .section-tag {
    margin-bottom: 28px;
}
#domain-first-preview .approach-text {
    align-self: center;
    transform: none;
    max-width: 460px;
    min-width: 0;
}
#domain-first-preview .approach-text p {
    margin: 0;
}
#domain-first-preview .approach-text p + p {
    margin-top: 18px;
}
@media (max-width: 700px) {
    #domain-first-preview .approach {
        padding-top: 36px;
        padding-bottom: 36px;
    }
    #domain-first-preview .approach-main {
        margin-bottom: 32px;
    }
    #domain-first-preview .approach-heading .section-tag {
        margin-bottom: 20px;
    }
}

/* Centered text-only introduction. */
#domain-first-preview .hero {
    padding: 44px 4% 48px;
}
#domain-first-preview .hero-main {
    display: block;
    min-height: 0;
}
#domain-first-preview .hero-copy {
    width: 100%;
    padding-top: 0;
    text-align: center;
}
#domain-first-preview .hero .eyebrow {
    justify-content: center;
}
#domain-first-preview .hero h1 {
    margin: 24px 0;
    line-height: 1.05;
    overflow-wrap: normal;
    word-break: normal;
}
#domain-first-preview .hero h1 span {
    white-space: nowrap;
}
#domain-first-preview .hero .intro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}
#domain-first-preview .hero .intro p {
    max-width: 100%;
    margin: 0;
    text-align: center;
}
@media (max-width: 700px) {
    #domain-first-preview .hero {
        padding: 32px 4% 36px;
    }
    #domain-first-preview .hero h1 {
        margin: 20px 0;
    }
}

/* Paired display lines, with Domain and First in red. */
#domain-first-preview .hero h1 .hero-title-line {
    display: block;
    white-space: normal;
    color: var(--ink);
}
#domain-first-preview .hero h1 .hero-accent {
    color: var(--red);
    white-space: nowrap;
}

/* Landing content follows the masthead and edition's exact horizontal gutters. */
#domain-first-preview :is(.hero, .approach, .system, footer) {
    padding-left: var(--df-page-gutter);
    padding-right: var(--df-page-gutter);
}

/* Align the Approach copy column to the edition's right edge. */
#domain-first-preview .approach-text {
    justify-self: end;
    width: 100%;
    max-width: 460px;
}
@media (max-width: 700px) {
    #domain-first-preview .approach-text {
        justify-self: start;
        max-width: none;
    }
}

/* Align the actual line endings with the edition's right-hand label. */
#domain-first-preview .approach-text {
    text-align: right;
}
@media (max-width: 700px) {
    #domain-first-preview .approach-text {
        text-align: left;
    }
}

/* The two system panels share a row on wider screens. */
#domain-first-preview .system-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
@media (max-width: 700px) {
    #domain-first-preview .system-panels {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Tighter entrance to the black system section. */
#domain-first-preview .system {
    padding-top: 15px;
}
@media (max-width: 700px) {
    #domain-first-preview .system {
        padding-top: 28px;
    }
}

/* Equal space above and below the paired landing title. */
#domain-first-preview .hero {
    padding-top: 68px;
    padding-bottom: 68px;
}
#domain-first-preview .hero h1 {
    margin-top: 0;
    margin-bottom: 0;
}
@media (max-width: 700px) {
    #domain-first-preview .hero {
        padding-top: 52px;
        padding-bottom: 52px;
    }
    #domain-first-preview .hero h1 {
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Optical centering without changing the hero's layout height. */
#domain-first-preview .hero h1 {
    transform: translateY(12px);
}

/* Center both System introduction columns on the same horizontal axis. */
#domain-first-preview .system-heading {
    align-items: center;
}
#domain-first-preview .system-heading p {
    margin-top: 0;
    margin-bottom: 0;
}
@media (max-width: 700px) {
    #domain-first-preview .system-heading p {
        margin-top: 25px;
    }
}

/* Human first, AI friendly: two readers sharing one codebase. */
#domain-first-preview .duo {
    padding: 72px var(--df-page-gutter) 80px;
    color: var(--ink);
}
#domain-first-preview .duo-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
}
#domain-first-preview .duo-heading h2 span {
    color: var(--red);
}
#domain-first-preview .duo-heading p {
    max-width: 420px;
    margin: 0;
    text-align: right;
}
#domain-first-preview .duo-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
    border: 3px solid var(--ink);
}
#domain-first-preview .duo-reader {
    padding: 28px 32px;
    min-width: 0;
}
#domain-first-preview .duo-reader .panel-top span:last-child {
    color: var(--red);
}
#domain-first-preview .duo-reader:last-child .panel-top span:last-child {
    color: var(--blue);
}
#domain-first-preview .duo-reader ol {
    list-style: none;
    counter-reset: duo;
    margin: 28px 0 0;
    padding: 0;
}
#domain-first-preview .duo-reader li {
    counter-increment: duo;
    position: relative;
    padding: 16px 0 16px 44px;
    border-top: 1px solid var(--ink);
}
#domain-first-preview .duo-reader li::before {
    content: "0" counter(duo);
    position: absolute;
    left: 0;
    color: var(--red);
}
#domain-first-preview .duo-reader:last-child li::before {
    color: var(--blue);
}
#domain-first-preview .duo-reader code {
    color: var(--yellow);
    white-space: nowrap;
}
#domain-first-preview .duo-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 28px 0;
    border-left: 3px solid var(--ink);
    border-right: 3px solid var(--ink);
}
#domain-first-preview .duo-shapes {
    position: relative;
    width: 200px;
    height: 130px;
}
#domain-first-preview .duo-shapes i {
    position: absolute;
    top: 0;
    width: 130px;
    height: 130px;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}
#domain-first-preview .duo-human {
    left: 0;
    background: var(--red);
    border-radius: 50%;
}
#domain-first-preview .duo-agent {
    right: 0;
    background: var(--blue);
}
#domain-first-preview .duo-board:hover .duo-human {
    transform: translateX(14px);
}
#domain-first-preview .duo-board:hover .duo-agent {
    transform: translateX(-14px);
}
#domain-first-preview .duo-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}
#domain-first-preview .duo-caption span:not(:first-child, :last-child) {
    font-weight: 700;
}
#domain-first-preview .duo-punchline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 24px;
    padding: 28px 32px;
    background: var(--ink);
    color: var(--paper);
}
#domain-first-preview .duo-punchline p {
    margin: 0;
    max-width: 560px;
}
#domain-first-preview .duo-punchline p span {
    display: block;
    color: var(--red);
}
#domain-first-preview .duo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* Beats the site-wide green link colour in readability.css. */
#domain-first-preview main .duo .duo-actions a {
    color: var(--paper) !important;
}
#domain-first-preview main .duo .duo-actions a:hover {
    color: var(--ink) !important;
}
#domain-first-preview .duo-actions a {
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
    padding: 10px 18px;
    border: 2px solid var(--paper);
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}
#domain-first-preview .duo-actions a:hover {
    background: var(--paper);
    color: var(--ink);
}
#domain-first-preview .duo-actions a:last-child {
    background: var(--red);
    border-color: var(--red);
}
#domain-first-preview .duo-actions a:last-child:hover {
    background: var(--paper);
    border-color: var(--paper);
}
@media (max-width: 1050px) {
    #domain-first-preview .duo-board {
        grid-template-columns: minmax(0, 1fr);
    }
    #domain-first-preview .duo-art {
        border: 0;
        border-top: 3px solid var(--ink);
        border-bottom: 3px solid var(--ink);
    }
    #domain-first-preview .duo-punchline {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 700px) {
    #domain-first-preview .duo {
        padding-top: 52px;
        padding-bottom: 56px;
    }
    #domain-first-preview .duo-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }
    #domain-first-preview .duo-heading p {
        text-align: left;
    }
    #domain-first-preview .duo-reader,
    #domain-first-preview .duo-punchline {
        padding: 24px 20px;
    }
    #domain-first-preview .duo-actions a {
        white-space: normal;
    }
}
@media (prefers-reduced-motion: reduce) {
    #domain-first-preview .duo-shapes i,
    #domain-first-preview .duo-actions a {
        transition: none;
    }
}

/* Neighbouring duos are split by a rule. */
#domain-first-preview .duo + .duo {
    border-top: 3px solid var(--ink);
}
/* Same distance from the site header as the hero frame on inner pages. */
#domain-first-preview main > .duo:first-child {
    padding-top: 32px;
}
#domain-first-preview .parts-frame {
    box-sizing: border-box;
    width: 150px;
    height: 150px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    border: 3px dashed #22221e55;
    transition: border-color 0.4s ease;
}
#domain-first-preview .parts-frame i {
    display: block;
    transition: transform 0.4s ease;
}
#domain-first-preview .parts-red {
    background: var(--red);
    transform: translate(-26px, -22px) rotate(-14deg);
}
#domain-first-preview .parts-blue {
    background: var(--blue);
    border-radius: 50%;
    transform: translate(24px, -30px);
}
#domain-first-preview .parts-yellow {
    background: var(--yellow);
    transform: translate(-20px, 26px) rotate(12deg);
}
#domain-first-preview .parts-black {
    background: var(--ink);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: translate(28px, 20px) rotate(-8deg);
}
#domain-first-preview .duo-board:hover .parts-frame {
    border: 3px solid var(--ink);
}
#domain-first-preview .duo-board:hover .parts-frame i {
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    #domain-first-preview .parts-frame,
    #domain-first-preview .parts-frame i {
        transition: none;
    }
}

/* How to start: three steps from install to the first scaffold. */
#domain-first-preview .start-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border: 3px solid var(--ink);
}
#domain-first-preview .start-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 28px 32px;
}
#domain-first-preview .start-step + .start-step {
    border-left: 3px solid var(--ink);
}
#domain-first-preview .start-step .panel-top span:last-child {
    color: var(--red);
}
#domain-first-preview .start-step:nth-child(2) .panel-top span:last-child {
    color: var(--blue);
}
#domain-first-preview .start-step:nth-child(3) .panel-top span:last-child {
    color: var(--yellow);
}
#domain-first-preview .start-step h3 {
    margin: 0;
}
#domain-first-preview .start-step p {
    margin: 0;
}
#domain-first-preview .start-step p code {
    color: var(--yellow);
}
#domain-first-preview .start-step kbd {
    padding: 0 6px;
    border: 1px solid var(--ink);
    font-family: monospace;
}
#domain-first-preview .start-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--ink);
    color: var(--paper);
}
#domain-first-preview .start-command code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--paper);
}
#domain-first-preview .start-command code::before {
    content: "$ ";
    color: var(--red);
}
#domain-first-preview .start-command button {
    flex: none;
    padding: 4px 10px;
    border: 1px solid var(--paper);
    background: transparent;
    color: var(--paper);
    font: 11px monospace;
    cursor: pointer;
}
#domain-first-preview .start-command button:hover {
    background: var(--paper);
    color: var(--ink);
}
@media (max-width: 1050px) {
    #domain-first-preview .start-steps {
        grid-template-columns: minmax(0, 1fr);
    }
    #domain-first-preview .start-step + .start-step {
        border-left: 0;
        border-top: 3px solid var(--ink);
    }
}
@media (max-width: 700px) {
    #domain-first-preview .start-step {
        padding: 24px 20px;
    }
}
#domain-first-preview .start-printed {
    display: flex;
    gap: 14px;
    padding: 12px 14px;
    border: 2px dashed var(--ink);
}
#domain-first-preview .start-printed span {
    flex: none;
    color: var(--blue);
    font-weight: 700;
}

/* What it is: the framework has a gap, Domain First is the piece that fits it. */
#domain-first-preview .fit-frame {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 30px 20px 0;
}
#domain-first-preview .fit-framework {
    position: absolute;
    inset: 0;
    background: var(--blue);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 50%, 50% 100%, 0 100%);
}
#domain-first-preview .fit-frame::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    width: 75px;
    height: 75px;
    border: 3px dashed #22221e55;
    transition: opacity 0.4s ease;
}
#domain-first-preview .fit-float {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 75px;
    height: 75px;
    animation: fit-bob 2.4s ease-in-out infinite;
}
#domain-first-preview .fit-piece {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--red);
    transform: translate(34px, 14px) rotate(20deg);
    transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes fit-bob {
    50% {
        transform: translate(4px, -8px) rotate(-4deg);
    }
}
#domain-first-preview .duo-board:hover .fit-float {
    animation: none;
}
#domain-first-preview .duo-board:hover .fit-piece {
    transform: none;
}
#domain-first-preview .duo-board:hover .fit-frame::after {
    opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
    #domain-first-preview .fit-float {
        animation: none;
    }
    #domain-first-preview .fit-piece,
    #domain-first-preview .fit-frame::after {
        transition: none;
    }
}
