:root {
    color-scheme: light;
    --ink: #171d29;
    --muted: #657080;
    --orange: #ff6b00;
    --orange-light: #ff8a36;
    --navy: #111827;
    --line: #e6e8eb;
    --paper: #ffffff;
    --soft: #f5f6f7;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.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: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    color: #fff;
}

.navigation {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.035em;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand strong {
    font-weight: 750;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 38px;
    color: #d3d8e0;
    font-size: 13px;
    font-weight: 550;
}

.nav-menu > a:not(.nav-contact):hover {
    color: #fff;
}

.nav-contact {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 17px;
    padding: 0 17px;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 4px;
    color: #fff;
    transition: background-color .18s ease, border-color .18s ease;
}

.nav-contact:hover {
    border-color: var(--orange);
    background: var(--orange);
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    padding-top: 88px;
    color: #fff;
    background:
        radial-gradient(ellipse at 82% 52%, rgb(49 61 78 / 58%), transparent 42%),
        radial-gradient(ellipse at 4% 100%, rgb(255 107 0 / 11%), transparent 38%),
        var(--navy);
}

.hero-grid {
    display: grid;
    min-height: 530px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 7%;
    padding-top: 30px;
    padding-bottom: 28px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 550px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 23px;
    color: #858f9e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #b7bfca;
}

.eyebrow-mark {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgb(255 107 0 / 14%);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    max-width: 570px;
    margin-bottom: 22px;
    font-size: clamp(44px, 5.5vw, 72px);
    font-weight: 650;
    letter-spacing: -.065em;
    line-height: 1.04;
}

.hero h1 span,
.section-heading h2 span {
    color: var(--orange-light);
}

.hero-description {
    max-width: 475px;
    margin-bottom: 30px;
    color: #b9c0cb;
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 650;
    transition: background-color .18s ease, transform .18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--orange);
}

.button-primary:hover {
    background: #e85f00;
}

.text-link {
    color: #fff;
    font-size: 13px;
    font-weight: 550;
}

.text-link span {
    margin-left: 5px;
    color: var(--orange-light);
}

.hero-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 60px;
}

.note-line {
    width: 28px;
    height: 1px;
    margin-top: 12px;
    background: var(--orange);
}

.hero-note p {
    margin: 0;
    color: #9da6b3;
    font-size: 12px;
    line-height: 1.6;
}

.hero-visual {
    position: relative;
    padding: 15px 0 20px 15px;
}

.visual-glow {
    position: absolute;
    inset: 12% -12% 6% 6%;
    border-radius: 50%;
    background: rgb(255 107 0 / 12%);
    filter: blur(72px);
}

.app-window {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 32px 90px rgb(0 0 0 / 32%);
    transform: rotate(1.3deg);
}

.window-bar {
    display: flex;
    height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: #657080;
    font-size: 10px;
}

.window-dots {
    display: flex;
    gap: 4px;
}

.window-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e6e8eb;
}

.window-dots i:first-child {
    background: #ff9a79;
}

.window-status {
    color: #657080;
    font-size: 9px;
}

.window-status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: #47b881;
}

.app-window > img {
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: cover;
    object-position: top;
    background: #eef0f2;
}

.window-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 17px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 650;
}

.caption-arrow {
    color: var(--orange);
    font-size: 17px;
}

.floating-label {
    position: absolute;
    z-index: 2;
    right: -20px;
    bottom: 3px;
    padding: 13px 17px;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 5px;
    color: #e5e8ed;
    background: #222c3b;
    box-shadow: 0 12px 30px rgb(0 0 0 / 24%);
    font-size: 11px;
}

.floating-label span {
    margin-right: 10px;
    color: var(--orange-light);
    font-size: 10px;
}

.visual-coordinate {
    position: absolute;
    top: 0;
    right: 4px;
    color: #707b8b;
    font-size: 9px;
    letter-spacing: .08em;
}

.hero-bottom {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgb(255 255 255 / 13%);
    color: #909aa9;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.capability-list {
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 54px);
    color: #d4d8df;
    letter-spacing: 0;
    text-transform: none;
}

.hero-bottom > a {
    color: var(--orange-light);
    font-size: 20px;
}

.section {
    padding: 112px 0;
}

.services {
    background: #fff;
}

.section-heading h2,
.contact-content h2 {
    margin-bottom: 18px;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 630;
    letter-spacing: -.06em;
    line-height: 1.12;
}

