/* ============================================================
   INSIGNIA v20 — EDITORIAL THEME (Winst-inspired)
   Aesthetic: minimal · editorial · serif display · cream + ink
   ============================================================ */

:root {
    --ink: #050a14;
    --ink-2: #0a1428;
    --ink-3: #101e36;
    --bone: #e8eef7;
    --bone-2: #c9d6e8;
    --paper: #f0f4fb;
    --rule: rgba(199, 219, 246, 0.10);
    --rule-dark: rgba(5, 10, 20, 0.14);
    --gold: #4a8eff;
    --gold-soft: #7eb0ff;
    --ember: #5ce7ff;
    --muted: rgba(232, 238, 247, 0.60);
    --muted-dark: rgba(5, 10, 20, 0.62);

    --font-serif: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --max: 1320px;
    --gutter: clamp(20px, 4vw, 56px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-sans);
    background: var(--ink);
    color: var(--bone);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.005em;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Type ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); }

p { color: var(--muted); font-size: 16px; line-height: 1.75; }

/* ---------- Layout ---------- */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 24px var(--gutter);
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, rgba(14,14,14,0.85), rgba(14,14,14,0));
    backdrop-filter: blur(8px);
    transition: background .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled { background: rgba(14,14,14,0.94); padding: 16px var(--gutter); border-bottom: 1px solid var(--rule); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; }
.nav-brand .word { font-family: var(--font-serif); font-size: 22px; letter-spacing: 0.02em; color: var(--bone); }
.nav-brand .word em {
    color: var(--gold); font-style: normal; font-family: var(--font-mono);
    font-size: 11px; margin-left: 6px; letter-spacing: 0.3em;
}
.nav-menu { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-menu a {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--bone); opacity: 0.78;
    transition: opacity .3s var(--ease), color .3s var(--ease);
}
.nav-menu a:hover { opacity: 1; color: var(--gold); }
.nav-menu a.active { color: var(--gold); opacity: 1; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
    border: 1px solid var(--bone); color: var(--bone);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
    transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--bone); color: var(--ink); }
.nav-burger {
    display: none; position: relative;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent; border: 0; padding: 0; cursor: pointer;
    z-index: 110;
}
.nav-burger span {
    position: absolute; left: 10px; right: 10px;
    height: 2px; background: var(--bone); border-radius: 2px;
    transition: transform .35s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
    transform-origin: center;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 28px; }
.nav.open .nav-burger span { background: var(--gold); }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding: clamp(110px, 14vh, 160px) var(--gutter) clamp(60px, 8vh, 100px);
    overflow: hidden; isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse at 78% 18%, rgba(74, 142, 255, 0.22), transparent 55%),
        radial-gradient(ellipse at 12% 92%, rgba(92, 231, 255, 0.12), transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 30, 54, 0.6), transparent 70%),
        linear-gradient(180deg, #050a14 0%, #0a1428 100%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(244,237,228,0.025) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(90deg, rgba(244,237,228,0.025) 0 1px, transparent 1px 80px);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-meta {
    position: absolute; top: 96px; left: var(--gutter); right: var(--gutter);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--muted); font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.32em; text-transform: uppercase;
    z-index: 2;
}
.hero-meta .dot {
    display: inline-block; width: 6px; height: 6px; background: var(--gold);
    border-radius: 50%; margin-right: 10px; box-shadow: 0 0 16px var(--gold);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }

.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px); align-items: start; width: 100%;
}
.hero-grid.hero-grid-center {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}
.hero-logo-side-center { min-height: auto; margin-bottom: -16px; }
.hero-grid.hero-grid-center .hero-logo-wrap {
    width: clamp(240px, 26vw, 384px);
}
.hero-headline.hero-headline-center {
    max-width: 980px;
    margin-top: 8px;
    font-size: clamp(22px, 2.8vw, 42px);
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.01em;
}
.hero-headline.hero-headline-center em { display: inline; }

.contact h2.contact-heading-sm {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(44px, 6.4vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.02em;
}
.contact h2.contact-heading-sm em {
    color: var(--gold-soft);
    font-style: normal;
    font-weight: 500;
}
.hero-headline {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(44px, 6.4vw, 104px); line-height: 0.98;
    letter-spacing: -0.02em; color: var(--bone);
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
}
.hero-headline em {
    font-style: normal; color: var(--gold-soft); font-weight: 500;
    display: block;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
}
.hero-headline .small-line {
    display: block; font-family: var(--font-mono);
    font-size: clamp(11px, 0.95vw, 13px); letter-spacing: 0.36em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 22px; font-style: normal;
}

.hero-side { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }

.hero-logo-side {
    align-items: center;
    justify-content: center;
    padding-top: 0;
    min-height: 320px;
}
.hero-logo-wrap {
    position: relative;
    width: clamp(220px, 28vw, 380px);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-wrap::before,
.hero-logo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(74, 142, 255, 0.28), transparent 60%);
    filter: blur(40px);
    z-index: -1;
    animation: heroLogoPulse 4s ease-in-out infinite;
}
.hero-logo-wrap::after {
    background: radial-gradient(circle at center, rgba(92, 231, 255, 0.18), transparent 65%);
    animation-delay: 2s;
    transform: scale(0.85);
}
.hero-logo-img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(74, 142, 255, 0.35));
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.hero-logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 40px rgba(92, 231, 255, 0.55));
}
@keyframes heroLogoPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
.hero-lede {
    font-family: var(--font-serif); font-style: normal;
    font-size: clamp(20px, 1.5vw, 26px); line-height: 1.45;
    color: var(--bone); border-left: 1px solid var(--gold); padding-left: 22px;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 18px 28px; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.28em; text-transform: uppercase;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
    border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--bone); color: var(--bone); }
