@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #12282d;
    --cream: #f6f4ee;
    --ink: #213234;
    --muted: #647170;
    --orange: #ce7849;
    --line: #d9ddd4
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 16px/1.7 'DM Sans', Arial, sans-serif
}

h1,
h2,
h3,
p {
    margin: 0
}

h1,
h2,
h3 {
    font-family: Manrope, Arial, sans-serif
}

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

button {
    font: inherit;
    cursor: pointer
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 5px
}

header {
    background: var(--navy);
    color: #edece5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 27px max(6%, calc((100vw - 1280px)/2));
    border-bottom: 1px solid #33474a
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 2px;
    font-size: 15px;
    white-space: nowrap
}

.brand b {
    font-weight: 400;
    color: #a3b3af
}

.brand svg {
    width: 37px;
    fill: var(--orange)
}

.foxline {
    fill: none;
    stroke: var(--navy);
    stroke-width: 2
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 13px
}

nav a:hover {
    color: #e59a71
}

.nav-contact {
    border-left: 1px solid #425557;
    padding-left: 30px
}

.nav-contact span {
    margin-left: 12px;
    color: #e59a71
}

.hero {
    background: var(--navy);
    color: #eaece4;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 55px;
    padding: 86px max(6%, calc((100vw - 1280px)/2)) 79px;
    align-items: center
}

.eyebrow {
    font-family: monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.3px;
    color: #a5bab5;
    display: flex;
    align-items: center;
    gap: 10px
}

.eyebrow>span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange)
}

h1 {
    font-size: clamp(38px, 4.1vw, 61px);
    font-weight: 500;
    letter-spacing: -2.6px;
    line-height: 1.14;
    margin: 25px 0
}

h1 em {
    font-style: normal;
    color: #df9367
}

.intro {
    color: #b7c3bf;
    font-size: 16px;
    max-width: 470px;
    line-height: 1.8
}

.button {
    display: inline-flex;
    gap: 40px;
    align-items: center;
    background: #db9267;
    color: #172a2e;
    padding: 12px 21px;
    border: 0;
    font-size: 13px;
    font-weight: 700;
    margin-top: 29px
}

.button:hover {
    background: #edaa80
}

.hero-caption {
    font-size: 10px;
    letter-spacing: 1px;
    color: #849b96;
    margin-top: 24px
}

.system-art {
    border: 1px solid #3c5355;
    background: #172f34;
    transform: rotate(-2deg)
}

.art-top,
.art-bottom {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    font-family: monospace;
    letter-spacing: 1px;
    font-size: 8px;
    color: #9fb4ae
}

.art-top {
    border-bottom: 1px solid #3c5355
}

.art-bottom {
    border-top: 1px solid #3c5355
}

.system-art svg {
    width: 100%;
    display: block
}

.live-dot {
    color: #df9367
}

.discipline-strip {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 6%;
    background: #eaece2;
    font-family: monospace;
    letter-spacing: 1.4px;
    font-size: 10px;
    color: #5d6b64;
    border-bottom: 1px solid #d9ddd4
}

.section {
    padding: 80px max(6%, calc((100vw - 1280px)/2))
}

.dark {
    color: #67766c
}

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

.section-heading>p {
    max-width: 310px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8
}

h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    letter-spacing: -1.3px;
    line-height: 1.25
}

.section-heading h2 {
    margin-top: 16px
}

.feature-project {
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    background: #fcfbf6
}

.project-visual {
    background: #e5e9df;
    padding: 40px;
    display: flex;
    align-items: center
}

.window {
    width: 100%;
    border: 1px solid #c2ccc2;
    background: #f6f6ef;
    box-shadow: 0 15px 35px #28443c0a
}

.window-bar {
    font: 8px monospace;
    letter-spacing: 1px;
    display: flex;
    gap: 22px;
    padding: 14px;
    border-bottom: 1px solid #d6dbd1;
    color: #62736b
}

.window-dots {
    color: #acb8ac;
    font-size: 8px;
    letter-spacing: 3px
}

