:root {
    /* Palette (carried from SilicoCure brand, tuned for WCAG 2.1 AA contrast) */
    --dark-blue: #0a3d62;
    --medium-blue: #1e5f88;
    --light-blue: #79a8d1;
    --very-light-blue: #e8f1f8;
    --white: #ffffff;
    --bg-base: #ffffff;
    --bg-surface: #f6f9fc;
    --text-primary: #1a2430;
    --text-secondary: #3f4b5b;
    --text-muted: #566374;
    --border-glass: rgba(10, 61, 98, 0.14);
    --border-strong: rgba(10, 61, 98, 0.24);
    --accent-glow: rgba(30, 95, 136, 0.32);
    --focus-ring: #1e5f88;
    --focus-ring-light: #ffffff;

    --font-display: "Outfit", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;

    --shadow-sm: 0 4px 14px rgba(10, 61, 98, 0.06);
    --shadow-md: 0 10px 30px rgba(10, 61, 98, 0.1);
    --shadow-lg: 0 20px 50px rgba(10, 61, 98, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 92px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Accessible focus indicators (WCAG 2.4.7 / 2.4.11) */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 4px;
}

footer :focus-visible,
.opensource-card :focus-visible {
    outline-color: var(--focus-ring-light);
}

/* Visually hidden utility & Skip link (WCAG 2.4.1) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -120px;
    left: 16px;
    z-index: 4000;
    background: var(--dark-blue);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.94rem;
    box-shadow: var(--shadow-lg);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    color: var(--white);
    outline: 3px solid var(--light-blue);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.18;
    color: var(--dark-blue);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--medium-blue);
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

a:hover {
    color: var(--dark-blue);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

section {
    padding: 96px 0;
    position: relative;
}

.gradient-text {
    background: linear-gradient(120deg, var(--dark-blue), var(--medium-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--dark-blue);
    background: var(--very-light-blue);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.section-head {
    max-width: 780px;
    margin-bottom: 52px;
}

[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.about-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 18px;
}

.mt-30 {
    margin-top: 30px;
}

.feature-card {
    padding: 24px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}
.feature-title {
    font-size: 1.05rem;
}
.feature-copy {
    font-size: 0.92rem;
}

.coop-email-btn {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    width: 100%;
}
.coop-email-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    color: #ffffff;
}

.founder-note {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.email-contact-top {
    margin-top: 6px;
}

.copy-hint {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.copy-hint i {
    color: var(--medium-blue);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-summary {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
}

.footer-email-link {
    color: #c2ddf3;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-email-link:hover {
    color: var(--white);
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 1.06rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    min-height: 46px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.96rem;
    cursor: pointer;
    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(120deg, var(--dark-blue), var(--medium-blue));
    color: var(--white);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px var(--accent-glow);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--dark-blue);
}

.btn-outline:hover {
    border-color: var(--medium-blue);
    background: var(--very-light-blue);
    transform: translateY(-2px);
    color: var(--dark-blue);
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover,
    .btn-outline:hover,
    .card:hover,
    .step:hover,
    .tool:hover,
    .story:hover,
    .founder:hover .founder-photo,
    .story-cta:hover i,
    .back-to-top:hover {
        transform: none;
    }
}

/* Background visuals */
#interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.16;
    pointer-events: none;
}

.glow-1 {
    top: -12%;
    left: -8%;
    width: 46vw;
    height: 46vw;
    background: var(--medium-blue);
}

.glow-2 {
    bottom: -18%;
    right: -10%;
    width: 52vw;
    height: 52vw;
    background: var(--light-blue);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.48rem;
    font-weight: 800;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--medium-blue);
}
.logo-accent {
    color: var(--medium-blue);
}
.logo small {
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--dark-blue);
    background: var(--very-light-blue);
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.menu a {
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.94rem;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--medium-blue);
    transition: width 0.25s ease;
}

.menu a:hover {
    color: var(--dark-blue);
}
.menu a:hover::after {
    width: 100%;
}

