:root {
    --white: #FFFFFF;
    --paper: #F5F7FB;
    --paper-2: #EFF3F9;
    --navy: #273F7B;
    --navy-700: #1F3468;
    --ink: #15213F;
    --slate: #55607A;
    --muted: #8A93A8;
    --line: #E5E9F1;
    --line-2: #D6DDEC;
    --accent: #0EA5C4;
    --accent-soft: #E1F4F8;
    --pain: #B34430;
    --pain-soft: #F7E9E5;

    --container: 1220px;
    --gutter: clamp(20px, 5vw, 64px);
    --r: 14px;

    --f-sans: 'Clash Grotesk', Arial, sans-serif;
    --f-serif: 'Source Serif 4', Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: var(--f-sans);
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

h1,
h2,
h3,
h4 {
    font-family: var(--f-serif);
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.05
}

h1,
h2 {

    font-weight: 300;
}

h3,
h4 {
    font-family: var(--f-sans);
    font-weight: 500;
}

h1 b,
h2 b,
h3 b,
h4 b {
    font-weight: 700
}

p {
    margin: 0
}

::selection {
    background: var(--navy);
    color: #fff
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter)
}

.section {
    padding-block: clamp(72px, 9vw, 132px)
}

/* mono eyebrow / structural label */
.eyebrow {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.idx {
    font-family: var(--f-sans);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .08em;
    font-weight: 600
}

.lede {
    font-family: var(--f-sans);
    font-size: clamp(18px, 2vw, 21px);
    color: var(--slate);
    max-width: 56ch;
    line-height: 1.55
}

/* buttons */
.btn {

    --fg: #fff;
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 15px;
    background: var(--bg);
    color: rgb(85, 96, 122);
    padding: 13px 22px;
    border-radius: 100px;
    border: 2px solid transparent;
    border-color: var(--line-2);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s, box-shadow .25s;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform .25s
}

/*.btn:hover {
      background: var(--navy-700);
      transform: translateY(-2px);
      box-shadow: 0 12px 26px -12px rgba(39, 63, 123, .55)
    }*/

.btn:hover svg {
    transform: translate(3px, 0)
}

.btn.ghost {
    --bg: transparent;
    --fg: var(--navy);
    border-color: var(--line-2)
}

.btn.ghost:hover {
    background: var(--paper);
    box-shadow: none;
    transform: translateY(-2px)
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}

/* ---------- NAV ---------- */
header.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, transform .35s ease;
}

header.nav.kapih-nav-hidden {
    transform: translateY(-100%);
}

header.nav.stuck {
    border-color: var(--line);
    box-shadow: 0 1px 0 rgba(21, 33, 63, .02)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 24px
}

.brand img {
    height: 70px;
    width: auto
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px
}

.nav-links a {
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--slate);
    padding: 9px 14px;
    border-radius: 9px;
    position: relative;
    transition: color .2s
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1)
}

.nav-links a:hover {
    color: var(--navy)
}

.nav-links a:hover::after {
    transform: scaleX(1)
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: var(--ink)
}

.menu-btn svg {
    width: 26px;
    height: 26px
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 74px 0 0;
    background: #fff;
    z-index: 55;
    padding: 24px var(--gutter);
    flex-direction: column;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s
}

.mobile-menu.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: flex
}

.mobile-menu a {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 22px;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.mobile-menu .btn {
    margin-top: 20px;
    justify-content: center
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding-top: clamp(48px, 7vw, 86px);
    padding-bottom: clamp(64px, 8vw, 110px);
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 68px);
    letter-spacing: -0.025em;
    line-height: 1.08
}

.hero h1 .soft {
    color: var(--navy);
    font-weight: 700;
}

.hero h1 .hsub {
    display: block;
    color: var(--slate);
    font-weight: 300
}

.lede b {
    color: var(--navy);
    font-weight: 700
}

.pill-badge {
    font-family: var(--sans);
    display: inline-flex;
    align-items: center;
    background: var(--paper-2);
    color: var(--ink);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -.01em;
    padding: 11px 22px;
    border-radius: 100px;
    margin-top: 22px
}

.hero .lede {
    margin-top: 26px
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap
}

.hero-meta {
    display: flex;
    gap: 30px;
    margin-top: 46px;
    flex-wrap: wrap
}

