
/* Layout: white page, floating glass nav, split hero, services as ruled rows pairing copy with a built illustration. No SVG, no canvas. */
:root {
  --bg: #ffffff;
  --ink: #142d40;
  --body: #3f566b;
  --muted: #6a8196;
  --accent: #1768a8;
  --accent-soft: #bcd8f1;
  --teal: #0b8f87;
  --line: #dbe6f0;
  --soft: #e4edf6;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: #fff; }
body {
  background: var(--bg); color: var(--body); font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: 0; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: #fff; z-index: 10; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }

/* NAV (client liquid glass) */
.clinivance-nav-wrap {
    position: fixed;
    z-index: 1000;
    top: calc(24px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 48px));
    font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glass-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 76px;
    padding: 0 24px 0 27px;
    border-radius: 100px;
    isolation: isolate;
    overflow: visible;

    background: rgba(255,255,255,.78);

    border: 1px solid rgba(23,104,168,.20);

    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);

    
}

.glass-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: none;
}

/* LOGO */

.brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand svg {
    display: block;
    width: 166px;
    height: auto;
    overflow: visible;
}

/* NAVIGATION LINKS */

.nav-links {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 100px;
    color: #29465b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: color .25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0e568c;
}

/* MOVING GLASS INDICATOR */

.nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    height: 37px;
    width: 70px;
    border-radius: 100px;

    background: rgba(205,230,250,.35);
    border: 1px solid rgba(23,104,168,.22);

   

    transform: translate(0,-50%);
    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        width .35s ease;

    pointer-events: none;
    z-index: 1;
}

/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;
    position: relative;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(23,104,168,.16);
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 17px;
    height: 1.5px;
    background: #24475f;
    border-radius: 4px;
    transition: transform .25s ease, top .25s ease;
}