.btn i { font-size: 12px; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.hero-foot {
    position: absolute; bottom: 36px; left: var(--gutter); right: var(--gutter);
    display: flex; align-items: center; justify-content: space-between;
    color: var(--muted); font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.28em; text-transform: uppercase;
}
.hero-scroll { display: inline-flex; align-items: center; gap: 14px; }
.hero-scroll .line {
    display: inline-block; width: 60px; height: 1px;
    background: var(--bone); position: relative; overflow: hidden;
}
.hero-scroll .line::after {
    content: ""; position: absolute; top: 0; left: -60px;
    width: 60px; height: 1px; background: var(--gold);
    animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine { 0% { left: -60px; } 60%,100% { left: 60px; } }

/* ---------- Section head ---------- */
.section-head {
    display: grid; grid-template-columns: 120px 1fr; gap: 48px; align-items: end;
    margin-bottom: clamp(40px, 6vw, 88px); padding-bottom: 28px;
    border-bottom: 1px solid var(--rule);
}
.section-head.section-head-clean { grid-template-columns: 1fr; }
.section-num {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.32em;
    color: var(--gold); text-transform: uppercase;
}
.section-head h2 {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(36px, 5.4vw, 80px); line-height: 1.0;
    letter-spacing: -0.02em; color: var(--bone);
}
.section-head h2 em { font-style: normal; color: var(--gold-soft); font-weight: 400; }
.section-head .sub {
    font-family: var(--font-serif); font-style: normal;
    font-size: 22px; line-height: 1.4; color: var(--muted);
    margin-top: 18px; max-width: 640px;
}

/* ---------- Service cards ---------- */
.svc-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px; background: var(--rule);
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.svc {
    background: var(--ink); padding: 0 0 56px;
    display: flex; flex-direction: column; gap: 22px;
    transition: background .5s var(--ease); position: relative; overflow: hidden;
}
.svc-media {
    position: relative; width: 100%; aspect-ratio: 16/10;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(74, 142, 255, 0.10), transparent 60%),
        linear-gradient(160deg, var(--ink-2) 0%, var(--ink-3) 100%);
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    padding: 18px;
}
.svc-media img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain; object-position: center center;
    filter: contrast(1.05) brightness(1);
    transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.svc:hover .svc-media img { transform: scale(1.05); filter: grayscale(0%) contrast(1.1) brightness(1); }
.svc-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(14,14,14,0.45));
    pointer-events: none;
}
.svc-body { padding: 0 40px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.svc::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(201,163,107,0.12), transparent 60%);
    opacity: 0; transition: opacity .5s var(--ease);
}
.svc:hover { background: var(--ink-2); }
.svc:hover::before { opacity: 1; }
.svc-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; color: var(--gold); text-transform: uppercase; }
.svc h3 {
    font-family: var(--font-serif); font-weight: 500;
    font-size: 30px; line-height: 1.1; color: var(--bone); letter-spacing: -0.01em;
}
.svc p { font-size: 15px; }
.svc-list {
    list-style: none; margin-top: 8px; display: grid; gap: 10px;
    border-top: 1px solid var(--rule); padding-top: 18px;
}
.svc-list li {
    color: var(--bone); font-size: 14px; display: flex; gap: 14px;
    align-items: flex-start; opacity: 0.85;
}
.svc-list li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
.svc-arrow {
    margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center;
    gap: 14px; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.28em; text-transform: uppercase; color: var(--bone);
    transition: gap .3s var(--ease), color .3s var(--ease);
}
.svc:hover .svc-arrow { gap: 22px; color: var(--gold); }

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.team-card {
    background: var(--ink-2);
    padding: 0 0 28px;
    transition: background .4s var(--ease);
}
.team-card:hover { background: var(--ink-3); }
.team-photo {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--ink-3);
    margin-bottom: 24px;
    position: relative;
}
.team-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
    filter: grayscale(60%) contrast(1.08);
    transition: transform 1.2s var(--ease), filter 1s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); filter: grayscale(0%) contrast(1.12); }
.team-info { padding: 0 28px; }
.team-info .role {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.team-info h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--bone);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.team-info p { font-size: 14px; line-height: 1.6; }
.team-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 16px;
    border: 1px solid var(--rule);
    color: var(--bone);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.team-link i { color: var(--gold); font-size: 14px; transition: color .3s var(--ease); }
.team-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}
.team-link:hover i { color: var(--ink); }

/* ---------- Brand strip ---------- */
.brand-strip {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 56px 0;
    background: var(--ink);
}
.brand-strip-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 36px; gap: 24px; flex-wrap: wrap;
}
.brand-strip-head h3 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.8vw, 38px);
    font-weight: 500;
    color: var(--bone);
    letter-spacing: -0.01em;
}
.brand-strip-head h3 em { font-style: normal; color: var(--gold-soft); }
.brand-strip-head .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
}
.brand-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.brand-cell {
    background: #ffffff;
    padding: 36px 28px;
    display: flex; align-items: center; justify-content: center;
    min-height: 180px;
    border-radius: 4px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74, 142, 255, 0.18);
}
.brand-cell img {
    max-height: 96px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.brand-marquee {
    overflow: hidden;
    margin-top: 36px;
    padding: 12px 0;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: brandScroll 36s linear infinite;
}
.brand-marquee-track .brand-cell {
    flex: 0 0 auto;
    width: clamp(220px, 22vw, 300px);
    min-height: 160px;
    padding: 28px 36px;
    margin: 0;
}
.brand-marquee-track .brand-cell img {
    max-height: 100px;
    max-width: 90%;
}
@keyframes brandScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }

/* ---------- Marquee ---------- */
.marquee {
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    overflow: hidden; padding: 28px 0; background: var(--ink-2);
}
.marquee-track {
    display: flex; gap: 80px; animation: marqueeScroll 38s linear infinite;
    width: max-content; align-items: center;
}
.marquee-track span {
    font-family: var(--font-serif); font-style: normal; font-size: 32px;
    color: var(--bone); opacity: 0.65; white-space: nowrap; letter-spacing: -0.01em;
}
.marquee-track span::after {
    content: "✦"; margin-left: 80px; color: var(--gold); font-style: normal; font-size: 18px;
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-img {
    position: relative; aspect-ratio: 4/5; overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(74, 142, 255, 0.10), transparent 60%),
        linear-gradient(160deg, var(--ink-2) 0%, var(--ink-3) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.split-img img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain; object-position: center center;
    filter: contrast(1.05) brightness(1);
    transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.split-img:hover img { transform: scale(1.04); filter: grayscale(0%) contrast(1.1); }
.split-img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(14,14,14,0.55));
    pointer-events: none;
}
.split-copy h2 {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(36px, 5vw, 64px); line-height: 1.05;
    color: var(--bone); margin-bottom: 28px; letter-spacing: -0.02em;
}
.split-copy h2 em { font-style: normal; color: var(--gold-soft); font-weight: 400; }
.split-copy h3 {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1;
    color: var(--bone); margin-bottom: 20px; letter-spacing: -0.015em;
}
.split-copy h3 em { font-style: normal; color: var(--gold-soft); font-weight: 400; }
.split-copy p { margin-bottom: 18px; font-size: 17px; }
.split-copy .lede {
    color: var(--bone); font-style: normal; font-family: var(--font-serif);
    font-size: 24px; line-height: 1.45; margin-bottom: 28px;
    border-left: 1px solid var(--gold); padding-left: 24px;
}
.split-list {
    list-style: none; display: grid; gap: 14px;
    margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule);
}
.split-list li {
    display: grid; grid-template-columns: 50px 1fr; gap: 18px;
    color: var(--bone); font-size: 15px; align-items: baseline;
}
.split-list--compact { gap: 10px; margin-top: 22px; padding-top: 20px; }
.split-list--compact li {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.4;
}
.split-list--compact .n { font-size: 11px; letter-spacing: 0.16em; }
.split-list li .n { font-family: var(--font-mono); font-size: 11px; color: var(--gold); letter-spacing: 0.2em; }