.hero-meta .m {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.hero-meta .m b {
    font-family: var(--sans);
    font-size: 26px;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -.02em
}

.hero-meta .m span {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600
}

.twin {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1.15
}

.twin-stage {
    position: relative;
    width: 100%;
    height: 100%
}

.wcard {
    position: absolute;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 20px 44px -28px rgba(21, 33, 63, .28)
}

.wc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    box-shadow: 0 0 0 4px var(--accent-soft)
}

.wc-main {
    left: 2%;
    top: 6%;
    width: 82%;
    padding: 18px 20px;
    animation: float1 7s ease-in-out infinite
}

.wc-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px
}

.wc-label {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted)
}

.wc-title {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 4px
}

.wc-subtitle {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 16px;
}

.wc-bars {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.wc-bar-row {
    font-family: var(--sans);
    display: grid;
    grid-template-columns: 90px 1fr 70px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--slate);
    font-weight: 500
}

.wc-bar-row span,
.wc-bar-row b {
    white-space: nowrap;
}

.wc-track {
    height: 6px;
    border-radius: 6px;
    background: var(--paper-2);
    overflow: hidden
}

.wc-fill {
    height: 100%;
    border-radius: 6px;
    background: #7DD3FC
}

.wc-fill.alt {
    background: #F59E0B;
}

.wc-bar-row b {
    font-weight: 600;
    color: var(--ink);
    text-align: right
}

.wc-info {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 9px
}

.wc-info-row {
    font-family: var(--sans);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px
}

.wc-info-row span {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap
}

.wc-info-row b {
    color: var(--ink);
    font-weight: 600;
    text-align: right
}

.wc-cta {
    margin-top: 0;
    width: 85%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--pain-soft);
    color: var(--pain);
    border: 1px solid rgba(179, 68, 48, .22);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.45
}

.wc-cta svg {
    width: 16px;
    height: 16px;
    flex: none;
    stroke: var(--pain)
}

.wc-foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line)
}

.wc-pill {
    font-family: var(--sans);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #158A56;
    background: #E9F8EF;
    padding: 6px 12px;
    border-radius: 100px
}

.wc-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C171
}

.wc-mini {
    padding: 18px 20px;
    width: 150px
}

.wc-mini .wc-dot {
    position: absolute;
    top: 16px;
    right: 16px
}

.wc-mini-num {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 30px;
    color: var(--ink);
    letter-spacing: -.02em
}

.wc-mini-num small {
    font-size: 15px;
    font-weight: 500;
    color: var(--slate)
}

.wc-mini-lab {
    font-family: var(--sans);
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px
}

.wc-a {
    right: 0;
    top: 2%;
    animation: float2 6s ease-in-out infinite
}

.wc-b {
    right: -16%;
    bottom: 27%;
    width: 168px;
    animation: float1 8s ease-in-out infinite .4s
}

.wc-spark {
    margin-top: 10px;
    height: 26px
}

.wc-spark svg {
    width: 100%;
    height: 100%
}

.wc-alert {
    left: 0;
    bottom: 21%;
    width: 360px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: float2 7.5s ease-in-out infinite .2s
}

.wc-c {
    left: 4%
}

.wc-alert-head {
    display: flex;
    align-items: center;
    gap: 8px
}

.wc-alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E0862E;
    box-shadow: 0 0 0 4px #FBEBD9;
    flex: none
}

.wc-alert-t {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink)
}

.wc-alert-d {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(8px)
    }
}

@media(prefers-reduced-motion:reduce) {

    .wc-main,
    .wc-a,
    .wc-b,
    .wc-alert {
        animation: none
    }
}

