:root {
    --ink: #0b1020;
    --ink-2: #161c2d;
    --blue: #2556ff;
    --blue-dark: #1639ad;
    --red: #e73b45;
    --paper: #f4f5f7;
    --white: #ffffff;
    --muted: #686e7c;
    --line: rgba(11, 16, 32, .12);
    --radius: 22px;
    --container: min(1240px, calc(100% - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.section-pad {
    padding: 120px 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    transition: .3s;
}

.site-header.scrolled {
    background: rgba(244, 245, 247, .9);
    backdrop-filter: blur(20px);
}

.site-header.scrolled {
    background: rgba(244, 245, 247, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.nav-wrap {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.brand-mark {
    width: 250px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.main-nav>a:not(.nav-cta) {
    position: relative;
}

.main-nav>a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width .25s;
}

.main-nav>a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 14px 20px;
    color: white;
    background: var(--ink);
    border-radius: 999px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: transform .2s, background .2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--blue);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 3;
}

.menu-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--ink);
    left: 9px;
    transition: .3s;
}

.menu-toggle span:first-child {
    top: 16px;
}

.menu-toggle span:last-child {
    top: 24px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.hero {
    min-height: 860px;
    display: flex;
    align-items: center;
    padding-top: 140px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 86, 255, .13), transparent 68%);
    top: -160px;
    left: -100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: .98fr 1.02fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 11px;
    letter-spacing: .2em;
    font-weight: 800;
    color: rgba(255, 255, 255, .72);
}

.eyebrow.dark {
    color: var(--muted);
}

.eyebrow span {
    width: 26px;
    height: 2px;
    background: var(--red);
}

.hero .eyebrow {
    color: var(--muted);
}

.hero h1 {
    font-size: clamp(70px, 7.2vw, 112px);
    line-height: .88;
    letter-spacing: -.075em;
    margin: 34px 0 32px;
    font-weight: 790;
}

.hero h1 span {
    color: var(--blue);
}

.hero-lead {
    max-width: 610px;
    font-size: 20px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 42px;
}

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-weight: 750;
    font-size: 14px;
    padding: 18px 24px;
    border-radius: 999px;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: white;
    background: var(--ink);
    box-shadow: 0 14px 40px rgba(11, 16, 32, .18);
}

.btn-primary:hover {
    background: var(--blue);
    box-shadow: 0 18px 45px rgba(37, 86, 255, .25);
}

.text-link {
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    gap: 14px;
}

.text-link span {
    color: var(--red);
}

.hero-proof {
    display: flex;
    gap: 0;
    margin-top: 70px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.hero-proof div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 26px;
    margin-right: 26px;
    border-right: 1px solid var(--line);
}

.hero-proof div:last-child {
    border: 0;
    margin: 0;
}

.hero-proof strong {
    font-size: 18px;
}

.hero-proof span {
    color: var(--muted);
    font-size: 12px;
}

.hero-visual {
    height: 650px;
    border-radius: 36px;
    overflow: hidden;
    background: var(--ink);
    position: relative;
    box-shadow: 0 40px 100px rgba(11, 16, 32, .22);
}

.hero-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 16, 32, .18), rgba(22, 57, 173, .3)), url('../images/hero-ai.webp') center/cover;
    transform: scale(1.04);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 16, 32, .65), transparent 55%);
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 50%;
    z-index: 1;
}

.orbit-one {
    width: 420px;
    height: 420px;
    top: 75px;
    left: 80px;
    animation: spin 16s linear infinite;
}

.orbit-one::before,
.orbit-two::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    top: 50%;
    left: -5px;
    box-shadow: 0 0 0 6px rgba(231, 59, 69, .14);
}

.orbit-two {
    width: 300px;
    height: 300px;
    top: 135px;
    left: 140px;
    animation: spinReverse 10s linear infinite;
}

.orbit-two::before {
    background: white;
    top: -5px;
    left: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .12);
}

.floating-card {
    position: absolute;
    z-index: 3;
    color: white;
    background: rgba(11, 16, 32, .58);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

.floating-card small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .17em;
    margin-bottom: 5px;
}

.floating-card strong {
    font-size: 13px;
}

.card-top {
    top: 34px;
    right: 30px;
}

.card-bottom {
    bottom: 30px;
    left: 30px;
}

.card-bottom svg {
    width: 34px;
    color: #8ba5ff;
}

.pulse {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #58ed9c;
    box-shadow: 0 0 0 7px rgba(88, 237, 156, .12);
}

.hero-visual {
    position: relative;
}

.cube-wrapper {
    position: absolute;
    right: 60px;
    bottom: 80px;
    width: 64px;
    height: 64px;
    perspective: 800px;
    z-index: 5;
}

.cube {
    width: 64px;
    height: 64px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(45deg);
    animation: cubeRotate 8s linear infinite;
}

.face {
    position: absolute;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(4px);
}

.front {
    transform: translateZ(32px);
}

.back {
    transform: rotateY(180deg) translateZ(32px);
}

.right {
    transform: rotateY(90deg) translateZ(32px);
}