/* ---------- Work list ---------- */
.work-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.work {
    display: grid; grid-template-columns: 80px 1fr 240px 200px 32px;
    gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--rule);
    align-items: center; transition: padding .35s var(--ease), background .35s var(--ease);
    position: relative; overflow: hidden;
}
.work:hover { padding: 36px 24px; background: var(--ink-2); }
.work .w-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; color: var(--gold); }
.work .w-title {
    font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 500; color: var(--bone); letter-spacing: -0.01em;
}
.work .w-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.work .w-result { font-family: var(--font-serif); font-style: normal; font-size: 17px; color: var(--bone); opacity: 0.85; }
.work:hover .w-arrow { transform: translateX(8px); color: var(--gold); }

.work.work-static {
    grid-template-columns: 80px 1fr 240px 1fr;
    cursor: default;
}
.work.work-static:hover { padding: 36px 0; background: transparent; }
@media (max-width: 1100px) {
    .work.work-static { grid-template-columns: 60px 1fr 160px; }
    .work.work-static .w-result { display: none; }
}
@media (max-width: 820px) {
    .work.work-static { grid-template-columns: 50px 1fr; gap: 18px; }
    .work.work-static .w-tag { display: none; }
}

/* ---------- Capability grid ---------- */
.cap-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule);
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.cap { background: var(--ink); padding: 56px 48px; display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: start; }
.cap-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; color: var(--gold); }
.cap h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--bone); margin-bottom: 14px; letter-spacing: -0.01em; }
.cap p { font-size: 15px; }

/* ---------- Contact ---------- */
.contact {
    background:
        radial-gradient(ellipse at 18% 0%, rgba(74, 142, 255, 0.20), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(92, 231, 255, 0.10), transparent 60%),
        linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
    color: var(--bone);
    padding: clamp(80px, 11vw, 160px) 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(199, 219, 246, 0.03) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(90deg, rgba(199, 219, 246, 0.03) 0 1px, transparent 1px 80px);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}
.contact .shell { position: relative; z-index: 2; }
.contact .eyebrow { color: var(--ember); }
.contact .eyebrow::before { background: var(--ember); }
.contact h2 {
    font-family: var(--font-serif); font-size: clamp(48px, 7vw, 110px);
    font-weight: 500; color: var(--bone); line-height: 0.96;
    letter-spacing: -0.025em; margin: 24px 0 32px;
}
.contact h2 em { font-style: normal; color: var(--ember); font-weight: 600; }
.contact p { color: var(--muted); font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); margin-top: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-block { border-top: 1px solid var(--rule); padding-top: 24px; }
.contact-block .label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.contact-block .val { font-family: var(--font-serif); font-size: 22px; color: var(--bone); font-weight: 500; }
.contact-block .val a:hover { color: var(--ember); }

.form { display: grid; gap: 22px; position: relative; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label {
    display: flex; flex-direction: column; gap: 8px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--gold);
}
.form input, .form select, .form textarea {
    background: rgba(199, 219, 246, 0.04);
    border: 1px solid var(--rule);
    padding: 14px 16px; font-family: var(--font-sans); font-size: 16px;
    color: var(--bone); outline: none;
    transition: border-color .3s var(--ease), background .3s var(--ease);
    letter-spacing: 0; text-transform: none;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(232, 238, 247, 0.32); font-style: normal; }
.form input:focus, .form select:focus, .form textarea:focus {
    border-color: var(--ember);
    background: rgba(92, 231, 255, 0.05);
}
.form textarea { resize: vertical; min-height: 100px; }
.form select { appearance: none; padding-right: 32px; color: var(--bone); }
.form select option { background: var(--ink-2); color: var(--bone); }
.form .submit {
    display: inline-flex; align-items: center; gap: 14px; margin-top: 12px;
    padding: 20px 32px; background: var(--ember); color: var(--ink);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
    text-transform: uppercase; font-weight: 500;
    transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
    justify-self: start; border: 1px solid var(--ember);
}
.form .submit:hover { background: transparent; color: var(--ember); transform: translateX(4px); }
.form .honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bone); padding: 96px var(--gutter) 32px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--rule); }
.footer-brand .word { font-family: var(--font-serif); font-size: 56px; line-height: 1; color: var(--bone); margin-bottom: 18px; font-weight: 500; }
.footer-brand p { max-width: 360px; font-size: 15px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 400; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-family: var(--font-serif); font-size: 17px; color: var(--bone); opacity: 0.78; transition: opacity .3s var(--ease), color .3s var(--ease); }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bot { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* ---------- Process Stage (Before / Insignia toggle) ---------- */
.process-toggle-wrap {
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.process-toggle {
    display: inline-flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.process-toggle:hover { border-color: var(--gold); background: rgba(74,142,255,0.08); }
.process-toggle__label {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--muted);
    transition: color .3s var(--ease);
}
.process-toggle[data-mode="before"] .process-toggle__label--before { color: var(--ember); }
.process-toggle[data-mode="after"]  .process-toggle__label--after  { color: var(--gold); }
.process-toggle__pill {
    position: relative;
    width: 44px; height: 22px;
    background: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 999px;
}
.process-toggle__dot {
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--ember);
    transition: left .35s cubic-bezier(.5,1.6,.4,1), background .3s var(--ease);
}
.process-toggle[data-mode="after"] .process-toggle__dot {
    left: 24px;
    background: var(--gold);
}
.process-toggle__hint {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--muted);
}

.process-stage {
    position: relative;
    margin-top: 48px;
    padding: 56px 32px 24px;
    border: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
    border-radius: 4px;
    overflow: hidden;
    min-height: 540px;
}
.process-stage::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(600px 300px at 20% 30%, rgba(74,142,255,.08), transparent 60%),
        radial-gradient(500px 280px at 80% 70%, rgba(92,231,255,.06), transparent 60%);
    pointer-events: none;
}

.process-stage__svg {
    position: absolute;
    inset: 30px 30px auto 30px;
    width: calc(100% - 60px);
    height: 380px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s var(--ease);
}
.process-stage[data-mode="before"] .process-stage__svg--before,
.process-stage[data-mode="after"]  .process-stage__svg--after { opacity: 1; }

.ps-path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 6 8;
    stroke-dashoffset: 0;
    animation: ps-flow 14s linear infinite;
    opacity: .85;
}
.ps-path--after { stroke-width: 2.5; opacity: .9; }
@keyframes ps-flow { to { stroke-dashoffset: -280; } }

