/*
  makes.css — makes section extras
  Card-heading rebuild:
  - Featured Builds heading lives inside the feature card
  - Featured project metadata is bottom-justified
  - Project CTA becomes "View [Category]" via JS
  - Sketchbook heading lives inside its card with a 5-image contact strip beside it
*/

body.makes .content-card,
body.makes .lane-card,
body.makes .about-card {
    border-color: rgba(210, 215, 220, 0.14);
}

body.makes .gallery-loading,
body.makes .makes-empty,
body.makes .makes-error {
    margin: 0;
    color: rgba(232, 235, 238, 0.72);
}

body.lightbox-open {
    overflow: hidden;
}

/* ========================================================================== 
   Shared text bits
========================================================================== */

body.makes .featured-builds-heading h2,
body.makes .sketch-strip-heading h2 {
    margin: 0.45rem 0 0;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

body.makes .featured-builds-heading p,
body.makes .sketch-strip-heading p {
    margin: 0.45rem 0 0;
    max-width: 34rem;
    color: rgba(232, 235, 238, 0.68);
    font-size: 0.92rem;
}

/* ========================================================================== 
   Featured Builds — single card with internal heading + bottom metadata
========================================================================== */

body.makes .featured-builds-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1rem 1.35rem;
    align-items: stretch;
    padding: 1.15rem;
    border: 1px solid rgba(210, 215, 220, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 14px 32px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

body.makes .featured-builds-shell::before,
body.makes .sketch-strip-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 34rem;
    height: 24rem;
    border-radius: 999px;
    background: rgba(210, 215, 220, 0.075);
    filter: blur(90px);
}

body.makes .featured-builds-shell::before {
    right: -12rem;
    top: -10rem;
}

body.makes .featured-builds-heading {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    min-width: 0;
}

body.makes .featured-builds-main {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
}

body.makes .featured-builds-meta {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 100%;
    padding: 0.2rem 0.2rem 0.2rem 0;
}

body.makes .featured-builds-copy {
    margin-top: auto;
}

body.makes .featured-builds-viewport {
    width: 100%;
    overflow: hidden;
}

body.makes .featured-builds-track {
    display: flex;
    width: 100%;
    transition: transform 420ms ease;
    will-change: transform;
}

body.makes .featured-build-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

body.makes .featured-build-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

body.makes .featured-build-images.single-image {
    grid-template-columns: 1fr;
}

body.makes .featured-build-image-button {
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 1px solid rgba(210, 215, 220, 0.12);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    cursor: zoom-in;
    overflow: hidden;
}

body.makes .featured-build-image-button img,
body.makes .sketch-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: center;
    transform: scale(1.01);
    transition: transform 420ms ease, filter 420ms ease;
}

body.makes .featured-build-image-button img {
    object-fit: cover;
}

body.makes .featured-build-image-button:hover img,
body.makes .featured-build-image-button:focus-visible img,
body.makes .sketch-image-button:hover img,
body.makes .sketch-image-button:focus-visible img {
    transform: scale(1.04);
    filter: brightness(1.08);
}

body.makes .featured-builds-copy h3 {
    max-width: 12ch;
    margin: 0.55rem 0 0.5rem;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

body.makes .featured-builds-copy p {
    max-width: 28rem;
    margin: 0;
    color: rgba(232, 235, 238, 0.72);
    font-size: 0.94rem;
}

body.makes .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

body.makes .project-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(210, 215, 220, 0.13);
    border-radius: 999px;
    color: rgba(232, 235, 238, 0.72);
    font-size: 0.76rem;
    text-transform: capitalize;
}

body.makes .featured-builds-count {
    margin-top: 0.75rem !important;
    color: rgba(232, 235, 238, 0.52) !important;
    font-size: 0.86rem;
}

body.makes .featured-builds-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
}

body.makes .carousel-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.makes .carousel-dot {
    width: 0.56rem;
    height: 0.56rem;
    padding: 0;
    border: 1px solid rgba(210, 215, 220, 0.28);
    border-radius: 999px;
    background: rgba(232, 235, 238, 0.18);
    cursor: pointer;
}

body.makes .carousel-dot.active,
body.makes .carousel-dot[aria-current="true"] {
    background: #9aa0a6;
    border-color: rgba(232, 235, 238, 0.65);
}

