:root {
    --accent1: rgb(229, 46, 119);
    --accent2: rgb(36, 128, 151);
    --text: #111;
    --bg: #fff;
    --gap-section: 160px;
    --gap-paragraph: 80px;
    --gap-logos: 40px;
    --gap-row: 40px;
    --gap-row-small: 20px;
    --bc-h: 54px;
    --header-full: 88px;
    --header-compact: 44px;
    --font: 'MarkPro', 'Helvetica Neue', Helvetica, Arial;
    /* --font-light: 'MarkPro-ExtraLight', 'Helvetica Neue', Helvetica, Arial; */
    --font-light: 'MarkPro', 'Helvetica Neue', Helvetica, Arial;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    font-weight: inherit;
    font-style: inherit;
    color: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
    list-style: none;
    border-collapse: separate;
    border-spacing: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'MarkPro';
    font-display: swap;
    src: url('./MarkPro.woff2') format('woff2'), url('./MarkPro.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MarkPro-ExtraLight';
    font-display: swap;
    src: url('./MarkPro-ExtraLight.woff2') format('woff2'), url('./MarkPro-ExtraLight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* overflow-x: clip (not hidden) prevents horizontal scrolling without
   creating a scroll container, which would break position: sticky on
   the header in mobile browsers (especially Safari).
   overflow-x: hidden is listed first as a fallback for browsers that
   do not support overflow: clip (iOS Safari < 15.4). On those browsers,
   hidden creates a scroll container, but the sticky breakage only
   affects very old Safari versions that are already unsupported by
   other features on this site. */
html {
    background: var(--bg);
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    color: var(--text);
    font-family: var(--font);
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 var(--gap-row);
    overflow-x: visible;
}


/* ── Typography ── */

.header {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: var(--gap-row-small);
}

p {
    font-family: var(--font-light);
    font-size: 16px;
    line-height: 1.5;
}

.note {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 12px;
}

ul.dashed {
    font-family: var(--font-light);
    font-size: 16px;
    line-height: 1.5;
}

ul.dashed li {
    margin-bottom: 6px;
    position: relative;
}

ul.dashed li::first-letter {
    text-transform: uppercase;
}

ul.dashed li:before {
    content: "\2014";
    position: absolute;
    right: 100%;
    margin-right: 0.01em;
    color: var(--accent1);
}


/* ── Links ── */

:is(p, li) a:not(.btn) {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

:is(p, li) a:not(.btn):hover {
    text-decoration-style: solid;
    color: var(--accent1);
}


/* ── Buttons ── */

.btn {
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    padding: 12px 28px;
    background: var(--accent1);
    color: #fff;
    border-radius: 0;
    letter-spacing: 0.03em;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    background: var(--accent2);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1px #ddd;
}

.btn-outline:hover {
    background: var(--accent2);
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--accent2);
}

.gumroad-logo {
    display: inline-block;
    width: 6.78em;
    height: 0.95em;
    vertical-align: -0.15em;
    margin-left: 0.3em;
    background: currentColor;
    -webkit-mask-image: url('./brands/gumroad.svg');
    mask-image: url('./brands/gumroad.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ── Sections ── */

section {
    padding: var(--gap-section) 0;
}

section:first-child {
    padding-top: 0;
}


/* ── Grids ── */

.cols-1 {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: var(--gap-paragraph);
    margin-bottom: var(--gap-paragraph);
}

.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gap-row);
    row-gap: var(--gap-row-small);
    margin-top: var(--gap-paragraph);
    margin-bottom: var(--gap-paragraph);
}

.cols-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: var(--gap-row);
    margin-top: var(--gap-paragraph);
    margin-bottom: var(--gap-paragraph);
}

section>*:first-child:not(.hero-carousel-wrap) {
    margin-top: 0;
}
section>*:last-child {
    margin-bottom: 0;
}

.mt12 {
    margin-top: 12px;
}

.meta {
    font-size: 14px;
    opacity: 0.6;
}

.small-meta {
    font-size: 12px;
    opacity: 0.6;
}


/* ── Images ── */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.frame {
    overflow: hidden;
}

.fixed-height {
    height: 300px;
    vertical-align: middle;
}

.frame img {
    width: 100%;
    object-fit: cover;
    transform: scale(var(--img-zoom-from, 1.08));
    transition: transform 0.4s ease;
}

:is(.frame:hover, a:hover .frame) img {
    transform: scale(1);
}

.docs-card-img img {
    transform: scale(var(--img-zoom-from, 1.08));
    transition: transform 0.4s ease;
}

.docs-card:hover .docs-card-img img {
    transform: scale(1);
}

.project-card img {
    transform: scale(var(--img-zoom-from, 1.08));
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1);
}


/* ── Header ── */

#header-sentinel {
    display: block;
    height: calc(var(--header-full) + var(--gap-row));
    pointer-events: none;
}