.ps-pulse {
    transform-origin: center;
    transform-box: fill-box;
    animation: ps-pulse 2.4s var(--ease) infinite;
}
.ps-pulse:nth-of-type(2) { animation-delay: .35s; }
.ps-pulse:nth-of-type(3) { animation-delay: .7s; }
.ps-pulse:nth-of-type(4) { animation-delay: 1.05s; }
@keyframes ps-pulse {
    0%, 100% { opacity: .25; transform: scale(.7); }
    50%      { opacity: 1;   transform: scale(1.5); }
}

.process-stage__nodes {
    position: absolute;
    inset: 30px 30px auto 30px;
    height: 380px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s var(--ease) .1s;
}
.process-stage[data-mode="before"] .process-stage__nodes--before,
.process-stage[data-mode="after"]  .process-stage__nodes--after {
    opacity: 1;
    pointer-events: auto;
}

.ps-node {
    position: absolute;
    left: var(--x); top: var(--y);
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ps-node__icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    color: var(--c, var(--bone));
    font-size: 20px;
    backdrop-filter: blur(6px);
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.ps-node:hover .ps-node__icon {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--c, var(--gold));
    box-shadow: 0 0 24px color-mix(in srgb, var(--c, var(--gold)) 40%, transparent);
}
.ps-node__label {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--bone-2); text-align: center;
    max-width: 130px;
}

/* AFTER state — flowchart cards with arrows */
.process-flowchart {
    position: absolute;
    inset: 30px 30px auto 30px;
    height: 380px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s var(--ease) .1s;
}
.process-stage[data-mode="after"] .process-flowchart {
    opacity: 1;
    pointer-events: auto;
}

.pf-card {
    position: relative;
    background: linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
    border: 1px solid rgba(74,142,255,0.22);
    border-radius: 8px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    max-height: 280px;
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.process-stage[data-mode="after"] .pf-card {
    animation: pf-rise .65s var(--ease) backwards;
    animation-delay: calc(var(--idx) * .12s + .25s);
}
@keyframes pf-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pf-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74,142,255,0.18);
}
.pf-card__phase {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}
.pf-card__icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: rgba(74,142,255,0.1);
    border: 1px solid rgba(74,142,255,0.2);
    color: var(--gold);
    font-size: 18px;
    margin-top: 4px;
}
.pf-card__icon--ai {
    background: linear-gradient(135deg, rgba(74,142,255,0.2) 0%, rgba(92,231,255,0.15) 100%);
    border-color: rgba(92,231,255,0.4);
    color: var(--ember);
    box-shadow: 0 0 16px rgba(92,231,255,0.2);
}
.pf-card__title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--bone);
    letter-spacing: -0.005em;
    margin: 0;
}
.pf-card__desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--bone-2);
    opacity: 0.85;
    margin: 0;
}
.pf-card__check {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    padding-top: 8px;
    border-top: 1px dashed rgba(74,142,255,0.18);
    width: 100%;
}
.pf-card__check i { font-size: 9px; }
.pf-card--ai {
    border-color: rgba(92,231,255,0.4);
    background: linear-gradient(180deg, rgba(92,231,255,0.06) 0%, var(--ink-2) 100%);
}
.pf-card--ai .pf-card__phase {
    background: var(--ember);
}
.pf-card--ai .pf-card__check {
    color: var(--ember);
    border-top-color: rgba(92,231,255,0.25);
}

.pf-arrow {
    width: 48px;
    display: grid; place-items: center;
    opacity: 0;
}
.pf-arrow svg {
    width: 100%;
    height: 24px;
}
.pf-arrow svg path {
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
}

/* ---------- Services Map (homepage triangular constellation) ---------- */
.svc-map {
    position: relative;
    margin-top: 56px;
    padding: 90px 40px 80px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
    overflow: hidden;
    min-height: 820px;
}
.svc-map--six { min-height: 1080px; padding: 90px 32px 80px; }
.svc-map--six::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 460px at 50% 50%, rgba(74,142,255,.12), transparent 60%),
        radial-gradient(420px 240px at 14% 14%, rgba(34,211,238,.06), transparent 60%),
        radial-gradient(420px 240px at 86% 14%, rgba(244,63,94,.06), transparent 60%),
        radial-gradient(420px 240px at 14% 86%, rgba(52,211,153,.06), transparent 60%),
        radial-gradient(420px 240px at 86% 86%, rgba(167,139,250,.06), transparent 60%);
    pointer-events: none;
}
.svc-map--six .svc-hub { width: 320px; padding: 22px 24px; }
.svc-map--six .svc-hub h3 { font-size: 19px; }
.svc-map--six .svc-hub__icon { width: 50px; height: 50px; font-size: 20px; }
.svc-map::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 360px at 50% 50%, rgba(74,142,255,.10), transparent 60%),
        radial-gradient(420px 240px at 16% 82%, rgba(167,139,250,.06), transparent 60%),
        radial-gradient(420px 240px at 84% 82%, rgba(74,142,255,.06), transparent 60%);
    pointer-events: none;
}
.svc-map__label {
    position: absolute;
    top: 28px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--muted);
    z-index: 3;
}

.svc-map__core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 30px 36px;
    border: 1px solid rgba(74,142,255,0.5);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(74,142,255,0.2) 0%, rgba(92,231,255,0.08) 100%);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
    box-shadow: 0 0 72px rgba(74,142,255,0.32), inset 0 0 36px rgba(74,142,255,0.1);
    animation: sm-core-pulse 3.6s var(--ease) infinite;
}
.svc-map__core i { font-size: 38px; }
@keyframes sm-core-pulse {
    0%, 100% { box-shadow: 0 0 72px rgba(74,142,255,0.32), inset 0 0 36px rgba(74,142,255,0.1); }
    50%      { box-shadow: 0 0 110px rgba(74,142,255,0.5), inset 0 0 48px rgba(74,142,255,0.2); }
}

.svc-map__svg {
    position: absolute;
    inset: 50px 30px;
    width: calc(100% - 60px);
    height: calc(100% - 100px);
    pointer-events: none;
}
.sm-path, .sm-arc {
    fill: none;
    stroke-linecap: round;
}
.sm-path {
    stroke-width: 2.5;
    stroke-dasharray: 8 12;
    stroke-dashoffset: 0;
    fill: none;
    animation: sm-flow 8s linear infinite;
    opacity: .95;
}
.sm-arc {
    stroke-width: 1.5;
    stroke-dasharray: 4 10;
    fill: none;
    animation: sm-flow 18s linear infinite;
    opacity: .55;
}
.svc-map.in .sm-path:nth-of-type(2) { animation-delay: -1s; }
.svc-map.in .sm-path:nth-of-type(3) { animation-delay: -2s; }
.svc-map.in .sm-path:nth-of-type(4) { animation-delay: -3s; }
.svc-map.in .sm-path:nth-of-type(5) { animation-delay: -4s; }
.svc-map.in .sm-path:nth-of-type(6) { animation-delay: -5s; }
.svc-map.in .sm-path:nth-of-type(7) { animation-delay: -6s; }
.svc-map.in .sm-path:nth-of-type(2) { animation-delay: -3s; }
.svc-map.in .sm-path:nth-of-type(3) { animation-delay: -6s; }
.svc-map.in .sm-arc:nth-of-type(5) { animation-delay: -4s; }
.svc-map.in .sm-arc:nth-of-type(6) { animation-delay: -8s; }
@keyframes sm-flow { to { stroke-dashoffset: -280; } }

