/* CREATED Creatures — Organized stylesheet
   Original design declarations preserved.
   Obsolete spore cursor CSS removed. */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');
/* ==========================================
   01 — THEME COLORS
   ========================================== */
:root {
    --void:#09100d;
    --card:#111c16;
    --bio:#8ce4a2;
    --solar:#dfbb7c;
    --bone:#eee9d9;
    --muted:#9ca99f;
    --line:#314138
}

* {
    box-sizing:border-box
}

/* ==========================================
   02 — BASE ELEMENTS
   ========================================== */
html {
    scroll-behavior:smooth
}

body {
    background:var(--void);
    color:var(--bone);
    font-family:"DM Sans",sans-serif;
    margin:0;
    overflow-x:hidden
}

button,select {
    font:inherit
}

button {
    cursor:pointer
}

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

a:hover {
    color:var(--bio)
}

.container-fluid {
    padding-left:clamp(24px,4vw,70px);
    padding-right:clamp(24px,4vw,70px)
}

/* ==========================================
   03 — HEADER AND NAVIGATION
   ========================================== */
.site-header {
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:20;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px clamp(24px,4vw,70px);
    background:linear-gradient(#09100dbb,transparent)
}

.brand {
    font:25px "Playfair Display",serif
}

.brand span,.accent {
    color:var(--bio)
}

nav {
    display:flex;
    gap:25px
}

nav a,.eyebrow,.hero-label,.engine-caption,.outline-btn,.engine-tab,.slate-arrows button,.sound-panel,.modal-tabs {
    font:11px "DM Mono",monospace;
    letter-spacing:.13em
}

/* ==========================================
   04 — HERO AND COMPARISON
   ========================================== */
.hero {
    height:100svh;
    min-height:680px;
    position:relative;
    overflow:hidden
}

.compare,.hero-image,#hero-canvas,.hero-veil {
    position:absolute;
    inset:0;
    width:100%;
    height:100%
}

.compare {
    touch-action:none;
    cursor:ew-resize
}

.hero-image {
    object-fit:cover
}

#hero-canvas {
    clip-path:inset(0 0 0 50%)
}

.hero-veil {
    pointer-events:none;
    background:linear-gradient(transparent 30%,#09100d11 48%,#09100ded 100%)
}

.split-line {
    position:absolute;
    top:0;
    bottom:0;
    left:50%;
    width:1px;
    background:var(--bio);
    box-shadow:0 0 15px var(--bio)
}

#split-handle {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    border:1px solid var(--bio);
    background:#09100ddc;
    color:var(--bio);
    width:48px;
    height:48px;
    border-radius:50%;
    font-size:24px
}

.hero-label {
    position:absolute;
    top:115px;
    color:var(--solar);
    font-size:10px
}

.hero-label.left {
    left:4%
}

.hero-label.right {
    right:4%;
    color:var(--bio)
}

.hero-copy {
    position:absolute;
    bottom:35px;
    left:0;
    right:0;
    pointer-events:none
}

.hero-copy>* {
    pointer-events:auto
}

.hero h1,h2,h3 {
    font-family:"Playfair Display",serif;
    font-weight:400
}

.hero h1 {
    font-size:clamp(58px,9vw,150px);
    line-height:1.02;
    max-width:1250px;
    margin:18px 0 30px
}

.hero h1 em,h2 em {
    color:var(--solar);
    font-weight:400
}

.hero-bottom {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:30px
}

.hero-bottom>p {
    max-width:450px;
    color:#d1d7d1;
    font-size:14px;
    line-height:1.8
}

.sound-panel {
    display:flex;
    align-items:center;
    gap:14px
}

.sound-panel button,.sound-panel select {
    background:#101c16bd;
    border:1px solid var(--line);
    color:var(--bone);
    padding:10px
}

.sound-panel select {
    max-width:150px
}

/* ==========================================
   05 — MANIFESTO
   ========================================== */
.manifesto {
    padding-top:120px;
    padding-bottom:120px;
    border-bottom:1px solid var(--line)
}

.manifesto h2,.section-heading h2,.footer h2 {
    font-size:clamp(43px,6.3vw,95px);
    line-height:1.12
}

.manifesto .muted {
    max-width:700px
}

.muted {
    color:var(--muted);
    line-height:1.8
}

/* ==========================================
   06 — SHARED SECTION HEADINGS
   ========================================== */
.section-heading {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:35px;
    margin-bottom:50px
}

.section-heading>.muted {
    max-width:350px
}

/* ==========================================
   07 — BIOME ENGINE
   ========================================== */
.engine-section {
    padding-top:120px;
    padding-bottom:120px
}

.engine-tabs {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:0
}

.engine-tab {
    border:1px solid var(--line);
    background:transparent;
    color:var(--muted);
    padding:17px 22px
}

