.subpage {
    --page-ink: #071829;
    --page-slate: #40546a;
    --page-muted: #6f8194;
    --page-line: #dce6ef;
    --page-cloud: #f4f8fb;
    --page-blue: #3d8df5;
    --page-blue-dark: #1769cf;
    --page-cyan: #35d3c1;
    color: var(--page-ink);
    overflow: hidden;
}

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

.subpage-hero {
    padding: 32px 0 clamp(63px, 8vw, 104px);
    background:
        linear-gradient(rgba(23, 105, 207, .032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 105, 207, .032) 1px, transparent 1px),
        radial-gradient(circle at 90% 14%, rgba(53, 211, 193, .13), transparent 26%),
        radial-gradient(circle at 5% 26%, rgba(61, 141, 245, .1), transparent 28%),
        linear-gradient(180deg, #f8fbfe, #fff);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.subpage-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(45px, 6vw, 72px);
    color: var(--page-muted);
    font-size: .75rem;
    font-weight: 700;
}

.subpage-breadcrumb a {
    color: var(--page-blue-dark);
    text-decoration: none;
}

.subpage-breadcrumb a:hover {
    text-decoration: underline;
}

.subpage-breadcrumb i {
    color: #9aabba;
    font-size: .6rem;
}

.subpage-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(310px, .56fr);
    gap: clamp(48px, 9vw, 135px);
    align-items: end;
}

.subpage-kicker,
.subpage-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--page-blue-dark);
    font-size: .71rem;
    font-weight: 850;
    letter-spacing: .1em;
    line-height: 1.25;
    text-transform: uppercase;
}

.subpage-kicker {
    padding: 8px 12px;
    border: 1px solid #cfe4fb;
    border-radius: 999px;
    background: rgba(255, 255, 255, .83);
}

.subpage-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--page-cyan);
    box-shadow: 0 0 0 5px rgba(53, 211, 193, .12);
}

.subpage-hero h1 {
    max-width: 900px;
    margin: 22px 0 0;
    color: var(--page-ink);
    font-size: clamp(3rem, 5.3vw, 5.4rem);
    font-weight: 870;
    letter-spacing: -.064em;
    line-height: .99;
}

.subpage-hero-side {
    padding: 24px 0 6px;
    border-top: 1px solid #cddbe7;
}

.subpage-hero-side p {
    margin: 0;
    color: var(--page-slate);
    font-size: 1rem;
    line-height: 1.75;
}

.subpage-hero-side a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--page-blue-dark);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.subpage-section {
    padding: clamp(78px, 9vw, 120px) 0;
}

.subpage-section-heading {
    max-width: 780px;
}

.subpage-section-heading h2,
.story-origin h2,
.careers-values h2,
.subpage-final h2 {
    margin: 15px 0 0;
    color: var(--page-ink);
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    font-weight: 850;
    letter-spacing: -.052em;
    line-height: 1.08;
}

.subpage-section-heading > p {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--page-muted);
    line-height: 1.72;
}

.project-capabilities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(55px, 7vw, 88px);
    border-top: 1px solid #dce6ef;
    border-bottom: 1px solid #dce6ef;
}

.project-capabilities span {
    position: relative;
    padding: 18px 20px;
    color: #50677c;
    font-size: .72rem;
    font-weight: 790;
    text-align: center;
    text-transform: uppercase;
}

.project-capabilities span:not(:last-child) {
    border-right: 1px solid #dce6ef;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--page-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 13px 38px rgba(7, 24, 41, .055);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.project-card:hover {
    border-color: #b2d4f6;
    box-shadow: 0 21px 48px rgba(23, 105, 207, .11);
    transform: translateY(-4px);
}

.project-card-featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1.08fr .92fr;
}

.project-card-visual {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #dceaf6;
    background: #0b2239;
}

.project-card-visual > i {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, .07);
}

