html {
    scroll-behavior: smooth;
}
body {
    background: #050505;
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    overflow-x: hidden;
}
.container-x {
    width: min(1360px, calc(100% - 96px));
    margin: 0 auto;
}
@media (max-width: 1279px) {
    .container-x {
        width: calc(100% - 56px);
    }
}
@media (max-width: 767px) {
    .container-x {
        width: calc(100% - 40px);
    }
}
.mono {
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.section {
    padding: 88px 0;
}
@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
}
.h1 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}
.h2 {
    font-size: clamp(27px, 2.8vw, 36px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}
.grid-bg {
    background-image:
        linear-gradient(rgba(36, 36, 36, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 36, 36, 0.5) 1px, transparent 1px);
    background-size: 48px 48px;
}
.cross {
    position: absolute;
    width: 17px;
    height: 17px;
    opacity: 0.55;
    pointer-events: none;
}
.cross:before,
.cross:after {
    content: "";
    position: absolute;
    background: #666;
}
.cross:before {
    width: 17px;
    height: 1px;
    top: 8px;
    left: 0;
}
.cross:after {
    width: 1px;
    height: 17px;
    left: 8px;
    top: 0;
}
.corners {
    position: relative;
}
.corners:before,
.corners:after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #666;
    pointer-events: none;
}
.corners:before {
    left: -1px;
    top: -1px;
    border-left: 1px solid;
    border-top: 1px solid;
}
.corners:after {
    right: -1px;
    bottom: -1px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}
.ruler {
    height: 6px;
    background-image:
        repeating-linear-gradient(90deg, #383838 0 1px, transparent 1px 10px),
        repeating-linear-gradient(90deg, #666 0 1px, transparent 1px 50px);
    background-size:
        auto 4px,
        auto 6px;
    background-repeat: repeat-x;
    background-position: bottom;
}
*:focus-visible {
    outline: 1px solid #c6ff00;
    outline-offset: 2px;
}

/* tree diagram */
.tree-stem {
    width: 1px;
    height: 18px;
    background: #555;
    margin: 0 auto;
}
.tree-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    padding-top: 18px;
}
.tree-row:before {
    content: "";
    position: absolute;
    top: 0;
    height: 1px;
    background: #555;
    left: calc((100% - 24px) / 6);
    right: calc((100% - 24px) / 6);
}
.tree-row > * {
    position: relative;
}
.tree-row > *:before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    width: 1px;
    height: 18px;
    background: #555;
}
.tree-row.down > *:after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    width: 1px;
    height: 18px;
    background: #555;
}
.tree-join {
    position: relative;
    height: 18px;
}
.tree-join:before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    background: #555;
    left: calc((100% - 24px) / 6);
    right: calc((100% - 24px) / 6);
}

/* reading */
.article-body {
    color: #d4d4d4;
    font-size: 17px;
    line-height: 1.8;
}
@media (max-width: 767px) {
    .article-body {
        font-size: 16px;
        line-height: 1.75;
    }
}
.article-body h2,
.article-body h3,
#faq-h,
#framework-h {
    scroll-margin-top: 100px;
}
@media (max-width: 1023px) {
    .article-body h2,
    .article-body h3,
    #faq-h,
    #framework-h {
        scroll-margin-top: 136px;
    }
}
.article-body h2 {
    font-size: clamp(26px, 2.4vw, 33px);
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: #fff;
    font-weight: 800;
}
.article-body h3 {
    font-size: clamp(20px, 1.8vw, 23px);
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #fff;
    font-weight: 700;
}
.article-body ul.a-list > li,
.article-body ol.a-list > li {
    position: relative;
    padding-left: 28px;
}
.article-body ul.a-list > li:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.78em;
    width: 7px;
    height: 1px;
    background: #8a8a8a;
}
.article-body ol.a-list {
    counter-reset: n;
}
.article-body ol.a-list > li {
    counter-increment: n;
}
.article-body ol.a-list > li:before {
    content: counter(n, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.2em;
    font:
        500 11px "IBM Plex Mono",
        monospace;
    color: #8a8a8a;
}
.article-body a.inline-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #383838;
    text-underline-offset: 4px;
}
.article-body a.inline-link:hover {
    text-decoration-color: #fff;
}
.lead {
    font-size: 19px;
    line-height: 1.75;
    color: #e5e5e5;
}
@media (max-width: 767px) {
    .lead {
        font-size: 17px;
    }
}

