/* Subtle ashy-cold atmosphere + light glass surround */
html:has(body.projects-blueprint),
body.projects-blueprint {
    background-color: #f6fbff;
}

body.projects-blueprint {
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 45%, rgba(255, 255, 255, 0.7) 0%, transparent 70%),
        linear-gradient(180deg, #fbfdff 0%, #eef7fd 100%);
    background-attachment: fixed;
}

body.projects-blueprint::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 0 0 80px rgba(90, 102, 112, 0.06);
}

body.projects-blueprint .projects-page {
    position: relative;
    z-index: 1;
}

body.projects-blueprint nav.eco-nav {
    position: sticky;
    top: 0;
    z-index: 200;
}

.projects-page {
    width: 100%;
    max-width: 1280px;
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 24px 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-glass {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 10px 28px rgba(70, 82, 94, 0.08);
}

.docs-editor {
    width: 100%;
    border: 1px solid rgba(180, 188, 196, 0.35);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 4px 16px rgba(70, 82, 94, 0.06);
}

.docs-menubar {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 32px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.36);
    border-bottom: 1px solid rgba(168, 182, 194, 0.4);
}

.docs-menu {
    position: relative;
}

.docs-menu__btn {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    padding: 6px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
    cursor: var(--cursor-brown-circle);
}

.docs-menu__btn:hover,
.docs-menu__btn[aria-expanded="true"] {
    background: var(--bg-secondary);
}

.docs-menu__drop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 20;
    min-width: 220px;
    padding: 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px rgba(70, 82, 94, 0.08);
    box-sizing: border-box;
}

.docs-menu__drop[hidden] {
    display: none !important;
}

.docs-menu__drop button {
    display: block;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    padding: 8px 14px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    cursor: var(--cursor-brown-circle);
}

.docs-menu__drop button:hover {
    background: var(--bg-secondary);
}

.docs-menu__drop button.docs-chip:hover {
    background: transparent;
}

.docs-menu__rule {
    display: block;
    height: 1px;
    margin: 6px 0;
    background: var(--border-subtle);
}

.docs-menu__hint {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 4px;
    padding: 4px 14px 2px;
}

.docs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-height: 48px;
    padding: 6px 12px;
    background: rgba(210, 220, 228, 0.42);
    border-bottom: 1px solid rgba(168, 182, 194, 0.4);
}

.docs-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.docs-sep {
    width: 1px;
    height: 24px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

.docs-chip--bar {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-secondary);
    cursor: grab;
}

.docs-chip--bar.is-selected {
    border: 2.5px solid #3a322c;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.55);
    padding: 5.5px 10.5px;
}

.docs-chip--bar.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

#menu-insert .docs-chip {
    cursor: grab;
}

.docs-tabs {
    border: 1px solid rgba(168, 182, 194, 0.4);
    border-radius: 8px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.5);
}

.docs-icon-btn,
.docs-zoom-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
    cursor: var(--cursor-brown-circle);
}

.docs-icon-btn:hover,
.docs-zoom-label:hover {
    background: var(--bg-elevated);
}

.docs-zoom-label {
    min-width: 52px;
}

.docs-toolbar .blueprint-toggle {
    margin: 0;
}

.docs-toolbar .blueprint-tab {
    padding: 6px 12px;
}

.docs-toolbar .blueprint-trace-btn {
    background: rgba(255, 255, 255, 0.55);
}

* Project Blueprint — interactive preview panel *
.blueprint-panel {
    width: 100%;
    min-height: 0;
    height: clamp(360px, calc(100vh - 220px), 640px);
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: rgba(250, 252, 254, 0.58);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blueprint-panel.is-drag-over {
    box-shadow: inset 0 0 0 2px rgba(92, 82, 74, 0.22);
    background: var(--bg-secondary);
}

.blueprint-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
    cursor: var(--cursor-brown-circle);
    min-height: 0;
    position: relative;
}

.blueprint-empty.has-preview {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    text-align: left;
}

.blueprint-gif {
    flex: 1;
    display: flex;
    width: 100%;
    min-height: 0;
    background: #141414;
}