.sm-pulse {
    transform-origin: center;
    transform-box: fill-box;
    animation: sm-pulse 2.6s var(--ease) infinite;
}
.sm-pulse:nth-of-type(8) { animation-delay: .5s; }
.sm-pulse:nth-of-type(9) { animation-delay: 1s; }
@keyframes sm-pulse {
    0%, 100% { opacity: .25; transform: scale(.7); }
    50%      { opacity: 1;   transform: scale(1.5); }
}

.svc-hub {
    position: absolute;
    left: var(--x); top: var(--y);
    transform: translate(-50%, -50%);
    width: 340px;
    padding: 24px 26px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: rgba(10, 20, 40, 0.85);
    backdrop-filter: blur(10px);
    z-index: 3;
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.svc-hub:hover {
    transform: translate(-50%, -50%) translateY(-5px);
    border-color: var(--c, var(--gold));
    background: rgba(10, 20, 40, 0.97);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--c, var(--gold)) 32%, transparent);
}
.svc-hub header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 14px;
}
.svc-hub__icon {
    width: 56px; height: 56px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--c, var(--gold)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 42%, transparent);
    color: var(--c, var(--gold));
    font-size: 22px;
}
.svc-hub__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c, var(--muted));
    margin-bottom: 4px;
    opacity: .9;
}
.svc-hub__tag--gold {
    background: var(--gold);
    color: var(--ink);
    padding: 3px 10px;
    border-radius: 4px;
}
.svc-hub h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--bone);
    letter-spacing: -0.005em;
    line-height: 1.2;
    margin: 0;
}
.svc-hub p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--bone-2);
    opacity: 0.88;
    margin-bottom: 14px;
}
.svc-hub ul {
    list-style: none;
    padding: 0;
    display: flex; flex-direction: column; gap: 8px;
    border-top: 1px dashed color-mix(in srgb, var(--c, var(--gold)) 24%, transparent);
    padding-top: 12px;
}
.svc-hub ul li {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.svc-hub ul li i {
    color: var(--c, var(--gold));
    font-size: 10px;
}

@media (max-width: 1100px) {
    .svc-map, .svc-map--six { padding: 60px 16px 32px; min-height: auto; }
    .svc-map__svg { display: none; }
    .svc-map__core { position: relative; top: auto; left: auto; transform: none; margin: 0 auto 32px; }
    .svc-hub, .svc-map--six .svc-hub { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: 520px; margin: 0 auto 18px; }
    .svc-hub:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    .sm-path, .sm-arc, .sm-pulse, .svc-map__core {
        animation: none !important;
    }
}

/* ---------- AI Belt (horizontal conveyor pipeline) ---------- */
.ai-belt {
    position: relative;
    margin-top: 56px;
    padding: 56px 28px 88px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
    overflow: hidden;
}
.ai-belt::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 320px at 50% 110%, rgba(74,142,255,.12), transparent 60%),
        radial-gradient(420px 220px at 12% 18%, rgba(34,211,238,.05), transparent 60%),
        radial-gradient(420px 220px at 88% 18%, rgba(74,142,255,.05), transparent 60%);
    pointer-events: none;
}
.ai-belt__label {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 36px;
    position: relative; z-index: 2;
}

.ai-belt__cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 14px;
    position: relative; z-index: 2;
}
.abc {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    padding: 4px 0;
    color: var(--muted);
}
.abc--in   { color: #22d3ee; }
.abc--ana  { color: #7dd3fc; }
.abc--test { color: #a78bfa; }
.abc--test:nth-of-type(4) { color: #fb923c; }
.abc--out  { color: var(--gold); font-weight: 600; }

.ai-belt__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.ab-card {
    position: relative;
    padding: 16px 14px 16px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: rgba(10, 20, 40, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s var(--ease), transform .55s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.ai-belt.in .ab-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--idx) * .12s + .15s);
}
.ab-card::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -22px;
    width: 1px; height: 22px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--gold)) 60%, transparent) 0%, transparent 100%);
    transform: translateX(-50%);
}
.ab-card:hover {
    transform: translateY(-4px);
    border-color: var(--c, var(--gold));
    background: rgba(10, 20, 40, 0.98);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--c, var(--gold)) 30%, transparent);
}
.ab-card header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.ab-card__phase {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c, var(--muted));
    padding: 3px 7px;
    border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 32%, transparent);
    border-radius: 4px;
    background: color-mix(in srgb, var(--c, var(--gold)) 8%, transparent);
}
.ab-card__phase--out {
    color: var(--ink);
    background: var(--gold);
    border-color: var(--gold);
}
.ab-card__icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 7px;
    background: color-mix(in srgb, var(--c, var(--gold)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 42%, transparent);
    color: var(--c, var(--gold));
    font-size: 13px;
}
.ab-card__icon--gold {
    background: rgba(74,142,255,0.18);
    border-color: rgba(74,142,255,0.5);
    color: var(--gold);
}
.ab-card h3 {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--bone);
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin: 0 0 6px;
}
.ab-card p {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--bone-2);
    opacity: 0.82;
    margin-bottom: 10px;
}
.ab-card ul {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    display: flex; flex-direction: column; gap: 4px;
    border-top: 1px dashed color-mix(in srgb, var(--c, var(--gold)) 26%, transparent);
}
.ab-card ul li {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.ab-card ul li i {
    color: var(--c, var(--gold));
    font-size: 8px;
}
.ab-card--out {
    border-color: rgba(74,142,255,0.45);
    background: linear-gradient(180deg, rgba(74,142,255,0.1) 0%, rgba(10,20,40,0.92) 100%);
}

/* Conveyor belt */
.ai-belt__conveyor {
    position: absolute;
    left: 28px; right: 28px;
    bottom: 30px;
    height: 32px;
    z-index: 2;
}
.ai-belt__rail {
    position: absolute;
    left: 0; right: 0; top: 50%;
    transform: translateY(-50%);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        rgba(74,142,255,0.05) 0%,
        rgba(74,142,255,0.5) 10%,
        var(--gold) 50%,
        rgba(92,231,255,0.5) 90%,
        rgba(92,231,255,0.05) 100%);
    box-shadow: 0 0 16px rgba(74,142,255,0.35);
    overflow: hidden;
}
.ai-belt__packets {
    position: absolute; inset: -2px 0;
    background-image: repeating-linear-gradient(90deg,
        rgba(255,255,255,0.65) 0 6px,
        transparent 6px 28px);
    background-size: 56px 100%;
    animation: belt-flow 1.6s linear infinite;
    mix-blend-mode: screen;
    opacity: .7;
}
@keyframes belt-flow {
    from { background-position: 0 0; }
    to   { background-position: 56px 0; }
}