body.makes .makes-text-link {
    color: rgba(232, 235, 238, 0.88);
    text-decoration-color: rgba(154, 160, 166, 0.58);
    text-underline-offset: 0.25rem;
    white-space: nowrap;
}

/* ========================================================================== 
   Carousel Buttons
========================================================================== */

body.makes .carousel-button,
body.makes .sketch-strip-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(210, 215, 220, 0.18);
    border-radius: 999px;
    background: rgba(7, 8, 10, 0.72);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.makes .carousel-button {
    top: 50%;
    transform: translateY(-50%);
}

body.makes .carousel-button-prev {
    left: 0.65rem;
}

body.makes .carousel-button-next {
    right: 0.65rem;
}

body.makes .carousel-button:hover,
body.makes .carousel-button:focus-visible,
body.makes .sketch-strip-nav:hover,
body.makes .sketch-strip-nav:focus-visible {
    background: rgba(154, 160, 166, 0.26);
    border-color: rgba(210, 215, 220, 0.26);
}

/* ========================================================================== 
   Sketchbook — card heading + 5-image horizontal strip
========================================================================== */

body.makes .sketch-gallery-section {
    padding-top: 34px;
}

body.makes .sketch-strip {
    min-width: 0;
}

body.makes .sketch-strip-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
    gap: 1.05rem;
    align-items: stretch;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(210, 215, 220, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 26px rgba(0, 0, 0, 0.34);
}

body.makes .sketch-strip-shell::before {
    left: -12rem;
    top: -10rem;
    background: rgba(210, 215, 220, 0.055);
}

body.makes .sketch-strip-heading {
    align-self: center;
    min-width: 0;
    padding-right: 0.25rem;
}

body.makes .sketch-strip-heading p {
    max-width: 18rem;
}

body.makes .sketch-strip-viewport {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body.makes .sketch-strip-viewport::-webkit-scrollbar {
    display: none;
}

body.makes .sketch-strip-track {
    display: flex;
    gap: 0.72rem;
}

body.makes .sketch-strip-item {
    flex: 0 0 calc((100% - 2.88rem) / 5);
    min-width: 0;
    scroll-snap-align: start;
}

body.makes .sketch-image-button {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 1px solid rgba(210, 215, 220, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    cursor: zoom-in;
    overflow: hidden;
}

body.makes .sketch-image-button img {
    object-fit: cover;
}

body.makes .sketch-strip-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    font-size: 1.3rem;
}

body.makes .sketch-strip-prev {
    left: calc(28% + 0.35rem);
}

body.makes .sketch-strip-next {
    right: 0.55rem;
}

/* ========================================================================== 
   Lightbox
========================================================================== */

body.makes .build-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 3.5rem 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
}

body.makes .build-lightbox[hidden] {
    display: none;
}

body.makes .lightbox-figure {
    width: min(1100px, 92vw);
    max-height: 86vh;
    margin: 0;
}

body.makes .lightbox-figure img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.35);
}

body.makes .lightbox-figure figcaption {
    margin-top: 0.85rem;
    color: rgba(232, 235, 238, 0.76);
    text-align: center;
}

body.makes .lightbox-close,
body.makes .lightbox-nav {
    position: fixed;
    z-index: 1001;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(210, 215, 220, 0.18);
    border-radius: 999px;
    background: rgba(12, 13, 15, 0.78);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

body.makes .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.8rem;
}

body.makes .lightbox-nav {
    top: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    transform: translateY(-50%);
}

body.makes .lightbox-prev {
    left: 1rem;
}

body.makes .lightbox-next {
    right: 1rem;
}

body.makes .lightbox-close:hover,
body.makes .lightbox-close:focus-visible,
body.makes .lightbox-nav:hover,
body.makes .lightbox-nav:focus-visible {
    background: rgba(154, 160, 166, 0.28);
}

/* ========================================================================== 
   Dynamic lane pages — project grid + same-page detail
========================================================================== */

body.makes .makes-lane-layout {
    --project-card-height: 120px;
    --project-card-gap: 0.75rem;
    --visible-projects: 3.5;

    --lane-card-height:
        calc(
            (var(--project-card-height) * var(--visible-projects))
            + (var(--project-card-gap) * (var(--visible-projects) - 1))
            + 104px
        );

    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: 1.15rem;
    align-items: stretch;
}