.hero-field {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(120% 90% at 78% 30%, #000 0%, transparent 62%);
    mask-image: radial-gradient(120% 90% at 78% 30%, #000 0%, transparent 62%);
    opacity: .55;
}


/* animated dot-grid background */
.hero-canvas-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(140% 140% at 50% 40%, #000 0%, transparent 100%);
    mask-image: radial-gradient(140% 140% at 50% 40%, #000 0%, transparent 100%);
}

#heroDotCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.grid-field-belt {
    position: relative;
    isolation: isolate;
}

.grid-field {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(39, 63, 123, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 63, 123, .16) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    opacity: 1;
}

/* ---------- MARQUEE / PARTNERS ---------- */
.partners {
    border-block: 1px solid var(--line);
    background: var(--white);
}

.partners .wrap {
    padding-block: 34px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.partners .plabel {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    font-weight: 600;
}

.partners .marq {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners ul {
    display: flex;
    align-items: center;
    gap: 110px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
    animation: scroll 32s linear infinite;
}

.partners li {
    display: flex;
    flex-direction: column;

    align-items: center;
    gap: 8px;
}

.partners li img {
    height: 70px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    opacity: 1;

    transition: opacity .3s, filter .3s, transform .3s;
}

.partners li:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partners:hover ul {
    animation-play-state: paused;
}

.partner-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    letter-spacing: .02em;
    white-space: nowrap;
    /* prevents wrapping to 2 lines; remove if you want wrapping */
}

@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 28px));
    }
}

/* ---------- SECTION HEAD ---------- */
.shead {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 760px
}

.shead h2 {
    font-size: clamp(29px, 3.6vw, 46px)
}

.shead h2 .soft {
    color: var(--navy);
    font-weight: 700
}

.shead.split {
    max-width: none;
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 40px
}

@media(max-width:820px) {
    .shead.split {
        grid-template-columns: 1fr
    }
}

/* ---------- PAIN ---------- */
.pain {
    background: rgba(245, 247, 251, .82)
}

.pain-eyebrow {
    color: var(--pain)
}

.pain-eyebrow::before {
    background: var(--pain);
    box-shadow: 0 0 0 4px var(--pain-soft)
}

.pain h2 b {
    color: var(--pain);
    font-weight: 700
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 52px
}

.pain-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 26px;
    transition: transform .3s, box-shadow .3s
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -28px rgba(21, 33, 63, .3)
}

.pain-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pain-soft);
    color: var(--pain);
    display: grid;
    place-items: center;
    margin-bottom: 18px
}

.pain-ico svg {
    width: 22px;
    height: 22px;
    stroke: var(--pain)
}

.pain-card h3 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 6px
}

.pain-arrow {
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 10px
}

.pain-arrow span {
    color: var(--pain);
    font-weight: 700
}

.pain-card p {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--slate);
    line-height: 1.55
}

.pain-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 44px
}

.pstat {
    background: #fff;
    padding: 26px 26px 28px
}

.pstat-num span {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(32px, 3.4vw, 44px);
    color: var(--pain);
    letter-spacing: -.02em
}

.pstat-lab {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 4px
}

.pstat p {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.5
}

.pstat-link {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.pstat-link:hover {
    text-decoration: underline;
}

.pstat p em {
    font-style: italic;
    color: #B3BACB
}

.sovereignty {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--navy);
    border-radius: 14px
}

.sov-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--paper-2);
    color: var(--navy);
    display: grid;
    place-items: center;
    flex: none
}

.sov-ico svg {
    width: 19px;
    height: 19px;
    stroke: var(--navy)
}

.sov-tag {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 6px
}

.sovereignty p {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--slate);
    line-height: 1.6;
    max-width: 70ch
}

@media(max-width:900px) {
    .pain-grid {
        grid-template-columns: 1fr
    }

    .pain-stats {
        grid-template-columns: 1fr
    }

    .sovereignty {
        flex-direction: column
    }
}

/* ---------- STATS ---------- */
.stats {
    border-block: 1px solid var(--line);
    background: var(--white);
    padding-block: 56px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line)
}

.stat {
    background: #fff;
    padding: 8px 32px 8px 0
}

.stat-num span {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(38px, 4vw, 54px);
    color: var(--navy);
    letter-spacing: -.02em
}

.stat-lab {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink);
    margin-top: 6px
}

.stat-p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.55;
    max-width: 26ch
}

@media(max-width:900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .stat {
        padding-right: 20px
    }
}

@media(max-width:560px) {
    .stats-grid {
        grid-template-columns: 1fr
    }
}

/* ---------- ABOUT ---------- */
.about {
    background: rgba(245, 247, 251, .82)
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: start
}

.about h2 {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -.02em
}

.about h2 em {
    font-style: normal;
    color: var(--navy)
}

.about .lede {
    margin-top: 24px
}

.pillars {
    display: grid;
    gap: 14px
}

.pillar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px 24px;
    transition: border-color .3s, transform .3s
}