.ai-belt__node {
    position: absolute;
    left: var(--p); top: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--c, var(--gold));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--gold)) 18%, transparent);
    z-index: 2;
    animation: belt-node-pulse 2.4s var(--ease) infinite;
}
.ai-belt__node:nth-of-type(2) { animation-delay: .35s; }
.ai-belt__node:nth-of-type(3) { animation-delay: .7s; }
.ai-belt__node:nth-of-type(4) { animation-delay: 1.05s; }
.ai-belt__node:nth-of-type(5) { animation-delay: 1.4s; }
.ai-belt__node--end {
    background: var(--gold);
    border-color: var(--ember);
    box-shadow: 0 0 0 5px rgba(92,231,255,0.2), 0 0 18px rgba(74,142,255,0.45);
}
@keyframes belt-node-pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--gold)) 18%, transparent); }
    50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c, var(--gold)) 8%, transparent); }
}

.ai-belt__legend {
    position: absolute;
    bottom: -22px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}
.ai-belt__legend--start { left: 0; }
.ai-belt__legend--end { right: 0; color: var(--gold); }

@media (max-width: 1100px) {
    .ai-belt { padding: 48px 18px 80px; }
    .ai-belt__cats, .ai-belt__grid { grid-template-columns: 1fr 1fr; }
    .ai-belt__conveyor { display: none; }
    .ab-card::after { display: none; }
}
@media (max-width: 720px) {
    .ai-belt__cats, .ai-belt__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-belt__packets, .ai-belt__node, .ab-card {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* AI Models aside */
.ai-models {
    margin-top: 48px;
    padding: 32px;
    border: 1px dashed var(--rule);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
}
.ai-models__head h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    margin: 8px 0;
    color: var(--bone);
}
.ai-models__head p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.ai-models__grid {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.ai-models__chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--bone);
    background: rgba(255,255,255,0.03);
    transition: border-color .3s var(--ease), color .3s var(--ease);
}
.ai-models__chip i { color: var(--gold); }
.ai-models__chip em { color: var(--muted); font-style: normal; }
.ai-models__chip:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 720px) {
    .ai-pipeline { padding-left: 48px; }
    .ai-pipeline__rail { left: 16px; }
    .ai-stage::before { left: -32px; width: 30px; }
    .ai-stage__dot { left: -37px; }
    .ai-stage { padding: 18px 18px 20px; }
    .ai-models { grid-template-columns: 1fr; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-pipeline__rail-fill,
    .ai-stage,
    .ai-stage__dot {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        bottom: 0 !important;
    }
}
.process-stage[data-mode="after"] .pf-arrow {
    animation: pf-arrow-fade .4s var(--ease) forwards;
    animation-delay: calc(var(--idx, 0) * .12s + .55s);
}
.process-stage[data-mode="after"] .pf-arrow:nth-of-type(2) { animation-delay: .55s; }
.process-stage[data-mode="after"] .pf-arrow:nth-of-type(4) { animation-delay: .75s; }
.process-stage[data-mode="after"] .pf-arrow:nth-of-type(6) { animation-delay: .95s; }
.process-stage[data-mode="after"] .pf-arrow svg path {
    animation: pf-arrow-draw .8s var(--ease) forwards;
    animation-delay: inherit;
}
@keyframes pf-arrow-fade {
    to { opacity: 1; }
}
@keyframes pf-arrow-draw {
    to { stroke-dashoffset: 0; }
}

.process-stage__mode-label {
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.process-stage[data-mode="before"] .process-stage__mode-label--before,
.process-stage[data-mode="after"]  .process-stage__mode-label--after { opacity: 1; }

.process-stage__badge {
    position: absolute;
    top: 16px; right: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(92,231,255,0.4);
    background: rgba(92,231,255,0.08);
    border-radius: 999px;
    color: var(--ember);
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
    box-shadow: 0 0 24px rgba(92,231,255,0.15);
    opacity: 0;
    transition: opacity .5s var(--ease) .4s, transform .35s var(--ease);
}
.process-stage[data-mode="after"] .process-stage__badge { opacity: 1; }
.process-stage[data-mode="before"] .process-stage__badge { transform: translateY(-8px); }

.process-stage__chips {
    position: absolute;
    bottom: 30px; left: 30px; right: 30px;
}
.ps-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.process-stage[data-mode="before"] .ps-chips--before,
.process-stage[data-mode="after"]  .ps-chips--after {
    opacity: 1;
}
.process-stage[data-mode="before"] .ps-chips--after,
.process-stage[data-mode="after"]  .ps-chips--before {
    pointer-events: none;
    position: absolute; inset: 0;
}
.ps-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    background: rgba(255,255,255,0.04);
    color: var(--bone-2);
    font-size: 12px;
    backdrop-filter: blur(6px);
}
.ps-chip i { color: #f43f5e; font-size: 12px; }
.ps-chip--ok { border-color: rgba(74,142,255,0.3); background: rgba(74,142,255,0.06); }
.ps-chip--ok i { color: var(--gold); }

@media (max-width: 1100px) {
    .process-stage { min-height: auto; padding: 56px 20px 24px; }
    .process-stage__svg, .process-stage__nodes--before { display: none; }
    .process-stage__nodes { position: relative; inset: auto; height: auto; opacity: 1; pointer-events: auto; }
    .process-flowchart {
        position: relative; inset: auto; height: auto;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(200px, auto);
        gap: 20px;
    }
    .pf-arrow { display: none; }
    .pf-card { max-height: none; }
    .process-stage__chips { position: relative; inset: auto; margin-top: 32px; }
    .ps-chips { grid-template-columns: 1fr 1fr; }
    .process-stage__badge { top: 14px; right: 14px; }
    .process-stage__mode-label { top: 22px; }
    .process-toggle-wrap { align-items: flex-start; margin-top: 24px; }
}
@media (max-width: 720px) {
    .process-flowchart { grid-template-columns: 1fr; }
    .ps-chips { grid-template-columns: 1fr; }
    .process-stage__badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ps-path, .ps-pulse, .ps-node--after, .process-stage__badge {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }

/* ---------- Back to top ---------- */
.back-top {
    position: fixed; right: 24px; bottom: 24px;
    width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid var(--rule); background: var(--ink-2); color: var(--bone);
    display: flex; align-items: center; justify-content: center; z-index: 50;
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* ---------- Form consent ---------- */
.form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    margin: -4px 0 4px;
    cursor: pointer;
}
.form-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--gold);
    flex-shrink: 0;
}
.form-consent a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.form-consent a:hover { opacity: .85; }

.footer-legal { margin-left: auto; }
.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color .2s var(--ease);
}
.footer-legal a:hover { color: var(--gold); }

