/* ==========================================================================
   SenAI — SCHEMATIC / LIVE · sections
   ========================================================================== */

/* ============ 01 HERO ============ */
.s-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 4vh);
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-wash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 46% at 78% 44%, rgba(232, 229, 255, 0.9), rgba(232, 229, 255, 0) 70%),
        radial-gradient(30% 36% at 66% 62%, rgba(63, 156, 232, 0.12), rgba(63, 156, 232, 0) 70%),
        radial-gradient(26% 30% at 90% 24%, rgba(159, 94, 223, 0.12), rgba(159, 94, 223, 0) 70%);
    z-index: 0;
}

.hero-grid {
    flex: 1;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-grid .sheet-no {
    align-self: start;
    margin-top: 6vh;
}

.hero-copy {
    grid-column: 2 / 9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 4vh 0;
}

/* body.sx p resets padding to 0 with higher specificity — match it */
body.sx .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px 12px 18px;
    border-radius: 999px;
    /* soft lavender fill with a faint brand-gradient outline (no flat grey rule) */
    background:
        linear-gradient(100deg, #f3f8fe, #f6f1fd) padding-box,
        linear-gradient(100deg, rgba(63, 156, 232, 0.35), rgba(159, 94, 223, 0.35)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 6px 20px -8px rgba(99, 102, 241, 0.25);
    font: 550 clamp(14px, 1.05vw, 16px)/1.2 var(--f-sans);
    letter-spacing: 0.01em;
    color: var(--indigo);
}

.hero-badge i {
    position: relative;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sig);
}

.hero-badge i::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--sig);
    opacity: 0.25;
    animation: badge-pulse 2.4s ease-out infinite;
}

@keyframes badge-pulse {
    0% { transform: scale(0.6); opacity: 0.35; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge i::after { animation: none; }
}

.hero-h1 {
    font-size: var(--t-display);
    font-weight: 620;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
    position: relative;
}

.hero-line {
    position: relative;
    display: block;
    width: max-content;
    max-width: 100%;
    padding: 0 0.04em 0.08em 0;
}

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

.pen {
    position: absolute;
    top: 0.08em;
    bottom: 0.08em;
    left: 0;
    width: 2px;
    background: var(--indigo);
    opacity: 0;
    pointer-events: none;
}

.stop {
    display: inline-block;
    width: 0.16em;
    height: 0.16em;
    border-radius: 0.04em;
    background: var(--sig);
    margin-left: 0.05em;
    vertical-align: baseline;
}

.hero-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--body);
    max-width: 44ch;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.hero-side {
    grid-column: 9 / -1;
    align-self: stretch;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4vh;
}

.spec {
    position: relative;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 6px 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--rule);
    font: 400 12px/1.2 var(--f-mono);
}

.spec-row:first-child {
    border-top: 0;
}

.spec-row dt {
    color: var(--navy);
}

.spec-row dd {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 8ch;
    text-align: right;
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-strip {
    grid-column: 2 / -1;
    margin-top: 8px;
}

.hero-artefacts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-artefacts .art {
    position: absolute;
    left: var(--x);
    top: var(--y);
    opacity: 0.6;
    white-space: nowrap;
    color: var(--red);
}

.hero-artefacts .art .anno__lead {
    background: rgba(224, 86, 111, 0.4);
}

@media (max-width: 1023px) {
    .hero-copy {
        grid-column: 1 / -1;
        padding-top: 2vh;
    }

    .hero-side {
        grid-column: 1 / -1;
        padding-bottom: 0;
        margin-top: 24px;
    }

    .hero-grid .sheet-no,
    .hero-artefacts {
        display: none;
    }

    .hero-strip {
        grid-column: 1 / -1;
        margin-top: 24px;
    }
}

/* ============ 02 INTEGRATION ============ */
.s-int {
    padding: 0;
}

.int-grid {
    height: 100vh;
    height: 100svh;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 72px;
    align-items: center;
}

.int-grid .sheet-no {
    align-self: start;
}

.stepper {
    grid-column: 2 / 5;
    align-self: center;
    counter-reset: none;
}

.step {
    border-top: 1px solid var(--rule);
    padding: 14px 0;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 8px;
    color: var(--mute);
    transition: color 0.4s;
}

.step:last-child {
    border-bottom: 1px solid var(--rule);
}

.step-no {
    font: 400 12px/1.6 var(--f-mono);
    font-variant-numeric: tabular-nums;
}

.step-h {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: inherit;
    transition: font-size 0.5s var(--ease-out), letter-spacing 0.5s, line-height 0.5s;
}

.step.is-active {
    color: var(--ink);
}

.step.is-active .step-h {
    font-size: clamp(26px, 2.4vw, 40px);
    font-weight: 560;
    line-height: 1.04;
    letter-spacing: -0.034em;
}

.step.is-active .step-no {
    color: var(--ink);
}

.int-stage {
    grid-column: 5 / -1;
    position: relative;
    align-self: center;
}

#intSvg {
    width: 100%;
    height: auto;
    max-height: calc(100svh - var(--nav-h) - 120px);
    overflow: visible;
}

#intSvg #orbits circle {
    fill: none;
    stroke: var(--rule-strong);
    stroke-width: 1;
    stroke-dasharray: 2 6;
}

#intSvg #core circle {
    fill: var(--paper);
    stroke: var(--dia);
    stroke-width: 1;
}

#intSvg #core text {
    font: 520 19px/1 var(--f-sans);
    letter-spacing: -0.02em;
    fill: var(--navy);
}

#intSvg .node circle {
    fill: var(--paper);
    stroke: var(--dia);
    stroke-width: 1;
}

#intSvg .node use {
    color: var(--ink);
}

#intSvg .node text {
    font: 400 11px/1 var(--f-mono);
    fill: var(--navy);
}

#intSvg .stub {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1;
}

#intSvg .xm {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1.2;
}

#intSvg .wire {
    fill: none;
    stroke: url(#sig);
    stroke-width: 1.2;
}

#intSvg .iso {
    fill: none;
    stroke: var(--rule);
    stroke-width: 1;
}

#intSvg #senai rect {
    fill: var(--paper);
    stroke: url(#sigBox);
    stroke-width: 1.5;
}

#intSvg #senai text {
    font: 600 26px/1 var(--f-sans);
    letter-spacing: -0.04em;
    fill: var(--ink);
}

#intSvg .br {
    fill: none;
    stroke: url(#sig);
    stroke-width: 1.2;
}

#intSvg .chev {
    fill: none;
    stroke: var(--sig-b);
    stroke-width: 1.2;
}

#intSvg .pulse {
    fill: none;
    stroke: url(#sig);
    stroke-width: 2.5;
    stroke-linecap: square;
}

#intSvg .o-num {
    font: 620 40px/1 var(--f-sans);
    letter-spacing: -0.05em;
    fill: var(--ink);
    font-variant-numeric: tabular-nums;
}

#intSvg .o-num .u {
    font-weight: 400;
    font-size: 22px;
    letter-spacing: -0.02em;
}

#intSvg .o-lbl {
    font: 400 12px/1 var(--f-mono);
    fill: var(--navy);
}

#intSvg .err text {
    font: 400 11px/1 var(--f-mono);
    fill: var(--navy);
}

#intSvg .err line {
    stroke: var(--rule-strong);
    stroke-width: 1;
}

#intSvg .err rect {
    fill: var(--paper);
}

@media (max-width: 1023px) {
    .int-grid {
        align-content: start;
        padding-top: calc(var(--nav-h) + 24px);
    }

    .stepper {
        grid-column: 1 / -1;
        align-self: start;
    }

    /* The section no longer pins below 1024px, so show all four steps as a list:
       same size (no layout jump while scrolling), current one highlighted. */
    .step-h,
    .step.is-active .step-h {
        font-size: 19px;
        font-weight: 560;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .step {
        padding: 12px 0;
    }

    .step.is-active .step-no {
        color: var(--indigo);
    }

    .int-stage {
        grid-column: 1 / -1;
        align-self: start;
        margin-top: 8px;
    }

    .int-grid .sheet-no {
        display: none;
    }
}

/* ============ 03 GAP ============ */
.s-gap {
    padding: 0;
}

.gap-grid {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 72px;
    align-content: center;
    row-gap: 24px;
}

.gap-heads {
    grid-column: 2 / 10;
    display: grid;
}

.gap-h {
    grid-area: 1 / 1;
    align-self: end;
    font-size: clamp(36px, 4.6vw, 80px);
}

.gap-h .ln {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.gap-h .ln > span {
    display: block;
}

.gap-h-a .ln:nth-child(2) {
    color: var(--mute);
}

.lag {
    display: inline-block;
    white-space: nowrap;
}

.lag .ch {
    display: inline-block;
}

.gap-h-b {
    visibility: hidden;
}

.readout {
    grid-column: 10 / -1;
    align-self: end;
    font: 400 12px/1 var(--f-mono);
}

.readout > div {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-top: 1px solid var(--rule);
}

.readout > div:last-child {
    border-bottom: 1px solid var(--rule);
}

.readout dt {
    color: var(--navy);
}

.readout dd {
    color: var(--ink);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.readout .r-gap-row.is-closed dd {
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gap-plot {
    grid-column: 2 / -1;
}

.gap-plot svg {
    width: 100%;
    height: auto;
    max-height: 58vh;
    overflow: visible;
}

.gap-plot .axis {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1;
}

.gap-plot .axis-tip {
    fill: var(--ink);
}

.gap-plot .ticks line {
    stroke: var(--dia);
    stroke-width: 1;
}

.gap-plot .ticks text,
.gap-plot .ylab,
.gap-plot .cap-lbl,
.gap-plot .smb-lbl,
.gap-plot #gapRing text,
.gap-plot .sn-anno {
    font: 400 13px/1 var(--f-mono);
    fill: var(--navy);
}

.gap-plot .ticks text.yr {
    font: 600 18px/1 var(--f-sans);
    letter-spacing: -0.02em;
    fill: var(--ink);
}

.gap-plot .gap-fill {
    fill: var(--film);
    fill: rgba(11, 18, 32, 0.05);
}

.gap-plot #cap {
    fill: none;
    stroke: var(--dia);
    stroke-width: 2;
    stroke-linecap: round;
}

.gap-plot #smb {
    fill: none;
    stroke: var(--mute);
    stroke-width: 1.25;
    stroke-linecap: round;
}

.gap-plot #smb.closed {
    stroke: url(#sig);
    stroke-width: 2.5;
}

.gap-plot #playhead {
    stroke: var(--rule-strong);
    stroke-width: 1;
    stroke-dasharray: 2 4;
}

.gap-plot #caliper line,
.gap-plot #caliper path {
    stroke: var(--dia);
    stroke-width: 1;
    fill: none;
}

