/* =========================================
   CREATIVE LABORATORY
   Main visual stylesheet
   ========================================= */


/* ---------- 1. DESIGN VARIABLES ---------- */

:root {
    --background: #101117;
    --surface: #181a23;
    --surface-light: #20232e;

    --text: #eeeef5;
    --text-muted: #a0a2b5;

    --teal: #63f0d0;
    --purple: #a78bfa;
    --pink: #f39acb;

    --border: #30323e;

    --content-width: 1120px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;
}


/* ---------- 2. BASIC RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 5px;
}

button,
input {
    font: inherit;
}

::selection {
    background: var(--teal);
    color: var(--background);
}


/* ---------- 3. SHARED ELEMENTS ---------- */

.accent {
    color: var(--teal);
}

.eyebrow {
    margin: 0 0 14px;

    color: var(--teal);

    font-family: monospace;
    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;
    line-height: 1.6;
}

.section-index {
    color: var(--text-muted);

    font-family: monospace;
    font-size: 11px;

    letter-spacing: 1px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 12px;
}

.section-heading h2 {
    margin: 0;

    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;

    letter-spacing: -1.5px;
}

.section-description {
    max-width: 600px;

    margin: 18px 0 36px;

    color: var(--text-muted);
    font-size: 15px;
}


/* ---------- 4. HEADER ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 76px;
    padding: 15px max(5%, calc((100% - var(--content-width)) / 2));

    background: rgba(16, 17, 23, 0.94);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    white-space: nowrap;

    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-symbol {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    color: var(--teal);

    border: 1px solid var(--teal);
    border-radius: 10px;

    font-size: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 12px;

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--teal);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--teal);

    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;

    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;

    background: var(--teal);
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(99, 240, 208, 0.5);
}


/* ---------- 5. HERO SECTION ---------- */

.hero {
    position: relative;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;

    gap: 50px;

    max-width: var(--content-width);
    min-height: 560px;

    margin: 0 auto;
    padding: 80px 35px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 0 0 24px;

    font-size: clamp(44px, 6vw, 68px);
    font-weight: 750;

    line-height: 1.08;
    letter-spacing: -3px;
}

.gradient-text {
    background: linear-gradient(
        110deg,
        var(--teal),
        var(--purple),
        var(--pink)
    );

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 460px;

    margin: 0 0 30px;

    color: var(--text-muted);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 44px;
    padding: 10px 18px;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    font-size: 12px;
    font-weight: 650;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--teal);
    color: #101117;
}

.button-primary:hover {
    background: #a1ffe9;
}

.button-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--purple);
}

.hero-footnote {
    margin: 32px 0 0;

    color: #74768a;

    font-family: monospace;
    font-size: 9px;

    letter-spacing: 1.2px;
}


/* ---------- 6. HERO ILLUSTRATION ---------- */

.hero-art {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 340px;

    overflow: hidden;

    border: 1px solid #353443;
    border-radius: var(--radius-large);

    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(167, 139, 250, 0.14),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #20202d,
            #13151d
        );
}

.art-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(167, 139, 250, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(167, 139, 250, 0.07) 1px,
            transparent 1px
        );

    background-size: 28px 28px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

.central-symbol {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 150px;
    height: 150px;

    border: 1px solid rgba(99, 240, 208, 0.35);
    border-radius: 50%;

    background: rgba(99, 240, 208, 0.04);

    box-shadow:
        0 0 70px rgba(99, 240, 208, 0.08),
        inset 0 0 40px rgba(167, 139, 250, 0.06);
}

.central-symbol span {
    color: var(--teal);

    font-size: 100px;
    line-height: 1;

    text-shadow: 0 0 35px rgba(99, 240, 208, 0.3);
}

.orbit {
    position: absolute;

    width: 225px;
    height: 225px;

    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 50%;
}

.orbit-one {
    transform: scaleY(0.38) rotate(35deg);
}

.orbit-two {
    transform: scaleY(0.38) rotate(-35deg);
}

.floating-label {
    position: absolute;
    z-index: 2;

    padding: 8px 11px;

    background: rgba(24, 26, 35, 0.92);

    border: 1px solid var(--border);
    border-radius: 6px;

    color: var(--text-muted);

    font-family: monospace;
    font-size: 10px;
}