.project-card-visual > span {
    font-size: .76rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-visual-realestate {
    background: linear-gradient(145deg, #15466b, #0a243a);
}

.project-visual-pos {
    background: linear-gradient(145deg, #0c776e, #082f36);
}

.project-visual-food {
    background: linear-gradient(145deg, #74521c, #242719);
}

.project-visual-stock {
    background: linear-gradient(145deg, #335078, #101e35);
}

.project-visual-landing {
    background: linear-gradient(145deg, #4b3e8d, #172340);
}

.project-visual-erp {
    min-height: 100%;
    padding: 38px;
    align-items: stretch;
    justify-content: flex-start;
    background:
        radial-gradient(circle at 85% 5%, rgba(53, 211, 193, .18), transparent 31%),
        linear-gradient(145deg, #0b2b49, #071829);
}

.project-window-bar {
    display: flex;
    gap: 6px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.project-window-bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #49657e;
}

.project-window-bar i:nth-child(2) {
    background: #3d8df5;
}

.project-window-bar i:nth-child(3) {
    background: #35d3c1;
}

.project-window-content {
    display: grid;
    flex: 1;
    grid-template-columns: .56fr 1fr;
    gap: 15px;
    padding-top: 24px;
}

.project-window-content > div:first-child {
    display: grid;
    align-content: start;
    gap: 9px;
}

.project-window-content > div:first-child span {
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;
    background: rgba(255, 255, 255, .05);
}

.project-window-content > div:last-child {
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    background: rgba(255, 255, 255, .04);
}

.project-window-content > div:last-child i {
    width: 14%;
    height: 42%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(#55b4ff, #1769cf);
}

.project-window-content > div:last-child i:nth-child(2) { height: 65%; }
.project-window-content > div:last-child i:nth-child(3) { height: 53%; }
.project-window-content > div:last-child i:nth-child(4) { height: 83%; background: linear-gradient(#57e1ce, #1da695); }
.project-window-content > div:last-child i:nth-child(5) { height: 72%; }

.project-card-copy {
    display: flex;
    min-height: 295px;
    flex-direction: column;
    padding: clamp(25px, 4vw, 39px);
}

.project-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #1769cf;
    font-size: .65rem;
    font-weight: 840;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-card-meta small {
    padding: 5px 8px;
    border-radius: 999px;
    color: #4d667c;
    background: #eef4f8;
    font-size: .58rem;
    letter-spacing: .03em;
}

.project-card h3 {
    margin: 18px 0 0;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 840;
    letter-spacing: -.038em;
    line-height: 1.18;
}

.project-card p {
    margin: 14px 0 0;
    color: var(--page-muted);
    font-size: .9rem;
    line-height: 1.67;
}

.project-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.project-card li {
    padding: 5px 8px;
    border: 1px solid #dae7f1;
    border-radius: 7px;
    color: #50677c;
    background: #f7fafc;
    font-size: .63rem;
    font-weight: 750;
}

.project-card-copy > a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--page-blue-dark);
    font-size: .84rem;
    font-weight: 820;
    text-decoration: none;
}

.subpage-final {
    padding: 0 0 clamp(78px, 9vw, 118px);
}

.subpage-final-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: center;
    padding: clamp(36px, 5vw, 64px);
    border-radius: 22px;
    color: #c3d3e2;
    background:
        radial-gradient(circle at 89% 8%, rgba(53, 211, 193, .17), transparent 27%),
        linear-gradient(140deg, #0b2b49, #071829 72%);
    box-shadow: 0 28px 60px rgba(7, 24, 41, .16);
}

.subpage-final-card > div > span {
    color: #60d9ca;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.subpage-final-card h2 {
    max-width: 750px;
    color: #fff;
    font-size: clamp(2rem, 3.7vw, 3.35rem);
}

.subpage-final-card p {
    max-width: 700px;
    margin: 18px 0 0;
    color: #9db1c4;
    line-height: 1.7;
}

.subpage-final-card > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 19px;
    border-radius: 11px;
    color: #071829;
    background: #fff;
    font-size: .88rem;
    font-weight: 810;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.subpage-final-card > a:hover {
    color: #1769cf;
    background: #f2f8fd;
    transform: translateY(-2px);
}

/* Story */
.story-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(330px, .62fr);
    gap: clamp(45px, 8vw, 110px);
    align-items: center;
}

.story-hero h1 {
    max-width: 850px;
}

.story-hero-grid > div:first-child > p {
    max-width: 750px;
    margin: 25px 0 0;
    color: var(--page-slate);
    font-size: clamp(1.05rem, 1.65vw, 1.18rem);
    line-height: 1.73;
}

.story-mark {
    display: flex;
    min-height: 335px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px;
    border: 1px solid rgba(151, 192, 226, .2);
    border-radius: 22px;
    color: #90a8bc;
    background:
        radial-gradient(circle at 80% 10%, rgba(53, 211, 193, .17), transparent 30%),
        linear-gradient(145deg, #0b2945, #071829);
    box-shadow: 0 32px 68px rgba(7, 24, 41, .2);
}

.story-mark img {
    width: min(240px, 86%);
    height: auto;
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .25));
}

.story-mark span {
    margin-top: 21px;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.story-origin-grid {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    gap: clamp(55px, 9vw, 130px);
}

.story-origin-grid > div:last-child {
    padding-top: 25px;
    border-top: 1px solid var(--page-line);
}

.story-origin-grid p {
    margin: 0;
    color: var(--page-slate);
    font-size: 1.04rem;
    line-height: 1.8;
}

.story-origin-grid p + p {
    margin-top: 18px;
}

.story-origin-grid blockquote {
    margin: 31px 0 0;
    padding: 20px 0 20px 24px;
    border-left: 3px solid var(--page-cyan);
    color: #173a58;
    font-size: 1.12rem;
    font-weight: 720;
    line-height: 1.55;
}

.story-team {
    color: #fff;
    background:
        radial-gradient(circle at 8% 0%, rgba(53, 211, 193, .16), transparent 28%),
        radial-gradient(circle at 92% 24%, rgba(61, 141, 245, .19), transparent 32%),
        linear-gradient(180deg, #04080f 0%, #071321 58%, #071829 100%);
}

.story-team .subpage-label {
    color: #7ee8dc;
}

.story-team .subpage-section-heading h2 {
    color: #fff;
}

.story-team .subpage-section-heading p {
    color: rgba(224, 238, 248, .72);
}

.founder-panel {
    display: grid;
    grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
    gap: clamp(28px, 5vw, 66px);
    align-items: stretch;
    margin-top: 52px;
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid rgba(151, 192, 226, .18);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(8, 20, 34, .88);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .26);
}

.founder-photo {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 16px;
    background: #0c1724;
}

.founder-photo::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(4, 8, 15, 0) 54%, rgba(4, 8, 15, .55)),
        linear-gradient(90deg, rgba(4, 8, 15, .1), transparent 32%, rgba(4, 8, 15, .2));
    pointer-events: none;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    filter: saturate(.9) contrast(1.05);
}

.founder-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 66px) clamp(18px, 3vw, 44px);
}

.founder-kicker {
    max-width: 680px;
    color: #7ee8dc;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .1em;
    line-height: 1.6;
    text-transform: uppercase;
}

.founder-copy h3 {
    margin: 16px 0 0;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.65rem);
    font-weight: 880;
    letter-spacing: -.062em;
    line-height: .96;
}

.founder-copy p {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(224, 238, 248, .76);
    line-height: 1.72;
}

.founder-copy strong {
    color: #fff;
    font-weight: 790;
}

.founder-lead {
    color: rgba(255, 255, 255, .94) !important;
    font-size: clamp(1.1rem, 1.65vw, 1.32rem);
    font-weight: 720;
    line-height: 1.55 !important;
}

.founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.founder-tags span {
    padding: 9px 12px;
    border: 1px solid rgba(126, 232, 220, .22);
    border-radius: 999px;
    color: #dffefa;
    background: rgba(126, 232, 220, .08);
    font-size: .75rem;
    font-weight: 820;
}

.story-collaborators {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.story-collaborators article {
    min-height: 190px;
    padding: clamp(24px, 3.2vw, 34px);
    border: 1px solid rgba(151, 192, 226, .15);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
}

.story-collaborators span {
    color: #7ee8dc;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.story-collaborators h3 {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(1.32rem, 2.2vw, 1.85rem);
    font-weight: 820;
}

.story-collaborators p {
    margin: 12px 0 0;
    color: rgba(224, 238, 248, .7);
    line-height: 1.68;
}

/* Careers */
.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.role-card {
    min-height: 495px;
    padding: clamp(30px, 4.5vw, 53px);
    border: 1px solid var(--page-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(7, 24, 41, .06);
}

.role-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 29px;
    border: 1px solid #cfe3f6;
    border-radius: 14px;
    color: var(--page-blue-dark);
    background: #edf6ff;
    font-size: 1.3rem;
}

.role-card small {
    color: var(--page-blue-dark);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.role-card h3 {
    max-width: 530px;
    margin: 14px 0 0;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.14;
}

.role-card > p {
    margin: 20px 0 0;
    color: var(--page-slate);
    line-height: 1.72;
}

.role-card ul {
    display: grid;
    gap: 11px;
    margin: 30px 0 0;
    padding: 25px 0 0;
    border-top: 1px solid var(--page-line);
    list-style: none;
}

.role-card li {
    display: flex;
    gap: 9px;
    color: #50687e;
    font-size: .84rem;
    font-weight: 680;
}

.role-card li i {
    color: #1daf9d;
    font-size: 1rem;
}

.role-card-dark {
    border-color: rgba(255, 255, 255, .08);
    color: #fff;
    background:
        radial-gradient(circle at 88% 7%, rgba(53, 211, 193, .15), transparent 27%),
        linear-gradient(145deg, #0b2945, #071829);
    box-shadow: 0 25px 55px rgba(7, 24, 41, .19);
}

.role-card-dark .role-icon {
    border-color: rgba(97, 178, 251, .23);
    color: #63b8ff;
    background: rgba(61, 141, 245, .13);
}

.role-card-dark small {
    color: #5bddcc;
}

.role-card-dark > p,
.role-card-dark li {
    color: #a3b7c9;
}

.role-card-dark ul {
    border-color: rgba(255, 255, 255, .1);
}

.careers-values {
    padding: clamp(78px, 9vw, 118px) 0;
    background: #f4f8fb;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 45px;
}

.values-grid article {
    min-height: 220px;
    padding: 26px;
    border: 1px solid #dce6ef;
    border-radius: 15px;
    background: #fff;
}

.values-grid article > span {
    color: #1769cf;
    font-size: .67rem;
    font-weight: 850;
}

.values-grid h3 {
    margin: 49px 0 0;
    font-size: 1.08rem;
    font-weight: 820;
}

.values-grid p {
    margin: 11px 0 0;
    color: var(--page-muted);
    font-size: .87rem;
    line-height: 1.65;
}

.careers-page .subpage-final {
    padding-top: clamp(78px, 9vw, 118px);
}

@media (max-width: 900px) {
    .subpage-hero-grid,
    .story-hero-grid,
    .story-origin-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .subpage-hero-side {
        max-width: 680px;
    }

    .project-card-featured {
        grid-template-columns: 1fr;
    }

    .project-visual-erp {
        min-height: 340px;
    }

    .story-mark {
        max-width: 600px;
    }

    .story-origin-grid > div:last-child {
        padding-top: 0;
        border-top: 0;
    }

    .founder-panel {
        grid-template-columns: 1fr;
        max-width: 720px;
        margin-right: auto;
        margin-left: auto;
    }

    .subpage-final-card {
        grid-template-columns: 1fr;
        gap: 29px;
    }

    .subpage-final-card > a {
        justify-self: start;
    }
}

@media (max-width: 700px) {
    .subpage-hero h1 {
        font-size: clamp(2.65rem, 13vw, 3.65rem);
    }

    .project-capabilities {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-capabilities span:nth-child(2) {
        border-right: 0;
    }

    .project-capabilities span:nth-child(-n+2) {
        border-bottom: 1px solid var(--page-line);
    }

    .project-grid,
    .role-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .project-visual-erp {
        min-height: 280px;
        padding: 25px;
    }

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

    .founder-panel {
        margin-top: 38px;
        padding: 10px;
        border-radius: 18px;
    }

    .founder-photo {
        min-height: 405px;
        border-radius: 14px;
    }

    .founder-copy {
        padding: 27px 18px 31px;
    }

    .founder-tags {
        gap: 8px;
    }

    .role-card {
        min-height: 0;
    }

    .subpage-final-card > a {
        width: 100%;
    }
}