.blueprint-gif .ux-gif-wireframe,
.blueprint-gif .ux-gif-wireframe--cool,
.blueprint-gif .ux-gif-wireframe--amazon,
.blueprint-gif .ux-gif-wireframe--tutord,
.blueprint-gif .ux-gif-wireframe--doge,
.blueprint-gif .ux-gif-wireframe--stpaul,
.blueprint-gif .ux-gif-wireframe--has-media,
.blueprint-gif .ux-gif-wireframe--tutord.ux-gif-wireframe--has-media,
.blueprint-gif .ux-gif-wireframe--doge.ux-gif-wireframe--has-media,
.blueprint-gif .ux-gif-wireframe--stpaul.ux-gif-wireframe--has-media {
    flex: 1;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #141414;
    overflow: hidden;
}

.blueprint-gif--amazon {
    background: #000000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blueprint-gif--tutord,
.blueprint-gif .ux-gif-wireframe--tutord,
.blueprint-gif .ux-gif-wireframe--tutord.ux-gif-wireframe--has-media {
    background: #5b3d8c;
}

.blueprint-gif--doge,
.blueprint-gif .ux-gif-wireframe--doge,
.blueprint-gif .ux-gif-wireframe--doge.ux-gif-wireframe--has-media {
    background: #0b1c33;
}

.blueprint-banner {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.blueprint-gif .ux-gif-media-wrap {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.blueprint-gif .ux-gif-media--video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    filter: none;
}

.blueprint-gif .ia-tree {
    --ia-line: #a6b8d1;
    width: 100%;
    height: 100%;
}

.blueprint-gif .ia-tree__node--root {
    background: #ffffff;
    color: #0f111a;
    box-shadow: none;
}

.blueprint-gif .ia-tree__node--l2,
.blueprint-gif .ia-tree__node--l3 {
    background: #141414;
    border: 1px solid #a6b8d1;
}

.blueprint-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 28rem;
    line-height: 1.5;
}

.blueprint-empty strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.blueprint-active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.blueprint-active[hidden],
.blueprint-empty[hidden] {
    display: none !important;
}

.blueprint-header {
    padding: 18px 22px 12px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.blueprint-header-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 20px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.blueprint-org {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.blueprint-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

.blueprint-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.blueprint-type,
.blueprint-preview-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 4px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-secondary);
    display: inline-block;
    margin-top: 6px;
}

.blueprint-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.blueprint-tabs {
    display: flex;
    gap: 4px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3px;
    background: var(--bg-secondary);
}

.blueprint-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: var(--cursor-brown-circle);
    transition: background 0.2s, color 0.2s;
}

.blueprint-tab.is-active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(58, 52, 44, 0.08);
}

.blueprint-toggle {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: var(--cursor-brown-circle);
    user-select: none;
}

.blueprint-toggle input {
    accent-color: var(--text-primary);
    cursor: var(--cursor-brown-circle);
}

.blueprint-trace-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 7px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: var(--cursor-brown-circle);
}

.blueprint-trace-btn.is-active {
    border-color: var(--text-secondary);
    background: var(--bg-elevated);
}

.blueprint-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 20px 22px;
    cursor: var(--cursor-brown-circle);
}

.blueprint-content {
    animation: blueprintFade 0.35s ease;
    transform-origin: top left;
}

@keyframes blueprintFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

* Overview *
.blueprint-overview-grid {
    display: grid;
    gap: 16px;
    max-width: 640px;
}

.blueprint-overview-block h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.blueprint-overview-block p {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0;
}

.blueprint-impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blueprint-impact-list li {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    padding: 6px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.blueprint-explore-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 8px;
    display: inline-block;
    cursor: var(--cursor-brown-circle);
    border: none;
    background: none;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

* Process — vertical blueprint *
.blueprint-process {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 520px;
}

.blueprint-step {
    display: flex;
    gap: 16px;
    position: relative;
}

.blueprint-step-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    width: 28px;
    flex-shrink: 0;
    padding-top: 2px;
}

.blueprint-step-body {
    flex: 1;
    padding-bottom: 20px;
    border-left: 1px solid var(--border-subtle);
    padding-left: 16px;
    margin-left: 4px;
}

.blueprint-step:last-child .blueprint-step-body {
    border-left-color: transparent;
    padding-bottom: 0;
}

.blueprint-step-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.blueprint-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blueprint-node {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    padding: 8px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: var(--cursor-brown-circle);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    line-height: 1.3;
    text-align: left;
}