.label-one {
    top: 48px;
    left: 20px;
}

.label-two {
    right: 15px;
    bottom: 80px;
}

.label-three {
    right: 30px;
    top: 35px;

    color: var(--purple);
}

.mini-dot {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 6px;

    background: var(--teal);
    border-radius: 50%;
}

.mini-symbol {
    margin-right: 5px;
    color: var(--teal);
}

.art-caption {
    position: absolute;
    bottom: 18px;
    left: 20px;

    color: #7f8194;

    font-family: monospace;
    font-size: 9px;

    letter-spacing: 1px;
}


/* ---------- 7. INTRODUCTION STRIP ---------- */

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 35px;

    padding: 22px 5%;

    background: #15161e;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.intro-strip div {
    display: flex;
    align-items: center;
    gap: 9px;

    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.strip-number {
    color: var(--teal);
}

.intro-strip > p {
    margin: 0;

    color: var(--text-muted);
    font-size: 11px;
    font-style: italic;
}


/* ---------- 8. CONTENT SECTIONS ---------- */

.content-section {
    max-width: var(--content-width);

    margin: 0 auto;
    padding: 85px 35px;
}


/* ---------- 9. PROJECT CARDS ---------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.project-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #55516e;
}

.project-visual {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 190px;

    overflow: hidden;
}

.filekit-visual {
    background:
        radial-gradient(
            circle at 50% 55%,
            rgba(99, 240, 208, 0.12),
            transparent 55%
        ),
        #171c25;
}

.vector-visual {
    background:
        radial-gradient(
            circle at 50% 55%,
            rgba(167, 139, 250, 0.18),
            transparent 55%
        ),
        #201b2a;
}

.visual-label {
    position: absolute;
    top: 17px;
    left: 18px;

    color: var(--text-muted);

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
}

.visual-corner {
    position: absolute;
    right: 18px;
    bottom: 15px;

    color: rgba(255, 255, 255, 0.3);

    font-family: monospace;
    font-size: 11px;
}

.file-symbol {
    position: relative;

    display: grid;
    place-items: center;

    width: 85px;
    height: 105px;

    border: 2px solid var(--teal);
    border-radius: 8px;

    color: var(--teal);

    font-size: 40px;
    font-weight: bold;

    box-shadow: 0 0 30px rgba(99, 240, 208, 0.1);
}

.file-symbol-lock {
    position: absolute;
    right: -12px;
    bottom: -9px;

    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    background: var(--surface);
    border: 1px solid var(--teal);
    border-radius: 50%;

    font-size: 16px;
}

.vector-symbol {
    display: grid;
    place-items: center;

    width: 115px;
    height: 115px;

    border: 1px solid var(--purple);
    border-radius: 50%;

    color: var(--purple);
    font-size: 75px;

    box-shadow: 0 0 35px rgba(167, 139, 250, 0.12);
}

.project-details {
    padding: 24px;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 10px;

    color: var(--text-muted);

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.project-status {
    padding: 4px 7px;
    border-radius: 4px;
}

.status-progress {
    background: rgba(243, 154, 203, 0.09);
    color: var(--pink);
}

.project-details h3 {
    margin: 17px 0 8px;

    font-size: 22px;
    letter-spacing: -0.5px;
}

.project-details > p {
    min-height: 75px;

    margin: 0 0 20px;

    color: var(--text-muted);
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--teal);
    font-size: 12px;
    font-weight: 650;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(5px);
}


/* ---------- 10. GALLERY ---------- */

.gallery-section {
    padding-top: 45px;
}

.gallery-placeholder {
    position: relative;

    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;

    gap: 35px;

    min-height: 280px;
    padding: 35px;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #22202f,
            #181923
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}

.gallery-decoration {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 180px;
}

.gallery-orb {
    position: absolute;

    width: 130px;
    height: 130px;

    background: linear-gradient(
        135deg,
        var(--purple),
        var(--pink)
    );

    border-radius: 50%;

    opacity: 0.8;

    filter: blur(1px);
}

.gallery-ring {
    position: absolute;

    width: 175px;
    height: 175px;

    border: 1px solid var(--teal);
    border-radius: 50%;

    transform: scaleY(0.5) rotate(-30deg);
}