[id] {
    scroll-margin-top: calc(var(--gap-row) + var(--header-compact) + 20px);
}

#site-header-bg {
    position: fixed;
    top: var(--gap-row);
    left: 0;
    width: 100%;
    height: var(--header-full);
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 199;
    pointer-events: none;
    transition: height 0.25s ease;
}

#site-header-bg.scrolled {
    height: var(--header-compact);
}

header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-column-gap: 1.3333%;
    align-items: center;
    align-content: center;
    padding-bottom: 0;
    position: sticky;
    top: var(--gap-row);
    z-index: 200;
    margin-top: calc(-1 * var(--header-full));
    height: var(--header-full);
    overflow: visible;
    transition: height 0.25s ease, padding-bottom 0.25s ease;
}

header.scrolled {
    height: var(--header-compact);
    align-items: center;
    align-content: center;
    padding-bottom: 0;
}

#showblock {
    display: none;
}

#hamburger {
    display: none;
}

.home-item {
    display: none;
}

:is(header #logo, #logo-label) {
    text-transform: uppercase;
    color: var(--text);
    text-align: center;
    transition: font-size 0.25s ease, color 0.18s ease;
}

header #logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 48px;
}

header.scrolled #logo {
    font-size: 22px;
}

.logo-icon {
    position: absolute;
    top: -10%;
    left: 0;
    z-index: 201;
    pointer-events: none;
    overflow: visible;
    transform: translate(calc(-100% - var(--gap-row-small)), -17px);
    transition: transform 0.25s ease;
}

header.scrolled .logo-icon {
    transform: translate(calc(-100% - var(--gap-row-small)), -8px);
}


.logo-icon img {
    height: 144px;
    width: auto;
    transition: height 0.25s ease;
}

header.scrolled .logo-icon img {
    height: 80px;
}

#logo-label {
    font-size: 48px;
    display: none;
    cursor: pointer;
    transition: font-size 0.25s ease, color 0.18s ease;
}

header.scrolled #logo-label {
    font-size: 22px;
}

header :is(#logo, #logo-label):hover {
    color: var(--accent1);
}

header #navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 32px;
    width: max-content;
    margin-left: auto;
    margin-bottom: 0;
}

header #navigation * {
    font-size: 22px;
    color: var(--text);
    transition: color 0.18s ease, font-size 0.25s ease, font-family 0.25s ease;
}

header.scrolled #navigation * {
    font-size: 16px;
    font-family: var(--font-light);
}

header #navigation *:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent1);
}


/* ── Hero ── */

.hero {
    text-align: center;
    padding-top: 0;
}

.hero-carousel-wrap {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: calc(-1 * var(--header-full) - 2 * var(--gap-row));
}

.hero-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    height: 65vh;
}

.hero-carousel::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    position: relative;
    flex-shrink: 0;
    min-width: 100%;
    height: 100%;
    scroll-snap-align: center;
}

.hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-credit {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    color: var(--accent1);
    text-decoration: none;
}

a.hero-credit:hover {
    text-decoration: underline;
}

.hero-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-dot.active {
    background: var(--accent1);
}

.hero-info {
    margin-top: var(--gap-paragraph);
    text-align: left;
    align-items: center;
}

.hero-tagline {
    margin: 0;
    margin-top: var(--gap-paragraph);
    font-size: 22px;
}

.hero-meta {
    font-size: 14px;
    opacity: 0.6;
}

.hero .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-paragraph);
}

.hero .hero-cta .btn {
    display: block;
    text-align: center;
}

.hero .hero-cta .short {
    display: none;
}


/* ── Highlight underline ── */

.highlight {
    text-decoration: underline;
    text-decoration-color: var(--accent1);
    text-underline-offset: 3px;
}


/* ── Pricing ── */

.pricing-card {
    border: 1px solid #ddd;
    padding: calc(var(--gap-row-small)*1.15);
    display: flex;
    flex-direction: column;
}