.coordinate-art {
    position: relative;
    height: 270px;
    overflow: hidden;
    background-image: linear-gradient(#dce2d340 1px, transparent 1px), linear-gradient(90deg, #dce2d340 1px, transparent 1px);
    background-size: 27px 27px
}

.orbit {
    border: 1px solid #bac8b9;
    border-radius: 50%;
    width: 220px;
    height: 220px;
    position: absolute;
    top: 10px;
    left: calc(50% - 110px)
}

.orbit-two {
    width: 150px;
    height: 150px;
    top: 45px;
    left: calc(50% - 75px)
}

.crosshair:before,
.crosshair:after {
    content: '';
    position: absolute;
    background: #c5cfc0;
    top: 119px;
    left: 10%;
    width: 80%;
    height: 1px
}

.crosshair:after {
    transform: rotate(90deg)
}

.axis {
    position: absolute;
    color: #839682;
    font: 10px monospace
}

.axis-n {
    top: 15px;
    left: 50%
}

.axis-e {
    right: 14%;
    top: 113px
}

.pin {
    position: absolute;
    top: 89px;
    left: calc(50% - 14px);
    width: 28px
}

.pin svg {
    width: 100%;
    fill: #ce7849;
    filter: drop-shadow(0 4px 4px #ce784940)
}

.pin circle {
    fill: #f6f6ef
}

.coord-label {
    position: absolute;
    bottom: 15px;
    text-align: center;
    width: 100%;
    font: 8px/1.9 monospace;
    letter-spacing: 1.5px;
    color: #839382
}

.coord-label b {
    color: #385647;
    font-weight: 400
}

.visual-foot {
    display: flex;
    justify-content: space-between;
    padding: 13px;
    font: 7px monospace;
    letter-spacing: 1px;
    border-top: 1px solid #d6dbd1;
    color: #6e806e
}

.visual-foot span {
    font-size: 6px
}

.feature-copy {
    padding: 42px
}

.project-number,
.project-meta {
    font: 9px monospace;
    letter-spacing: 1.5px;
    color: #6b786d
}

.feature-copy h3 {
    font-size: 37px;
    letter-spacing: -1.2px;
    margin: 13px 0 4px;
    font-weight: 500
}

.project-subtitle {
    font-size: 15px;
    margin-bottom: 19px;
    color: #304b43
}

.feature-copy>p:not(.project-subtitle) {
    font-size: 13px;
    color: #647368;
    line-height: 1.85
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px
}

.tags span {
    font: 9px monospace;
    padding: 5px 8px;
    background: #edf0e7;
    color: #59705b;
    border: 1px solid #dbe2d5
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    border: 0;
    border-bottom: 1px solid #a8b3a2;
    background: none;
    padding: 0 0 7px;
    color: #314b40;
    font-size: 12px;
    font-weight: 600;
    margin-top: 25px
}

.text-link:hover {
    color: #a4532d;
    border-color: #a4532d
}

.secondary-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px
}

.secondary-projects>article {
    border: 1px solid var(--line)
}

.mini-art {
    height: 215px;
    padding: 23px 30px;
    position: relative;
    overflow: hidden;
    background: #e6e9e1
}

.mini-art>span,
.mini-art>small {
    font: 8px monospace;
    letter-spacing: 1.6px;
    color: #6e8074
}

.mini-art>small {
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 7px
}

.code-art pre {
    font: 16px/1.7 monospace;
    margin: 23px 20px;
    color: #34534b
}

.code-art i {
    color: #a96746;
    font-style: normal
}

.hardware-art {
    background: #dde5dd
}

.circuit {
    height: 130px;
    position: relative;
    width: 220px;
    margin: auto
}

.chip {
    position: absolute;
    left: 75px;
    top: 25px;
    width: 74px;
    height: 74px;
    border: 5px double #81998a;
    background: #213e37;
    color: #dfe8dd;
    text-align: center;
    font: 16px monospace;
    padding-top: 12px;
    box-shadow: 0 0 0 8px #bdccbc
}

.chip span {
    display: block;
    font: 8px monospace;
    letter-spacing: 4px;
    margin-top: 8px
}

.circuit-line {
    position: absolute;
    border: 1px solid #8fa78f;
    width: 80px;
    height: 40px
}

.circuit-line.one {
    left: 0;
    top: 40px;
    border-left: 0;
    border-bottom: 0
}

.circuit-line.two {
    right: -10px;
    top: 50px;
    border-right: 0;
    border-top: 0
}

.circuit-line.three {
    left: 40px;
    top: 80px;
    width: 40px;
    height: 50px;
    border-bottom: 0;
    border-right: 0
}

.small-project-copy {
    padding: 29px
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 8px
}

.status {
    color: #9d744c;
    letter-spacing: 1px
}

.small-project-copy h3 {
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -.7px;
    margin: 18px 0 12px
}

.small-project-copy p {
    font-size: 13px;
    color: var(--muted)
}

.approach {
    border-top: 1px solid var(--line);
    background: #edeee6
}

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

.approach-grid article {
    border-top: 1px solid #bcc7b8;
    padding-top: 19px
}

.approach-grid article>span {
    font: 12px monospace;
    color: #a16c48
}

.approach-grid h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 22px 0 12px;
    letter-spacing: -.4px
}

