/* LaserCrafts Laboratory — an archive, deliberately not a blog */

.lab-page {
    --lab-ink: #171613;
    --lab-soft: #24211d;
    --lab-paper: #f2eddf;
    --lab-paper-deep: #ddd4c2;
    --lab-ember: #ff6b35;
    --lab-chalk: #fffaf0;
    background: var(--lab-ink);
}

.lab-page .navbar {
    background: rgba(23, 22, 19, .84);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

.lab-page .navbar .nav-link {
    color: rgba(255, 250, 240, .7);
}

.lab-page .navbar .nav-link:hover,
.lab-page .navbar .nav-link:focus {
    color: var(--lab-chalk);
}

.lab-page .navbar.scrolled {
    background: rgba(23, 22, 19, .97) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.laboratory {
    overflow: hidden;
    color: var(--lab-ink);
}

.laboratory h1,
.laboratory h2,
.laboratory h3 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.035em;
}

.lab-eyebrow {
    margin: 0 0 .9rem;
    color: var(--lab-ember);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lab-hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 9rem 0 6rem;
    background:
        radial-gradient(circle at 15% 35%, rgba(255, 107, 53, .11), transparent 27rem),
        linear-gradient(120deg, #191714 0%, #242019 58%, #11100e 100%);
    color: var(--lab-chalk);
}

.lab-grain {
    position: absolute;
    inset: 0;
    opacity: .17;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

.lab-hero-grid {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.lab-hero-copy h1 {
    margin: 0;
    font-size: clamp(4.1rem, 8vw, 7.6rem);
    font-weight: 700;
    line-height: .86;
}

.lab-hero-copy h1 span {
    color: var(--lab-ember);
    font-style: italic;
    font-weight: 400;
}

.lab-hero-copy > p:not(.lab-eyebrow) {
    max-width: 540px;
    margin: 2rem 0;
    color: rgba(255, 250, 240, .62);
    font-size: 1.04rem;
    line-height: 1.75;
}

.lab-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.15rem;
    background: var(--lab-ember);
    color: var(--lab-ink);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease;
}

.lab-button:hover {
    background: #ff873d;
    color: var(--lab-ink);
    transform: translateY(-2px);
}

.lab-board {
    min-height: 610px;
    position: relative;
}

.lab-paper {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--lab-paper);
    color: var(--lab-ink);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .36);
}

.lab-paper::before {
    content: "";
    width: 68px;
    height: 16px;
    position: absolute;
    top: -8px;
    left: 50%;
    background: rgba(220, 204, 168, .72);
    transform: translateX(-50%) rotate(-2deg);
}

.lab-paper > span {
    color: #817666;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.lab-paper strong {
    margin-top: auto;
    font: 700 clamp(1.8rem, 4vw, 3.1rem)/.95 Georgia, serif;
    letter-spacing: -.04em;
}

.lab-paper p {
    margin: .8rem 0 0;
    color: #6c6255;
    font-size: .78rem;
    line-height: 1.5;
}

.lab-paper-1 {
    width: 55%;
    height: 55%;
    top: 2%;
    right: 5%;
    transform: rotate(3deg);
}

.lab-paper-2 {
    width: 52%;
    height: 45%;
    bottom: 2%;
    left: 3%;
    background: #d7cdb9;
    transform: rotate(-4deg);
}

.lab-paper-3 {
    width: 38%;
    height: 34%;
    right: 2%;
    bottom: 7%;
    background: #ff7040;
    transform: rotate(5deg);
}

.lab-paper-3 > span,
.lab-paper-3 p {
    color: rgba(23, 22, 19, .65);
}

.lab-stamp {
    width: 126px;
    height: 126px;
    position: absolute;
    top: 41%;
    left: 30%;
    z-index: 5;
    display: grid;
    align-content: center;
    border: 2px solid var(--lab-ember);
    border-radius: 50%;
    color: var(--lab-ember);
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-12deg);
}

.lab-stamp strong {
    font: 700 2rem/1 Georgia, serif;
}

.lab-stamp span {
    margin-top: .35rem;
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.35;
}

.lab-manifesto {
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 1.8rem 0;
    background: var(--lab-soft);
    color: rgba(255, 250, 240, .62);
}

.lab-manifesto p {
    margin: 0;
    font: 400 clamp(1rem, 2vw, 1.3rem)/1.5 Georgia, serif;
    text-align: center;
}

.lab-manifesto span {
    color: var(--lab-chalk);
    font-style: italic;
}

.lab-notes {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--lab-paper);
}

.lab-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.lab-heading h2 {
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: .95;
}

.lab-heading-note {
    margin: 0;
    color: #796f61;
    font: italic .9rem/1.5 Georgia, serif;
    text-align: right;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.7rem 1.5rem;
}

.note-card {
    grid-column: span 6;
}

.note-card:nth-child(4n + 1) {
    grid-column: span 7;
}

.note-card:nth-child(4n + 2) {
    grid-column: span 5;
}

.note-card a {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
    color: var(--lab-ink);
    text-decoration: none;
}

.note-cover {
    min-height: 320px;
    position: relative;
    overflow: hidden;
    background: var(--lab-paper-deep);
}