.pricing-card > :last-child {
    margin-top: auto;
    padding-top: var(--gap-paragraph);
    text-align: center;
}

.pricing-card-pro {
    border-color: var(--accent1);
}

.pricing-tier {
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
}

.pricing-price {
    font-size: 36px;
    margin: 8px 0;
    text-align: center;
}

.pricing-period {
    font-size: 16px;
    opacity: 0.5;
}

.pricing-desc {
    font-family: var(--font-light);
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 16px;
    text-align: center;
}


/* ── Docs cards ── */

.docs-card {
    display: block;
}

.docs-card-img {
    aspect-ratio: 1;
    overflow: hidden;
}

.docs-card-img picture {
    display: block;
    height: 100%;
}

.cols-2 .docs-card-img {
    aspect-ratio: 2 / 1;
}

.docs-card-img.wide {
    aspect-ratio: 2 / 1;
}

.docs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.docs-card:hover .header {
    text-decoration: underline;
    text-decoration-color: var(--accent1);
}

.download-badge {
    font-size: 13px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.55;
    margin-left: 6px;
}

.project-card:hover .project-label h3 {
    text-decoration: underline;
    text-decoration-color: var(--accent1);
}

/* ── Project cards ── */

.project-card {
    display: block;
}

.project-card picture {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.project-card img {
    height: 100%;
}

.project-card .project-label {
    margin-top: 12px;
}

.project-card .project-label h3 {
    font-size: 16px;
}

.project-card .project-label p {
    font-size: 14px;
    opacity: 0.6;
}


/* ── Client logos ── */

.client-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-logos) ;
    align-items: center;
    justify-items: center;
}

.client-list a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-list img {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(var(--img-zoom-from, 1.08));
    transition: transform 0.4s ease;
}

.client-list a:hover img {
    transform: scale(1);
}



/* ── Endorsement / Testimonial carousel ── */

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s ease;
}

.testimonial-slide {
    flex-shrink: 0;
    width: 100%;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.testimonial-dot.active {
    background: var(--accent1);
}

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

.endorsement blockquote {
    font-family: var(--font-light);
    font-size: 18px;
    line-height: 1.5;
    padding-left: 20px;
    border-left: 3px solid var(--accent1);
}

.endorsement .attribution {
    font-size: 14px;
    opacity: 0.7;
    padding-left: 20px;
    margin-top: 12px;
}


/* ── Section color variants ── */

.accent2-section {
    --accent1: var(--accent2);
}


/* ── Separator ── */

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 0;
}


/* ── Footer ── */

footer {
    background: #111;
    color: #fff;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: var(--gap-section) calc(50vw - 50%);
}

footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gap-row);
}

footer #logo,
footer #footer-logo {
    font-size: 22px;
    text-transform: uppercase;
    color: #fff;
}

footer #logo:hover,
footer #footer-logo:hover {
    color: var(--accent1);
}

footer .social-icons {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

footer .social-icons div {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
}

footer .social-icons a:hover div {
    opacity: 1;
}

footer .social-icons div#linkedin {
    background-image: url('./brands/linkedin_bw.png');
}

footer .social-icons div#instagram {
    background-image: url('./brands/instagram_bw.png');
}

footer .social-icons div#facebook {
    background-image: url('./brands/facebook_bw.png');
}

footer .social-icons div#youtube {
    background-image: url('./brands/youtube_bw.png');
}

footer .footer-nav {
    display: flex;
    justify-content: space-between;
}

footer .footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

footer .footer-nav-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

footer .footer-nav-col a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent1);
}

footer .footer-nav-col:hover h4 {
    text-decoration: underline;
    text-decoration-color: var(--accent1);
}

footer .copyright {
    font-size: 12px;
    font-family: var(--font-light);
    opacity: 0.4;
    grid-column: 1 / -1;
}

footer .last-updated {
    font-size: 12px;
    font-family: var(--font-light);
    opacity: 0.4;
}


/* ── Scroll-driven header (CSS, with JS fallback for older Safari) ── */

@keyframes header-compact {
    from {
        height: var(--header-full);
        padding-bottom: 0;
    }

    to {
        height: var(--header-compact);
        padding-bottom: 0;
    }
}

@keyframes header-compact-docs {
    from {
        height: calc(var(--header-full) + var(--bc-h));
        padding-bottom: var(--bc-h);
    }

    to {
        height: calc(var(--header-compact) + var(--bc-h));
        padding-bottom: var(--bc-h);
    }
}

