/* es-infra.net — site styles.
   Tokens and components follow emi-solutions.net (assets/css/main.css in that repository),
   reduced to what this one-screen page needs. Keep the two in step when the EMI design changes. */

:root {
    --ink: #05070b;
    --line: rgba(150, 180, 255, .13);
    --line-2: rgba(150, 180, 255, .24);
    --text: #edf2f9;
    --text-2: #a9b5c8;
    --text-3: #7a889e;
    --cyan: #4fcdf3;
    --grad: linear-gradient(90deg, #3fbde1, #8b12fb);
    --acc: 79, 205, 243;

    --sans: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --max: 1280px;
    --gut: clamp(20px, 4vw, 48px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--ink); }

/* one screen: the hero takes whatever the footer leaves */
body {
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
main { flex: 1; display: flex; }

h1, p { margin: 0; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
::selection { background: rgba(79, 205, 243, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 100;
    padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ───────── shared type ───────── */
.eyebrow {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 22px;
    font: 500 .74rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--acc));
}
.sig { flex: none; width: 26px; height: 6px; background: var(--grad); }

h1 { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.lead { color: #c3cddc; font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; text-wrap: pretty; }
.lead a { text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.lead a:hover { border-color: var(--text); }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    background: var(--text); color: #06080c;
    font-weight: 600; font-size: .96rem; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
    transition: box-shadow .3s var(--ease), background .3s, border-color .3s, transform .3s var(--ease);
}
.btn:hover { box-shadow: 0 0 0 4px rgba(79, 205, 243, .18), 0 14px 44px -10px rgba(79, 205, 243, .6); }
.btn:active { transform: scale(.98); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(150, 200, 255, .5); box-shadow: none; }
.btn--sm { height: 40px; padding: 0 16px; font-size: .88rem; }

/* ───────── nav ───────── */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 60; }   /* scrolls away with the page on small screens */
.nav__inner { max-width: var(--max); margin-inline: auto; padding: 14px var(--gut); display: flex; align-items: center; gap: 20px; }
.nav__logo { color: var(--text); line-height: 0; }
.nav__logo svg { height: 46px; width: auto; overflow: visible; }
.nav__logo .logo-sig { transition: width .5s var(--ease); }
.nav__logo:hover .logo-sig { width: 74px; }
.nav__tag { padding-left: 20px; border-left: 1px solid var(--line-2); font: 500 .7rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.nav__cta { margin-left: auto; }

/* ───────── hero ───────── */
.phero { position: relative; isolation: isolate; overflow: hidden; flex: 1; display: flex; align-items: center; padding: clamp(104px, 10vw, 136px) 0 clamp(40px, 5vw, 72px); }
.phero::before {
    content: ""; position: absolute; z-index: -1; right: -14%; top: -50%; width: min(1020px, 82vw); aspect-ratio: 1; border-radius: 50%; opacity: .22;
    background-image: radial-gradient(rgba(var(--acc), .6) 1px, transparent 1.5px); background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
    animation: spin 240s linear infinite;
}
.phero::after {
    content: ""; position: absolute; z-index: -2; inset: 0;
    background: radial-gradient(55% 80% at 88% 0%, rgba(var(--acc), .2), transparent 70%), radial-gradient(40% 60% at 100% 85%, rgba(139, 18, 251, .16), transparent 70%);
}
@keyframes spin { to { transform: rotate(360deg); } }
/* animation drawn by assets/js/scene.js: right of the copy on wide screens, its own band on narrow ones */
.phero__scene {
    position: absolute; z-index: -1; top: 72px; right: max(0px, calc((100vw - var(--max)) / 2 + var(--gut) - 24px)); width: min(52vw, 700px); height: 60%; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%);
}
.phero h1 { max-width: 14.5ch; font-size: clamp(2.3rem, 4.5vw, 3.9rem); }
.phero .lead { margin-top: 22px; max-width: 44ch; }
.phero__label { margin: 34px 0 14px; font: 500 .7rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }

/* ───────── footer ───────── */
.footer { padding-block: 20px 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .86rem; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; }
.footer__legal a { color: inherit; }
.footer__legal a:hover { color: var(--text); }

/* ───────── responsive ───────── */
@media (max-width: 920px) {
    .phero { align-items: flex-start; }
    .phero h1, .phero .lead { max-width: none; }
    .phero .wrap > .phero__scene { position: relative; z-index: 0; top: auto; right: auto; display: block; width: 100%; height: 210px; margin-top: 18px; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav__tag { display: none; }
    .phero { padding-top: 96px; padding-bottom: 24px; }
    .phero__label { margin-top: 26px; }
    .phero .btn { width: 100%; justify-content: center; }
}

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