.note-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.82) contrast(1.04);
    transition: transform .55s cubic-bezier(.2, .75, .25, 1), filter .3s ease;
}

.note-card:hover .note-cover img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.note-cover > span {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
    padding: .35rem .5rem;
    background: var(--lab-ink);
    color: var(--lab-chalk);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.note-cover-typographic {
    display: grid;
    place-content: center;
    padding: 1.5rem;
    background:
        linear-gradient(135deg, rgba(255, 107, 53, .08), transparent 55%),
        #d7cdb9;
    text-align: center;
}

.note-cover-typographic strong {
    color: rgba(23, 22, 19, .1);
    font: 700 clamp(5rem, 12vw, 9rem)/1 Georgia, serif;
    letter-spacing: -.08em;
}

.note-cover-typographic small {
    color: #776c5e;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

.note-copy {
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid #cec3b1;
    border-left: 0;
    background: #eee7d8;
}

.note-copy > p {
    margin: 0 0 .65rem;
    color: #776d5f;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.note-copy h3 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.02;
}

.note-copy > div {
    display: -webkit-box;
    margin-top: 1rem;
    overflow: hidden;
    color: #665d51;
    font-size: .84rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.note-open {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: auto;
    padding-top: 1.2rem;
    color: var(--lab-ember);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.lab-empty {
    padding: 6rem 1rem;
    border: 1px dashed #b8ad9c;
    text-align: center;
}

.lab-empty > span {
    color: #998e7d;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.lab-empty h3 {
    margin: 1rem 0 .3rem;
    font-size: 2rem;
}

.lab-evidence {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--lab-ink);
    color: var(--lab-chalk);
}

.lab-heading-light h2 {
    color: var(--lab-chalk);
}

.lab-text-link {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: .2rem;
    color: rgba(255, 250, 240, .72);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

.lab-text-link:hover {
    color: var(--lab-ember);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
}

.evidence-card {
    grid-column: span 3;
}

.evidence-card:nth-child(even) {
    margin-top: 3rem;
}

.evidence-card a {
    color: var(--lab-chalk);
    text-decoration: none;
}

.evidence-image {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background: var(--lab-soft);
}

.evidence-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.8);
    transition: transform .5s ease, filter .3s ease;
}

.evidence-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.evidence-image span {
    position: absolute;
    top: .65rem;
    left: .65rem;
    padding: .3rem .45rem;
    background: var(--lab-ink);
    font-size: .58rem;
    font-weight: 800;
}

.evidence-copy {
    padding-top: .85rem;
}

.evidence-copy p {
    margin: 0 0 .25rem;
    color: rgba(255, 250, 240, .42);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.evidence-copy h3 {
    margin: 0;
    color: var(--lab-chalk);
    font-size: 1.35rem;
}

.lab-closing {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: #d8d0bf;
    text-align: center;
}

.lab-closing h2 {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: .94;
}

.lab-closing > .container > p:last-child {
    margin: 1.3rem 0 0;
    color: #6e6457;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

/* Footer continuity */
.lab-page .footer {
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: #11100e;
    color: rgba(255, 250, 240, .58);
}

.lab-page .footer h5,
.lab-page .footer h6 {
    color: var(--lab-chalk);
}

.lab-page .footer h5.text-laser {
    color: var(--lab-ember);
}

.lab-page .footer p,
.lab-page .footer em {
    color: rgba(255, 250, 240, .5);
}

.lab-page .footer a {
    color: rgba(255, 250, 240, .65);
}

.lab-page .footer a:hover {
    color: var(--lab-ember);
}

.lab-page .footer hr {
    border-color: rgba(255, 255, 255, .12);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .lab-page .navbar {
        background: rgba(23, 22, 19, .98) !important;
    }

    .lab-page .navbar-toggler {
        border-color: rgba(255, 255, 255, .2);
        filter: invert(1);
    }

    .lab-hero-grid {
        grid-template-columns: 1fr;
    }

    .lab-board {
        width: min(100%, 650px);
        margin: 0 auto;
    }

    .note-card,
    .note-card:nth-child(4n + 1),
    .note-card:nth-child(4n + 2) {
        grid-column: span 12;
    }

    .evidence-card {
        grid-column: span 6;
    }
}

@media (max-width: 767.98px) {
    .lab-hero {
        min-height: auto;
        padding-top: 8.5rem;
    }

    .lab-hero-copy h1 {
        font-size: clamp(3.8rem, 18vw, 5.5rem);
    }

    .lab-board {
        min-height: 440px;
    }

    .lab-stamp {
        width: 96px;
        height: 96px;
        left: 23%;
    }

    .lab-heading {
        display: block;
    }

    .lab-heading-note,
    .lab-text-link {
        margin-top: 1.2rem;
        text-align: left;
    }

    .note-card a {
        grid-template-columns: 1fr;
    }

    .note-cover {
        min-height: 260px;
    }

    .note-copy {
        min-height: 280px;
        border-top: 0;
        border-left: 1px solid #cec3b1;
    }

    .evidence-card {
        grid-column: span 12;
    }

    .evidence-card:nth-child(even) {
        margin-top: 0;
    }

    .evidence-image {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lab-button,
    .note-cover img,
    .evidence-image img {
        transition: none;
    }
}