@keyframes headerbg-compact {
    from {
        height: var(--header-full);
    }

    to {
        height: var(--header-compact);
    }
}

@keyframes logo-icon-position-compact {
    from {
        transform: translate(calc(-100% - var(--gap-row-small)), -17px);
    }

    to {
        transform: translate(calc(-100% - var(--gap-row-small)), -8px);
    }
}

@keyframes logo-compact {
    from {
        font-size: 48px;
    }

    to {
        font-size: 22px;
    }
}

@keyframes logo-icon-compact {
    from {
        height: 144px;
    }

    to {
        height: 80px;
    }
}

@keyframes nav-compact {
    from {
        font-size: 22px;
    }

    to {
        font-size: 16px;
    }
}

@supports (animation-timeline: view()) {
    body {
        timeline-scope: --sentinel;
    }

    #header-sentinel {
        view-timeline: --sentinel block;
    }

    header {
        transition: none;
        animation: header-compact linear both;
        animation-timeline: --sentinel;
        animation-range: exit 0% exit 100%;
    }

    #site-header-bg {
        transition: none;
        animation: headerbg-compact linear both;
        animation-timeline: --sentinel;
        animation-range: exit 0% exit 100%;
    }

    header #logo {
        transition: font-size 0s, color 0.18s ease;
        animation: logo-compact linear both;
        animation-timeline: --sentinel;
        animation-range: exit 0% exit 100%;
    }

    .logo-icon {
        transition: transform 0s;
        animation: logo-icon-position-compact linear both;
        animation-timeline: --sentinel;
        animation-range: exit 0% exit 100%;
    }

    .logo-icon img {
        transition: height 0s;
        animation: logo-icon-compact linear both;
        animation-timeline: --sentinel;
        animation-range: exit 0% exit 100%;
    }

    #logo-label {
        transition: font-size 0s, color 0.18s ease;
        animation: logo-compact linear both;
        animation-timeline: --sentinel;
        animation-range: exit 0% exit 100%;
    }

    header #navigation * {
        transition: color 0.18s ease, font-size 0s;
        animation: nav-compact linear both;
        animation-timeline: --sentinel;
        animation-range: exit 0% exit 100%;
    }

}

@supports (animation-timeline: view()) {
    @media (max-width: 1250px) {

        :is(header, #site-header-bg, header #logo, .logo-icon, .logo-icon img, #logo-label, header #navigation *) {
            animation: none;
        }
    }
}

@supports (animation-timeline: view()) {
    @media (min-width: 1251px) {
        body:has(#docs-breadcrumb) header {
            animation-name: header-compact-docs;
        }
    }
}


/* ── Responsive ── */

.logo-inline {
    display: none;
}

@media (max-width: 1634px) {
    .logo-icon {
        display: none;
    }

    .logo-inline {
        display: block;
        height: 1em;
        width: auto;
    }
}

@media (max-width: 1250px) {
    #header-sentinel {
        height: calc(var(--gap-section) + var(--bc-h) + var(--gap-row));
    }

    :is(#site-header-bg, #site-header-bg.scrolled) {
        top: var(--gap-row);
        height: var(--gap-section);
        transition: none;
    }

    :is(header, header.scrolled) {
        top: var(--gap-row);
        height: calc(var(--gap-section) + var(--bc-h));
        margin-top: calc(-1 * var(--gap-section) - var(--bc-h));
        align-items: center;
        align-content: center;
        padding-bottom: var(--bc-h);
        transition: none;
    }

    :is(header, header.scrolled) #logo {
        font-size: 22px;
        transition: none;
    }

    #hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        width: 28px;
        height: 28px;
        margin-left: auto;
        z-index: 301;
    }

    #hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    #showblock:checked~#hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    #showblock:checked~#hamburger span:nth-child(2) {
        opacity: 0;
    }

    #showblock:checked~#hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    header #navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: 50vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.50);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: var(--gap-section);
        gap: 32px;
        z-index: 300;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    #showblock:checked~#navigation {
        transform: translateX(0);
    }

    header #navigation .home-item {
        display: block;
    }

    :is(header, header.scrolled) #navigation * {
        font-size: 22px;
        font-family: var(--font);
    }

    :root {
        --gap-section: 40px;
        --gap-row-small: 10px;
    }

    body {
        padding: 0 var(--gap-row-small);
    }

    .cols-2 {
        grid-template-columns: 1fr;
        row-gap: var(--gap-paragraph);
    }

    .cols-4 {
        grid-template-columns: 1fr;
        row-gap: var(--gap-paragraph);
    }

    #works .cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    #pricing>.cols-4,
    #versions>.cols-4 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--gap-row-small);
        scrollbar-width: none;
    }

    #pricing>.cols-4::-webkit-scrollbar,
    #versions>.cols-4::-webkit-scrollbar {
        display: none;
    }

    #pricing>.cols-4>.pricing-card,
    #versions>.cols-4>.pricing-card {
        flex: 0 0 70vw;
        scroll-snap-align: center;
    }

    .hero-carousel {
        height: 50vh;
    }

    .hero-carousel-wrap {
        margin-top: calc(-1 * var(--gap-section) - var(--bc-h) - 2 * var(--gap-row));
    }

    .hero-tagline {
        margin-top: var(--gap-row-small);
    }

    .hero-info {
        margin-top: var(--gap-row-small);
        row-gap: var(--gap-row-small);
    }

    .hero .hero-cta .full {
        display: none;
    }

    .hero .hero-cta .short {
        display: inline;
    }

    footer .footer-nav {
        flex-direction: column;
        gap: var(--gap-paragraph);
    }



    .mobile-hide-img .docs-card-img {
        display: none;
    }

    .mobile-half-img .docs-card-img {
        aspect-ratio: 2 / 1;
    }

    .client-list {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--gap-section) 20px;
    }

    .client-list img {
        max-height: 25px;
    }

}


