*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --bg: #0D0F12;
    --bg-soft: #213946;
    --paper: #F1E7DF;
    --muted: #B7A69C;
    --line: rgba(204, 145, 113, .22);
    --acid: #CC9171;
    --orange: #AD7356;
    --max: 1180px;
    --serif: 'DM Serif Display', serif;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'Outfit', sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1)
}

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

body {
    background: var(--bg);
    color: var(--paper);
    font-family: var(--sans);
    line-height: 1.55;
    overflow-x: hidden
}

::selection {
    background: var(--acid);
    color: var(--bg)
}

a {
    color: inherit
}

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

.mono {
    font-family: var(--mono);
    letter-spacing: .02em
}

.site-header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 15, 18, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: .3s
}

.site-header.scrolled {
    border-color: var(--line)
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-family: var(--serif);
    font-size: 1.65rem;
    text-decoration: none;
    letter-spacing: .01em
}

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

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none
}

.nav-links a {
    font-size: .84rem;
    color: var(--muted);
    text-decoration: none;
    transition: .25s
}

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

.nav-cta {
    border: 1px solid var(--line);
    padding: 9px 15px;
    color: var(--paper) !important
}

.nav-cta:hover {
    border-color: var(--acid);
    color: var(--acid) !important
}

.nav-cta span,
.text-link span,
.panel-link span,
.contact-links span {
    color: var(--acid)
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--paper)
}

.hero {
    min-height: 100vh;
    padding: 150px 0 90px;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 82% 30%, rgba(42, 67, 81, .34), transparent 34%), linear-gradient(120deg, var(--bg) 65%, #213946)
}

.hero::after {
    content: 'BUILD / 2026';
    position: absolute;
    right: 32px;
    bottom: 32px;
    color: var(--line);
    font: 12px var(--mono);
    writing-mode: vertical-rl
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 90px;
    align-items: center
}

.eyebrow,
.section-kicker {
    font: 500 .7rem var(--mono);
    letter-spacing: .09em;
    color: var(--acid)
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px
}

.live-dot,
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--acid);
    box-shadow: 0 0 0 4px rgba(204, 145, 113, .1)
}

.hero h1 {
    font: 400 clamp(3.4rem, 6.3vw, 6.25rem)/.98 var(--serif);
    letter-spacing: -.025em;
    max-width: 750px
}

.hero h1 em,
.lab-heading em {
    font-style: normal;
    color: var(--acid)
}

.hero-lead {
    font-size: 1.12rem;
    color: #D2C4BA;
    max-width: 480px;
    margin: 30px 0 14px
}

.hero-note {
    font: 400 .82rem var(--mono);
    color: var(--orange)
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-top: 38px
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 19px;
    border: 1px solid transparent;
    font: 500 .82rem var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: .3s
}

.button-primary {
    background: var(--acid);
    color: var(--bg)
}

.button-primary:hover {
    background: #E4B09A;
    transform: translateY(-3px)
}

.text-link {
    font-size: .85rem;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 5px;
    transition: .25s
}

.text-link:hover {
    border-color: var(--acid);
    color: var(--acid)
}

.portrait-editorial {
    position: relative;
    max-width: 430px;
    margin-left: auto;
    padding-bottom: 34px
}

.portrait-frame {
    height: 560px;
    width: 82%;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #213946
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 1
}

.portrait-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 18px;
    background: var(--bg-soft);
    border-left: 2px solid var(--acid);
    font-size: .62rem
}

.portrait-caption span:last-child {
    color: var(--muted)
}

.panel-top,
.panel-top+h2,
.build-panel dl,
.card-bottom,
.lab-card-top {
    display: flex
}

.panel-top {
    justify-content: space-between;
    color: var(--acid);
    font-size: .66rem
}

.panel-signal {
    color: var(--orange)
}

.build-panel h2 {
    font: 400 1.65rem/1.1 var(--serif);
    margin: 22px 0 14px
}

.panel-flow {
    font-size: .7rem;
    color: var(--muted);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line)
}

.panel-flow b,
.flow b {
    color: var(--acid);
    font-weight: 400
}

.build-panel dl {
    flex-direction: column;
    gap: 10px;
    padding: 18px 0
}

.build-panel dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
    font: 400 .63rem var(--mono)
}

dt {
    color: var(--muted)
}

dd {
    color: var(--paper)
}

.status-dot {
    width: 5px;
    height: 5px;
    box-shadow: none;
    margin: 0 6px 1px 0
}

.panel-link {
    font: 500 .7rem var(--mono);
    text-decoration: none;
    color: var(--paper)
}

.frame-mark {
    position: absolute;
    color: var(--acid);
    font: 1.5rem var(--mono)
}

.frame-mark-a {
    top: 25px;
    right: -10px
}