.menu .btn {
    padding: 10px 18px;
    min-height: 42px;
}
.menu a.btn-primary,
.menu a.btn-primary:hover {
    color: var(--white);
}
.menu a.btn-primary::after {
    display: none;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.35rem;
    color: var(--dark-blue);
    background: none;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 118px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.9vw, 3.85rem);
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    margin-bottom: 26px;
    max-width: 590px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.hero-trust {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--very-light-blue);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--dark-blue);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 30px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 590px;
}
.hero-trust i {
    color: var(--dark-blue);
    margin-top: 3px;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.hero-trust strong {
    color: var(--dark-blue);
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat .num {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.15;
}

.hero-stat .label {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Hero visual - animated 3D protein */
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    gap: 12px;
}

.protein-stage {
    position: relative;
    width: min(440px, 86vw);
    aspect-ratio: 5 / 6;
    border-radius: 24px;
    background: radial-gradient(
        circle at 35% 25%,
        rgba(121, 168, 209, 0.22),
        rgba(10, 61, 98, 0.04)
    );
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-protein {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    #hero-protein {
        pointer-events: auto;
        cursor: grab;
    }
    #hero-protein:active {
        cursor: grabbing;
    }
    .protein-hint {
        display: block;
    }
}

.protein-hint {
    display: none;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.protein-caption #pdb-id,
.protein-caption #pdb-label {
    transition: opacity 0.4s ease;
}
#hero-protein canvas {
    display: block;
    background: transparent !important;
}

.protein-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--medium-blue);
}
.protein-fallback.hidden {
    display: none;
}

.protein-topnote {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 3;
    pointer-events: none;
}

.protein-caption {
    position: absolute;
    bottom: 14px;
    left: 12px;
    right: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 8px 10px;
    z-index: 3;
    pointer-events: none;
}

.protein-credit {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Accessible WCAG 2.2.2 Pause/Play & structure step controls */
.protein-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.protein-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--white);
    color: var(--dark-blue);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.protein-ctrl-btn:hover {
    background: var(--very-light-blue);
    border-color: var(--medium-blue);
}

/* Generic surface card */
.surface {
    background: var(--bg-surface);
}

/* Cards grid */
.grid {
    display: grid;
    gap: 26px;
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    margin-bottom: 18px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.card p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 0;
}

/* Research value and the agreed scope of a pilot. */
.research-fit-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 3px solid var(--medium-blue);
}
.research-fit-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--medium-blue);
}
.research-fit-card h3 {
    margin-bottom: 0;
}
.evaluation-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 40px;
    margin-top: 32px;
    padding: 32px;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    background: var(--white);
}
.evaluation-intro h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin-bottom: 12px;
}
.evaluation-intro p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 20px;
}
.evaluation-cta {
    white-space: normal;
    text-align: center;
}
.evaluation-criteria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    margin: 0;
}
.evaluation-criteria dt {
    color: var(--dark-blue);
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 6px;
}
.evaluation-criteria dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}
@media (max-width: 960px) {
    .evaluation-panel {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
@media (max-width: 640px) {
    .evaluation-panel {
        padding: 24px;
    }
    .evaluation-criteria {
        grid-template-columns: 1fr;
    }
    .evaluation-cta {
        width: 100%;
    }
}

/* About facts */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.fact-card {
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.fact-card .fact-head {
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    color: var(--white);
    padding: 22px 26px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.fact-card .fact-head h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.fact-card .fact-head p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-glass);
}

.fact-row:last-child {
    border-bottom: none;
}
.fact-row .k {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.fact-row .v {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    text-align: right;
}

/* Structured 4-Phase Engagement Protocol */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step .step-num {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.step p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 0;
}

.mandate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-top: 34px;
}

.mandate-box {
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.mandate-box.primary {
    border-left: 4px solid var(--dark-blue);
}

.mandate-box.counterparty {
    border-left: 4px solid var(--medium-blue);
}

.mandate-box h3 {
    font-size: 1.18rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mandate-box h3 i {
    color: var(--medium-blue);
}

.mandate-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mandate-box li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.94rem;
    color: var(--text-secondary);
}

.mandate-box li i {
    color: var(--dark-blue);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 0.86rem;
}

/* Tools */
.tool {
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.tool:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--light-blue);
}

.tool-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--medium-blue), var(--light-blue));
}

.tool-body h4 {
    font-size: 1.16rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--dark-blue);
    background: var(--very-light-blue);
    padding: 3px 9px;
    border-radius: 20px;
}

.tool-body p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    margin-bottom: 12px;
}

.tool-feats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-feats span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 4px 10px;
    border-radius: 8px;
}

/* Platform phases */
.phase {
    margin-bottom: 52px;
}
.phase:last-of-type {
    margin-bottom: 0;
}
.phase-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.phase-num {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px var(--accent-glow);
}
.phase-head-text {
    flex: 1;
}
.phase-head-text i {
    color: var(--medium-blue);
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: block;
}
.phase-head-text h3 {
    font-size: 1.42rem;
    margin-bottom: 6px;
}
.phase-head-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 760px;
}
.phase-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 22px;
    padding-left: 74px;
}

