
/* Prevent text selection across the public interface. */
html, body, body * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
:root {
    --bg: #0a0d12;
    --bg-soft: #111720;
    --paper: #f3f5f6;
    --paper-2: #e7ebed;
    --ink: #11151a;
    --muted: #68717b;
    --line: rgba(17, 21, 26, .12);
    --line-light: rgba(255,255,255,.14);
    --accent: #c61c2b;
    --accent-2: #ef3b43;
    --white: #fff;
    --radius: 24px;
    --shell: 1240px;
    --shadow: 0 24px 60px rgba(7, 10, 14, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--white); }

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    z-index: 1000;
    background: var(--white);
    color: var(--ink);
    padding: .65rem .9rem;
    border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.site-header {
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 35%, rgba(198, 28, 43, .21), transparent 24rem),
        radial-gradient(circle at 18% 74%, rgba(78, 94, 112, .24), transparent 28rem),
        var(--bg);
    color: var(--white);
}
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.nav {
    position: relative;
    z-index: 10;
    height: 96px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { width: 180px; }
.brand img { width: 100%; filter: brightness(0) invert(1); opacity: .98; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a, .language-switch a {
    font-size: .78rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    transition: color .2s ease;
}
.nav-links a:hover, .language-switch a:hover, .language-switch a.active { color: var(--white); }
.language-switch { display: flex; gap: 7px; padding-left: 8px; }
.language-switch a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    font-size: .66rem;
}
.language-switch a.active { background: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; }

.hero {
    position: relative;
    z-index: 4;
    min-height: calc(100svh - 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: center;
    gap: 70px;
    padding-block: 72px 100px;
}
.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 780px;
}
.hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -110px;
    right: -190px;
    bottom: -110px;
    left: -45vw;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(10,13,18,1) 0%,
        rgba(10,13,18,.98) 52%,
        rgba(10,13,18,.90) 68%,
        rgba(10,13,18,.58) 82%,
        rgba(10,13,18,.18) 94%,
        transparent 100%);
}
.eyebrow {
    margin: 0 0 20px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: rgba(255,255,255,.56);
}
.eyebrow.dark { color: var(--accent); }
.hero h1, .section h2 {
    margin: 0;
    font-weight: 640;
    letter-spacing: -.048em;
    line-height: .98;
}
.hero h1 { max-width: 900px; font-size: clamp(3.2rem, 7.5vw, 7.6rem); }
.hero-lead {
    max-width: 720px;
    margin: 32px 0 0;
    color: rgba(255,255,255,.68);
    font-size: clamp(1.05rem, 1.65vw, 1.35rem);
    line-height: 1.6;
}
.type-line {
    min-height: 78px;
    display: flex;
    align-items: center;
    margin-top: 28px;
    color: rgba(255,255,255,.82);
    white-space: nowrap;
    font: 500 2.44rem/1.22 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.type-prefix { color: var(--accent-2); margin-right: .65rem; }
.typed-cursor {
    width: 8px;
    height: 1.1em;
    margin-left: 4px;
    background: var(--accent-2);
    animation: blink .8s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: var(--white); }
.button.primary:hover { background: var(--accent-2); }
.button.ghost { border: 1px solid rgba(255,255,255,.2); color: var(--white); }
.button.ghost:hover { border-color: rgba(255,255,255,.52); background: rgba(255,255,255,.05); }

.hero-visual {
    position: relative;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-height: 560px;
    max-height: 760px;
    overflow: visible;
    isolation: isolate;
}
.hero-visual::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 4% -8% 2% -12%;
    pointer-events: none;
    background: radial-gradient(circle at 58% 48%, rgba(198,28,43,.22), rgba(198,28,43,.07) 32%, transparent 67%);
    filter: blur(8px);
}
.particles {
    position: absolute;
    z-index: 1;
    inset: -4% -12% -4% -18%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 12%, #000 35%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 12%, #000 35%, #000 100%);
}
.particles canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.section { padding: 118px 0; }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-head h2, .about h2 { font-size: clamp(2.5rem, 5vw, 5.1rem); max-width: 850px; }
.section-head > p { margin: 0 0 4px; color: var(--muted); max-width: 520px; }
.capabilities { background: var(--paper); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.capability-card {
    min-height: 360px;
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.58);
    box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.capability-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(198,28,43,.26); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 86px; color: #8b939b; font: 600 .7rem/1 ui-monospace, monospace; }
.card-top strong { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: white; letter-spacing: -.04em; }
.capability-card h3 { margin: 0 0 15px; font-size: 1.45rem; letter-spacing: -.035em; line-height: 1.12; }
.capability-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-trace { position: absolute; inset: auto -8% -34% 30%; aspect-ratio: 1.8; border: 1px solid rgba(198,28,43,.12); border-radius: 50%; transform: rotate(-14deg); }
.card-trace::before, .card-trace::after { content: ""; position: absolute; inset: 16%; border: inherit; border-radius: inherit; }
.card-trace::after { inset: 33%; }
.about { background: #eceff0; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.about-mark { position: relative; margin: 0; border-radius: var(--radius); background: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.team-lead-card { aspect-ratio: 4 / 5; }
.team-lead-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.team-lead-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 76px 26px 24px;
    background: linear-gradient(to bottom, transparent, rgba(6,8,11,.94) 72%);
    color: rgba(255,255,255,.94);
    font-size: .84rem;
    font-weight: 650;
    letter-spacing: .025em;
    line-height: 1.35;
}
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; max-width: 720px; }
.about-note { margin-top: 28px !important; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--ink) !important; font-weight: 600; }

