:root {
    --paper: #f4f4f2;
    --paper-light: #fff;
    --ink: #141514;
    --muted: #70736f;
    --line: #d6d8d2;
    --coral: #8b6a3c;
    --lime: #eeeee8;
    --green: #223b32;
    --footer-height: min(780px, 100svh);
}
body { background: var(--paper); }
main { position: relative; z-index: 2; background: var(--paper); box-shadow: 0 16px 35px #00000015; }
svg.lucide { display: inline-block; width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; stroke-width: 1.5; }
em { color: inherit; }
.site-header { min-height: 100px; padding: 4px 42px; color: #fff; background: #1415141a; }
.site-header.is-scrolled, .site-header.is-open { min-height: 86px; background: #f4f4f2f2; color: var(--ink); border-color: var(--line); }
.brand { gap: 12px; align-items: center; }
.brand-logo { display: block; width: 145px; height: 82px; object-fit: cover; object-position: 50% 67%; }
.site-header .brand-logo { filter: brightness(0) invert(1); transition: filter .3s; }
.site-header.is-scrolled .brand-logo, .site-header.is-open .brand-logo { filter: none; }
.brand-author { color: inherit; opacity: .7; font: .56rem/1.65 var(--mono); }
.site-nav { gap: 30px; font-size: .7rem; font-weight: 500; }
.nav-contact { border-color: currentColor !important; padding: 10px 15px; }
.nav-contact:hover { background: #fff; color: var(--ink); }
.site-header.is-scrolled .nav-contact:hover { background: var(--ink); color: #fff; }
.nav-toggle { border-color: currentColor; }
.hero { display: block; min-height: 620px; height: min(840px, calc(100svh - 42px)); padding: 0; background: #202624; color: #fff; overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; overflow: hidden; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 18%; }
.hero::after { content: ""; position: absolute; inset: 0; background: #0b101245; pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; left: max(42px, calc((100% - 1320px) / 2)); bottom: 105px; width: min(480px, 44%); }
.hero .kicker { margin: 0 0 25px; color: #fff; font: .62rem/1.5 var(--mono); }
.hero .kicker span { color: #fff; }
.hero h1 { margin: 0 0 24px; font-family: var(--serif); font-size: 6.8rem; line-height: .91; font-weight: 400; }
.hero-line { display: block; overflow: hidden; padding: 0 0 5px; }
.hero-line > * { display: block; }
.hero h1 em { color: #fff; }
.hero-lead { margin: 0; color: #f3f3f0; font-size: .95rem; line-height: 1.65; }
.hero-actions { margin-top: 30px; gap: 26px; }
.hero-actions .text-link { color: #fff; font-size: .64rem; font-weight: 500; border-color: #ffffff77; }
.hero-actions .text-link svg { width: 16px; height: 16px; }
.hero-actions .text-link.muted { opacity: .7; }
.hero-footer { position: absolute; z-index: 2; bottom: 23px; inset-inline: 42px; display: flex; justify-content: space-between; gap: 20px; padding-top: 15px; border-top: 1px solid #ffffff4a; font: .54rem var(--mono); text-transform: uppercase; }
.hero-footer > span:last-child { display: flex; align-items: center; gap: 25px; }
.hero-footer svg { width: 14px; height: 14px; }
.marquee-band { position: relative; overflow: hidden; padding: 33px 0; background: #fff; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee-drift 32s linear infinite; }
.marquee-track > span { flex: none; white-space: nowrap; padding-right: 40px; font: italic 2.6rem var(--serif); color: #7c8178; }
.marquee-track b { padding-inline: 28px; color: #b28d59; font: 1.3rem var(--sans); }
@keyframes marquee-drift { to { transform: translateX(-50%); } }
.intro-band { padding: 115px max(42px, calc((100% - 1190px) / 2)); background: var(--paper); color: var(--ink); }
.intro-band > p:first-child { color: var(--muted); font-size: .62rem; }
.intro-statement { max-width: 1040px; margin: 35px 0 65px; font: 400 3.5rem/1.25 var(--serif); }
.intro-meta { border-color: var(--line); color: var(--muted); font-size: .56rem; }
.work-section { padding-top: 45px; }
.work-header { margin-bottom: 75px; grid-template-columns: .45fr 1.25fr .65fr; }
.work-header h2, .more-work-heading h2, .services-heading h2, .archive-intro h2 { font-family: var(--serif); font-weight: 400; }
.work-header h2 { font-size: 4.6rem; }
.work-header h2 em { color: #8b9185; }
.work-header > p:last-child { font-size: .82rem; }
.work-index { margin: 0 0 85px; }
.work-index a { font-weight: 500; }
.project-stack { gap: 105px; }
.project-info { padding-top: 22px; border-color: var(--line); }
.project-info h3, .more-work-grid .project-info h3 { font-family: var(--serif); font-weight: 400; font-size: 2.45rem; line-height: 1.15; }
.project-info p:last-child { font-size: .88rem; }
.project-origin { font-size: .57rem; }
.project-state { font-size: .53rem; }
.project-count { color: var(--muted); }
.project-open { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); }
.project-open svg { width: 21px; height: 21px; }
.project-gallery-count { background: #141514d9; color: #fff; }
.case-text-link { font-size: .61rem; font-weight: 500; }
.case-text-link svg { width: 15px; height: 15px; }
.project-screenshot { background: #e7e9e5; }
.project-screenshot img { padding: 20px; }
.project-pair { gap: 65px; }
.project-inverse { background: none; padding: 0; color: var(--ink); }
.project-inverse .project-info { border-color: var(--line); }
.project-inverse .project-origin, .project-inverse .project-info p:last-child, .project-inverse .project-state { color: var(--muted); }
.project-inverse .project-tags li { border-color: var(--line); }
.project-tags li { border: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); color: var(--muted); }
.system-residential { background: #223b32; }
.system-automation { background: #202624; }
.system-visual .system-kicker, .system-flow small { color: #d4c4a2; }
.system-title, .system-automation .system-title { font-family: var(--serif); font-weight: 400; }
.process-section { position: relative; overflow: hidden; background: #e9eae5; }
.process-track { width: 100%; display: block; }
.process-panel { position: relative; flex: 0 0 100%; height: auto; min-height: 560px; padding: 130px max(64px, calc((100vw - 1120px) / 2)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border-right: 1px solid var(--line); overflow: hidden; }
.motion-desktop .process-track { display: flex; }
.motion-desktop .process-panel { height: 100svh; max-height: 850px; min-height: 620px; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.cursor-follower { transform: translate(-50%, -50%); }
.process-panel:nth-child(2) { background: #fff; }
.process-panel:nth-child(3) { background: #eef0eb; }
.process-panel h2, .process-panel h3 { position: relative; max-width: 100%; overflow-wrap: anywhere; margin: 20px 0 34px; font: 400 5.5rem/.98 var(--serif); }
.process-panel h3 { font-size: 4.2rem; }
.process-panel em { color: #858d7c; }
.process-panel > p:not(.section-number) { position: relative; max-width: 570px; margin-bottom: 36px; color: #63685f; font-size: 1rem; line-height: 1.75; }
.process-detail { color: var(--muted); font: .6rem var(--mono); text-transform: uppercase; }
.process-number { position: absolute; z-index: 0; right: 8%; bottom: 8%; color: #dde1d8; font: 400 14rem/1 var(--serif); pointer-events: none; }
.process-dark { background: #1d2621; color: #f4f4f2; }
.process-dark .process-number { color: #2c3830; }
.process-dark .section-number, .process-dark .process-detail { color: #b4bdae; }
.process-dark > p:not(.section-number) { color: #c4ccc0; }
.process-dark em { color: #c0ccaf; }
.process-intro > svg { width: 55px; height: 55px; stroke-width: 1; }
.process-progress { position: absolute; z-index: 3; inset: auto 42px 28px; height: 1px; background: #afb7a94d; }
.process-progress span { display: block; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: #8b6a3c; }
.more-work-section { padding-top: 110px; background: #fff; }
.more-work-heading h2 { font-size: 3.7rem; }
.more-work-heading h2 em { color: #8b9185; }
.more-work-grid .project-info h3 { font-size: 2.2rem; }
.archive-section { background: var(--paper); }
.archive-intro h2 { font-size: 3.8rem; }
.archive-row { min-height: 90px; }
.archive-row strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.archive-row small { font-size: .58rem; }
.profile-section { background: #e8ebe4; }
.profile-copy h2 { font: 400 3.7rem/1.06 var(--serif); }
.profile-copy em { color: #7c8671; }
.profile-lead { font-weight: 400; }
.profile-photo span { background: #f4f4f2e0; }
.services-heading h2 { font-size: 4.3rem; }
.services-heading h2 em { color: #8b9185; }
.service-row { position: relative; grid-template-columns: 55px 1.05fr 1fr; gap: 24px; padding-block: 40px; transition: padding .4s, background-color .4s; }
.service-row h3 { font: 400 2.5rem/1.15 var(--serif); }
.service-row p { font-size: .84rem; }
.service-row:hover { padding-inline: 15px; background: #fff; }
.service-row:hover h3 { font-style: italic; }
.stack-line span { padding: 0 12px 0 0; border: 0; border-right: 1px solid var(--line); font-size: .6rem; }
.service-preview { position: fixed; z-index: 110; top: 0; left: 0; width: 300px; height: 205px; opacity: 0; visibility: hidden; pointer-events: none; background: #fff; box-shadow: 0 20px 65px #00000026; overflow: hidden; }
.service-preview img { width: 100%; height: 100%; object-fit: contain; }
.service-preview .system-visual { gap: 12px; padding: 16px; }
.service-preview .system-title { font-size: 1.7rem; }
.service-preview .system-flow { grid-template-columns: repeat(4, 1fr); }
.service-preview .system-flow > div { padding: 10px 3px; }
.service-preview .system-flow span { font-size: .6rem; }
.service-preview .system-kicker, .service-preview .system-footer { font-size: .43rem; }
.cursor-follower { display: none; }
.contact-reveal { position: relative; z-index: 1; height: var(--footer-height); scroll-margin-top: 0; }
.contact-section { position: fixed; inset: auto 0 0; z-index: 1; height: var(--footer-height); min-height: 0; padding: 115px max(42px, calc((100% - 1312px) / 2)) 25px; background: #141714; }
.contact-main h2 { font: 400 10.5rem/1 var(--serif); }
.contact-main h2 em { color: #b28d59; }
.contact-section .section-number { color: #b2b9ab; }
.contact-channels a { display: inline-flex; font-size: 1rem; font-weight: 400; }
.contact-main .contact-availability { color: #aeb6a6; font-size: .87rem; }
.contact-main > p { font-size: .6rem; }
.contact-footer { grid-template-columns: 1fr auto auto; border-color: #ffffff29; }
.footer-signature { align-items: center; }
.footer-signature .brand-logo { filter: brightness(0) invert(1); width: 132px; height: 75px; }
.footer-signature span { color: #b0b8aa; }
.footer-links { align-items: center; font-size: .65rem; }
.site-header.on-footer { background: #141714eb; color: #fff; border-color: #ffffff29; }
.site-header.on-footer .brand-logo { filter: brightness(0) invert(1); }
.gallery-modal { z-index: 500; }
.gallery-header-actions > a { display: inline-flex; align-items: center; gap: 7px; }
.gallery-close, .case-carousel-controls .gallery-nav { display: grid; place-items: center; }
.gallery-close svg, .gallery-nav svg { width: 19px; height: 19px; }
.case-status { color: #486342; }
.case-summary { font-weight: 500; }
.gallery-thumbnails button.is-active { border-color: #8b6a3c; }
.case-panel .gallery-header h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
body.gallery-open .service-preview, body.gallery-open .cursor-follower { visibility: hidden !important; }
@media (hover: hover) and (pointer: fine) {
    .cursor-follower { display: grid; place-items: center; position: fixed; z-index: 450; top: 0; left: 0; width: 12px; height: 12px; border: 1px solid #fff; border-radius: 50%; background: transparent; mix-blend-mode: difference; pointer-events: none; opacity: 0; }
    .cursor-follower svg { width: 19px; height: 19px; color: #111; opacity: 0; }
    body.pointer-active:not(.gallery-open) { cursor: none; }
    body.pointer-active:not(.gallery-open) a, body.pointer-active:not(.gallery-open) button { cursor: none; }
}
@media (max-width: 1160px) {
    .hero h1 { font-size: 6rem; }
    .work-header { grid-template-columns: .4fr 1.4fr; }
    .work-header > p:last-child { grid-column: 2; }
    .work-header h2 { font-size: 4.2rem; }
    .profile-copy h2 { font-size: 3rem; }
    .services-heading h2 { font-size: 3.8rem; }
}
@media (max-width: 999px) {
    .process-track { display: block; }
    .process-panel { min-height: 0; height: auto; max-height: none; padding: 85px 42px; border-bottom: 1px solid var(--line); }
    .process-panel h2 { font-size: 4.5rem; }
    .process-panel h3 { font-size: 3.7rem; }
    .process-panel > p:not(.section-number) { max-width: 600px; }
    .process-number { font-size: 10rem; right: 5%; bottom: 8%; }
    .process-progress, .service-preview { display: none; }
    .contact-reveal { height: auto; scroll-margin-top: 82px; }
    .contact-section { position: relative; height: auto; min-height: 700px; }
    .contact-main h2 { font-size: 7rem; }
}
@media (max-width: 900px) {
    .site-header, .site-header.is-scrolled, .site-header.is-open { min-height: 82px; padding-inline: 20px; }
    .brand-logo { width: 115px; height: 70px; }
    .brand-author { font-size: .5rem; }
    .site-nav { top: 82px; color: var(--ink); }
    .site-nav a { font-size: .7rem; }
    .hero { min-height: 580px; height: calc(100svh - 42px); }
    .hero-copy { left: 30px; bottom: 100px; width: 70%; }
    .hero h1 { font-size: 5.5rem; }
    .hero-footer { inset-inline: 30px; }
    .intro-band { padding: 85px 30px; }
    .intro-statement { font-size: 2.7rem; }
    .work-header { grid-template-columns: 1fr; }
    .work-header > p:last-child { grid-column: auto; }
    .project-pair { gap: 75px; }
    .project-offset { margin-top: 0; }
    .profile-copy h2 { font-size: 3.4rem; }
    .services-heading h2 { font-size: 3.6rem; }
    .service-row { grid-template-columns: 40px 1fr; }
    .service-row p { grid-column: 2; }
    .contact-footer { grid-template-columns: 1fr auto; }
    .contact-footer > p { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .hero { min-height: 580px; }
    .hero-backdrop img { object-position: 55% 0; }
    .hero-copy { left: 22px; bottom: 95px; width: calc(100% - 44px); }
    .hero h1 { font-size: 4.6rem; margin-bottom: 20px; }
    .hero .kicker { font-size: .58rem; margin-bottom: 17px; }
    .hero-lead { font-size: .85rem; line-height: 1.55; }
    .hero-actions { margin-top: 25px; gap: 23px; }
    .hero-actions .text-link { font-size: .56rem; }
    .hero-footer { inset-inline: 22px; bottom: 21px; font-size: .43rem; gap: 12px; }
    .hero-footer > span:last-child { gap: 10px; flex-shrink: 0; }
    .marquee-band { padding: 23px 0; }
    .marquee-track > span { font-size: 1.8rem; }
    .marquee-track b { padding-inline: 18px; font-size: 1rem; }
    .intro-band { padding: 70px 22px; }
    .intro-statement { font-size: 2.1rem; margin: 28px 0 45px; }
    .intro-meta { font-size: .49rem; gap: 15px; }
    .work-section { padding-top: 20px; }
    .work-header h2 { font-size: 3.1rem; }
    .work-header { margin-bottom: 40px; }
    .work-index { margin-bottom: 55px; }
    .project-info h3, .more-work-grid .project-info h3 { font-size: 1.9rem; }
    .project-origin { font-size: .5rem; }
    .project-info p:last-child { font-size: .82rem; }
    .project-screenshot img { padding: 8px; }
    .project-meta { gap: 12px 15px; }
    .project-open { width: 35px; height: 35px; }
    .project-tags li { font-size: .54rem; }
    .process-panel { padding: 70px 22px; }
    .process-panel h2 { font-size: 3.3rem; }
    .process-panel h3 { font-size: 2.65rem; }
    .process-panel > p:not(.section-number) { font-size: .9rem; }
    .process-number { font-size: 8rem; opacity: .5; }
    .process-detail { position: relative; font-size: .5rem; }
    .more-work-heading h2 { font-size: 2.65rem; }
    .more-work-section { padding-top: 75px; }
    .archive-intro h2 { font-size: 3rem; }
    .archive-row strong { font-size: 1.15rem; }
    .archive-row small { font-size: .49rem; }
    .profile-copy h2 { font-size: 2.7rem; }
    .services-heading h2 { font-size: 2.9rem; }
    .service-row { gap: 18px; padding-block: 30px; }
    .service-row h3 { font-size: 2.1rem; }
    .service-row:hover { padding-inline: 0; }
    .service-row p { font-size: .8rem; }
    .contact-section { min-height: 630px; padding: 65px 22px 25px; }
    .contact-main h2 { font-size: 4.1rem; }
    .contact-channels { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
    .contact-channels a { display: inline-flex; align-items: center; gap: 10px; font-size: .77rem; }
    .contact-footer { gap: 22px; }
    .footer-signature { gap: 10px; }
    .footer-signature .brand-logo { width: 100px; height: 57px; }
    .footer-signature span { font-size: .48rem; }
    .footer-links { font-size: .5rem; }
    .footer-links svg { width: 14px; height: 14px; }
    .case-panel .gallery-header h2 { font-size: 1.35rem; }
}
@media (max-width: 360px) {
    .hero h1 { font-size: 4.1rem; }
    .process-panel h3 { font-size: 2.3rem; }
    .hero-actions { gap: 15px; }
    .hero-actions .text-link { font-size: .5rem; }
    .contact-main h2 { font-size: 3.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .cursor-follower, .service-preview { display: none !important; }
    .process-track { display: block; }
    .process-panel { height: auto; min-height: 480px; }
    .process-progress { display: none; }
    .contact-reveal { height: auto; }
    .contact-section { position: relative; height: auto; min-height: 650px; }
}