/* Open source / cooperation */
.opensource-card {
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    border-radius: 22px;
    padding: 48px;
    color: var(--white);
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.opensource-card::after {
    content: "\f126";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-size: 14rem;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.opensource-card .eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.opensource-card h3 {
    color: var(--white);
    font-size: 1.85rem;
    margin-bottom: 14px;
}
.opensource-card p {
    color: rgba(255, 255, 255, 0.92);
}

.os-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 26px;
}

.os-meta span {
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--white);
}

.opensource-card .btn-primary {
    background: var(--white);
    color: var(--dark-blue);
    box-shadow: none;
}

.opensource-card .btn-primary:hover {
    background: var(--very-light-blue);
    color: var(--dark-blue);
}

.coop-side {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    z-index: 2;
}

.coop-side h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.coop-side p {
    font-size: 0.92rem;
    margin-bottom: 18px;
}

/* Founder */
.founder {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    padding: 46px;
    box-shadow: var(--shadow-md);
}

.founder-avatar {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 4rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.founder-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.4s ease;
}
.founder:hover .founder-photo {
    transform: scale(1.03);
}

.founder-body h3 {
    font-size: 1.55rem;
    margin-bottom: 4px;
}
.founder-role {
    color: var(--medium-blue);
    font-weight: 600;
    font-family: var(--font-display);
    margin-bottom: 16px;
}
.founder-body p {
    color: var(--text-secondary);
}

.founder-socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.founder-socials a,
.founder-socials button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--very-light-blue);
    color: var(--dark-blue);
    border: none;
    font: inherit;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}
.founder-socials a:hover,
.founder-socials button:hover {
    background: var(--medium-blue);
    color: var(--white);
}

/* Contact & Executive Briefing */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: start;
}

.contact-box {
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.contact-box h3 {
    font-size: 1.28rem;
    margin-bottom: 18px;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-line i {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--very-light-blue);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-line .k {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-line .v {
    font-weight: 600;
    color: var(--text-primary);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.briefing-intro {
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.briefing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.briefing-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.93rem;
    color: var(--text-secondary);
}

.briefing-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--very-light-blue);
    color: var(--dark-blue);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.briefing-list strong {
    color: var(--dark-blue);
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.86);
    padding: 68px 0 28px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 38px;
    margin-bottom: 42px;
}

.legal-link {
    background: none;
    border: none;
    padding: 4px 0;
    font: inherit;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.84);
    cursor: pointer;
    text-align: left;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}
.legal-link:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo span {
    color: #8ec0e8;
}

.email-inline-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--medium-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    display: inline;
    text-align: left;
    word-break: break-word;
}
.email-inline-btn:hover {
    color: var(--dark-blue);
}
.email-inline-btn.v {
    font-weight: 600;
    color: var(--dark-blue);
    text-decoration: none;
}
.email-inline-btn.v:hover {
    color: var(--medium-blue);
    text-decoration: underline;
}
.email-inline-btn.footer-email-link {
    color: #c2ddf3;
}
.email-inline-btn.footer-email-link:hover {
    color: var(--white);
}

.footer-heading {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.96rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    display: inline-block;
    padding: 2px 0;
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-legal {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.84);
}
.footer-legal strong {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.84);
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
    border: none;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-3px);
}

/* Copy-to-clipboard toast */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark-blue);
    color: var(--white);
    padding: 13px 22px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.92rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    z-index: 2000;
    max-width: calc(100vw - 40px);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast i {
    color: var(--light-blue);
}

