/* ============================== tokens ============================== */
:root {
    --bg: #07040a;
    --bg-2: #0f0814;
    --surface: rgba(26, 14, 32, .62);
    --surface-solid: #160c1c;
    --line: rgba(214, 140, 226, .14);
    --line-strong: rgba(214, 140, 226, .28);
    --text: #f5eef7;
    --muted: #ab9bb5;
    --orchid: #e27bea;
    --magenta: #ba26c7;
    --teal: #2fd9c0;
    --gold: #f5b942;
    --rose: #ff5ca8;
    --grad: linear-gradient(100deg, #ffffff 0%, var(--orchid) 45%, var(--magenta) 100%);
    --radius: 18px;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
    --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: rgba(226, 123, 234, .3); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================== background ============================== */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: .55;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.orb-a { width: 520px; height: 520px; background: #7a1a87; top: -160px; left: -120px; }
.orb-b { width: 460px; height: 460px; background: #4b1263; top: 10%; right: -160px; animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; background: #0f766e; bottom: -180px; left: 30%; opacity: .25; animation-delay: -12s; }
@keyframes drift {
    to { transform: translate3d(60px, 80px, 0) scale(1.12); }
}

/* ============================== buttons & chips ============================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1 var(--font); cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: #fff;
    background: linear-gradient(100deg, var(--magenta), #d14fdc);
    box-shadow: 0 10px 30px -10px rgba(186, 38, 199, .75);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(226, 123, 234, .7); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--orchid); background: rgba(226, 123, 234, .08); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.chip {
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .02); color: var(--muted);
    font: 500 14px/1 var(--font); cursor: pointer; transition: all .2s ease;
}
.chip:hover { color: var(--text); border-color: var(--magenta); }
.chip.active { color: #14041a; background: var(--text); border-color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.tags li {
    font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 8px;
    color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}

/* ============================== nav ============================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 4, 10, .72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
/* Logo: the VH mark is the vicon glyph, the wordmark is the artwork's "VILS HUB" crop.
   --logo-h is the logo's height. The glyph's ink is 0.626em tall and starts/ends ~0.06em
   inside its box, so the font-size and side margins below make the mark exactly --logo-h tall
   and flush; the gap is the artwork's own (0.1 x height). */
.logo { --logo-h: 42px; display: inline-flex; align-items: center; gap: calc(var(--logo-h) * .1); }
.logo i {
    font-size: calc(var(--logo-h) / .626); line-height: 1; color: var(--magenta);
    margin: 0 -.059em 0 -.058em;
}
.logo img { height: var(--logo-h); width: auto; display: block; }
.brand { display: flex; align-items: center; }
@media (max-width: 600px) { .brand .logo { --logo-h: 36px; } }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--grad); transform: scaleX(0); transition: transform .25s ease;
}
.nav-links a:not(.btn):hover, .nav-links a.current { color: var(--text); }
.nav-links a.current::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: transform .25s, opacity .25s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================== hero ============================== */
.hero { padding-top: calc(var(--nav-h) + 70px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font: 500 13px/1 var(--mono); color: var(--teal); letter-spacing: .02em;
    padding: 9px 14px; border: 1px solid rgba(47, 217, 192, .3); border-radius: 999px;
    background: rgba(47, 217, 192, .06);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(47, 217, 192, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 217, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 217, 192, 0); } }
.hero h1 { font-size: clamp(40px, 6vw, 74px); font-weight: 700; margin: 26px 0 24px; }
.hero-rotator { display: block; min-height: 1.15em; }
.lead { color: var(--muted); font-size: 19px; max-width: 580px; }
.lead strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; padding: 0; margin: 46px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 40px; font-weight: 700; line-height: 1; }
.hero-stats b::after { content: "+"; color: var(--orchid); }
.hero-stats span { color: var(--muted); font-size: 14px; margin-top: 6px; }

.hero-visual { position: relative; perspective: 1200px; }
.terminal {
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, rgba(22, 12, 28, .95), rgba(11, 6, 15, .95));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow), 0 0 0 1px rgba(226, 123, 234, .08), 0 0 80px -20px rgba(186, 38, 199, .45);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform .4s ease;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-title { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.term-body {
    margin: 0; padding: 20px 22px; height: 420px; overflow: hidden;
    font: 13.5px/1.75 var(--mono); color: #f0d9f4; white-space: pre-wrap;
}
.term-body .vAutoWriter { white-space: pre-wrap; }

.float-chip {
    position: absolute; display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 12px; font: 600 13px var(--mono);
    background: rgba(22, 12, 28, .85); border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
.float-chip i { font-size: 16px; }
.chip-a { top: -22px; right: 18px; color: var(--teal); }
.chip-b { bottom: 40px; left: -36px; color: var(--orchid); animation-delay: -2s; }
.chip-c { bottom: -20px; right: 40px; color: var(--gold); animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* marquee */
/* vUX Marquee moves the spans into its own track; overflow, cloning and the edge fade are its job */
.marquee { margin-top: 90px; padding: 22px 0; border-block: 1px solid var(--line); }
.marquee span { font: 600 18px var(--font); color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 52px; }
.marquee span::after { content: "\2726"; color: var(--magenta); font-size: 12px; }

/* ============================== sections ============================== */
.section { padding: 120px 0 0; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font: 500 13px var(--mono); color: var(--orchid); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.section-head h2, .contact h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 18px; }
.sub-head { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 70px 0 24px; }
.sub-head:has(+ .sub-lead) { margin-bottom: 8px; }
.sub-lead { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.sub-lead + .oss-grid + .sub-head { margin-top: 50px; }

.card {
    position: relative; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* reveal on scroll (main.js adds .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================== services ============================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 32px 30px; overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.service::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%);
    opacity: 0; transition: opacity .3s ease;
}
.service:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.service:hover::before { opacity: 1; }
.service > i {
    display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
    font-size: 24px; color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.service h3 { font-size: 21px; margin: 22px 0 10px; }
.service p { color: var(--muted); font-size: 15.5px; }

.ai-banner {
    display: flex; align-items: center; gap: 20px; margin-top: 22px; padding: 24px 30px;
    border-radius: var(--radius); border: 1px solid rgba(47, 217, 192, .28);
    background: linear-gradient(100deg, rgba(47, 217, 192, .1), rgba(186, 38, 199, .08));
}
.ai-banner i { font-size: 28px; color: var(--teal); }
.ai-banner p { color: var(--muted); }
.ai-banner b { color: var(--text); }

/* ============================== work ============================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work {
    --accent: var(--orchid);
    display: flex; flex-direction: column; padding: 28px; cursor: pointer; text-align: left;
    color: inherit; font: inherit; overflow: hidden;
    transition: transform .35s ease, border-color .35s ease, opacity .35s ease;
}
.work::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: .7;
}
.work:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.work.hidden { display: none; }
.work-top { display: flex; align-items: center; justify-content: space-between; }
.work-top > i { font-size: 30px; color: var(--accent); }
.work-client { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.work h3 { font-size: 22px; margin: 22px 0 10px; }
.work p { color: var(--muted); font-size: 15px; flex: 1; }
.work .more { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--accent); }
.work .more i { transition: transform .25s ease; }
.work:hover .more i { transform: translateX(5px); }
.badge {
    font: 600 11px var(--mono); padding: 5px 9px; border-radius: 6px;
    color: #1a1004; background: var(--gold); text-transform: uppercase; letter-spacing: .05em;
}

.oss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.oss { padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: border-color .25s, transform .25s; }
a.oss:hover { border-color: var(--magenta); transform: translateY(-4px); }
.oss small { font: 500 11px var(--mono); color: var(--orchid); text-transform: uppercase; letter-spacing: .06em; }
.oss b { font-size: 16px; }
.oss span { color: var(--muted); font-size: 14px; }

/* case-study modal content: lives outside #page, so it carries its own look */
.case {
    display: none; position: relative;
    background: var(--surface-solid); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: 22px;
    padding: 40px; font-family: var(--font); box-shadow: var(--shadow);
}
.case-close {
    position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text);
    font-size: 14px; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s;
}
.case-close:hover { background: rgba(255, 92, 168, .18); transform: rotate(90deg); }
.case-head { display: flex; align-items: center; gap: 18px; padding-right: 50px; }
.case-head > i {
    flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.case h3 { font-size: 28px; }
.case-head small { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.case h5 { font: 600 12px var(--mono); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin: 30px 0 10px; }
.case p, .case ul.do li { color: #d9cbe0; font-size: 16px; line-height: 1.65; }
.case ul.do { margin: 0; padding: 0; list-style: none; }
.case ul.do li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.case ul.do li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.case .outcome {
    margin-top: 30px; padding: 20px 22px; border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--text); font-weight: 500;
}
.case .outcome b { color: var(--accent); }
.case .cta-row { margin-top: 28px; }
.vModal { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vModal .modalSpace { max-width: calc(100vw - 32px); }

/* ============================== impact carousel ============================== */
.impact-section { padding-top: 110px; }
.impact {
    position: relative; overflow: hidden; height: 320px; border-radius: 28px;
    background:
        radial-gradient(600px circle at 15% 20%, rgba(226, 123, 234, .22), transparent 60%),
        radial-gradient(600px circle at 85% 80%, rgba(47, 217, 192, .18), transparent 60%),
        var(--bg-2);
    border: 1px solid var(--line-strong);
}
.impact-slides { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.impact-slides > div {
    position: absolute; top: 0; width: 100%; height: 100%;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 50px; padding: 0 70px 30px;
}
.impact-figure { font-size: clamp(70px, 11vw, 150px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.impact-line { font-size: clamp(22px, 3vw, 34px); font-weight: 600; }
.impact-note { color: var(--muted); margin-top: 12px; font-size: 17px; max-width: 520px; }
.impact-slides > div .impact-figure,
.impact-slides > div .impact-text { opacity: 0; transform: translateY(20px); transition: opacity .6s ease .25s, transform .6s ease .25s; }
.impact-slides > div[data-activeDisplay="1"] .impact-figure,
.impact-slides > div[data-activeDisplay="1"] .impact-text { opacity: 1; transform: none; }
.impact-slides > div[data-activeDisplay="1"] .impact-text { transition-delay: .4s; }
.impact .vControlButtonsCon { width: auto; padding-left: 70px; }
.impact .vControlButtonsShell { width: auto; } /* room for the wider active dot */

/* ============================== experience ============================== */
.exp-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.exp-grid .section-head { position: sticky; top: calc(var(--nav-h) + 30px); margin-bottom: 0; }
.edu { display: flex; align-items: center; gap: 14px; margin: 30px 0 26px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.edu i { font-size: 24px; color: var(--teal); }
.edu div { display: flex; flex-direction: column; font-size: 15px; }
.edu span { color: var(--muted); font-size: 14px; }
/* rail, marker, label and item spacing come from the list's data attributes (TimeLineList) */
.timeline { margin: 0; padding: 0; }
.tl-card { padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.tl-card:hover { border-color: rgba(226, 123, 234, .45); transform: translateX(4px); }
.tl-card h4 { font-size: 19px; }
.tl-card .org { display: block; margin: 4px 0 10px; font: 500 13px var(--mono); color: var(--orchid); }
.tl-card p { color: var(--muted); font-size: 15px; }

/* ============================== stack ============================== */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stack { padding: 24px; transition: border-color .25s; }
.stack:hover { border-color: var(--magenta); }
.stack h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 12px; }
.stack h4 i { color: var(--orchid); font-size: 20px; }
.stack p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ============================== process ============================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, var(--orchid), var(--magenta), var(--teal), var(--gold)); opacity: .5; }
.steps li { position: relative; text-align: center; padding: 0 10px; }
.steps span {
    position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    font: 700 20px var(--mono); background: var(--bg); border: 2px solid var(--magenta); color: var(--text);
    box-shadow: 0 0 30px -6px var(--magenta); margin-bottom: 20px;
}
.steps h4 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ============================== contact ============================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 56px; overflow: hidden; }
.contact::before {
    content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; top: -260px; left: -200px;
    background: radial-gradient(circle, rgba(226, 123, 234, .22), transparent 70%); pointer-events: none;
}
.contact-copy > p:not(.kicker) { color: var(--muted); margin-top: 20px; font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; word-break: break-word; }
.contact-list i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--orchid); }
.contact-list a:hover { color: var(--orchid); }

.contact-form { display: grid; gap: 16px; position: relative; padding: 26px; background: rgba(7, 4, 10, .35); border-radius: 14px; }
/* out of the grid flow, stretched over the form; the module strokes along the canvas edge */
.form-border { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.field { position: relative; }
.field input, .field select, .field textarea {
    width: 100%; padding: 24px 16px 10px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: rgba(7, 4, 10, .6); color: var(--text);
    font: 16px var(--font); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
    appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; }
.field select option { background: var(--surface-solid); }
.field label {
    position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 16px; pointer-events: none;
    transition: top .2s ease, font-size .2s ease, color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orchid); box-shadow: 0 0 0 4px rgba(226, 123, 234, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 7px; font-size: 12px; color: var(--orchid); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rose); }
.field.invalid label { color: var(--rose); }
.form-msg { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form-msg.err { color: var(--rose); }
.form-msg.ok { color: var(--teal); }

/* ============================== footer ============================== */
.footer { margin-top: 120px; padding: 34px 0; border-top: 1px solid var(--line); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .logo { --logo-h: 22px; }
.footer a { color: var(--orchid); }

/* ============================== responsive ============================== */
@media (max-width: 1080px) {
    .service-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
    .stack-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 70px; }
    .hero-visual { max-width: 620px; }
    .terminal { transform: none; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(7, 4, 10, .97); border-bottom: 1px solid var(--line); padding: 10px 20px 24px;
        transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
    }
    .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
    .nav.open { background: rgba(7, 4, 10, .97); }
    .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-links a:not(.btn)::after { display: none; }
    .nav-links .btn { margin-top: 18px; }
    .exp-grid, .contact { grid-template-columns: 1fr; gap: 44px; }
    .exp-grid .section-head { position: static; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
    .steps::before { display: none; }
    .impact-slides > div { grid-template-columns: 1fr; gap: 10px; padding: 30px 32px 60px; align-content: center; }
    .impact .vControlButtonsCon { padding-left: 32px; }
    .contact { padding: 34px 26px; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 32px); }
    .service-grid, .work-grid, .stack-grid, .steps { grid-template-columns: 1fr; }
    .oss-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding-top: calc(var(--nav-h) + 40px); }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .hero-stats b { font-size: 28px; }
    .hero-stats span { font-size: 12px; }
    .eyebrow { font-size: 11.5px; }
    /* lines wrap here, so keep the newest in view and let the oldest scroll off the top */
    .term-body { height: 380px; font-size: 11.5px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
    .chip-b { left: -6px; }
    .section { padding-top: 90px; }
    .impact { height: 360px; }
    .case { padding: 28px 22px; }
    .case h3 { font-size: 22px; }
    .ai-banner { flex-direction: column; align-items: flex-start; }
}

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