/* BTS Informatics: shared styles for all pages */

:root {
    --bg: #050B16;
    --surface: rgba(255, 255, 255, .035);
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);

    --blue: #3B8BEB;
    --sky: #7CD4FF;

    --text: #F3F7FC;
    --muted: #A3B3C7;
    --dim: #6F8299;

    --grad: linear-gradient(100deg, #8EDBFF 0%, #4FA6F5 50%, #3B7FEA 100%);
    --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0c.5 3.2 2.8 5.5 6 6-3.2.5-5.5 2.8-6 6-.5-3.2-2.8-5.5-6-6 3.2-.5 5.5-2.8 6-6Z'/%3E%3C/svg%3E");

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

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

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
}

p,
ul,
ol,
address {
    margin: 0;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 3px;
    border-radius: 8px;
}

.container {
    position: relative;
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* Icons */

.ico {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-tile {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #5BB8FA, #2563DB);
    box-shadow: 0 10px 30px -8px rgba(46, 128, 245, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.spark {
    display: inline-block;
    flex: none;
    width: 12px;
    height: 12px;
    background: var(--sky);
    -webkit-mask: var(--spark) center / contain no-repeat;
    mask: var(--spark) center / contain no-repeat;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 1rem/1 var(--font);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, box-shadow .25s, transform .2s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #4D9CF2, #2766DC);
    box-shadow: 0 8px 28px -6px rgba(46, 128, 245, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-primary:hover {
    box-shadow: 0 10px 40px -4px rgba(46, 128, 245, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, .02);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .06);
}

.btn-small {
    min-height: 46px;
    padding: 0 24px;
    font-size: .9375rem;
}

/* Header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding-top: 18px;
    transition: padding .3s var(--ease);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 -24px;
    background: linear-gradient(180deg, rgba(5, 11, 22, .92), rgba(5, 11, 22, 0));
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.site-header.is-scrolled {
    padding-top: 10px;
}

.site-header.is-scrolled::before {
    opacity: 1;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 64px;
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 0 24px rgba(46, 128, 245, .5);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 700;
    font-size: 1.0625rem;
}

.brand-legal {
    font-size: .75rem;
    color: var(--muted);
}

.nav-menu ul {
    display: flex;
    gap: 4px;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(20, 32, 54, .55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nav-menu ul a {
    display: block;
    padding: 9px 20px;
    border-radius: 11px;
    font-weight: 500;
    font-size: .9375rem;
    text-decoration: none;
    color: rgba(243, 247, 252, .82);
    transition: color .2s, background-color .2s;
}

.nav-menu ul a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.nav-menu ul a[aria-current="page"] {
    color: #fff;
    background: rgba(59, 139, 235, .22);
    box-shadow: inset 0 0 0 1px rgba(124, 212, 255, .25);
}

.nav-menu .nav-menu-cta {
    display: none;
}

.nav-toggle {
    position: relative;
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(20, 32, 54, .6);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s var(--ease), opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Shared hero lighting: beam from the top, light ray, stars */

.sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.sky::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -420px;
    width: min(1300px, 160vw);
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(66, 140, 245, .8), rgba(37, 99, 219, .32) 45%, rgba(5, 11, 22, 0) 100%);
}

.sky::after {
    content: "";
    position: absolute;
    left: -8%;
    top: -15%;
    width: 55%;
    height: 80%;
    background: linear-gradient(115deg, rgba(160, 215, 255, .2), rgba(160, 215, 255, 0) 55%);
    transform: skewX(-18deg);
    filter: blur(30px);
}

.stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Home hero */

.hero {
    position: relative;
    padding: 172px 0 0;
    text-align: center;
}

.hero-inner {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(12, 24, 44, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: .875rem;
    font-weight: 600;
}

.badge img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.badge small {
    font-size: inherit;
    font-weight: 500;
    color: var(--muted);
}

.hero h1 {
    max-width: 21ch;
    margin-top: 28px;
    text-wrap: balance;
    font-size: clamp(2.5rem, 6.2vw, 4.75rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

/* Tilted screen under the hero */

.stage {
    position: relative;
    z-index: 1;
    margin-top: clamp(56px, 8vw, 88px);
    perspective: 1800px;
}

.stage::before {
    content: "";
    position: absolute;
    inset: 10% 8% -10%;
    background: radial-gradient(closest-side, rgba(46, 128, 245, .45), transparent);
    filter: blur(40px);
}

.screen {
    position: relative;
    max-width: 1080px;
    margin-inline: auto;
    border-radius: 24px;
    padding: 10px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
    transform-origin: 50% 0;
    transform: rotateX(var(--tilt, 0deg)) scale(var(--tilt-scale, 1));
}

.screen-inner {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #071226;
    border: 1px solid var(--border);
}

.screen-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .025);
}

.screen-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.screen-bar span {
    margin-inline: auto;
    padding: 4px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    font-size: .75rem;
    color: var(--dim);
}

.screen-body {
    position: relative;
    aspect-ratio: 16 / 8;
    background-image:
        linear-gradient(rgba(124, 212, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 212, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: center;
}

.screen-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 70% at 50% 50%, rgba(37, 99, 219, .28), rgba(7, 18, 38, 0) 70%),
        linear-gradient(180deg, rgba(7, 18, 38, 0) 78%, #071226);
    pointer-events: none;
}

.screen-body canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-fade {
    position: relative;
    z-index: 2;
    height: 140px;
    margin-top: -140px;
    background: linear-gradient(180deg, rgba(5, 11, 22, 0), var(--bg));
    pointer-events: none;
}

/* Sections */

.section {
    position: relative;
    padding: clamp(88px, 11vw, 140px) 0;
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(44px, 6vw, 64px);
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    letter-spacing: -0.03em;
}

.halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1100px, 100%);
    height: 560px;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(37, 99, 219, .24), transparent);
    pointer-events: none;
}

/* Glass cards */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    position: relative;
    padding: 32px 30px 36px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    overflow: hidden;
    transition: border-color .3s, transform .3s var(--ease);
}

.card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -40%;
    width: 120%;
    height: 80%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(59, 139, 235, .3), transparent);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(124, 212, 255, .3);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    position: relative;
    margin-top: 26px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card p {
    position: relative;
    margin-top: 12px;
    font-size: 1rem;
    color: var(--muted);
}

