/* ───────────────────────────────────────
   N+A Labs — Natural Artificial Labs
   ─────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

body {
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --pink: #ff2d6f;
    --purple: #2d0a3e;
    --purple-light: #4a1a6b;
    --lavender-wash: #f5f2f8;
    --text-dark: #1a0a24;
    --border-subtle: #e0d6e8;
    --gutter: 2rem;
    --content-max: 1200px;

    font-family: "DM Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--purple);
    margin: 0;
    background-color: var(--cream);
}

/* ── Kaleidoscope: 4-quadrant mirrored background ── */

.kaleidoscope {
    position: fixed;
    background: var(--cream);
    overflow: hidden;
}

#kaleidoscope-1 {
    top: 0;
    bottom: 50dvh;
    left: 0;
    right: 50%;
}

#kaleidoscope-2 {
    top: 0;
    bottom: 50dvh;
    left: 50%;
    right: 0;
}

#kaleidoscope-3 {
    top: 50dvh;
    bottom: 0;
    left: 0;
    right: 50%;
}

#kaleidoscope-4 {
    top: 50dvh;
    bottom: 0;
    left: 50%;
    right: 0;
}

/* Base texture layer (slower rotation) */
.kaleidoscope-inner {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('images/base-texture.jpg');
    background-position: center;
    background-repeat: repeat;
    background-size: contain;
    transform: rotate(30deg);
    opacity: 0.35;
}

#kaleidoscope-inner-2 {
    transform: scaleX(-1) rotate(30deg);
}

#kaleidoscope-inner-3 {
    transform: scaleY(-1) rotate(30deg);
}

#kaleidoscope-inner-4 {
    transform: scaleX(-1) scaleY(-1) rotate(30deg);
}

/* Materials overlay layer (faster rotation) */
.kaleidoscope-inner-materials {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('images/materials-overlay.png');
    background-position: center;
    background-repeat: repeat;
    background-size: contain;
    transform: rotate(30deg);
    will-change: transform;
    opacity: 0.7;
}

#kaleidoscope-inner-materials-2 {
    transform: scaleX(-1) rotate(30deg);
}

#kaleidoscope-inner-materials-3 {
    transform: scaleY(-1) rotate(30deg);
}

#kaleidoscope-inner-materials-4 {
    transform: scaleX(-1) scaleY(-1) rotate(30deg);
}

/* ── Typography ── */

h1 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 2.2rem;
    letter-spacing: 1px;
    color: var(--pink);
    text-transform: lowercase;
    margin-bottom: 0.5em;
}

h2 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--pink);
    text-transform: lowercase;
}

a {
    color: var(--pink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
}

a:hover {
    color: var(--purple-light);
}

.quote {
    padding-left: 30px;
    padding-right: 30px;
    font-style: italic;
    border-left: 3px solid var(--pink);
    color: var(--purple-light);
}

/* ── Editorial Typography ── */

.section-label {
    font-family: "DM Mono", monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.section-year {
    font-family: "DM Mono", monospace;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--purple-light);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 0.75rem 0 1.75rem;
}

.text-large {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--purple);
}

.text-body {
    color: var(--text-dark);
    line-height: 1.6;
}

.caption {
    font-family: "DM Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--purple-light);
    border-left: 2px solid var(--pink);
    padding-left: 0.75rem;
    margin-top: 0.75rem;
}

.footnote {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-light);
    opacity: 0.5;
    margin-top: 0.5rem;
}

h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: lowercase;
    color: var(--purple);
    margin-bottom: 0.25em;
}

/* ── Grid System ── */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gutter);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-4 {
    grid-column: span 4;
}

.grid-structured {
    display: grid;
    grid-template-columns: 4fr 6fr 2fr;
    gap: var(--gutter);
}

/* ── Component Styles ── */

.img-placeholder {
    background: var(--border-subtle);
    border-radius: 2px;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    object-fit: cover;
}

.img-placeholder.portrait {
    aspect-ratio: 3 / 4;
}

.img-placeholder.square {
    aspect-ratio: 1 / 1;
}

.img-placeholder.wide {
    aspect-ratio: 16 / 7;
}

.project-index-item {
    display: grid;
    grid-template-columns: 4fr 6fr 2fr;
    gap: var(--gutter);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.project-index-item:last-child {
    border-bottom: none;
}

.person-card {
    text-align: left;
}

.person-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--purple);
    margin-top: 1rem;
    margin-bottom: 0.15rem;
}

.person-role {
    font-family: "DM Mono", monospace;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.person-bio {
    font-family: "DM Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--purple-light);
    line-height: 1.6;
}

.feature-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Navigation ── */

#navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    width: 100%;
    padding: 20px 50px;
    background-color: var(--cream);
    z-index: 102;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nav-brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--pink);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

#nav-link-wrapper {
    margin: 0;
}

#navigation a {
    display: inline-block;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--purple);
    font-size: 1rem;
    font-family: "DM Mono", monospace;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
}

#navigation a:hover {
    color: var(--pink);
}

.nav-here {
    text-decoration: underline !important;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px !important;
    color: var(--pink) !important;
}

/* ── Hero section ── */

#hero {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.hero-text {
    position: absolute;
    color: var(--pink);
    mix-blend-mode: multiply;
    font-family: "Space Grotesk", sans-serif;
    font-size: 9rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: lowercase;
}

#hero-text-1 {
    top: 80px;
    left: 80px;
}

#hero-text-2 {
    bottom: 100px;
    right: 80px;
}

#hero-tagline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "DM Mono", monospace;
    font-size: 1.2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--purple);
    opacity: 0.7;
}

#scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--purple);
    opacity: 0.6;
    z-index: 101;
}

.scroll-arrow {
    margin-top: 8px;
    font-size: 1.2rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── Content container ── */

.container {
    position: relative;
    width: 100%;
    margin: 0;
    background-color: var(--lavender-wash);
}

.section {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--content-max);
    margin: auto;
    padding: 72px 60px;
}

/* ── Fixed border frame ── */

.border {
    position: fixed;
    background-color: var(--cream);
    z-index: 100;
}

#border-left {
    top: 0;
    bottom: 0;
    left: 0;
    width: 40px;
}

#border-right {
    top: 0;
    bottom: 0;
    right: 0;
    width: 40px;
}

#border-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
}

/* ── Buttons ── */

.centered {
    text-align: center;
}

.button {
    display: inline-block;
    margin: auto;
    margin-top: 30px;
    padding: 16px 32px;
    background-color: var(--pink);
    color: var(--cream-light);
    font-family: "DM Mono", monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: -6px -6px 0px var(--purple);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    color: var(--cream-light);
    transform: translate(4px, -4px);
    box-shadow: -12px -12px 0px var(--purple);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-span-3 {
        grid-column: span 2;
    }

    .col-span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .hero-text {
        font-size: 4rem;
    }

    #hero-text-1 {
        top: 100px;
        left: 30px;
    }

    #hero-text-2 {
        bottom: 120px;
        right: 30px;
    }

    .section {
        padding: 56px 24px;
    }

    .grid-4,
    .grid-3,
    .grid-structured {
        grid-template-columns: 1fr;
    }

    .col-span-2,
    .col-span-3,
    .col-span-4 {
        grid-column: span 1;
    }

    .project-index-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .text-large {
        font-size: 1.25rem;
    }

    #navigation {
        padding: 15px 20px;
    }

    #navigation a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.85rem;
    }
}
