:root {
    --navy: #061839;
    --navy-deep: #031027;
    --blue: #0967f2;
    --blue-bright: #0b75ff;
    --cyan: #3bc8ed;
    --ink: #10213e;
    --muted: #64728a;
    --line: #dce3ed;
    --surface: #f3f6fa;
    --white: #ffffff;
    --radius: 22px;
    --shadow: 0 28px 75px rgba(7, 28, 65, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--blue);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    background:
        linear-gradient(105deg, rgba(9, 103, 242, .055), rgba(255, 255, 255, .97) 32%, rgba(255, 255, 255, .97) 70%, rgba(59, 200, 237, .06));
    border-bottom: 1px solid rgba(9, 103, 242, .08);
    box-shadow: 0 7px 28px rgba(6, 24, 57, .035);
    backdrop-filter: blur(14px);
    transition: background .25s ease, box-shadow .25s ease;
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 4%, var(--blue) 30%, var(--cyan) 50%, var(--blue) 70%, transparent 96%);
    background-size: 200% 100%;
    opacity: .34;
    animation: header-accent-drift 10s ease-in-out infinite;
}

.site-header.scrolled {
    background:
        linear-gradient(105deg, rgba(9, 103, 242, .045), rgba(255, 255, 255, .955) 34%, rgba(255, 255, 255, .955) 72%, rgba(59, 200, 237, .045));
    box-shadow: 0 12px 34px rgba(6, 24, 57, .08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    position: relative;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
}

@keyframes header-accent-drift {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.brand img {
    width: 192px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav > a:not(.nav-cta) {
    position: relative;
    padding: 9px 5px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}

.main-nav > a:not(.nav-cta):hover,
.main-nav > a:not(.nav-cta):focus-visible {
    color: var(--blue);
    background: rgba(9, 103, 242, .055);
}

.main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 2px;
    left: 5px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .2s ease;
}

.main-nav > a:hover::after,
.main-nav > a:focus-visible::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 11px 18px;
    color: var(--white);
    background: var(--navy);
    border-radius: 10px;
    transition: background .2s ease, transform .2s ease;
}

.nav-cta:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
}

.hero {
    position: relative;
    min-height: 820px;
    padding: 175px 0 60px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 31, 71, .035) 1px, transparent 1px),
        linear-gradient(rgba(7, 31, 71, .035) 1px, transparent 1px),
        linear-gradient(145deg, #fff 40%, #f1f6fc 100%);
    background-size: 64px 64px, 64px 64px, auto;
}

.hero::before {
    content: "";
    position: absolute;
    top: 86px;
    left: calc(50% + 290px);
    width: 1px;
    height: 620px;
    background: linear-gradient(transparent, rgba(9, 103, 242, .28), transparent);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 80px;
}

.eyebrow {
    display: flex;
    margin: 0 0 24px;
    align-items: center;
    gap: 11px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-block;
    width: 25px;
    height: 2px;
    background: currentColor;
}

.hero h1,
.section-heading h2,
.approach h2,
.contact-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(46px, 5.6vw, 76px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.hero h1 em {
    position: relative;
    color: var(--blue);
    font-style: normal;
}

.hero h1 em::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 9px;
    background: rgba(59, 200, 237, .22);
    border-radius: 50%;
}

.hero-lead {
    max-width: 620px;
    margin: 28px 0 32px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 23px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 14px 32px rgba(9, 103, 242, .26);
}

.button-primary:hover {
    box-shadow: 0 18px 38px rgba(9, 103, 242, .36);
}

.button-ghost {
    color: var(--navy);
    border-color: var(--line);
    background: rgba(255, 255, 255, .65);
}

.hero-proof {
    display: grid;
    margin-top: 54px;
    grid-template-columns: repeat(3, 1fr);
}

.hero-proof div {
    padding-left: 18px;
    border-left: 2px solid var(--line);
}

.hero-proof div:first-child {
    border-color: var(--blue);
}

.hero-proof strong,
.hero-proof span {
    display: block;
}

.hero-proof strong {
    color: var(--navy);
    font-size: 14px;
}

.hero-proof span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.hero-visual {
    position: relative;
    min-height: 460px;
}