/* Big rounded glow panel */

.panel {
    position: relative;
    overflow: hidden;
    margin-inline: clamp(8px, 1.4vw, 20px);
    padding: clamp(80px, 10vw, 130px) 0 clamp(96px, 12vw, 160px);
    border-radius: clamp(28px, 4vw, 56px);
    background: linear-gradient(180deg, #0B1526 0%, #0A1426 45%, #0E2347 78%, #1C4BA8 100%);
}

.panel::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -45%;
    width: 110%;
    height: 90%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(84, 160, 255, .65), rgba(37, 99, 219, .2) 55%, transparent);
    pointer-events: none;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .07);
    pointer-events: none;
}

/* Crosshair grid */

.xgrid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(5, 11, 22, .25);
}

.xcell {
    position: relative;
    padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.xcell:last-child {
    border-right: 0;
}

/* sparkles where the column lines meet the frame */
.xcell:not(:last-child)::before,
.xcell:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -7px;
    z-index: 1;
    width: 13px;
    height: 13px;
    background: rgba(200, 230, 255, .75);
    -webkit-mask: var(--spark) center / contain no-repeat;
    mask: var(--spark) center / contain no-repeat;
}

.xcell:not(:last-child)::before {
    top: -7px;
}

.xcell:not(:last-child)::after {
    bottom: -7px;
}

.xcell h3 {
    margin-top: 24px;
    font-size: 1.5rem;
}

.spark-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding: 0;
    list-style: none;
}

.spark-list li {
    display: flex;
    gap: 12px;
    font-size: .975rem;
    line-height: 1.55;
    color: var(--muted);
}

.spark-list .spark {
    margin-top: .38em;
}

/* Footer */

.site-footer {
    position: relative;
    margin-top: clamp(64px, 8vw, 96px);
    padding-top: clamp(64px, 8vw, 88px);
    color: var(--muted);
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(900px, 90%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(124, 212, 255, .6), transparent);
}

.site-footer::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(700px, 80%);
    height: 160px;
    transform: translateX(-50%);
    background: radial-gradient(50% 100% at 50% 0, rgba(46, 128, 245, .18), transparent);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand img {
    width: 240px;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.footer-col h2 {
    margin-bottom: 16px;
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--text);
}