.pillar:hover {
    border-color: var(--line-2);
    transform: translateY(-3px)
}

.pillar .k {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 9px;
    font-weight: 600
}

.pillar h3 {
    font-size: 19px;
    margin-bottom: 6px
}

.pillar p {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--slate)
}

/* ---------- CAPABILITIES (tabs) ---------- */
.cap-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(28px, 4vw, 60px);
    margin-top: 56px;
    align-items: start
}

.cap-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line)
}

.cap-tab {
    display: flex;
    gap: 16px;
    align-items: baseline;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 4px;
    cursor: pointer;
    width: 100%;
    opacity: 1;
    transition: padding-left .3s, opacity .3s
}

.cap-tab.active {
    opacity: 1
}

.cap-tab .n {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    min-width: 26px;
    font-weight: 600
}

.cap-tab .t {
    font-family: var(--f-sans);
    font-size: clamp(19px, 2.1vw, 24px);
    font-weight: 500;
    color: var(--muted);
    letter-spacing: -.02em;
    transition: color .3s;
    flex: 1
}

.cap-tab .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    align-self: center;
    transition: background .3s;
    flex: none
}

.cap-tab:hover {
    padding-left: 10px
}

.cap-tab:hover .t {
    color: var(--slate)
}

.cap-tab.active .t {
    color: var(--ink)
}

.cap-tab.active .dot {
    background: var(--accent)
}

.cap-tab.active .n {
    color: var(--navy)
}

/* panel wrapper — no longer needs its own bg, each panel carries its own image */
.cap-panelwrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 340px;
    color: #fff;
}

/* dot-grid texture removed — a photo replaces it */
.cap-panelwrap .tex {
    display: none;
}

/* panels now stack on top of each other; GSAP autoAlpha/y drives which
       one is visible instead of the old display:none / .active toggle */
.cap-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 3vw, 42px);
    background-size: cover;
    background-position: center;
    will-change: transform, opacity;
}

/* CSS-only fallback: keep panels 2-5 hidden until GSAP runs */
.cap-panel:not(:first-child) {
    opacity: 0;
    visibility: hidden;
}

/* readability overlay over the background photo */
.cap-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 33, 63, .15) 0%, rgba(21, 33, 63, .55) 45%, rgba(21, 33, 63, .94) 100%);
    z-index: 0;
}

/*CAPABILITIES */
.cap-panel .picon {
    display: none;
}

.cap-panel .ptag,
.cap-panel h3,
.cap-panel p,
.cap-panel .plink {
    position: relative;
    z-index: 1;
}

.cap-panel h3 {
    color: #fff;
    font-size: clamp(23px, 2.6vw, 30px);
    margin-bottom: 14px
}

.cap-panel p {
    font-family: var(--sans);
    color: rgba(255, 255, 255, .85);
    font-size: 16.5px;
    max-width: 46ch;
    line-height: 1.62
}

.cap-panel .plink {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600
}

.cap-panel .plink svg {
    width: 15px;
    height: 15px;
    transition: transform .25s
}

.cap-panel .plink:hover svg {
    transform: translateX(4px)
}

.cap-panel .ptag {
    position: absolute;
    top: clamp(28px, 3vw, 42px);
    right: clamp(28px, 3vw, 42px);
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .55);
    font-weight: 600
}

/* ---------- INDUSTRIES ---------- */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 52px;
}

.ind {
    position: relative;
    min-height: 300px;
    border-radius: var(--r);
    overflow: hidden;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.ind::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 33, 63, 0.05) 0%, rgba(21, 33, 63, 0.55) 55%, rgba(21, 33, 63, 0.92) 100%);
    z-index: 0;
}

.ind:hover {
    transform: translateY(-4px);
}

.ind .ico {
    display: none;
    /* icon removed — background image replaces it */
}