.frame-mark-b {
    bottom: 18px;
    left: -12px
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 32px;
    font-size: .62rem;
    color: var(--muted)
}

.hero-scroll span {
    color: var(--acid);
    margin-left: 12px
}

.section {
    padding: 130px 0
}

.capabilities,
.practice-section,
.about-section {
    background: var(--paper);
    color: var(--bg)
}

.section-heading {
    max-width: 760px;
    margin-bottom: 65px
}

.section-kicker {
    margin-bottom: 20px
}

.capabilities .section-kicker,
.practice-section .section-kicker,
.about-section .section-kicker {
    color: #AD7356
}

.section-heading h2,
.split-heading h2,
.contact-grid h2 {
    font: 400 clamp(2.4rem, 4.8vw, 4.4rem)/1.03 var(--serif);
    letter-spacing: -.02em
}

.capability-list {
    border-top: 1px solid rgba(13, 15, 18, .22)
}

.capability {
    display: grid;
    grid-template-columns: 65px 1fr 50px;
    gap: 20px;
    padding: 31px 0;
    border-bottom: 1px solid rgba(13, 15, 18, .22);
    transition: .3s
}

.capability:hover {
    padding-left: 15px;
    background: rgba(204, 145, 113, .14)
}

.item-number,
.tags {
    font-size: .67rem;
    color: #8E8179
}

.capability h3 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 6px
}

.capability p {
    max-width: 620px;
    color: #655B56;
    font-size: .96rem
}

.tags {
    display: block;
    margin-top: 16px;
    color: #AD7356
}

.item-arrow {
    font-size: 1.3rem;
    text-align: right;
    color: #8E5C45
}

.section-after {
    margin: 56px 0 0 auto;
    max-width: 580px;
    font-size: 1.1rem;
    color: #655B56
}

.section-after strong {
    color: var(--bg);
    font-weight: 500
}

.lab-section {
    background: var(--bg-soft);
    background-image: linear-gradient(rgba(241, 231, 223, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(241, 231, 223, .035) 1px, transparent 1px);
    background-size: 48px 48px
}

.lab-heading p:last-child {
    color: var(--muted);
    max-width: 530px;
    font-size: 1rem
}

.lab-filters {
    display: flex;
    gap: 10px;
    margin: -25px 0 34px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px
}

.lab-filter {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 8px 11px;
    font-size: .66rem;
    letter-spacing: .06em;
    transition: .25s
}

.lab-filter:hover,
.lab-filter.is-active {
    border-color: var(--acid);
    color: var(--acid)
}

.lab-card[hidden] {
    display: none
}

.lab-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 16px
}

.lab-card {
    padding: 28px;
    background: rgba(13, 15, 18, .78);
    border: 1px solid var(--line);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    transition: .3s
}

.lab-card:hover {
    border-color: var(--acid);
    transform: translateY(-4px)
}

.lab-card-featured {
    grid-row: span 2;
    min-height: 616px;
    background: linear-gradient(135deg, rgba(204, 145, 113, .09), transparent 45%), rgba(13, 15, 18, .9)
}

.lab-card-note {
    min-height: 300px
}

.lab-card-top {
    justify-content: space-between;
    font-size: .64rem;
    color: var(--muted)
}

.state-live {
    color: var(--acid)
}

.state-building {
    color: #E8B84A
}

.state-note {
    color: var(--orange)
}

.lab-card h3 {
    font: 400 2rem/1.05 var(--serif);
    margin: 37px 0 16px
}

.lab-card:not(.lab-card-featured) h3 {
    font-size: 1.5rem
}

.flow {
    font-size: .68rem;
    color: var(--muted);
    margin-bottom: 22px
}

.lab-card>p:not(.flow) {
    font-size: .92rem;
    color: #D0C2B8;
    max-width: 510px
}

.card-bottom {
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: .63rem
}

.card-bottom a {
    font-size: .72rem;
    text-decoration: none;
    color: var(--paper)
}

.card-bottom a:hover {
    color: var(--acid)
}

.lab-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 45px;
    color: var(--muted)
}

.practice-section {
    background: #D8CFC7
}

.case-list {
    border-top: 1px solid rgba(13, 15, 18, .25)
}

.case {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 15px;
    padding: 34px 0;
    border-bottom: 1px solid rgba(13, 15, 18, .25)
}

.case-number {
    color: #AD7356;
    font-size: .7rem
}

.case h3 {
    font: 400 1.6rem var(--serif);
    margin-bottom: 25px
}

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

.case-columns span {
    font-size: .62rem;
    color: #AD7356
}

.case-columns p {
    color: #655B56;
    font-size: .88rem;
    margin-top: 8px
}

.stack-section {
    background: #202824
}

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

