:root {
    --paper: #f2f0e9;
    --paper-light: #fbfaf6;
    --ink: #121212;
    --muted: #686862;
    --line: #c9c6bd;
    --coral: #ef5a46;
    --lime: #d7ee57;
    --green: #174f45;
    --white: #ffffff;
    --mono: "DM Mono", Consolas, monospace;
    --sans: "Manrope", Arial, sans-serif;
    --serif: "Playfair Display", Georgia, serif;
    --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
    letter-spacing: 0;
}
body.nav-open,
body.gallery-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
    position: fixed;
    z-index: 200;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px clamp(20px, 4vw, 64px);
    border-bottom: 1px solid transparent;
    transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
    border-color: rgba(18,18,18,.12);
    background: rgba(242,240,233,.94);
    backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-word { font-size: 1.28rem; font-weight: 800; }
.brand-author { color: var(--muted); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.site-nav a { border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { border-color: currentColor; }
.nav-contact { padding: 9px 14px; border: 1px solid var(--ink) !important; }
.nav-contact:hover, .nav-contact:focus-visible { background: var(--ink); color: var(--white); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease; }
.nav-toggle.is-active span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-active span:last-child { transform: translateY(-3px) rotate(-45deg); }

.hero {
    position: relative;
    min-height: 100svh;
    padding: 120px clamp(20px, 4vw, 64px) 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .65fr);
    grid-template-rows: 1fr auto;
    gap: 30px clamp(34px, 5vw, 86px);
    align-items: center;
}
.hero-copy { max-width: 980px; }
.kicker { display: flex; gap: 34px; margin-bottom: 42px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.kicker span:last-child { color: var(--muted); }
.hero h1,
.work-header h2,
.archive-intro h2,
.profile-copy h2,
.services-heading h2,
.contact-main h2 {
    margin-bottom: 30px;
    font-size: 7.2rem;
    font-weight: 700;
    line-height: .92;
}
em { color: var(--coral); font-family: var(--serif); font-weight: 500; }
.hero-lead { max-width: 720px; color: #33332f; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.text-link span { color: var(--coral); }
.text-link.muted { color: var(--muted); }

.hero-portrait { position: relative; align-self: stretch; min-height: 590px; overflow: hidden; background: #d5d9d8; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: rgba(18,18,18,.06); pointer-events: none; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait-caption { position: absolute; z-index: 2; left: 18px; bottom: 12px; margin: 0; color: var(--white); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; }
.signature { position: absolute; z-index: 3; right: 18px; top: 15px; color: var(--lime); font-family: var(--serif); font-size: 2.3rem; font-style: italic; transform: rotate(-8deg); }
.hero-index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.hero-index p { margin: 0; padding: 16px 20px 0 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.hero-index span { margin-right: 24px; color: var(--coral); font-family: var(--mono); }

.intro-band { padding: 110px clamp(20px, 7vw, 120px); background: var(--ink); color: var(--white); }
.intro-band > p:first-child { color: var(--lime); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; }
.intro-statement { max-width: 1120px; margin: 26px 0 70px; font-size: 3.8rem; font-weight: 600; line-height: 1.05; }
.intro-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid #4a4a46; color: #aaa9a3; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }

.work-section, .archive-section, .services-section { max-width: var(--max); margin: 0 auto; padding: 140px clamp(20px, 4vw, 64px); }
.section-number, .project-origin { color: var(--muted); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.work-header { display: grid; grid-template-columns: .45fr 1.2fr .65fr; gap: 30px; align-items: end; margin-bottom: 100px; }
.work-header h2, .archive-intro h2, .profile-copy h2, .services-heading h2 { margin: 0; font-size: 5.2rem; }
.work-header > p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
.project-stack { display: grid; gap: 120px; }
.project { min-width: 0; }
.project-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #ddd; }
button.project-image { width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.project-image:hover img, .project-image:focus-visible img { transform: scale(1.025); }
.project-wide .project-image { aspect-ratio: 16 / 8.4; }
.reference-label { position: absolute; left: 12px; bottom: 12px; padding: 6px 8px; background: rgba(18,18,18,.82); color: var(--white); font-family: var(--mono); font-size: .56rem; text-transform: uppercase; }
.project-gallery-count { position: absolute; left: 12px; bottom: 12px; padding: 6px 8px; background: rgba(18,18,18,.84); color: var(--white); font-family: var(--mono); font-size: .56rem; text-transform: uppercase; }
.project-open { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; width: 48px; height: 48px; place-items: center; background: var(--lime); color: var(--ink); font-size: 1.3rem; }
.project-info { display: grid; grid-template-columns: 80px 1fr minmax(220px, .5fr); gap: 30px; padding: 26px 0 0; border-top: 1px solid var(--ink); }
.project-info.compact { grid-template-columns: 48px 1fr; }
.project-count { color: var(--coral); font-family: var(--mono); font-size: .78rem; }
.project-origin { margin-bottom: 10px; }
.project-info h3 { margin-bottom: 10px; font-size: 2.45rem; line-height: 1; }
.project-info p:last-child { max-width: 760px; color: var(--muted); }
.project-live-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.project-live-link span { color: var(--lime); }
.project-tags { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; list-style: none; }
.project-tags li { padding: 7px 9px; border: 1px solid var(--line); font-family: var(--mono); font-size: .61rem; text-transform: uppercase; }
.project-pair { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.project-pair-reverse { grid-template-columns: .9fr 1.1fr; }
.project-offset { margin-top: 120px; }
.project-inverse { padding: 22px; background: var(--green); color: var(--white); }
.project-inverse .project-info { border-color: rgba(255,255,255,.55); }
.project-inverse .project-origin, .project-inverse .project-info p:last-child { color: rgba(255,255,255,.68); }
.project-inverse .project-tags li { border-color: rgba(255,255,255,.28); }

.gallery-modal[hidden] { display: none; }
.gallery-modal { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 20px; }
.gallery-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(10,10,10,.88); cursor: pointer; }
.gallery-panel { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(1500px, 100%); height: min(940px, calc(100svh - 40px)); min-height: 0; overflow: hidden; background: var(--paper-light); box-shadow: 0 22px 80px rgba(0,0,0,.38); }
.gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.gallery-header p { margin: 0 0 3px; color: var(--muted); font-family: var(--mono); font-size: .6rem; text-transform: uppercase; }
.gallery-header h2 { margin: 0; font-size: 1.45rem; line-height: 1; }
.gallery-header-actions { display: flex; align-items: center; gap: 18px; }
.gallery-header-actions > a { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.gallery-header-actions > a span { color: var(--coral); }
.gallery-close { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid var(--ink); background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.gallery-close:hover, .gallery-close:focus-visible { background: var(--ink); color: var(--white); }
.gallery-stage { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; min-height: 0; }
.gallery-nav { align-self: stretch; padding: 0; border: 0; border-inline: 1px solid var(--line); background: var(--paper-light); font-size: 1.45rem; cursor: pointer; }
.gallery-nav:hover, .gallery-nav:focus-visible { background: var(--lime); }
.gallery-slides { min-width: 0; min-height: 0; }
.gallery-slide { display: none; height: 100%; margin: 0; grid-template-rows: minmax(0, 1fr) auto; }
.gallery-slide.is-active { display: grid; }
.gallery-media { display: grid; min-height: 0; place-items: center; overflow: hidden; background: #e5e5e1; }
.gallery-media img { width: 100%; height: 100%; object-fit: contain; }
.gallery-media-mobile { background: #dfe3e1; }
.gallery-media-mobile img { width: auto; max-width: 100%; }
.gallery-slide figcaption { display: grid; grid-template-columns: 82px 1fr; gap: 18px; min-height: 92px; padding: 18px 22px; border-top: 1px solid var(--line); background: var(--paper-light); }
.gallery-slide figcaption > span { color: var(--coral); font-family: var(--mono); font-size: .68rem; }
.gallery-slide figcaption strong { display: block; margin-bottom: 2px; font-size: .9rem; }
.gallery-slide figcaption p { margin: 0; color: var(--muted); font-size: .76rem; }
.gallery-thumbnails { display: flex; gap: 8px; min-height: 88px; padding: 10px 14px; overflow-x: auto; border-top: 1px solid var(--line); background: var(--paper); }
.gallery-thumbnails button { flex: 0 0 106px; height: 66px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #ddd; cursor: pointer; }
.gallery-thumbnails button.is-active { border-color: var(--coral); }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; }

.archive-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(50px, 8vw, 130px); border-top: 1px solid var(--line); }
.archive-intro h2 { font-size: 4.4rem; }
.archive-list { border-top: 1px solid var(--ink); }
.archive-row { display: grid; grid-template-columns: 46px .7fr 1fr auto; gap: 20px; align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); transition: background-color .2s ease, padding .2s ease; }
a.archive-row:hover, a.archive-row:focus-visible { padding-inline: 12px; background: var(--lime); }
.archive-row span, .archive-row small { color: var(--muted); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.archive-row strong { font-size: 1.12rem; }
.archive-row b { font-family: var(--mono); font-size: .65rem; font-weight: 500; text-transform: uppercase; }

.profile-section { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 760px; background: var(--coral); }
.profile-photo { position: relative; min-height: 660px; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.profile-photo span { position: absolute; left: 20px; bottom: 18px; padding: 7px 9px; background: var(--lime); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.profile-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(30px, 6vw, 100px); }
.profile-copy h2 { color: var(--ink); }
.profile-copy em { color: var(--paper-light); }
.profile-lead { max-width: 680px; margin-top: 30px; font-size: 1.42rem; font-weight: 600; line-height: 1.28; }
.profile-copy > p:not(.section-number):not(.profile-lead) { max-width: 680px; }
.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 55px 0 0; padding-top: 18px; border-top: 1px solid rgba(18,18,18,.35); }
.profile-facts dt { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.profile-facts dd { margin: 8px 0 0; font-size: .85rem; font-weight: 700; }

.services-section { padding-bottom: 100px; }
.services-heading { display: grid; grid-template-columns: .45fr 1.55fr; gap: 40px; margin-bottom: 90px; }
.services-list { border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 80px .8fr 1fr; gap: 30px; align-items: start; padding: 35px 0; border-bottom: 1px solid var(--line); }
.service-row span { color: var(--coral); font-family: var(--mono); font-size: .74rem; }
.service-row h3 { margin: 0; font-size: 1.8rem; }
.service-row p { max-width: 600px; margin: 0; color: var(--muted); }
.stack-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 54px; }
.stack-line span { padding: 8px 10px; border: 1px solid var(--ink); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; }

.contact-section { min-height: 92svh; padding: 90px clamp(20px, 4vw, 64px) 28px; display: flex; flex-direction: column; background: var(--ink); color: var(--white); }
.contact-section .section-number { color: var(--lime); }
.contact-main { margin: auto 0; }
.contact-main > p { color: #aaa9a3; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.contact-main h2 { margin: 0 0 40px; font-size: 8.4rem; }
.contact-main a { display: inline-flex; gap: 16px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--white); font-size: 1.1rem; }
.contact-main a span { color: var(--lime); }
.contact-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: end; padding-top: 24px; border-top: 1px solid #42423f; }
.footer-signature { display: flex; align-items: baseline; gap: 12px; }
.footer-signature strong { color: var(--lime); font-size: 1.5rem; }
.footer-signature span, .contact-footer p { margin: 0; color: #85857f; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; justify-content: center; font-size: .72rem; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media (max-width: 1160px) {
    .hero h1 { font-size: 5.5rem; }
    .work-header h2, .profile-copy h2, .services-heading h2 { font-size: 4.2rem; }
    .contact-main h2 { font-size: 6.4rem; }
    .work-header { grid-template-columns: .35fr 1.3fr; }
    .work-header > p:last-child { grid-column: 2; }
    .archive-section { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .site-nav { position: fixed; inset: 76px 18px auto; display: grid; gap: 0; padding: 8px; border: 1px solid var(--ink); background: var(--paper-light); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
    .site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .site-nav a { padding: 15px 12px; border-bottom: 1px solid var(--line); }
    .site-nav .nav-contact { margin-top: 8px; border: 1px solid var(--ink) !important; text-align: center; }
    .nav-toggle { display: block; }
    .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 120px; }
    .hero-portrait { min-height: 650px; }
    .hero-index { grid-column: auto; }
    .intro-statement { font-size: 3rem; }
    .work-header { grid-template-columns: 1fr; }
    .work-header > p:last-child { grid-column: auto; max-width: 560px; }
    .project-pair, .project-pair-reverse { grid-template-columns: 1fr; }
    .project-offset { margin-top: 0; }
    .project-info { grid-template-columns: 60px 1fr; }
    .project-tags { grid-column: 2; justify-content: flex-start; }
    .profile-section { grid-template-columns: 1fr; }
    .profile-photo { min-height: 760px; }
    .services-heading { grid-template-columns: 1fr; }
    .contact-footer { grid-template-columns: 1fr 1fr; }
    .contact-footer > p { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .site-header { min-height: 68px; }
    .brand-author { display: none; }
    .site-nav { top: 68px; }
    .hero { min-height: auto; padding-top: 104px; }
    .hero h1 { font-size: 3.4rem; }
    .kicker { margin-bottom: 28px; }
    .hero-portrait { min-height: 480px; }
    .hero-index { grid-template-columns: 1fr; }
    .intro-band { padding-block: 78px; }
    .intro-statement { margin-bottom: 50px; font-size: 2.15rem; }
    .work-section, .archive-section, .services-section { padding-block: 90px; }
    .work-header { margin-bottom: 60px; }
    .work-header h2, .archive-intro h2, .profile-copy h2, .services-heading h2 { font-size: 3rem; }
    .project-stack { gap: 78px; }
    .project-wide .project-image, .project-image { aspect-ratio: 4 / 3; }
    .project-inverse { padding: 12px; }
    .project-info, .project-info.compact { grid-template-columns: 36px 1fr; gap: 14px; }
    .project-info h3 { font-size: 1.8rem; }
    .project-tags { grid-column: 1 / -1; }
    .gallery-modal { padding: 0; }
    .gallery-panel { width: 100%; height: auto; max-height: 100svh; grid-template-rows: auto auto auto; }
    .gallery-header { padding: 13px 14px; }
    .gallery-header-actions > a { font-size: 0; border: 0; }
    .gallery-header-actions > a span { font-size: 1rem; }
    .gallery-close { width: 38px; height: 38px; }
    .gallery-stage { grid-template-columns: minmax(0, 1fr); }
    .gallery-slide { height: auto; grid-template-rows: auto auto; }
    .gallery-media img { height: auto; max-height: 54vh; }
    .gallery-media-mobile img { width: auto; max-height: 54vh; }
    .gallery-nav { position: absolute; z-index: 3; top: 40%; width: 42px; height: 52px; border: 1px solid var(--ink); background: rgba(251,250,246,.92); }
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
    .gallery-slide figcaption { grid-template-columns: 55px 1fr; min-height: 108px; padding: 14px; }
    .gallery-slide figcaption p { font-size: .69rem; }
    .gallery-thumbnails { min-height: 76px; }
    .gallery-thumbnails button { flex-basis: 88px; height: 55px; }
    .archive-row { grid-template-columns: 32px 1fr auto; gap: 10px; }
    .archive-row small { grid-column: 2 / -1; padding-bottom: 16px; }
    .profile-photo { min-height: 520px; }
    .profile-copy { padding: 70px 20px; }
    .profile-facts { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 36px 1fr; gap: 14px; }
    .service-row p { grid-column: 2; }
    .contact-section { min-height: 760px; }
    .contact-main h2 { font-size: 4.3rem; }
    .contact-main a { font-size: .84rem; }
    .contact-footer { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; }
    .contact-footer > p { grid-column: auto; }
}

/* Project cases share the portfolio's editorial layout and motion. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 5px; }
section[id], article[id] { scroll-margin-top: 100px; }
.reading-progress { position: fixed; z-index: 400; inset: 0 0 auto; height: 3px; background: var(--coral); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hero { min-height: min(900px, 94svh); }
.hero h1 { font-size: 7.2rem; }
.hero-portrait { min-height: 530px; }
.kicker { flex-wrap: wrap; gap: 12px 26px; }
.work-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 25px; margin: -35px 0 85px; border-top: 1px solid var(--line); }
.work-index a { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 700; }
.work-index a span { color: var(--coral); font-family: var(--mono); font-size: .6rem; }
.work-index a:hover { color: var(--coral); }
.project-screenshot { background: #e2e6e4; }
.project-screenshot img { object-fit: contain; padding: 15px; }
.project-info h3 { overflow-wrap: anywhere; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.project-state { font-family: var(--mono); font-size: .59rem; text-transform: uppercase; color: var(--muted); }
.case-text-link { display: inline-flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; background: transparent; cursor: pointer; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.case-text-link:hover { color: var(--coral); }
.project-inverse .project-state { color: #c4d8d1; }
.project-inverse .case-text-link span { color: var(--lime); }
.system-visual { display: flex; flex-direction: column; justify-content: center; gap: 30px; width: 100%; height: 100%; padding: 6%; background: var(--green); color: var(--white); text-align: left; }
.system-kicker { font-family: var(--mono); font-size: .65rem; text-transform: uppercase; color: var(--lime); }
.system-title { display: block; font-size: 3.6rem; font-weight: 600; line-height: 1.08; overflow-wrap: anywhere; }
.system-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #6b9187; border-bottom: 1px solid #6b9187; }
.system-flow > div { padding: 18px 8px 18px 0; min-width: 0; }
.system-flow small { display: block; margin-bottom: 12px; color: var(--lime); font: .6rem var(--mono); }
.system-flow span { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.system-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #c4d8d1; font: .58rem var(--mono); text-transform: uppercase; }
.system-automation { background: #202423; }
.system-automation .system-title { max-width: 650px; font-family: var(--serif); font-style: italic; font-size: 3.3rem; }
.more-work-section { padding: 100px max(20px, calc((100% - 1312px) / 2)); background: #e4e9e4; }
.more-work-heading { display: grid; grid-template-columns: .45fr 1.2fr .65fr; gap: 30px; align-items: end; margin-bottom: 70px; }
.more-work-heading h2 { margin: 0; font-size: 3.8rem; line-height: 1.05; font-weight: 600; }
.more-work-heading > p:last-child { color: var(--muted); font-size: .9rem; }
.more-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 65px 45px; }
.more-work-grid .project-image { aspect-ratio: 16 / 10; }
.more-work-grid #balmark .project-image img { object-fit: cover; padding: 0; }
.more-work-grid .project-info h3 { font-size: 2rem; }
.profile-copy h2 { font-size: 3.7rem; }
.profile-copy { min-width: 0; }
.contact-main .contact-availability { max-width: 580px; font-family: var(--sans); font-size: 1rem; line-height: 1.6; text-transform: none; }
.contact-channels { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 34px; margin: 26px 0 45px; }
.contact-channels a { overflow-wrap: anywhere; }
.archive-row > * { min-width: 0; overflow-wrap: anywhere; }
.case-panel { grid-template-rows: auto minmax(0, 1fr); width: min(1600px, 100%); height: min(930px, calc(100svh - 40px)); }
.case-content { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); min-height: 0; }
.case-gallery { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; background: #e3e7e3; }
.case-gallery .gallery-stage { display: flex; flex: 1; flex-direction: column; min-height: 240px; }
.case-media { display: grid; flex: 1; place-items: center; min-height: 0; overflow: hidden; aspect-ratio: 16 / 10; touch-action: pan-y; }
.case-media > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.case-media-mobile > img { width: auto; max-width: 100%; }
.case-media .system-visual { min-height: 330px; }
.case-media .system-title { font-size: 2.8rem; }
.case-carousel-controls { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 10px; padding: 8px 15px; border-top: 1px solid var(--line); background: var(--paper-light); }
.case-carousel-controls .gallery-nav { width: 46px; height: 38px; border: 1px solid var(--line); }
.case-carousel-controls > span { text-align: center; color: var(--muted); font: .63rem var(--mono); }
.case-caption { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--paper-light); }
.case-caption strong { font-size: .88rem; }
.case-caption p { margin: 5px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.case-gallery .gallery-thumbnails { flex: 0 0 auto; min-height: 84px; }
.gallery-thumbnails button span { display: grid; place-items: center; height: 100%; padding: 8px; background: var(--green); color: var(--white); font-size: .65rem; }
.case-details { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px; border-left: 1px solid var(--line); }
.case-status { color: var(--green); font: .6rem var(--mono); text-transform: uppercase; }
.case-summary { font-size: 1.18rem; font-weight: 600; line-height: 1.4; }
.case-facts { display: grid; gap: 15px; padding: 18px 0; margin: 0 0 22px; border-block: 1px solid var(--line); }
.case-facts dt { margin-bottom: 4px; font: .56rem var(--mono); color: var(--muted); text-transform: uppercase; }
.case-facts dd { margin: 0; font-size: .75rem; }
.case-details h3 { margin: 20px 0 8px; font-size: .8rem; }
.case-details > p:not(.case-status):not(.case-summary), .case-details li, .case-state p { color: #565851; font-size: .78rem; line-height: 1.65; }
.case-details ul { padding-left: 18px; }
.case-details li { margin-bottom: 7px; }
.case-state { margin-top: 24px; padding-top: 1px; border-top: 1px solid var(--line); }
.case-state p { margin-bottom: 0; }

@media (max-width: 1160px) {
    .hero h1 { font-size: 6rem; }
    .work-header h2 { font-size: 3.8rem; }
    .more-work-heading { grid-template-columns: .45fr 1.55fr; }
    .more-work-heading > p:last-child { grid-column: 2; }
    .profile-copy h2 { font-size: 3rem; }
    .case-content { grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr); }
    .case-details { padding: 23px; }
}
@media (max-width: 900px) {
    .hero { min-height: auto; }
    .hero-portrait { min-height: 0; height: 620px; }
    .work-index { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -25px; }
    .work-header h2 { font-size: 3.7rem; }
    .more-work-heading { grid-template-columns: 1fr; }
    .more-work-heading > p:last-child { grid-column: auto; max-width: 550px; }
    .case-content { grid-template-columns: minmax(0, 1fr); overflow-y: auto; overscroll-behavior: contain; }
    .case-gallery { overflow: visible; min-height: auto; }
    .case-media { flex: none; }
    .case-media > img { max-height: 50svh; }
    .case-details { overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
    .case-media .system-visual { min-height: 0; }
}
@media (max-width: 620px) {
    .hero h1 { font-size: 5.4rem; }
    .hero-portrait { height: 470px; }
    .hero-lead { font-size: 1rem; }
    .hero .kicker { max-width: 290px; font-size: .63rem; }
    .work-header h2, .more-work-heading h2 { font-size: 2.65rem; }
    .work-index { margin-bottom: 48px; column-gap: 16px; }
    .work-index a { font-size: .65rem; gap: 8px; }
    .project-info h3, .more-work-grid .project-info h3 { font-size: 1.8rem; }
    .project-screenshot img { padding: 8px; }
    .project-open { width: 36px; height: 36px; right: 10px; top: 10px; }
    .project-meta { gap: 10px 16px; }
    .system-visual { gap: 16px; padding: 6%; }
    .system-title { font-size: 2.45rem; }
    .system-automation .system-title { font-size: 1.9rem; }
    .project-diagram { aspect-ratio: 1; }
    .system-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .system-flow > div { padding: 10px 6px 10px 0; }
    .system-flow small { display: inline; margin-right: 7px; }
    .system-flow span { display: inline; font-size: .72rem; }
    .system-kicker { font-size: .55rem; }
    .system-footer { font-size: .47rem; }
    .more-work-section { padding-block: 80px; }
    .more-work-grid { grid-template-columns: minmax(0, 1fr); gap: 55px; }
    .more-work-heading { margin-bottom: 45px; }
    .profile-copy h2 { font-size: 2.55rem; }
    .contact-main h2 { font-size: 3.55rem; }
    .contact-channels { display: grid; justify-items: start; }
    .contact-channels a { display: block; max-width: 100%; font-size: .88rem; }
    .case-panel { width: 100%; height: 100svh; max-height: 100svh; grid-template-rows: auto minmax(0, 1fr); }
    .case-panel .gallery-header h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
    .case-panel .gallery-header p { font-size: .5rem; }
    .case-panel .gallery-header { gap: 12px; }
    .case-panel .gallery-header-actions { gap: 10px; flex-shrink: 0; }
    .case-panel .gallery-header-actions > a { font-size: .6rem; border-bottom: 1px solid currentColor; }
    .case-panel .gallery-header-actions > a span { font-size: .8rem; }
    .case-media { aspect-ratio: 4 / 3; }
    .case-media-diagram { aspect-ratio: 1; }
    .case-media > img { height: 100%; max-height: 44svh; }
    .case-media .system-title { font-size: 2rem; }
    .case-carousel-controls .gallery-nav { position: static; font-size: 1.2rem; }
    .case-caption { padding: 14px 18px; }
    .case-details { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}