.ind h3 {
    position: relative;
    z-index: 1;
    font-size: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.ind h3 .num {
    font-family: var(--sans);
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
}

.ind p {
    position: relative;
    z-index: 1;
    font-family: var(--sans);
    font-size: 15px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
}

@media(max-width:900px) {
    .ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:560px) {
    .ind-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- TECHNOLOGY ---------- */
.tech {
    background: rgb(245, 247, 251);
    color: #1a2233;
    position: relative;
    overflow: hidden
}

.tech .tex {
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background-image: linear-gradient(rgba(30, 41, 59, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 41, 59, .05) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(100% 70% at 20% 0%, #000, transparent 70%);
    mask-image: radial-gradient(100% 70% at 20% 0%, #000, transparent 70%)
}

.tech .eyebrow {
    color: #1a2233
}

.tech h2 {
    color: #16213a;
    font-size: clamp(29px, 3.6vw, 46px)
}

.tech h2 .soft {
    color: #3d5a80;
    font-weight: 700
}

.tech .lede {
    color: rgba(26, 34, 51, .68)
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 56px;
}

.tcell {
    background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .45));
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .2)) 1;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 20px;
    padding: 28px 26px;
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
    position: relative;
    box-shadow:
        0 1px 1px rgba(255, 255, 255, .6) inset,
        0 8px 24px rgba(31, 45, 74, .08),
        0 2px 6px rgba(31, 45, 74, .06);
    overflow: hidden;
}

.tcell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
    pointer-events: none;
    opacity: .8;
    transition: opacity .3s ease;
    border-radius: 20px 20px 40% 40% / 20px 20px 20px 20px;
}

.tcell:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .55));
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-6px);
    box-shadow:
        0 1px 1px rgba(255, 255, 255, .8) inset,
        0 20px 40px rgba(31, 45, 74, .14),
        0 6px 14px rgba(31, 45, 74, .08);
}

.tcell:hover::before {
    opacity: 1;
}

.tcell .tn {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: .12em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.tcell h3 {
    color: #16213a;
    font-size: 18px;
    margin: 14px 0 8px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.tcell p {
    font-family: var(--sans);
    color: rgba(26, 34, 51, .68);
    font-size: 14.5px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

@media(max-width:860px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:540px) {
    .tech-grid {
        grid-template-columns: 1fr
    }
}

/* ---------- PROJECTS ---------- */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px
}

.proj {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
    display: flex;
    flex-direction: column
}

.proj:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px -30px rgba(21, 33, 63, .4);
    border-color: var(--line-2)
}

.proj .top {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;

    border-bottom: 1px solid var(--line)
}

.proj .top img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.10);
    object-position: center top;

}



.proj .body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1
}

.proj .tag {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600
}

.proj h3 {
    font-size: 19px;
    line-height: 1.25;
    color: var(--ink);
    font-weight: 600
}

.proj p {
    font-family: var(--sans);
}

.proj .rm {
    margin-top: auto;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600
}

.proj .rm svg {
    width: 14px;
    height: 14px;
    transition: transform .25s
}

.proj:hover .rm svg {
    transform: translateX(4px)
}

@media(max-width:900px) {
    .proj-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .proj-grid {
        grid-template-columns: 1fr
    }
}

/* ---------- RESEARCH ---------- */
.research {
    background: var(--paper)
}

.res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px
}

.res {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 230px;
    transition: transform .3s, box-shadow .3s
}

.res:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -28px rgba(21, 33, 63, .35)
}

.res-live-card {
    position: relative;
}

.res-live-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px -30px rgba(14, 165, 196, .35);
    border-color: var(--accent);
}

.res-live-card:hover .res-live-dot {
    animation-duration: 1s;
}

.res-live-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px -30px rgba(14, 165, 196, .35);
}

.res-live-card:has(.res-preview-item:hover) {
    border-color: var(--accent);
}


.res .rk {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--navy);
    letter-spacing: .1em;
    font-weight: 600
}

.res h3 {
    font-size: 21px;
    color: var(--ink)
}

.res p {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--slate);
    line-height: 1.55
}

.res .expl {
    margin-top: auto;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 600
}

.res .expl svg {
    width: 14px;
    height: 14px;
    transition: transform .25s
}

.res:hover .expl svg {
    transform: translateX(4px)
}

@media(max-width:820px) {
    .res-grid {
        grid-template-columns: 1fr
    }
}

.res-live {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.res-live-dot {
    position: absolute;
    top: 32px;
    right: 28px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff1f1f;
    animation: resPulse 1.3s ease-out infinite,
        resBlink 1.3s ease-in-out infinite;
}

@keyframes resPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 31, 31, 0.75);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 31, 31, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 31, 31, 0);
    }
}

@keyframes resBlink {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.35);
    }
}