/* ── Subpage hero ──
   Lives OUTSIDE <main> (between <header> and <main>). Full-bleed layout
   is handled by negative margins on this container. Do not apply extra
   margins or padding to .subpage-hero picture - it must fill this
   container edge-to-edge. Mobile picture bleed rules must be scoped to
   `main picture` to avoid breaking this. */

.subpage-hero {
    height: 50vh;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: calc(-1 * var(--header-full) - 2 * var(--gap-row));
    overflow: hidden;
}

.subpage-hero picture {
    display: block;
    width: 100%;
    height: 100%;
}

.subpage-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1250px) {
    .subpage-hero {
        margin-top: calc(-1 * (var(--gap-section) + 2 * var(--gap-row)) - var(--bc-h));
    }
}


/* ── Subpage (post-page) styles ── */

main {
    padding-top: var(--gap-row);
}

.vertical-middle {
    align-self: center;
}

:is(main ul, main ol) {
    font-family: var(--font-light);
    font-size: 16px;
    line-height: 1.5;
}

main li {
    margin-bottom: 9px;
}

body.project-page main a:not(.docs-card):hover {
    text-decoration: underline;
    text-decoration-color: var(--accent1);
}

.section-label {
    padding-top: 16px;
    margin-top: var(--gap-row-small);
    margin-bottom: var(--gap-paragraph);
}

.version-tag {
    font-size: 14px;
    font-weight: 400;
    background: #e0e0e0;
    color: #444;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
}

code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    border: 1px solid #e9e9e9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
}

.contact-form label {
    font-size: 14px;
}

.contact-form :is(input, select, textarea) {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: white;
    color: black;
    -webkit-appearance: none;
    width: 100%;
}

.contact-form :is(input, select, textarea):focus {
    border-color: var(--accent1);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-form .form-row {
    display: flex;
    gap: 14px;
}

.contact-form .form-row>* {
    flex: 1;
}

.contact-form .form-status {
    font-size: 14px;
    display: none;
}

.contact-form .form-status.success {
    color: #1a7a2e;
    display: block;
}

.contact-form .form-status.error {
    color: var(--accent1);
    display: block;
}

@media (max-width: 1250px) {
    :is(main p, main li) {
        font-size: 14px;
    }

    main h1 {
        font-size: 40px;
    }

    :is(main h2, main h3) {
        font-size: 18px;
    }

    main h4 {
        font-size: 18px;
    }

    .contact-form .form-row {
        flex-direction: column;
    }

    .cols-1 picture {
        margin-left: calc(-1 * var(--gap-row-small));
        margin-right: calc(-1 * var(--gap-row-small));
    }

    .frame {
        margin-left: calc(-1 * var(--gap-row-small));
        margin-right: calc(-1 * var(--gap-row-small));
    }
}


/* ── Post-page typography ── */

main h1 {
    font-size: 48px;
    text-transform: uppercase;
}

h2 {
    font-size: 22px;
    text-transform: uppercase;
}

h3 {
    font-family: var(--font-light);
    font-size: 22px;
}

h4 {
    font-size: 22px;
}

main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

main a:hover img {
    transform: scale(1);
}

main a.zoomable img {
    transform: scale(1);
}

main a:hover h2 {
    text-decoration: underline;
    text-decoration-color: var(--accent1);
}

picture {
    display: block;
}

.mt25 {
    margin-top: calc(var(--gap-row-small) * 1.25);
}

.frame * {
    vertical-align: middle;
}

.empty {
    display: block;
}

sup {
    vertical-align: super;
    font-size: 0.75em;
}

.version-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 32px;
}