/* Native <dialog> legal modals (WCAG 2.1 AA + modern-web-guidance) */
dialog.legal-modal {
    width: min(840px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    background: var(--white);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

dialog.legal-modal:modal {
    overscroll-behavior: contain;
}

dialog.legal-modal::backdrop {
    background: rgba(10, 61, 98, 0.58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.legal-modal-content {
    padding: 42px;
    position: relative;
}

.legal-modal-content h2 {
    font-size: 1.55rem;
    margin-bottom: 6px;
    padding-right: 48px;
}
.legal-modal-content h3 {
    font-size: 1.05rem;
    color: var(--dark-blue);
    margin: 22px 0 8px;
}
.legal-modal-content h4 {
    font-size: 0.95rem;
    margin: 14px 0 6px;
    color: var(--text-primary);
}
.legal-modal-content p,
.legal-modal-content ul {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 12px;
}
.legal-modal-content ul {
    padding-left: 20px;
}
.legal-modal-content li {
    margin-bottom: 6px;
}
.legal-modal-content a {
    color: var(--medium-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}
.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 18px;
}
.legal-note {
    background: var(--very-light-blue);
    border-left: 3px solid var(--medium-blue);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-top: 14px;
    margin-bottom: 16px;
}
.legal-dl {
    margin-bottom: 14px;
}
.legal-dl > div {
    display: flex;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.92rem;
}
.legal-dl dt {
    flex: 0 0 225px;
    color: var(--text-muted);
    font-weight: 500;
}
.legal-dl dd {
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}
.legal-close-form {
    position: absolute;
    top: 16px;
    right: 18px;
}
.legal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--white);
    color: var(--dark-blue);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.legal-close:hover {
    background: var(--very-light-blue);
}

.legal-footer-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
}

.dialog-toast {
    position: sticky;
    bottom: 14px;
    margin-top: 16px;
    background: var(--dark-blue);
    color: var(--white);
    padding: 11px 16px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    gap: 10px;
}
.dialog-toast.show {
    display: flex;
}
.dialog-toast i {
    color: #8ec0e8;
}

/* Disclaimer strip */
.disclaimer {
    background: var(--very-light-blue);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--medium-blue);
    border-radius: 14px;
    padding: 20px 26px;
    margin-top: 40px;
    font-size: 0.92rem;
    color: var(--text-primary);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.disclaimer i {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Stories */
.stories-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.story {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 26px;
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-left: 3px solid var(--light-blue);
    border-radius: 14px;
    padding: 34px;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-left-color 0.3s ease;
}
.story:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--medium-blue);
}
.story-figure {
    margin: 8px 0 18px;
}
.story-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
    margin-bottom: 6px;
}
.story-img-credit {
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--text-muted);
}
.story-num {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px var(--accent-glow);
}
.story h3 {
    font-size: 1.28rem;
    margin-bottom: 6px;
}
.story-sub {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--medium-blue);
    margin-bottom: 14px;
}
.story-sub::before {
    content: "// ";
    opacity: 0.65;
}
.story p {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 16px;
}
.story-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.story-tools::before {
    content: "STACK";
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-right: 4px;
}
.story-tools span {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--dark-blue);
    background: var(--very-light-blue);
    border: 1px solid var(--border-glass);
    padding: 4px 10px;
    border-radius: 6px;
}
.story-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.2px;
    color: var(--dark-blue);
}
.story-cta i {
    transition: transform 0.25s ease;
}
.story-cta:hover i {
    transform: translateX(4px);
}

/* Noscript compliance strip */
.noscript-legal {
    background: var(--very-light-blue);
    border-top: 2px solid var(--dark-blue);
    padding: 24px 0;
    font-size: 0.88rem;
    color: var(--text-primary);
    position: relative;
    z-index: 3;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
    .hero-grid {
        gap: 40px;
    }
    .menu {
        gap: 18px;
    }
}

@media (max-width: 980px) {
    .hero {
        padding-top: 108px;
        padding-bottom: 60px;
        text-align: center;
    }
    .hero-grid,
    .about-grid,
    .opensource-card,
    .founder,
    .contact-grid,
    .mandate-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        max-width: 660px;
        margin: 0 auto;
    }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-trust {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
    .hero-btns,
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: 0;
    }
    .grid-3,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .opensource-card::after {
        display: none;
    }
    .founder {
        text-align: center;
        justify-items: center;
    }
    .founder-socials {
        justify-content: center;
    }
    .section-head {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 960px) {
    .mobile-toggle {
        display: inline-flex;
    }
    .menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 18px 24px 26px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-160%);
        visibility: hidden;
        transition:
            transform 0.3s ease,
            visibility 0.3s ease;
        border-bottom: 1px solid var(--border-glass);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .menu.active {
        transform: translateY(0);
        visibility: visible;
    }
    .menu li {
        margin: 0;
    }
    .menu a:not(.btn) {
        display: block;
        padding: 12px 6px;
    }
    .menu a.btn-primary {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 640px) {
    section {
        padding: 64px 0;
    }
    .container {
        padding: 0 18px;
    }
    .grid-3,
    .grid-2,
    .steps {
        grid-template-columns: 1fr;
    }
    .phase-tools {
        padding-left: 0;
        grid-template-columns: 1fr;
    }
    .phase-head {
        gap: 14px;
    }
    .phase-num {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }
    .tool {
        flex-direction: column;
        gap: 16px;
    }
    .opensource-card {
        padding: 30px 22px;
    }
    .founder {
        padding: 32px 22px;
    }
    .contact-box {
        padding: 26px 20px;
    }
    .story {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 26px 20px;
    }
    .story-num {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-btns {
        width: 100%;
    }
    .hero-btns .btn {
        flex: 1 1 auto;
    }
    dialog.legal-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0;
    }
    .legal-modal-content {
        padding: 60px 20px 36px;
    }
    .legal-dl > div {
        flex-direction: column;
        gap: 2px;
    }
    .legal-dl dt {
        flex-basis: auto;
    }
}