.blueprint-node:hover,
.blueprint-node.is-active {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.blueprint-node.is-you {
    border-color: var(--text-primary);
    font-weight: 500;
}

.blueprint-node.is-you::after {
    content: ' · YOU';
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.blueprint-recruiter .blueprint-node.is-team-only {
    opacity: 0.35;
    pointer-events: none;
}

* Decisions *
.blueprint-decisions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blueprint-decision-card {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 18px;
    background: var(--bg-secondary);
    max-width: 640px;
}

.blueprint-decision-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.blueprint-decision-question {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 14px;
    line-height: 1.4;
}

.blueprint-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.blueprint-option {
    font-size: 0.72rem;
    padding: 8px 12px;
    border: 1px dashed var(--border-subtle);
    border-radius: 6px;
    color: var(--text-muted);
    background: var(--bg-primary);
}

.blueprint-option.is-selected {
    border-style: solid;
    border-color: var(--text-primary);
    color: var(--text-primary);
    font-weight: 500;
}

.blueprint-decision-why {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.blueprint-evidence-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--text-primary);
    background: none;
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: var(--cursor-brown-circle);
}

.blueprint-trace-target {
    cursor: var(--cursor-brown-circle);
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--text-primary);
    font-size: 0.72rem;
    margin-top: 8px;
    display: inline-block;
}

* Reasoning chain *
.blueprint-chain {
    max-width: 420px;
    margin-top: 8px;
}

.blueprint-chain-step {
    position: relative;
    padding-left: 20px;
    padding-bottom: 16px;
    border-left: 1px solid var(--border-subtle);
    margin-left: 6px;
}

.blueprint-chain-step:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.blueprint-chain-step::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 1px solid var(--bg-primary);
}

.blueprint-chain-step.is-lit::before {
    background: var(--text-primary);
}

.blueprint-chain-step.is-lit {
    border-left-color: var(--text-secondary);
}

.blueprint-chain-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.blueprint-chain-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-primary);
    margin: 0;
}

* Detail panel (node click) *
.blueprint-detail {
    border-top: 1px solid var(--border-subtle);
    padding: 14px 22px;
    background: var(--bg-secondary);
    flex-shrink: 0;
    max-height: 140px;
    overflow: auto;
}

.blueprint-detail[hidden] {
    display: none !important;
}

.blueprint-detail h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.blueprint-detail p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.blueprint-detail-decision {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

* Draggable cards *
.portfolio-card.is-draggable {
    cursor: grab;
}

.portfolio-card.is-draggable:active {
    cursor: grabbing;
}

.portfolio-card.is-selected {
    outline: 2px solid var(--text-secondary);
    outline-offset: 3px;
}

.portfolio-card.is-dragging {
    opacity: 0.55;
}

.portfolio-card__drag-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 0.04em;
}

* Architecture map tree — horizontal flow *
.blueprint-map {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.blueprint-map--compact {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    width: 100%;
}

.blueprint-map-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.blueprint-map-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.blueprint-map-tree {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 8px 12px 4px;
    scrollbar-width: thin;
}

.blueprint-map-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 64px;
    max-width: 110px;
}

.blueprint-map-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 1px solid var(--bg-primary);
    flex-shrink: 0;
}

.blueprint-map-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.35;
    word-break: break-word;
}

.blueprint-map-line {
    width: 18px;
    height: 1px;
    background: var(--border-subtle);
    margin: 3px 2px 0;
    flex-shrink: 0;
}

.blueprint-map-children {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
}

.blueprint-map-leaf {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    padding: 3px 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    white-space: nowrap;
}

.blueprint-map--wide {
    width: 100%;
    text-align: left;
}

.blueprint-map--wide .blueprint-map-title,
.blueprint-map--wide .blueprint-map-sub {
    text-align: left;
}

.blueprint-map-tree--spread {
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
    overflow-x: auto;
}

.blueprint-map-tree--spread .blueprint-map-line {
    flex: 1 1 24px;
    width: auto;
    min-width: 16px;
    max-width: 80px;
    margin-top: 3px;
}

.blueprint-map-tree--spread .blueprint-map-node {
    min-width: 72px;
    max-width: 140px;
}

.blueprint-hover-preview {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 22px 28px 18px;
    box-sizing: border-box;
    animation: blueprintFade 0.35s ease;
}

.blueprint-preview-header {
    flex-shrink: 0;
    text-align: left;
    align-self: flex-start;
    max-width: 55%;
}

.blueprint-preview-org {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.blueprint-preview-name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.25;
}

.blueprint-preview-type {
    margin-top: 0;
}

.blueprint-preview-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 12px 0 8px;
}

.blueprint-preview-footer {
    flex-shrink: 0;
    text-align: center;
    padding-top: 8px;
}