.version-banner p {
    margin: 0;
    color: #664d03;
    font-size: 14px;
}

.version-banner a {
    color: #664d03;
    text-decoration: underline;
}


/* ── Docs breadcrumb navigation ──
   Positioned inside <header> (position: relative). Uses the 100vw +
   negative margin technique to span the full viewport width from within
   the centered body container. The padding reverses the margin so text
   aligns with body content.

   IMPORTANT: This element relies on <header> having position: relative
   and on `html { overflow-x: clip }` to prevent the 100vw width from
   creating horizontal scroll. Do not add overflow-x: hidden/clip to
   <header> or <main> - it breaks position: sticky. */

#docs-breadcrumb {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 36px;
    margin-left: calc(-50vw + 50%);
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px calc(50vw - 50%);
    line-height: 20px;
    font-size: 14px;
    white-space: nowrap;
    overflow: clip;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#docs-breadcrumb.visible {
    opacity: 1;
    pointer-events: auto;
}

#docs-breadcrumb a {
    color: #333;
    text-decoration: none;
}

#docs-breadcrumb a:hover {
    text-decoration: underline;
}

@media (min-width: 1251px) {
    body:has(#docs-breadcrumb) #header-sentinel {
        height: calc(var(--header-full) + var(--bc-h) + var(--gap-row));
    }

    body:has(#docs-breadcrumb) header {
        height: calc(var(--header-full) + var(--bc-h));
        margin-top: calc(-1 * var(--header-full) - var(--bc-h));
        padding-bottom: var(--bc-h);
    }

    body:has(#docs-breadcrumb) header.scrolled {
        height: calc(var(--header-compact) + var(--bc-h));
        padding-bottom: var(--bc-h);
    }

    body:has(#docs-breadcrumb) .subpage-hero {
        margin-top: calc(-1 * var(--header-full) - 2 * var(--gap-row) - var(--bc-h));
    }
}

/* ── Manual / docs page styles ── */

main#manual :is(h2[id], h3[id], h4[id], .component-ref[id]) {
    scroll-margin-top: calc(var(--gap-row) + var(--gap-section) + var(--bc-h) + 50px);
}

main#manual :is(h2, h3, h4, table) {
    margin-top: 25px;
}

main#manual :is(h2, h3, h4) {
    margin-bottom: 10px;
}

main#manual .columns {
    margin-top: 12.5px;
    column-count: 2;
    column-fill: auto;
}

main#manual :is(.columns, p) {
    margin-bottom: 12.5px;
}

main#manual h2 {
    font-size: 40px;
    margin-top: 40px;
    margin-bottom: 8px;
}

main#manual h3 {
    font-family: var(--font);
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

main#manual h4 {
    font-size: 24px;
}

main#manual em {
    font-style: italic;
}

main#manual :is(ul, ol) {
    padding-left: 0;
    margin-left: 1.5em;
}

main#manual ul {
    list-style: none;
}

main#manual ol>li {
    list-style-type: decimal;
}

main#manual :is(ul li, ol > li):before {
    position: absolute;
    margin-left: -1.5em;
}

main#manual ul li:before {
    content: '\2014';
}

main#manual ol ul li:before {
    content: none;
}

main#manual a:not(.docs-card) {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
}

main#manual a:not(.docs-card):hover {
    text-decoration-style: solid;
}

main#manual td {
    padding-left: 10px;
    padding-right: 10px;
}

main#manual table {
    margin-left: auto;
    margin-right: auto;
}

:is(main#manual pre, pre[class*="language-"], pre code) {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    background: #f3f4f6;
    color: #111;
    display: block;
    padding: 16px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
    margin: 12px 0;
}


/* ── Docs navigation cards ── */

.docs-nav {
    margin-top: var(--gap-section);
}