.res-live-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.res-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.res-preview-item {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.res-preview-item:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.res-preview-item i {
    font-size: 13px;
    color: var(--muted);
    flex: none;
}

@media(prefers-reduced-motion:reduce) {
    .res-live-dot {
        animation: none;
    }
}

/* ---------- CTA ---------- */
.cta {
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden
}

.cta .tex {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .6;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 60%);
    mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 60%)
}

.cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 40px;
    align-items: center
}

.cta h2 {
    color: #fff;
    font-size: clamp(30px, 4.4vw, 56px);
    letter-spacing: -.02em;
    line-height: 1.06
}

.cta h2 .soft {
    color: #9FC4E0;
    font-weight: 700
}

.cta p {
    font-family: var(--sans);
    color: rgba(255, 255, 255, .78);
    margin-top: 18px;
    max-width: 46ch
}

.cta .actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start
}

.cta .btn {
    --bg: #fff;
    --fg: var(--navy)
}

.cta .btn:hover {
    background: #EEF3FA;
    color: var(--navy);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5)
}

.cta .btn.ghost {
    --bg: transparent;
    --fg: #fff;
    border-color: rgba(255, 255, 255, .35)
}

.cta .btn.ghost:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

@media(max-width:820px) {
    .cta-inner {
        grid-template-columns: 1fr
    }

    .cta .actions {
        flex-direction: row
    }
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    padding-block: 64px 30px;
    font-family: var(--sans);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px
}

.foot-brand img {
    height: 200px;
    width: 300px;
    max-width: 800px;
    /* margin-bottom: 22px; */
    object-fit: contain;
}

.foot-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, .6);
    max-width: 34ch;
    line-height: 1.65
}

.fcol h4 {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    font-weight: 600;
    margin-bottom: 18px
}

.fcol a,
.fcol .fi {
    display: block;
    font-size: 15px;
    color: rgba(255, 255, 255, .72);
    padding: 6px 0;
    transition: color .2s
}

.fcol .fi {
    white-space: nowrap;
}

.fcol a:hover {
    color: #fff
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 8px
}

.socials a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    display: grid;
    place-items: center;
    transition: background .25s, border-color .25s
}

.socials a:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .3)
}

.socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .45);
    font-weight: 600
}

@media(max-width:900px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr
    }

    .foot-brand {
        grid-column: 1/-1
    }
}

@media(max-width:520px) {
    .foot-grid {
        grid-template-columns: 1fr
    }
}

/* reveal */
.reveal {
    opacity: 1;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1)
}

.reveal.in {
    opacity: 1;
    transform: none
}

@media(max-width:960px) {
    .nav-links {
        display: none
    }

    .menu-btn {
        display: block
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .twin {
        max-width: 520px;
        margin-top: 12px
    }

    .cap-grid {
        grid-template-columns: 1fr
    }

    .about-grid {
        grid-template-columns: 1fr
    }

    /* mobile: no pin/scrub — plain stacked, click-to-switch cards */
    .cap-panelwrap {
        min-height: 0
    }

    .cap-panel {
        position: relative;
        inset: auto;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-bottom: 16px;
        border-radius: var(--r);
        min-height: 340px;
    }

    .cap-panel.active {
        display: flex
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}


/* ============ SCROLL INDICATOR ============ */
.kapih-scroll-hint {
    position: absolute;
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(24px, 4vw, 48px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    animation: kapihBounceDown 1.8s ease-in-out infinite;
}

/* ============ BACK TO TOP ============ */
.kapih-back-to-top {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(24px, 4vw, 48px);
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}

.kapih-back-to-top.kapih-show {
    opacity: 1;
    visibility: visible;
    animation: kapihBounceUp 1.8s ease-in-out infinite;
}

/* ============ LABEL TEXT (rotated only, not the icon) ============ */
.kapih-label {
    font-family: var(--f-sans);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.hero .kapih-label {
    color: var(--muted);
}

.kapih-back-to-top .kapih-label {
    color: rgba(255, 255, 255, .75);
}

.kapih-back-to-top:hover .kapih-label {
    color: #fff;
}

/* ============ ICON (not rotated) ============ */
.kapih-star {
    width: 18px;
    height: 18px;
    flex: none;
}

.kapih-star svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.kapih-back-to-top .kapih-star {
    color: #fff;
    /* back-to-top icon color */
}

@keyframes kapihBounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes kapihBounceUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}