.blueprint-hover-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.portfolio-card.is-previewing {
    outline: 2px solid var(--text-secondary);
    outline-offset: 3px;
    transform: translateY(-2px);
}

.blueprint-overview-recruiter {
    max-width: 480px;
}

.blueprint-recruiter-step {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.blueprint-recruiter-step:last-of-type {
    border-bottom: none;
}

.blueprint-recruiter-step h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.blueprint-recruiter-step p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

.blueprint-recruiter-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.blueprint-case-study-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 16px;
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blueprint-decision-selected {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.blueprint-trace-panel {
    margin-bottom: 20px;
    padding: 14px;
    border: 1px dashed var(--border-subtle);
    border-radius: 10px;
    background: var(--bg-secondary);
}

.blueprint-trace-prompt {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

.blueprint-chain-step.is-lit {
    animation: chainLit 0.4s ease backwards;
}

@keyframes chainLit {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

* User Experience Assembly *
.ux-assembly {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
}

.ux-assembly__lede {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.45;
}

.ux-assembly__start-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.ux-assembly__phase {
    position: relative;
    padding: 8px 0 18px 28px;
}

.ux-assembly__spine {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-subtle);
}

.ux-assembly__phase:last-child .ux-assembly__spine {
    bottom: 24px;
}

.ux-assembly__phase.is-dim {
    opacity: 0.28;
    pointer-events: none;
}

.ux-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ux-step__head {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.ux-step__kicker {
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ux-step__title {
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.ux-step__lede {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.ux-step__board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    min-height: 220px;
    padding: 14px;
    border: 1px dashed var(--border-subtle);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
}

.ux-step__start {
    grid-column: 1 / -1;
}

.ux-step__empty {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ux-assembly__phase-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.ux-assembly__nodes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.ux-node {
    text-align: left;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--bg-primary);
    cursor: var(--cursor-brown-circle);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ux-node--start {
    max-width: 520px;
    width: 100%;
    border-color: var(--text-secondary);
    background: var(--bg-secondary);
}

.ux-node:hover,
.ux-node.is-linked {
    border-color: var(--text-secondary);
    background: var(--bg-secondary);
}

.ux-node.is-active {
    border-color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--text-primary);
}

.ux-node__kind {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.ux-node__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ux-node__why {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

.ux-node__feeds {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    line-height: 1.35;
}

.ux-node__feed em {
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.62rem;
    color: var(--text-secondary);
}

.ux-preview {
    width: 100%;
    padding: 18px 22px 12px;
    box-sizing: border-box;
}

.ux-preview__start {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 14px;
}

.ux-preview__phases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
    margin-bottom: 12px;
}

.ux-preview__phase p {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.ux-preview__chip {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 3px 8px;
    margin: 0 4px 4px 0;
}

.docs-tabs {
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .ux-preview__phases {
        grid-template-columns: 1fr;
    }

    .ux-assembly__phase {
        padding-left: 18px;
    }
}

@media screen and (max-width: 768px) {
    .docs-menubar,
    .docs-toolbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .docs-toolbar {
        gap: 8px;
    }

    .docs-sep {
        display: none;
    }

    .blueprint-panel {
        min-height: 360px;
        height: auto;
        max-height: none;
    }

    .blueprint-header-top {
        flex-direction: column;
    }

    .blueprint-toolbar {
        width: 100%;
    }
}

body.eco-home.projects-blueprint .eco-work {
    overflow-x: clip;
}

body.eco-home.projects-blueprint .ux-gif-card-link:has(.ux-gif-wireframe--stpaul) {
    isolation: auto;
}

body.eco-home.projects-blueprint .ux-gif-wireframe,
body.eco-home.projects-blueprint .ux-gif-wireframe--has-media,
body.eco-home.projects-blueprint .bball-play,
body.eco-home.projects-blueprint .ia-tree,
body.eco-home.projects-blueprint .az-anim {
    isolation: auto;
}

body.eco-home.projects-blueprint::before {
    display: none;
}

body.eco-home.projects-blueprint .eco-work {
    padding-bottom: 64px;
}

body.eco-home.projects-blueprint .eco-work__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 40px;
    padding-bottom: 16px;
    overflow: visible;
}

body.eco-home.projects-blueprint .eco-work__heading .eco-work__title {
    margin: 0;
    line-height: 1.08;
    padding-bottom: 0.12em;
    overflow: visible;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

body.eco-home.projects-blueprint .projects-grid .ux-gif-card-link,
body.eco-home.projects-blueprint .projects-grid .ux-gif-card-link:hover,
body.eco-home.projects-blueprint .projects-grid .ux-gif-card-link:focus-visible {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    flex: none;
    transform: none;
    z-index: auto;
    transition: none;
}

.projects-grid .ux-gif-wireframe,
.projects-grid .ux-gif-wireframe--has-media {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 12px;
    overflow: hidden;
}

.projects-grid .az-anim,
.projects-grid .ux-gif-media-wrap,
.projects-grid .ux-gif-yt,
.projects-grid .bball-play {
    width: 100%;
    height: 100%;
}

.projects-grid .ux-gif-wireframe--stpaul .ia-tree,
body.eco-home.projects-blueprint .ux-gif-wireframe--stpaul .ia-tree {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects-grid .ux-gif-media-wrap {
    position: absolute;
    inset: 0;
}

.projects-grid .ux-gif-wireframe--tutord .ux-gif-media-wrap {
    inset: 14% 15%;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-grid .ux-gif-media,
.projects-grid .ux-gif-media--video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.projects-grid .ux-gif-wireframe--tutord .ux-gif-media--video {
    object-fit: contain;
}

body.eco-home.projects-blueprint .projects-grid .ux-gif-wireframe--mscs,
body.eco-home.projects-blueprint .projects-grid .ux-gif-wireframe--mscs.ux-gif-wireframe--has-media {
    background: #000000;
}

body.eco-home.projects-blueprint .projects-grid .ux-gif-wireframe--mscs .ux-gif-media-wrap {
    inset: 14% 15%;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.eco-home.projects-blueprint .projects-grid .ux-gif-wireframe--mscs .ux-gif-media,
body.eco-home.projects-blueprint .projects-grid .ux-gif-wireframe--mscs .ux-gif-media--video {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.projects-grid .ux-gif-wireframe--doge,
.projects-grid .ux-gif-wireframe--doge.ux-gif-wireframe--has-media,
body.eco-home.projects-blueprint .ux-gif-wireframe--doge,
body.eco-home.projects-blueprint .ux-gif-wireframe--doge.ux-gif-wireframe--has-media {
    background: #000000;
}

.projects-grid .ux-gif-wireframe--doge .ux-gif-media-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.projects-grid .ux-gif-wireframe--doge .ux-gif-media--video,
body.eco-home.projects-blueprint .ux-gif-wireframe--doge .ux-gif-media--video {
    position: relative;
    inset: auto;
    width: auto;
    height: 78%;
    max-width: 42%;
    max-height: 78%;
    object-fit: contain;
    border-radius: 22px;
    background: #000000;
    filter: none;
    transform: none;
    box-shadow:
        0 0 0 1.5px #ffffff,
        0 0 16px rgba(255, 255, 255, 0.55),
        0 10px 22px rgba(255, 255, 255, 0.22);
}

.projects-grid .ux-gif-heading {
    min-width: 0;
    white-space: normal;
    font-size: 18px;
}

.projects-grid .ux-gif-meta,
.projects-grid .ux-gif-tags {
    flex-wrap: wrap;
}

.projects-grid .ux-gif-description {
    font-size: 14px;
    line-height: 1.4;
}

.projects-grid .ux-gif-featured,
body.eco-home.projects-blueprint .projects-grid .ux-gif-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    font-family: var(--font-fragmentmono, 'IBM Plex Mono', ui-monospace, monospace);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
}

.projects-grid .ux-gif-featured + .ux-gif-featured,
body.eco-home.projects-blueprint .projects-grid .ux-gif-featured + .ux-gif-featured {
    left: calc(18px + 28px + 8ch + 0.48em);
    z-index: 10;
}

.projects-grid .ux-gif-featured svg,
body.eco-home.projects-blueprint .projects-grid .ux-gif-featured svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

body.eco-home.projects-blueprint .eco-tools {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px clamp(16px, 4vw, 52px) 80px;
    box-sizing: border-box;
}

body.eco-home.projects-blueprint .eco-tools .eco-work__title {
    margin-bottom: 16px;
}

body.eco-home.projects-blueprint .eco-tools__lede {
    margin: 0 0 40px;
    max-width: 720px;
    font-family: var(--font-inter-24-pt, Inter, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--color-charcoal, #2a2a2a);
}

body.eco-home.projects-blueprint .projects-page {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: block;
}