/* CMS articles: sanitized semantic HTML, styled like the block renderers above */
.article-content > * + * {
    margin-top: 1.25rem;
}
.article-content > h2 {
    margin-top: 3.5rem;
}
.article-content > h3 {
    margin-top: 2.5rem;
}
.article-content > h4 {
    margin-top: 2rem;
}
.article-content > :first-child {
    margin-top: 0;
}
.article-content h4 {
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    font-weight: 700;
    scroll-margin-top: 100px;
}
.article-content strong,
.article-content b {
    color: #fff;
    font-weight: 600;
}
.article-content a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #383838;
    text-underline-offset: 4px;
}
.article-content a:hover {
    text-decoration-color: #fff;
}
.article-content ul,
.article-content ol {
    list-style: none;
    padding: 0;
}
.article-content li + li,
.article-content li > ul,
.article-content li > ol {
    margin-top: 0.625rem;
}
.article-content ul > li,
.article-content ol > li {
    position: relative;
    padding-left: 28px;
}
.article-content ul > li:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.78em;
    width: 7px;
    height: 1px;
    background: #8a8a8a;
}
.article-content ol {
    counter-reset: n;
}
.article-content ol > li {
    counter-increment: n;
}
.article-content ol > li:before {
    content: counter(n, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.2em;
    font:
        500 11px "IBM Plex Mono",
        monospace;
    color: #8a8a8a;
}
.article-content blockquote {
    border-left: 2px solid #383838;
    padding: 2px 0 2px 20px;
    color: #e5e5e5;
}
.article-content code {
    font:
        14px "IBM Plex Mono",
        monospace;
    background: #111;
    border: 1px solid #242424;
    padding: 1px 5px;
}
.article-content pre {
    background: #0b0b0b;
    border: 1px solid #242424;
    padding: 16px 18px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}
.article-content pre code {
    border: 0;
    padding: 0;
    background: none;
}
.article-content hr {
    border: 0;
    border-top: 1px solid #242424;
}
.article-content > figure,
.article-content > table,
.article-content > pre,
.article-content > .callout {
    margin-top: 2rem;
}
.article-content figure {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #242424;
}
.article-content figcaption {
    margin-top: 0.5rem;
    font-size: 12px;
    line-height: 1.25rem;
    color: #8a8a8a;
}
.article-content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: #383838 transparent;
}
.article-content caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 10px;
    font:
        500 10px "IBM Plex Mono",
        monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.article-content th,