/* ---------- Section / layout modifiers ---------- */
.section--alt { background: var(--ink-2); }
.brand-strip-head--center { justify-content: center; text-align: center; }
.contact-intro { max-width: 640px; }
.split-copy h2,
.split-copy h3 { margin-top: 18px; }

/* ---------- Team photo positioning ---------- */
.team-photo--isaac { object-position: center 30%; }
.team-photo--tanya {
    object-position: center 25%;
    transform: scale(1.35);
    transform-origin: center 30%;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .brand-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
    .cap-grid { grid-template-columns: 1fr; }
    .work { grid-template-columns: 60px 1fr 160px 32px; }
    .work .w-result { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .nav-burger { display: inline-flex; }

    .nav-menu {
        position: fixed; inset: 0;
        flex-direction: column; justify-content: flex-start; align-items: stretch;
        gap: 0;
        padding: 96px 28px calc(160px + env(safe-area-inset-bottom));
        background:
            radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, 0.10), transparent 55%),
            radial-gradient(ellipse at 100% 100%, rgba(74, 142, 255, 0.10), transparent 60%),
            linear-gradient(180deg, rgba(8, 12, 22, 0.985) 0%, rgba(5, 10, 20, 0.985) 100%);
        backdrop-filter: blur(6px);
        z-index: 105;
        opacity: 0; pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .35s var(--ease), transform .35s var(--ease);
        overflow-y: auto;
        counter-reset: nav-item;
        -webkit-overflow-scrolling: touch;
    }
    .nav.open .nav-menu::after {
        content: ""; position: fixed; left: 0; right: 0;
        bottom: 0; height: calc(120px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(5, 10, 20, 0) 0%, rgba(5, 10, 20, 0.85) 45%, rgba(5, 10, 20, 0.98) 100%);
        pointer-events: none;
        z-index: 105;
    }
    .nav.open .nav-menu {
        opacity: 1; pointer-events: auto; transform: translateY(0);
        display: flex;
    }

    .nav-menu li {
        counter-increment: nav-item;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .35s var(--ease), transform .35s var(--ease);
        border-bottom: 1px solid rgba(199, 219, 246, 0.08);
    }
    .nav-menu li:first-child { border-top: 1px solid rgba(199, 219, 246, 0.08); }

    .nav.open .nav-menu li { opacity: 1; transform: translateY(0); }
    .nav.open .nav-menu li:nth-child(1) { transition-delay: .08s; }
    .nav.open .nav-menu li:nth-child(2) { transition-delay: .14s; }
    .nav.open .nav-menu li:nth-child(3) { transition-delay: .20s; }
    .nav.open .nav-menu li:nth-child(4) { transition-delay: .26s; }
    .nav.open .nav-menu li:nth-child(5) { transition-delay: .32s; }
    .nav.open .nav-menu li:nth-child(6) { transition-delay: .38s; }

    .nav-menu a {
        position: relative;
        display: flex; align-items: baseline; gap: 18px;
        padding: 22px 8px;
        font-family: var(--font-serif);
        font-size: clamp(26px, 7vw, 34px);
        font-weight: 500;
        line-height: 1.1;
        letter-spacing: -0.01em;
        text-transform: none;
        color: var(--bone);
        opacity: 1;
        transition: color .25s var(--ease), padding .25s var(--ease);
    }
    .nav-menu a::before {
        content: counter(nav-item, decimal-leading-zero);
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: 0.28em;
        color: var(--gold);
        opacity: 0.7;
        min-width: 36px;
        flex-shrink: 0;
    }
    .nav-menu a::after {
        content: ""; position: absolute; left: -28px; top: 50%;
        width: 3px; height: 0; background: var(--gold);
        transform: translateY(-50%);
        transition: height .3s var(--ease);
    }
    .nav-menu a:hover { color: var(--gold); padding-left: 14px; }
    .nav-menu a.active { color: var(--gold); }
    .nav-menu a.active::after { height: 60%; }
    .nav-menu a.active::before { opacity: 1; }

    .nav-cta {
        position: fixed; left: 28px; right: 28px;
        bottom: calc(28px + env(safe-area-inset-bottom));
        display: none;
        justify-content: center; gap: 12px;
        padding: 20px 24px;
        background: var(--gold); color: var(--ink); border-color: var(--gold);
        font-size: 12px; letter-spacing: 0.3em;
        z-index: 107;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .3s var(--ease) .35s, transform .3s var(--ease) .35s, background .25s var(--ease);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    }
    .nav.open .nav-cta {
        display: inline-flex;
        opacity: 1;
        transform: translateY(0);
    }
    .nav.open .nav-cta:hover { background: var(--bone); border-color: var(--bone); }

    body.nav-locked { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu li,
    .nav-menu a,
    .nav-cta { transition: none !important; }
}