.gap-plot #caliper rect {
    fill: var(--paper);
}

.gap-plot #caliper text {
    font: 500 12px/1 var(--f-mono);
    fill: var(--ink);
    font-variant-numeric: tabular-nums;
}

.gap-plot #gapRing circle {
    fill: none;
    stroke: var(--rule-strong);
    stroke-dasharray: 4 6;
}

.gap-plot #senaiNode text {
    font: 600 28px/1 var(--f-sans);
    letter-spacing: -0.04em;
    fill: var(--ink);
}

.gap-plot #senaiNode .halo {
    fill: none;
    stroke: url(#sigBox);
    stroke-width: 1;
}

@media (max-width: 1023px) {
    .gap-heads,
    .readout,
    .gap-plot {
        grid-column: 1 / -1;
    }

    .gap-grid .sheet-no {
        display: none;
    }

    .readout {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .readout > div {
        flex-direction: column;
        gap: 6px;
        border-bottom: 1px solid var(--rule);
    }

    .gap-plot .cap-lbl,
    .gap-plot #gapRing text,
    .gap-plot .sn-anno {
        display: none;
    }
}

/* ============ 04 SOLUTION ============ */
.sol-head {
    row-gap: 24px;
}

.sol-head .h1 {
    grid-column: 2 / 11;
}

.sol-head .lead {
    grid-column: 2 / 7;
}

.sol-body {
    margin-top: 64px;
    align-items: start;
}

.pillars {
    grid-column: 2 / 7;
}

.pillar {
    position: relative;
    min-height: 92vh;
    border-top: 1px solid var(--rule);
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.plat {
    display: block;
    height: calc(var(--t-plat) * 0.62);
    overflow: hidden;
    font-size: var(--t-plat);
    font-weight: 640;
    line-height: 0.8;
    letter-spacing: -0.07em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    margin-top: -1px;
}

.plat > span,
.plat {
    transform-origin: top left;
}

.pillar .h2 {
    max-width: 14ch;
}

.pillar p {
    color: var(--body);
    max-width: 44ch;
}

.sol-panel {
    grid-column: 8 / -1;
    position: sticky;
    top: 12vh;
    height: 76vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#solSvg {
    width: 100%;
    height: 100%;
    max-height: 64vh;
    overflow: visible;
}

.sol-cap {
    margin-top: 16px;
}

#solSvg .mess,
#solSvg .steps {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

#solSvg .steps-last {
    fill: none;
    stroke: url(#sig);
    stroke-width: 2;
}

#solSvg .ms circle {
    fill: var(--paper);
    stroke: var(--dia);
    stroke-width: 1;
}

#solSvg text {
    font: 400 12px/1 var(--f-mono);
    fill: var(--navy);
}

#solSvg .sq {
    fill: var(--paper);
    stroke: var(--dia);
    stroke-width: 1;
}

#solSvg .sq.lit {
    fill: url(#sigBox);
    stroke: none;
}

#solSvg .gl {
    stroke: var(--rule);
    stroke-width: 1;
}

#solSvg .scan {
    fill: url(#sigBox);
}

#solSvg .leader {
    stroke: var(--rule-strong);
    stroke-width: 1;
    fill: none;
}

#solSvg .dimline line {
    stroke: var(--dia);
    stroke-width: 1;
}

#solSvg .dimline rect {
    fill: var(--paper);
}

#solSvg .stack-l line {
    stroke: var(--dia);
    stroke-width: 1;
}

.sol-cta {
    margin-top: var(--pad-y);
    padding-top: 48px;
    border-top: 1px solid var(--rule);
    row-gap: 32px;
}

.sol-cta .h1 {
    grid-column: 2 / 11;
}

.sol-cta .ruler {
    grid-column: 2 / -1;
    width: 100%;
    height: auto;
    overflow: visible;
}

.sol-cta .ruler line {
    stroke: var(--dia);
    stroke-width: 1;
}

.sol-cta .ruler text {
    font: 400 11px/1 var(--f-mono);
    fill: var(--navy);
}

.sol-cta .ruler .mark {
    fill: url(#sigBox);
}

.sol-cta .ruler .mark-t {
    font-weight: 500;
    fill: var(--ink);
}

.sol-cta .btn {
    grid-column: 2 / 8;
    justify-self: start;
}

@media (max-width: 1023px) {
    .sol-head .h1,
    .sol-head .lead,
    .pillars,
    .sol-cta .h1,
    .sol-cta .ruler,
    .sol-cta .btn {
        grid-column: 1 / -1;
    }

    .sol-panel {
        grid-column: 1 / -1;
        position: relative;
        top: auto;
        height: auto;
        margin-top: 32px;
    }

    .pillar {
        min-height: 0;
        padding-bottom: 64px;
    }

    .pillar .pill-vis {
        width: 100%;
        height: auto;
        margin-top: 16px;
    }

    .sol-head .sheet-no {
        display: none;
    }
}

/* ============ 05 PRODUCT ============ */
.prod-top {
    row-gap: 16px;
}

.prod-kicker {
    grid-column: 2 / -1;
}

.prod-mark {
    grid-column: 1 / -1;
    overflow: hidden;
    max-width: 100%;
    font-weight: 640;
    letter-spacing: -0.065em;
    line-height: 0.82;
    font-size: 18vw;
    white-space: nowrap;
    color: var(--ink);
    margin-top: 8px;
}

.prod-mark .pm {
    display: inline-flex;
    align-items: baseline;
    font-variation-settings: "wght" var(--w);
    font-weight: normal;
}

.compass-o {
    width: 0.62em;
    height: 0.62em;
    margin: 0 0.015em;
    overflow: visible;
    align-self: baseline;
    transform: translateY(0.02em);
}

.compass-o circle:first-child {
    fill: none;
    stroke: var(--dia);
    stroke-width: 12;
}

.compass-o .needle path {
    fill: var(--ink);
}

.compass-o .needle .n-hi {
    fill: url(#sigBox);
}

.compass-o .hub {
    fill: var(--paper);
}

.prod-grid {
    margin-top: 64px;
    align-items: start;
}

.prod-text {
    grid-column: 2 / 6;
    display: grid;
    gap: 32px;
}

.prod-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.prod-stage {
    grid-column: 7 / -1;
    position: relative;
    aspect-ratio: 16 / 10;
}

.sieve {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 6px;
    padding: 6px;
}

.sieve i {
    display: block;
    background: var(--ink);
    opacity: 0.85;
}

.sieve .scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: var(--sig);
}

.ranked {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    font: 400 13px/1 var(--f-mono);
    opacity: 0;
}

.ranked li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    color: var(--navy);
}

.ranked li:last-child {
    border-bottom: 1px solid var(--rule);
}

.ranked b {
    color: var(--ink);
    font-weight: 500;
}

.ranked li:first-child b {
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.prod-frame {
    position: absolute;
    inset: 0;
    background: #000;
    clip-path: inset(0 0 100% 0);
}

.prod-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rulers {
    margin-top: 96px;
    row-gap: 0;
}

.ruler-row {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: 180px 1fr 280px;
    align-items: center;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--rule);
}

.ruler-row:last-child {
    border-bottom: 1px solid var(--rule);
}

.rr-lbl {
    font: 400 12px/1 var(--f-mono);
    color: var(--navy);
}

.rr-track {
    position: relative;
    height: 12px;
}

.rr-bar {
    position: absolute;
    left: 0;
    top: 5px;
    height: 2px;
    width: 68%;
    background: var(--ink);
    transform-origin: left;
}

.rr-over {
    position: absolute;
    left: 68%;
    top: 5px;
    height: 2px;
    width: 30.6%;
    background: var(--sig);
    transform-origin: left;
    transform: scaleX(0);
}