.split-heading p {
    color: var(--muted);
    max-width: 330px;
    font-size: 1rem
}

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

.stack-list>div {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 24px 0;
    border-bottom: 1px solid var(--line)
}

.stack-list span {
    font-size: .68rem;
    color: var(--acid)
}

.stack-list p {
    font-size: 1.05rem;
    color: #E0D5CD
}

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 100px;
    align-items: start;
    max-width: 960px
}

.about-portrait {
    height: 360px;
    overflow: hidden;
    border: 1px solid rgba(13, 15, 18, .3)
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top
}

.about-grid h2 {
    font: 400 clamp(2.2rem, 4vw, 3.6rem)/1.05 var(--serif);
    margin-bottom: 30px
}

.about-copy {
    color: #655B56;
    max-width: 620px;
    margin-bottom: 15px
}

.method {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: .64rem;
    color: #AD7356;
    padding: 25px 0;
    margin: 22px 0 28px;
    border-top: 1px solid rgba(13, 15, 18, .2);
    border-bottom: 1px solid rgba(13, 15, 18, .2)
}

.method b {
    font-weight: 400;
    color: #AD7356
}

.contact-section {
    padding: 130px 0;
    background: var(--acid);
    color: var(--bg)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 100px
}

.contact-grid .section-kicker {
    color: #8E5C45
}

.contact-grid h2 {
    max-width: 630px;
    margin-bottom: 22px
}

.contact-grid>div>p:not(.section-kicker) {
    max-width: 520px;
    color: #523627;
    font-size: 1.05rem
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 45px
}

.contact-links a {
    font: 500 .76rem var(--mono);
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 15, 18, .3);
    padding-bottom: 6px
}

.contact-links a span {
    color: #8E5C45
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, .2);
    padding: 28px
}

.contact-form label {
    font-size: .78rem;
    font-weight: 500;
    margin-top: 8px
}

.contact-form input,
.contact-form textarea {
    font: 400 .95rem var(--sans);
    background: rgba(255, 255, 255, .48);
    border: 1px solid rgba(13, 15, 18, .25);
    padding: 12px;
    color: var(--bg);
    resize: vertical
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--bg);
    outline-offset: 2px
}

.contact-form button {
    align-self: flex-start;
    margin-top: 10px;
    background: var(--bg);
    color: var(--acid)
}

.contact-form button:hover {
    background: #26312a
}

.form-status {
    min-height: 1.3em;
    font-size: .8rem
}

.form-status.is-success {
    color: #3e6417
}

.form-status.is-error {
    color: #8d3225
}

.footer {
    padding: 32px 0;
    background: var(--bg);
    color: var(--muted)
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.footer .brand {
    color: var(--paper)
}

.footer p {
    font-size: .62rem
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease)
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none
}

@media(max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 70px
    }

    .hero {
        padding-top: 125px
    }

    .hero h1 {
        font-size: clamp(3.2rem, 10vw, 5rem)
    }

    .portrait-editorial {
        max-width: 560px;
        margin: auto;
        width: 100%
    }

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

    .lab-card-featured {
        grid-row: auto;
        min-height: 420px
    }

    .case-columns {
        gap: 18px
    }

    .contact-grid {
        gap: 50px
    }
}

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

    .header-inner {
        height: 68px
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 1px;
        background: var(--paper);
        transition: .25s
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--line)
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        font-size: 1rem
    }

    .hero {
        padding: 110px 0 80px
    }

    .hero h1 {
        font-size: 3.35rem
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px
    }

    .hero-scroll {
        display: none
    }

    .portrait-editorial {
        min-height: 490px
    }

    .portrait-frame {
        height: 430px;
        width: 82%
    }

    .section {
        padding: 90px 0
    }

    .section-heading {
        margin-bottom: 45px
    }

    .capability {
        grid-template-columns: 35px 1fr 20px;
        gap: 10px
    }

    .capability h3 {
        font-size: 1.2rem
    }

    .item-arrow {
        font-size: 1rem
    }

    .tags {
        line-height: 1.8
    }

    .lab-filters {
        margin-top: -12px;
        overflow-x: auto
    }

    .lab-filter {
        flex: 0 0 auto
    }

    .lab-card {
        min-height: 320px
    }

    .lab-card h3 {
        font-size: 1.7rem
    }

    .lab-footer,
    .split-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .case {
        grid-template-columns: 35px 1fr
    }

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

    .stack-list>div {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 38px
    }

    .about-portrait {
        height: 300px;
        width: 190px
    }

    .contact-section {
        padding: 90px 0
    }

    .contact-form {
        padding: 20px
    }

    .footer p {
        font-size: .58rem
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }

    [data-reveal] {
        opacity: 1;
        transform: none
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 3px
}