body.makes .project-preview-panel,
body.makes .project-detail-card {
    position: relative;
    isolation: isolate;
    height: var(--lane-card-height);

    border: 1px solid rgba(210, 215, 220, 0.14);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 14px 32px rgba(0, 0, 0, 0.42);

    overflow: hidden;
}

body.makes .project-preview-panel::before,
body.makes .project-detail-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;

    width: 30rem;
    height: 20rem;

    border-radius: 999px;

    background: rgba(210, 215, 220, 0.065);

    filter: blur(90px);
}

body.makes .project-preview-panel::before {
    left: -12rem;
    top: -10rem;
}

body.makes .project-detail-card::before {
    right: -12rem;
    top: -10rem;
}

/* ==========================================================================
   Left Panel
========================================================================== */

body.makes .project-preview-panel {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

body.makes .project-preview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: 1rem;
}

body.makes .project-preview-heading h2 {
    margin: 0.45rem 0 0;

    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

body.makes .project-count {
    color: rgba(232, 235, 238, 0.55);

    font-size: 0.84rem;
    white-space: nowrap;
}

body.makes .project-preview-grid {
    flex: 1;
    min-height: 0;

    display: grid;
    gap: var(--project-card-gap);

    overflow-y: auto;

    padding-top: 0.1rem;
    padding-right: 0.85rem;

    scroll-padding-top: 0.1rem;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body.makes .project-preview-grid::-webkit-scrollbar {
    width: 8px;
}

body.makes .project-preview-grid::-webkit-scrollbar-track {
    background: transparent;
}

body.makes .project-preview-grid::-webkit-scrollbar-thumb {
    background: rgba(210,215,220,0.18);
    border-radius: 999px;
}

body.makes .project-preview-card {
    height: var(--project-card-height);

    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;

    width: 100%;
    min-width: 0;

    padding: 0.7rem;

    border: 1px solid rgba(210, 215, 220, 0.12);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.03);

    color: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

body.makes .project-preview-card:hover,
body.makes .project-preview-card:focus-visible,
body.makes .project-preview-card.is-active {
    transform: translateY(-1px);

    border-color: rgba(210, 215, 220, 0.28);

    background: rgba(123, 128, 133, 0.09);

    box-shadow:
        0 0 0 1px rgba(123, 128, 133, 0.16);
}

body.makes .project-preview-media {
    display: grid;
    place-items: center;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 12px;

    background: rgba(0, 0, 0, 0.28);

    border: 1px solid rgba(210, 215, 220, 0.10);
}

body.makes .project-preview-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

body.makes .project-preview-placeholder,
body.makes .project-detail-placeholder span {
    color: rgba(232, 235, 238, 0.42);

    font-weight: 900;
    letter-spacing: -0.05em;
}

body.makes .project-preview-copy {
    display: block;
    min-width: 0;
}

body.makes .project-preview-copy .tag {
    margin-bottom: 0.35rem;
}

body.makes .project-preview-copy strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;

    color: #eae6df;

    font-size: 1rem;
    line-height: 1.05;
}

body.makes .project-preview-copy small {
    display: block;

    margin-top: 0.35rem;

    color: rgba(232, 235, 238, 0.56);

    font-size: 0.78rem;
}

/* ==========================================================================
   Right Detail Card
========================================================================== */

body.makes .project-detail-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
    gap: 1.1rem;

    padding: 1.1rem;
}

body.makes .project-detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    min-width: 0;
}

body.makes .project-detail-copy h2 {
    max-width: 11ch;

    margin: 0.55rem 0 0.6rem;

    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

body.makes .project-detail-copy p {
    max-width: 34rem;

    margin: 0;

    color: rgba(232, 235, 238, 0.72);

    font-size: 0.95rem;
}

body.makes .project-detail-meta,
body.makes .project-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    margin-top: 1rem;
}

body.makes .project-detail-meta span,
body.makes .project-materials span {
    display: inline-flex;
    align-items: center;

    min-height: 1.75rem;

    padding: 0.25rem 0.65rem;

    border: 1px solid rgba(210, 215, 220, 0.13);
    border-radius: 999px;

    color: rgba(232, 235, 238, 0.72);

    font-size: 0.76rem;
}