.article-content td {
    border: 1px solid #242424;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    min-width: 150px;
}
.article-content thead th {
    font:
        500 10px "IBM Plex Mono",
        monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #111;
}
.article-content tbody th {
    font-weight: 600;
    color: #fff;
    background: #0b0b0b;
}
.article-content td {
    color: #c8c8c8;
}
.article-content dt {
    font:
        500 10px "IBM Plex Mono",
        monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.article-content dd {
    margin: 0.25rem 0 0;
}
.article-content dd + dt {
    margin-top: 1rem;
}
.article-content .callout {
    padding: 16px 20px;
}
.article-content .callout > * + * {
    margin-top: 0.75rem;
}
.article-content .callout p {
    font-size: 15px;
    line-height: 1.75rem;
    color: #d4d4d4;
}
.article-content .callout:before {
    content: "NOTE";
    display: block;
    margin-bottom: 8px;
    font:
        500 10px "IBM Plex Mono",
        monospace;
    letter-spacing: 0.08em;
    color: #fff;
}
.article-content .callout-important:before {
    content: "IMPORTANT";
}
.article-content .callout-insight:before {
    content: "ENGINEERING INSIGHT";
    color: #c6ff00;
}
.article-content .callout-business:before {
    content: "BUSINESS CONSIDERATION";
}
.article-content .callout-example:before {
    content: "EXAMPLE";
}

/* table of contents */
.toc-link {
    display: block;
    border-left: 1px solid #242424;
    color: #8a8a8a;
    transition:
        color 0.15s,
        border-color 0.15s;
}
.toc-link:hover {
    color: #fff;
}
.toc-link.is-read {
    color: #a3a3a3;
}
.toc-link[aria-current="true"] {
    color: #fff;
    border-left-color: #c6ff00;
}
.toc-link[aria-current="true"] .toc-num {
    color: #c6ff00;
}
#readProgress,
#tocBar {
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* components */
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}
.cmp-table th,
.cmp-table td {
    border: 1px solid #242424;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}
.cmp-table thead th {
    font:
        500 10px "IBM Plex Mono",
        monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #111;
}
.cmp-table tbody th {
    font-weight: 600;
    color: #fff;
    background: #0b0b0b;
    min-width: 150px;
}
.cmp-table td {
    color: #c8c8c8;
    min-width: 190px;
}
.callout {
    border: 1px solid #242424;
    border-left-width: 2px;
    background: #0b0b0b;
}
.callout-note {
    border-left-color: #383838;
}
.callout-important {
    border-left-color: #fff;
}
.callout-insight {
    border-left-color: #c6ff00;
}
.callout-business {
    border-left-color: #a3a3a3;
}
.callout-example {
    border-style: dashed;
    border-left-style: solid;
    border-left-color: #8a8a8a;
}
.dg-node {
    transition:
        border-color 0.15s,
        color 0.15s;
}
.dg-node[aria-pressed="true"] {
    border-color: #c6ff00;
    color: #fff;
    background: #111;
}
.dg-node[aria-pressed="true"] .dg-dot {
    background: #c6ff00;
}
.chk-box {
    width: 18px;
    height: 18px;
    border: 1px solid #383838;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}
.chk input:checked + .chk-box {
    border-color: #c6ff00;
    background: #c6ff00;
}
.chk input:checked + .chk-box svg {
    opacity: 1;
}
.chk input:focus-visible + .chk-box {
    outline: 1px solid #c6ff00;
    outline-offset: 2px;
}
.chk input:checked ~ .chk-text {
    color: #fff;
}
.quick-btn[aria-pressed="true"],
.topic-btn[aria-pressed="true"] {
    border-color: #c6ff00;
    color: #fff;
}
.rel-card {
    transition: border-color 0.15s;
}
.rel-card:hover,
.rel-card:focus-within {
    border-color: #383838;
}
.scroll-x {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #383838 transparent;
}
.desktop-nav-sm {
    display: none;
}
@media (max-width: 1179px) {
    .desktop-nav {
        display: none !important;
    }
    .desktop-nav-sm {
        display: flex !important;
    }
}
/* Block document layouts (Article Builder v2) */
.article-content .image-text {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
    align-items: start;
}
@media (min-width: 768px) {
    .article-content .image-text {
        grid-template-columns: 1fr 1fr;
    }
    .article-content .image-text.image-right figure {
        order: 2;
    }
}
.article-content .embed-frame {
    position: relative;
    padding-bottom: 56.25%;
    border: 1px solid #242424;
    background: #050505;
}
.article-content .embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.article-content .photos-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    margin-top: 2rem;
}
.article-content .photos-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}
.article-content .table-wrap {
    overflow-x: auto;
    margin-top: 2rem;
}
.article-content .file-attach {
    margin-top: 1.5rem;
}