.left {
    transform: rotateY(-90deg) translateZ(32px);
}

.top {
    transform: rotateX(90deg) translateZ(32px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(32px);
}

.front {
    background: rgba(90, 140, 255, .18);
}

.right {
    background: rgba(140, 90, 255, .20);
}

.top {
    background: rgba(255, 255, 255, .10);
}

@keyframes cubeRotate {
    from {
        transform: rotateX(-30deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-30deg) rotateY(360deg);
    }
}

.logo-strip {
    background: var(--ink);
    color: white;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.marquee {
    width: 100%;
    padding: 24px 0;
}

.marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 30px;
    animation: marquee 28s linear infinite;
}

.marquee span {
    font-size: 13px;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
}

.marquee i {
    font-style: normal;
    color: var(--red);
    font-size: 11px;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.section-head {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 70px;
}

.section-head h2,
.about h2 {
    font-size: clamp(54px, 5.2vw, 82px);
    line-height: .96;
    letter-spacing: -.06em;
    margin: 26px 0 0;
}

.section-head>p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 520px;
    margin: 0 0 8px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-card {
    min-height: 420px;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .25s, transform .25s, box-shadow .25s;
    overflow: hidden;
}

.service-card:hover {
    background: white;
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(11, 16, 32, .08);
    z-index: 2;
}

.service-card.featured {
    grid-column: span 2;
    background: white;
    padding-right: 42%;
}

.service-card.featured::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    right: 45px;
    bottom: 50px;
    background: conic-gradient(from 45deg, var(--blue), #738fff, var(--red), var(--blue));
    filter: blur(.2px);
    opacity: .9;
}

.service-card.featured::before {
    content: "AI";
    position: absolute;
    right: 88px;
    bottom: 105px;
    z-index: 1;
    color: white;
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -.08em;
}

.service-no {
    font-size: 11px;
    letter-spacing: .16em;
    font-weight: 800;
    color: var(--muted);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--blue);
    margin-top: auto;
    margin-bottom: 26px;
}

.service-icon svg {
    width: 100%;
}

.service-card h3 {
    font-size: 27px;
    letter-spacing: -.04em;
    margin: 0 0 15px;
}

.service-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

.service-card>a {
    position: absolute;
    top: 25px;
    right: 28px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: .2s;
}

.service-card:hover>a {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
    transform: rotate(45deg);
}

.service-card ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 22px 0 0;
}

.service-card li {
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--line);
    padding: 8px 10px;
    border-radius: 999px;
}

.dark-card {
    background: var(--ink);
    color: white;
}

.dark-card p,
.dark-card .service-no {
    color: rgba(255, 255, 255, .58);
}

.dark-card .service-icon {
    color: #8ba5ff;
}

.dark-card>a {
    border-color: rgba(255, 255, 255, .2);
}

.dark-card:hover {
    background: var(--blue-dark);
}

.work {
    background: var(--ink);
    color: white;
}

.section-head.light>p {
    color: rgba(255, 255, 255, .58);
}

.work-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

.project {
    min-height: 520px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--ink-2);
}

.project img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.project:hover img {
    transform: scale(1.045);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 10, 20, .86), rgba(7, 10, 20, .08) 65%);
}

.project-top {
    position: absolute;
    z-index: 2;
    top: 25px;
    left: 28px;
    right: 28px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: .15em;
    font-weight: 800;
    color: rgba(255, 255, 255, .75);
}

