﻿/* =========================================================
CODBIO HUB — APPROVED SITE DESIGN

Preserves the approved homepage, shared component and
responsive presentation. Public frontend.
Updated: 2026-08-15.
========================================================= */

/* =========================================================
DESIGN TOKENS
Shared colour, radius, shadow and shell variables.
========================================================= */

:root {
    --ink:#102032;
    --muted:#5e6e7d;
    --paper:#f7f8f5;
    --white:#fff;
    --line:#d8dedb;
    --mint:#82e7c3;
    --mint-deep:#087d68;
    --blue:#9bbcf8;
    --lavender:#b7a8f4;
    --coral:#ff9c7b;
    --navy:#101e32;
    --radius:22px;
    --shadow:0 24px 60px rgba(20,42,54,.09);
    --shell:min(1180px,calc(100% - 40px))
}

/* =========================================================
GLOBAL FOUNDATIONS
Box sizing and document-level defaults.
========================================================= */

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth;
    overflow-x:hidden
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:Inter,Aptos,"Segoe UI",Arial,sans-serif;
    line-height:1.6;
    overflow-x:hidden
}

img {
    display:block;
    max-width:100%;
    height:auto
}

a {
    color:inherit;
    text-decoration:none
}

button {
    font:inherit
}

/* =========================================================
SHARED LAYOUT UTILITIES
Reusable shell and structural helpers.
========================================================= */

.shell {
    width:var(--shell);
    margin-inline:auto
}

/* =========================================================
ACCESSIBILITY & UTILITY HELPERS
Screen-reader, tracking and skip-link helpers.
========================================================= */

.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0)
}

.tracking-frame {
    display:none;
    visibility:hidden
}

.skip-link {
    position:fixed;
    left:16px;
    top:-100px;
    z-index:100;
    background:var(--ink);
    color:#fff;
    padding:10px 14px;
    border-radius:8px
}

.skip-link:focus {
    top:12px
}


/*
PATCH 16-08-2026
Added focus-visible styles for accessibility.
Reason: To ensure that users navigating via keyboard can see which element is focused,
improving accessibility.
*/

/* =========================================================
HOMEPAGE HERO
Primary landing composition and viewport presentation.
========================================================= */

.hero {
    min-height: calc(100svh - 150px);
    padding-block: 90px 70px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
}

/* =========================================================
SHARED TYPOGRAPHY
Eyebrows, headings and supporting copy.
========================================================= */

.eyebrow {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:11px;
    font-weight:750;
    letter-spacing:.15em;
    text-transform:uppercase;
    color:#476070
}

.eyebrow>span {
    width:30px;
    height:1px;
    background:var(--mint-deep)
}

h1,h2,h3,p {
    margin-top:0
}

h1,h2 {
    font-family:Georgia,"Times New Roman",serif;
    letter-spacing:-.045em;
    line-height:1.02
}

h1 {
    font-size:clamp(48px,6.5vw,86px);
    margin:25px 0 28px;
    max-width:760px
}

h1 em,h2 em {
    font-weight:400;
    color:var(--mint-deep)
}

.hero-lede {
    max-width:630px;
    font-size:18px;
    color:var(--muted)
}

/* =========================================================
BUTTONS & HERO ACTIONS
Primary and secondary call-to-action presentation.
========================================================= */

.button-row {
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:34px
}

.button {
    min-height:52px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:22px;
    padding:0 22px;
    border:1px solid var(--ink);
    border-radius:3px;
    font-size:13px;
    font-weight:750;
    transition:.2s
}

.button:hover {
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(20,42,54,.13)
}

.primary {
    background:var(--ink);
    color:#fff
}

.secondary {
    background:#fff
}

/* =========================================================
HERO FACTS
Supporting metadata beneath the primary hero copy.
========================================================= */

.hero-facts {
    display:flex;
    gap:0;
    margin:48px 0 0
}

.hero-facts div {
    padding:0 28px;
    border-left:1px solid var(--line)
}

.hero-facts div:first-child {
    padding-left:0;
    border-left:0
}

.hero-facts dt {
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:#81909b
}

.hero-facts dd {
    margin:4px 0 0;
    font-size:13px;
    font-weight:700
}

/* =========================================================
HERO SYSTEM VISUAL
Orbit, core and system-node presentation.
========================================================= */