.code-window {
    position: absolute;
    top: 30px;
    right: 0;
    width: min(100%, 490px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: var(--navy-deep);
    box-shadow: 0 38px 90px rgba(2, 16, 40, .26);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.window-bar {
    display: flex;
    height: 52px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .045);
    font-family: Consolas, monospace;
    font-size: 11px;
}

.window-bar div {
    display: flex;
    gap: 7px;
}

.window-bar i {
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, .25);
    border-radius: 50%;
}

.window-bar i:nth-child(2) {
    background: var(--blue);
}

.code-body {
    display: flex;
    min-height: 330px;
    padding: 46px 42px;
    flex-direction: column;
    color: #e8f1ff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 2;
}

.code-body b {
    color: var(--cyan);
}

.code-body q {
    color: #8fb9ff;
}

.code-body q::before,
.code-body q::after {
    content: '"';
}

.code-comment {
    margin-bottom: 12px;
    color: #6e839f;
}

.code-body .indent {
    padding-left: 25px;
}

.code-result {
    margin-top: 28px;
    padding: 8px 13px;
    color: #79e5ff;
    background: rgba(59, 200, 237, .08);
    border-left: 2px solid var(--cyan);
}

.floating-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    min-width: 136px;
    padding: 10px 15px;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 800;
}

.floating-chip span {
    color: var(--blue);
}

.chip-one {
    top: 6px;
    left: -18px;
}

.chip-two {
    bottom: 62px;
    left: -32px;
}

.chip-three {
    right: -18px;
    bottom: 21px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
}

.hero-glow-one {
    top: 130px;
    right: -220px;
    width: 570px;
    height: 570px;
    background: rgba(9, 103, 242, .07);
}

.hero-glow-two {
    bottom: 30px;
    left: 40%;
    width: 210px;
    height: 210px;
    background: rgba(59, 200, 237, .08);
}

.scroll-hint {
    display: flex;
    position: relative;
    z-index: 2;
    margin-top: 60px;
    align-items: center;
    gap: 10px;
    color: #8390a4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scroll-hint span {
    display: inline-block;
    width: 25px;
    height: 39px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.scroll-hint span::after {
    content: "";
    display: block;
    width: 3px;
    height: 7px;
    margin: 7px auto;
    background: var(--blue);
    border-radius: 3px;
    animation: scroll 1.8s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.section {
    padding: 125px 0;
}

.section-heading {
    display: grid;
    margin-bottom: 58px;
    grid-template-columns: 1fr 370px;
    align-items: end;
    gap: 70px;
}

.section-heading h2,
.approach h2,
.contact-card h2 {
    font-size: clamp(38px, 4.1vw, 58px);
}

.section-heading > p,
.approach-copy > p:not(.eyebrow) {
    margin: 0 0 5px;
    color: var(--muted);
}

.services {
    background: var(--white);
}

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

.service-card {
    position: relative;
    min-height: 390px;
    padding: 36px 32px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: transform .25s ease, border .25s ease, box-shadow .25s ease;
}

.service-card:hover {
    border-color: #c9d5e5;
    box-shadow: 0 26px 60px rgba(6, 24, 57, .08);
    transform: translateY(-7px);
}

.service-card.featured {
    color: rgba(255, 255, 255, .68);
    background: var(--navy);
}

.service-number {
    position: absolute;
    top: 23px;
    right: 28px;
    color: #a8b3c3;
    font-size: 12px;
    font-weight: 800;
}

.featured .service-number {
    color: rgba(255, 255, 255, .28);
}

.service-icon {
    display: grid;
    width: 55px;
    height: 55px;
    margin-bottom: 38px;
    place-items: center;
    color: var(--blue);
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(6, 24, 57, .08);
    font-family: Consolas, monospace;
    font-size: 19px;
    font-weight: 800;
}

.service-card.featured .service-icon {
    color: var(--white);
    background: var(--blue);
}

.service-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 21px;
    letter-spacing: -.025em;
}

.service-card.featured h3 {
    color: var(--white);
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.service-card.featured p {
    color: rgba(255, 255, 255, .62);
}

.service-card ul {
    display: flex;
    margin: 29px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.service-card li {
    padding: 5px 9px;
    color: #596a83;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.service-card.featured li {
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .11);
}

.projects {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
}

.projects::before {
    content: "";
    position: absolute;
    top: -300px;
    right: -260px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(9, 103, 242, .2), transparent 65%);
}

.section-heading.light h2 {
    color: var(--white);
}

.section-heading.light > p {
    color: rgba(255, 255, 255, .52);
}

.project-grid {
    display: grid;
    position: relative;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.project-card {
    min-height: 355px;
    padding: 30px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    transition: transform .25s ease, background .25s ease, border .25s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(59, 200, 237, .25);
    transform: translateY(-6px);
}

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .28);
    font-family: Consolas, monospace;
    font-size: 12px;
}