.project-bottom {
    position: absolute;
    z-index: 2;
    bottom: 32px;
    left: 32px;
    right: 32px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.project small,
.project-copy small,
.project-wide-copy small {
    font-size: 10px;
    letter-spacing: .17em;
    font-weight: 800;
    color: rgba(255, 255, 255, .62);
}

.project h3 {
    font-size: 35px;
    line-height: 1.08;
    max-width: 610px;
    letter-spacing: -.045em;
    margin: 10px 0 0;
}

.project-bottom>strong {
    font-size: 54px;
    line-height: .85;
    letter-spacing: -.07em;
    color: white;
    text-align: right;
}

.project-bottom>strong em {
    display: block;
    font-style: normal;
    font-size: 10px;
    letter-spacing: .1em;
    font-weight: 700;
    color: rgba(255, 255, 255, .6);
    margin-top: 13px;
}

.project-small {
    min-height: 520px;
}

.project-small.blue {
    background: var(--blue);
}

.project-copy {
    position: absolute;
    z-index: 3;
    left: 30px;
    right: 30px;
    bottom: 30px;
}

.project-copy h3 {
    font-size: 31px;
}

.abstract-ui {
    position: absolute;
    inset: 68px 30px 150px;
}

.chat {
    width: 78%;
    height: 75px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    position: absolute;
    padding: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.chat i {
    float: left;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    margin-right: 14px;
}

.chat span {
    display: block;
    height: 7px;
    background: rgba(255, 255, 255, .55);
    border-radius: 999px;
    margin: 5px 0 9px 54px;
}

.chat span:last-child {
    width: 55%;
    opacity: .6;
}

.chat-a {
    top: 0;
    left: 0;
}

.chat-b {
    top: 90px;
    right: 0;
}

.chat-c {
    top: 180px;
    left: 8%;
}

.image-project .project-overlay {
    background: linear-gradient(to top, rgba(7, 10, 20, .9), rgba(7, 10, 20, .08));
}

.project-wide {
    grid-column: span 2;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.project-wide img {
    width: 50%;
    left: auto;
}

.project-wide::after {
    content: "";
    position: absolute;
    left: 45%;
    top: 0;
    bottom: 0;
    width: 15%;
    background: linear-gradient(to right, var(--ink-2), transparent);
    z-index: 1;
}

.project-wide-copy {
    width: 51%;
    padding: 50px;
    position: relative;
    z-index: 2;
}

.project-wide-copy h3 {
    font-size: 42px;
}

.project-wide-copy a {
    display: inline-flex;
    gap: 13px;
    font-size: 14px;
    font-weight: 750;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    padding-bottom: 7px;
    margin-top: 34px;
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 110px;
    align-items: start;
}

.about-sticky {
    position: sticky;
    top: 130px;
}

.about-sticky>p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    margin: 28px 0 35px;
}

.btn-outline {
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: white;
}

.principles {
    border-top: 1px solid var(--line);
}

.principle {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    padding: 42px 0;
}

.principle>span {
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--red);
    font-weight: 800;
}

.principle h3 {
    font-size: 31px;
    letter-spacing: -.04em;
    margin: -7px 0 12px;
}

.principle p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.process {
    background: white;
}

.process-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    padding-top: 0;
    position: relative;
}

.step {
    padding: 36px 35px 0 0;
    position: relative;
}

.step::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 7px rgba(37, 86, 255, .1);
}

.step-dot {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    color: var(--red);
    margin-bottom: 50px;
}

.step h3 {
    font-size: 25px;
    margin: 0 0 13px;
    letter-spacing: -.035em;
}

.step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.industries {
    background: white;
    padding: 0 0 120px;
}

.industry-panel {
    background: var(--blue);
    color: white;
    border-radius: 28px;
    padding: 72px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
}

.industry-panel h2 {
    font-size: clamp(50px, 4.4vw, 72px);
    line-height: .95;
    letter-spacing: -.06em;
    margin: 28px 0 0;
}

.industry-list {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 12px;
}

.industry-list span {
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 13px;
    background: rgba(255, 255, 255, .07);
}

.contact {
    background: var(--ink);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
}

.contact-copy h2 {
    font-size: clamp(58px, 5.5vw, 86px);
    line-height: .92;
    letter-spacing: -.065em;
    margin: 30px 0;
}

.contact-copy>p {
    color: rgba(255, 255, 255, .58);
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
}

.contact-details {
    margin-top: 55px;
    display: grid;
    gap: 21px;
}

.contact-details a,
.contact-details div {
    display: block;
}

.contact-details small {
    display: block;
    color: rgba(255, 255, 255, .42);
    font-size: 9px;
    letter-spacing: .17em;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-details strong {
    font-size: 16px;
}

.contact-form {
    background: white;
    color: var(--ink);
    border-radius: 24px;
    padding: 38px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form label {
    display: block;
    margin-bottom: 21px;
}

.contact-form label>span {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 15px 16px;
    background: #f8f9fb;
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 86, 255, .08);
}

.contact-form textarea {
    resize: vertical;
}

.btn-white {
    width: 100%;
    background: var(--blue);
    color: white;
}

.btn-white:hover {
    background: var(--ink);
}

.form-note {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin: 13px 0 0;
}



.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .2s;
}

.delay-3 {
    transition-delay: .3s;
}