.gallery-star {
    position: relative;
    z-index: 1;

    color: #fff;

    font-size: 80px;

    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.gallery-message {
    position: relative;
    z-index: 1;
}

.gallery-message h3 {
    margin: 12px 0;

    font-size: 25px;
    line-height: 1.3;
}

.gallery-message > p {
    margin: 0;

    color: var(--text-muted);
    font-size: 13px;
}

.gallery-index {
    position: absolute;
    right: 20px;
    bottom: 15px;

    color: #77798b;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
}


/* ---------- 11. FIELD NOTES ---------- */

.notes-section {
    padding-top: 45px;
}

.notes-list {
    border-top: 1px solid var(--border);
}

.note-entry {
    display: grid;
    grid-template-columns: 50px 1fr 30px;
    align-items: center;

    gap: 20px;

    padding: 25px 8px;

    border-bottom: 1px solid var(--border);

    transition: background 0.2s ease;
}

.note-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

.note-number {
    align-self: start;

    padding-top: 3px;

    color: var(--teal);

    font-family: monospace;
    font-size: 12px;
}

.note-category {
    color: var(--purple);

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
}

.note-content h3 {
    margin: 5px 0;

    font-size: 17px;
}

.note-content p {
    margin: 0;

    color: var(--text-muted);
    font-size: 12px;
}

.note-arrow {
    color: var(--text-muted);
    font-size: 20px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.note-entry:hover .note-arrow {
    color: var(--teal);
    transform: translate(3px, -3px);
}


/* ---------- 12. PLAYGROUND ---------- */

.playground-section {
    position: relative;

    display: flex;
    align-items: center;

    max-width: calc(var(--content-width) - 70px);
    min-height: 300px;

    margin: 0 auto 80px;
    padding: 45px;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 85% 40%,
            rgba(167, 139, 250, 0.15),
            transparent 45%
        ),
        #171923;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}

/* Playground content layout */
.playground-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
}

.playground-content h2 {
    margin: 0 0 18px;

    font-size: clamp(30px, 5vw, 43px);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.playground-content h2 span {
    color: var(--purple);
}

.playground-content > p:not(.eyebrow) {
    max-width: 400px;

    margin: 0 0 25px;

    color: var(--text-muted);
    font-size: 13px;
}

.playground-decoration {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.play-shape {
    position: absolute;

    font-size: 50px;
    opacity: 0.6;
}

.shape-one {
    top: 30px;
    right: 100px;

    color: var(--teal);
}

.shape-two {
    right: 70px;
    bottom: 35px;

    color: var(--purple);
    font-size: 80px;
}

.shape-three {
    top: 105px;
    right: 45px;

    color: var(--pink);
    font-size: 35px;
}

.shape-four {
    right: 200px;
    bottom: 30px;

    color: var(--teal);
    font-size: 25px;
}


/* ---------- 13. FOOTER ---------- */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 15px;

    max-width: var(--content-width);

    margin: 0 auto;
    padding: 25px 35px 35px;

    border-top: 1px solid var(--border);
}

.footer-logo {
    font-size: 14px;
    font-weight: bold;
}

.site-footer > p {
    margin: 0;

    color: var(--text-muted);
    font-size: 11px;
}

.site-footer .footer-small {
    width: 100%;

    color: #737587;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
}


/* ---------- 14. RESPONSIVE LAYOUT ---------- */

/* Medium screens */

@media (max-width: 850px) {

    .site-header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-nav {
        order: 3;

        width: 100%;
        justify-content: flex-start;

        gap: 20px;
    }

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

        gap: 40px;

        padding-top: 65px;
        padding-bottom: 60px;
    }

    .hero-art {
        min-height: 300px;
    }

    .intro-strip {
        gap: 20px;
    }

    .gallery-placeholder {
        gap: 20px;
        padding: 25px;
    }

    .playground-section {
        margin-right: 20px;
        margin-left: 20px;
    }

}


/* Small screens */

@media (max-width: 560px) {

    .site-header {
        padding: 14px 20px;
    }

    .site-logo {
        font-size: 15px;
    }

    .header-status {
        font-size: 9px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .hero {
        padding: 55px 22px;
    }

    .hero h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }

    .hero-art {
        min-height: 270px;
    }

    .floating-label {
        font-size: 8px;
    }

    .label-one {
        left: 10px;
    }

    .label-two {
        right: 8px;
    }

    .content-section {
        padding: 60px 20px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .section-index {
        font-size: 9px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-details > p {
        min-height: 0;
    }

    .gallery-placeholder {
        grid-template-columns: 1fr;

        gap: 15px;
        padding: 25px 20px 40px;
    }

    .gallery-decoration {
        min-height: 140px;
    }

    .gallery-orb {
        width: 100px;
        height: 100px;
    }

    .gallery-ring {
        width: 140px;
        height: 140px;
    }

    .gallery-star {
        font-size: 60px;
    }

    .note-entry {
        grid-template-columns: 30px 1fr 20px;
        gap: 10px;

        padding: 22px 0;
    }

    .note-content h3 {
        font-size: 15px;
    }

    .playground-section {
        min-height: 350px;

        margin: 0 15px 50px;
        padding: 30px 22px;
    }

    .playground-content h2 {
        font-size: 32px;
    }

    .shape-one {
        right: 25px;
    }

    .shape-two {
        right: 20px;
    }

    .shape-four {
        right: 100px;
    }

    .site-footer {
        padding: 25px 20px 30px;
    }

}


/* ---------- 15. REDUCED MOTION ---------- */

/* Respect visitors who prefer less animation. */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}

/* =========================================
   Our quiet laboratory companion
   ========================================= */

.hero-cat {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin-top: -40px;

    position: relative;
    z-index: 2;

    pointer-events: none;
}

.hero-cat img {
    display: block;

    width: 100%;
    max-width: 360px;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 0 18px rgba(99, 240, 208, 0.12));

    opacity: 0.95;
}


/* Smaller screens */

@media (max-width: 768px) {

    .hero-cat {
        margin-top: 10px;
    }

    .hero-cat img {
        max-width: 280px;
    }

}

/* =========================================
   Subtle laboratory animations
   ========================================= */

/* Slowly rotating laboratory symbol */

.central-symbol span {
    display: inline-block;
    animation: symbol-turn 24s linear infinite;
}

@keyframes symbol-turn {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Gently rotating orbital rings */

.orbit-one {
    animation: orbit-turn 36s linear infinite;
}

.orbit-two {
    animation: orbit-turn 48s linear infinite reverse;
}

@keyframes orbit-turn {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* A gentle floating motion for the labels */

.floating-label {
    animation: label-drift 6s ease-in-out infinite;
}

.label-two {
    animation-delay: -2s;
}

.label-three {
    animation-delay: -4s;
}

@keyframes label-drift {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}


/* Respect visitors who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {

    .central-symbol span,
    .orbit-one,
    .orbit-two,
    .floating-label {
        animation: none;
    }

}

/* =========================================
   Creative philosophy motto
   ========================================= */

.philosophy {
    width: min(100% - 40px, 1100px);
    margin: 10px auto 75px;
    text-align: center;
}

.philosophy p {
    margin: 0;

    color: var(--text-secondary, #b8b8c8);

    font-size: 0.95rem;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.philosophy-symbol {
    display: inline-block;
    margin-right: 9px;

    color: var(--accent-teal, #63f0d0);

    font-size: 1rem;
}


/* Comfortable spacing on smaller screens */

@media (max-width: 600px) {

    .philosophy {
        margin-top: 5px;
        margin-bottom: 40px;
    }

    .philosophy p {
        font-size: 0.88rem;
    }

}

/* =========================================
   Creative Laboratory visual signature
   ========================================= */

.section-signature {
    display: inline-block;

    margin-right: 10px;

    color: #63f0d0;

    font-size: 0.75em;
    vertical-align: 0.12em;
}

/* =========================================
   PLAYGROUND EXPERIMENT CARDS
   ========================================= */

/* Arrange the three cards in a responsive grid. */

.playground-experiments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    width: 100%;
    margin: 32px 0;
}

/* Individual experiment card */

.experiment-card {
    position: relative;
    min-width: 0;
    padding: 22px 18px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(99, 240, 208, 0.2);
    border-radius: 12px;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.experiment-card:hover {
    border-color: rgba(99, 240, 208, 0.6);
    background: rgba(99, 240, 208, 0.04);
    transform: translateY(-3px);
}

/* Decorative symbol */

.experiment-symbol {
    display: block;
    margin-bottom: 16px;

    color: var(--teal);
    font-size: 1.5rem;
}

/* Experiment number */

.experiment-number {
    display: block;
    margin-bottom: 10px;

    color: var(--purple);
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

/* Card heading */

.experiment-card h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* Card description */

.experiment-card p {
    margin: 0 0 20px;

    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Status label */

.experiment-status {
    display: inline-block;

    color: var(--pink);
    font-family: monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
}

/* Stack the cards on smaller screens. */

@media (max-width: 850px) {
    .playground-experiments {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .experiment-card {
        padding: 20px;
    }
}

/* Respect reduced-motion preferences. */

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

    .experiment-card:hover {
        transform: none;
    }
}

/* =========================================
   COLOUR LABORATORY
   ========================================= */

.colour-lab {
    width: 100%;
    margin: 24px 0 30px;
    padding: 22px;
    background: rgba(167, 139, 250, 0.035);
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 14px;
}

.colour-lab-heading {
    margin-bottom: 26px;
}

.colour-lab-heading h3 {
    margin: 10px 0;
    font-size: 1.5rem;
}

.colour-lab-heading h3 span {
    color: var(--purple);
}

.colour-lab-heading p {
    max-width: 600px;
    color: var(--text-muted);
    line-height: 1.7;
}

.colour-lab-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.colour-input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.colour-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.colour-inputs input[type="color"] {
    width: 48px;
    height: 44px;
    padding: 3px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
}

.colour-inputs input[type="text"] {
    width: 120px;
    padding: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: monospace;
    text-transform: uppercase;
}

.colour-inputs input:focus-visible,
.colour-lab button:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.colour-lab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.colour-lab-buttons button {
    font: inherit;
    cursor: pointer;
}

.button-secondary {
    padding: 12px 18px;
    color: var(--teal);
    background: transparent;
    border: 1px solid rgba(99, 240, 208, 0.35);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.button-secondary:hover {
    background: rgba(99, 240, 208, 0.08);
}

.colour-palette {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.palette-swatch {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.palette-swatch:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
}

.swatch-colour {
    display: block;
    width: 100%;
    height: 105px;
}

.swatch-hex {
    display: block;
    padding: 12px 6px;
    font-family: monospace;
    font-size: 0.78rem;
    text-align: center;
}

.colour-lab-message {
    min-height: 1.5em;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 650px) {
    .colour-lab {
        padding: 20px 14px;
    }

    .colour-palette {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .palette-swatch:last-child {
        grid-column: 1 / -1;
    }

    .swatch-colour {
        height: 85px;
    }

    .colour-lab-buttons {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .palette-swatch,
    .button-secondary {
        transition: none;
    }

    .palette-swatch:hover {
        transform: none;
    }
}

/* ---------- FIELD NOTE LINKS ---------- */

/* Keep the note cards looking the same while making their destinations clear. */
.note-entry {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.note-entry:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

/* Individual field note pages */
.field-note-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 70px 35px 90px;
}

.field-note-back {
    display: inline-block;
    margin-bottom: 38px;
    color: var(--teal);
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-decoration: none;
}

.field-note-back:hover,
.field-note-back:focus-visible {
    color: var(--pink);
}

.field-note-meta {
    margin: 0 0 14px;
    color: var(--purple);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.field-note-page h1 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.12;
}

.field-note-intro {
    max-width: 720px;
    margin: 0 0 42px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.8;
}

.field-note-body {
    max-width: 720px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    line-height: 1.85;
}

.field-note-body p {
    margin: 0 0 22px;
}

.field-note-signature {
    margin-top: 44px;
    color: var(--teal);
    font-size: 22px;
}

.field-note-next {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.field-note-next a {
    color: var(--teal);
    text-decoration: none;
}

.field-note-next a:hover,
.field-note-next a:focus-visible {
    color: var(--pink);
}

@media (max-width: 600px) {
    .field-note-page {
        padding: 45px 22px 65px;
    }

    .field-note-intro {
        font-size: 15px;
    }
}

.experiment-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.experiment-card-link:focus-visible {
    outline: 2px solid #63f0d0;
    outline-offset: 4px;
}