.project-status {
    padding: 5px 9px;
    color: #85dcf4;
    background: rgba(59, 200, 237, .08);
    border-radius: 6px;
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.project-card h3 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 23px;
    line-height: 1.25;
}

.project-logo-wrap {
    display: flex;
    width: 100%;
    height: 86px;
    margin: 30px auto 20px;
    padding: 13px 18px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #eef4fc);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.project-logo {
    width: min(100%, 235px);
    max-height: 58px;
    object-fit: contain;
    object-position: center;
}

.project-card p {
    margin: 0;
    color: rgba(255, 255, 255, .52);
    font-size: 13px;
}

.tag-list {
    display: flex;
    margin: 32px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.tag-list li {
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
}

.tag-list li:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
    color: var(--blue);
}

.project-link {
    display: inline-flex;
    margin-top: 24px;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.project-link span {
    color: var(--cyan);
    font-size: 16px;
    transition: transform .2s ease;
}

.project-link:hover span {
    transform: translateX(5px);
}

.projects-page-hero {
    padding: 175px 0 95px;
    background:
        linear-gradient(90deg, rgba(7, 31, 71, .04) 1px, transparent 1px),
        linear-gradient(rgba(7, 31, 71, .04) 1px, transparent 1px),
        linear-gradient(145deg, #ffffff, #edf4fc);
    background-size: 64px 64px, 64px 64px, auto;
}

.projects-page-hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.projects-page-hero h1 em {
    color: var(--blue);
    font-style: normal;
}

.projects-page-hero > .container > p:last-child {
    max-width: 690px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.project-details {
    padding: 35px 0 110px;
    background: var(--surface);
}

.project-detail {
    display: grid;
    padding: 78px 0;
    grid-template-columns: 310px 1fr;
    gap: 85px;
    scroll-margin-top: 90px;
    border-bottom: 1px solid var(--line);
}

.project-detail:last-child {
    border-bottom: 0;
}

.project-detail-brand {
    position: relative;
}

.project-detail-number {
    display: block;
    margin-bottom: 18px;
    color: var(--blue);
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
}

.project-detail-logo {
    display: flex;
    min-height: 150px;
    padding: 28px;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(7, 26, 61, .08);
}

.project-detail-logo img {
    width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.project-detail-status {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 10px;
    color: var(--blue);
    background: rgba(9, 103, 242, .08);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-detail-content h2 {
    max-width: 720px;
    margin: 25px 0 20px;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 50px);
    letter-spacing: -.045em;
    line-height: 1.08;
}

.project-detail-lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.project-detail-columns {
    display: grid;
    margin-top: 38px;
    grid-template-columns: 1.1fr .9fr;
    gap: 55px;
}

.project-detail-columns h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.feature-list,
.detail-tags {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list {
    display: grid;
    gap: 11px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 14px;
}

.feature-list span {
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    font-size: 10px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tags li {
    padding: 7px 10px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
}

.back-to-projects {
    display: inline-block;
    margin-top: 38px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.approach {
    background: var(--surface);
}

.approach-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 100px;
}

.approach-copy {
    position: sticky;
    top: 140px;
    align-self: start;
}

.approach-copy > p:not(.eyebrow) {
    max-width: 430px;
    margin-top: 25px;
}

.process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: grid;
    padding: 34px 0;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.process-list li:first-child {
    padding-top: 0;
}

.process-list > li > span {
    color: var(--blue);
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
}

.process-list h3 {
    margin: -5px 0 7px;
    color: var(--navy);
    font-size: 19px;
}

.process-list p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.contact-section {
    padding: 95px 0;
    background: var(--white);
}

.contact-card {
    display: grid;
    padding: 65px 70px;
    grid-template-columns: 1.1fr .9fr;
    gap: 75px;
    color: rgba(255, 255, 255, .65);
    background:
        linear-gradient(120deg, rgba(9, 103, 242, .16), transparent 45%),
        var(--blue);
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(9, 103, 242, .22);
}

.contact-card .eyebrow,
.contact-card h2 {
    color: var(--white);
}

.contact-card .eyebrow {
    opacity: .7;
}

.contact-action {
    align-self: end;
}

.contact-action p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .72);
}

.button-light {
    color: var(--blue);
    background: var(--white);
}

.contact-action small {
    display: block;
    margin-top: 13px;
    color: rgba(255, 255, 255, .55);
}

.site-footer {
    padding: 70px 0 26px;
    color: rgba(255, 255, 255, .53);
    background: var(--navy-deep);
    font-size: 13px;
}

.footer-grid {
    display: grid;
    padding-bottom: 55px;
    grid-template-columns: 1.7fr .65fr 1fr;
    gap: 70px;
}

.footer-logo {
    width: 166px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-grid p {
    max-width: 390px;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links strong {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    padding-top: 25px;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal.reveal-pending {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1000px) {
    .hero {
        padding-top: 145px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-visual {
        width: min(100%, 650px);
        margin-inline: auto;
    }

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

    .service-card:last-child,
    .project-card:last-child {
        grid-column: 1 / -1;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .section-heading > p {
        max-width: 640px;
    }

    .approach-grid {
        gap: 55px;
    }

    .contact-card {
        padding: 55px 48px;
        gap: 45px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, 620px);
    }

    .site-header,
    .site-header.scrolled {
        /* Keep the fixed mobile menu relative to the viewport, not the header. */
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background-color: var(--white);
    }

    .header-inner {
        min-height: 74px;
    }

    .brand {
        position: relative;
        z-index: 2;
    }

    .brand img {
        width: 158px;
    }

    .menu-ready .menu-toggle {
        display: block;
        position: relative;
        z-index: 3;
    }

    .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header:not(.menu-ready) {
        position: static;
    }

    .site-header:not(.menu-ready) .header-inner {
        flex-wrap: wrap;
        padding-block: 12px;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-ready .main-nav {
        display: flex;
        position: fixed;
        z-index: 1;
        inset: 0;
        padding: 120px 32px 50px;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 13px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--white);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .2s ease, transform .2s ease;
    }

    .menu-ready .main-nav.open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        flex-shrink: 0;
        padding: 13px 0;
        font-size: 20px;
    }

    .main-nav .nav-cta {
        margin-top: 10px;
        padding: 15px 20px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 125px 0 60px;
    }

    .hero h1 {
        font-size: clamp(42px, 12.5vw, 58px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-proof {
        gap: 9px;
    }

    .hero-proof div {
        padding-left: 10px;
    }

    .hero-proof span {
        display: none;
    }

    .hero-visual {
        min-height: 390px;
    }

    .code-window {
        top: 20px;
        transform: none;
    }

    .code-body {
        min-height: 290px;
        padding: 34px 25px;
        font-size: 12px;
    }

    .floating-chip {
        min-width: auto;
        padding: 8px 11px;
    }

    .chip-one {
        top: 0;
        left: -5px;
    }

    .chip-two {
        bottom: 24px;
        left: -5px;
    }

    .chip-three {
        right: -5px;
        bottom: -5px;
    }

    .scroll-hint {
        display: none;
    }

    .section {
        padding: 85px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .service-grid,
    .project-grid,
    .approach-grid,
    .contact-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .projects-page-hero {
        padding: 135px 0 72px;
    }

    .project-detail {
        padding: 60px 0;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-detail-brand {
        max-width: 380px;
    }

    .project-detail-content h2 {
        margin-top: 0;
    }

    .project-detail-columns {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .service-card:last-child,
    .project-card:last-child {
        grid-column: auto;
    }

    .service-card {
        min-height: auto;
    }

    .approach-grid {
        gap: 55px;
    }

    .approach-copy {
        position: static;
    }

    .contact-section {
        padding: 55px 0;
    }

    .contact-card {
        padding: 42px 27px;
        gap: 35px;
    }

    .footer-grid {
        gap: 36px;
    }
}

@media (max-width: 420px) {
    .hero-actions .button {
        width: 100%;
    }

    .hero-proof {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .hero-proof div {
        padding: 5px 0 5px 12px;
    }

    .hero-proof span {
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