.hero-system {
    height:520px;
    position:relative;
    display:grid;
    place-items:center;
    background-image:radial-gradient(#bdc8c4 1px,transparent 1px);
    background-size:24px 24px
}

.orbit {
    position:absolute;
    border:1px solid #d1d9d5;
    border-radius:50%
}

.orbit.one {
    width:410px;
    height:410px
}

.orbit.two {
    width:270px;
    height:270px;
    border-style:dashed
}

.system-core {
    z-index:2;
    width:170px;
    height:170px;
    border-radius:50%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:var(--navy);
    color:#fff;
    box-shadow:0 25px 50px rgba(16,30,50,.2)
}

.system-core,
.system-node {
    text-decoration: none;
}

.system-core:focus-visible,
.system-node:focus-visible {
    outline: 3px solid #5d4fc6;
    outline-offset: 5px;
}

.brand-mark.large {
    width:54px;
    height:54px;
    border:0;
    margin-bottom:12px
}

.system-core small {
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:#a9bdc7
}

.system-node {
    position:absolute;
    width:116px;
    height:116px;
    border:1px solid #cbd5d0;
    background:rgba(255,255,255,.92);
    border-radius:50%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    box-shadow:0 15px 30px rgba(20,42,54,.08)
}

.system-node b {
    font-size:9px;
    color:var(--mint-deep);
    letter-spacing:.15em
}

.system-node span {
    font-family:Georgia,serif;
    font-size:14px;
    line-height:1.2
}

.node-a {
    top:34px;
    right:35px
}

.node-b {
    bottom:28px;
    right:60px
}

.node-c {
    bottom:45px;
    left:28px
}

/* =========================================================
SIGNAL STRIP
Scientific discipline strip beneath the hero.
========================================================= */

.signal-strip {
    background:var(--navy);
    color:#dbe8e8
}

.signal-strip .shell {
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    overflow:hidden
}

.signal-strip span {
    white-space:nowrap;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.14em
}

.signal-strip i {
    width:4px;
    height:4px;
    border-radius:50%;
    background:var(--mint)
}

/* =========================================================
SHARED CONTENT SECTIONS
Common section spacing and full-viewport section behaviour.
========================================================= */

.section {
    padding-block:110px
}

/*
PATCH 16-08-2026
Added focus-visible styles for accessibility.
Reason: Correct view focus for keyboard navigation, improving accessibility.
*/

#ecosystem {
    min-height: 100svh;
}

/* =========================================================
PATCH 2026-08-16 | FULL-VIEWPORT SECTION HEIGHTS
Applied dynamic minimum viewport heights to Ecosystem and Flagship sections.
Ensures each major section fills the screen cleanly across different display sizes.
========================================================= */

#platforms {
    min-height:100svh
}
/* =========================================================
PATCH 2026-08-16 | FLAGSHIP VIEWPORT ALIGNMENT
Vertically centers the Zomniverse flagship composition on desktop.
Prevents full-viewport height from leaving excess empty space below the content.
========================================================= */

@media (min-width:981px) {
    #platforms {
        display:grid;
        align-items:center
    }
}

/* =========================================================
SECTION HEADINGS
Reusable heading and split-heading layouts.
========================================================= */

.section-heading {
    max-width:780px;
    margin-bottom:55px
}

.section-heading h2 {
    font-size:clamp(42px,5vw,68px);
    margin:20px 0
}

.section-heading>p:last-child {
    max-width:560px;
    color:var(--muted)
}

.section-heading.split {
    max-width:none;
    display:grid;
    grid-template-columns:1fr 420px;
    gap:80px;
    align-items:end
}

.section-heading.split>p {
    margin-bottom:25px
}

/* =========================================================
ECOSYSTEM MAP
Umbrella platform and ecosystem branch presentation.
========================================================= */

.ecosystem-map {
    border:1px solid var(--line);
    background:#fff;
    box-shadow:var(--shadow)
}

.map-root,.map-branches article {
    display:flex;
    gap:25px;
    padding:32px
}