.engine-tab.active {
    border-color:var(--bio);
    color:var(--bio);
    background:#183024
}

.engine-workspace {
    border:1px solid var(--line);
    background:var(--card)
}

#engine-canvas {
    display:block;
    width:100%;
    height:520px;
    background:#07100c
}

.engine-caption {
    padding:15px;
    color:var(--bio);
    border-top:1px solid var(--line)
}

.engine-controls {
    border-left:1px solid var(--line);
    padding:40px 30px
}

.engine-controls h3 {
    font-size:32px
}

.control-group {
    margin:35px 0
}

.control-group label {
    display:flex;
    justify-content:space-between;
    font:11px "DM Mono",monospace;
    color:var(--muted);
    margin-bottom:12px
}

input[type=range] {
    width:100%;
    accent-color:var(--bio)
}

.outline-btn {
    background:none;
    color:var(--bio);
    border:1px solid var(--line);
    padding:15px;
    width:100%;
    margin:15px 0
}

/* ==========================================
   08 — PRODUCTION SLATE
   ========================================== */
.slate-section {
    padding:110px 0
}

.slate-track {
    display:flex;
    gap:25px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:0 clamp(24px,4vw,70px) 30px;
    scrollbar-width:thin
}

.slate-card {
    position:relative;
    flex:0 0 min(400px,78vw);
    aspect-ratio:4/5;
    scroll-snap-align:start;
    border:1px solid var(--line);
    padding:0;
    background:#000;
    color:white;
    text-align:left;
    overflow:hidden
}

.slate-card img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s
}

.slate-card:hover img {
    transform:scale(1.05)
}

.slate-card .card-info {
    position:absolute;
    inset:auto 0 0;
    padding:30px;
    background:linear-gradient(transparent,#09100df7)
}

.slate-card h3 {
    font-size:40px
}

.slate-arrows {
    display:flex;
    gap:10px
}

.slate-arrows button {
    background:none;
    color:var(--bone);
    border:1px solid var(--line);
    border-radius:50%;
    height:45px;
    width:45px
}

/* ==========================================
   09 — FOOTER
   ========================================== */
.footer {
    padding-top:100px;
    padding-bottom:55px;
    border-top:1px solid var(--line)
}

.footer-link {
    font:clamp(26px,5vw,70px) "Playfair Display",serif;
    overflow-wrap:anywhere
}

.copyright {
    margin-top:120px
}

/* ==========================================
   10 — PROJECT MODAL
   ========================================== */
.modal-overlay:not([hidden]) {
    position:fixed;
    inset:0;
    background:#020503e9;
    z-index:50;
    display:grid;
    place-items:center;
    padding:20px
}

.modal-panel {
    position:relative;
    display:grid;
    grid-template-columns:1.2fr 1fr;
    max-width:1050px;
    width:100%;
    max-height:90vh;
    overflow:auto;
    background:var(--card);
    border:1px solid var(--line)
}

.modal-panel>img {
    width:100%;
    height:100%;
    min-height:500px;
    object-fit:cover
}

.modal-content {
    padding:55px 35px
}

.modal-content h2 {
    font-size:55px
}

.modal-content p {
    line-height:1.8
}

.modal-close {
    position:absolute;
    right:15px;
    top:15px;
    background:#07100ce8;
    color:white;
    border:1px solid var(--line);
    font-size:26px;
    width:42px;
    height:42px
}

.modal-tabs {
    display:flex;
    gap:12px;
    border-bottom:1px solid var(--line);
    margin:35px 0 20px
}

.modal-tabs button {
    background:none;
    border:0;
    color:var(--muted);
    padding:10px 0
}

.modal-tabs button.active {
    color:var(--bio);
    border-bottom:1px solid var(--bio)
}

#modal-extra {
    color:var(--muted);
    line-height:1.9
}

/* ==========================================
   11 — MOBILE RESPONSIVE STYLES
   ========================================== */
@media(max-width:767px) {
    .site-header {
        padding:20px
    }

    .brand {
        font-size:18px
    }

    nav {
        gap:12px
    }

    nav a {
        font-size:11px
    }

    .hero {
        min-height:690px
    }

    .hero h1 {
        font-size:60px
    }

    .hero-bottom,.section-heading {
        display:block
    }

    .hero-bottom>p {
        font-size:13px
    }

    .sound-panel {
        margin-top:18px
    }

    .hero-label {
        font-size:8px;
        max-width:40%
    }

    .engine-controls {
        border-left:0;
        border-top:1px solid var(--line)
    }

    #engine-canvas {
        height:340px
    }

    .modal-panel {
        grid-template-columns:1fr
    }

    .modal-panel>img {
        min-height:250px;
        height:260px
    }

    .modal-content {
        padding:28px
    }

    .modal-content h2 {
        font-size:38px
    }

    .slate-arrows {
        margin-top:25px
    }

}