body.makes .project-materials span {
    background: rgba(255, 255, 255, 0.025);
}

body.makes .project-detail-gallery {
    min-height: 0;
    max-height: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 185px;
    gap: 0.75rem;

    overflow-y: auto;
    overflow-x: hidden;

    align-content: start;

    padding-top: 0.1rem;
    padding-right: 0.85rem;

    scroll-padding-top: 0.1rem;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scroll-padding-top: 0.1rem;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body.makes .project-detail-gallery::-webkit-scrollbar {
    width: 8px;
}

body.makes .project-detail-gallery::-webkit-scrollbar-track {
    background: transparent;
}

body.makes .project-detail-gallery::-webkit-scrollbar-thumb {
    background: rgba(210,215,220,0.16);
    border-radius: 999px;
}

body.makes .project-detail-gallery.is-empty {
    grid-template-columns: 1fr;
}

body.makes .project-detail-image-button,
body.makes .project-detail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;

    aspect-ratio: auto;

    padding: 0;
    border: 1px solid rgba(210, 215, 220, 0.12);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

body.makes .project-detail-image-button {
    cursor: zoom-in;
}

body.makes .project-detail-image-button img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.01);

    transition:
        transform 420ms ease,
        filter 420ms ease;
}

body.makes .project-detail-image-button:hover img,
body.makes .project-detail-image-button:focus-visible img {
    transform: scale(1.04);

    filter: brightness(1.08);
}

body.makes .project-detail-placeholder {
    display: grid;
    place-items: center;

    min-height: 320px;

    text-align: center;
}

body.makes .project-detail-placeholder span {
    display: block;

    font-size: clamp(4rem, 12vw, 8rem);
}

body.makes .project-detail-placeholder p {
    margin-top: -2rem;

    color: rgba(232, 235, 238, 0.52);
}

/* ==========================================================================
   Responsive
========================================================================== */

@media (max-width: 980px) {
    body.makes .featured-builds-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    body.makes .featured-builds-heading,
    body.makes .featured-builds-main,
    body.makes .featured-builds-meta {
        grid-column: 1;
        grid-row: auto;
    }

    body.makes .featured-builds-meta {
        padding: 0.15rem;
    }

    body.makes .featured-builds-copy h3 {
        max-width: none;
    }

    body.makes .sketch-strip-shell {
        grid-template-columns: 1fr;
    }

    body.makes .sketch-strip-heading,
    body.makes .sketch-strip-viewport {
        grid-column: 1;
    }

    body.makes .sketch-strip-heading {
        max-width: 40rem;
    }

    body.makes .sketch-strip-heading p {
        max-width: 34rem;
    }

    body.makes .sketch-strip-prev {
        left: 0.55rem;
    }

    body.makes .sketch-strip-item {
        flex-basis: calc((100% - 2.16rem) / 4);
    }
}

@media (max-width: 760px) {
    body.makes .featured-build-images {
        grid-template-columns: 1fr;
    }

    body.makes .featured-build-image-button {
        aspect-ratio: 16 / 10;
    }

    body.makes .sketch-strip-item {
        flex-basis: calc((100% - 0.72rem) / 2);
    }
}

@media (max-width: 620px) {
    body.makes .featured-builds-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    body.makes .carousel-button,
    body.makes .sketch-strip-nav {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.35rem;
    }

    body.makes .lightbox-nav {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    body.makes .sketch-strip-item {
        flex-basis: 76vw;
    }
}

@media (max-width: 980px) {
    body.makes .makes-lane-layout,
    body.makes .project-detail-card {
        grid-template-columns: 1fr;
    }

    body.makes .project-preview-panel,
    body.makes .project-detail-card {
        height: auto;
    }

    body.makes .project-preview-grid,
    body.makes .project-detail-gallery {
        max-height: none;
    }

    body.makes .project-detail-copy h2 {
        max-width: none;
    }
}

@media (max-width: 700px) {
    body.makes .project-detail-gallery {
        grid-template-columns: 1fr;
    }

    body.makes .project-preview-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}