@media (max-width: 820px) {
    .rail { display: none; }
    .section-head { grid-template-columns: 1fr; gap: 18px; }
    .svc-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .form .row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
    .stat:last-child { border-bottom: 0; }
    .work { grid-template-columns: 50px 1fr 32px; gap: 18px; }
    .work .w-tag { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bot { flex-direction: column; gap: 14px; }
    .hero-meta { display: none; }
    .team-grid { grid-template-columns: 1fr; }
    .brand-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   MOBILE OPTIMIZATIONS (≤720px) — simplified, lower density
   Desktop styles untouched. Override decoration & sizing only.
   ============================================================ */
@media (max-width: 720px) {
    /* --- Global tightening --- */
    .section { padding: 56px 0; }
    .shell { padding: 0 var(--gutter); }
    .section-head { margin-bottom: 28px; }
    .section-head h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.15; }
    .section-head .sub { font-size: 14px; }

    /* --- Hero: less verticality --- */
    .hero { padding: clamp(96px, 18vh, 120px) var(--gutter) clamp(48px, 8vh, 64px); min-height: 88vh; }
    .hero-headline { font-size: clamp(38px, 10vw, 56px); line-height: 1.05; }
    .hero-headline-center { font-size: clamp(26px, 7vw, 36px); }
    .hero-foot { display: none; }

    /* --- Marquee: smaller text --- */
    .marquee span { font-size: 11px; padding: 14px 18px; }

    /* --- Services Map (constellation) — kill decoration on mobile --- */
    .svc-map, .svc-map--six {
        padding: 36px 14px 28px;
        min-height: auto;
        background: transparent;
        border: 0;
    }
    .svc-map::before, .svc-map--six::before { display: none; }
    .svc-map__label {
        display: none;
    }
    .svc-map__core {
        padding: 16px 20px;
        gap: 6px;
        font-size: 10px;
        border-radius: 12px;
        margin-bottom: 28px;
        box-shadow: 0 0 36px rgba(74,142,255,0.2), inset 0 0 18px rgba(74,142,255,0.06);
        animation: none;
    }
    .svc-map__core i { font-size: 22px; }
    .svc-hub, .svc-map--six .svc-hub {
        width: 100%; max-width: 100%;
        padding: 16px 18px;
        border-radius: 10px;
        margin-bottom: 14px;
        background: rgba(10, 20, 40, 0.6);
    }
    .svc-hub:hover { transform: none; box-shadow: none; }
    .svc-hub header { gap: 10px; margin-bottom: 8px; }
    .svc-hub__icon { width: 38px; height: 38px; font-size: 14px; border-radius: 8px; }
    .svc-map--six .svc-hub__icon { width: 38px; height: 38px; font-size: 14px; }
    .svc-hub__tag { font-size: 9px; letter-spacing: 0.2em; }
    .svc-hub h3, .svc-map--six .svc-hub h3 { font-size: 15px; line-height: 1.2; }
    .svc-hub p { font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
    .svc-hub ul { gap: 5px; padding-top: 8px; }
    .svc-hub ul li { font-size: 10.5px; gap: 6px; }
    .svc-hub ul li i { font-size: 8px; }

    /* --- AI Belt — denser cards --- */
    .ai-belt { padding: 32px 14px 28px; }
    .ai-belt::before { display: none; }
    .ai-belt__label { font-size: 9.5px; margin-bottom: 20px; }
    .ai-belt__cats { display: none; }
    .ai-belt__grid { gap: 12px; }
    .ab-card {
        padding: 14px;
        background: rgba(10, 20, 40, 0.6);
    }
    .ab-card h3 { font-size: 14px; }
    .ab-card p { font-size: 12px; }
    .ab-card ul li { font-size: 10.5px; }

    /* --- Process Stage (Before / Insignia) — flatten --- */
    .process-stage {
        padding: 36px 14px 24px;
        background: transparent;
        border: 0;
    }
    .process-stage::before { display: none; }
    .process-stage__mode-label { font-size: 9.5px; }
    .process-flowchart {
        position: relative; inset: auto;
        height: auto;
        gap: 12px;
        padding: 0;
    }
    .pf-card {
        padding: 14px 16px;
        max-height: none;
        background: rgba(10, 20, 40, 0.6);
    }
    .pf-card__title { font-size: 15px; }
    .pf-card__desc { font-size: 12.5px; line-height: 1.5; }
    .ps-chips { gap: 8px; }
    .ps-chip { padding: 8px 12px; font-size: 11px; }

    /* --- AI Pipeline rail (auditoria-ia) --- */
    .ai-pipeline { padding-left: 36px; gap: 16px; }
    .ai-pipeline__rail { left: 12px; }
    .ai-stage::before { display: none; }
    .ai-stage__dot { left: -28px; width: 10px; height: 10px; border-width: 1.5px; }
    .ai-stage { padding: 14px 16px 16px; background: rgba(10, 20, 40, 0.55); }
    .ai-stage__title { font-size: 15px; }
    .ai-stage__desc { font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
    .ai-stage__list li { font-size: 10.5px; }

    /* --- AI Models aside --- */
    .ai-models { padding: 18px; gap: 16px; margin-top: 28px; }
    .ai-models__head h3 { font-size: 18px; }
    .ai-models__head p { font-size: 12.5px; }
    .ai-models__chip { padding: 8px 12px; font-size: 10.5px; }

    /* --- Service cards (svc grid in servicios) --- */
    .svc { display: flex; flex-direction: column; }
    .svc-media img { aspect-ratio: 16/9; object-fit: cover; }
    .svc-body { padding: 18px; }
    .svc-body h3 { font-size: 18px; margin-bottom: 10px; }
    .svc-body p { font-size: 13px; }
    .svc-list li { font-size: 12px; padding: 6px 0; }

    /* --- Team cards --- */
    .team-photo { aspect-ratio: 4/3; }
    .team-info { padding: 18px; }
    .team-info h3 { font-size: 22px; }
    .team-info p { font-size: 13px; }

    /* --- Toggle Antes/Insignia --- */
    .process-toggle { padding: 6px 12px; gap: 10px; }
    .process-toggle__label { font-size: 10px; letter-spacing: 0.22em; }
    .process-toggle__hint { font-size: 9px; }

    /* --- Cap-grid (model of collab on auditoria-ia) --- */
    .cap-grid { gap: 18px; }
    .cap { padding: 14px 16px; }
    .cap h3 { font-size: 16px; }
    .cap p { font-size: 12.5px; }

    /* --- Contact form --- */
    .contact-info { gap: 14px; }
    .form { padding: 0; }
    .form input, .form select, .form textarea { font-size: 14px; padding: 12px 14px; }
    .submit { padding: 14px 18px; font-size: 12px; }

    /* --- Footer --- */
    .footer { padding: 40px 0 24px; }
    .footer-brand p { font-size: 12.5px; }
    .footer-col h4 { font-size: 11px; margin-bottom: 12px; }
    .footer-col li a { font-size: 12.5px; }
    .footer-bot { font-size: 11px; }

    /* --- Performance: disable heavy infinite animations on mobile --- */
    .ai-ecosystem__core,
    .svc-map__core,
    .ps-path,
    .sm-path,
    .sm-arc,
    .ai-belt__packets {
        animation: none !important;
    }

    /* --- Reveal animations: reduce entrance distance to feel snappier --- */
    .reveal { transform: translateY(12px); }
    .reveal.in { transform: translateY(0); }

    /* --- Back to top button: smaller on mobile --- */
    .back-top { width: 40px; height: 40px; bottom: 18px; right: 18px; font-size: 14px; }
}

/* Even smaller phones (≤480px) */
@media (max-width: 480px) {
    :root { --gutter: 16px; }
    .section { padding: 44px 0; }
    .section-head h2 { font-size: clamp(24px, 7.5vw, 30px); }
    .hero-headline { font-size: clamp(32px, 11vw, 44px); }
    .svc-hub h3, .svc-map--six .svc-hub h3 { font-size: 14px; }
    .pf-card { padding: 12px 14px; }
    .footer-grid { gap: 24px; }
}