.approach-grid p {
    font-size: 13px;
    color: #657366;
    line-height: 1.9
}

.about {
    background: var(--navy);
    color: #eaece3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 95px
}

.about h2 {
    margin-top: 23px;
    font-size: 40px
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 55px;
    color: #a9bdb4;
    font-size: 12px
}

.about-signature svg {
    width: 47px;
    fill: #cd7b4c
}

.about-copy .lead {
    font-size: 20px;
    line-height: 1.6;
    color: #e1e5da
}

.about-copy>p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #aabbaf
}

.experience-list {
    border-top: 1px solid #42594e;
    margin-top: 30px;
    padding-top: 20px;
    display: grid;
    gap: 15px
}

.experience-list span {
    font: 8px monospace;
    letter-spacing: 1.6px;
    color: #d5956b
}

.experience-list p {
    font-size: 12px;
    color: #b4c2b7;
    margin-top: 4px
}

.contact {
    text-align: center;
    max-width: 100%;
    padding-top: 85px;
    padding-bottom: 85px
}

.contact .eyebrow {
    justify-content: center
}

.contact h2 {
    font-size: 42px;
    margin: 18px 0
}

.contact>p:not(.eyebrow) {
    max-width: 510px;
    margin: auto;
    color: var(--muted);
    font-size: 15px
}

.contact-note {
    font-size: 11px;
    color: #73806f;
    margin: 25px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.note-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b78660
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin: 0 6%;
    padding: 26px 0;
    border-top: 1px solid var(--line)
}

footer .brand {
    font-size: 11px
}

footer p {
    font-size: 11px;
    color: #6e7b6b
}

footer>span {
    font: 8px monospace;
    letter-spacing: 1.2px;
    color: #7d8677
}

dialog {
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--ink);
    width: min(680px, 90vw);
    max-height: 85vh;
    padding: 46px
}

dialog::backdrop {
    background: #0a202cba;
    backdrop-filter: blur(5px)
}

dialog h2 {
    margin: 20px 0
}

dialog p {
    font-size: 14px;
    line-height: 1.85;
    margin-top: 16px
}

dialog h3 {
    font-size: 17px;
    margin-top: 25px
}

dialog ul {
    font-size: 14px;
    padding-left: 20px
}

.close-dialog {
    position: absolute;
    top: 10px;
    right: 17px;
    background: none;
    border: 0;
    font-size: 27px;
    color: #627061
}

.skip {
    position: absolute;
    top: -80px;
    background: var(--cream);
    padding: 10px;
    z-index: 5
}

.skip:focus {
    top: 10px
}

@media(min-width:1600px) {

    header,
    .hero,
    .section {
        padding-left: calc((100vw - 1280px)/2);
        padding-right: calc((100vw - 1280px)/2)
    }
}