@media (max-width: 380px) {
    .hero-stats {
        gap: 16px;
    }
    .hero-stat .num {
        font-size: 1.55rem;
    }
    .eyebrow {
        font-size: 0.74rem;
        letter-spacing: 1.4px;
    }
}

/* Page review: progressive enhancement, readable workflows and surface-aware focus. */
[hidden] {
    display: none !important;
}
a:not(.btn):not(.logo):not(.story-cta) {
    text-underline-offset: 3px;
}
.copy-fallback-text {
    width: 100%;
    min-height: 240px;
    padding: 14px;
    font: inherit;
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}
.copy-fallback-text:focus-visible {
    outline-color: var(--focus-ring);
}
#copy-fallback {
    width: min(680px, calc(100vw - 32px));
    padding: 28px;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    margin: auto;
}
#copy-fallback::backdrop {
    background: rgba(10, 61, 98, 0.55);
}
#copy-fallback h2 {
    margin-bottom: 16px;
}
#copy-fallback form {
    margin-top: 16px;
}
.protein-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.protein-status {
    max-width: 440px;
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}
.protein-ctrl-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.protein-caption {
    pointer-events: auto;
}
.protein-source {
    text-decoration: underline;
}
.opensource-note {
    padding: 28px 32px;
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    background: var(--bg-surface);
}
.opensource-note h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.opensource-note p {
    max-width: 850px;
}
.opensource-note a {
    text-decoration: underline;
}
.opensource-note .contribution {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}
#opensource {
    padding: 40px 0;
}
.method-note {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--medium-blue);
    background: var(--very-light-blue);
    border-radius: 8px;
}
.method-note p:last-child {
    margin-bottom: 0;
}
.workflow-steps {
    padding-left: 24px;
    margin: 18px 0;
}
.workflow-steps li {
    margin: 10px 0;
}
.story figure {
    margin-top: 20px;
}
.diagram-link {
    display: inline-block;
    margin: 8px 0;
    text-decoration: underline;
    font-weight: 600;
}
.story-figure details {
    margin-top: 12px;
}
.story-figure summary {
    cursor: pointer;
    color: var(--medium-blue);
    padding: 8px 0;
}
.story-figure summary:focus-visible {
    outline: 3px solid var(--focus-ring);
}
.story .story-img {
    width: 100%;
    height: auto;
}
.legal-section {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    background: var(--bg-surface);
}
.legal-section .legal-modal-content {
    padding: 12px 0;
}
.legal-section a {
    text-decoration: underline;
}
@media (max-width: 980px) {
    .hero {
        min-height: 0;
    }
    .hero-grid {
        gap: 30px;
    }
    .hero-trust {
        margin-top: 12px;
    }
    .protein-stage {
        width: min(360px, 86vw);
        aspect-ratio: 1;
    }
}
@media (max-width: 960px) {
    html:not(.nav-ready) header {
        position: static;
    }
    html:not(.nav-ready) .navbar {
        flex-direction: column;
        gap: 14px;
    }
    html:not(.nav-ready) .mobile-toggle {
        display: none;
    }
    html:not(.nav-ready) .menu {
        position: static;
        transform: none;
        visibility: visible;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        box-shadow: none;
        max-height: none;
        justify-content: center;
    }
    html:not(.nav-ready) .hero {
        padding-top: 40px;
    }
}
@media (max-width: 640px) {
    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }
    .hero-lead {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .hero-btns {
        margin-bottom: 18px;
    }
    .hero-trust {
        font-size: 0.88rem;
    }
    .hero-stat .num {
        font-size: 1.5rem;
    }
    .story-figure .story-img {
        display: none;
    }
    .opensource-note {
        padding: 24px 20px;
    }
    .workflow-steps {
        padding-left: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
@media print {
    header,
    .ambient-glow,
    .protein-controls,
    .back-to-top,
    .toast,
    .contact-actions {
        display: none !important;
    }
    section {
        padding: 20px 0;
    }
    .hero {
        min-height: 0;
        padding-top: 20px;
    }
}