.docs-nav .docs-card h2 {
    font-size: 16px;
}

.docs-nav .docs-card-img {
    aspect-ratio: 2 / 1;
}

main#manual .docs-nav h2 {
    font-size: 22px;
    margin: 0;
}

main#manual .docs-dl-row h2,
main#manual .docs-dl-row h2.header {
    font-size: 22px;
    margin: 0 0 var(--gap-row-small) 0;
}

main#manual .docs-nav h3 {
    font-size: 22px;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
}

main#manual .docs-nav p {
    margin-bottom: 0;
}


/* ── Component reference tables ── */

:is(.param-table, .cast-table) {
    min-width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

:is(.param-table, .cast-table) th {
    text-align: left;
    background: #f0f0f0;
    font-weight: 600;
}

:is(.param-table, .cast-table) code {
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 12px;
    white-space: normal;
}

.param-table th {
    padding: 6px 10px;
    border-bottom: 2px solid #ddd;
}

.param-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.cast-table :is(th, td) {
    padding: 4px 10px;
    border: 1px solid #eee;
}

.cast-table tr.section-start td {
    border-top: 2px solid #ccc;
}

.color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

.component-ref {
    border-top: 2px solid var(--accent1);
    padding-top: 24px;
    margin-top: 32px;
}

.component-ref>h4 {
    margin-bottom: 4px;
}

.comp-icon {
    display: inline;
    height: 2em;
    width: 2em;
    margin-right: 8px;
    vertical-align: middle;
}

@media (min-width: 1635px) {
    .comp-icon {
        position: relative;
        left: calc(-2em - 8px);
        margin-right: -2em;
    }
}

@media (max-width: 1250px) {
    .comp-icon {
        height: 1em;
        width: 1em;
    }

    main#manual h1 {
        font-size: 28px;
    }

    main#manual h2 {
        font-size: 24px;
    }

    main#manual .docs-dl-row h2,
    main#manual .docs-dl-row h2.header {
        font-size: 22px;
        margin: 0 0 var(--gap-row-small) 0;
    }

    main#manual h3 {
        font-size: 18px;
    }

    main#manual h4 {
        font-size: 18px;
    }
}

.component-meta {
    color: #888;
    font-size: 12px;
    margin-bottom: 12px;
}

.param-table :is(th, td):nth-child(1) {
    min-width: 11em;
}

.param-table :is(th, td):nth-child(2) {
    min-width: 10em;
}

.param-table :is(th, td):nth-child(3) {
    min-width: 9em;
}

.param-table :is(td, th) {
    overflow-wrap: break-word;
}

.param-table.has-access :is(th, td):nth-child(4) {
    min-width: 6em;
}

.param-table.hetero-grid :is(th, td):nth-child(-n+4) {
    text-align: center;
    min-width: 5em;
}

.param-table.hetero-grid :is(th, td):nth-child(4) {
    min-width: 7em;
    font-weight: 600;
}

.param-table.slot-state :is(th, td):nth-child(2) {
    min-width: 4em;
}

.param-table.slot-state :is(th, td):nth-child(3) {
    min-width: 20em;
}


/*
 * Scroll wrapper for tables. A small inline script in each doc page wraps
 * every .param-table and .cast-table in <div class="table-scroll"> at load
 * time. Tables use min-width:100% so they fill the container on desktop
 * but grow beyond it when column content demands more space. The wrapper
 * provides horizontal scrolling on narrow viewports.
 */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1250px) {
    .param-table.has-access :is(th, td):nth-child(5) {
        min-width: 15em;
    }

    .param-table.hetero-grid :is(th, td):nth-child(5) {
        min-width: 18em;
    }

    .param-table.slot-state :is(th, td):nth-child(4) {
        min-width: 20em;
    }
}

.prose li+li {
    margin-top: 6px;
}

dl.vocabulary {
    margin: 20px 0 32px;
    column-count: 1;
}