.rr-dim {
    position: absolute;
    left: 34%;
    right: 32%;
    top: -14px;
    font: 400 11px/1 var(--f-mono);
    color: var(--navy);
    text-align: center;
    border-left: 1px solid var(--rule-strong);
    border-right: 1px solid var(--rule-strong);
    padding-top: 2px;
    height: 26px;
    opacity: 0;
}

.rr-num {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    font-size: 15px;
    color: var(--body);
}

.thin {
    font-size: clamp(56px, 6vw, 104px);
    font-weight: 250;
    letter-spacing: -0.06em;
    line-height: 0.8;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1023px) {
    .prod-text,
    .prod-stage,
    .ruler-row {
        grid-column: 1 / -1;
    }

    .prod-stage {
        margin-top: 48px;
    }

    .ruler-row {
        grid-template-columns: 1fr auto;
    }

    .rr-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .prod-top .sheet-no {
        display: none;
    }
}

/* ============ 06 CASES ============ */
.s-cases {
    padding: 0;
}

.cases-pin {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 40px) 0 48px;
    display: flex;
    flex-direction: column;
}

.cases-head {
    row-gap: 16px;
    align-items: end;
}

.cases-head .h1 {
    grid-column: 2 / 9;
    font-size: clamp(36px, 4vw, 72px);
}

.cases-head .lead {
    grid-column: 9 / -1;
    font-size: 15px;
}

.cases-wrap {
    margin-top: 32px;
    display: block;
}

.idx-head,
.case-head {
    display: grid;
    grid-template-columns: 96px 200px 1fr 1fr 32px;
    gap: var(--gutter);
    align-items: center;
}

.idx-head {
    font: 400 12px/1 var(--f-mono);
    color: var(--navy);
    padding: 0 0 12px calc((100% - 0px) * 0);
    border-bottom: 1px solid var(--ink);
}

.case {
    border-bottom: 1px solid var(--rule);
}

.case-head {
    min-height: 76px;
    cursor: default;
}

.plat-s {
    font-size: 56px;
    font-weight: 640;
    letter-spacing: -0.06em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.case-head .case-study-category {
    font: 400 12px/1.2 var(--f-mono);
    color: var(--navy);
}

.case-head h3 {
    font-size: clamp(20px, 1.8vw, 28px);
    font-weight: 560;
    letter-spacing: -0.03em;
    transition: transform 0.3s var(--ease-out);
}

.case-head .res {
    font-size: 15px;
    color: var(--body);
}

.case-head .arr {
    font-size: 20px;
    transition: transform 0.3s var(--ease-out);
}

.case:hover .case-head h3 {
    transform: translateX(8px);
}

.case:hover .arr {
    transform: rotate(45deg);
}

.case-body {
    height: 0;
    overflow: hidden;
}

.case-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--gutter);
    padding: 20px 0 24px 120px;
    height: calc(100vh - var(--nav-h) - 40px - 48px - 130px - 32px - 34px - 3 * 77px);
    min-height: 240px;
}