@media(max-width:900px) {
    header {
        padding: 22px 5%
    }

    nav {
        gap: 17px
    }

    .nav-contact {
        padding-left: 16px
    }

    .hero {
        gap: 30px;
        padding: 65px 5%
    }

    h1 {
        letter-spacing: -1.5px
    }

    .section {
        padding: 60px 5%
    }

    .project-visual {
        padding: 22px
    }

    .feature-copy {
        padding: 27px
    }

    .about {
        gap: 45px
    }

    .about h2 {
        font-size: 34px
    }

    .project-meta {
        flex-direction: column;
        gap: 7px
    }

    .discipline-strip {
        font-size: 8px;
        padding: 20px 5%
    }

    .approach-grid {
        gap: 25px
    }
}

@media(max-width:650px) {
    header {
        flex-wrap: wrap;
        gap: 21px
    }

    .brand {
        font-size: 12px
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: 11px
    }

    .nav-contact {
        padding-left: 12px
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 45px;
        padding-bottom: 45px;
        gap: 40px
    }

    h1 {
        font-size: 43px
    }

    .intro {
        font-size: 15px
    }

    .system-art {
        width: 90%;
        margin: auto;
        transform: rotate(-1deg)
    }

    .discipline-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 15px
    }

    .section-heading {
        display: block
    }

    .section-heading>p {
        margin-top: 20px;
        max-width: 100%
    }

    .feature-project {
        grid-template-columns: 1fr
    }

    .project-visual {
        padding: 24px
    }

    .feature-copy {
        padding: 28px
    }

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

    .project-meta {
        flex-direction: row
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .approach-grid h3 {
        margin-top: 14px
    }

    .about {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .about-signature {
        margin-top: 25px
    }

    .contact h2 {
        font-size: 33px
    }

    .contact-note {
        font-size: 10px;
        align-items: start
    }

    .contact-note .note-dot {
        flex-shrink: 0;
        margin-top: 6px
    }

    footer {
        flex-wrap: wrap;
        gap: 13px
    }

    footer>span {
        width: 100%
    }

    dialog {
        padding: 35px 23px
    }

    .section {
        padding-top: 52px;
        padding-bottom: 52px
    }
}

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

.source-link {
    margin-left: 20px
}

.profile-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px
}

.linkedin-button {
    background: transparent;
    border: 1px solid #a8b3a2;
    color: var(--ink)
}

.linkedin-button:hover {
    background: #eaece2
}

.footer-profile {
    font-size: 11px;
    color: #526559
}

.footer-profile:hover {
    color: var(--orange)
}

.app-gallery {
    gap: 20px;
    padding: 35px;
    justify-content: center;
    overflow: hidden;
    min-height: 420px
}

.app-gallery img {
    width: 43%;
    height: 365px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px #102a2825)
}

.app-gallery img:nth-child(2) {
    transform: translateY(15px)
}

.real-project-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    padding: 20px
}

.real-project-art img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.qbplay-art {
    background: #182a34
}

.stm32-art {
    background: #152c30;
    padding: 0
}

.stm32-art img {
    object-fit: cover
}

.video-badge {
    position: absolute;
    bottom: 15px;
    left: 18px !important;
    color: #fff !important;
    background: #11272fe0;
    padding: 7px 10px;
    font: 9px monospace !important
}

.more-work {
    margin-top: 50px;
    border-top: 1px solid var(--line);
    padding-top: 30px
}

.more-work>div {
    margin-bottom: 22px
}

.more-work h3 {
    font-size: 25px;
    font-weight: 500;
    margin-top: 10px
}

.more-work>a {
    display: grid;
    grid-template-columns: 150px 1fr 20px;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    align-items: center
}

.more-work b {
    font-size: 14px;
    font-weight: 500
}

.more-work span {
    font-size: 12px;
    color: var(--muted)
}

.more-work i {
    font-style: normal;
    color: var(--orange)
}

.more-work>a:hover b {
    color: #a4532d
}

.case-hero {
    background: var(--navy);
    color: var(--cream);
    padding-top: 45px;
    padding-bottom: 55px
}

.back-link {
    display: inline-block;
    color: #b8c6c0;
    font-size: 12px;
    margin-bottom: 40px
}

.case-hero h1 {
    margin-top: 18px;
    margin-bottom: 18px
}

