:root {
    --bg: #fff;
    --surface: #f8fafc;
    --surface-2: #eef2f7;
    --text: #111827;
    --muted: #6b7280;
    --line: #dbe2ea;
    --accent: #4169e1;
    --accent-soft: #e9efff;
    --max: 1180px;
    --radius: 18px;
    --shadow: 0 16px 45px rgba(17, 24, 39, .07)
}

:root.dark {
    --bg: #0f172a;
    --surface: #111827;
    --surface-2: #172033;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: #293548;
    --accent: #4169e1;
    --accent-soft: #172b61;
    --shadow: 0 18px 55px rgba(0, 0, 0, .25)
}

@font-face {
    font-family: Raleway;
    src: url(raleway.woff2);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: transparent;
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Raleway, system-ui;
    line-height: 1.6;
    min-width: 375px;
}

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

button {
    font: inherit
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    background: var(--text);
    color: var(--bg);
    padding: 8px 12px;
    z-index: 99
}

.skip-link:focus {
    top: 12px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line)
}

.contact-bar {
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted)
}

.contact-bar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.contact-bar-left,
.contact-links {
    display: flex;
    align-items: center;
    gap: 18px
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 7px
}

.contact-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block
}

.contact-links a {
    color: var(--muted);
    transition: color .2s ease
}

.contact-links a:hover {
    color: var(--text)
}

.nav-wrap {
    height: 65px;
    display: flex;
    align-items: center;
    gap: 30px
}

.brand {
    font-size: 20px;
    font-weight: 750;
    /* letter-spacing: -.04em; */
    margin-right: auto
}

.brand span {
    color: var(--accent)
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--muted)
}

.nav a {
    transition: color .3s ease;
}

.nav a:hover {
    color: var(--text)
}

.theme-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 7px 11px;
    display: flex;
    gap: 7px;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    transition: all .3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background-color: var(--accent);
    color: #fff;
}

.theme-icon {
    font-size: 15px
}

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
    padding: 92px 0
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase
}

.hero h1 {
    font-size: clamp(46px, 6.2vw, 78px);
    line-height: 1.02;
    letter-spacing: -.055em;
    max-width: 760px;
    margin: 0 0 26px
}

.hero-text {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 610px
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease
}

.button-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.button-primary:hover {
    filter: brightness(.94);
    transform: translateY(-1px)
}

.button-secondary {
    background: transparent
}

.button-secondary:hover {
    background: var(--surface)
}

.hero-visual {
    min-height: 440px;
    position: relative;
    border-left: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 34px
}

.code-card {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 34px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.code-card div {
    display: flex;
    gap: 8px
}

.code-card div span {
    border: 1px solid var(--line);
    color: var(--text);
    padding: 5px 9px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .08em
}

.code-card strong {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -.05em
}

.code-card small {
    font-size: 12px;
    color: var(--muted)
}

.section {
    padding: 105px 0;
    border-bottom: 1px solid var(--line)
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px
}

.section h2 {
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.06;
    letter-spacing: -.045em;
    margin: 0;
    max-width: 650px
}

.section-copy {
    color: var(--muted);
    font-size: 16px;
    max-width: 590px
}

.section-copy p {
    margin: 0 0 20px
}

.section-copy strong {
    color: var(--text)
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: end;
    margin-bottom: 42px
}

.section-heading>p {
    max-width: 360px;
    color: var(--muted);
    margin: 0
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}

.project {
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    min-width: 0
}

.project-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr
}

.project-shot {
    display: block;
    position: relative;
    min-height: 290px;
    overflow: hidden;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line)
}

.project-featured .project-shot {
    min-height: 390px
}