dl.vocabulary dt {
    margin-top: 24px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

dl.vocabulary dt strong {
    font-weight: 600;
}

dl.vocabulary dt:first-of-type {
    margin-top: 8px;
}

dl.vocabulary dd {
    margin: 6px 0 0 0;
    color: #555;
    font-size: 12px;
    line-height: 1.65;
}


/* ── Lightbox ── */

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox img {
    max-width: 98%;
    max-height: 98%;
    margin-top: 1%;
    margin-bottom: 1%;
}

@media (max-width: 1250px) {
    main a.zoomable {
        cursor: default;
        pointer-events: none;
    }

    /* IMPORTANT: This MUST be `main picture`, not bare `picture`.
       .subpage-hero and .hero-slide live OUTSIDE <main>. A bare selector
       applies negative margins to their <picture> elements, shifting them
       left and creating a visible gap on the right side on mobile. */
    main picture {
        display: block !important;
        margin-left: calc(-1 * var(--gap-row-small));
        margin-right: calc(-1 * var(--gap-row-small));
    }
}

@media (min-width: 1250px) {
    main a.zoomable:hover img {
        transform: scale(1.02);
    }

    .lightbox:target {
        outline: none;
        display: block;
    }

    main a img {
        transform: scale(1.02);
    }
}

.book-note {
    font-style: italic;
    color: #888;
}

.book-viewer-frame {
    width: 100%;
    aspect-ratio: 2 / 1.1;
    border: 0;
    border-radius: 4px;
}

.embed-credit {
    font-size: 12px;
    margin: 5px;
    color: #4a4a4a;
}

.embed-credit a {
    font-weight: 600;
}

.ai-help-page main#manual h2 { font-size: 24px; margin-top: 28px; }
.ai-help-page main#manual h3 { font-size: 16px; text-transform: none; letter-spacing: 0; border-bottom: none; padding-bottom: 0; }

.follow-section {
    padding-top: var(--gap-row);
}

.follow-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.follow-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.follow-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.follow-form input[type="email"] {
    width: 260px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.follow-form .btn {
    height: 44px;
    width: 300px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 44px;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.follow-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.follow-social div {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: invert(1);
    transition: opacity 0.2s;
}

.follow-social a:hover div {
    opacity: 1;
}

#follow-linkedin  { background-image: url('./brands/linkedin_bw.png'); }
#follow-instagram { background-image: url('./brands/instagram_bw.png'); }
#follow-facebook  { background-image: url('./brands/facebook_bw.png'); }
#follow-youtube   { background-image: url('./brands/youtube_bw.png'); }

@media (max-width: 1250px) {
    .follow-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
    .follow-form {
        width: 100%;
        flex-direction: column;
    }
    .follow-form input[type="email"] {
        width: 100%;
        max-width: 100%;
    }

    .follow-form .btn {
        width: 100%;
        max-width: 100%;
    }
}


/* ── Compare table (archive page: Monoceros 1 / 2 / 3) ── */

#compare > h2.header {
    text-align: center;
    margin-bottom: var(--gap-paragraph);
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 16px;
    table-layout: fixed;
}

.compare-table thead th {
    text-align: left;
    font-family: var(--font);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 16px;
    border-bottom: 2px solid var(--text);
    vertical-align: bottom;
    background: var(--bg);
}

/*
 * Archived versions (columns 2 and 3) are rendered in the same muted
 * tone as their "No longer updated" subheads so the current version
 * column stands out without resorting to green/red or checkmarks.
 */
.compare-table thead th:nth-child(2),
.compare-table thead th:nth-child(3),
.compare-table tbody td:nth-child(2),
.compare-table tbody td:nth-child(3) {
    color: #888;
}

.compare-table .compare-subhead {
    display: block;
    font-family: var(--font-light);
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2px;
    color: #888;
}

.compare-table tbody td {
    padding: 16px;
    vertical-align: top;
    font-family: var(--font-light);
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg);
}

.compare-table tbody tr:nth-child(odd) td {
    background: #fafafa;
}

.compare-table tbody td:first-child strong {
    font-family: var(--font);
    font-weight: normal;
}

.compare-table :is(th, td):nth-child(1) { width: 22%; }
.compare-table :is(th, td):nth-child(2),
.compare-table :is(th, td):nth-child(3),
.compare-table :is(th, td):nth-child(4) { width: 26%; }

@media (max-width: 1250px) {
    /*
     * Mobile: force the table wider than its container so horizontal
     * scroll kicks in. The first column scrolls with the rest of the
     * table - earlier revisions pinned it as a sticky column, but the
     * pinned 22% width ate most of the viewport on phones, so the pin
     * was removed in favour of uniform horizontal scrolling.
     */
    .compare-table {
        min-width: 1080px;
        font-size: 14px;
    }

    .compare-table tbody td,
    .compare-table thead th {
        padding: 12px 14px;
        font-size: 14px;
    }
}