.case-lede {
    font-size: 21px;
    color: #b9c9c2;
    max-width: 650px
}

.case-hero .tags span {
    background: #243d43;
    color: #bcd2c8;
    border-color: #465c5d
}

.case-showcase {
    padding: 45px 6%;
    background: #e5e9df;
    display: flex;
    justify-content: center;
    gap: 50px
}

.case-showcase figure {
    margin: 0
}

.phone-showcase img {
    width: auto;
    height: 500px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 15px #14322f20)
}

.case-showcase figcaption {
    font-size: 11px;
    color: #617269;
    margin-top: 17px;
    text-align: center;
    max-width: 750px
}

.desktop-showcase {
    background: #1d333b
}

.desktop-showcase img {
    width: 760px;
    max-width: 100%;
    height: auto;
    display: block
}

.desktop-showcase figcaption {
    color: #b8c8c0
}

.video-showcase video {
    width: 850px;
    max-width: 100%;
    height: auto;
    display: block;
    background: #11272d
}

.case-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    gap: 65px;
    justify-content: center
}

.case-body aside {
    border-top: 1px solid var(--line);
    padding-top: 20px
}

.case-body aside>p:not(.eyebrow) {
    font-size: 13px;
    color: var(--muted);
    margin: 20px 0
}

.case-body aside a {
    display: block;
    font-size: 11px;
    color: #536a5c;
    margin: 17px 0
}

.case-body article h2 {
    margin: 16px 0 22px
}

.case-body article h3 {
    font-size: 22px;
    font-weight: 500;
    margin: 36px 0 14px;
    letter-spacing: -.5px
}

.case-body article>p:not(.eyebrow) {
    font-size: 15px;
    color: #536760;
    line-height: 1.9;
    margin: 16px 0
}

.case-body strong {
    font-weight: 600;
    color: var(--ink)
}

.flow-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 26px 0;
    background: #e9ece2;
    padding: 20px
}

.flow-summary span {
    font: 10px/1.9 monospace;
    color: #6c7a6a;
    border-left: 2px solid var(--orange);
    padding-left: 12px
}

.flow-summary b {
    font: 13px 'DM Sans', sans-serif;
    color: #29483d
}

.case-note {
    font-size: 11px;
    line-height: 1.9;
    color: #71806e;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 36px
}

.next-project {
    background: #edeee6;
    padding-top: 35px;
    padding-bottom: 40px
}

.next-project>a {
    display: flex;
    justify-content: space-between;
    font: 26px Manrope, sans-serif;
    margin-top: 20px;
    letter-spacing: -.7px
}

.next-project>a span {
    color: var(--orange)
}

@media(max-width:900px) {
    .case-body {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 35px
    }

    .app-gallery {
        padding: 22px;
        gap: 12px
    }

    .app-gallery img {
        height: 310px
    }

    .real-project-art {
        height: 220px
    }
}

@media(max-width:650px) {
    .app-gallery {
        min-height: 340px;
        gap: 15px
    }

    .app-gallery img {
        height: 290px
    }

    .more-work>a {
        grid-template-columns: 1fr 20px;
        gap: 6px
    }

    .more-work span {
        grid-column: 1
    }

    .more-work i {
        grid-column: 2;
        grid-row: 1/3
    }

    .case-lede {
        font-size: 18px
    }

    .case-showcase {
        gap: 16px;
        padding: 30px 5%
    }

    .phone-showcase figure {
        width: 48%
    }

    .phone-showcase img {
        height: auto;
        width: 100%
    }

    .case-showcase figcaption {
        font-size: 9px
    }

    .case-body {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .case-body aside {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center
    }

    .case-body aside>p:not(.eyebrow) {
        display: none
    }

    .case-body aside a {
        margin: 0;
        font-size: 10px
    }

    .flow-summary {
        padding: 15px 10px;
        gap: 8px
    }

    .flow-summary span {
        font-size: 8px;
        padding-left: 7px
    }

    .flow-summary b {
        font-size: 11px
    }

    .next-project>a {
        font-size: 22px
    }
}