.menu-toggle span {
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle span::before {
    top: -5px;
}

.menu-toggle span::after {
    top: 5px;
}

.menu-toggle[aria-expanded="true"] span {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 900px) {

    .clinivance-nav-wrap {
        top: calc(14px + env(safe-area-inset-top, 0px));
        width: calc(100% - 28px);
    }

    .glass-nav {
        min-height: 64px;
        padding: 0 14px 0 18px;
        gap: 10px;
    }

    .brand svg {
        width: 137px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border-radius: 22px;

        background: rgba(255,255,255,.92);
        border: 1px solid rgba(23,104,168,.16);

        backdrop-filter: blur(26px) saturate(180%);
        -webkit-backdrop-filter: blur(26px) saturate(180%);

        box-shadow: 0 12px 34px rgba(23,104,168,.12);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 0 18px;
        min-height: 46px;
        font-size: 14px;
    }

    /* Prevents the desktop indicator from shifting on mobile */
    .nav-indicator {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-indicator,
    .menu-toggle span,
    .menu-toggle span::before,
    .menu-toggle span::after {
        transition: none !important;
    }
}

/* HERO */
.hero { display: grid; gap: 48px; padding-block: 132px 56px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1.02fr; gap: 56px; padding-block: 150px 72px; } }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 10.5vw, 5.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.hero h1 span { color: var(--accent); display: block; }
.lede { margin: 26px 0 0; max-width: 50ch; font-size: clamp(1rem, 2.2vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px;
  text-decoration: none; color: var(--accent); background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px -10px rgba(20,45,64,.12); cursor: pointer; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.textlink { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.serves { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; border-block: 1px solid var(--line); padding-block: 18px; font-weight: 700; color: var(--ink); font-size: 14px; }
.serves span.lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-right: 22px; }
.serves em { font-style: normal; padding-inline: 18px; border-left: 1px solid var(--line); }
.serves em:first-of-type { border-left: 0; padding-left: 0; }

/* ILLUSTRATION KIT (HTML + CSS, 1em = 1% of stage width) */
.stage { position: relative; aspect-ratio: 4/3; container-type: inline-size; border: 1px solid var(--line); border-radius: 26px; background-color: #fff;
  background-image: radial-gradient(#dfe9f3 1px, transparent 1.3px); background-size: 16px 16px; overflow: hidden; width: 100%; }
.stage.bare { border: 0; background: #fff; overflow: visible; aspect-ratio: 5/4; }
.art { position: absolute; inset: 0; font-size: 1cqw; line-height: 1.3; color: var(--ink); }
.a { position: absolute; }
.ui { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 1.8em; box-shadow: 0 1.4em 3.2em -1.6em rgba(20,45,64,.3); }
.sk { display: block; height: 1.1em; border-radius: 1em; background: var(--soft); }
.sk.d { background: var(--ink); } .sk.ac { background: var(--accent); } .sk.hl { background: var(--accent-soft); }
.mono { font-family: var(--font-mono); font-size: 1.9em; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.fl { display: flex; flex-direction: column; gap: 1.5em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: .7em; padding: .65em 1.2em; border-radius: 99em; font-size: 2.1em; font-weight: 700; background: #fff; border: 1px solid var(--line); box-shadow: 0 .8em 2em -.8em rgba(20,45,64,.3); color: var(--ink); white-space: nowrap; }
.pill b { color: var(--teal); font-weight: 800; }
.ck { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2em; font-weight: 800; line-height: 1; flex: none; }
.ck.todo { background: #fff; border: .25em dashed var(--accent-soft); color: transparent; }
.arr { position: absolute; width: .4em; background: var(--ink); }
.arr::after { content: ""; position: absolute; left: 50%; bottom: -.3em; transform: translateX(-50%); border: .9em solid transparent; border-top: 1.4em solid var(--ink); border-bottom: 0; }
.arr-h { position: absolute; height: .4em; background: var(--ink); }
.arr-h::after { content: ""; position: absolute; right: -.3em; top: 50%; transform: translateY(-50%); border: .9em solid transparent; border-left: 1.4em solid var(--ink); border-right: 0; }

/* hero window */
.win-bar { display: flex; align-items: center; gap: 1.1em; padding: 0 2.6em; height: 8em; border-bottom: 1px solid var(--line); }
.win-bar i { width: 1.7em; height: 1.7em; border-radius: 50%; background: #d4e1ee; }
.donut { position: relative; width: 23em; height: 23em; border-radius: 50%; background: conic-gradient(var(--accent) 0 var(--seg, 58%), #8fbbe0 var(--seg, 58%) calc(var(--seg, 58%) + 24%), var(--soft) calc(var(--seg, 58%) + 24%) 100%); flex: none; }
.donut::after { content: ""; position: absolute; inset: 6.6em; background: #fff; border-radius: 50%; }
.bars { display: flex; align-items: flex-end; gap: 1.1em; height: 100%; }
.bars i { flex: 1; background: var(--accent-soft); border-radius: .6em .6em 0 0; }
.bars i:nth-child(4), .bars i:nth-child(7) { background: var(--accent); }
.tile { border: 1px solid var(--line); border-radius: 1.4em; padding: 1.8em; }
.dot { display: inline-block; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--teal); flex: none; }

/* forest plot */
.fr { display: grid; grid-template-columns: 22em 1fr 11em; align-items: center; height: 6.2em; }
.pl { position: relative; height: 100%; }
.ci { position: absolute; top: 50%; height: .4em; background: var(--ink); transform: translateY(-50%); }
.sq { position: absolute; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.dia { position: absolute; top: 50%; width: 12em; height: 3.8em; background: var(--accent); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); transform: translate(-50%, -50%); }
.null { position: absolute; left: 49em; top: 11em; bottom: 9em; border-left: .3em dashed var(--muted); }

/* plate, flask, peaks */
.plate { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1em; }
.plate i { aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: var(--o, .2); }
.plate i.ctl { background: transparent; border: 1px solid var(--muted); opacity: 1; }
.flask { position: absolute; clip-path: polygon(36% 0,64% 0,64% 34%,100% 100%,0 100%,36% 34%); background: #b7cee3; }
.flask > div { position: absolute; inset: .45em; clip-path: polygon(36% 0,64% 0,64% 34%,100% 100%,0 100%,36% 34%); background: #fff; overflow: hidden; }
.flask .liq { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(#5aa2d8, var(--accent)); }
.flask .liq i { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); }
.peaks { display: flex; align-items: flex-end; gap: .4em; height: 100%; border-bottom: .3em solid var(--ink); }
.peaks i { flex: 1; background: var(--accent); opacity: .88; border-radius: .3em .3em 0 0; }

/* regulatory */
.mod { display: flex; align-items: center; gap: 2em; height: 8.4em; }
.mod .tag { display: grid; place-items: center; width: 5.2em; height: 5.2em; border-radius: 1.2em; background: var(--soft); font-family: var(--font-mono); font-weight: 500; font-size: 2em; color: var(--ink); flex: none; }
.mod .nm { font-size: 2.2em; font-weight: 700; color: var(--ink); flex: 1; white-space: nowrap; }
.stamp { position: absolute; display: grid; place-content: center; text-align: center; border: .8em double var(--teal); border-radius: 50%; color: var(--teal); background: rgba(255,255,255,.78); transform: rotate(-14deg); }
.stamp b { font-size: 4em; line-height: 1; font-weight: 800; letter-spacing: .04em; }
.stamp span { font-family: var(--font-mono); font-size: 1.6em; letter-spacing: .14em; margin-top: .4em; }

/* review flow */
.box { position: absolute; background: #fff; border: 1px solid var(--ink); border-radius: 1.2em; padding: 1.8em 2.2em; }
.box .mono { font-size: 1.7em; color: var(--accent); }
.box b { display: block; font-size: 2.3em; margin-top: .5em; color: var(--ink); line-height: 1.15; }
.box.fill { background: var(--accent); border-color: var(--accent); } .box.fill .mono, .box.fill b { color: #fff; }
.box.side { border-color: var(--line); border-style: dashed; } .box.side b { font-size: 2.1em; color: var(--body); }

/* consulting */
.pico { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
.pico div { background: #f3f8fc; border-radius: 1.4em; padding: 1.8em 2.2em; }
.pico b { display: block; font-size: 7em; line-height: 1; font-weight: 800; color: var(--accent); }
.pico span { font-size: 2em; font-weight: 700; color: var(--ink); }
.gantt { display: flex; flex-direction: column; gap: 1.6em; }
.gantt span { font-size: 1.9em; font-weight: 700; color: var(--ink); display: block; margin-bottom: .5em; }
.gantt .tr { position: relative; height: 2.6em; background: repeating-linear-gradient(90deg, #eef3f8 0 .2em, transparent .2em 20%); border-radius: .8em; }
.gantt .tr i { position: absolute; top: .4em; bottom: .4em; border-radius: .6em; }

/* LIVE MOTION: illustrations animate only while on screen (.live) */
@property --seg { syntax: '<percentage>'; inherits: false; initial-value: 58%; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes seg { 0%, 100% { --seg: 58%; } 50% { --seg: 36%; } }
@keyframes barpulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@keyframes fillin { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(11,143,135,.5); } 80%, 100% { box-shadow: 0 0 0 1.2em rgba(11,143,135,0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.9em); } }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(480%); } }
@keyframes wr { 0% { transform: scaleX(0); opacity: 1; } 18%, 86% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes cmt { 0%, 30% { opacity: 0; transform: translateX(2em) scale(.92); } 38% { opacity: 1; transform: translateX(0) scale(1.03); } 42%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateX(2em) scale(.92); } }
@keyframes con { 0%, 28% { transform: scaleX(0); } 34%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes res { 0%, 54% { opacity: 0; transform: translateY(1em); } 60%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(1em); } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(23,104,168,.4); } 50% { box-shadow: 0 0 0 .9em rgba(23,104,168,0); } }
@keyframes ci { 0% { transform: translateY(-50%) scaleX(0); } 16%, 88% { transform: translateY(-50%) scaleX(1); } 96%, 100% { transform: translateY(-50%) scaleX(0); } }
@keyframes sq { 0%, 6% { transform: translate(-50%, -50%) scale(0); } 16% { transform: translate(-50%, -50%) scale(1.3); } 20%, 88% { transform: translate(-50%, -50%) scale(1); } 96%, 100% { transform: translate(-50%, -50%) scale(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes well { 0%, 100% { transform: scale(1); } 50% { transform: scale(.55); } }
@keyframes liq { 0%, 100% { height: 50%; } 50% { height: 58%; } }
@keyframes bub { 0% { transform: translateY(2em); opacity: 0; } 20% { opacity: .85; } 100% { transform: translateY(-9em); opacity: 0; } }
@keyframes sig { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.7); } }
@keyframes scan { from { left: 0; } to { left: 100%; } }
@keyframes tick { 0%, 4% { transform: scale(0); } 10% { transform: scale(1.25); } 14%, 88% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes tickLast { 0%, 30% { transform: scale(1); background: #fff; color: transparent; border-color: var(--accent-soft); } 36% { transform: scale(1.3); background: var(--accent); color: #fff; border-color: var(--accent); } 42%, 88% { transform: scale(1); background: var(--accent); color: #fff; border-color: var(--accent); } 96%, 100% { transform: scale(1); background: #fff; color: transparent; border-color: var(--accent-soft); } }
@keyframes prog { 0% { width: 20%; } 36%, 88% { width: 100%; } 98%, 100% { width: 20%; } }
@keyframes stamp { 0%, 36% { opacity: 0; transform: rotate(-14deg) scale(2); } 40% { opacity: 1; transform: rotate(-14deg) scale(.92); } 43%, 88% { opacity: 1; transform: rotate(-14deg) scale(1); } 96%, 100% { opacity: 0; transform: rotate(-14deg) scale(1); } }
@keyframes down { 0% { top: -.4em; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - .6em); opacity: 0; } }
@keyframes across { 0% { left: -.4em; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - .6em); opacity: 0; } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(23,104,168,0); } 6% { box-shadow: 0 0 0 .6em rgba(23,104,168,.25); } 24%, 100% { box-shadow: 0 0 0 1.6em rgba(23,104,168,0); } }
@keyframes pick { 0%, 16%, 100% { background: #f3f8fc; transform: none; } 4%, 12% { background: var(--accent-soft); transform: translateY(-.5em); } }
@keyframes bar { 0% { transform: scaleX(0); } 22%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes play { from { transform: translateX(0); } to { transform: translateX(27em); } }
@keyframes wipe { 0% { clip-path: inset(0 100% 0 0); } 35%, 88% { clip-path: inset(0 0 0 0); } 96% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes marq { to { transform: translateX(-50%); } }

.hero h1 { animation: rise .9s .05s both; }
.lede { animation: rise .9s .2s both; }
.actions { animation: rise .9s .35s both; }
.in { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.step:nth-child(2).in { animation-delay: .1s; } .step:nth-child(3).in { animation-delay: .2s; } .step:nth-child(4).in { animation-delay: .3s; }
.nav-bar { transition: box-shadow .25s ease, background .25s ease; }
.nav.scrolled .nav-bar { box-shadow: 0 14px 34px -12px rgba(20,45,64,.3); background: rgba(255,255,255,.92); }
.stage.bare .art { transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; }

.marq { overflow: hidden; white-space: nowrap; padding-block: 20px; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq-in { display: inline-flex; animation: marq 46s linear infinite; will-change: transform; }
.marq:hover .marq-in { animation-play-state: paused; }
.marq span { display: inline-flex; align-items: center; font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 1.5rem); letter-spacing: -.02em; color: var(--ink); padding-inline: 28px; }
.marq span::after { content: ""; width: 8px; height: 8px; background: var(--accent); margin-left: 56px; }

/* hero workspace */
.k-hero.live .donut { animation: seg 7s ease-in-out infinite; }
.k-hero.live .bars i { transform-origin: bottom; animation: barpulse 3.2s ease-in-out infinite; }
.k-hero.live .bars i:nth-child(2) { animation-delay: -.5s; animation-duration: 2.6s; } .k-hero.live .bars i:nth-child(3) { animation-delay: -1.1s; animation-duration: 3.8s; }
.k-hero.live .bars i:nth-child(4) { animation-delay: -.3s; animation-duration: 2.9s; } .k-hero.live .bars i:nth-child(5) { animation-delay: -1.7s; }
.k-hero.live .bars i:nth-child(6) { animation-delay: -.9s; animation-duration: 3.5s; } .k-hero.live .bars i:nth-child(7) { animation-delay: -2s; animation-duration: 2.7s; } .k-hero.live .bars i:nth-child(8) { animation-delay: -1.3s; }
.k-hero.live .tile .sk.ac { transform-origin: left; animation: fillin 4.5s ease-in-out infinite alternate; }
.k-hero.live .tile:nth-child(2) .sk.ac { animation-delay: -1.5s; } .k-hero.live .tile:nth-child(3) .sk.ac { animation-delay: -3s; }
.k-hero.live .dot { animation: ping 2.2s ease-out infinite; }
.k-hero.live .pill { animation: floaty 5s ease-in-out infinite; }
.k-hero.live .pill:last-child { animation-delay: -2.5s; }
.k-hero.live .art > .ui:first-child::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(23,104,168,.09), transparent); animation: sweep 5.5s ease-in-out infinite; }

/* 1 writing */
.k-write.live .art > .ui:nth-child(2) .fl > .sk { transform-origin: left; animation: wr 8s ease-in-out infinite both; }
.k-write.live .art > .ui:nth-child(2) .fl > .sk:nth-child(3) { animation-delay: .15s; } .k-write.live .art > .ui:nth-child(2) .fl > .sk:nth-child(4) { animation-delay: .3s; }
.k-write.live .art > .ui:nth-child(2) .fl > .sk:nth-child(7) { animation-delay: .6s; } .k-write.live .art > .ui:nth-child(2) .fl > .sk:nth-child(8) { animation-delay: .75s; }
.k-write.live .art > .ui:nth-child(2) .fl > .sk:nth-child(9) { animation-delay: .9s; } .k-write.live .art > .ui:nth-child(2) .fl > .sk:nth-child(10) { animation-delay: 1.05s; }
.k-write.live .art > .ui:nth-child(2) .fl > .sk:nth-child(12) { animation-delay: 1.5s; } .k-write.live .art > .ui:nth-child(2) .fl > .sk:nth-child(13) { animation-delay: 1.65s; }
.k-write.live .art > .ui:nth-child(4) { animation: cmt 8s ease-out infinite both; }
.k-write.live .art > i.a { transform-origin: right; animation: con 8s ease-out infinite both; }
.k-write.live .art > .pill:nth-child(5) { animation: res 8s ease-out infinite both; }
.k-write.live .art > .mono { animation: ring 2.4s ease-out infinite; }

/* 2 biostatistics */
.k-stats.live .ci { transform-origin: center; animation: ci 7s ease-out infinite both; }
.k-stats.live .sq { animation: sq 7s ease-out infinite both; }
.k-stats.live .dia { animation: sq 7s ease-out 1.6s infinite both; }
.k-stats.live .ui > .fr:nth-child(4) :is(.ci, .sq) { animation-delay: .2s; } .k-stats.live .ui > .fr:nth-child(5) :is(.ci, .sq) { animation-delay: .4s; }
.k-stats.live .ui > .fr:nth-child(6) :is(.ci, .sq) { animation-delay: .6s; } .k-stats.live .ui > .fr:nth-child(7) :is(.ci, .sq) { animation-delay: .8s; }
.k-stats.live .null { animation: blink 3s ease-in-out infinite; }
.k-stats.live .pill { animation: floaty 5s ease-in-out infinite; }

/* 3 pharmaceutical research */
.k-lab.live .plate i:not(.ctl) { animation: well 3.6s ease-in-out infinite; }
.k-lab.live .flask .liq { animation: liq 4s ease-in-out infinite; }
.k-lab.live .flask .liq i { animation: bub 3.4s ease-in infinite; }
.k-lab.live .flask .liq i:nth-child(2) { animation-delay: -1.2s; } .k-lab.live .flask .liq i:nth-child(3) { animation-delay: -2.3s; }
.peaks { position: relative; }
.k-lab.live .peaks i { transform-origin: bottom; animation: sig 2.4s ease-in-out infinite; }
.k-lab.live .peaks::after { content: ""; position: absolute; top: -1em; bottom: 0; width: .4em; background: var(--teal); box-shadow: 0 0 1.2em var(--teal); animation: scan 4.5s linear infinite; }
.k-lab.live .art > .ui:nth-child(3) .fl > .sk { transform-origin: left; animation: wr 5s ease-in-out infinite both; }
.k-lab.live .art > .ui:nth-child(3) .fl > .sk:nth-child(3) { animation-delay: .15s; } .k-lab.live .art > .ui:nth-child(3) .fl > .sk:nth-child(4) { animation-delay: .3s; }
.k-lab.live .pill { animation: floaty 5s ease-in-out infinite; }

/* 4 regulatory */
.k-reg.live .mod .ck { animation: tick 7s ease-out infinite both; }
.k-reg.live .ui > .mod:nth-child(3) .ck { animation-delay: .3s; } .k-reg.live .ui > .mod:nth-child(4) .ck { animation-delay: .6s; } .k-reg.live .ui > .mod:nth-child(5) .ck { animation-delay: .9s; }
.k-reg.live .ui > .mod:nth-child(6) .ck { animation: tickLast 7s ease-out infinite both; }
.k-reg.live .art > .ui:nth-child(5) > div > div { animation: prog 7s ease-in-out infinite both; }
.k-reg.live .stamp { animation: stamp 7s ease-in infinite both; }

/* 5 systematic review */
.k-prisma.live .arr::before { content: ""; position: absolute; left: 50%; width: 1.3em; height: 1.3em; margin-left: -.65em; border-radius: 50%; background: var(--accent); top: 0; animation: down 2.4s ease-in-out infinite; }
.k-prisma.live .arr:nth-of-type(2)::before { animation-delay: .8s; } .k-prisma.live .arr:nth-of-type(3)::before { animation-delay: 1.6s; }
.k-prisma.live .arr-h::before { content: ""; position: absolute; top: 50%; margin-top: -.65em; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--ink); left: 0; animation: across 2.4s ease-in-out infinite; }
.k-prisma.live .arr-h:nth-of-type(5)::before { animation-delay: 1.2s; }
.k-prisma.live .box { animation: glow 5s ease-out infinite; }
.k-prisma.live .art > .box:nth-of-type(2) { animation-delay: .8s; } .k-prisma.live .art > .box:nth-of-type(3) { animation-delay: 1.6s; } .k-prisma.live .art > .box:nth-of-type(4) { animation-delay: 2.4s; }
.k-prisma.live .art > .box:nth-of-type(5) { animation-delay: 1s; } .k-prisma.live .art > .box:nth-of-type(6) { animation-delay: 1.8s; }
.k-prisma.live .pill { animation: floaty 5s ease-in-out infinite; }

/* 6 consulting */
.k-plan.live .pico div { animation: pick 6s ease-in-out infinite; }
.k-plan.live .pico div:nth-child(2) { animation-delay: 1.2s; } .k-plan.live .pico div:nth-child(3) { animation-delay: 2.4s; } .k-plan.live .pico div:nth-child(4) { animation-delay: 3.6s; }
.k-plan.live .tr i { transform-origin: left; animation: bar 7s ease-out infinite both; }
.k-plan.live .gantt > div:nth-child(2) .tr i { animation-delay: .3s; } .k-plan.live .gantt > div:nth-child(3) .tr i { animation-delay: .6s; } .k-plan.live .gantt > div:nth-child(4) .tr i { animation-delay: .9s; }
.k-plan.live .art > .ui:nth-child(2)::after { content: ""; position: absolute; top: 8em; bottom: 3em; left: 3em; width: .35em; border-radius: 1em; background: var(--ink); animation: play 7s linear infinite; }
.k-plan.live .art > .ui:nth-child(3) > div:last-child { animation: wipe 7s ease-in-out infinite both; }

@media (prefers-reduced-motion: reduce) {
  .live, .live *, .live *::before, .live *::after, .in, .hero h1, .lede, .actions, .marq-in, .stage.bare .art { animation: none !important; transition: none !important; }
  .marq { white-space: normal; } .marq-in { flex-wrap: wrap; }
}

/* SECTIONS */
section { padding-block: 84px; }
.sec-head { display: grid; gap: 18px; margin-bottom: 20px; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } }
.sec-head p { margin: 0; }
h2 { font-size: clamp(2rem, 4.8vw, 3.1rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: block; }

.about { display: grid; gap: 44px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.about p { margin: 18px 0 0; }
.vm { display: grid; gap: 0; align-content: start; }
.vm div { padding-block: 28px; border-top: 1px solid var(--line); }
.vm div:last-child { border-bottom: 1px solid var(--line); }
.vm h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 10px; }
.vm p { margin: 0; font-size: 1.22rem; line-height: 1.45; font-weight: 600; color: var(--ink); }

.svc { display: grid; gap: 28px; padding-block: 56px; border-top: 1px solid var(--line); align-items: center; }
.svc > * { min-width: 0; }
@media (min-width: 900px) { .svc { grid-template-columns: 1.08fr 1fr; gap: 72px; } .svc:nth-of-type(even) .stage { order: 2; } }
.svc h3 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.svc p { margin: 14px 0 0; }
.svc ul { list-style: none; margin: 22px 0 0; padding: 0; }
.svc li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .95rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; background: var(--accent); }

.steps { display: grid; gap: 0; margin-top: 44px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.step { padding: 22px 0 26px; border-top: 2px solid var(--ink); }
.step .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-size: 1.3rem; margin: 10px 0 8px; letter-spacing: -.02em; }
.step p { margin: 0; font-size: .95rem; }

.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.contact p { margin: 18px 0 0; max-width: 46ch; }
form { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: #fff; box-shadow: 0 30px 60px -40px rgba(20,45,64,.3); }
.row { display: grid; gap: 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); min-width: 0; }
input, select, textarea { font: inherit; font-weight: 500; color: var(--ink); background: #fff; width: 100%; min-width: 0; border: 1px solid #c9d9e8; border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8ea3b6; }
#formMsg { margin: 0; font-size: 14px; color: var(--accent); font-weight: 600; min-height: 1.4em; }
form .btn { justify-self: start; }

footer { border-top: 1px solid var(--line); padding-block: 36px 52px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
footer .brand-name { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .toggle .ln { transition: none; } }

/* ===== Multi-page additions ===== */
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
html { scroll-padding-top: 120px; }

/* glass nav: whiter once the page scrolls under it */
.glass-nav { transition: box-shadow .3s ease, background .3s ease; }
 .glass-nav.scrolled {
  background: rgba(255,255,255,.94);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.95),
    0 12px 34px rgba(20,45,64,.08);
}

/* page header used on inner pages */
.page-head { padding-block: 156px 36px; }
.page-head > * { animation: rise .8s both; }
.page-head > :nth-child(2) { animation-delay: .08s; }
.page-head > :nth-child(3) { animation-delay: .16s; }
.page-head h1 { font-size: clamp(2.5rem, 7.4vw, 4.6rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; max-width: 17ch; }
.page-head .lead { max-width: 58ch; margin: 22px 0 0; font-size: clamp(1rem, 2.2vw, 1.15rem); }

/* home: service index */
.svc-list { margin-top: 36px; border-top: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .25s ease, color .25s ease; }
.svc-list a:hover { padding-left: 14px; color: var(--accent); }
.svc-list b { display: block; font-size: clamp(1.15rem, 2.6vw, 1.6rem); letter-spacing: -.02em; font-weight: 800; }
.svc-list span { display: block; margin-top: 4px; color: var(--body); font-size: .95rem; font-weight: 500; }
.svc-list i { font-style: normal; font-size: 1.5rem; color: var(--accent); }

/* call to action block */
.cta { display: grid; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 5vw, 56px); box-shadow: 0 30px 60px -44px rgba(20,45,64,.35); }
@media (min-width: 820px) { .cta { grid-template-columns: 1fr auto; gap: 48px; } }
.cta h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.cta p { margin: 12px 0 0; max-width: 46ch; }
.cta .btn.solid { margin-top: 0; justify-content: center; }

/* research: principles and industries */
.pr-grid { display: grid; margin-top: 36px; }
@media (min-width: 900px) { .pr-grid { grid-template-columns: 1fr 1fr; column-gap: 72px; } }
.pr { padding: 26px 0; border-top: 1px solid var(--line); }
.pr h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 8px; }
.pr p { margin: 0; }
.ind-grid { display: grid; gap: 28px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .ind-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.ind { border-top: 2px solid var(--ink); padding-top: 18px; }
.ind h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.ind p { margin: 8px 0 0; font-size: .95rem; }

/* FAQ */
.faq-tools { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 8px; }
.faq-tools label { flex: 1 1 320px; max-width: 460px; }
#faqCount { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 800; font-size: clamp(1.02rem, 2.2vw, 1.25rem); letter-spacing: -.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.4rem; font-weight: 500; color: var(--accent); transition: transform .3s ease, background .3s ease; }
.faq summary:hover { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); background: #eef5fb; }
.faq .ans { padding: 0 60px 26px 0; max-width: 72ch; animation: rise .4s both; }
.faq .ans p { margin: 0 0 12px; }
#faqNone { padding: 28px 0; color: var(--muted); }

/* contact */
.next { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.next li:last-child { border-bottom: 1px solid var(--line); }
.next li::before { content: counter(n); font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: .1em; padding-top: 3px; }
.next b { display: block; color: var(--ink); }
.contact .textlink { display: inline-block; margin-top: 26px; }

/* footer */
.foot { display: block; border-top: 1px solid var(--line); padding-block: 56px 40px; margin-top: 40px; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.4fr 1fr; } }
.foot-brand svg { width: 190px; height: auto; display: block; }
.foot-tag { margin: 18px 0 0; font-weight: 800; color: var(--ink); letter-spacing: -.01em; font-size: 1.15rem; }
.foot-brand p { margin: 8px 0 0; max-width: 46ch; font-size: .95rem; }
.foot-brand p.foot-tag { margin-top: 18px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: flex-start; }
@media (min-width: 820px) { .foot-nav { justify-content: flex-end; } }
.foot-nav a { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--accent); }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ===== Mobile ===== */
@media (max-width: 700px) {
  section { padding-block: 52px; }
  .hero { padding-block: 112px 36px; gap: 34px; }
  .page-head { padding-block: 116px 20px; }
  .svc { padding-block: 40px; gap: 22px; }
  .sec-head { margin-bottom: 6px; }
  .stage { border-radius: 20px; }
  .mono { font-size: 2.2em; }
  .serves { gap: 6px 0; }
  .serves span.lab { width: 100%; margin: 0 0 4px; }
  .serves em { padding-inline: 12px; }
  .actions { gap: 16px; }
  .actions .btn, .cta .btn.solid { width: 100%; justify-content: center; }
  .marq span::after { margin-left: 36px; }
  .marq span { padding-inline: 18px; }
  form { padding: 20px; border-radius: 20px; }
  form .btn { width: 100%; justify-content: center; }
  .faq summary { padding: 18px 0; }
  .faq .ans { padding-right: 0; }
  .svc-list a { padding: 20px 0; }
  .cta { border-radius: 22px; }
  .foot { padding-block: 40px 32px; }
  .vm p { font-size: 1.1rem; }
}


/* ===== Phone: keep illustration text readable ===== */
@media (max-width: 640px) {
  .stage .pill { font-size: 2.7em; }
  .stage .mono { font-size: 2.3em; }
  .stage .box .mono { font-size: 1.9em; }
  .stage .box b { font-size: 2.6em; }
  .stage .mod .nm { font-size: 2.45em; }
  .stage .mod .tag { font-size: 2.2em; }
  .stage .pico span { font-size: 2.4em; }
  .stage .gantt span { font-size: 2.2em; }
  .stage .tile .mono { font-size: 2em !important; }
  .stage .ui b { font-size: max(1em, 2.3em); }
}
@media (prefers-reduced-motion: reduce) { .marq { display: none; } }

/* DEMO DATA TEXT (replaces placeholder bars in illustrations) */
.sk.t { height: auto; background: none; border-radius: 0; font-size: 1.9em; line-height: 1.3; font-weight: 500; color: var(--body); white-space: normal; }
.sk.t.hlt { color: var(--accent); font-weight: 700; }
.sk.t.ttl { font-size: 2.3em; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
.sk.t b { color: var(--ink); }
.sk.t.mono { font-size: 1.7em; }
.nav-demo .sk.t { font-size: 1.8em; }
.tile .big { display: block; font-size: 3.2em; line-height: 1; margin: .45em 0 .5em; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.mt { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .4em; font-size: 1.6em; }
.mt > * { padding: .35em .6em; border-radius: .4em; background: #f3f8fc; }
.mt > b { background: #cfe1f1; color: var(--ink); }
@keyframes wt { 0% { clip-path: inset(0 100% 0 0); opacity: 1; } 18%, 86% { clip-path: inset(0 0 0 0); opacity: 1; } 96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.live .sk.t { animation-name: wt !important; transform: none !important; }
.k-hero.live .sk.t, .k-stats.live .sk.t, .k-reg.live .sk.t { animation: none !important; }

/* WHATSAPP FLOAT */
.wa-float { position: fixed; z-index: 90; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 28px -6px rgba(18,140,70,.55), 0 2px 6px rgba(0,0,0,.18); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .5; animation: waPing 2.6s ease-out infinite; z-index: -1; }
@keyframes waPing { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* JUSTIFIED TEXT */
p, li, .lede, .lead {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* keep these left-aligned so they don't look broken */
.kicker, .pill, .btn, .textlink, .foot-tag, .copy,
.hero h1, h1, h2, h3, .step b, .next b, summary, label, #formMsg {
  text-align: left;
  hyphens: none;
}