/* —— Extra Article Builder blocks —— */
.article-content .a-checklist {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}
.article-content .a-checklist > li {
    position: relative;
    padding-left: 1.75rem;
    margin: 0.55rem 0;
}
.article-content .a-checklist > li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 1rem;
    height: 1rem;
    border: 1px solid #383838;
    background: #0b0b0b;
}
.article-content .pullquote {
    margin: 2rem 0;
    padding: 1.25rem 0 1.25rem 1.25rem;
    border-left: 2px solid #c6ff00;
}
.article-content .pullquote blockquote {
    margin: 0;
    border: 0;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1.45;
    color: #fff;
    font-weight: 600;
}
.article-content .pullquote figcaption {
    margin-top: 0.75rem;
    font: 400 12px/1.4 "IBM Plex Mono", monospace;
    color: #8a8a8a;
}
.article-content .pullquote-left { max-width: 85%; }
.article-content .pullquote-right {
    margin-left: auto;
    max-width: 85%;
    border-left: 0;
    border-right: 2px solid #c6ff00;
    padding-left: 0;
    padding-right: 1.25rem;
    text-align: right;
}
.article-content .verse {
    white-space: pre-wrap;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 1.25rem 0 0;
    color: #d4d4d4;
}
.article-content .a-definition {
    margin: 1.5rem 0 0;
}
.article-content .a-details {
    border: 1px solid #242424;
    background: #0b0b0b;
    margin: 0.75rem 0 0;
}
.article-content .a-details > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.9rem 1rem;
    font-weight: 600;
    color: #fff;
}
.article-content .a-details > summary::-webkit-details-marker { display: none; }
.article-content .a-details-body {
    padding: 0 1rem 1rem;
    color: #d4d4d4;
    font-size: 15px;
    line-height: 1.75;
}
.article-content .a-faq { margin-top: 1.5rem; }
.article-content .a-faq-item + .a-faq-item { margin-top: 1.25rem; }
.article-content .a-faq-q {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: #fff;
}
.article-content .a-faq-a { color: #d4d4d4; font-size: 15px; line-height: 1.75; }
.article-content .a-cover {
    position: relative;
    margin: 2rem 0 0;
    border: 1px solid #242424;
    overflow: hidden;
    min-height: 220px;
}
.article-content .a-cover-tall { min-height: 360px; }
.article-content .a-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: inherit;
}
.article-content .a-cover-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(transparent, rgba(5, 5, 5, 0.92));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.article-content .a-cover-caption strong {
    font-size: 1.25rem;
}
.article-content .a-audio {
    margin: 1.5rem 0 0;
    padding: 1rem;
    border: 1px solid #242424;
    background: #0b0b0b;
}
.article-content .a-audio figcaption {
    margin: 0 0 0.65rem;
    color: #a3a3a3;
    font-size: 13px;
}
.article-content .a-audio audio { width: 100%; }
.article-content .a-stats {
    display: grid;
    gap: 1rem;
    margin: 2rem 0 0;
}
.article-content .a-stats-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-content .a-stats-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-content .a-stats-cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .article-content .a-stats-cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.article-content .a-stat {
    border: 1px solid #242424;
    background: #0b0b0b;
    padding: 1.1rem 1rem;
    text-align: center;
}
.article-content .a-stat-value {
    font: 800 clamp(22px, 3vw, 32px)/1.1 Manrope, system-ui, sans-serif;
    letter-spacing: -0.03em;
    color: #fff;
}
.article-content .a-stat-label {
    margin-top: 0.4rem;
    font: 500 10px/1.3 "IBM Plex Mono", monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.article-content .a-columns {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0 0;
}
@media (min-width: 768px) {
    .article-content .a-columns-2 { grid-template-columns: 1fr 1fr; }
    .article-content .a-columns-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.article-content .a-toc {
    margin: 1.5rem 0 0;
    padding: 1rem 1.15rem;
    border: 1px solid #242424;
    background: #0b0b0b;
}
.article-content .a-toc-title {
    margin: 0 0 0.75rem;
    font: 600 10px/1 "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.article-content .a-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.article-content .a-toc-list a {
    display: block;
    padding: 0.35rem 0;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 14px;
}
.article-content .a-toc-list a:hover { color: #fff; }
.article-content .a-toc-l3 { padding-left: 1rem; font-size: 13px; }
.article-content .a-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.5rem 0 0;
}
.article-content .a-buttons-center { justify-content: center; }
.article-content .a-buttons-full .a-btn { flex: 1 1 100%; text-align: center; }
.article-content .a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #383838;
    color: #a3a3a3;
}
.article-content .a-btn-primary {
    background: #fff;
    border-color: #fff;
    color: #050505;
}
.article-content .a-btn-primary:hover {
    background: transparent;
    color: #fff;
}
.article-content .a-btn-secondary:hover {
    border-color: #8a8a8a;
    color: #fff;
}
.article-content .a-cta {
    margin: 2rem 0 0;
    padding: 1.5rem 1.35rem;
    border: 1px solid #242424;
    background: #0b0b0b;
}
.article-content .a-cta-accent {
    border-color: #c6ff00;
}
.article-content .a-cta-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.article-content .a-cta-text {
    margin-top: 0.55rem;
    color: #d4d4d4;
    font-size: 15px;
    line-height: 1.7;
}
.article-content .a-cta-actions { margin: 1rem 0 0; }
.article-content .a-spacer { display: block; width: 100%; }
.article-content .a-spacer-s { height: 24px; }
.article-content .a-spacer-m { height: 48px; }
.article-content .a-spacer-l { height: 80px; }
.article-content .a-spacer-xl { height: 120px; }
.article-content .a-divider { border: 0; border-top: 1px solid #242424; margin: 2rem 0; }
.article-content .a-divider-thick { border-top-width: 3px; border-top-color: #383838; }
.article-content .a-divider-dots {
    border: 0;
    height: 0;
    text-align: center;
    overflow: visible;
}
.article-content .a-divider-dots:before {
    content: "· · ·";
    color: #8a8a8a;
    letter-spacing: 0.35em;
    font-size: 18px;
}
.article-content .a-divider-wide {
    border-top-color: #242424;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }
}