.map-root {
    border-bottom:1px solid var(--line);
    background:linear-gradient(100deg,#f9fffc,#f5f3ff)
}

.map-index {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    background:var(--ink);
    color:#fff;
    border-radius:50%;
    font-size:10px
}

.map-index.mint {
    background:var(--mint)
}

.map-index.blue {
    background:var(--blue)
}

.map-index.coral {
    background:var(--coral)
}

.ecosystem-map p,.card-eyebrow {
    margin:0 0 4px;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:var(--muted);
    font-weight:750
}

.ecosystem-map h3 {
    margin:0;
    font-family:Georgia,serif;
    font-size:28px
}

.map-branches {
    display:grid;
    grid-template-columns:repeat(3,1fr)
}

.map-branches article+article {
    border-left:1px solid var(--line)
}

.map-branches ul {
    list-style:none;
    padding:18px 0 0;
    margin:18px 0 0;
    border-top:1px solid var(--line)
}

.map-branches li {
    padding:7px 0;
    font-size:13px
}

.map-branches small {
    display:block;
    color:var(--muted)
}

/* =========================================================
FLAGSHIP PLATFORM
Zomniverse flagship section and platform preview.
========================================================= */

.flagship-wrap {
    background:var(--navy);
    color:#fff
}

.flagship {
    display:grid;
    grid-template-columns:.82fr 1.18fr;
    gap:70px;
    align-items:center
}

.light {
    color:#a9bdc7
}

.light>span {
    background:var(--mint)
}

.flagship h2 {
    font-size:clamp(56px,7vw,88px);
    margin:20px 0
}

.flagship-copy>p:not(.eyebrow) {
    color:#b7c5ce
}

.feature-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    list-style:none;
    padding:0;
    margin:34px 0
}

.feature-list li {
    border-top:1px solid #34455b;
    padding:12px 0;
    font-size:13px
}

.feature-list span {
    font-size:9px;
    color:var(--mint);
    margin-right:10px
}

.mint-button {
    background:var(--mint);
    color:#0e372f;
    border-color:var(--mint)
}

.product-window {
    margin:0;
    border:1px solid #3a4c62;
    border-radius:12px;
    overflow:hidden;
    background:#07111d;
    transform:rotate(1deg);
    box-shadow:0 40px 80px rgba(0,0,0,.28)
}

.window-bar {
    height:38px;
    display:flex;
    align-items:center;
    gap:7px;
    padding:0 12px;
    background:#17263a
}

.window-bar span {
    width:7px;
    height:7px;
    border-radius:50%;
    background:#6c7d90
}

.window-bar span:first-child {
    background:var(--coral)
}

.window-bar span:nth-child(2) {
    background:#f6cf6d
}

.window-bar span:nth-child(3) {
    background:var(--mint)
}

.window-bar small {
    margin-left:auto;
    color:#8192a4;
    font-size:9px
}

.product-window img {
    aspect-ratio:16/9;
    object-fit:cover
}

.product-window figcaption {
    padding:10px 14px;
    color:#7f91a4;
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.1em
}

/* =========================================================
PROJECTS & PRODUCT CARDS
Project registry grid, cards, tags and status presentation.
========================================================= */

.project-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px
}

.project-card {
    min-height:390px;
    padding:26px;
    background:#fff;
    border:1px solid var(--line);
    display:flex;
    flex-direction:column;
    transition:.25s
}

.project-card:hover {
    transform:translateY(-6px);
    box-shadow:var(--shadow);
    border-color:#b2c2ba
}

.card-top {
    display:flex;
    justify-content:space-between
}

.card-number {
    font-family:Georgia,serif;
    font-size:24px;
    color:#90a097
}

.status {
    height:25px;
    padding:4px 9px;
    border:1px solid #b9d8cd;
    border-radius:20px;
    color:#17725e;
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.07em
}

.card-eyebrow {
    margin-top:42px;
    color:var(--mint-deep)
}

.project-card h3 {
    font-family:Georgia,serif;
    font-size:30px;
    margin:4px 0 14px
}

.project-card>p:not(.card-eyebrow) {
    font-size:14px;
    color:var(--muted)
}

.tag-list {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    list-style:none;
    padding:0;
    margin:auto 0 25px
}

.tag-list li {
    padding:4px 8px;
    border:1px solid var(--line);
    border-radius:20px;
    font-size:9px;
    color:#5f7180
}

.card-link {
    border-top:1px solid var(--line);
    padding-top:17px;
    font-size:12px;
    font-weight:750;
    display:flex;
    justify-content:space-between
}

.tinted {
    background:#eef3f1
}

.tinted .project-grid {
    grid-template-columns:1fr
}

.tinted .project-card {
    min-height:270px
}

.compact-grid .project-card {
    min-height:340px
}

/* =========================================================
ABOUT BAND
Homepage about and identity callout.
========================================================= */