@media (max-width: 1024px) {
    :root {
        --container: min(100% - 36px, 920px);
    }

    .section-pad {
        padding: 90px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-top: 70px;
    }

    .hero-visual {
        height: 590px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card.featured {
        grid-column: span 2;
    }

    .about-grid {
        gap: 65px;
    }

    .contact-grid {
        gap: 55px;
    }
}

@media (max-width: 760px) {
    :root {
        --container: calc(100% - 30px);
        --radius: 18px;
    }

    .section-pad {
        padding: 75px 0;
    }

    .site-header {
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        background: var(--paper);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        font-size: 26px;
        transform: translateY(-102%);
        transition: transform .4s ease;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .nav-cta {
        font-size: 15px;
        margin-top: 10px;
    }

    .hero {
        padding-top: 95px;
    }

    .hero-grid {
        gap: 50px;
    }

    .hero-copy {
        padding-top: 35px;
    }

    .hero h1 {
        font-size: clamp(58px, 18vw, 82px);
        margin-top: 26px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .hero-proof {
        flex-wrap: wrap;
        gap: 20px 0;
        margin-top: 50px;
    }

    .hero-proof div {
        min-width: 50%;
        margin: 0;
        padding-right: 15px;
        border: 0;
    }

    .hero-visual {
        height: 500px;
        border-radius: 24px;
    }

    .orbit-one {
        width: 320px;
        height: 320px;
        left: 20px;
        top: 85px;
    }

    .orbit-two {
        width: 220px;
        height: 220px;
        left: 70px;
        top: 135px;
    }

    .card-top {
        right: 16px;
        top: 16px;
    }

    .card-bottom {
        left: 16px;
        bottom: 16px;
    }

    .cube-badge {
        right: 45px;
        bottom: 96px;
        transform: scale(.72) rotateX(-22deg) rotateY(35deg);
    }

    .section-head {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 45px;
    }

    .section-head h2,
    .about h2 {
        font-size: 52px;
    }

    .section-head>p {
        font-size: 16px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        border-left: 0;
    }

    .service-card,
    .service-card.featured {
        grid-column: auto;
        min-height: 360px;
        border-left: 1px solid var(--line);
        padding: 26px;
    }

    .service-card.featured {
        padding-right: 26px;
        min-height: 480px;
    }

    .service-card.featured::after {
        width: 175px;
        height: 175px;
        right: 28px;
        bottom: 34px;
        opacity: .7;
    }

    .service-card.featured::before {
        font-size: 55px;
        right: 58px;
        bottom: 78px;
    }

    .service-card.featured>div:not(.service-no):not(.service-icon) {
        padding-bottom: 190px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .project,
    .project-small {
        min-height: 460px;
    }

    .project-large,
    .project-wide {
        grid-column: auto;
    }

    .project-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-bottom>strong {
        text-align: left;
    }

    .project h3 {
        font-size: 29px;
    }

    .project-wide {
        min-height: 650px;
        align-items: flex-end;
    }

    .project-wide img {
        width: 100%;
        height: 52%;
        top: 0;
    }

    .project-wide::after {
        left: 0;
        top: 38%;
        width: 100%;
        height: 20%;
        background: linear-gradient(to bottom, transparent, var(--ink-2));
    }

    .project-wide-copy {
        width: 100%;
        padding: 30px;
    }

    .project-wide-copy h3 {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .about-sticky {
        position: static;
    }

    .principle {
        grid-template-columns: 55px 1fr;
        gap: 15px;
    }

    .principle h3 {
        font-size: 26px;
    }

    .process-line {
        grid-template-columns: 1fr;
        border-left: 1px solid var(--line);
        border-top: 0;
        padding-left: 30px;
        gap: 45px;
    }

    .step {
        padding: 0;
    }

    .step::before {
        top: 4px;
        left: -35px;
    }

    .step-dot {
        margin-bottom: 20px;
    }

    .industry-panel {
        grid-template-columns: 1fr;
        padding: 42px 25px;
        gap: 40px;
    }

    .industry-panel h2 {
        font-size: 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-copy h2 {
        font-size: 54px;
    }

    .contact-form {
        padding: 26px 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        transition: right 0.35s ease;
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 42px;
        height: 42px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 26px;
        height: 2px;
        background: #111;
        transition: 0.3s ease;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }
}

/* COMMON FLOATING ACTION BUTTONS */
.floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 9999;
}

/*  COMMON BUTTON  */
.floating-fab {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(11, 16, 32, .20);
    transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease, visibility .25s ease;
}

.floating-fab:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 22px 50px rgba(11, 16, 32, .25);
}

.floating-fab svg {
    width: 27px;
    height: 27px;
}

/*  WHATSAPP  */
.whatsapp-fab {
    background: #20b85a;
    box-shadow: 0 18px 45px rgba(32, 184, 90, .30);
}

.whatsapp-fab:hover {
    box-shadow: 0 22px 50px rgba(32, 184, 90, .38);
}

/*  CALL  */
.call-fab {
    background: #2563eb;
    box-shadow: 0 18px 45px rgba(37, 99, 235, .28);
}

.call-fab:hover {
    box-shadow: 0 22px 50px rgba(37, 99, 235, .38)
}

/*  BACK TO TOP  */
.top-fab {
    background: #05164e;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.top-fab.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-fab:hover {
    background: #071c5e;
}

/*  MOBILE  */
@media (max-width: 768px) {
    .floating-actions {
        right: 16px;
        bottom: 16px;
        gap: 9px;
    }

    .floating-fab {
        width: 50px;
        height: 50px;
    }

    .floating-fab svg {
        width: 23px;
        height: 23px;
    }
}

/* =========================================================
RESPONSIVE SYSTEM — FINAL OVERRIDES
========================================================= */

/* Prevent long words / controls from causing horizontal overflow */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.container {
    width: min(1240px, calc(100% - 48px));
}

/* ---------- LARGE TABLETS / SMALL LAPTOPS ---------- */
@media (max-width: 1100px) {
    .container {
        width: min(100% - 40px, 960px);
    }

    .main-nav {
        gap: 22px;
        font-size: 13px;
    }

    .brand-mark {
        width: 205px;
    }

    .hero-grid {
        gap: 42px;
    }

    .hero h1 {
        font-size: clamp(62px, 7.2vw, 88px);
    }

    .hero-lead {
        font-size: 18px;
    }

    .hero-visual {
        height: 560px;
    }

    .orbit-one {
        width: 360px;
        height: 360px;
        left: 50%;
        top: 80px;
        transform: translateX(-50%);
    }

    .orbit-two {
        width: 260px;
        height: 260px;
        left: 50%;
        top: 130px;
        transform: translateX(-50%);
    }

    .section-head {
        gap: 45px;
    }

    .service-card.featured {
        padding-right: 34%;
    }

    .project h3 {
        font-size: 31px;
    }

    .project-wide-copy {
        padding: 40px;
    }

    .project-wide-copy h3 {
        font-size: 36px;
    }

    .about-grid {
        gap: 70px;
    }
}

/* ---------- TABLET ---------- */
@media (max-width: 900px) {

    .site-header {
        padding: 8px 0;
    }

    .nav-wrap {
        min-height: 58px;
    }

    .brand-mark {
        width: 190px;
    }

    .main-nav {
        gap: 18px;
    }

    .nav-cta {
        padding: 12px 16px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-copy {
        padding-top: 20px;
        max-width: 760px;
    }

    .hero h1 {
        font-size: clamp(64px, 10vw, 92px);
        max-width: 760px;
    }

    .hero-lead {
        max-width: 680px;
    }

    .hero-visual {
        height: min(600px, 70vw);
        min-height: 480px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-large {
        grid-column: span 2;
    }

    .project-wide {
        grid-column: span 2;
    }

    .project-bottom {
        gap: 20px;
    }

    .about-sticky {
        position: static;
        max-width: 760px;
    }

    .process-line {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 55px;
    }

    .industry-panel {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-copy {
        max-width: 760px;
    }
}

/* ---------- MOBILE NAV + MOBILE LAYOUT ---------- */
@media (max-width: 768px) {

    .container {
        width: calc(100% - 30px);
    }

    .section-pad {
        padding: 72px 0;
    }

    /* Header */
    .site-header,
    .site-header.scrolled {
        padding: 8px 0;
    }

    .nav-wrap {
        height: 56px;
    }

    .brand-mark {
        width: min(190px, 58vw);
    }

    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 7px;
        margin-right: -6px;
        border-radius: 10px;
        cursor: pointer;
    }

    .menu-toggle span {
        position: static;
        display: block;
        width: 25px;
        height: 2px;
        margin: 0;
        background: var(--ink);
        transition: transform .3s ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(4.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-4.5px) rotate(-45deg);
    }

    .main-nav,
    .main-nav.open {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(88vw, 360px);
        height: 100dvh;
        min-height: 100vh;
        padding: 100px 30px 40px;
        background: rgba(244, 245, 247, .98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        transform: translateX(102%);
        transition: transform .35s ease;
        overflow-y: auto;
        box-shadow: -20px 0 60px rgba(11, 16, 32, .12);
        z-index: 1000;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav>a {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-size: 21px;
    }

    .main-nav>a:not(.nav-cta)::after {
        display: none;
    }

    .main-nav .nav-cta {
        width: 100%;
        margin-top: 20px;
        justify-content: center;
        padding: 15px 18px;
        border-bottom: 0;
        font-size: 15px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 105px;
    }

    .hero-copy {
        padding-top: 10px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: .15em;
        gap: 8px;
    }

    .eyebrow span {
        width: 20px;
    }

    .hero h1 {
        font-size: clamp(52px, 15.5vw, 76px);
        line-height: .9;
        letter-spacing: -.065em;
        margin: 24px 0 24px;
    }

    .hero-lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 30px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .text-link {
        justify-content: center;
        padding: 7px 0;
    }

    .hero-proof {
        margin-top: 42px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .hero-proof div {
        min-width: 0;
        margin: 0;
        padding: 0 14px 16px 0;
        border: 0;
    }

    .hero-proof div:nth-child(2) {
        padding-left: 14px;
        padding-right: 0;
        border-left: 1px solid var(--line);
    }

    .hero-proof div:nth-child(3) {
        grid-column: span 2;
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    .hero-proof strong {
        font-size: 17px;
    }

    .hero-proof span {
        font-size: 11px;
    }

    .hero-visual {
        height: min(125vw, 510px);
        min-height: 390px;
        border-radius: 22px;
    }

    .orbit-one {
        width: min(78vw, 320px);
        height: min(78vw, 320px);
        left: 50%;
        top: 18%;
        transform: translateX(-50%);
    }

    .orbit-two {
        width: min(54vw, 220px);
        height: min(54vw, 220px);
        left: 50%;
        top: 28%;
        transform: translateX(-50%);
    }

    .floating-card {
        max-width: calc(100% - 30px);
        padding: 12px 13px;
        border-radius: 14px;
        gap: 9px;
    }

    .floating-card strong {
        display: block;
        font-size: 11px;
        line-height: 1.35;
    }

    .floating-card small {
        font-size: 7px;
    }

    .card-top {
        top: 14px;
        right: 14px;
    }

    .card-bottom {
        left: 14px;
        bottom: 14px;
    }

    .card-bottom svg {
        width: 27px;
        flex: 0 0 27px;
    }

    .cube-wrapper {
        right: 24px;
        bottom: 72px;
        transform: scale(.72);
        transform-origin: bottom right;
    }

    /* Marquee */
    .marquee {
        padding: 19px 0;
    }

    .marquee-track {
        gap: 20px;
    }

    .marquee span {
        font-size: 10px;
    }

    /* Section headings */
    .section-head {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 40px;
    }

    .section-head h2,
    .about h2 {
        font-size: clamp(42px, 12.5vw, 58px);
        line-height: .98;
    }

    .section-head>p {
        font-size: 15px;
        line-height: 1.65;
    }

    /* Services */
    .service-grid {
        grid-template-columns: 1fr;
        border-left: 0;
    }

    .service-card,
    .service-card.featured {
        grid-column: auto;
        min-height: 350px;
        padding: 25px;
        border-left: 1px solid var(--line);
    }

    .service-card.featured {
        min-height: 430px;
        padding-right: 25px;
    }

    .service-card.featured::after {
        width: 155px;
        height: 155px;
        right: 22px;
        bottom: 30px;
    }

    .service-card.featured::before {
        right: 50px;
        bottom: 65px;
        font-size: 48px;
    }

    .service-card.featured>div:not(.service-no):not(.service-icon) {
        padding-bottom: 155px;
    }

    .service-icon {
        width: 43px;
        height: 43px;
        margin-bottom: 20px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 14px;
    }

    .service-card ul {
        gap: 6px;
    }

    .service-card li {
        font-size: 9px;
        padding: 7px 8px;
    }

    .service-card>a {
        top: 20px;
        right: 20px;
    }

    /* Work */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project,
    .project-small,
    .project-large,
    .project-wide {
        grid-column: auto;
        min-height: 430px;
    }

    .project-top {
        top: 20px;
        left: 20px;
        right: 20px;
        font-size: 8px;
    }

    .project-bottom {
        left: 20px;
        right: 20px;
        bottom: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .project h3 {
        font-size: 27px;
    }

    .project-bottom>strong {
        font-size: 42px;
        text-align: left;
    }

    .project-copy {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .project-copy h3 {
        font-size: 27px;
    }

    .abstract-ui {
        inset: 62px 20px 145px;
    }

    .chat {
        width: 88%;
        height: 65px;
        padding: 12px;
    }

    .chat i {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .chat span {
        margin-left: 45px;
    }

    .project-wide {
        min-height: 600px;
        align-items: flex-end;
    }

    .project-wide img {
        width: 100%;
        height: 54%;
        top: 0;
        left: 0;
    }

    .project-wide::after {
        left: 0;
        top: 38%;
        width: 100%;
        height: 25%;
        background: linear-gradient(to bottom, transparent, var(--ink-2));
    }

    .project-wide-copy {
        width: 100%;
        padding: 25px;
    }

    .project-wide-copy h3 {
        font-size: 29px;
    }

    .project-wide-copy a {
        margin-top: 24px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-sticky>p {
        font-size: 16px;
        line-height: 1.65;
    }

    .principle {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 12px;
        padding: 32px 0;
    }

    .principle h3 {
        font-size: 23px;
        margin-top: -5px;
    }

    .principle p {
        font-size: 14px;
        line-height: 1.65;
    }

    /* Process */
    .process-line {
        grid-template-columns: 1fr;
        border-top: 0;
        border-left: 1px solid var(--line);
        padding-left: 27px;
        gap: 42px;
    }

    .step::before {
        top: 3px;
        left: -33px;
        width: 9px;
        height: 9px;
    }

    .step-dot {
        margin-bottom: 15px;
    }

    .step h3 {
        font-size: 23px;
    }

    .step p {
        font-size: 14px;
    }

    /* Industries */
    .industries {
        padding-bottom: 72px;
    }

    .industry-panel {
        grid-template-columns: 1fr;
        padding: 38px 23px;
        gap: 32px;
        border-radius: 22px;
    }

    .industry-panel h2 {
        font-size: clamp(42px, 12vw, 55px);
    }

    .industry-list {
        gap: 8px;
    }

    .industry-list span {
        padding: 10px 13px;
        font-size: 11px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-copy h2 {
        font-size: clamp(46px, 13vw, 62px);
    }

    .contact-copy>p {
        font-size: 16px;
    }

    .contact-details {
        margin-top: 38px;
        gap: 18px;
    }

    .contact-details strong {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .contact-form {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
        /* prevents iOS zoom */
        padding: 14px;
    }

    .btn-white {
        min-height: 52px;
    }

    /* Floating buttons */
    .floating-actions {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        gap: 8px;
    }

    .floating-fab svg {
        width: 22px;
        height: 22px;
    }
}

/* ---------- SMALL PHONES ---------- */
@media (max-width: 480px) {
    .container {
        width: calc(100% - 24px);
    }

    .section-pad {
        padding: 62px 0;
    }

    .brand-mark {
        width: min(165px, 57vw);
    }

    .hero {
        padding-top: 96px;
    }

    .hero-grid {
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 64px);
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-visual {
        height: 430px;
        min-height: 360px;
        border-radius: 18px;
    }

    .orbit-one {
        width: 270px;
        height: 270px;
        top: 17%;
    }

    .orbit-two {
        width: 190px;
        height: 190px;
        top: 27%;
    }

    .floating-card {
        max-width: 80%;
    }

    .card-top {
        right: 10px;
        top: 10px;
    }

    .card-bottom {
        left: 10px;
        bottom: 10px;
    }

    .cube-wrapper {
        right: 15px;
        bottom: 65px;
        transform: scale(.58);
    }

    .section-head h2,
    .about h2 {
        font-size: clamp(39px, 12vw, 50px);
    }

    .service-card,
    .service-card.featured {
        min-height: 340px;
        padding: 22px;
    }

    .service-card.featured {
        min-height: 415px;
    }

    .service-card.featured::after {
        width: 130px;
        height: 130px;
        right: 18px;
        bottom: 22px;
    }

    .service-card.featured::before {
        right: 41px;
        bottom: 51px;
        font-size: 41px;
    }

    .service-card.featured>div:not(.service-no):not(.service-icon) {
        padding-bottom: 125px;
    }

    .project,
    .project-small,
    .project-large {
        min-height: 400px;
    }

    .project-wide {
        min-height: 560px;
    }

    .project h3,
    .project-copy h3 {
        font-size: 24px;
    }

    .project-wide-copy {
        padding: 22px;
    }

    .project-wide-copy h3 {
        font-size: 26px;
    }

    .contact-copy h2 {
        font-size: clamp(43px, 12.5vw, 56px);
    }

    .floating-fab {
        width: 47px;
        height: 47px;
    }
}

/* ---------- VERY SMALL PHONES ---------- */
@media (max-width: 360px) {
    .container {
        width: calc(100% - 20px);
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-visual {
        height: 390px;
    }

    .hero-proof strong {
        font-size: 15px;
    }

    .hero-proof span {
        font-size: 10px;
    }

    .floating-card {
        max-width: 75%;
        padding: 10px;
    }

    .floating-card strong {
        font-size: 10px;
    }

    .floating-card small {
        font-size: 6px;
    }

    .cube-wrapper {
        transform: scale(.5);
    }

    .service-card h3 {
        font-size: 22px;
    }

    .industry-panel {
        padding: 32px 18px;
    }

    .contact-form {
        padding: 20px 14px;
    }
}

/* ---------- LANDSCAPE PHONES ---------- */
@media (max-width: 900px) and (orientation: landscape) {

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero h1 {
        font-size: clamp(45px, 8vw, 70px);
    }

    .hero-lead {
        font-size: 14px;
    }

    .hero-visual {
        height: 430px;
        min-height: 0;
    }

    .hero-actions {
        margin-top: 25px;
    }

    .hero-proof {
        margin-top: 30px;
    }
}

/* ---------- ACCESSIBILITY / MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
HERO — FULL BACKGROUND VIDEO
Only the home-page banner is changed.
========================================================= */

.hero {
    min-height: 860px;
    display: flex;
    align-items: center;
    padding-top: 140px;
    position: relative;
    overflow: hidden;
    background: #0b1020;
    color: #fff;
}

.hero::before {
    z-index: 2;
    pointer-events: none;
}

.hero-grid {
    display: block;
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-copy {
    max-width: 760px;
    position: relative;
    z-index: 4;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, .78);
}

.hero h1 {
    color: #fff;
}

.hero h1 span {
    color: #8ba5ff;
}

.hero-lead {
    color: rgba(255, 255, 255, .78);
}

.hero-actions {
    position: relative;
    z-index: 4;
}

.hero-proof {
    border-top-color: rgba(255, 255, 255, .22);
}

.hero-proof div {
    border-right-color: rgba(255, 255, 255, .22);
}

.hero-proof strong {
    color: #fff;
}

.hero-proof span {
    color: rgba(255, 255, 255, .68);
}

/* Video fills the entire banner */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-radius: 0;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(7, 10, 20, .90) 0%,
            rgba(7, 10, 20, .74) 35%,
            rgba(7, 10, 20, .42) 68%,
            rgba(7, 10, 20, .48) 100%),
        linear-gradient(180deg,
            rgba(7, 10, 20, .28) 0%,
            rgba(7, 10, 20, .42) 100%);
}

/* Desktop: content stays on the left; video remains full-width behind it */
@media (min-width: 1025px) {
    .hero-copy {
        max-width: 720px;
    }
}

/* Tablet/mobile: keep the same background-video treatment */
@media (max-width: 1024px) {
    .hero {
        min-height: 820px;
    }

    .hero-grid {
        display: block;
    }

    .hero-copy {
        max-width: 760px;
        padding-top: 70px;
    }

    .hero-video {
        object-position: center center;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 760px;
        padding-top: 95px;
    }

    .hero-copy {
        padding-top: 35px;
        max-width: 100%;
    }

    .hero-video-overlay {
        background:
            linear-gradient(90deg,
                rgba(7, 10, 20, .92) 0%,
                rgba(7, 10, 20, .70) 100%),
            linear-gradient(180deg,
                rgba(7, 10, 20, .30),
                rgba(7, 10, 20, .55));
    }
}

/* =========================================================
HERO CONTENT ALIGNMENT — MATCH SITE SECTIONS
Video positioning/background is intentionally unchanged.
========================================================= */

/* Use the same horizontal container alignment as every other section. */
.hero>.container.hero-grid {
    width: var(--container);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Do not add extra hero-only padding/margins to the content. */
.hero-copy {
    max-width: 760px;
    padding-top: 0 !important;
    margin: 0;
}

/* Keep the original spacing rhythm used by the site. */
.hero h1 {
    margin-top: 34px;
    margin-bottom: 32px;
}

.hero-lead {
    margin: 0;
}

.hero-actions {
    margin-top: 42px;
}

.hero-proof {
    margin-top: 70px;
}

/* Responsive: same container alignment, no artificial top padding. */
@media (max-width: 1024px) {
    .hero>.container.hero-grid {
        width: min(100% - 36px, 920px);
    }

    .hero-copy {
        padding-top: 0 !important;
        max-width: 760px;
    }
}

@media (max-width: 760px) {
    .hero>.container.hero-grid {
        width: calc(100% - 30px);
    }

    .hero-copy {
        padding-top: 0 !important;
        max-width: 100%;
    }

    .hero h1 {
        margin-top: 26px;
        margin-bottom: 28px;
    }

    .hero-actions {
        margin-top: 32px;
    }

    .hero-proof {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .hero>.container.hero-grid {
        width: calc(100% - 24px);
    }
}

/* =========================================================
HEADER + HERO BUTTONS
Video position and hero content layout remain unchanged.
========================================================= */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 10px 0;
    background: rgba(244, 245, 247, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(11, 16, 32, .08);
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

.site-header.scrolled {
    background: rgba(244, 245, 247, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(11, 16, 32, .10);
    padding: 8px 0;
    box-shadow: 0 8px 30px rgba(11, 16, 32, .06);
}

.nav-wrap {
    min-height: 62px;
    height: auto;
}

.brand-mark {
    width: 220px;
    height: auto;
}

.main-nav {
    gap: 30px;
    align-items: center;
    font-size: 15px;
    font-weight: 650;
}

.main-nav>a:not(.nav-cta) {
    color: var(--ink);
    transition: color .2s ease;
}

.main-nav>a:not(.nav-cta)::after {
    background: var(--blue);
    height: 2px;
    bottom: -8px;
}

.main-nav>a:not(.nav-cta):hover {
    color: var(--blue);
}

/* Header Start a project button */
.nav-cta {
    min-height: 52px;
    padding: 14px 22px;
    color: #fff !important;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 10px 25px rgba(11, 16, 32, .12);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 14px 30px rgba(37, 86, 255, .22);
}

.nav-cta::after {
    display: none !important;
}

/* Hero/banner primary button */
.hero-actions .btn-primary {
    min-height: 56px;
    padding: 17px 27px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    background: var(--ink);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
    font-size: 14px;
    font-weight: 750;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 18px 42px rgba(37, 86, 255, .30);
}

/* Hero secondary text button */
.hero-actions .text-link {
    min-height: 56px;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    gap: 13px;
    transition: color .2s ease, transform .2s ease;
}

.hero-actions .text-link span {
    color: #ff6670;
    font-size: 18px;
    transition: transform .2s ease;
}

.hero-actions .text-link:hover {
    color: #dbe3ff;
    transform: translateY(-2px);
}

.hero-actions .text-link:hover span {
    transform: translateY(3px);
}

/* Mobile header */
@media (max-width: 900px) {

    .site-header,
    .site-header.scrolled {
        padding: 8px 0;
    }

    .nav-cta {
        min-height: 48px;
        padding: 12px 17px;
    }
}

@media (max-width: 760px) {
    .brand-mark {
        width: 175px;
    }

    .main-nav.open {
        background: rgba(244, 245, 247, .98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .main-nav .nav-cta {
        min-height: 52px;
        width: 100%;
        padding: 15px 18px;
    }

    .hero-actions .btn-primary,
    .hero-actions .text-link {
        min-height: 52px;
    }

    .hero-actions .btn-primary {
        padding: 15px 22px;
    }
}

.success-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
}

.success-popup.active {
    display: flex !important;
}

.success-popup-content {
    position: relative;
    width: min(450px, 100%);
    padding: 40px 30px;
    background: #fff;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
    animation: successPopupIn 0.3s ease;
}

.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #3822c5;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    line-height: 70px;
}

.success-popup-content h3 {
    margin: 0 0 12px;
}

.success-popup-content p {
    margin: 0 0 25px;
    line-height: 1.6;
    color: #666;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.popup-close:hover {
    color: #000;
}

body.popup-open {
    overflow: hidden;
}

@keyframes successPopupIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