.footer-col address {
    font-style: normal;
    font-size: .975rem;
    line-height: 1.75;
}

.contact-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list .ico {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--sky);
}

.contact-list a,
.footer-bottom a {
    text-decoration: none;
    transition: color .2s;
}

.contact-list a:hover,
.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 24px 32px;
    border-top: 1px solid var(--border);
    font-size: .875rem;
    color: var(--dim);
}

.footer-bottom ul {
    display: flex;
    gap: 24px;
    padding: 0;
    list-style: none;
}

/* Scroll reveal (only when JS is running) */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Subpages ---------- */

.page-hero {
    position: relative;
    padding: 176px 0 clamp(64px, 8vw, 96px);
    text-align: center;
}

.page-hero .container {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero h1 {
    font-size: clamp(2.75rem, 6.4vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.jump-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
    padding: 0;
    list-style: none;
}

.jump-links a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(12, 24, 44, .55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    transition: border-color .2s, background-color .2s;
}

.jump-links a:hover {
    border-color: rgba(124, 212, 255, .5);
    background: rgba(59, 139, 235, .18);
}

/* Cards that center an incomplete last row */

.cards.is-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cards.is-flow > * {
    flex: 0 1 calc((100% - 32px) / 3);
}

/* Products */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.product + .product {
    margin-top: clamp(80px, 10vw, 128px);
}

.product:nth-child(even) .figure-zoom {
    order: 2;
}

.figure-zoom {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(46, 128, 245, .4);
    cursor: zoom-in;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: border-color .3s, box-shadow .3s;
}

.figure-zoom:hover {
    border-color: rgba(124, 212, 255, .45);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 100px -10px rgba(46, 128, 245, .6);
}

.figure-zoom .screen-bar {
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #0B1830;
}

.figure-zoom img {
    width: 100%;
    height: auto;
    border-radius: 0 0 14px 14px;
    background: #fff;
}

.zoom-hint {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #5BB8FA, #2563DB);
    box-shadow: 0 8px 24px -6px rgba(46, 128, 245, .8);
}

.zoom-hint .ico,
.lightbox-close .ico {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.product-body h3 {
    font-size: clamp(1.625rem, 2.8vw, 2.25rem);
    letter-spacing: -0.03em;
}

.product-sub {
    display: block;
    margin-top: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0;
}

.product-body p {
    margin-top: 16px;
    color: var(--muted);
}

.modules {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
}

.modules li {
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.modules h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.modules p {
    margin-top: 8px;
    font-size: .975rem;
}

.lightbox {
    width: min(1200px, 100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.lightbox::backdrop {
    background: rgba(3, 8, 16, .88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lightbox img {
    width: 100%;
    height: auto;
}

.lightbox-close {
    position: sticky;
    top: 12px;
    float: right;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 12px 12px -56px 0;
    border: 0;
    border-radius: 50%;
    background: #0B1830;
    color: #fff;
    cursor: pointer;
}

/* Showcase */

.count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: .875rem;
    font-weight: 600;
    color: var(--muted);
}

.card.work {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.work-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        repeating-radial-gradient(circle at 72% 62%, rgba(255, 255, 255, .13) 0 1px, transparent 1.5px 20px),
        radial-gradient(90% 90% at 72% 62%, var(--c2), transparent 70%),
        linear-gradient(150deg, var(--c1), #071226 85%);
}

.work-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
    mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.work-cover .cover-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(5, 11, 22, .45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: .75rem;
    color: rgba(255, 255, 255, .7);
}

.cover-bar i {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
}

.cover-bar span {
    overflow: hidden;
    margin-left: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cover-icon {
    position: absolute;
    left: 72%;
    top: 62%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    transform: translate(-50%, -50%);
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .6), 0 0 50px -6px var(--c2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .5s var(--ease);
}

.cover-icon .ico {
    width: 34px;
    height: 34px;
    stroke-width: 1.6;
}

.cover-cat {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

.cover-art {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.card.work:hover .cover-icon {
    transform: translate(-50%, -54%) scale(1.06);
}

.card.work:hover .cover-art {
    transform: scale(1.04);
}

[data-cat="education"] {
    --c1: #1F5FD6;
    --c2: rgba(86, 190, 255, .75);
}

[data-cat="government"] {
    --c1: #3446C9;
    --c2: rgba(130, 150, 255, .75);
}

[data-cat="industry"] {
    --c1: #0D7F95;
    --c2: rgba(80, 220, 225, .7);
}

.work-body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 28px;
}

.work-client {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--sky);
}

.work-client::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: .5em;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.card.work h3 {
    margin-top: 12px;
    font-size: 1.4375rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.work-sub {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #C9DCF0;
}

.card.work .work-desc {
    margin-top: 14px;
    font-size: .9375rem;
    line-height: 1.65;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .04);
    font-size: .75rem;
    font-weight: 600;
    color: #D5E4F3;
}

.work-links {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding: 24px 0 0;
    list-style: none;
}

.work-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(124, 212, 255, .28);
    background: rgba(59, 139, 235, .12);
    font-weight: 600;
    font-size: .875rem;
    color: #CFEBFF;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

.work-links a:hover {
    border-color: rgba(124, 212, 255, .6);
    background: rgba(59, 139, 235, .28);
}

.work-links .ico {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

/* About */

.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.story-photo {
    position: relative;
    padding: 10px;
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
    box-shadow: 0 0 100px -20px rgba(46, 128, 245, .5);
}

.story-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 40%;
    border-radius: 20px;
}

.story p {
    margin-top: 22px;
    font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
    line-height: 1.65;
    color: var(--muted);
}

.vm-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vm {
    padding: clamp(32px, 4vw, 48px);
}

.vm h2 {
    margin-top: 26px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.03em;
}

.card.vm p {
    margin-top: 18px;
    font-size: 1.125rem;
    line-height: 1.7;
}

.card.vm p + p {
    margin-top: 14px;
}

/* Team: every photo is the same round, grayscale size */

.team {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px 20px;
    padding: 0;
    list-style: none;
}

.team.is-core {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.is-core .person {
    flex-direction: row;
    gap: 22px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    text-align: left;
    transition: border-color .3s;
}

.is-core .person:hover {
    border-color: rgba(124, 212, 255, .3);
}

.avatar {
    flex: none;
    width: 128px;
    height: 128px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(150deg, rgba(142, 219, 255, .9), rgba(59, 127, 234, .25) 55%, rgba(255, 255, 255, .08));
    box-shadow: 0 0 40px -12px rgba(46, 128, 245, .8);
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--bg);
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    background: #0E1B30;
}

.person h3 {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.person p {
    margin-top: 4px;
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--muted);
}

.is-core .person h3 {
    margin-top: 0;
    font-size: 1.125rem;
}

.is-core .person p {
    margin-top: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--sky);
}

.team-sub {
    margin-top: clamp(80px, 10vw, 120px);
}

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

@media (max-width: 1100px) {
    .team {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .team.is-core {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 92px;
        left: var(--gutter);
        right: var(--gutter);
        padding: 10px;
        border-radius: 20px;
        border: 1px solid var(--border-strong);
        background: rgba(10, 20, 38, .97);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .25s var(--ease), visibility .2s;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 0;
        border: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .nav-menu ul a {
        padding: 14px 16px;
        font-size: 1.0625rem;
    }

    .nav-menu .nav-menu-cta {
        display: flex;
        width: 100%;
        margin-top: 8px;
    }

    .cards,
    .xgrid {
        grid-template-columns: 1fr;
    }

    .cards.is-flow > * {
        flex-basis: 100%;
    }

    .xcell {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .xcell:last-child {
        border-bottom: 0;
    }

    .xcell:not(:last-child)::before {
        display: none;
    }

    .xcell:not(:last-child)::after {
        right: auto;
        left: -7px;
    }

    .product,
    .story {
        grid-template-columns: 1fr;
    }

    .product:nth-child(even) .figure-zoom {
        order: 0;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .team {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 640px) and (max-width: 960px) {
    .cards:not(.is-flow) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards.is-flow > * {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 600px) {
    .site-header {
        padding-top: 10px;
    }

    .nav-menu {
        top: 82px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding-top: 128px;
    }

    .badge small {
        display: none;
    }

    .hero-fade {
        height: 48px;
        margin-top: -48px;
    }

    .hero h1 {
        margin-top: 22px;
        font-size: clamp(2.125rem, 9.6vw, 2.5rem);
        line-height: 1.08;
    }

    .panel {
        padding: 56px 0 88px;
    }

    .section {
        padding: 72px 0;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .screen {
        border-radius: 16px;
        padding: 6px;
    }

    .screen-inner {
        border-radius: 11px;
    }

    .screen-body {
        aspect-ratio: 4 / 3;
    }

    .page-hero {
        padding-top: 144px;
    }

    .card {
        padding: 28px 24px 30px;
    }

    .team,
    .team.is-core {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 12px;
    }

    .avatar {
        width: 112px;
        height: 112px;
    }

    .is-core .person {
        flex-direction: column;
        gap: 0;
        padding: 20px 12px;
        text-align: center;
    }

    .is-core .person h3 {
        margin-top: 16px;
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand img {
        width: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .screen {
        transform: none;
    }
}

/* ---------- Parallax layer (v3) ---------- */

/* Floating depth objects: glowing nodes from the logo, dotted rings, sparkles */
.fx-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.fx {
    position: absolute;
    display: block;
    will-change: translate;
}

.fx-orb {
    width: var(--s, 60px);
    height: var(--s, 60px);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff 0 5%, rgba(200, 235, 255, .95) 13%, #58AEF7 40%, #1E54C4 70%, #0C2A66 100%);
    box-shadow: 0 0 calc(var(--s, 60px) * .7) rgba(66, 140, 245, .55), inset -6px -10px 18px rgba(4, 12, 40, .55);
    animation: bob 7s ease-in-out infinite alternate;
}

.fx-orb:nth-child(even) {
    animation-duration: 9s;
    animation-delay: -3s;
}

.fx-ring {
    width: var(--s, 160px);
    height: var(--s, 160px);
    border-radius: 50%;
    border: 1.5px dashed rgba(124, 212, 255, .3);
    animation: spin 60s linear infinite;
}

.fx-ring::after {
    content: "";
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    border: 1px solid rgba(124, 212, 255, .14);
}

.fx-ring::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: #BFE6FF;
    box-shadow: 0 0 12px #7CD4FF;
}

.fx-spark {
    width: 18px;
    height: 18px;
    background: #CDEBFF;
    -webkit-mask: var(--spark) center / contain no-repeat;
    mask: var(--spark) center / contain no-repeat;
    filter: drop-shadow(0 0 6px #7CD4FF);
    animation: twinkle 2.8s ease-in-out infinite alternate;
}

.fx-spark:nth-child(odd) {
    animation-delay: -1.4s;
}

@keyframes bob {
    from { transform: translateY(-8px); }
    to { transform: translateY(8px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes twinkle {
    from { opacity: .35; transform: scale(.75); }
    to { opacity: 1; transform: scale(1.1); }
}

/* Giant text bands that slide sideways while scrolling */
.band {
    position: relative;
    display: grid;
    gap: 6px;
    padding: clamp(28px, 5vw, 64px) 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    pointer-events: none;
}

.band-row {
    white-space: nowrap;
    will-change: translate;
}

.band-track {
    display: inline-flex;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
    padding-right: clamp(20px, 3vw, 44px);
    font-size: clamp(2.5rem, 7.5vw, 6.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.band-track span {
    background: linear-gradient(100deg, #E8F6FF, #7CC4FF 60%, #3B7FEA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.band-row.is-outline .band-track span {
    background: none;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(124, 212, 255, .45);
}

.band-track .spark {
    width: .38em;
    height: .38em;
    background: var(--sky);
    filter: drop-shadow(0 0 10px rgba(124, 212, 255, .8));
}

.band-row.is-outline .spark {
    background: rgba(124, 212, 255, .45);
    filter: none;
}

/* Story photo sits in a clipping frame */
.photo-clip {
    overflow: hidden;
    border-radius: 20px;
}

@media (max-width: 960px) {
    .fx-ring {
        opacity: .6;
    }
}

@media (max-width: 600px) {
    .fx-ring {
        display: none;
    }

    .fx-orb {
        width: calc(var(--s, 60px) * .6);
        height: calc(var(--s, 60px) * .6);
    }

    .band {
        gap: 2px;
    }

    .band-row.is-outline .band-track span {
        -webkit-text-stroke-width: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-orb,
    .fx-ring,
    .fx-spark {
        animation: none;
    }
}

/* Solid glass header once content scrolls under it */
.site-header.is-scrolled::before {
    inset: 0;
    background: rgba(5, 11, 22, .78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* Phones: the hero is too narrow for orbs beside the headline */
@media (max-width: 600px) {
    .hero .fx-orb,
    .page-hero .fx-orb {
        display: none;
    }
}

/* ---------- v5: AI group, product groups, training, journals ---------- */

/* Group heading between card groups: a title flanked by thin lines */
.group-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: clamp(56px, 7vw, 88px) 0 clamp(28px, 4vw, 40px);
}

.group-head::before,
.group-head::after {
    content: "";
    flex: 1;
    max-width: 220px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 212, 255, .45));
}

.group-head::after {
    background: linear-gradient(90deg, rgba(124, 212, 255, .45), transparent);
}

.group-head h2,
.group-head h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    letter-spacing: -0.02em;
    text-align: center;
}

.products + .group-head,
.section-head + .group-head {
    margin-top: 0;
}

.products + .group-head {
    margin-top: clamp(80px, 10vw, 128px);
}

.cards.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1000px;
    margin-inline: auto;
}

/* Featured AI solution cards: gradient border and a stronger glow */
.card.is-featured {
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(16, 32, 62, .96), rgba(9, 19, 38, .96)) padding-box,
        linear-gradient(135deg, rgba(142, 219, 255, .75), rgba(59, 127, 234, .25) 45%, rgba(124, 212, 255, .6)) border-box;
    box-shadow: 0 24px 60px -30px rgba(46, 128, 245, .7);
}

.card.is-featured::before {
    opacity: .7;
}

.card .tags {
    position: relative;
}

/* AI product visual: same screen frame as the diagrams, with a coded cover
   that an illustration in assets/redesign/products/ replaces */
.figure-art {
    position: relative;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(46, 128, 245, .4);
}

.figure-art .screen-bar {
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #0B1830;
}

.figure-art .work-cover {
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 14px 14px;
}

.product:nth-child(even) .figure-art {
    order: 2;
}

.product-body .spark-list {
    margin-top: 22px;
}

[data-cat="ai"] {
    --c1: #1B4FD0;
    --c2: rgba(110, 200, 255, .8);
}

[data-cat="training"] {
    --c1: #5B3FD6;
    --c2: rgba(170, 150, 255, .75);
}

/* Training cards */
.card.training .work-client {
    margin-top: 24px;
}

.card.training h3 {
    margin-top: 10px;
    font-size: 1.375rem;
}

.card.training .work-sub {
    margin-top: 6px;
    color: #C9DCF0;
}

.card.training .tags {
    margin-top: 18px;
}

/* Academic publishing */
.section-lead {
    max-width: 62ch;
    margin: 18px auto 0;
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    line-height: 1.65;
    color: var(--muted);
}

.index-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    list-style: none;
}

.index-pills li {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(124, 212, 255, .3);
    background: rgba(59, 139, 235, .1);
    font-size: .8125rem;
    font-weight: 600;
    color: #CFEBFF;
}

.card.journal {
    display: flex;
    flex-direction: column;
}

.journal-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.journal-code {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sinta {
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(145deg, #5BB8FA, #2563DB);
    box-shadow: 0 6px 18px -6px rgba(46, 128, 245, .8);
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
}

.card.journal h3 {
    margin-top: 16px;
    font-size: 1.125rem;
    line-height: 1.35;
}

.card.journal .tags {
    margin-top: 16px;
}

.card.journal .work-links {
    padding-top: 20px;
}

.pub-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(36px, 5vw, 56px);
}

.pub-cta .ico {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

@media (max-width: 960px) {
    .cards.cards-2 {
        grid-template-columns: 1fr;
    }

    .product:nth-child(even) .figure-art {
        order: 0;
    }
}

@media (min-width: 640px) and (max-width: 960px) {
    .cards.cards-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .group-head::before,
    .group-head::after {
        max-width: 40px;
    }

    .pub-cta .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}