.contact-strip { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255,255,255,.07); }
.contact-inner { min-height: 210px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.contact-inner .eyebrow { margin-bottom: 10px; color: rgba(255,255,255,.46); }
.contact-inner p:last-child { margin: 0; color: rgba(255,255,255,.66); }
.contact-email { color: rgba(255,255,255,.84); font-size: clamp(.82rem, 1.05vw, .96rem); font-weight: 600; letter-spacing: .012em; }
.protected-email { display: inline-flex; align-items: center; gap: .32em; white-space: nowrap; user-select: text; }
.protected-email img { display: inline-block; width: .92em; height: .92em; object-fit: contain; user-select: none; pointer-events: none; }
.protected-email .email-dot { margin-inline: .05em -.15em; }

.footer { background: #06080b; color: rgba(255,255,255,.54); border-top: 1px solid rgba(255,255,255,.07); }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .77rem; letter-spacing: .04em; }
.footer-email { color: rgba(255,255,255,.6); font-size: .68rem; }
.protected-email.compact { gap: .24em; }
.cookie-settings { padding: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.26); background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.cookie-settings:hover { color: #fff; border-color: rgba(255,255,255,.7); }

.cookie-banner { position: fixed; z-index: 1000; left: 50%; bottom: 22px; width: min(calc(100% - 32px), 900px); transform: translateX(-50%); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 22px 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(8,11,15,.96); color: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.38); backdrop-filter: blur(18px); }
.cookie-banner[hidden] { display: none !important; }
.cookie-copy { display: grid; gap: 5px; }
.cookie-copy strong { font-size: .98rem; line-height: 1.35; }
.cookie-copy span { color: rgba(255,255,255,.6); font-size: .81rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-button { min-height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: transparent; color: #fff; font: 700 .7rem/1 system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.cookie-button:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
.cookie-button.primary { border-color: var(--accent); background: var(--accent); }
.cookie-button.primary:hover { background: var(--accent-2); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
    .shell { width: min(calc(100% - 36px), var(--shell)); }
    .nav { grid-template-columns: 1fr auto auto; height: 82px; }
    .brand { width: 155px; }
    .nav-links {
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        background: rgba(8,11,15,.97);
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 0 0 18px 18px;
        backdrop-filter: blur(18px);
    }
    .nav.open .nav-links { display: flex; }
    .nav-links a { padding: 15px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-toggle { display: grid; width: 42px; height: 42px; padding: 0; place-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: transparent; }
    .nav-toggle span { width: 16px; height: 1px; background: white; transition: transform .2s ease; }
    .nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .nav.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .hero { grid-template-columns: 1fr; min-height: calc(100svh - 82px); gap: 10px; padding: 72px 0 110px; }
    .hero-copy { position: relative; z-index: 2; }
    .hero-copy::before {
        top: -80px;
        right: -32vw;
        bottom: -90px;
        left: -10vw;
        background: linear-gradient(90deg, rgba(10,13,18,.98) 0%, rgba(10,13,18,.94) 50%, rgba(10,13,18,.68) 72%, rgba(10,13,18,.18) 92%, transparent 100%);
    }
    .hero-visual {
        position: absolute;
        z-index: 0;
        width: 72vw;
        min-width: 600px;
        min-height: 0;
        right: -28vw;
        top: -82px;
        bottom: 2%;
        opacity: .72;
    }
    .particles { inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 100%); }
    .section-head { grid-template-columns: 1fr; gap: 26px; }
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid {
        grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
        gap: 38px;
        align-items: start;
    }
    .team-lead-card {
        width: 100%;
        max-width: 260px;
        aspect-ratio: auto;
        align-self: start;
    }
    .team-lead-card img {
        width: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: 50% 24%;
    }
    .team-lead-caption {
        position: static;
        padding: 13px 15px 14px;
        background: #0a0d12;
        font-size: .72rem;
        line-height: 1.4;
    }
}

@media (max-width: 640px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .site-header { min-height: 100svh; }
    .nav { grid-template-columns: 1fr auto auto; gap: 10px; }
    .brand { width: 128px; }
    .language-switch { gap: 4px; padding: 0; }
    .language-switch a { width: 29px; height: 29px; font-size: .58rem; }
    .nav-toggle { width: 36px; height: 36px; }
    .hero { padding-top: 55px; }
    .hero h1 { font-size: clamp(3rem, 16vw, 5.6rem); }
    .hero-lead { margin-top: 24px; font-size: 1rem; }
    .type-line { min-height: 58px; white-space: normal; font-size: clamp(1.55rem, 7vw, 2rem); margin-top: 22px; }
    .hero-actions { margin-top: 30px; }
    .button { width: 100%; }
    .hero-copy::before {
        top: -55px;
        right: -38vw;
        bottom: -70px;
        left: -8vw;
        background: linear-gradient(90deg, rgba(10,13,18,.99) 0%, rgba(10,13,18,.93) 56%, rgba(10,13,18,.55) 80%, transparent 100%);
    }
    .hero-visual {
        width: 112vw;
        min-width: 0;
        min-height: 0;
        right: -64vw;
        top: -82px;
        bottom: 0;
        opacity: .62;
    }
    .particles { inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%); }
    .section { padding: 82px 0; }
    .section-head h2, .about h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
    .capability-grid { grid-template-columns: 1fr; }
    .capability-card { min-height: 330px; }
    .card-top { margin-bottom: 72px; }
    .about-grid {
        grid-template-columns: minmax(105px, 34vw) minmax(0, 1fr);
        gap: 18px;
        align-items: start;
    }
    .team-lead-card {
        width: 100%;
        max-width: 145px;
        aspect-ratio: auto;
        margin-top: 5px;
    }
    .team-lead-card img {
        width: 100%;
        aspect-ratio: 4 / 5;
        object-position: 50% 22%;
    }
    .team-lead-caption {
        position: static;
        padding: 10px 9px 11px;
        background: #0a0d12;
        font-size: .58rem;
        line-height: 1.35;
        letter-spacing: .015em;
    }
    .about-copy .eyebrow { margin-bottom: 10px; }
    .about h2 {
        font-size: clamp(1.75rem, 8.4vw, 2.65rem);
        line-height: 1.02;
    }
    .about-copy > p:not(.eyebrow) {
        font-size: .9rem;
        line-height: 1.55;
    }
    .about-note {
        margin-top: 18px !important;
        padding-left: 12px;
    }
    .contact-inner { min-height: 230px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 22px; }
    .contact-email { font-size: .98rem; }
    .footer-inner { min-height: 150px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; }
    .cookie-banner { bottom: 12px; width: min(calc(100% - 20px), 900px); grid-template-columns: 1fr; gap: 18px; padding: 18px; }
    .cookie-actions { justify-content: stretch; }
    .cookie-button { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Error documents */
.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0;
    background: var(--bg);
    color: var(--white);
}
.error-page main { padding: 32px; text-align: center; }
.error-code { margin: 0; color: var(--accent); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; }
.error-page p { color: rgba(255,255,255,.62); }
.error-page a { display: inline-block; margin-top: 12px; border-bottom: 1px solid rgba(255,255,255,.35); }

