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

:root {
    --ink: #1E2232;
    --paper: #DBDEEB;
    --purple: #783192;
    --teal: #59BCC8;
    --mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
}

body {
    font-family: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(120, 49, 146, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 49, 146, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--ink);
    min-height: 100vh;
}

.gradient-bar {
    height: 5px;
    background: linear-gradient(90deg, #783192, #59BCC8, #783192);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- header ---------- */
header {
    border-bottom: 1px solid rgba(30, 34, 50, 0.12);
}

header .wrap {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.wordmark .mark {
    width: 30px;
    height: 29px;
}

.wordmark b { font-weight: 800; }

.header-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.locale {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
}

.prompt {
    font-family: var(--mono);
    font-size: 0.85rem;
    opacity: 0.5;
}

header a.email {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

header a.email:hover { opacity: 0.7; }

a.github {
    color: var(--ink);
    display: flex;
}

a.github svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

a.github:hover { opacity: 0.7; }

/* ---------- shared ---------- */
.eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }

.btn span {
    transition: transform 0.2s ease;
}

.btn:hover span { transform: translateX(4px); }

::selection {
    background: var(--purple);
    color: #fff;
}

a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

.contact a:focus-visible,
footer a:focus-visible {
    outline-color: var(--teal);
}

.btn-dark {
    background: var(--ink);
    color: var(--paper);
}

.btn-teal {
    background: var(--teal);
    color: var(--ink);
}

/* ---------- hero ---------- */
.hero .wrap {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero-copy { flex: 1.2; }

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    max-width: 34rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.hero-art {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-art svg {
    width: 100%;
    max-width: 480px;
}

/* Satellite fades in, then floats continuously */
.satellite {
    opacity: 0;
    animation:
        fade-in 0.8s ease-out 0.5s forwards,
        float 6s ease-in-out 1.5s infinite;
}

@keyframes fade-in {
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(0.3deg); }
}

/* Antenna sway */
.antennas {
    transform-origin: 68.462px 70.033px;
    animation: antenna-sway 4s ease-in-out infinite;
}

@keyframes antenna-sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(0.3deg); }
    75% { transform: rotate(-0.3deg); }
}

/* ---------- legacy modernisation ---------- */
.legacy {
    border-top: 1px solid rgba(30, 34, 50, 0.12);
}

.legacy .wrap {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.legacy h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    max-width: 46rem;
    margin-bottom: 1.25rem;
}

.legacy h2 em {
    font-style: normal;
    color: var(--purple);
}

.legacy .lede {
    max-width: 40rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

.legacy .cards {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 2.5rem;
}

.legacy .card h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.legacy .card h3 span { color: var(--purple); }

/* ---------- capabilities ---------- */
.capabilities {
    border-top: 1px solid rgba(30, 34, 50, 0.12);
}

.capabilities .wrap {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.cap-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.cap-head .eyebrow { margin-bottom: 0; }

.cap-head p {
    font-size: 0.9rem;
    opacity: 0.65;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(30, 34, 50, 0.12);
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(120, 49, 146, 0.45);
    box-shadow: 0 8px 24px rgba(30, 34, 50, 0.08);
}

/* Scroll reveal: .reveal is added by JS, so no-JS visitors see everything */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .reveal:not(.in) {
        opacity: 0;
        transform: translateY(16px);
    }
}


.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

.card-highlight {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.card-highlight h3 {
    background: linear-gradient(90deg, #B07CC5, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- industries marquee ---------- */
.industries {
    border-top: 1px solid rgba(30, 34, 50, 0.12);
    padding-top: 4rem;
    padding-bottom: 4.5rem;
    overflow: hidden;
}

.industries .eyebrow { margin-bottom: 2.5rem; }

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem; /* keeps the -50% loop seamless */
}

.marquee-group span {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.marquee-group span:not(.dot) {
    cursor: default;
    transition: color 0.2s ease;
}

.marquee-group span:not(.dot):hover {
    background: linear-gradient(90deg, var(--purple), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.marquee-group .dot { color: var(--purple); }

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ---------- how we work ---------- */
.how {
    border-top: 1px solid rgba(30, 34, 50, 0.12);
}

.how .wrap {
    display: flex;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.how .eyebrow {
    flex-shrink: 0;
    width: 10rem;
    margin-bottom: 0;
}

.how blockquote {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.45;
    max-width: 38rem;
}

.how p {
    margin-top: 1rem;
    max-width: 36rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* ---------- contact ---------- */
.contact {
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(219, 222, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(219, 222, 235, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--paper);
}

.contact .wrap {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.contact .eyebrow { color: var(--teal); }

.contact h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.contact p {
    max-width: 26rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* ---------- footer ---------- */
footer {
    background: var(--ink);
    color: var(--paper);
    border-top: 1px solid rgba(219, 222, 235, 0.15);
}

footer .wrap {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .locale { opacity: 0.5; text-transform: none; letter-spacing: 0.05em; }

footer a.github { color: var(--paper); }

/* ---------- service pages ---------- */
.page-hero .wrap {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.page-hero p {
    max-width: 40rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.crumbs {
    font-family: var(--mono);
    font-size: 0.75rem;
    opacity: 0.55;
    margin-bottom: 2.5rem;
}

.crumbs a { color: var(--ink); }

.signs {
    list-style: none;
    max-width: 40rem;
}

.signs li {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.45;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(30, 34, 50, 0.12);
}

.signs li:first-child { padding-top: 0; }

ol.steps { list-style: none; }

.step-no {
    display: block;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--purple);
    margin-bottom: 1rem;
}

.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    max-width: 40rem;
}

.tags li {
    font-family: var(--mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(30, 34, 50, 0.25);
    border-radius: 999px;
}

.faq .wrap > div:last-child { flex: 1; max-width: 40rem; }

.faq details {
    border-bottom: 1px solid rgba(30, 34, 50, 0.12);
    padding: 1rem 0;
}

.faq details:first-child { padding-top: 0; }

.faq summary {
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    font-family: var(--mono);
    color: var(--purple);
}

.faq details[open] summary::after { content: '\2212'; }

.faq summary:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

.more-link {
    display: inline-block;
    margin-left: 1.25rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--ink);
}

/* ---------- cookie banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    max-width: 20rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(30, 34, 50, 0.35);
    display: none;
    z-index: 10;
}

.cookie-banner.show { display: block; }

.cookie-banner p {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.cookie-banner .actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-banner button {
    font-family: var(--mono);
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
}

.cookie-banner button:hover { opacity: 0.85; }

.cookie-yes {
    background: var(--teal);
    color: var(--ink);
}

.cookie-no {
    background: transparent;
    color: var(--paper);
    border-color: rgba(219, 222, 235, 0.35);
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
    /* one clean row: wordmark + email, no icons */
    header .wrap {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    header a.github,
    .wordmark .mark { display: none; }

    /* sputnik becomes a faint backdrop behind the hero copy */
    .hero .wrap {
        display: block;
        position: relative;
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .hero-art {
        position: absolute;
        top: 0.5rem;
        right: -3rem;
        width: 300px;
        opacity: 0.15;
        pointer-events: none;
    }

    .hero-copy { position: relative; }

    .cap-head { flex-direction: column; gap: 0.5rem; }

    .legacy .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .legacy .cards { grid-template-columns: 1fr; }

    .how .wrap {
        flex-direction: column;
        gap: 1.25rem;
    }

    .prompt { display: none; }
    header a.email { font-size: 0.75rem; }
}