.case-vis {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.case-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.case-side .frame {
    flex: 1;
    min-height: 0;
    overflow: visible;
}

.case-side .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.case-vis .box rect,
.case-vis .box path {
    fill: var(--paper);
    stroke: var(--dia);
    stroke-width: 1;
}

.case-vis text {
    font: 400 12px/1.2 var(--f-mono);
    fill: var(--navy);
}

.case-vis .box text {
    font: 500 13px/1.2 var(--f-sans);
    fill: var(--ink);
}

.case-vis .route {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1;
}

.case-vis .token {
    fill: url(#sigBox);
}

.case-vis .stamp rect {
    fill: var(--paper);
    stroke: var(--dia);
    stroke-width: 2;
}

.case-vis .stamp.pass rect {
    stroke: url(#sigBox);
}

.case-vis .stamp text {
    font: 600 14px/1 var(--f-mono);
    fill: var(--ink);
    letter-spacing: 0.08em;
}

.case-vis .tally line {
    stroke: var(--dia);
    stroke-width: 1;
}

.case-vis .tally .strike {
    stroke: url(#sigBox);
}

.case-vis .big {
    font: 250 64px/1 var(--f-sans);
    letter-spacing: -0.06em;
    fill: var(--ink);
}

.case-vis .fan {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1.25;
}

.case-vis .fan.base {
    stroke: url(#sigBox);
    stroke-width: 2;
}

.case-vis .cone {
    fill: rgba(11, 18, 32, 0.05);
}

.case-vis .ax {
    stroke: var(--rule-strong);
    stroke-width: 1;
    fill: none;
}

.case-vis .sweep {
    stroke: var(--dia);
    stroke-width: 1;
    stroke-dasharray: 2 3;
}

.case-vis .q-row line {
    stroke: var(--rule);
}

.case-vis .q-row text.v {
    font-weight: 500;
    fill: var(--ink);
}

.case-vis .q-stamp rect {
    fill: none;
    stroke: url(#sigBox);
    stroke-width: 2;
}

.case-vis .q-stamp text {
    font: 600 13px/1 var(--f-mono);
    fill: var(--ink);
}

@media (max-width: 1023px) {
    .cases-head .h1,
    .cases-head .lead {
        grid-column: 1 / -1;
    }

    .idx-head {
        display: none;
    }

    .case-head {
        grid-template-columns: 56px 1fr 24px;
        grid-template-areas: 'n c a' 'n h a' 'n r a';
        row-gap: 4px;
        padding: 20px 0;
    }

    .plat-s { grid-area: n; font-size: 36px; align-self: start; }
    .case-head .case-study-category { grid-area: c; }
    .case-head h3 { grid-area: h; }
    .case-head .res { grid-area: r; }
    .case-head .arr { grid-area: a; }

    .case-body {
        height: auto;
    }

    .case-inner {
        grid-template-columns: 1fr;
        height: auto;
        padding: 0 0 32px;
    }

    .case-vis {
        height: auto;
    }

    .case-side .frame {
        aspect-ratio: 16 / 10;
    }

    .cases-head .sheet-no {
        display: none;
    }
}

/* ============ 07 HOW WE WORK ============ */
.s-how {
    padding: 0;
}

.how-pin {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 40px) 0 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.how-head {
    row-gap: 12px;
    align-items: end;
}

.how-head .h1 {
    grid-column: 2 / 8;
    font-size: clamp(40px, 5vw, 88px);
}

.how-head .lead {
    grid-column: 9 / -1;
    font-size: 15px;
}

.how-track {
    margin-top: 32px;
}

.how-track .track {
    grid-column: 2 / -1;
    width: 100%;
    height: auto;
    overflow: visible;
}

#track {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1;
}

#trackLit {
    fill: none;
    stroke: url(#sig);
    stroke-width: 3;
}

.track .station circle {
    fill: var(--paper);
    stroke: var(--dia);
    stroke-width: 1;
}

.track .station.on circle {
    fill: url(#sigBox);
    stroke: none;
}

.track .station .dep {
    font: 500 14px/1 var(--f-sans);
    letter-spacing: 0.01em;
    fill: var(--mute);
    transition: fill 0.4s;
}

.track .station.on .dep {
    fill: var(--indigo);
}

.how-body {
    margin-top: 24px;
    align-items: start;
}

.board {
    grid-column: 2 / 9;
    border-collapse: collapse;
    /* keep clear air between the table and the diagram panel */
    width: calc(100% - clamp(24px, 3vw, 56px));
    font-size: 15px;
}

.board th {
    text-align: left;
    font: 600 11.5px/1 var(--f-sans);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--mute);
    padding: 0 16px 14px 0;
    border-bottom: 1px solid var(--ink);
}

.board td {
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
    color: var(--mute);
    transition: color 0.4s;
}

.b-row.on td {
    color: var(--ink);
}

.b-plat {
    font-size: 44px;
    font-weight: 640;
    letter-spacing: -0.06em;
    line-height: 1;
    width: 80px;
    font-variant-numeric: tabular-nums;
    /* Cap-top alignment with the "Wk" text (14px, line-height 1.6 → cap top ≈ 6.1px down).
       With line-height 1, Inter's cap top sits 0.137em down, so drop the numeral to match. */
    position: relative;
    top: calc(6.1px - 0.137em);
}

.b-dep,
.b-status {
    font: 500 14px/1.6 var(--f-sans);
    white-space: nowrap;
    width: 104px;
}

.b-dest b {
    display: block;
    font-size: 20px;
    font-weight: 560;
    letter-spacing: -0.025em;
}

.b-dest span {
    display: block;
    font-size: 14px;
    margin-top: 2px;
}

.b-dest .ticks {
    display: none;
    margin-top: 10px;
}

.b-row.on .b-dest .ticks {
    display: block;
}

.b-row.on .b-dest .ticks li {
    font-size: 14px;
    color: var(--body);
}

.b-row.on .b-status {
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.station-vis {
    grid-column: 9 / -1;
    position: relative;
    aspect-ratio: 1;
    outline: 1px solid var(--rule);
}

.station-vis .crop {
    inset: -10px;
}

.sv {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 100% 0 0);
}

.sv .n {
    fill: var(--paper);
    stroke: var(--dia);
    stroke-width: 1;
}

.sv .n.hot {
    stroke: url(#sigBox);
    stroke-width: 2;
}

.sv .e {
    fill: none;
    stroke: var(--rule-strong);
    stroke-width: 1;
}

.sv .lens {
    fill: none;
    stroke: var(--dia);
    stroke-width: 2;
}

.sv text {
    font: 500 12px/1.2 var(--f-sans);
    fill: var(--navy);
}

.sv text.b {
    font: 500 13px/1 var(--f-sans);
    fill: var(--ink);
}

.sv .wf {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1;
}

.sv .spoke {
    stroke: var(--dia);
    stroke-width: 1;
    fill: none;
}

.sv .core rect {
    fill: var(--ink);
}

.sv .core text {
    fill: #fff;
    font: 500 13px/1 var(--f-sans);
}

.sv .line-a {
    fill: none;
    stroke: var(--dia);
    stroke-width: 1.5;
}

.sv .line-b {
    fill: none;
    stroke: url(#sigBox);
    stroke-width: 2.5;
}

.sv .dot {
    fill: url(#sigBox);
}

.how-foot {
    margin-top: 24px;
}

.how-foot .link {
    grid-column: 2 / 8;
    justify-self: start;
}

@media (max-width: 1023px) {
    .how-head .h1,
    .how-head .lead,
    .how-track .track,
    .board,
    .station-vis,
    .how-foot .link {
        grid-column: 1 / -1;
    }

    .board thead {
        display: none;
    }

    .b-dep {
        display: none;
    }

    .b-plat {
        font-size: 32px;
        width: 48px;
    }

    .b-status {
        width: auto;
    }

    .b-dest .ticks {
        display: block;
    }

    /* the animated diagram panel is desktop-only (no animation on phones/tablets) */
    .station-vis {
        display: none;
    }

    .how-head .sheet-no {
        display: none;
    }
}

/* ============ 08 PROMISE ============ */
.s-prom {
    padding-bottom: calc(var(--pad-y) * 0.6);
}

.prom-row {
    align-items: center;
    border-top: 1px solid var(--rule);
    padding: 24px 0;
    overflow: hidden;
}

.prom-row:last-of-type {
    border-bottom: 1px solid var(--rule);
}

.mega {
    grid-column: 2 / 9;
    display: flex;
    align-items: flex-start;
    font-size: var(--t-mega);
    font-weight: 640;
    line-height: 0.8;
    letter-spacing: -0.07em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mega sup {
    font-size: 0.4em;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-left: 0.04em;
    vertical-align: top;
}

.odo {
    display: inline-flex;
}

.digit {
    display: inline-block;
    height: 0.8em;
    overflow: hidden;
}

.strip {
    display: flex;
    flex-direction: column;
}

.strip > span {
    display: block;
    height: 0.8em;
    line-height: 0.8;
}

.prom-side {
    grid-column: 9 / -1;
    display: grid;
    gap: 16px;
}

.prom-side p {
    color: var(--body);
}

.prom-side .dim {
    width: 100%;
    max-width: 400px;
    overflow: visible;
}

.prom-side .dim line {
    stroke: var(--dia);
    stroke-width: 1;
}

.prom-side .dim rect {
    fill: var(--paper);
}

.prom-side .dim text {
    font: 400 12px/1 var(--f-mono);
    fill: var(--navy);
}

.zero {
    height: 0.8em;
    width: auto;
    overflow: visible;
}

.zero path {
    fill: none;
    stroke: var(--dia);
    stroke-width: 12;
}

.unlocked {
    opacity: 0;
}

.ledger {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    font: 400 12px/1 var(--f-mono);
    color: var(--navy);
    flex-wrap: wrap;
}

.ledger i {
    flex: 1;
    min-width: 32px;
    height: 1px;
    background: var(--rule-strong);
}

@media (max-width: 1023px) {
    .mega,
    .prom-side,
    .ledger {
        grid-column: 1 / -1;
    }

    .prom-side {
        margin-top: 16px;
    }

    .mega {
        font-size: 40vw;
    }

    .prom-head .sheet-no {
        display: none;
    }
}

/* ============ 09 TESTIMONIALS ============ */
.testi-head .h1 {
    grid-column: 2 / 10;
}

.slides {
    margin-top: 56px;
}

/* Each slide is a card (same look as the thesis page's .p-quote): stacked in one
   grid cell, only the active one visible and on top. */
.slides .testimonial-slide {
    grid-column: 2 / -1;
    grid-row: 1;
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    padding: clamp(20px, 3vw, 36px);
    border-radius: 28px;
    background: linear-gradient(135deg, #fff 40%, var(--tint));
    border: 1px solid var(--rule);
    box-shadow: 0 24px 60px -32px rgba(79, 70, 229, 0.18);
    visibility: hidden;
}

.slides .testimonial-slide.active {
    visibility: visible;
    position: relative;
    z-index: 1;
}

.slides .q {
    font-size: clamp(24px, 2.6vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ink);
    quotes: none;
}

.slides .q .w {
    color: #a9b1c0;
}

.slides .attr {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
}

.slides .attr b {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.slides .attr span {
    font-size: 14px;
    color: var(--body);
}

.slides .t-brand {
    display: block;
    margin-top: 22px;
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.slides .t-story {
    display: inline-flex;
    margin-top: 22px;
    color: var(--indigo);
}

.slides .t-frame {
    justify-self: end;
    width: 100%;
    max-height: min(50vh, 400px);
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.slides .t-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slides .t-logo {
    max-height: none;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    padding: 12%;
    background: #fff;
    border: 1px solid var(--rule);
}

.slides .t-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.t-index {
    margin-top: 28px;
    align-items: center;
}

.t-count {
    grid-column: 2 / 4;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--mute);
}

.t-count .t-cur {
    display: inline-block;
    color: var(--ink);
}

.s-testi .testimonial-dots {
    grid-column: 4 / 11;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    height: 48px;
    align-items: center;
}

.s-testi .testimonial-dot {
    height: 48px;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    border-radius: 0;
}

/* pill bars like the thesis page; the gradient .t-seg slides over the active one */
.s-testi .testimonial-dots {
    column-gap: 8px;
}

.s-testi .testimonial-dot::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 2px);
    height: 4px;
    border-radius: 4px;
    background: var(--lav);
    transition: background 0.3s;
}

.s-testi .testimonial-dot:hover::before {
    background: #d4cffb;
}

.t-seg {
    position: absolute;
    left: 0;
    top: calc(50% - 2px);
    height: 4px;
    /* one bar's width: (track − 3 gaps) / 4; JS moves it by 25% of the track per step */
    width: calc((100% - 24px) / 4);
    background: var(--sig);
    pointer-events: none;
}

.t-arrows {
    grid-column: 11 / -1;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.s-testi .testimonial-nav {
    position: static;
    width: 56px;
    height: 56px;
    border: 1px solid var(--rule-strong);
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    transition: background 0.3s, color 0.3s;
}

.s-testi .testimonial-nav:hover {
    background: var(--ink);
    color: #fff;
}

@media (max-width: 1023px) {
    .testi-head .h1,
    .slides .testimonial-slide {
        grid-column: 1 / -1;
    }

    .slides .testimonial-slide {
        grid-template-columns: minmax(0, 1fr);
    }

    .slides .t-frame {
        justify-self: start;
        width: 100%;
        max-height: 50vh;
    }

    .slides .t-logo {
        width: 100%;
        max-width: 420px;
    }

    .t-count {
        grid-column: 1 / 2;
        font-size: 24px;
    }

    .s-testi .testimonial-dots {
        grid-column: 2 / 4;
    }

    .t-arrows {
        grid-column: 4 / -1;
    }

    .s-testi .testimonial-nav {
        width: 48px;
        height: 48px;
    }

    .testi-head .sheet-no {
        display: none;
    }
}

/* ============ 10 CONTACT ============ */
.s-contact {
    background: var(--paper);
}

.contact-grid {
    align-items: start;
}

.c-left {
    grid-column: 2 / 6;
    display: grid;
    gap: 24px;
    justify-items: start;
}

.c-left .h3 {
    margin-top: 24px;
}

.wo {
    grid-column: 7 / -1;
    border-top: 1px solid var(--ink);
}

.wo-head {
    display: flex;
    justify-content: space-between;
    font: 400 12px/1 var(--f-mono);
    color: var(--navy);
    padding: 12px 0;
}

.field {
    position: relative;
    border-top: 1px solid var(--rule);
    padding: 16px 40px 12px 0;
    min-height: 96px;
}

.field::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--sig);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.field:focus-within::after {
    transform: scaleX(1);
}

.field label {
    display: block;
    font: 400 12px/1 var(--f-mono);
    color: var(--navy);
    margin-bottom: 8px;
}

.field .f-no {
    margin-right: 8px;
    color: var(--mute);
    transition: color 0.3s;
}

.field:focus-within .f-no {
    color: var(--sig-mid);
}

.field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 4px 0;
    font: 400 28px/1.2 var(--f-sans);
    letter-spacing: -0.03em;
    color: var(--ink);
    border-radius: 0;
}

.field input::placeholder {
    color: #a9b1c0;
}

.field input.is-invalid {
    text-decoration: underline wavy rgba(11, 18, 32, 0.4) 1px;
    text-underline-offset: 6px;
}

.field input:focus-visible {
    outline: none;
}

.field .ok {
    position: absolute;
    right: 0;
    bottom: 22px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: url(#sigBox);
    stroke-width: 2;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.3s var(--ease-out);
}

.field.valid .ok {
    stroke-dashoffset: 0;
}

.form-status {
    min-height: 24px;
    margin: 16px 0;
    font: 400 12px/1.4 var(--f-mono);
    color: var(--navy);
}

.form-status.is-error {
    color: var(--ink);
    text-decoration: line-through;
    text-decoration-color: rgba(11, 18, 32, 0.4);
    text-decoration: none;
}

.form-status.is-success {
    color: var(--ink);
}

.wo .submit-btn:disabled {
    cursor: wait;
}

.wo .submit-btn:disabled .btn__bar {
    transform: scaleX(1);
    transform-origin: left;
    animation: transmit 0.9s linear infinite;
}

@keyframes transmit {
    0% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 1023px) {
    .c-left,
    .wo {
        grid-column: 1 / -1;
    }

    .wo {
        margin-top: 48px;
    }

    .field input {
        font-size: 22px;
    }

    .contact-grid .sheet-no {
        display: none;
    }
}

/* ============ 11 END SHEET ============ */
.s-end {
    padding-bottom: 0;
    overflow: hidden;
}

.end-cta {
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
}

.end-cta .h2 {
    grid-column: 2 / 9;
    font-size: clamp(26px, 2.6vw, 44px);
}

.end-cta .btn {
    grid-column: 10 / -1;
    justify-self: end;
}

.wordmark {
    position: relative;
    max-width: var(--maxw);
    margin: 40px auto 0;
    padding: 0 var(--margin);
    height: 26vw;
    max-height: 440px;
    overflow: hidden;
}

.wm {
    display: flex;
    justify-content: space-between;
    font-size: 33vw;
    line-height: 0.74;
    letter-spacing: -0.07em;
    color: var(--ink);
    white-space: nowrap;
}

@media (min-width: 1680px) {
    .wm {
        font-size: 560px;
    }
}

.wm .l {
    display: inline-block;
    font-variation-settings: "wght" var(--w);
    font-weight: normal;
    position: relative;
    /* full-width letter boxes so text-clipped gradients cover the whole glyph */
    letter-spacing: 0;
}

/* Match the logo (public/senai-favicon.svg): "Sen" carries the blue→violet gradient,
   "AI" is ink. The logo's gradient runs across the whole word, so each letter gets
   its own slice of it to read as one continuous sweep. */
.wm .l-s,
.wm .l-e,
.wm .l-n {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wm .l-s { background-image: linear-gradient(90deg, #3f9ce8, #578de6); }
.wm .l-e { background-image: linear-gradient(90deg, #578de6, #707ce3); }
.wm .l-n { background-image: linear-gradient(90deg, #727be3, #896ce1); }

@media (max-width: 1023px) {
    .end-cta .h2,
    .end-cta .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .end-cta .btn {
        margin-top: 24px;
    }

    .end-cta .sheet-no {
        display: none;
    }
}

.gap-plot #senaiNode .sn-anno {
    font: 400 13px/1 var(--f-mono);
    letter-spacing: 0;
    fill: var(--navy);
}

/* ==========================================================================
   Brand colour layer — SenAI blue → violet, indigo, lavender, signal red
   ========================================================================== */
.s-int,
.s-how,
.s-prod {
    background:
        radial-gradient(50% 40% at 75% 50%, rgba(232, 229, 255, 0.55), rgba(232, 229, 255, 0) 70%),
        radial-gradient(40% 30% at 15% 80%, rgba(63, 156, 232, 0.07), rgba(63, 156, 232, 0) 70%);
}

/* integration */
#intSvg #orbits circle { stroke: rgba(63, 156, 232, 0.55); stroke-width: 1.2; }
#intSvg #core circle { fill: #fff; stroke: #3f9ce8; stroke-width: 1.5; filter: drop-shadow(0 10px 24px rgba(63, 156, 232, 0.18)); }
#intSvg #core text { fill: var(--ink); }
#intSvg .node circle { fill: #fff; stroke: var(--dia-soft); stroke-width: 1.2; filter: drop-shadow(0 6px 14px rgba(79, 70, 229, 0.14)); }
#intSvg .node text { fill: var(--body); }
#intSvg .stub, #intSvg .xm { stroke: var(--red); }
#intSvg .err text { fill: var(--red); }
#intSvg .err line { stroke: rgba(224, 86, 111, 0.45); }
#intSvg #senai rect { fill: url(#sigBox); stroke: none; rx: 28px; filter: drop-shadow(0 12px 28px rgba(107, 99, 255, 0.35)); }
#intSvg #senai text { fill: #fff; }
#intSvg .iso { stroke: rgba(159, 94, 223, 0.25); rx: 34px; }
#intSvg .o-num .n { fill: url(#sigBox); }
#intSvg .o-lbl { fill: var(--body); }
.step.is-active .step-no { color: var(--indigo); }

/* gap chart (signature colours of the original chart) */
.gap-plot #cap { stroke: url(#sig); stroke-width: 9; }
.gap-plot #smb { stroke: var(--red); stroke-width: 2.5; }
.gap-plot #smb.closed { stroke: url(#sig); stroke-width: 3.5; }
.gap-plot .gap-fill { fill: rgba(224, 86, 111, 0.08); }
.gap-plot #caliper line, .gap-plot #caliper path { stroke: var(--red); }
.gap-plot #caliper text { fill: var(--red); }
.gap-plot #caliper rect { rx: 6px; }
.gap-plot #gapRing circle { stroke: rgba(99, 102, 241, 0.5); }
.gap-plot #gapRing text, .gap-plot .smb-lbl { fill: var(--red); }
.readout .r-gap-row dd { color: var(--red); }
.readout { background: rgba(255, 255, 255, 0.85); border-radius: 14px; padding: 4px 16px; border: 1px solid var(--rule); }
.readout > div:first-child { border-top: 0; }
.readout > div:last-child { border-bottom: 0; }
.gap-h-a .ln:nth-child(2) { color: #9aa3b5; }

/* solution */
#solSvg .mess { stroke: var(--red); }
#solSvg .steps, #solSvg .mess.done { stroke: var(--indigo); stroke-width: 2; }
#solSvg .ms circle { stroke: var(--indigo); stroke-width: 1.5; }
#solSvg .sq { fill: var(--dia-fill); stroke: var(--dia-soft); rx: 7px; }
#solSvg .gl { stroke: rgba(79, 70, 229, 0.1); }
#solSvg .leader { stroke: rgba(79, 70, 229, 0.4); }
.sol-panel { background: rgba(248, 249, 255, 0.7); border: 1px solid var(--rule); border-radius: 24px; padding: 24px; }
.sol-panel .crop { display: none; }

/* big numerals: full glyphs, brand gradient (no cropping) */
.plat {
    height: auto;
    overflow: visible;
    font-size: var(--t-plat);
    line-height: 1;
    letter-spacing: -0.05em;
    padding-top: 24px;
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: max-content;
}
.plat-s,
.b-row.on .b-plat {
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
    padding-right: 0.06em;
}
.plat-s { font-size: 48px; }

/* product */
.sieve i { background: var(--dia); border-radius: 3px; }
.prod-frame { border-radius: 20px; overflow: hidden; border: 0; }
.compass-o circle:first-child { stroke: var(--ink); }
.rr-time { background: var(--dia); }
.thin { background: var(--sig); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }

/* cases */
.case-vis .box rect { fill: #eef2ff; stroke: #6366f1; rx: 8px; }
.case-vis .box path { fill: #fff1f2; stroke: var(--red); }
.case-vis .route { stroke: #3f9ce8; stroke-width: 1.5; }
.case-vis .route-head { fill: #3f9ce8; }
.case-vis .stamp rect { rx: 6px; }
.case-vis .stamp:not(.pass) rect { stroke: var(--red); }
.case-vis .stamp:not(.pass) text { fill: var(--red); }
.case-vis .big { fill: url(#sigBox); font-weight: 300; }
/* finance: retirement vs investment balance projection */
.case-vis .acct { fill: none; stroke-linecap: round; }
.case-vis .acct-ret { stroke: url(#sigBox); stroke-width: 2.5; }
.case-vis .acct-inv { stroke: #3f9ce8; stroke-width: 2; stroke-dasharray: 6 5; }
.case-vis .acct-area { fill: rgba(159, 94, 223, 0.08); }
.case-vis .acct-dot { stroke: #fff; stroke-width: 2; }
.case-vis .acct-dot.ret, .case-vis .acct-panel .sw.ret { fill: #9f5edf; }
.case-vis .acct-dot.inv, .case-vis .acct-panel .sw.inv { fill: #3f9ce8; }
.case-vis .acct-panel > rect:first-child { fill: rgba(255, 255, 255, 0.92); stroke: var(--rule); rx: 10px; }
.case-vis .acct-panel text { font-size: 11.5px; fill: var(--ink); }
.case-vis .acct-panel .acct-age { font-weight: 600; fill: var(--indigo); }
.case-vis .acct-lbl { font: 600 12px/1 var(--f-sans); fill: var(--ink); }
.case-vis .tick { fill: var(--mute); font-size: 11px; }
.case-vis .sweep.retire { stroke: var(--rule-strong); stroke-dasharray: 4 4; }
.case-vis .q-stamp rect { rx: 10px; }
.case-side .frame { overflow: hidden; }
.idx-head { border-bottom-color: var(--rule-strong); }

/* process */
#track { stroke: var(--dia-soft); stroke-width: 2; }
.track .station circle { stroke: var(--dia); stroke-width: 1.5; }
.station-vis { outline: 0; border: 1px solid var(--rule); border-radius: 24px; background: rgba(255, 255, 255, 0.75); overflow: hidden; }
.station-vis .crop { display: none; }
.sv .n { fill: var(--dia-fill); stroke: var(--dia-soft); rx: 8px; }
.sv .n.hot { fill: #fff; }
.sv .wf { stroke: var(--dia); rx: 6px; }
.sv .core rect { fill: url(#sigBox); rx: 20px; }
.sv .lens { stroke: var(--indigo); }
.sv .line-a { stroke: #9aa3b5; }
.board th { border-bottom-color: var(--rule-strong); }

/* promise */
.digit,
.strip > span {
    height: 0.9em;
    line-height: 0.9;
}
.odo[data-val="60"] .strip > span {
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.zero path { stroke: url(#sigBox); }
.mega sup { background: var(--sig); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ledger i { background: var(--sig); opacity: 0.5; }

/* testimonials */
.t-seg { border-radius: 4px; }
.s-testi .testimonial-nav { border-radius: 999px; }
.s-testi .testimonial-nav:hover { background: var(--sig); border-color: transparent; }
.t-count .t-cur { background: var(--sig); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* contact */
.wo { border-top: 0; background: rgba(248, 249, 255, 0.8); border: 1px solid var(--rule); border-radius: 24px; padding: 8px 28px 28px; }
.wo-head { color: var(--indigo); }
.field:first-of-type { border-top: 0; }

/* end sheet */
.end-cta { border-bottom-color: var(--rule); }

/* ---- round 3 fixes ---- */
/* the global dl/ul reset (body.sx dl) was stripping card padding */
body.sx .hero-side .spec {
    padding: 6px 22px;
}

body.sx .gap-grid .readout {
    padding: 4px 18px;
}

body.sx .s-sol .sol-panel {
    padding: 28px;
}

/* readable fragments in Solution 02 */
#solSvg .sq {
    fill: #e0e7ff;
    stroke: #818cf8;
    stroke-width: 1.2;
}

/* HireCompass: light candidate chips, finalists in gradient */
.sieve i {
    background: #dfe4ff;
    opacity: 1;
    border-radius: 4px;
    transition: background 0.3s;
}

.sieve i.keep {
    background: var(--sig);
}

.prod-mark {
    overflow: visible;
}

/* odometers: no clipped glyph edges */
.mega {
    letter-spacing: -0.04em;
}

.digit {
    padding: 0 0.04em;
    margin: 0 -0.02em;
}

.prod-mark {
    grid-column: 2 / -1;
}

/* product section intro: say clearly that this is SenAI's own product */
.prod-intro {
    grid-column: 2 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.prod-lede {
    font-size: clamp(26px, 2.6vw, 42px);
    font-weight: 560;
    line-height: 1.15;
    letter-spacing: -0.028em;
    color: var(--ink);
    max-width: 30ch;
}

.prod-lede span {
    color: #8a93a8;
}

@media (max-width: 1023px) {
    .prod-intro {
        grid-column: 1 / -1;
    }
}

/* cases: the open row's diagram must scale to the space it has, never overflow */
@media (min-width: 1024px) {
    .case-inner {
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
    }

    .case-vis {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 100%;
    }

    .case-side {
        min-height: 0;
        height: 100%;
    }

    .plat-s {
        overflow: visible;
        white-space: nowrap;
    }
}

/* short desktop screens: give the open case more room */
@media (min-width: 1024px) and (max-height: 860px) {
    .cases-pin {
        padding-top: calc(var(--nav-h) + 16px);
        padding-bottom: 16px;
    }

    .cases-head .h1 {
        font-size: clamp(28px, 2.6vw, 44px);
    }

    .cases-head .lead {
        font-size: 14px;
    }

    .cases-wrap {
        margin-top: 16px;
    }

    .idx-head {
        padding-bottom: 8px;
    }

    .case-head {
        min-height: 58px;
    }

    .plat-s {
        font-size: 36px;
    }

    .case-inner {
        padding-top: 10px;
        padding-bottom: 12px;
    }
}

/* ---- contact form v2: clean rounded fields ---- */
body.sx .wo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 18px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.08);
    align-content: start;
}

body.sx .wo .wo-head {
    grid-column: 1 / -1;
    display: block;
    padding: 0 0 6px;
}

.wo-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.wo-sub {
    margin-top: 6px !important;
    font-size: 15px;
    color: var(--body);
}

body.sx .wo .field {
    border: 0;
    padding: 0;
    min-height: 0;
}

body.sx .wo .field::after {
    display: none;
}

body.sx .wo .field label {
    font: 500 13px/1 var(--f-sans);
    letter-spacing: 0;
    color: var(--ink);
    margin-bottom: 8px;
}

body.sx .wo .field .f-no {
    display: none;
}

body.sx .wo .field input {
    height: 50px;
    padding: 0 44px 0 16px;
    border: 1px solid #dfe3f0;
    border-radius: 12px;
    background: var(--tint);
    font: 400 16px/1 var(--f-sans);
    letter-spacing: -0.01em;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

body.sx .wo .field input::placeholder {
    color: #9aa3b5;
}

body.sx .wo .field input:focus {
    background: #fff;
    border-color: var(--dia);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

body.sx .wo .field input.is-invalid {
    text-decoration: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(224, 86, 111, 0.12);
}

body.sx .wo .field .ok {
    right: 14px;
    bottom: 15px;
}

body.sx .wo .form-status {
    grid-column: 1 / -1;
    margin: 0;
    min-height: 18px;
    font: 400 13px/1.4 var(--f-sans);
}

body.sx .wo .form-status.is-error {
    color: var(--red);
}

body.sx .wo .submit-btn {
    grid-column: 1 / -1;
    height: 56px;
}

.c-left .lead {
    max-width: 36ch;
}

@media (max-width: 767px) {
    body.sx .wo {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}

/* ---- How we work: everything fits inside the pinned screen ---- */
@media (min-width: 1024px) {
    .how-pin {
        height: 100vh;
        height: 100svh;
        min-height: 0;
        padding: calc(var(--nav-h) + 20px) 0 20px;
        justify-content: flex-start;
        gap: 0;
    }

    .how-head .h1 {
        font-size: clamp(34px, 3.4vw, 60px);
    }

    .how-head .lead {
        align-self: center;
    }

    .how-track {
        margin-top: clamp(16px, 3vh, 32px);
    }

    .how-track .track {
        max-height: 72px;
    }

    .how-body {
        margin-top: clamp(16px, 3vh, 32px);
        flex: 1;
        min-height: 0;
        align-items: stretch;
    }

    .board td {
        padding: 12px 16px 12px 0;
    }

    .board th {
        padding-bottom: 12px;
    }

    .b-plat {
        font-size: 32px;
        width: 64px;
    }

    .b-dest b {
        font-size: 17px;
    }

    .b-dest span {
        font-size: 13px;
    }

    .b-row.on .b-dest .ticks li {
        font-size: 13.5px;
    }

    .b-dest .ticks {
        margin-top: 6px;
    }

    .station-vis {
        aspect-ratio: auto;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        align-self: stretch;
    }

    .how-foot {
        margin-top: 10px;
    }
}

/* very short screens: drop the lead, and the sub-copy under each stop only when really tight */
@media (min-width: 1024px) and (max-height: 760px) {
    .how-head .lead {
        display: none;
    }
}

@media (min-width: 1024px) and (max-height: 660px) {
    .b-dest span {
        display: none;
    }
}

/* split words must not inherit the blockquote's hanging indent */
.slides .q .w {
    text-indent: 0;
}

body.sx .wo .wo-head {
    font: 400 15px/1.4 var(--f-sans);
    color: var(--body);
}

body.sx .wo .wo-title {
    font: 600 24px/1.2 var(--f-sans);
    color: var(--ink);
}

/* ============ 05b VMI — Vertical Market Intelligence ============ */
.vmi {
    margin-top: clamp(80px, 12vh, 140px);
    padding-top: clamp(48px, 7vh, 72px);
    border-top: 1px solid var(--rule);
    row-gap: 32px;
    align-items: center;
}

.vmi-head {
    grid-column: 2 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.vmi-mark {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: clamp(64px, 9vw, 150px);
    font-weight: 640;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.vmi-mark .grad {
    padding-right: 0.04em;
}

.vmi-mark small {
    font-size: clamp(18px, 1.6vw, 26px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.vmi-tag {
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 500;
    letter-spacing: -0.025em;
    color: #8a93a8;
}

.vmi-text {
    grid-column: 2 / 6;
    display: grid;
    gap: 28px;
}

.vmi-vis {
    grid-column: 7 / -1;
    padding: clamp(16px, 2vw, 28px);
    border-radius: 24px;
    border: 1px solid var(--rule);
    background:
        radial-gradient(60% 60% at 80% 20%, rgba(232, 229, 255, 0.7), rgba(232, 229, 255, 0) 70%),
        #fff;
}

#vmiSvg {
    width: 100%;
    height: auto;
    overflow: visible;
}

#vmiSvg text {
    font-family: var(--f-sans);
}

.v-brief rect {
    fill: var(--dia-fill);
    stroke: var(--dia);
    stroke-width: 1.4;
}

.v-brief line {
    stroke: var(--dia-soft);
    stroke-width: 3;
    stroke-linecap: round;
}

.v-cap {
    font: 400 12px/1 var(--f-mono) !important;
    fill: var(--navy);
}

.v-flow {
    fill: none;
    stroke: url(#sig);
    stroke-width: 2;
}

.v-pill rect {
    fill: #fff;
    stroke: var(--dia-soft);
    stroke-width: 1.4;
    transition: fill 0.4s, stroke 0.4s;
}

.v-pill text {
    font-size: 13px;
    font-weight: 600;
    fill: var(--body);
}

.v-pill.lit rect {
    fill: url(#sigBox);
    stroke: transparent;
}

.v-pill.lit text {
    fill: #fff;
}

.v-dot {
    fill: var(--indigo);
}

.v-card {
    fill: #fff;
    stroke: var(--rule-strong);
    stroke-width: 1;
}

.v-tier {
    fill: #d7dbe6;
}

.v-row-a .v-tier {
    fill: url(#sigBox);
}

.v-row-b .v-tier {
    fill: var(--dia);
}

.v-tier-t {
    font-size: 15px;
    font-weight: 700;
    fill: #fff;
}

.v-bar {
    fill: #e3e7f5;
}

.v-row-a .v-bar:not(.v-bar-2) {
    fill: var(--dia-soft);
}

.v-desc {
    font: 400 12px/1 var(--f-mono) !important;
    fill: var(--navy);
}

.v-chip rect {
    fill: var(--lav);
}

.v-chip text {
    font: 500 11px/1 var(--f-mono) !important;
    fill: var(--indigo);
}

.v-row-c {
    opacity: 0.75;
}

@media (max-width: 1023px) {
    .vmi-head,
    .vmi-text,
    .vmi-vis {
        grid-column: 1 / -1;
    }
}

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

/* ==========================================================================
   Round 4 — calmer homepage: one idea per screen, less copy, card layouts
   ========================================================================== */
body.sx .sheet-no {
    display: none;
}

.sec-h {
    font-size: clamp(34px, 3.6vw, 64px);
}

/* ---- 03 gap: the whole chart always fits inside the pinned screen ---- */
.gap-sub {
    color: #9aa3b5;
}

@media (min-width: 1024px) {
    .gap-grid {
        height: 100vh;
        height: 100svh;
        min-height: 0;
        padding-top: calc(var(--nav-h) + 28px);
        padding-bottom: 20px;
        align-content: stretch;
        grid-template-rows: auto minmax(0, 1fr);
        row-gap: 12px;
    }

    .gap-h {
        font-size: clamp(34px, 3.6vw, 64px);
    }

    .readout {
        align-self: center;
    }

    .gap-plot {
        margin: 0;
        min-height: 0;
        height: 100%;
    }

    .gap-plot svg {
        display: block;
        width: 100%;
        height: 100%;
        max-height: none;
    }
}

/* ---- 04 solution: one pinned screen, the active pillar lights up ---- */
.s-sol {
    padding: 0;
}

.sol-pin {
    display: flex;
    flex-direction: column;
    padding: calc(var(--nav-h) + 32px) 0 32px;
}

.sol-head {
    align-items: end;
}

.sol-head .h1 {
    grid-column: 2 / 9;
    font-size: clamp(34px, 3.6vw, 64px);
}

.sol-head .lead {
    grid-column: 9 / -1;
    font-size: 17px;
}

.sol-body {
    margin-top: 28px;
    align-items: stretch;
}

.pillars {
    grid-column: 2 / 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.pillar {
    min-height: 0;
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    border: 1px solid transparent;
    border-radius: 20px;
    opacity: 0.42;
    transition: opacity 0.4s, background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.pillar.is-active {
    opacity: 1;
    background: #fff;
    border-color: var(--rule);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.08);
}

.pillar .plat {
    font-size: 52px;
    padding-top: 0;
    height: auto;
}

.pillar .h2 {
    max-width: none;
    font-size: clamp(20px, 1.6vw, 26px);
}

.pillar p {
    margin-top: 6px;
    font-size: 16px;
}

.sol-panel {
    grid-column: 8 / -1;
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
}

#solSvg {
    flex: 1;
    min-height: 0;
    max-height: none;
}

@media (min-width: 1024px) {
    .sol-pin {
        height: 100vh;
        height: 100svh;
    }

    .sol-body {
        flex: 1;
        min-height: 0;
    }
}

@media (max-width: 1023px) {
    .sol-head .h1,
    .sol-head .lead,
    .pillars,
    .sol-panel {
        grid-column: 1 / -1;
    }

    .pillar {
        opacity: 1;
        padding: 16px 0;
    }

    .sol-panel {
        height: 70vw;
        margin-top: 16px;
    }
}

/* ---- 05 products: two cards from one family ---- */
.s-prod {
    padding-block: calc(var(--nav-h) + 32px) 56px;
}

@media (min-width: 1024px) {
    .s-prod {
        min-height: 100vh;
        min-height: 100svh;
    }
}

.prod-head {
    align-items: end;
    row-gap: 16px;
}

.prod-head-l {
    grid-column: 2 / 9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.prod-head .h1 {
    font-size: clamp(34px, 3.6vw, 64px);
}

.prod-head .lead {
    grid-column: 9 / -1;
    font-size: 17px;
}

.prod-cards {
    margin-top: 32px;
}

.pcards {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gutter);
}

.pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 2.2vw, 34px);
    border: 1px solid var(--rule);
    border-radius: 28px;
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(232, 229, 255, 0.75), rgba(232, 229, 255, 0) 70%),
        #fff;
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.07);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 80px rgba(79, 70, 229, 0.13);
}

.pcard-kicker {
    font: 500 12px/1 var(--f-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--indigo);
}

.pcard-name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 14px;
    font-size: clamp(40px, 3.8vw, 64px);
    font-weight: 640;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--ink);
}

.pcard-name > span[aria-hidden] {
    display: inline-flex;
    align-items: baseline;
}

.pcard-name .grad {
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.04em;
}

.pcard-name small {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--body);
}

.pcard-name .compass-o {
    width: 0.66em;
    height: 0.66em;
    transform: translateY(0.04em);
}

.pcard-tag {
    margin-top: 8px;
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #8a93a8;
}

.pcard-vis {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: var(--tint);
    border: 1px solid var(--rule);
}

.pv-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 500 12px/1 var(--f-sans);
}

.pv-flow i {
    flex: 1;
    min-width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--sig);
    opacity: 0.6;
}

.pv-src {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px dashed var(--dia-soft);
    background: #fff;
    color: var(--navy);
    font-family: var(--f-mono);
    font-weight: 400;
    white-space: nowrap;
}

.pv-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--sig);
    color: #fff;
    white-space: nowrap;
}

.pv-rows {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.pv-rows li {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--rule);
}

.pv-t {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--sig);
    color: #fff;
    font: 700 14px/1 var(--f-sans);
}

.pv-b .pv-t {
    background: var(--dia-soft);
}

.pv-bars {
    display: grid;
    gap: 6px;
}

.pv-bars i {
    display: block;
    height: 8px;
    width: 72%;
    border-radius: 4px;
    background: var(--dia-soft);
}

.pv-bars i + i {
    width: 52%;
    height: 6px;
    background: #e3e7f5;
}

.pv-b .pv-bars i:first-child {
    background: #e3e7f5;
}

.pv-chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--lav);
    color: var(--indigo);
    font: 500 11px/1 var(--f-mono);
}

.pcard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
}

.pcard-stats li {
    display: grid;
    gap: 4px;
}

.pcard-stats b {
    font-size: clamp(26px, 2.2vw, 36px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: max-content;
    padding-right: 0.05em;
}

.pcard-stats span {
    font-size: 14px;
    color: var(--body);
}

.pcard-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: auto;
    padding-top: 24px;
}

button.link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .prod-head-l,
    .prod-head .lead,
    .pcards {
        grid-column: 1 / -1;
    }

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

/* ---- 06 cases: cards that open into a quick look ---- */
.s-cases {
    padding-block: calc(var(--nav-h) + 32px) 56px;
}

@media (min-width: 1024px) {
    .s-cases {
        min-height: 100vh;
        min-height: 100svh;
    }
}

.cases-head .h1 {
    font-size: clamp(34px, 3.6vw, 64px);
}

.cases-head .lead {
    font-size: 17px;
}

.cases-wrap {
    display: grid;
    margin-top: 32px;
}

.cases-grid {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
}

.ccard {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rule);
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.06);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.ccard:hover,
.ccard:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 34px 80px rgba(79, 70, 229, 0.14);
}

.ccard-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: inherit;
}

.ccard-hit:focus-visible {
    outline: 2px solid var(--dia);
    outline-offset: 3px;
}

.ccard-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tint);
    border-bottom: 1px solid var(--rule);
}

.ccard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.8s var(--ease-out);
}

.ccard:hover .ccard-img img {
    transform: scale(1.04);
}

.ccard-body {
    display: grid;
    gap: 8px;
    padding: 20px 22px 0;
}

.ccard-cat {
    font: 500 12px/1 var(--f-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--indigo);
}

.ccard h3 {
    font-size: clamp(19px, 1.5vw, 24px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
}

.ccard-res {
    font-size: 15px;
    color: var(--body);
}

.ccard-res b {
    font-weight: 600;
    background: var(--sig);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ccard-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 18px 22px 20px;
    font-size: 14px;
    font-weight: 500;
}

.ccard-open {
    color: var(--body);
}

.ccard:hover .ccard-open {
    color: var(--indigo);
}

.ccard-link {
    position: relative;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--rule-strong);
    color: var(--ink);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.ccard-link:hover {
    background: var(--sig);
    border-color: transparent;
    color: #fff;
}

@media (min-width: 1024px) and (max-height: 860px) {
    .ccard-img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 1023px) {
    .cases-head .h1,
    .cases-head .lead,
    .cases-grid {
        grid-column: 1 / -1;
    }

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

/* ---- pop-ups (case quick look, demo video) ---- */
html.modal-open {
    overflow: hidden;
}

.sx-modal {
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    max-height: calc(100svh - 48px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 28px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 40px 120px rgba(11, 18, 32, 0.25);
    overflow: auto;
    overscroll-behavior: contain;
}

.sx-modal::backdrop {
    background: rgba(11, 18, 32, 0.45);
    backdrop-filter: blur(6px);
}

.sx-modal[open] {
    animation: sxPop 0.45s var(--ease-out);
}

@keyframes sxPop {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.sx-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    background: #fff;
    font-size: 22px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}

.sx-modal-x:hover {
    background: var(--tint);
}

.sx-modal--video {
    width: min(1100px, calc(100vw - 32px));
    background: #000;
    border: 0;
}

.sx-video video {
    display: block;
    width: 100%;
    max-height: calc(100svh - 48px);
    background: #000;
}

.cm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.cm-vis {
    padding: 36px;
    background:
        radial-gradient(60% 60% at 20% 20%, rgba(232, 229, 255, 0.8), rgba(232, 229, 255, 0) 70%),
        var(--tint);
    display: flex;
    align-items: center;
}

.cm-vis .case-vis {
    width: 100%;
    height: auto;
}

.cm-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 40px 36px 36px;
}

.cm-title {
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cm-res {
    font-size: 17px;
}

.cm-list {
    display: grid;
    gap: 6px;
    font-size: 15px;
    color: var(--body);
}

.cm-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--rule);
}

.cm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.cm-link {
    margin-top: 6px;
}

@media (max-width: 767px) {
    .cm-grid {
        grid-template-columns: 1fr;
    }

    .cm-vis {
        padding: 20px;
    }

    .cm-text {
        padding: 24px 20px;
    }
}

/* ---- 07 how we work: rows are one line each now ---- */
@media (min-width: 1024px) {
    .how-head .h1 {
        font-size: clamp(34px, 3.6vw, 64px);
    }
}

/* ---- 08 promise: three numbers side by side, one screen ---- */
.s-prom {
    padding-block: clamp(64px, 10vh, 120px);
}

.prom-cols {
    row-gap: 32px;
}

.prom-cols .prom-row {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px 0 0;
    border-top: 1px solid var(--rule);
    overflow: visible;
}

.prom-cols .prom-row:first-child {
    grid-column: 2 / 6;
}

.prom-cols .prom-row:nth-child(2) {
    grid-column: 6 / 10;
}

.prom-cols .prom-row:last-child {
    grid-column: 10 / -1;
    border-bottom: 0;
}

.prom-cols .mega {
    font-size: clamp(88px, 9vw, 168px);
}

.prom-cols .prom-side {
    display: block;
}

.prom-cols .prom-side .dim {
    max-width: 260px;
}

.prom-cols .prom-side .anno {
    font-size: 13px;
}

@media (max-width: 1023px) {
    .prom-cols .prom-row,
    .prom-cols .prom-row:first-child,
    .prom-cols .prom-row:nth-child(2),
    .prom-cols .prom-row:last-child {
        grid-column: 1 / -1;
    }

    .prom-cols .mega {
        font-size: 28vw;
    }
}

button.link {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

.gap-plot #senaiNode .sn-anno {
    display: none;
}

.prom-cols .prom-row {
    align-items: flex-start;
}

.prom-cols .prom-row .mega {
    justify-content: flex-start;
}


.pcard,
.ccard {
    min-width: 0;
}

.pv-flow {
    overflow: hidden;
}

@media (max-width: 767px) {
    .pv-flow > :nth-child(n + 6) {
        display: none;
    }

    .pv-flow {
        font-size: 11px;
    }

    .pv-src,
    .pv-pill {
        padding: 7px 10px;
    }

    .pcard-stats b {
        font-size: 24px;
    }
}

/* ---- Products v2: airy copy on top, a real-looking app window at the bottom ---- */
.prod-cards {
    margin-top: 28px;
}

.pcard {
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
}

.pcard-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(28px, 2.6vw, 40px) clamp(28px, 2.6vw, 40px) 0;
}

.pcard-kicker {
    font-size: 11.5px;
    letter-spacing: 0.1em;
}

.pcard-name {
    margin-top: 18px;
    font-size: clamp(40px, 3.4vw, 56px);
    align-items: center;
    gap: 4px 18px;
}

.pcard-name small {
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0;
    padding-left: 18px;
    border-left: 1px solid var(--rule-strong);
}

.pcard-tag {
    margin-top: 12px;
    font-size: clamp(17px, 1.3vw, 20px);
    color: var(--body);
}

body.sx .pcard-stats {
    display: flex;
    gap: 0;
    margin-top: 24px;
}

.pcard-stats li {
    gap: 6px;
    padding-right: 28px;
}

.pcard-stats li + li {
    padding-left: 28px;
    border-left: 1px solid var(--rule);
}

.pcard-stats b {
    font-size: clamp(22px, 1.7vw, 28px);
}

.pcard-stats span {
    font-size: 13.5px;
}

.pcard-ctas {
    margin-top: 28px;
    padding-top: 0;
    gap: 14px 28px;
}

.pcard-ctas .link {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

/* the app window peeks up from the bottom edge of the card */
.app {
    margin: 32px clamp(28px, 2.6vw, 40px) 0;
    height: 214px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -10px 40px rgba(79, 70, 229, 0.08);
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid var(--rule);
    background: var(--tint);
}

.app-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dfe3f0;
}

.app-bar span {
    margin-left: 10px;
    font: 400 11.5px/1 var(--f-mono);
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 8px;
}

.app-head b {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.app-chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--lav);
    color: var(--indigo);
    font: 500 11px/1 var(--f-mono);
}

.app-rows li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-top: 1px solid rgba(79, 70, 229, 0.08);
}

.av {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font: 600 12px/1 var(--f-sans);
}

.av-1 { background: #e0edfb; color: #2a6fb8; }
.av-2 { background: #ece4fb; color: #7442c8; }
.av-3 { background: #eef0f6; color: #5b6478; }

.who {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.who b {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.who small {
    font-size: 12px;
    color: #7a8396;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sig {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f3f8;
    color: #5b6478;
    font: 500 11.5px/1 var(--f-sans);
    white-space: nowrap;
}

.sig-ok {
    background: #e7f7ef;
    color: #1d8a55;
}

.score {
    display: grid;
    place-items: center;
    width: 38px;
    height: 30px;
    border-radius: 9px;
    background: var(--sig);
    color: #fff;
    font: 700 13px/1 var(--f-sans);
}

.score-2 {
    background: var(--dia-soft);
    color: var(--indigo);
}

@media (max-width: 767px) {
    .app {
        margin: 28px 20px 0;
    }

    .app-rows li {
        grid-template-columns: 30px minmax(0, 1fr) 34px;
    }

    .sig {
        display: none;
    }

    .pcard-stats li {
        padding-right: 18px;
    }

    .pcard-stats li + li {
        padding-left: 18px;
    }
}

.pcard-copy .pcard-tag {
    margin-top: 16px;
}

.prod-head .lead {
    max-width: 32ch;
}

/* ==========================================================================
   Mobile / tablet vertical rhythm
   Below 1024px the integration + gap scenes no longer pin (see scenes.js), so they
   don't need to fill the screen. Below 768px every section uses one compact padding
   instead of the desktop "nav height + 40px" offsets that left ~200px gaps.
   ========================================================================== */
@media (max-width: 1023px) {
    .int-grid {
        height: auto;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .gap-grid {
        min-height: 0;
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

@media (max-width: 767px) {
    .s-hero {
        min-height: 0;
        padding-top: calc(var(--nav-h) + 24px);
        padding-bottom: 48px;
    }

    .int-grid,
    .gap-grid {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .sol-pin,
    .cases-pin,
    .how-pin {
        min-height: 0;
        padding: 56px 0;
    }

    .s-prod,
    .s-cases {
        padding-block: 56px;
    }

    .s-end .wordmark {
        margin-top: 24px;
    }
}

/* HireCompass card: keep "Learn More" and "Watch demo" on one line on phones */
@media (max-width: 767px) {
    .pcard-ctas {
        flex-wrap: nowrap;
        gap: 18px;
    }

    .pcard-ctas .btn {
        height: 48px;
        padding: 0 20px;
        gap: 12px;
        flex: none;
    }

    .pcard-ctas .link {
        white-space: nowrap;
        flex: none;
    }
}