.section-heading h2 span {
    color: var(--orange);
}

.section-intro {
    max-width: 420px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 55px;
}

.service-card {
    min-height: 285px;
    padding: 25px 26px 23px;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service-card:hover {
    border-color: #f5c9a9;
    box-shadow: 0 18px 45px rgb(23 29 41 / 7%);
    transform: translateY(-3px);
}

.card-number {
    color: #8b94a0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.service-icon {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    margin: 24px 0 18px;
    border: 1px solid #ffdec8;
    border-radius: 8px;
    color: var(--orange);
}

.service-icon svg {
    display: block;
    width: 36px;
    height: 36px;
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.025em;
}

.service-card p {
    min-height: 71px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.card-link,
.external-link {
    color: #252c37;
    font-size: 11px;
    font-weight: 700;
}

.card-link span,
.external-link span {
    margin-left: 5px;
    color: var(--orange);
}

.work-section {
    background: var(--soft);
}

.work-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.work-heading .section-intro {
    max-width: 340px;
    padding-bottom: 8px;
}

.filters {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin: 39px 0 27px;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}

.filter-button {
    flex: 0 0 auto;
    min-height: 37px;
    padding: 0 15px;
    border: 1px solid #dfe2e6;
    border-radius: 3px;
    background: transparent;
    color: #657080;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.filter-button:hover,
.filter-button.is-active {
    border-color: var(--navy);
    color: #fff;
    background: var(--navy);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    align-items: start;
}

.project-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e8e9eb;
    border-radius: 6px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.project-card:hover {
    box-shadow: 0 18px 48px rgb(23 29 41 / 8%);
    transform: translateY(-3px);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #edf0f2;
}

.project-image > img {
    width: 100%;
    aspect-ratio: 1.75;
    object-fit: cover;
    object-position: top center;
    transition: transform .45s ease;
}

.project-card:hover .project-image > img {
    transform: scale(1.025);
}

.project-index {
    position: absolute;
    top: 11px;
    left: 11px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 3px;
    color: #fff;
    background: rgb(17 24 39 / 62%);
    font-size: 10px;
    font-weight: 700;
}

.project-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 10px 0;
}

.project-type {
    margin-bottom: 5px;
    color: var(--orange);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -.035em;
}

.project-arrow {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--orange);
    font-size: 15px;
}

.project-description {
    margin: 9px 10px 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.project-details {
    margin: 0 10px 10px;
    padding-top: 12px;
    border-top: 1px solid #edf0f2;
}

.project-details summary {
    width: fit-content;
    color: #495362;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    list-style: none;
}

.project-details summary::-webkit-details-marker {
    display: none;
}

.project-details summary::after {
    content: "+";
    margin-left: 8px;
    color: var(--orange);
    font-size: 14px;
}

.project-details[open] summary::after {
    content: "−";
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.detail-gallery img {
    width: 100%;
    aspect-ratio: 1.5;
    border: 1px solid #e8e9eb;
    border-radius: 3px;
    background: #f1f2f3;
    object-fit: cover;
    object-position: top;
}

.project-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 10px 10px;
    padding-top: 12px;
    border-top: 1px solid #edf0f2;
}

.project-links .project-details {
    margin: 0;
    padding: 0;
    border: 0;
}

.external-link {
    flex: 0 0 auto;
}

.approach-section {
    padding: 112px 0;
    background: #fff;
}

.approach-grid {
    display: grid;
    grid-template-columns: .9fr 1fr;
    align-items: center;
    gap: 12%;
}

.approach-steps {
    border-top: 1px solid var(--line);
}

.approach-step {
    display: grid;
    grid-template-columns: 43px 1fr;
    gap: 14px;
    padding: 23px 0;
    border-bottom: 1px solid var(--line);
}

.approach-step > span {
    padding-top: 3px;
    color: var(--orange);
    font-size: 10px;
    font-weight: 750;
}

.approach-step h3 {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 650;
}

.approach-step p {
    max-width: 370px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.contact-section {
    position: relative;
    overflow: hidden;
    padding: 91px 0 96px;
    color: #fff;
    background:
        radial-gradient(ellipse at 88% 110%, rgb(255 107 0 / 16%), transparent 34%),
        var(--navy);
}

.contact-section::after {
    position: absolute;
    top: -110px;
    right: 5%;
    width: 340px;
    height: 340px;
    border: 1px solid rgb(255 255 255 / 7%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-content .eyebrow {
    color: #a4adba;
}

.contact-content h2 {
    margin-bottom: 14px;
}

.contact-content h2 span {
    color: var(--orange-light);
}

.contact-content > p:not(.eyebrow) {
    margin-bottom: 25px;
    color: #b6bec9;
    font-size: 13px;
}

.button-light {
    color: var(--navy);
    background: #fff;
}

.button-light:hover {
    background: #f0f1f3;
}

.site-footer {
    color: #aab2bd;
    background: #0c121d;
}

.footer-content {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    font-size: 13px;
}

.footer-brand img {
    width: 30px;
    height: 30px;
}

.footer-content p,
.back-to-top {
    margin: 0;
    font-size: 10px;
}

.back-to-top:hover {
    color: #fff;
}

@media (min-width: 1500px) {
    .hero {
        min-height: 760px;
    }

    .hero-grid {
        min-height: 590px;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 0;
    }

    .hero-grid {
        min-height: 550px;
        grid-template-columns: 1.04fr .96fr;
        gap: 4%;
    }

    .hero h1 {
        font-size: clamp(43px, 6vw, 60px);
    }

    .floating-label {
        right: -5px;
    }

    .section,
    .approach-section {
        padding: 88px 0;
    }

    .service-grid {
        gap: 12px;
    }

    .service-card {
        padding-inline: 19px;
    }

    .approach-grid {
        gap: 7%;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 72px;
    }

    .container {
        width: min(100% - 38px, var(--container));
    }

    .navigation {
        min-height: 72px;
    }

    .brand {
        gap: 8px;
        font-size: 14px;
    }

    .brand img {
        width: 33px;
        height: 33px;
    }

    .menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgb(255 255 255 / 25%);
        border-radius: 4px;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle > span:not(.sr-only) {
        width: 17px;
        height: 1.5px;
        background: #fff;
        transition: transform .18s ease;
    }

    .menu-toggle[aria-expanded="true"] > span:nth-last-child(2) {
        transform: translateY(3.25px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] > span:last-child {
        transform: translateY(-3.25px) rotate(-45deg);
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        right: 19px;
        left: 19px;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 8px 17px;
        border: 1px solid rgb(255 255 255 / 12%);
        border-radius: 5px;
        background: #1b2432;
        box-shadow: 0 18px 38px rgb(0 0 0 / 26%);
    }

    .nav-menu.is-open {
        display: flex;
        flex-direction: column;
    }

    .nav-menu > a:not(.nav-contact) {
        padding: 12px 0;
        border-bottom: 1px solid rgb(255 255 255 / 9%);
    }

    .nav-contact {
        justify-content: space-between;
        margin: 10px 0 5px;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 72px;
        padding-bottom: 42px;
    }

    .hero h1 {
        max-width: 480px;
        font-size: clamp(44px, 12vw, 65px);
    }

    .hero-description {
        max-width: 430px;
        font-size: 14px;
    }

    .hero-note {
        margin-top: 34px;
    }

    .hero-visual {
        width: min(100% - 10px, 520px);
        justify-self: center;
        padding-left: 5px;
    }

    .floating-label {
        right: -5px;
    }

    .hero-bottom {
        min-height: 70px;
    }

    .hero-bottom > span,
    .hero-bottom > a {
        display: none;
    }

    .capability-list {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        font-size: 9px;
    }

    .section,
    .approach-section {
        padding: 75px 0;
    }

    .eyebrow {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .section-heading h2,
    .contact-content h2 {
        font-size: clamp(36px, 9.5vw, 48px);
    }

    .section-intro {
        font-size: 13px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 34px;
    }

    .service-card {
        min-height: 0;
        padding: 21px;
    }

    .service-icon {
        margin: 17px 0 13px;
    }

    .service-card p {
        min-height: 0;
        max-width: 410px;
        margin-bottom: 13px;
    }

    .work-heading {
        display: block;
    }

    .work-heading .section-intro {
        margin-top: 18px;
        padding: 0;
    }

    .filters {
        margin-top: 26px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-info h3 {
        font-size: 17px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .approach-step {
        padding: 19px 0;
    }

    .contact-section {
        padding: 74px 0 78px;
    }

    .footer-content {
        min-height: 0;
        flex-wrap: wrap;
        padding-top: 21px;
        padding-bottom: 21px;
    }

    .footer-content p {
        order: 1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
