.work-heading { padding-top: 40px; padding-bottom: 36px; }
.work-heading .section-kicker { margin-bottom: 20px; }
.work-title { display: flex; justify-content: space-between; align-items: end; gap: 35px; }
.work-title h1 { font-size: clamp(60px, 6.7vw, 96px); font-weight: 530; line-height: 1.03; letter-spacing: -.06em; }
.work-title h1 span { color: var(--accent); }
.work-title > p { color: #c0c6ce; font-size: 20px; line-height: 1.6; letter-spacing: -.025em; padding-bottom: 5px; }
.work-intro { color: var(--muted); font-size: 16px; line-height: 1.8; margin-top: 24px; }
.work-intro br { display: none; }
.work-controls { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-block: 24px; }
.work-controls > p { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.work-filters button { border: 1px solid transparent; border-radius: 30px; padding: 10px 17px; background: none; color: #a4aebc; cursor: pointer; font-size: 14px; transition: color .2s, background .2s, border-color .2s; }
.work-filters button span { margin-left: 5px; font-size: 11px; opacity: .65; }
.work-filters button:hover { border-color: #616a76; color: var(--text); }
.work-filters button[aria-pressed="true"] { background: #e9ece7; color: #1a2028; }
.work-section-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px 22px; }
.work-section-label h2 { font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.work-section-label > span { font-size: 12px; color: var(--muted); }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.project-card { display: block; width: 100%; min-width: 0; border: 0; background: none; color: var(--text); padding: 0; text-align: left; cursor: pointer; font-family: inherit; perspective: 1100px; }
.project-card:focus-visible { outline-offset: 7px; border-radius: 22px; }
.card-surface { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #ffffff19; border-radius: 22px; background: #1c252e; box-shadow: 0 3px 5px #0001, 0 14px 34px #0003; transform-origin: center; transition: border-color .25s, box-shadow .25s; }
.project-card[data-art="rtls"] .card-surface { background: #192c35; }
.project-card[data-art="evacuation"] .card-surface { background: #2b2832; }
.project-card[data-art="call"] .card-surface { background: #1b3028; }
.project-card[data-art="assets"] .card-surface { background: #332f26; }
.project-card[data-art="flowit"] .card-surface { background: #1b3035; }
.project-card[data-art="bullseye"] .card-surface { background: #302526; }
.project-card:hover .card-surface, .project-card:focus-visible .card-surface { border-color: #ffffff48; box-shadow: 0 4px 8px #0002, 0 24px 50px #0005; }
.card-info { padding: 28px 29px 0; position: relative; z-index: 1; }
.card-topline { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; color: #c1c9d0; font-size: 11px; font-variant-numeric: tabular-nums; }
.card-topline span:first-child { color: #b7cbe8; }
.card-title-row h3 { font-size: 28px; font-weight: 590; letter-spacing: -.045em; line-height: 1.4; }
.card-hook { color: #bdc6ce; font-size: 15px; line-height: 1.7; margin-top: 9px; }
.project-art { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #172029; flex-shrink: 0; }
.project-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.featured-card .card-surface { min-height: 475px; aspect-ratio: 1.24; justify-content: end; }
.featured-card .project-art { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.featured-card .project-cover-image { width: calc(100% + 16px); height: calc(100% + 16px); max-width: none; margin: -8px; }
.featured-card .project-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0a111008 10%, #09101615 30%, #0a1017d4 65%, #080e15fa 100%); pointer-events: none; }
.featured-card .card-info { margin-top: auto; padding-top: 150px; text-shadow: 0 1px 10px #0006; }
.featured-card .card-topline { color: #d6dfe7; }
.featured-card .card-title-row h3 { font-size: 30px; color: #fff; }
.featured-card .card-hook { color: #d3dce5; }
.featured-card .card-footer { position: relative; z-index: 1; margin-top: 20px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 29px 24px; margin-top: auto; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px 12px; color: #b5c1cc; font-size: 11px; }
.card-tags span + span::before { content: "/"; margin-right: 12px; opacity: .4; }
.card-open { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 11px; color: #e6ecf3; }
.card-open > span { display: grid; place-items: center; width: 35px; height: 35px; background: #e6ebec; color: #26323e; font-size: 21px; border-radius: 50%; transition: transform .25s; }
.project-card:hover .card-open > span { transform: rotate(45deg); }
#archive-section { margin-top: 65px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.archive-card .card-surface { background: #191e25; border-radius: 17px; box-shadow: none; }
.archive-card .card-info { padding: 21px 24px 0; }
.archive-card .card-title-row h3 { font-size: 21px; }
.archive-card .card-hook { font-size: 14px; color: #a8b3c2; }
.archive-card .card-footer { display: grid; justify-content: start; gap: 19px; padding: 25px 24px 24px; }
.archive-card .card-tags { color: #7f95ac; font-size: 10px; }
.archive-period { color: #8d9aac; font-size: 11px; font-variant-numeric: tabular-nums; }
.archive-mark { font-size: 23px; color: #a8bbd2; }
#featured-section, #engineering-section { margin-bottom: 30px; }
#personal-section { margin-bottom: 45px; }
.personal-card .card-topline span:first-child { color: #c4dedb; }
.engineering-card .card-surface { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: 35px; background: #dce6e2; border-color: #e4ece9; color: #20362f; }
.engineering-card-copy { min-width: 0; }
.engineering-card .card-topline { color: #526c61; margin-bottom: 26px; }
.engineering-card .card-topline span:first-child { color: #416b59; font-size: 10px; letter-spacing: .08em; }
.engineering-card h3 { font-size: 32px; font-weight: 590; letter-spacing: -.04em; line-height: 1.35; }
.engineering-card .card-hook { color: #455e54; font-size: 16px; margin-top: 15px; line-height: 1.75; word-break: keep-all; }
.engineering-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 25px; }
.engineering-card .card-tags { color: #49665a; }
.engineering-card .card-open { color: #233c31; }
.engineering-card .card-open > span { background: #254236; color: #e3efe8; }
.engineering-art { display: flex; align-items: center; min-height: 250px; padding: 22px; aspect-ratio: auto; background: #142820; border-radius: 11px; border: 1px solid #88a99740; }
.engineering-blueprint { width: 100%; min-width: 0; color: #d0e2d8; }
.blueprint-top, .blueprint-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; letter-spacing: .05em; color: #96b3a4; }
.blueprint-top { padding-bottom: 17px; }
.blueprint-bottom { padding-top: 17px; color: #85a795; }
.blueprint-module { display: grid; grid-template-columns: 18px minmax(0, 1fr) 26px; gap: 12px; align-items: center; border-block: 1px solid #809f8d36; padding: 17px 0; }
.blueprint-module + .blueprint-module { border-top: 0; }
.module-index { color: #8eab9a; font-size: 10px; }
.blueprint-module strong { font-size: 17px; font-weight: 530; line-height: 1.5; }
.blueprint-module p { color: #a4bbad; font-size: 11px; line-height: 1.65; margin-top: 4px; word-break: keep-all; }
.module-symbol { color: #accab8; font-size: 24px; white-space: nowrap; }
.project-dialog[data-art="engineering"] .modal-cover { background: #20362e; }
.modal-art .project-art.engineering-art { min-height: 250px; height: auto; aspect-ratio: auto; }
.work-period-note { font-size: 12px; line-height: 1.7; color: #8f99a6; margin-block: 45px 75px; }

.project-dialog { color-scheme: dark; background: #15191f; color: var(--text); width: min(1080px, calc(100% - 80px)); max-height: calc(100dvh - 70px); border: 1px solid #424a55; border-radius: 12px; padding: 0; overscroll-behavior: contain; box-shadow: 0 35px 150px #0009; }
.project-dialog::backdrop { background: #05070bd4; backdrop-filter: blur(9px); }
.modal-toolbar { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; align-items: center; min-height: 54px; padding: 8px 30px; background: #15191ff5; border-bottom: 1px solid #313844; backdrop-filter: blur(8px); }
.modal-toolbar > span { font-size: 10px; letter-spacing: .16em; color: #91a2ba; }
.modal-toolbar button { display: flex; gap: 12px; align-items: center; color: #d7dce4; background: none; border: 0; cursor: pointer; padding: 8px 0 8px 15px; font-size: 13px; }
.modal-toolbar button span { font-size: 19px; }
.modal-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.modal-toolbar #copy-project-link { justify-content: center; min-width: 94px; padding: 7px 10px; border: 1px solid #405063; border-radius: 5px; color: #bdcedf; font-size: 11px; }
.modal-toolbar #copy-project-link:hover:not([aria-disabled="true"]) { color: #edf4fc; border-color: #8297af; }
.modal-toolbar #copy-project-link[aria-disabled="true"] { cursor: wait; color: #8599ae; }
.modal-link-fallback { grid-column: 1 / -1; display: grid; gap: 7px; min-width: 0; padding: 11px 0 8px; }
.modal-link-fallback label { color: #b7cadf; font-size: 11px; }
.modal-link-fallback input { min-width: 0; width: 100%; padding: 9px 11px; border: 1px solid #587087; border-radius: 5px; background: #101821; color: #e0eaf3; font: 12px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.modal-link-fallback p { color: #a2b4c7; font-size: 11px; line-height: 1.6; word-break: keep-all; }
.modal-share-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.modal-content { padding: 0 44px 35px; }
.modal-cover { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; gap: 32px; margin-inline: -44px; padding: 32px 44px; background: #1c252e; border-bottom: 1px solid #ffffff0c; }
.project-dialog[data-art="rtls"] .modal-cover { background: #192c35; }
.project-dialog[data-art="evacuation"] .modal-cover { background: #2b2832; }
.project-dialog[data-art="call"] .modal-cover { background: #1b3028; }
.project-dialog[data-art="assets"] .modal-cover { background: #332f26; }
.project-dialog[data-art="flowit"] .modal-cover { background: #1b3035; }
.project-dialog[data-art="bullseye"] .modal-cover { background: #302526; }
.modal-intro { min-width: 0; }
.modal-category { display: flex; gap: 12px; color: var(--accent); font-size: 10px; letter-spacing: .04em; margin-bottom: 15px; }
.modal-category span { opacity: .4; }
.modal-title { font-size: clamp(26px, 2.6vw, 35px); line-height: 1.3; font-weight: 590; letter-spacing: -.045em; word-break: keep-all; overflow-wrap: anywhere; }
.modal-title:focus { outline: none; }
.modal-context { color: #afbdc9; font-size: 13px; line-height: 1.75; margin-top: 12px; word-break: keep-all; overflow-wrap: anywhere; }
.modal-lead { font-size: 18px; line-height: 1.65; color: #e1e7ee; margin-top: 18px; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; }
.modal-scope { margin-top: 23px; }
.scope-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.scope-heading h3 { color: #b8cbbf; font-size: 12px; line-height: 1.5; font-weight: 550; }
.scope-heading > span { padding: 3px 8px; border: 1px solid #b5d6c72b; border-radius: 4px; color: #c2d8cd; background: #a9cab60a; font-size: 10px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.scope-summary { margin-top: 10px; color: #e5ece8; font-size: 17px; line-height: 1.75; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; }
.scope-note { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 12px; color: #b8c1bd; font-size: 12px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.scope-note > span { color: #91a39b; }
.modal-cover-scoped .modal-facts { margin-top: 19px; }
.modal-facts { display: grid; gap: 9px; margin-top: 24px; font-size: 12px; line-height: 1.6; }
.modal-facts > div { display: grid; grid-template-columns: 65px 1fr; gap: 12px; }
.modal-facts dt { color: #93a3b6; }
.modal-facts dd { margin: 0; color: #ccd6e1; font-variant-numeric: tabular-nums; }
.modal-planned { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-top: 13px; color: #b5c9c1; font-size: 12px; line-height: 1.7; }
.modal-planned > span { padding: 1px 7px; border: 1px solid #a7c8b93d; border-radius: 4px; color: #c5ddcf; font-size: 10px; }
.modal-stack { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 20px 0 0; padding: 0; }
.modal-stack li { padding: 5px 9px; border: 1px solid #a7c0d126; border-radius: 5px; color: #cad9e3; font-size: 10px; line-height: 1.4; background: #b2d4e607; }
.modal-source-links, .case-sources { display: flex; flex-wrap: wrap; gap: 10px 19px; }
.modal-source-links { margin-top: 20px; }
.modal-source-links a, .case-sources a { display: inline-flex; align-items: center; gap: 8px; color: #c1d8e9; font-size: 12px; line-height: 1.6; text-decoration: underline; text-decoration-color: #88acc652; text-underline-offset: 4px; }
.modal-source-links a:hover, .case-sources a:hover { color: #fff; text-decoration-color: currentColor; }
.modal-source-links a > span, .case-sources a > span { font-size: 15px; }
.modal-art { min-width: 0; align-self: stretch; }
.modal-art .project-art { height: 100%; min-height: 235px; aspect-ratio: auto; border-radius: 10px; }
.modal-art .project-cover-image { position: absolute; inset: 0; }
.modal-section { margin-top: 30px; }
.modal-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.modal-section-heading h3 { font-size: 19px; font-weight: 570; letter-spacing: -.03em; }
.modal-section-heading > span { font-size: 9px; letter-spacing: .09em; color: #8a9aae; }
.contribution-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; padding: 0; list-style: none; }
.contribution-list li { position: relative; padding-right: 24px; }
.contribution-list li + li { border-left: 1px solid #343d49; padding-left: 24px; }
.contribution-list li:last-child { padding-right: 0; }
.contribution-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.contribution-list-grid li, .contribution-list-grid li + li { padding: 16px 0 0; border-left: 0; border-top: 1px solid #343d49; }
.contribution-number { color: #819ab8; font-size: 10px; font-variant-numeric: tabular-nums; }
.contribution-list h4 { font-size: 16px; font-weight: 550; letter-spacing: -.025em; line-height: 1.5; margin-top: 8px; }
.contribution-list p { color: #aebaca; font-size: 14px; line-height: 1.7; margin-top: 7px; word-break: keep-all; overflow-wrap: anywhere; }
.cases-section { padding-top: 28px; border-top: 1px solid #343d49; }
.system-overview { margin-block: 26px; padding: 22px 24px; border: 1px solid #41404a; border-radius: 10px; background: #1d2028; }
.system-overview-label { margin: 0 0 17px; color: #b7b9c7; font-size: 14px; }
.system-overview-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.system-overview-flow > div { min-width: 0; }
.system-overview-flow > div > span { display: block; color: #a9a5b0; font-size: 12px; letter-spacing: .06em; }
.system-overview-flow strong { display: block; margin-top: 3px; color: #efe8e3; font-size: 25px; font-weight: 550; }
.system-overview-flow p { margin: 6px 0 0; color: #b8c2d0; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.system-transport { padding: 10px 23px; border-inline: 1px solid #58505b; color: #b7acb8; font-size: 12px; line-height: 1.7; text-align: center; }
.component-tabs { position: sticky; top: var(--modal-toolbar-height, 54px); z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 26px; padding: 6px; border: 1px solid #3e4654; border-radius: 9px; background: #15191ff5; backdrop-filter: blur(12px); }
.component-tabs button { display: grid; justify-items: start; gap: 5px; min-width: 0; padding: 12px 16px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #aab7c9; text-align: left; cursor: pointer; }
.component-tabs button strong { font-size: 17px; font-weight: 550; }
.component-tabs button > span { font-size: 13px; line-height: 1.5; }
.component-tabs button:hover { color: #e6ebf4; background: #232b36; }
.component-tabs button[aria-selected="true"] { border-color: #726675; background: #39313d; color: #f0e7ec; }
.component-tabs button:focus-visible { outline: 2px solid #c7b5ca; outline-offset: 2px; }
.component-panel[hidden] { display: none; }
.component-panel { min-width: 0; }
.component-panel:focus-visible { outline: 2px solid #a5b9d4; outline-offset: 5px; }
.component-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.component-intro > div { min-width: 0; }
.component-eyebrow { margin: 0 0 7px; color: #c5acbd; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.component-intro h3 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.035em; font-weight: 560; }
.component-intro h3 + p { margin: 0; color: #b3bfce; font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.component-scope { padding: 17px 20px; border-left: 2px solid #776378; background: #211f29; border-radius: 0 7px 7px 0; }
.component-scope h4 { margin: 0 0 11px; color: #d5c7d7; font-size: 14px; font-weight: 550; }
.component-scope ul { margin: 0; padding-left: 17px; color: #c2c4cf; }
.component-scope li { padding-left: 3px; font-size: 14px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.component-scope li + li { margin-top: 6px; }
.replay-panel .component-intro { grid-template-columns: 1fr; }
.replay-panel .project-log-demo { margin-top: 0; }
.case-studies { display: grid; gap: 16px; }
.case-study { padding: 22px; border: 1px solid #323d4b; border-radius: 12px; background: #1b222b; overflow: hidden; }
.case-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 20px; }
.case-number { font-size: 11px; color: #86a5cd; font-variant-numeric: tabular-nums; }
.case-heading h4 { min-width: 0; font-size: 19px; line-height: 1.5; font-weight: 550; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
.case-diagram { margin: 0 0 22px; padding: 15px 18px 18px; border: 1px solid #344255; border-radius: 9px; background-color: #121922; background-image: radial-gradient(#6f87a41d .7px, transparent .7px); background-size: 12px 12px; }
.case-diagram figcaption { color: #98abc2; font-size: 10px; letter-spacing: .02em; margin-bottom: 14px; }
.case-diagram figcaption > span { margin-right: 5px; color: #b6cbe8; }
.flow-sequence { display: flex; gap: 30px; align-items: stretch; }
.flow-node { position: relative; min-width: 0; padding: 12px 14px; border: 1px solid #405771; border-radius: 8px; background: #1c2939; }
.flow-sequence .flow-node { flex: 1; min-height: 86px; }
.flow-badge { display: flex; align-items: center; gap: 5px; color: #8aa9d0; font-size: 9px; line-height: 1.4; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.flow-node strong, .flow-outcome strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 550; color: #e0eafa; word-break: keep-all; overflow-wrap: anywhere; }
.flow-detail { display: block; margin-top: 4px; color: #a3b3c7; font-size: 11px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.flow-link { position: absolute; top: 50%; right: -31px; width: 30px; height: 16px; transform: translateY(-50%); color: #7b97bb; pointer-events: none; }
.flow-link svg { display: block; width: 100%; height: 100%; }
.flow-packet { fill: #c4ddf8; opacity: 0; pointer-events: none; }
.project-dialog[open] .diagram-flowing .flow-packet { animation: flow-packet-travel 4.8s linear var(--flow-delay, 0s) infinite; }
.flow-sequence .flow-node:nth-child(2) { --flow-delay: .75s; }
.flow-sequence .flow-node:nth-child(3) { --flow-delay: 1.5s; }
.flow-paths { --flow-delay: 1.1s; }
@keyframes flow-packet-travel {
  0%, 7% { transform: translateX(0); opacity: 0; }
  12% { opacity: .8; }
  38% { opacity: .8; }
  44%, 100% { transform: translateX(26px); opacity: 0; }
}
html.motion-reduced .flow-packet { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) .flow-packet { animation: none !important; }
}
.flow-finish { background: #1d302e; border-color: #48675c; }
.flow-finish .flow-badge { color: #9bbfae; }
.flow-finish strong { color: #d8eee3; }
.flow-branch { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 36px; align-items: center; }
.flow-entry .flow-link { right: -37px; width: 36px; }
.flow-gate { background: #222d42; border-color: #617d9f; }
.flow-diamond { display: inline-block; width: 6px; height: 6px; border: 1px solid #b4cdee; transform: rotate(45deg); margin-inline: 1px 2px; }
.flow-gate::after { content: ""; position: absolute; width: 16px; right: -17px; top: 50%; border-top: 1px solid #7b97bb; }
.flow-paths { display: grid; grid-auto-rows: 1fr; gap: 10px; min-width: 0; }
.flow-path { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; align-items: center; min-width: 0; min-height: 62px; padding: 10px 12px; border: 1px solid #405267; border-radius: 7px; background: #1b2735; }
.flow-path::before { content: ""; position: absolute; left: -21px; top: -11px; bottom: -11px; border-left: 1px solid #7b97bb; }
.flow-path:first-child::before { top: 50%; }
.flow-path:last-child::before { bottom: 50%; }
.flow-path .flow-link { left: -21px; right: auto; width: 20px; }
.flow-condition { color: #adc1dc; font-size: 10px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.flow-outcome { min-width: 0; padding-left: 10px; border-left: 1px solid #ffffff16; }
.flow-outcome strong { font-size: 13px; }
.flow-outcome .flow-detail { font-size: 10px; }
.flow-path-keep { border-color: #46665d; background: #1a2d2b; }
.flow-path-keep .flow-condition { color: #a9c8ba; }
.flow-path-keep strong { color: #d2e9dd; }
.flow-path-muted { background: #222731; border-color: #485365; }
.flow-path-muted .flow-condition { color: #b7c0ce; }
.case-flow { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0 26px; margin: 0; }
.case-flow dt { font-size: 11px; font-weight: 550; margin-bottom: 8px; color: #90a3bb; }
.case-flow dd { margin: 0; font-size: 15px; line-height: 1.7; letter-spacing: -.015em; word-break: keep-all; overflow-wrap: anywhere; }
.case-problem { padding-right: 26px; border-right: 1px solid #35404f; }
.case-problem dd { color: #b2bece; }
.case-action dt { color: #bdd3f2; }
.case-action dd { color: #e0e8f2; }
.case-change { grid-column: 1 / -1; display: grid; grid-template-columns: 95px 1fr; align-items: baseline; gap: 12px; margin: 20px -22px -22px; padding: 13px 22px; background: #8fae9f0c; border-top: 1px solid #8fae9f23; }
.case-change dt { margin: 0; color: #a8c8bc; }
.case-change dt span { margin-right: 5px; }
.case-change dd { color: #c8ddd3; font-size: 14px; }
.case-study.has-sources .case-change { margin-bottom: 0; }
.case-sources { margin: 0 -22px -22px; padding: 11px 22px 14px; background: #8fae9f0c; }
.case-sources a { color: #9fb6c9; font-size: 11px; }
.modal-next { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 25px; border: 0; border-top: 1px solid #404d5f; padding: 25px 0 0; margin-top: 32px; color: var(--text); background: none; text-align: left; cursor: pointer; }
.modal-next small { display: block; font-size: 11px; color: #8e9db0; margin-bottom: 9px; }
.modal-next strong { font-size: 18px; font-weight: 500; }
.modal-next > span:last-child { font-size: 30px; }
@media (max-width: 1050px) {
  .work-title > p { font-size: 17px; }
  .card-title-row h3 { font-size: 23px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .engineering-card .card-surface { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
  .engineering-card .card-topline { margin-bottom: 18px; }
  .engineering-card h3 { font-size: 28px; }
  .work-heading { padding-top: 45px; padding-bottom: 40px; }
  .work-title { display: block; }
  .work-title h1 { font-size: 68px; }
  .work-title > p { margin-top: 23px; }
  .work-title > p br { display: none; }
  .work-intro { font-size: 14px; margin-top: 15px; }
  .work-controls { gap: 10px; }
  .work-controls > p { display: none; }
  .featured-grid { gap: 34px 23px; }
  .card-title-row h3 { font-size: 20px; }
  .card-hook { font-size: 14px; }
  .card-topline { flex-wrap: wrap; gap: 5px; }
  .card-tags { gap: 8px; font-size: 11px; }
  .card-tags span + span::before { margin-right: 8px; }
  .archive-grid { column-gap: 25px; }
  .project-dialog { width: calc(100% - 32px); max-height: calc(100dvh - 32px); }
  .modal-toolbar { padding-inline: 24px; }
  .modal-content { padding: 0 25px 30px; }
  .modal-cover { grid-template-columns: 1fr; gap: 24px; margin-inline: -25px; padding: 28px 25px; }
  .modal-art .project-art { min-height: 0; height: auto; aspect-ratio: 2.8; }
  .contribution-list { grid-template-columns: 1fr; gap: 16px; }
  .contribution-list li, .contribution-list li + li { padding: 0 0 0 30px; border-left: 0; }
  .contribution-list-grid { grid-template-columns: 1fr; }
  .contribution-list-grid li, .contribution-list-grid li + li { padding: 0 0 0 30px; border-top: 0; }
  .contribution-number { position: absolute; left: 0; top: 5px; }
  .contribution-list h4 { margin-top: 0; }
  .contribution-list p { margin-top: 4px; }
}
@media (max-width: 540px) {
  .engineering-card .card-surface { padding: 22px; }
  .engineering-card-bottom { flex-wrap: wrap; }
  .engineering-card .card-hook { font-size: 14px; }
  .engineering-art { padding: 18px; }
  .engineering-card .card-open { font-size: 11px; gap: 10px; }
  .engineering-card .card-topline { flex-wrap: wrap; }
  .work-title h1 { font-size: 55px; }
  .work-heading .section-kicker { font-size: 12px; }
  .work-filters { gap: 2px; width: 100%; justify-content: space-between; }
  .work-filters button { padding: 9px 10px; font-size: 12px; }
  .work-section-label { padding-top: 22px; }
  .featured-grid, .archive-grid { grid-template-columns: 1fr; }
  .featured-grid { gap: 33px; }
  .card-title-row h3 { font-size: 23px; }
  .card-topline { flex-wrap: nowrap; font-size: 10px; }
  .card-info { padding: 22px 20px 0; }
  .featured-card .card-surface { min-height: 410px; aspect-ratio: auto; }
  .featured-card .card-title-row h3 { font-size: 25px; }
  .featured-card .card-topline { flex-wrap: wrap; }
  .card-footer { padding: 0 20px 20px; gap: 12px; }
  .card-open { font-size: 0; gap: 0; }
  .card-open > span { width: 31px; height: 31px; }
  .card-surface { border-radius: 18px; }
  #archive-section { margin-top: 35px; }
  #personal-section { margin-bottom: 30px; }
  .project-dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .modal-content { padding-inline: 20px; }
  .modal-cover { margin-inline: -20px; padding-inline: 20px; }
  .modal-toolbar { padding-inline: 20px; min-height: 60px; }
  .modal-toolbar > span { font-size: 9px; letter-spacing: .1em; }
  .modal-toolbar-actions { gap: 5px; }
  .modal-toolbar #copy-project-link { min-width: 86px; padding-inline: 8px; font-size: 10px; }
  .modal-toolbar #close-dialog { gap: 8px; padding-left: 8px; font-size: 12px; }
  .modal-title { font-size: 29px; }
  .modal-lead { font-size: 17px; }
  .scope-summary { font-size: 16px; }
  .modal-facts { margin-top: 20px; }
  .modal-art .project-art { aspect-ratio: 2.5; }
  .modal-art .engineering-art { aspect-ratio: auto; }
  .case-study { padding: 18px; }
  .case-heading { gap: 10px; margin-bottom: 18px; }
  .case-heading h4 { font-size: 18px; }
  .case-flow { grid-template-columns: 1fr; gap: 18px; }
  .case-flow dd { font-size: 14px; }
  .case-problem { border-right: 0; padding-right: 0; }
  .case-change { grid-template-columns: 1fr; gap: 6px; margin: 0 -18px -18px; padding: 13px 18px; }
  .case-sources { margin-inline: -18px; margin-bottom: -18px; padding-inline: 18px; }
}
@media (max-width: 700px) {
  .system-overview { padding: 18px; }
  .system-overview-flow { gap: 14px; }
  .system-transport { padding-inline: 12px; }
  .component-intro { grid-template-columns: 1fr; gap: 18px; }
  .component-tabs button { padding: 11px 10px; }
  .component-tabs button > span { font-size: 12px; }
  .case-diagram { padding: 14px; }
  .flow-sequence { flex-direction: column; gap: 24px; }
  .flow-sequence .flow-node { min-height: 0; }
  .flow-sequence .flow-link, .flow-entry .flow-link { top: auto; right: auto; bottom: -25px; left: calc(50% - 15px); width: 30px; transform: rotate(90deg); transform-origin: center; height: 24px; }
  .flow-sequence .flow-node { display: grid; grid-template-columns: 24px 1fr; gap: 3px 8px; }
  .flow-sequence .flow-badge { grid-row: 1 / 3; margin: 0; padding-top: 4px; align-self: start; }
  .flow-sequence .flow-detail { grid-column: 2; margin-top: 0; }
  .flow-branch { grid-template-columns: 1fr; gap: 26px; }
  .flow-entry, .flow-gate { padding: 12px 14px; }
  .flow-entry .flow-link { bottom: -27px; }
  .flow-gate::after { left: 1px; right: 50%; top: 100%; width: auto; height: 14px; border-top: 0; border-right: 1px solid #7b97bb; border-bottom: 1px solid #7b97bb; border-radius: 0 0 6px; }
  .flow-paths { margin-left: 22px; }
  .flow-path:first-child::before { top: -13px; }
  .flow-path { grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 440px) {
  .system-overview-flow { grid-template-columns: 1fr; gap: 14px; }
  .system-transport { padding: 9px 0; border-inline: 0; border-block: 1px solid #48424d; text-align: left; }
  .system-transport br { display: none; }
  .system-overview-flow strong { font-size: 22px; }
  .component-tabs { gap: 2px; padding: 4px; }
  .component-tabs button { padding-inline: 8px; }
  .component-tabs button strong { font-size: 16px; }
  .component-tabs button > span { font-size: 12px; word-break: keep-all; }
  .component-intro h3 { font-size: 23px; }
}