.project-shot img {
    width: 100%;
    height: 100%;
    min-height: 290px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.project-featured .project-shot img {
    min-height: 390px
}

.shot-note {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    background: rgba(17, 24, 39, .88);
    color: #fff;
    font-size: 10px;
    letter-spacing: .04em
}

.project-shot:hover img {
    transform: scale(1.015);
    transition: transform .35s ease
}

.project-info {
    padding: 26px 28px 30px
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.project h3 {
    font-size: 27px;
    letter-spacing: -.035em;
    margin: 26px 0 10px
}

.project p {
    color: var(--muted);
    margin: 0;
    max-width: 550px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 22px 0
}

.tags span {
    border: 1px solid var(--line);
    padding: 4px 8px;
    font-size: 10px;
    color: var(--muted)
}

.text-link {
    font-size: 13px;
    font-weight: 750;
    color: var(--accent)
}

.services {
    background: var(--surface)
}

.compact {
    margin-bottom: 45px
}

.service-list {
    border-top: 1px solid var(--line)
}

.service-list article {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 25px;
    padding: 29px 0;
    border-bottom: 1px solid var(--line)
}

.service-list article>span,
.process-steps span {
    font-size: 12px;
    color: var(--accent);
    font-weight: 800
}

.service-list h3,
.process-steps h3 {
    margin: 0 0 5px;
    font-size: 20px;
    letter-spacing: -.02em
}

.service-list p,
.process-steps p {
    margin: 0;
    color: var(--muted);
    max-width: 650px
}

.process-grid {
    align-items: start
}

.process-steps {
    border-top: 1px solid var(--line)
}

.process-steps>div {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line)
}

.process-steps>div span {
    grid-row: span 2
}

.process-steps p {
    grid-column: 2
}

.contact {
    padding: 90px 0
}

.contact-box {
    border: 1px solid var(--line);
    padding: 58px 60px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    background: var(--surface)
}

.contact-box h2 {
    margin-bottom: 18px
}

.contact-box p:last-child {
    color: var(--muted);
    margin: 0;
    max-width: 520px
}

.footer {
    padding: 25px 0;
    color: var(--muted);
    font-size: 12px
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.footer p {
    margin: 0
}

.footer div {
    display: flex;
    gap: 20px
}

.footer a:hover {
    color: var(--text)
}

@media(max-width:850px) {
    .contact-bar-left {
        display: none
    }

    .contact-bar-inner {
        justify-content: center
    }

    .nav {
        display: none
    }

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

    .hero {
        min-height: auto
    }

    .hero-grid {
        padding: 70px 0
    }

    .hero-visual {
        border-left: 0;
        border-top: 1px solid var(--line);
        min-height: 340px;
        padding: 24px 0
    }

    .projects {
        grid-template-columns: 1fr
    }

    .project-featured {
        grid-column: auto;
        display: flex
    }

    .project-featured .project-shot {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        min-height: 300px
    }

    .project-featured .project-shot img {
        min-height: 300px
    }

    .section-heading {
        display: block
    }

    .section-heading>p {
        margin-top: 18px
    }

    .contact-box {
        display: block;
        padding: 40px
    }

    .contact-box .button {
        margin-top: 28px
    }

    .footer-wrap {
        display: block
    }

    .footer div {
        margin-top: 12px
    }

    .hero h1 {
        font-size: clamp(44px, 12vw, 65px)
    }
}

@media(max-width:520px) {
    .container {
        width: min(var(--max), calc(100% - 28px))
    }

    .contact-bar {
        font-size: 10px
    }

    .contact-links {
        gap: 12px
    }

    .contact-links a:first-child {
        max-width: 185px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .nav-wrap {
        height: 64px
    }

    .theme-toggle {
        width: 39.5px;
        height: 39.5px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .theme-label {
        display: none
    }

    .hero-grid {
        padding: 58px 0
    }

    .hero-text {
        font-size: 16px
    }

    .hero-actions {
        flex-wrap: wrap
    }

    .button {
        width: 100%
    }

    .section {
        padding: 72px 0
    }

    .service-list article {
        grid-template-columns: 42px 1fr
    }

    .project-info {
        padding: 22px
    }

    .contact-box {
        padding: 30px 24px
    }

    .footer-wrap {
        font-size: 11px
    }
}