.about-band {
    padding:65px;
    background:linear-gradient(120deg,#102032,#163b41);
    color:#fff;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px
}

.about-band h2 {
    font-size:clamp(42px,5vw,66px);
    margin:20px 0 0
}

.about-band h2 em {
    color:var(--mint)
}

.about-band>div:last-child {
    align-self:end;
    color:#c2d0d5
}

.light-link {
    color:#fff;
    font-size:12px;
    font-weight:700
}

/* =========================================================
GLOBAL FOOTER
Shared footer layout, links and lower information band.
========================================================= */

.site-footer {
    background:#0c1726;
    color:#b6c3cb;
    padding-top:70px
}

.footer-grid {
    display:grid;
    grid-template-columns:2fr repeat(3,1fr);
    gap:50px;
    padding-bottom:60px
}

.footer-brand {
    color:#fff
}

.footer-grid>div>p {
    max-width:310px;
    margin-top:22px;
    font-size:13px
}

.footer-grid nav {
    display:flex;
    flex-direction:column;
    gap:9px
}

.footer-grid nav h2 {
    font:700 10px Inter,sans-serif;
    text-transform:uppercase;
    letter-spacing:.13em;
    color:#fff;
    margin-bottom:12px
}

.footer-grid nav a {
    font-size:12px
}

.footer-grid nav a:hover {
    color:var(--mint)
}

.footer-bottom {
    border-top:1px solid #283747;
    min-height:70px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.08em
}

/* =========================================================
REVEAL & STATE UTILITIES
Reveal animation, registry error and global focus states.
========================================================= */

.reveal {
    opacity:0;
    transform:translateY(18px);
    transition:opacity .7s,transform .7s
}

.reveal.visible {
    opacity:1;
    transform:none
}

.registry-error {
    grid-column:1/-1;
    padding:20px;
    border:1px solid var(--line)
}

:focus-visible {
    outline:3px solid #5d4fc6;
    outline-offset:4px
}


/* =========================================================
RESPONSIVE — TABLET / COMPACT DESKTOP
Existing max-width:980px adaptations.
========================================================= */

@media(max-width:980px) {
    .hero {
        grid-template-columns:1fr;
        min-height:auto
    }

    .hero-system {
        max-width:620px;
        width:100%;
        margin:auto
    }

    .flagship {
        grid-template-columns:1fr
    }

    .project-grid {
        grid-template-columns:1fr 1fr
    }

    .section-heading.split {
        grid-template-columns:1fr;
        gap:10px
    }

    .map-branches {
        grid-template-columns:1fr
    }

    .map-branches article+article {
        border-left:0;
        border-top:1px solid var(--line)
    }

    .about-band {
        grid-template-columns:1fr
    }

    .footer-grid {
        grid-template-columns:2fr 1fr 1fr
    }

    .footer-grid nav:last-child {
        grid-column:2/4
    }


}


/* =========================================================
RESPONSIVE — MOBILE
Existing max-width:700px adaptations.
========================================================= */

@media(max-width:700px) {
    :root {
        --shell:min(100% - 28px,1180px)
    }


    .hero {
        padding-block:60px 40px;
        gap:35px
    }

    .hero-system {
        height:380px;
        transform:scale(.86)
    }

    .orbit.one {
        width:330px;
        height:330px
    }

    .orbit.two {
        width:220px;
        height:220px
    }

    .system-core {
        width:145px;
        height:145px
    }

    .system-node {
        width:95px;
        height:95px
    }

    .hero-facts {
        flex-wrap:wrap;
        gap:18px
    }

    .hero-facts div {
        padding-left:16px
    }

    .signal-strip .shell {
        justify-content:flex-start
    }

    .section {
        padding-block:75px
    }

    .section-heading {
        margin-bottom:38px
    }

    .map-root,.map-branches article {
        padding:22px
    }

    .project-grid {
        grid-template-columns:1fr
    }

    .about-band {
        padding:32px 24px;
        gap:30px
    }

    .footer-grid {
        grid-template-columns:1fr 1fr
    }

    .footer-grid>div {
        grid-column:1/-1
    }

    .footer-grid nav:last-child {
        grid-column:auto
    }

    .footer-bottom {
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:5px
    }

    .flagship {
        gap:45px
    }

    .feature-list {
        grid-template-columns:1fr
    }

    .button {
        width:100%
    }


}


/* =========================================================
ACCESSIBILITY — REDUCED MOTION
Existing reduced-motion overrides.
========================================================= */

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }

    *,*:before,*:after {
        animation-duration:.01ms!important;
        transition-duration:.01ms!important
    }

    .reveal {
        opacity:1;
        transform:none
    }


}