html.portfolio-brain-page {
    min-height: 100%;
    background: #080a07;
}

html.portfolio-brain-page body {
    margin: 0;
    background: #080a07;
    overflow-x: hidden;
}

html.portfolio-showcase-page body {
    min-height: 100vh;
}

html.portfolio-brain-page header {
    border-color: rgba(242, 230, 190, 0.12);
    background: rgba(8, 10, 7, 0.84);
    color: #efe8d2;
    backdrop-filter: blur(18px);
}

html.portfolio-brain-page header a,
html.portfolio-brain-page header button,
html.portfolio-brain-page header span {
    color: inherit;
}

html.portfolio-brain-page header .bg-blue-600 {
    background: #d8b75f;
    color: #090b08;
}

html.portfolio-brain-page header .bg-blue-50,
html.portfolio-brain-page header .hover\:bg-gray-100:hover {
    background: rgba(216, 183, 95, 0.12);
}

html.portfolio-brain-page header .text-blue-700,
html.portfolio-brain-page header .text-gray-700,
html.portfolio-brain-page header .text-gray-900 {
    color: #efe8d2;
}

html.portfolio-brain-page header .border-gray-200 {
    border-color: rgba(242, 230, 190, 0.14);
}

html.portfolio-brain-page footer {
    display: none;
}

.portfolio-brain {
    --bg: #080a07;
    --panel: rgba(18, 23, 17, 0.72);
    --panel-strong: rgba(20, 25, 19, 0.92);
    --panel-soft: rgba(243, 232, 202, 0.055);
    --ink: #f4ead1;
    --muted: rgba(244, 234, 209, 0.62);
    --dim: rgba(244, 234, 209, 0.36);
    --line: rgba(244, 234, 209, 0.13);
    --line-strong: rgba(244, 234, 209, 0.24);
    --gold: #d8b75f;
    --green: #7af0aa;
    --cyan: #70d9f2;
    --coral: #ef805f;
    --violet: #bca1ff;
    min-height: min(780px, calc(100vh - 3.5rem));
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 62% 38%, rgba(112, 217, 242, 0.1), transparent 34%),
        radial-gradient(ellipse at 18% 72%, rgba(216, 183, 95, 0.09), transparent 28%),
        linear-gradient(90deg, rgba(244, 234, 209, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(244, 234, 209, 0.032) 1px, transparent 1px),
        linear-gradient(135deg, #080a07 0%, #10130e 48%, #090c0a 100%);
    background-size: 56px 56px, 56px 56px, auto;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.portfolio-brain[data-agent-mode="boot"] {
    cursor: progress;
}

.portfolio-brain *,
.portfolio-brain *::before,
.portfolio-brain *::after {
    box-sizing: border-box;
}

.portfolio-brain::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.36) 100%),
        linear-gradient(90deg, rgba(122, 240, 170, 0.08), transparent 18%, transparent 82%, rgba(216, 183, 95, 0.08)),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 5px);
    mix-blend-mode: screen;
}

.portfolio-boot {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 36% 46%, rgba(112, 217, 242, 0.13), transparent 28%),
        radial-gradient(circle at 64% 42%, rgba(216, 183, 95, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(2, 3, 3, 0.98), rgba(8, 10, 7, 0.92));
    backdrop-filter: blur(20px);
    transition: opacity 640ms ease, visibility 640ms ease, transform 640ms ease;
}

.portfolio-boot::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgba(244, 234, 209, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(244, 234, 209, 0.035) 1px, transparent 1px),
        repeating-linear-gradient(180deg, transparent 0, transparent 7px, rgba(112, 217, 242, 0.045) 8px);
    background-size: 54px 54px, 54px 54px, auto;
}

.portfolio-boot.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
}

.portfolio-boot-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 560px);
    gap: 20px;
    width: min(1020px, 100%);
    align-items: stretch;
}

.portfolio-boot-cinema {
    position: relative;
    min-height: 330px;
    border: 1px solid rgba(244, 234, 209, 0.13);
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(112, 217, 242, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(244, 234, 209, 0.035), rgba(244, 234, 209, 0.01)),
        #030504;
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.08),
        0 34px 100px rgba(0, 0, 0, 0.42);
}

.portfolio-boot-cinema::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(244, 234, 209, 0.032) 1px, transparent 1px),
        linear-gradient(180deg, rgba(244, 234, 209, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.6;
}

.portfolio-boot-cinema::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 50% 48%, transparent 0 26%, rgba(3, 5, 4, 0.76) 62%);
}

.portfolio-boot-orbit {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 1;
    width: 260px;
    height: 190px;
    transform: translate(-50%, -50%);
}

.portfolio-boot-orbit span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(112, 217, 242, 0.16);
    border-radius: 50%;
    opacity: 0.28;
    transform: rotate(calc(var(--ring-rotation, 0deg))) scale(0.78);
    transition: opacity 420ms ease, transform 640ms ease;
}

.portfolio-boot-orbit span:nth-child(1) {
    --ring-rotation: -10deg;
}

.portfolio-boot-orbit span:nth-child(2) {
    --ring-rotation: 22deg;
    border-color: rgba(216, 183, 95, 0.18);
}

.portfolio-boot-orbit span:nth-child(3) {
    --ring-rotation: 70deg;
    border-color: rgba(122, 240, 170, 0.13);
}

.portfolio-boot[data-boot-phase="wake"] .portfolio-boot-orbit span,
.portfolio-boot[data-boot-phase="eyes"] .portfolio-boot-orbit span,
.portfolio-boot[data-boot-phase="online"] .portfolio-boot-orbit span {
    opacity: 0.58;
    transform: rotate(calc(var(--ring-rotation, 0deg) + 12deg)) scale(1);
    animation: portfolio-boot-orbit 3.4s linear infinite;
}

.portfolio-boot-face {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 270px;
    height: 176px;
    border: 1px solid rgba(244, 234, 209, 0.16);
    border-radius: 44% 44% 36% 36%;
    background:
        linear-gradient(180deg, rgba(244, 234, 209, 0.1), rgba(244, 234, 209, 0.025)),
        rgba(6, 8, 8, 0.86);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        inset 0 -28px 48px rgba(0, 0, 0, 0.36),
        0 0 54px rgba(112, 217, 242, 0.08);
    transform: translate(-50%, -50%) translateY(14px) rotate(-1deg);
    transition: transform 520ms ease, box-shadow 520ms ease, border-color 520ms ease;
}

.portfolio-boot[data-boot-phase="wake"] .portfolio-boot-face,
.portfolio-boot[data-boot-phase="eyes"] .portfolio-boot-face,
.portfolio-boot[data-boot-phase="online"] .portfolio-boot-face {
    border-color: rgba(112, 217, 242, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        inset 0 -28px 48px rgba(0, 0, 0, 0.36),
        0 0 70px rgba(112, 217, 242, 0.16);
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
}

.portfolio-boot-eye {
    position: absolute;
    top: 70px;
    width: 44px;
    height: 16px;
    border-radius: 999px;
    background: rgba(112, 217, 242, 0.08);
    box-shadow: none;
    transform: scaleY(0.16);
    transition: transform 380ms ease, background 360ms ease, box-shadow 360ms ease;
}

.portfolio-boot-eye-left {
    left: 68px;
}

.portfolio-boot-eye-right {
    right: 68px;
}

.portfolio-boot[data-boot-phase="eyes"] .portfolio-boot-eye,
.portfolio-boot[data-boot-phase="online"] .portfolio-boot-eye {
    background: #70d9f2;
    box-shadow:
        0 0 14px rgba(112, 217, 242, 0.85),
        0 0 42px rgba(112, 217, 242, 0.45);
    transform: scaleY(1);
    animation: portfolio-boot-eye-pulse 1.5s ease-in-out infinite;
}

.portfolio-boot-mouth {
    position: absolute;
    left: 50%;
    bottom: 48px;
    width: 62px;
    height: 2px;
    border-radius: 999px;
    background: rgba(216, 183, 95, 0.22);
    box-shadow: 0 0 18px rgba(216, 183, 95, 0.12);
    transform: translateX(-50%);
}

.portfolio-boot[data-boot-phase="online"] .portfolio-boot-mouth {
    background: rgba(216, 183, 95, 0.72);
    box-shadow: 0 0 22px rgba(216, 183, 95, 0.4);
}

.portfolio-boot-scan {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 18%;
    z-index: 3;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(112, 217, 242, 0.8), transparent);
    opacity: 0;
    transform: translateY(-80px);
}

.portfolio-boot[data-boot-phase="wake"] .portfolio-boot-scan,
.portfolio-boot[data-boot-phase="eyes"] .portfolio-boot-scan,
.portfolio-boot[data-boot-phase="online"] .portfolio-boot-scan {
    opacity: 1;
    animation: portfolio-boot-face-scan 1.5s ease-in-out infinite;
}

.portfolio-boot-readout {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(244, 234, 209, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(3, 5, 4, 0.68);
    color: rgba(244, 234, 209, 0.58);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.portfolio-boot-readout strong {
    color: #fff5d8;
}

.portfolio-boot-frame {
    position: relative;
    width: min(560px, 100%);
    border: 1px solid rgba(244, 234, 209, 0.18);
    border-radius: 8px;
    padding: 28px;
    overflow: hidden;
    background: rgba(9, 12, 9, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        0 34px 100px rgba(0, 0, 0, 0.48);
}

.portfolio-boot-frame::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(120deg, transparent 0%, rgba(112, 217, 242, 0.13) 46%, transparent 62%);
    transform: translateX(-110%);
    animation: portfolio-boot-sweep 2.2s ease-in-out infinite;
}

.portfolio-boot-kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-boot h2 {
    margin: 0;
    color: #fff5d8;
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 880;
    line-height: 1;
}

.portfolio-boot-status {
    margin-top: 18px;
    color: rgba(244, 234, 209, 0.7);
    font-size: 0.92rem;
    font-weight: 760;
}

.portfolio-boot-progress {
    position: relative;
    height: 8px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid rgba(244, 234, 209, 0.13);
    border-radius: 999px;
    background: rgba(244, 234, 209, 0.05);
}

.portfolio-boot-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--cyan), var(--green));
    box-shadow: 0 0 24px rgba(112, 217, 242, 0.46);
    transition: width 120ms linear;
}

.portfolio-boot:not(.is-controlled) .portfolio-boot-progress span {
    width: 34%;
    animation: portfolio-boot-indeterminate 1.45s ease-in-out infinite;
}

.portfolio-boot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.portfolio-boot-grid span {
    border: 1px solid rgba(244, 234, 209, 0.11);
    border-radius: 8px;
    padding: 9px 10px;
    background: rgba(244, 234, 209, 0.04);
    color: rgba(244, 234, 209, 0.5);
    font-size: 0.68rem;
    font-weight: 860;
}

.portfolio-boot-grid span.is-active {
    border-color: rgba(112, 217, 242, 0.44);
    color: #dff8ff;
    background: rgba(112, 217, 242, 0.1);
}

.portfolio-hero,
.portfolio-projects,
.portfolio-map-section {
    position: relative;
    z-index: 1;
}

.portfolio-hero {
    display: grid;
    grid-template-columns: minmax(420px, 0.86fr) minmax(460px, 1fr);
    gap: 34px;
    min-height: min(780px, calc(100vh - 3.5rem));
    padding: 70px max(24px, calc((100vw - 1240px) / 2)) 42px;
    align-items: center;
    transition: min-height 680ms ease, padding 680ms ease, gap 680ms ease;
}

.portfolio-brain[data-map-state="revealing"] .portfolio-hero,
.portfolio-brain[data-map-state="revealed"] .portfolio-hero {
    min-height: min(610px, calc(100vh - 3.5rem));
    padding-top: 42px;
    padding-bottom: 24px;
}

.portfolio-hero-copy {
    min-width: 0;
    max-width: 620px;
}

.portfolio-kicker,
.portfolio-panel-kicker {
    margin: 0 0 15px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portfolio-kicker::before,
.portfolio-panel-kicker::before {
    display: inline-block;
    width: 28px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--gold);
    content: "";
}

.portfolio-hero h1 {
    margin: 0;
    max-width: 620px;
    color: #fff5d8;
    font-size: 4.5rem;
    font-weight: 820;
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
}

.portfolio-hero h1 span {
    display: block;
}

.portfolio-title-brand {
    color: #fff5d8;
}

.portfolio-title-line {
    color: #f1cf75;
    font-size: 0.78em;
    white-space: nowrap;
}

.portfolio-subtitle {
    margin: 24px 0 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.portfolio-system-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.portfolio-system-rail span {
    min-width: 68px;
    border: 1px solid rgba(244, 234, 209, 0.12);
    border-radius: 8px;
    padding: 7px 10px;
    background: rgba(244, 234, 209, 0.04);
    color: rgba(244, 234, 209, 0.42);
    font-size: 0.66rem;
    font-weight: 900;
    text-align: center;
}

.portfolio-brain[data-agent-mode="welcome"] [data-status-pill="welcome"],
.portfolio-brain[data-agent-mode="scan"] [data-status-pill="scan"],
.portfolio-brain[data-agent-mode="focus"] [data-status-pill="focus"],
.portfolio-brain[data-agent-mode="export"] [data-status-pill="export"] {
    border-color: rgba(112, 217, 242, 0.5);
    background: rgba(112, 217, 242, 0.11);
    color: #dbf8ff;
    box-shadow: inset 0 -1px 0 rgba(112, 217, 242, 0.32);
}

.portfolio-storyline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 560px);
    margin-top: 16px;
}

.portfolio-storyline span {
    position: relative;
    min-height: 58px;
    border: 1px solid rgba(244, 234, 209, 0.1);
    border-radius: 8px;
    padding: 9px 10px;
    overflow: hidden;
    background: rgba(244, 234, 209, 0.035);
    color: rgba(244, 234, 209, 0.48);
    font-size: 0.72rem;
    font-weight: 820;
    line-height: 1.28;
}

.portfolio-storyline span::after {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 1px;
    content: "";
    background: rgba(244, 234, 209, 0.16);
    transform: scaleX(0.35);
    transform-origin: left center;
    transition: transform 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.portfolio-storyline strong {
    display: block;
    margin-bottom: 6px;
    color: rgba(216, 183, 95, 0.74);
    font-size: 0.62rem;
    font-weight: 900;
}

.portfolio-storyline span.is-active {
    border-color: rgba(112, 217, 242, 0.38);
    background:
        linear-gradient(135deg, rgba(112, 217, 242, 0.12), rgba(244, 234, 209, 0.035)),
        rgba(244, 234, 209, 0.04);
    color: #f8f0d7;
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.08),
        0 16px 48px rgba(112, 217, 242, 0.08);
}

.portfolio-storyline span.is-active::after {
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(112, 217, 242, 0.58);
    transform: scaleX(1);
}

.portfolio-storyline span.is-complete {
    border-color: rgba(216, 183, 95, 0.24);
    color: rgba(244, 234, 209, 0.64);
}

.portfolio-storyline span.is-complete::after {
    background: rgba(216, 183, 95, 0.72);
    transform: scaleX(0.86);
}

.portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.portfolio-guide-console {
    position: relative;
    width: min(100%, 560px);
    margin-top: 16px;
    border: 1px solid rgba(112, 217, 242, 0.18);
    border-radius: 8px;
    padding: 13px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(112, 217, 242, 0.085), rgba(216, 183, 95, 0.045)),
        rgba(3, 7, 7, 0.64);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.09),
        0 18px 52px rgba(0, 0, 0, 0.2);
}

.portfolio-guide-console::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(112, 217, 242, 0.08), transparent),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
    content: "";
    opacity: 0.72;
    transform: translateX(-65%);
}

.portfolio-brain[data-guide-busy="true"] .portfolio-guide-console::before {
    animation: portfolio-guide-console-scan 1.3s ease-in-out infinite;
}

.portfolio-brain[data-agent-plan-busy="true"] .portfolio-bot-stage {
    border-color: rgba(112, 217, 242, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.14),
        0 32px 94px rgba(0, 0, 0, 0.36),
        0 0 58px rgba(112, 217, 242, 0.1);
}

.portfolio-brain[data-robot-agent-state="thinking"] .portfolio-agent-hud,
.portfolio-brain[data-robot-agent-state="scanning"] .portfolio-agent-hud {
    border-color: rgba(112, 217, 242, 0.44);
    background: rgba(112, 217, 242, 0.12);
}

.portfolio-brain[data-robot-agent-state="playful"] .portfolio-bot-stage,
.portfolio-brain[data-robot-emotion="playful"] .portfolio-bot-stage {
    animation: portfolio-agent-playful-shift 820ms cubic-bezier(0.22, 0.9, 0.2, 1) both;
}

.portfolio-brain[data-robot-agent-state="presenting"] .portfolio-bot-caption,
.portfolio-brain[data-robot-agent-state="scanning"] .portfolio-bot-caption {
    border-color: rgba(216, 183, 95, 0.28);
}

.portfolio-guide-console label {
    position: relative;
    display: block;
    margin-bottom: 9px;
    color: rgba(244, 234, 209, 0.72);
    font-size: 0.68rem;
    font-weight: 900;
}

.portfolio-guide-input-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
}

.portfolio-guide-input-row input {
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(244, 234, 209, 0.13);
    border-radius: 8px;
    padding: 0 13px;
    background: rgba(0, 0, 0, 0.26);
    color: #fff5d8;
    font: 760 0.88rem/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
}

.portfolio-guide-input-row input::placeholder {
    color: rgba(244, 234, 209, 0.34);
}

.portfolio-guide-input-row input:focus {
    border-color: rgba(112, 217, 242, 0.52);
    outline: none;
    box-shadow: 0 0 0 3px rgba(112, 217, 242, 0.1);
}

.portfolio-guide-input-row button,
.portfolio-guide-chips button {
    min-height: 36px;
    border: 1px solid rgba(112, 217, 242, 0.24);
    border-radius: 8px;
    background: rgba(112, 217, 242, 0.08);
    color: #dbf8ff;
    font-size: 0.74rem;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.portfolio-guide-input-row button {
    height: 42px;
}

.portfolio-guide-input-row button:hover,
.portfolio-guide-chips button:hover {
    border-color: rgba(216, 183, 95, 0.54);
    background: rgba(216, 183, 95, 0.1);
    transform: translateY(-1px);
}

.portfolio-guide-input-row button:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.portfolio-guide-chips {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.portfolio-guide-chips button {
    min-height: 30px;
    padding: 0 10px;
    color: rgba(244, 234, 209, 0.78);
    background: rgba(244, 234, 209, 0.045);
}

.portfolio-guide-console p {
    position: relative;
    margin: 10px 0 0;
    color: rgba(244, 234, 209, 0.45);
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.45;
}

.portfolio-guide-console p[data-guide-tone="thinking"] {
    color: rgba(112, 217, 242, 0.8);
}

.portfolio-guide-console p[data-guide-tone="ready"] {
    color: rgba(124, 218, 159, 0.82);
}

.portfolio-guide-console p[data-guide-tone="error"] {
    color: rgba(238, 143, 115, 0.92);
}

.portfolio-primary,
.portfolio-secondary,
.portfolio-ghost,
.portfolio-tab {
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0 16px;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease,
        color 160ms ease, box-shadow 160ms ease;
}

.portfolio-action-link {
    display: inline-grid;
    place-items: center;
    text-decoration: none;
}

.portfolio-primary {
    border-color: rgba(244, 234, 209, 0.5);
    background: #f4ead1;
    color: #090b08;
    box-shadow: 0 14px 44px rgba(216, 183, 95, 0.22);
}

.portfolio-secondary {
    border-color: rgba(244, 234, 209, 0.18);
    background: rgba(244, 234, 209, 0.055);
    color: #f4ead1;
}

.portfolio-primary:hover,
.portfolio-secondary:hover,
.portfolio-ghost:hover,
.portfolio-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 183, 95, 0.58);
}

.portfolio-primary:focus-visible,
.portfolio-secondary:focus-visible,
.portfolio-ghost:focus-visible,
.portfolio-tab:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.portfolio-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 560px);
    max-width: 100%;
    margin-top: 44px;
}

.portfolio-metrics div {
    position: relative;
    min-height: 86px;
    border: 1px solid rgba(244, 234, 209, 0.14);
    border-radius: 8px;
    padding: 15px 16px;
    overflow: hidden;
    background: rgba(244, 234, 209, 0.045);
}

.portfolio-metrics div::after {
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 32px;
    height: 1px;
    background: rgba(216, 183, 95, 0.8);
    content: "";
}

.portfolio-metrics strong {
    display: block;
    color: #fff5d8;
    font-size: 2.1rem;
    line-height: 1;
}

.portfolio-metrics span {
    display: block;
    margin-top: 10px;
    color: var(--dim);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portfolio-bot-stage {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(244, 234, 209, 0.13);
    border-radius: 8px;
    cursor: default;
    user-select: none;
    background:
        linear-gradient(180deg, rgba(244, 234, 209, 0.07), rgba(244, 234, 209, 0.025)),
        rgba(9, 12, 9, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        0 30px 90px rgba(0, 0, 0, 0.34);
    transition: min-height 680ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.portfolio-brain[data-welcome-phase="dance"] .portfolio-bot-stage {
    border-color: rgba(216, 183, 95, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.14),
        0 30px 90px rgba(0, 0, 0, 0.34),
        0 0 88px rgba(216, 183, 95, 0.12);
    animation: portfolio-welcome-stage-bob 880ms ease-in-out 3;
}

.portfolio-brain[data-welcome-phase="steady"] .portfolio-bot-stage {
    animation: portfolio-showcase-robot-steady 760ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.portfolio-brain[data-welcome-phase="brain"] .portfolio-brain-hotspot::before,
.portfolio-brain[data-director-signal="brain"] .portfolio-brain-hotspot::before {
    opacity: 0.92;
    transform: scale(0.92);
    animation: portfolio-hotspot-ready 1.05s ease-in-out infinite;
}

.portfolio-brain[data-welcome-phase="briefing"] .portfolio-agent-readout,
.portfolio-brain[data-welcome-phase="ready"] .portfolio-agent-readout {
    border-color: rgba(112, 217, 242, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.1),
        0 16px 44px rgba(0, 0, 0, 0.26),
        0 0 34px rgba(112, 217, 242, 0.08);
}

.portfolio-brain[data-welcome-phase="briefing"] .portfolio-bot-caption,
.portfolio-brain[data-welcome-phase="ready"] .portfolio-bot-caption,
.portfolio-brain[data-map-state="revealing"] .portfolio-bot-caption {
    animation: portfolio-caption-speak 760ms ease-out;
}

.portfolio-brain[data-welcome-phase="ready"] .portfolio-brain-hotspot::before {
    animation: portfolio-hotspot-ready 1.6s ease-in-out infinite;
}

.portfolio-brain[data-map-state="welcome"] .portfolio-bot-stage {
    border-color: rgba(112, 217, 242, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        0 30px 90px rgba(0, 0, 0, 0.34),
        0 0 70px rgba(112, 217, 242, 0.1);
}

.portfolio-brain[data-map-state="revealing"] .portfolio-bot-stage,
.portfolio-brain[data-map-state="revealed"] .portfolio-bot-stage {
    min-height: 500px;
}

.portfolio-bot-stage::before {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(244, 234, 209, 0.08);
    border-radius: 8px;
    content: "";
}

.portfolio-bot-stage::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, transparent 0%, rgba(112, 217, 242, 0.08) 48%, transparent 58%);
    transform: translateY(-100%);
    animation: portfolio-stage-scan 4.8s linear infinite;
}

.portfolio-stage-reticle,
.portfolio-stage-scan-light {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.portfolio-stage-reticle span {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(112, 217, 242, 0.12);
    border-radius: 999px;
    box-shadow:
        inset 0 0 38px rgba(112, 217, 242, 0.045),
        0 0 54px rgba(112, 217, 242, 0.06);
    transform: translate(-50%, -50%);
}

.portfolio-stage-reticle span:nth-child(1) {
    width: min(72%, 560px);
    height: min(72%, 560px);
}

.portfolio-stage-reticle span:nth-child(2) {
    width: min(48%, 360px);
    height: min(48%, 360px);
    border-color: rgba(216, 183, 95, 0.11);
}

.portfolio-stage-reticle span:nth-child(3) {
    width: 1px;
    height: 58%;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, transparent, rgba(112, 217, 242, 0.18), transparent);
    box-shadow: none;
}

.portfolio-stage-scan-light {
    opacity: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(112, 217, 242, 0.18), transparent 18%),
        linear-gradient(90deg, transparent 0%, rgba(112, 217, 242, 0.16) 48%, rgba(216, 183, 95, 0.1) 50%, transparent 66%);
    mix-blend-mode: screen;
    transform: translateX(-46%) skewX(-14deg);
}

.portfolio-brain[data-robot-gesture="brain"] .portfolio-stage-scan-light,
.portfolio-brain[data-robot-gesture="core"] .portfolio-stage-scan-light,
.portfolio-brain[data-robot-gesture="idle-scan"] .portfolio-stage-scan-light,
.portfolio-brain[data-agent-plan-busy="true"] .portfolio-stage-scan-light {
    animation: portfolio-stage-light-sweep 1.65s ease-in-out infinite;
}

.portfolio-brain[data-robot-gesture="brain"] .portfolio-stage-reticle span,
.portfolio-brain[data-robot-gesture="core"] .portfolio-stage-reticle span,
.portfolio-brain[data-robot-gesture="idle-scan"] .portfolio-stage-reticle span {
    border-color: rgba(112, 217, 242, 0.24);
}

#brain-bot-canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 560px;
    pointer-events: none;
    transition: height 680ms ease;
}

.portfolio-brain[data-map-state="revealing"] #brain-bot-canvas,
.portfolio-brain[data-map-state="revealed"] #brain-bot-canvas {
    height: 500px;
}

.portfolio-robot-hotspot {
    position: absolute;
    z-index: 4;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.portfolio-robot-hotspot::before,
.portfolio-robot-hotspot::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    content: "";
}

.portfolio-robot-hotspot::before {
    border: 1px solid rgba(112, 217, 242, 0.42);
    box-shadow:
        inset 0 0 24px rgba(112, 217, 242, 0.12),
        0 0 34px rgba(112, 217, 242, 0.22);
    opacity: 0.14;
    transform: scale(0.56);
    transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portfolio-robot-hotspot::after {
    border: 1px solid rgba(216, 183, 95, 0.38);
    opacity: 0.16;
    transform: scale(0.78);
    animation: portfolio-brain-pulse 2.2s ease-in-out infinite;
}

.portfolio-robot-hotspot span {
    position: absolute;
    left: 50%;
    top: 100%;
    min-width: 44px;
    border: 1px solid rgba(112, 217, 242, 0.24);
    border-radius: 7px;
    padding: 5px 7px;
    background: rgba(4, 8, 8, 0.78);
    color: rgba(229, 249, 255, 0.82);
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 8px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(12px);
}

.portfolio-robot-hotspot:hover::before,
.portfolio-robot-hotspot:focus-visible::before,
.portfolio-robot-hotspot:hover span,
.portfolio-robot-hotspot:focus-visible span {
    opacity: 0.9;
}

.portfolio-robot-hotspot:hover span,
.portfolio-robot-hotspot:focus-visible span {
    transform: translate(-50%, 3px);
}

.portfolio-robot-hotspot:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 5px;
}

.portfolio-robot-hotspot-head {
    left: 52%;
    top: 39%;
    width: 126px;
    height: 126px;
}

.portfolio-robot-hotspot-chest {
    left: 52%;
    top: 57%;
    width: 116px;
    height: 92px;
}

.portfolio-robot-hotspot-arm {
    top: 58%;
    width: 96px;
    height: 166px;
    border-radius: 44px;
}

.portfolio-robot-hotspot-left-arm {
    left: 38%;
}

.portfolio-robot-hotspot-right-arm {
    left: 66%;
}

.portfolio-robot-hotspot-chest::before {
    border-color: rgba(216, 183, 95, 0.32);
    box-shadow:
        inset 0 0 20px rgba(216, 183, 95, 0.1),
        0 0 26px rgba(216, 183, 95, 0.12);
}

.portfolio-robot-hotspot-chest::after {
    border-color: rgba(244, 234, 209, 0.24);
    animation-duration: 2.7s;
}

.portfolio-robot-hotspot-arm::before {
    border-color: rgba(122, 240, 170, 0.24);
    box-shadow:
        inset 0 0 18px rgba(122, 240, 170, 0.07),
        0 0 26px rgba(112, 217, 242, 0.1);
}

.portfolio-robot-hotspot-arm::after {
    border-color: rgba(112, 217, 242, 0.2);
    animation-duration: 3.1s;
}

.portfolio-brain-hotspot:hover::before,
.portfolio-brain-hotspot:focus-visible::before,
.portfolio-brain[data-map-state="welcome"] .portfolio-brain-hotspot::before {
    opacity: 0.86;
    transform: scale(0.78);
}

.portfolio-brain[data-map-state="welcome"] .portfolio-brain-hotspot::after {
    opacity: 0.72;
}

.portfolio-brain[data-active-hotspot="head"] .portfolio-robot-hotspot-head::before,
.portfolio-brain[data-robot-gesture="brain"] .portfolio-robot-hotspot-head::before,
.portfolio-brain[data-active-hotspot="chest"] .portfolio-robot-hotspot-chest::before,
.portfolio-brain[data-robot-gesture="core"] .portfolio-robot-hotspot-chest::before,
.portfolio-brain[data-active-hotspot="left-arm"] .portfolio-robot-hotspot-left-arm::before,
.portfolio-brain[data-active-hotspot="right-arm"] .portfolio-robot-hotspot-right-arm::before,
.portfolio-brain[data-robot-gesture="arm"] .portfolio-robot-hotspot-arm::before {
    opacity: 0.86;
    transform: scale(0.86);
}

.portfolio-brain[data-map-state="revealed"] .portfolio-brain-hotspot::before,
.portfolio-brain[data-map-state="revealed"] .portfolio-brain-hotspot::after {
    opacity: 0.22;
}

.portfolio-brain[data-robot-gesture="core"] .portfolio-robot-hotspot-chest::before {
    border-color: rgba(216, 183, 95, 0.68);
    box-shadow:
        inset 0 0 34px rgba(216, 183, 95, 0.18),
        0 0 48px rgba(216, 183, 95, 0.28);
}

.portfolio-brain[data-robot-gesture="arm"] .portfolio-robot-hotspot-arm::before {
    border-color: rgba(122, 240, 170, 0.44);
    box-shadow:
        inset 0 0 28px rgba(122, 240, 170, 0.1),
        0 0 42px rgba(122, 240, 170, 0.18);
}

.portfolio-showcase[data-robot="real"] .portfolio-robot-hotspot-head {
    left: 52%;
    top: 38%;
    width: 112px;
    height: 132px;
}

.portfolio-showcase[data-robot="real"] .portfolio-robot-hotspot-chest {
    left: 52%;
    top: 55%;
    width: 98px;
    height: 112px;
}

.portfolio-showcase[data-robot="real"] .portfolio-robot-hotspot-left-arm {
    left: 43%;
    top: 58%;
    width: 74px;
    height: 190px;
}

.portfolio-showcase[data-robot="real"] .portfolio-robot-hotspot-right-arm {
    left: 61%;
    top: 58%;
    width: 74px;
    height: 190px;
}

.portfolio-showcase[data-robot="premium"] .portfolio-robot-hotspot-head {
    left: 52%;
    top: 35%;
}

.portfolio-showcase[data-robot="premium"] .portfolio-robot-hotspot-chest {
    top: 56%;
}

.portfolio-showcase[data-robot="classic"] .portfolio-robot-hotspot-head {
    left: 52%;
    top: 38%;
}

.portfolio-agent-hud {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(244, 234, 209, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(7, 9, 7, 0.68);
    color: rgba(244, 234, 209, 0.62);
    font-size: 0.66rem;
    font-weight: 900;
    backdrop-filter: blur(14px);
}

.portfolio-agent-hud span:last-child {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(112, 217, 242, 0.8);
}

.portfolio-agent-readout {
    position: absolute;
    left: 18px;
    top: 18px;
    right: 150px;
    z-index: 3;
    max-width: 310px;
    border: 1px solid rgba(244, 234, 209, 0.12);
    border-radius: 8px;
    padding: 11px 12px;
    pointer-events: none;
    background: rgba(7, 9, 7, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.08),
        0 16px 44px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.portfolio-agent-readout span,
.portfolio-agent-readout em {
    display: block;
    overflow: hidden;
    color: rgba(244, 234, 209, 0.54);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 860;
    line-height: 1.35;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.portfolio-agent-readout strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #fff5d8;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-agent-readout em {
    margin-top: 7px;
    color: rgba(244, 234, 209, 0.62);
    text-transform: none;
}

.portfolio-bot-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    min-height: 48px;
    border: 1px solid rgba(244, 234, 209, 0.13);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(7, 9, 7, 0.78);
    color: rgba(244, 234, 209, 0.78);
    font-size: 0.86rem;
    line-height: 1.5;
    backdrop-filter: blur(18px);
}

.portfolio-projects {
    padding: 24px max(20px, calc((100vw - 1360px) / 2)) 42px;
}

.portfolio-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
}

.portfolio-section-heading h2 {
    margin: 0;
    color: #fff5d8;
    font-size: 1.75rem;
    font-weight: 820;
    line-height: 1.18;
}

.portfolio-section-heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.72;
}

.portfolio-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portfolio-project-card {
    --project-accent: var(--cyan);
    position: relative;
    display: grid;
    gap: 14px;
    min-height: 282px;
    border: 1px solid color-mix(in srgb, var(--project-accent) 30%, rgba(244, 234, 209, 0.1));
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--project-accent) 13%, transparent), transparent 40%),
        rgba(9, 12, 9, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.09),
        0 22px 68px rgba(0, 0, 0, 0.28);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.portfolio-project-card::before {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--project-accent), transparent);
    opacity: 0.68;
}

.portfolio-project-card:hover {
    border-color: color-mix(in srgb, var(--project-accent) 58%, rgba(244, 234, 209, 0.18));
    transform: translateY(-1px);
}

.portfolio-project-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.portfolio-project-card-head span,
.portfolio-project-card-head strong {
    border: 1px solid rgba(244, 234, 209, 0.12);
    border-radius: 8px;
    padding: 6px 8px;
    background: rgba(244, 234, 209, 0.045);
    color: rgba(244, 234, 209, 0.58);
    font-size: 0.66rem;
    font-weight: 900;
}

.portfolio-project-card-head strong {
    border-color: color-mix(in srgb, var(--project-accent) 42%, rgba(244, 234, 209, 0.1));
    color: #fff5d8;
}

.portfolio-project-card h3 {
    margin: 0;
    color: #fff5d8;
    font-size: 1.22rem;
    font-weight: 820;
    line-height: 1.25;
}

.portfolio-project-card p {
    margin: 0;
    color: rgba(244, 234, 209, 0.68);
    font-size: 0.88rem;
    line-height: 1.7;
}

.portfolio-project-architecture {
    border-left: 2px solid var(--project-accent);
    padding-left: 10px;
}

.portfolio-project-stack,
.portfolio-project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.portfolio-project-stack span,
.portfolio-project-highlights span {
    border: 1px solid rgba(244, 234, 209, 0.12);
    border-radius: 8px;
    padding: 6px 8px;
    background: rgba(244, 234, 209, 0.045);
    color: rgba(244, 234, 209, 0.76);
    font-size: 0.72rem;
    font-weight: 780;
}

.portfolio-project-highlights span {
    border-color: color-mix(in srgb, var(--project-accent) 28%, rgba(244, 234, 209, 0.1));
}

.portfolio-project-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.portfolio-project-focus,
.portfolio-project-link {
    min-height: 38px;
    border: 1px solid rgba(244, 234, 209, 0.14);
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(244, 234, 209, 0.05);
    color: #f4ead1;
    font-size: 0.82rem;
    font-weight: 820;
    text-decoration: none;
}

.portfolio-project-focus {
    display: inline-grid;
    place-items: center;
    border-color: color-mix(in srgb, var(--project-accent) 42%, rgba(244, 234, 209, 0.1));
    background: color-mix(in srgb, var(--project-accent) 13%, rgba(244, 234, 209, 0.035));
}

.portfolio-project-link {
    display: inline-grid;
    place-items: center;
}

.portfolio-map-section {
    position: relative;
    padding: 28px max(20px, calc((100vw - 1360px) / 2)) 56px;
    max-height: 1500px;
    opacity: 1;
    overflow: hidden;
    transform: translateY(0);
    transition: max-height 760ms ease, opacity 560ms ease, padding 560ms ease,
        transform 560ms ease;
}

.portfolio-map-section::before {
    position: absolute;
    left: max(20px, calc((100vw - 1360px) / 2));
    right: max(20px, calc((100vw - 1360px) / 2));
    top: 0;
    height: 1px;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(112, 217, 242, 0.72), rgba(216, 183, 95, 0.68), transparent);
    box-shadow: 0 0 28px rgba(112, 217, 242, 0.42);
    opacity: 0;
    transform: scaleX(0.2);
    transition: opacity 480ms ease, transform 680ms ease;
}

.portfolio-map-section::after {
    position: absolute;
    left: max(20px, calc((100vw - 1360px) / 2));
    right: max(20px, calc((100vw - 1360px) / 2));
    top: 78px;
    z-index: 2;
    height: 92px;
    border-radius: 8px;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(180deg, rgba(112, 217, 242, 0.12), transparent 72%),
        linear-gradient(90deg, transparent, rgba(216, 183, 95, 0.1), transparent);
    opacity: 0;
    transform: translateY(-18px);
}

.portfolio-brain[data-map-state="revealing"] .portfolio-map-section::before,
.portfolio-brain[data-map-state="revealed"] .portfolio-map-section::before {
    opacity: 1;
    transform: scaleX(1);
}

.portfolio-brain[data-map-state="revealing"] .portfolio-map-section::after {
    animation: portfolio-map-signal-receive 1.4s ease-in-out infinite;
}

.portfolio-map-activation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(112, 217, 242, 0.16);
    border-radius: 8px;
    padding: 10px 12px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(112, 217, 242, 0.12), transparent 38%, rgba(216, 183, 95, 0.08)),
        rgba(8, 11, 10, 0.62);
    color: rgba(244, 234, 209, 0.62);
    box-shadow: inset 0 1px 0 rgba(244, 234, 209, 0.08);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.portfolio-map-activation span {
    color: var(--cyan);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-map-activation strong {
    min-width: 0;
    overflow: hidden;
    color: #fff5d8;
    font-size: 0.82rem;
    font-weight: 840;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-brain[data-map-state="revealing"] .portfolio-map-activation,
.portfolio-brain[data-map-state="revealed"] .portfolio-map-activation {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-brain[data-map-state="welcome"] .portfolio-map-section {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(34px);
}

.portfolio-brain[data-map-state="revealing"] .portfolio-map-section {
    max-height: 1500px;
    opacity: 1;
    transform: translateY(0);
}

.portfolio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tab {
    border-color: rgba(244, 234, 209, 0.13);
    background: rgba(244, 234, 209, 0.045);
    color: rgba(244, 234, 209, 0.62);
}

.portfolio-tab.is-active {
    border-color: rgba(216, 183, 95, 0.58);
    background: rgba(216, 183, 95, 0.13);
    color: #fff1c7;
    box-shadow: inset 0 -1px 0 rgba(216, 183, 95, 0.36);
}

.portfolio-ghost {
    border-color: rgba(244, 234, 209, 0.13);
    background: rgba(244, 234, 209, 0.04);
    color: #f4ead1;
}

.portfolio-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 16px;
    align-items: stretch;
}

.portfolio-graph-panel,
.portfolio-proof-panel {
    min-height: 650px;
    border: 1px solid rgba(244, 234, 209, 0.12);
    border-radius: 8px;
    background: var(--panel);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.09),
        0 26px 88px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.portfolio-graph-panel {
    position: relative;
    overflow: hidden;
}

.portfolio-graph-panel::before {
    position: absolute;
    inset: 16px;
    z-index: 1;
    border: 1px solid rgba(244, 234, 209, 0.07);
    border-radius: 8px;
    pointer-events: none;
    content: "";
}

#skill-graph-canvas {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 650px;
    cursor: default;
}

.portfolio-empty {
    position: absolute;
    inset: 24px;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 8px;
    text-align: center;
    color: var(--muted);
}

.portfolio-empty[hidden] {
    display: none;
}

.portfolio-empty strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.portfolio-proof-panel {
    position: relative;
    padding: 24px;
    overflow: auto;
}

.portfolio-proof-panel::after {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 78px;
    height: 1px;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(112, 217, 242, 0.65), transparent);
    opacity: 0;
    transform: translateY(0);
}

.portfolio-proof-panel.is-updating::after {
    animation: portfolio-dossier-scan 520ms ease-out;
}

.portfolio-proof-panel h2 {
    margin: 0;
    color: #fff5d8;
    font-size: 1.7rem;
    font-weight: 820;
    line-height: 1.18;
    letter-spacing: 0;
}

.portfolio-proof-claim {
    position: relative;
    margin-top: 16px;
    border: 1px solid rgba(112, 217, 242, 0.16);
    border-radius: 8px;
    padding: 12px 13px 12px 15px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(112, 217, 242, 0.09), rgba(244, 234, 209, 0.035)),
        rgba(244, 234, 209, 0.035);
    color: rgba(244, 234, 209, 0.78);
    font-size: 0.86rem;
    font-weight: 760;
    line-height: 1.62;
}

.portfolio-proof-claim::before {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(112, 217, 242, 0.58);
    content: "";
}

.portfolio-proof-panel p {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.78;
}

.portfolio-dossier-status {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 18px;
}

.portfolio-dossier-status span {
    border: 1px solid rgba(244, 234, 209, 0.11);
    border-radius: 8px;
    padding: 7px 9px;
    background: rgba(244, 234, 209, 0.04);
    color: rgba(244, 234, 209, 0.48);
    font-size: 0.66rem;
    font-weight: 900;
}

.portfolio-proof-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.portfolio-chip {
    border: 1px solid rgba(244, 234, 209, 0.13);
    border-radius: 8px;
    padding: 7px 9px;
    background: rgba(244, 234, 209, 0.055);
    color: #f7e7b6;
    font-size: 0.75rem;
    font-weight: 800;
}

.portfolio-proof-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.portfolio-proof-item {
    display: block;
    position: relative;
    border: 1px solid rgba(244, 234, 209, 0.12);
    border-radius: 8px;
    padding: 14px;
    background: rgba(244, 234, 209, 0.045);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
    animation: portfolio-proof-enter 360ms ease both;
    animation-delay: calc(var(--item-index, 0) * 54ms);
}

.portfolio-proof-item::before {
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 999px;
    background: var(--gold);
    opacity: 0.68;
    content: "";
}

.portfolio-proof-item:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 183, 95, 0.46);
    background: rgba(244, 234, 209, 0.075);
}

.portfolio-proof-item strong {
    display: block;
    color: #fff5d8;
    font-size: 0.94rem;
    line-height: 1.38;
}

.portfolio-proof-item span {
    display: block;
    margin-top: 7px;
    color: rgba(244, 234, 209, 0.56);
    font-size: 0.8rem;
    line-height: 1.58;
}

.portfolio-proof-type {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-showcase {
    min-height: 100vh;
    background:
        radial-gradient(circle at 66% 42%, rgba(112, 217, 242, 0.16), transparent 28%),
        radial-gradient(circle at 24% 72%, rgba(216, 183, 95, 0.12), transparent 24%),
        linear-gradient(135deg, #070907 0%, #10140f 48%, #070908 100%);
}

.portfolio-showcase::after {
    position: fixed;
    inset: 0;
    z-index: 65;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(circle at 63% 46%, rgba(112, 217, 242, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(5, 8, 7, 0.96), rgba(5, 8, 7, 0.84));
    opacity: 0;
}

.portfolio-showcase[data-intro-phase="boot"]::after,
.portfolio-showcase[data-intro-phase="release"]::after {
    opacity: 1;
}

.portfolio-showcase[data-intro-phase="release"]::after {
    animation: portfolio-showcase-curtain-release 900ms ease forwards;
}

.portfolio-showcase .portfolio-hero {
    position: relative;
    --portfolio-showcase-stage-height: min(730px, calc(100vh - 126px));
    --portfolio-showcase-caption-space: 132px;
    grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr);
    gap: 26px;
    min-height: 100vh;
    padding: 42px max(24px, calc((100vw - 1320px) / 2)) 28px;
    align-items: stretch;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(5, 8, 7, 0.34), rgba(5, 8, 7, 0.04) 42%, rgba(112, 217, 242, 0.035)),
        linear-gradient(180deg, rgba(244, 234, 209, 0.03), transparent 28%, rgba(216, 183, 95, 0.025));
}

.portfolio-showcase .portfolio-showcase-hero::before,
.portfolio-showcase .portfolio-showcase-hero::after {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    content: "";
    opacity: 0;
}

.portfolio-showcase .portfolio-showcase-hero::before {
    left: 38%;
    right: 2%;
    top: 48%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(112, 217, 242, 0.92), rgba(216, 183, 95, 0.74), transparent);
    box-shadow:
        0 0 22px rgba(112, 217, 242, 0.48),
        0 0 54px rgba(216, 183, 95, 0.16);
    transform: translateX(-12%) scaleX(0.18);
    transform-origin: 64% 50%;
}

.portfolio-showcase .portfolio-showcase-hero::after {
    right: 11%;
    top: 31%;
    width: min(280px, 24vw);
    height: min(280px, 24vw);
    border: 1px solid rgba(112, 217, 242, 0.28);
    border-radius: 999px;
    box-shadow:
        inset 0 0 36px rgba(112, 217, 242, 0.08),
        0 0 68px rgba(112, 217, 242, 0.12);
    transform: scale(0.72);
}

.portfolio-showcase[data-link-pulse="active"] .portfolio-showcase-hero::before,
.portfolio-showcase[data-director-signal="brain-open"] .portfolio-showcase-hero::before,
.portfolio-showcase[data-director-signal="dossier"] .portfolio-showcase-hero::before,
.portfolio-showcase[data-map-state="revealing"] .portfolio-showcase-hero::before {
    opacity: 1;
    animation: portfolio-showcase-data-beam 1.15s ease-in-out infinite;
}

.portfolio-showcase[data-guide-focus="graph"] .portfolio-showcase-hero::after,
.portfolio-showcase[data-director-signal="brain"] .portfolio-showcase-hero::after,
.portfolio-showcase[data-director-signal="brain-open"] .portfolio-showcase-hero::after,
.portfolio-showcase[data-map-state="revealing"] .portfolio-showcase-hero::after {
    opacity: 1;
    animation: portfolio-showcase-target-ring 1.8s ease-in-out infinite;
}

.portfolio-showcase[data-intro-phase="wake"] .portfolio-hero-copy,
.portfolio-showcase[data-intro-phase="wake"] .portfolio-bot-stage {
    animation: portfolio-showcase-stage-arrive 900ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.portfolio-showcase[data-intro-phase="wake"] .portfolio-bot-stage {
    animation-delay: 90ms;
}

.portfolio-showcase[data-map-state="revealing"] .portfolio-hero,
.portfolio-showcase[data-map-state="revealed"] .portfolio-hero {
    min-height: min(720px, 100vh);
    padding-top: 34px;
}

.portfolio-showcase .portfolio-hero-copy {
    align-self: center;
    max-width: 520px;
    padding: 12px 0 24px;
}

.portfolio-showcase .portfolio-hero h1 {
    max-width: 620px;
    font-size: clamp(3.4rem, 5.8vw, 6.2rem);
    text-shadow:
        0 1px 0 rgba(244, 234, 209, 0.1),
        0 26px 70px rgba(0, 0, 0, 0.36);
}

.portfolio-showcase .portfolio-title-line {
    white-space: normal;
}

.portfolio-showcase .portfolio-subtitle {
    max-width: 500px;
    font-size: 1.02rem;
}

.portfolio-showcase .portfolio-storyline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 500px);
}

.portfolio-showcase .portfolio-storyline span.is-active {
    animation: portfolio-showcase-guide-pulse 1.55s ease-in-out infinite;
}

.portfolio-showcase .portfolio-storyline span.is-complete {
    opacity: 0.72;
}

.portfolio-showcase .portfolio-actions {
    width: min(100%, 500px);
    border: 1px solid rgba(244, 234, 209, 0.11);
    border-radius: 8px;
    padding: 9px;
    background: rgba(7, 9, 7, 0.54);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.08),
        0 18px 58px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.portfolio-showcase .portfolio-primary,
.portfolio-showcase .portfolio-secondary {
    flex: 1 1 170px;
}

.portfolio-showcase .portfolio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 500px);
    margin-top: 20px;
}

.portfolio-showcase[data-robot="real"] .portfolio-hero {
    grid-template-columns: minmax(340px, 0.68fr) minmax(560px, 1.32fr);
    gap: 18px;
    padding-top: 34px;
    padding-bottom: 18px;
}

.portfolio-showcase[data-robot="real"] .portfolio-hero-copy {
    align-self: start;
    padding-top: 10px;
}

.portfolio-showcase[data-robot="real"] .portfolio-hero h1 {
    font-size: clamp(3.15rem, 5.1vw, 5.35rem);
}

.portfolio-showcase[data-robot="real"] .portfolio-subtitle {
    max-width: 520px;
    margin-top: 22px;
}

.portfolio-showcase[data-robot="real"] .portfolio-storyline {
    margin-top: 24px;
}

.portfolio-showcase[data-robot="real"] .portfolio-actions {
    margin-top: 24px;
    padding: 8px;
}

.portfolio-showcase[data-robot="real"] .portfolio-metrics {
    margin-top: 14px;
}

.portfolio-showcase[data-robot="real"] .portfolio-metrics div {
    min-height: 76px;
    padding: 13px 15px;
}

.portfolio-showcase[data-robot="real"] .portfolio-metrics strong {
    font-size: 1.92rem;
}

.portfolio-showcase .portfolio-bot-stage {
    align-self: start;
    height: var(--portfolio-showcase-stage-height);
    min-height: var(--portfolio-showcase-stage-height);
    border: 0;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(244, 234, 209, 0.045), transparent 8%, transparent 90%, rgba(216, 183, 95, 0.035)),
        radial-gradient(circle at 52% 45%, rgba(112, 217, 242, 0.12), transparent 30%),
        radial-gradient(circle at 48% 72%, rgba(216, 183, 95, 0.08), transparent 26%),
        repeating-linear-gradient(90deg, rgba(244, 234, 209, 0.025) 0, rgba(244, 234, 209, 0.025) 1px, transparent 1px, transparent 48px),
        repeating-linear-gradient(180deg, rgba(244, 234, 209, 0.018) 0, rgba(244, 234, 209, 0.018) 1px, transparent 1px, transparent 48px);
    box-shadow: none;
}

.portfolio-showcase .portfolio-bot-stage[data-agent-interactive="true"] {
    cursor: pointer;
}

.portfolio-showcase .portfolio-bot-stage::before {
    inset: 4% 5% calc(var(--portfolio-showcase-caption-space) + 12px);
    border-color: rgba(244, 234, 209, 0.055);
    border-radius: 50%;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portfolio-showcase .portfolio-bot-stage::after {
    bottom: var(--portfolio-showcase-caption-space);
    opacity: 0.48;
}

.portfolio-showcase .portfolio-stage-reticle {
    opacity: 0.8;
    bottom: var(--portfolio-showcase-caption-space);
    transform: translateY(4px);
}

.portfolio-showcase .portfolio-stage-scan-light {
    bottom: var(--portfolio-showcase-caption-space);
}

.portfolio-showcase .portfolio-stage-reticle span:nth-child(1) {
    width: min(78%, 680px);
    height: min(78%, 680px);
}

.portfolio-showcase .portfolio-stage-reticle span:nth-child(2) {
    width: min(52%, 440px);
    height: min(52%, 440px);
}

.portfolio-showcase[data-robot-gesture="brain"] .portfolio-stage-reticle,
.portfolio-showcase[data-robot-gesture="core"] .portfolio-stage-reticle,
.portfolio-showcase[data-robot-gesture="idle-scan"] .portfolio-stage-reticle {
    animation: portfolio-reticle-breathe 1.8s ease-in-out infinite;
}

.portfolio-showcase[data-robot-gesture="arm"] .portfolio-bot-stage,
.portfolio-showcase[data-robot-gesture="wave"] .portfolio-bot-stage {
    animation: portfolio-agent-arm-respond 820ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.portfolio-showcase #brain-bot-canvas {
    height: calc(var(--portfolio-showcase-stage-height) - var(--portfolio-showcase-caption-space));
}

.portfolio-showcase[data-robot="premium"] .portfolio-bot-stage {
    background:
        linear-gradient(180deg, rgba(244, 234, 209, 0.025), rgba(112, 217, 242, 0.035) 48%, rgba(216, 183, 95, 0.03)),
        repeating-linear-gradient(90deg, rgba(244, 234, 209, 0.028) 0, rgba(244, 234, 209, 0.028) 1px, transparent 1px, transparent 42px),
        repeating-linear-gradient(180deg, rgba(244, 234, 209, 0.022) 0, rgba(244, 234, 209, 0.022) 1px, transparent 1px, transparent 42px);
}

.portfolio-showcase[data-robot="real"] .portfolio-bot-stage {
    align-self: start;
    height: var(--portfolio-showcase-stage-height);
    min-height: var(--portfolio-showcase-stage-height);
    background:
        radial-gradient(circle at 56% 35%, rgba(112, 217, 242, 0.18), transparent 22%),
        radial-gradient(circle at 48% 68%, rgba(216, 183, 95, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(244, 234, 209, 0.018), rgba(112, 217, 242, 0.026) 46%, rgba(8, 12, 10, 0.012)),
        repeating-linear-gradient(90deg, rgba(244, 234, 209, 0.025) 0, rgba(244, 234, 209, 0.025) 1px, transparent 1px, transparent 52px),
        repeating-linear-gradient(180deg, rgba(244, 234, 209, 0.018) 0, rgba(244, 234, 209, 0.018) 1px, transparent 1px, transparent 52px);
}

.portfolio-showcase[data-robot="studio"] .portfolio-bot-stage {
    background:
        radial-gradient(circle at 54% 34%, rgba(112, 217, 242, 0.16), transparent 24%),
        radial-gradient(circle at 62% 67%, rgba(216, 183, 95, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(244, 234, 209, 0.03), rgba(112, 217, 242, 0.045) 48%, rgba(239, 128, 95, 0.025)),
        repeating-linear-gradient(90deg, rgba(244, 234, 209, 0.032) 0, rgba(244, 234, 209, 0.032) 1px, transparent 1px, transparent 38px),
        repeating-linear-gradient(180deg, rgba(244, 234, 209, 0.024) 0, rgba(244, 234, 209, 0.024) 1px, transparent 1px, transparent 38px);
}

.portfolio-showcase[data-robot="premium"] .portfolio-bot-stage::before {
    inset: 8% 8% 10%;
    border-color: rgba(112, 217, 242, 0.18);
    box-shadow:
        inset 0 0 58px rgba(112, 217, 242, 0.07),
        0 0 82px rgba(216, 183, 95, 0.08);
}

.portfolio-showcase[data-robot="real"] .portfolio-bot-stage::before {
    inset: 7% 8% 10%;
    border-color: rgba(112, 217, 242, 0.16);
    box-shadow:
        inset 0 0 46px rgba(112, 217, 242, 0.055),
        inset 0 0 14px rgba(216, 183, 95, 0.045),
        0 30px 88px rgba(0, 0, 0, 0.42),
        0 0 54px rgba(112, 217, 242, 0.08);
}

.portfolio-showcase[data-robot="studio"] .portfolio-bot-stage::before {
    inset: 7% 7% 9%;
    border-color: rgba(112, 217, 242, 0.22);
    box-shadow:
        inset 0 0 72px rgba(112, 217, 242, 0.09),
        inset 0 0 18px rgba(216, 183, 95, 0.08),
        0 0 92px rgba(112, 217, 242, 0.1);
}

.portfolio-showcase[data-robot-tap="true"] .portfolio-bot-stage::before,
.portfolio-showcase[data-director-signal="brain-open"] .portfolio-bot-stage::before,
.portfolio-showcase[data-map-state="revealing"] .portfolio-bot-stage::before {
    border-color: rgba(112, 217, 242, 0.54);
    box-shadow:
        inset 0 0 70px rgba(112, 217, 242, 0.16),
        0 0 92px rgba(112, 217, 242, 0.24),
        0 0 54px rgba(216, 183, 95, 0.16);
    transform: scale(1.02);
}

.portfolio-showcase[data-director-signal="greeting"] .portfolio-bot-stage {
    animation: portfolio-showcase-robot-greeting 1320ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.portfolio-showcase[data-director-signal="scan"] .portfolio-bot-stage::after,
.portfolio-showcase[data-director-signal="brain-open"] .portfolio-bot-stage::after {
    opacity: 0.82;
    animation-duration: 2.2s;
}

.portfolio-showcase[data-director-signal="scan"] .portfolio-agent-readout,
.portfolio-showcase[data-director-signal="brain-open"] .portfolio-agent-readout {
    border-color: rgba(112, 217, 242, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        0 18px 52px rgba(0, 0, 0, 0.32),
        0 0 42px rgba(112, 217, 242, 0.14);
}

.portfolio-showcase[data-robot="real"][data-robot-tap="true"] .portfolio-bot-stage::before,
.portfolio-showcase[data-robot="real"][data-map-state="revealing"] .portfolio-bot-stage::before {
    border-color: rgba(112, 217, 242, 0.44);
    box-shadow:
        inset 0 0 54px rgba(112, 217, 242, 0.12),
        0 0 76px rgba(112, 217, 242, 0.18),
        0 0 34px rgba(216, 183, 95, 0.1);
    transform: scale(1.012);
}

.portfolio-showcase[data-robot-tap="true"] .portfolio-bot-caption {
    border-color: rgba(112, 217, 242, 0.48);
}

.portfolio-showcase[data-link-pulse="active"] #brain-bot-canvas,
.portfolio-showcase[data-map-state="revealing"] #brain-bot-canvas {
    opacity: 0.98;
}

.portfolio-showcase[data-robot="premium"] .portfolio-bot-stage::after {
    background:
        linear-gradient(180deg, transparent 0%, rgba(112, 217, 242, 0.12) 47%, rgba(216, 183, 95, 0.08) 50%, transparent 60%);
    opacity: 0.62;
}

.portfolio-showcase[data-robot="real"] .portfolio-bot-stage::after {
    background:
        linear-gradient(180deg, transparent 0%, rgba(112, 217, 242, 0.048) 45%, rgba(216, 183, 95, 0.03) 50%, transparent 63%);
    opacity: 0.28;
}

.portfolio-showcase[data-robot="studio"] .portfolio-bot-stage::after {
    background:
        linear-gradient(180deg, transparent 0%, rgba(112, 217, 242, 0.16) 46%, rgba(216, 183, 95, 0.1) 50%, transparent 62%);
    opacity: 0.72;
}

.portfolio-showcase[data-robot="premium"] #brain-bot-canvas {
    opacity: 0.99;
}

.portfolio-showcase[data-robot="real"] #brain-bot-canvas {
    height: calc(var(--portfolio-showcase-stage-height) - var(--portfolio-showcase-caption-space));
    opacity: 0.99;
}

.portfolio-showcase[data-robot="real"] .portfolio-showcase-hero::before {
    left: 42%;
    right: 3%;
    top: 54%;
    background: linear-gradient(90deg, transparent, rgba(112, 217, 242, 0.72), rgba(244, 234, 209, 0.32), transparent);
    box-shadow:
        0 0 18px rgba(112, 217, 242, 0.34),
        0 0 44px rgba(112, 217, 242, 0.1);
}

.portfolio-showcase[data-robot="real"] .portfolio-showcase-hero::after {
    right: 18%;
    top: 34%;
    width: min(220px, 22vw);
    height: min(220px, 22vw);
    border-color: rgba(112, 217, 242, 0.2);
    box-shadow:
        inset 0 0 24px rgba(112, 217, 242, 0.06),
        0 0 46px rgba(112, 217, 242, 0.09);
}

.portfolio-showcase[data-robot="studio"] #brain-bot-canvas {
    opacity: 0.99;
}

.portfolio-showcase[data-robot="premium"][data-agent-renderer="three-premium"] .portfolio-agent-hud,
.portfolio-showcase[data-robot="premium"][data-agent-renderer="three-premium"] .portfolio-showcase-director,
.portfolio-showcase[data-robot="real"][data-agent-renderer="three-real"] .portfolio-agent-hud,
.portfolio-showcase[data-robot="real"][data-agent-renderer="three-real"] .portfolio-showcase-director,
.portfolio-showcase[data-robot="studio"][data-agent-renderer="three-studio"] .portfolio-agent-hud,
.portfolio-showcase[data-robot="studio"][data-agent-renderer="three-studio"] .portfolio-showcase-director {
    border-color: rgba(112, 217, 242, 0.2);
    background: rgba(5, 8, 8, 0.68);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.1),
        0 18px 52px rgba(0, 0, 0, 0.28),
        0 0 30px rgba(112, 217, 242, 0.08);
}

.portfolio-showcase[data-robot="real"][data-agent-renderer="three-real"] .portfolio-agent-hud,
.portfolio-showcase[data-robot="real"][data-agent-renderer="three-real"] .portfolio-showcase-director,
.portfolio-showcase[data-robot="real"] .portfolio-model-switch {
    border-color: rgba(112, 217, 242, 0.15);
    background: rgba(3, 6, 7, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.08),
        0 18px 48px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(112, 217, 242, 0.055);
}

.portfolio-showcase[data-robot="real"] .portfolio-agent-readout {
    border-color: rgba(112, 217, 242, 0.14);
    background: linear-gradient(135deg, rgba(112, 217, 242, 0.07), rgba(4, 7, 8, 0.76));
}

.portfolio-showcase[data-robot="real"] .portfolio-brain-hotspot::before {
    border-color: rgba(112, 217, 242, 0.34);
    box-shadow:
        inset 0 0 18px rgba(112, 217, 242, 0.1),
        0 0 24px rgba(112, 217, 242, 0.16);
}

.portfolio-showcase[data-robot="real"] .portfolio-brain-hotspot::after {
    border-color: rgba(244, 234, 209, 0.22);
    animation-duration: 2.8s;
}

.portfolio-showcase[data-robot="real"] .portfolio-showcase-speech-meter {
    opacity: 0.22;
}

.portfolio-showcase[data-robot="real"][data-caption-typing="true"] .portfolio-showcase-speech-meter {
    opacity: 0.52;
}

.portfolio-showcase[data-robot="real"] .portfolio-bot-caption {
    left: 24px;
    right: 24px;
    bottom: 22px;
    width: auto;
    min-height: 60px;
    padding: 13px 16px;
    line-height: 1.55;
}

.portfolio-showcase[data-robot="real"] .portfolio-bot-caption::before {
    display: none;
}

.portfolio-showcase[data-robot="real"] .portfolio-showcase-speech-meter {
    left: auto;
    right: 36px;
    bottom: 98px;
}

.portfolio-showcase[data-showcase-scene="brain"] .portfolio-bot-stage::before,
.portfolio-showcase[data-showcase-scene="proof"] .portfolio-bot-stage::before {
    border-color: rgba(112, 217, 242, 0.22);
    box-shadow:
        inset 0 0 38px rgba(112, 217, 242, 0.08),
        0 0 60px rgba(112, 217, 242, 0.08);
}

.portfolio-showcase .portfolio-agent-hud {
    top: 24px;
    right: 24px;
}

.portfolio-showcase .portfolio-agent-readout {
    left: 24px;
    top: 24px;
    right: auto;
    width: 250px;
    max-width: min(250px, calc(100% - 170px));
}

.portfolio-showcase-director {
    position: absolute;
    right: 24px;
    top: 74px;
    z-index: 3;
    display: grid;
    gap: 5px;
    min-width: 176px;
    border: 1px solid rgba(244, 234, 209, 0.11);
    border-radius: 8px;
    padding: 11px 12px;
    background: rgba(7, 9, 7, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.08),
        0 18px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.portfolio-showcase-director span,
.portfolio-showcase-director em {
    color: rgba(244, 234, 209, 0.5);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
}

.portfolio-showcase-director strong {
    color: #fff5d8;
    font-size: 0.96rem;
    font-weight: 860;
}

.portfolio-model-switch {
    position: absolute;
    right: 24px;
    top: 134px;
    z-index: 4;
    display: flex;
    gap: 6px;
    border: 1px solid rgba(244, 234, 209, 0.1);
    border-radius: 8px;
    padding: 6px;
    background: rgba(5, 8, 8, 0.68);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.08),
        0 14px 38px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.portfolio-model-switch button {
    min-width: 52px;
    border: 1px solid rgba(244, 234, 209, 0.1);
    border-radius: 7px;
    padding: 7px 9px;
    background: rgba(244, 234, 209, 0.035);
    color: rgba(244, 234, 209, 0.58);
    font-size: 0.66rem;
    font-weight: 900;
    cursor: pointer;
}

.portfolio-model-switch button:hover,
.portfolio-model-switch button.is-active {
    border-color: rgba(112, 217, 242, 0.38);
    background: rgba(112, 217, 242, 0.13);
    color: #e3f9ff;
}

.portfolio-showcase .portfolio-bot-caption {
    left: 24px;
    right: 24px;
    bottom: 22px;
    width: auto;
    min-height: 60px;
    max-height: 88px;
    overflow: auto;
    border-color: rgba(112, 217, 242, 0.18);
    padding: 13px 16px;
    background:
        linear-gradient(135deg, rgba(112, 217, 242, 0.12), rgba(216, 183, 95, 0.05)),
        rgba(6, 8, 7, 0.78);
    color: rgba(255, 246, 221, 0.9);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.55;
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.1),
        0 18px 70px rgba(0, 0, 0, 0.36);
}

.portfolio-showcase .portfolio-bot-caption::before {
    display: none;
}

.portfolio-showcase[data-caption-typing="true"] .portfolio-bot-caption {
    border-color: rgba(112, 217, 242, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        0 0 34px rgba(112, 217, 242, 0.14),
        0 22px 80px rgba(0, 0, 0, 0.38);
}

.portfolio-showcase[data-director-signal="brain-open"] .portfolio-bot-caption,
.portfolio-showcase[data-director-signal="dossier"] .portfolio-bot-caption {
    border-color: rgba(216, 183, 95, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.13),
        0 0 38px rgba(216, 183, 95, 0.12),
        0 22px 76px rgba(0, 0, 0, 0.38);
}

.portfolio-showcase-speech-meter {
    position: absolute;
    left: auto;
    right: 36px;
    bottom: calc(var(--portfolio-showcase-caption-space) - 14px);
    z-index: 3;
    display: flex;
    align-items: end;
    gap: 4px;
    height: 24px;
    padding: 5px 7px;
    border: 1px solid rgba(112, 217, 242, 0.13);
    border-radius: 8px;
    background: rgba(7, 9, 7, 0.62);
    opacity: 0.45;
    backdrop-filter: blur(14px);
}

.portfolio-showcase-speech-meter span {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: var(--cyan);
}

.portfolio-showcase[data-caption-typing="true"] .portfolio-showcase-speech-meter {
    opacity: 1;
}

.portfolio-showcase[data-caption-typing="true"] .portfolio-showcase-speech-meter span {
    animation: portfolio-showcase-meter 640ms ease-in-out infinite;
}

.portfolio-showcase[data-caption-typing="true"] .portfolio-showcase-speech-meter span:nth-child(2) {
    animation-delay: 90ms;
}

.portfolio-showcase[data-caption-typing="true"] .portfolio-showcase-speech-meter span:nth-child(3) {
    animation-delay: 180ms;
}

.portfolio-showcase[data-caption-typing="true"] .portfolio-showcase-speech-meter span:nth-child(4) {
    animation-delay: 270ms;
}

.portfolio-showcase .portfolio-projects {
    padding-top: 46px;
}

.portfolio-showcase .portfolio-project-card {
    opacity: 0.94;
}

.portfolio-showcase[data-showcase-scene="presenting"] .portfolio-project-card {
    animation: portfolio-showcase-card-present 920ms ease both;
    animation-delay: calc(var(--project-index, 0) * 110ms);
}

.portfolio-showcase .portfolio-proof-item {
    cursor: default;
}

.portfolio-showcase[data-director-signal="dossier"] .portfolio-proof-panel {
    border-color: rgba(112, 217, 242, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        0 28px 90px rgba(0, 0, 0, 0.36),
        0 0 48px rgba(112, 217, 242, 0.1);
    animation: portfolio-dossier-lock 780ms ease both;
}

.portfolio-proof-terminal {
    border-color: rgba(112, 217, 242, 0.3);
    background:
        linear-gradient(135deg, rgba(112, 217, 242, 0.13), rgba(216, 183, 95, 0.06)),
        rgba(3, 7, 7, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(244, 234, 209, 0.12),
        0 0 34px rgba(112, 217, 242, 0.06);
}

.portfolio-proof-terminal::after {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(112, 217, 242, 0.78));
    content: "";
    animation: portfolio-terminal-glint 1.8s ease-in-out infinite;
}

@media (max-width: 1050px) {
    .portfolio-boot-shell {
        grid-template-columns: 1fr;
        width: min(620px, 100%);
    }

    .portfolio-boot-cinema {
        min-height: 260px;
    }

    .portfolio-boot-frame {
        width: 100%;
    }

    .portfolio-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding-top: 46px;
    }

    .portfolio-hero > * {
        min-width: 0;
    }

    .portfolio-hero h1 {
        font-size: 3.35rem;
    }

    .portfolio-bot-stage,
    #brain-bot-canvas {
        min-height: 460px;
        height: 460px;
    }

    .portfolio-section-heading,
    .portfolio-project-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-workspace {
        grid-template-columns: 1fr;
    }

    .portfolio-proof-panel {
        min-height: 380px;
    }

    .portfolio-showcase .portfolio-hero {
        display: grid;
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 34px;
    }

    .portfolio-showcase .portfolio-hero-copy {
        display: contents;
        max-width: none;
    }

    .portfolio-showcase .portfolio-kicker {
        order: 1;
    }

    .portfolio-showcase .portfolio-hero h1 {
        order: 2;
    }

    .portfolio-showcase .portfolio-subtitle {
        order: 3;
    }

    .portfolio-showcase .portfolio-system-rail {
        order: 4;
    }

    .portfolio-showcase .portfolio-bot-stage {
        order: 5;
    }

    .portfolio-showcase .portfolio-storyline {
        order: 6;
    }

    .portfolio-showcase .portfolio-actions {
        order: 7;
    }

    .portfolio-showcase .portfolio-metrics {
        order: 9;
    }

    .portfolio-showcase .portfolio-guide-console {
        order: 8;
        width: 100%;
    }

    .portfolio-showcase .portfolio-bot-stage,
    .portfolio-showcase #brain-bot-canvas {
        min-height: 520px;
        height: 520px;
    }

    .portfolio-showcase .portfolio-bot-stage {
        min-height: 620px;
        height: 620px;
    }

    .portfolio-showcase #brain-bot-canvas {
        min-height: 500px;
        height: 500px;
    }

    .portfolio-showcase .portfolio-robot-hotspot-head {
        top: 38%;
    }

    .portfolio-showcase .portfolio-robot-hotspot-chest {
        top: 56%;
    }

    .portfolio-showcase .portfolio-robot-hotspot-left-arm {
        left: 39%;
    }

    .portfolio-showcase .portfolio-robot-hotspot-right-arm {
        left: 64%;
    }

    .portfolio-showcase[data-robot="real"] .portfolio-bot-stage,
    .portfolio-showcase[data-robot="real"] #brain-bot-canvas {
        min-height: 460px;
        height: 460px;
    }

    .portfolio-showcase[data-robot="real"] .portfolio-bot-stage {
        min-height: 570px;
        height: 570px;
    }

    .portfolio-showcase[data-robot="real"] #brain-bot-canvas {
        min-height: 450px;
        height: 450px;
    }
}

@media (max-width: 640px) {
    .portfolio-boot {
        padding: 14px;
    }

    .portfolio-boot-cinema {
        min-height: 220px;
    }

    .portfolio-boot-orbit {
        width: 220px;
        height: 158px;
    }

    .portfolio-boot-face {
        width: 220px;
        height: 145px;
    }

    .portfolio-boot-eye {
        top: 58px;
        width: 35px;
    }

    .portfolio-boot-eye-left {
        left: 54px;
    }

    .portfolio-boot-eye-right {
        right: 54px;
    }

    .portfolio-boot-mouth {
        bottom: 39px;
        width: 50px;
    }

    .portfolio-boot-readout {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 0.58rem;
    }

    .portfolio-boot-frame {
        padding: 22px;
    }

    .portfolio-hero {
        display: block;
        width: 100%;
        max-width: 100vw;
        padding: 34px 16px 26px;
    }

    .portfolio-hero-copy {
        width: 100%;
        max-width: calc(100vw - 32px);
    }

    .portfolio-hero h1 {
        font-size: 2.45rem;
    }

    .portfolio-subtitle {
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .portfolio-system-rail {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .portfolio-system-rail span {
        min-width: 0;
        padding-inline: 6px;
        font-size: 0.58rem;
    }

    .portfolio-storyline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100vw - 32px);
    }

    .portfolio-storyline span {
        min-height: 52px;
        font-size: 0.68rem;
    }

    .portfolio-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        overflow: hidden;
    }

    .portfolio-metrics div {
        min-height: 78px;
        padding: 13px 10px;
    }

    .portfolio-metrics strong {
        font-size: 1.7rem;
    }

    .portfolio-metrics span {
        font-size: 0.58rem;
        line-height: 1.18;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .portfolio-actions,
    .portfolio-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .portfolio-primary,
    .portfolio-secondary,
    .portfolio-ghost {
        width: 100%;
    }

    .portfolio-guide-console {
        width: 100%;
        margin-top: 14px;
        padding: 12px;
    }

    .portfolio-guide-input-row {
        grid-template-columns: 1fr;
    }

    .portfolio-guide-input-row button {
        width: 100%;
    }

    .portfolio-bot-stage,
    #brain-bot-canvas {
        width: 100%;
        max-width: calc(100vw - 32px);
        min-height: 380px;
        height: 380px;
    }

    .portfolio-projects {
        padding: 18px 16px 30px;
    }

    .portfolio-section-heading h2 {
        font-size: 1.36rem;
    }

    .portfolio-project-card {
        min-height: auto;
        padding: 16px;
    }

    .portfolio-project-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-project-focus,
    .portfolio-project-link {
        width: 100%;
    }

    .portfolio-bot-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 0.82rem;
    }

    .portfolio-agent-hud {
        top: 12px;
        right: 12px;
    }

    .portfolio-brain-hotspot {
        left: 50%;
        top: 46%;
        width: 104px;
        height: 104px;
    }

    .portfolio-robot-hotspot-head {
        left: 50%;
        top: 42%;
        width: 104px;
        height: 104px;
    }

    .portfolio-robot-hotspot-chest {
        left: 50%;
        top: 60%;
        width: 94px;
        height: 76px;
    }

    .portfolio-robot-hotspot-arm {
        top: 60%;
        width: 72px;
        height: 128px;
    }

    .portfolio-robot-hotspot-left-arm {
        left: 35%;
    }

    .portfolio-robot-hotspot-right-arm {
        left: 65%;
    }

    .portfolio-robot-hotspot span {
        display: none;
    }

    .portfolio-agent-readout {
        left: 12px;
        right: 112px;
        top: 12px;
        padding: 9px 10px;
    }

    .portfolio-agent-readout strong {
        font-size: 0.88rem;
    }

    .portfolio-agent-readout em {
        display: none;
    }

    .portfolio-map-section {
        padding: 22px 12px 36px;
    }

    .portfolio-map-activation {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px;
    }

    .portfolio-map-activation strong {
        font-size: 0.76rem;
        white-space: normal;
    }

    .portfolio-proof-claim {
        font-size: 0.8rem;
        line-height: 1.55;
    }

    #skill-graph-canvas {
        height: 560px;
    }

    .portfolio-showcase .portfolio-hero {
        display: grid;
        grid-template-columns: 1fr;
        padding: 28px 16px 24px;
        gap: 12px;
    }

    .portfolio-showcase .portfolio-hero h1 {
        font-size: 2.62rem;
    }

    .portfolio-showcase .portfolio-hero-copy {
        display: contents;
    }

    .portfolio-showcase .portfolio-kicker {
        order: 1;
        margin-bottom: 5px;
    }

    .portfolio-showcase .portfolio-hero h1 {
        order: 2;
    }

    .portfolio-showcase .portfolio-subtitle {
        order: 3;
        margin-top: 6px;
    }

    .portfolio-showcase .portfolio-system-rail {
        order: 4;
        margin-top: 2px;
    }

    .portfolio-showcase .portfolio-bot-stage {
        order: 5;
        margin-top: 4px;
    }

    .portfolio-showcase .portfolio-storyline {
        order: 6;
        margin-top: 2px;
    }

    .portfolio-showcase .portfolio-actions {
        order: 7;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .portfolio-showcase .portfolio-guide-console {
        order: 8;
        width: 100%;
        margin-top: 4px;
    }

    .portfolio-showcase .portfolio-metrics {
        order: 9;
        margin-top: 6px;
    }

    .portfolio-showcase .portfolio-storyline,
    .portfolio-showcase .portfolio-metrics {
        width: 100%;
    }

    .portfolio-showcase .portfolio-bot-stage,
    .portfolio-showcase #brain-bot-canvas {
        max-width: 100%;
        min-height: 360px;
        height: 360px;
    }

    .portfolio-showcase .portfolio-bot-stage {
        min-height: 454px;
        height: 454px;
    }

    .portfolio-showcase #brain-bot-canvas {
        min-height: 360px;
        height: 360px;
    }

    .portfolio-showcase .portfolio-agent-readout {
        left: 12px;
        top: 12px;
        right: 102px;
        width: auto;
        max-width: none;
    }

    .portfolio-showcase-director {
        display: none;
    }

    .portfolio-model-switch {
        left: 12px;
        right: 12px;
        top: 62px;
        justify-content: space-between;
    }

    .portfolio-model-switch button {
        flex: 1;
        min-width: 0;
    }

    .portfolio-showcase .portfolio-bot-caption {
        left: 12px;
        right: 12px;
        bottom: 10px;
        width: auto;
        min-height: 58px;
        max-height: 76px;
        padding: 11px 13px;
        background:
            linear-gradient(135deg, rgba(112, 217, 242, 0.1), rgba(216, 183, 95, 0.045)),
            rgba(6, 8, 7, 0.72);
        font-size: 0.8rem;
        line-height: 1.48;
    }

    .portfolio-showcase .portfolio-bot-caption::before {
        display: none;
    }

    .portfolio-showcase-speech-meter {
        left: 22px;
        right: auto;
        bottom: 86px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-primary,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-secondary,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-ghost,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-tab,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-project-card,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-proof-item {
        transition: none;
    }

    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-primary:hover,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-secondary:hover,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-ghost:hover,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-tab:hover,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-project-card:hover,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-proof-item:hover {
        transform: none;
    }

    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-boot-frame::before,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-boot-orbit span,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-boot-eye,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-boot-scan,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-bot-stage,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-bot-caption,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-bot-stage::after,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-brain-hotspot::before,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-brain-hotspot::after,
    .portfolio-brain:not([data-motion="cinematic"])::after,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-showcase-hero::before,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-showcase-hero::after,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-storyline span.is-active,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-map-section::after,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-showcase-speech-meter span,
    .portfolio-brain:not([data-motion="cinematic"])[data-director-signal="greeting"] .portfolio-bot-stage,
    .portfolio-brain:not([data-motion="cinematic"])[data-welcome-phase="steady"] .portfolio-bot-stage,
    .portfolio-brain:not([data-motion="cinematic"])[data-director-signal="dossier"] .portfolio-proof-panel,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-proof-terminal::after,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-guide-console::before,
    .portfolio-brain:not([data-motion="cinematic"])[data-robot-agent-state="playful"] .portfolio-bot-stage,
    .portfolio-brain:not([data-motion="cinematic"])[data-robot-emotion="playful"] .portfolio-bot-stage,
    .portfolio-brain:not([data-motion="cinematic"])[data-showcase-scene="presenting"] .portfolio-project-card,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-proof-panel.is-updating::after,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-boot:not(.is-controlled) .portfolio-boot-progress span,
    .portfolio-brain:not([data-motion="cinematic"]) .portfolio-proof-item {
        animation: none;
    }
}

@keyframes portfolio-brain-pulse {
    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.62);
    }
    46% {
        opacity: 0.58;
        transform: scale(1);
    }
}

@keyframes portfolio-boot-sweep {
    0% {
        transform: translateX(-110%);
    }
    54%,
    100% {
        transform: translateX(110%);
    }
}

@keyframes portfolio-boot-indeterminate {
    0% {
        width: 12%;
        transform: translateX(-20%);
    }
    52% {
        width: 58%;
        transform: translateX(70%);
    }
    100% {
        width: 20%;
        transform: translateX(260%);
    }
}

@keyframes portfolio-boot-orbit {
    from {
        transform: rotate(calc(var(--ring-rotation, 0deg) + 12deg)) scale(1);
    }
    to {
        transform: rotate(calc(var(--ring-rotation, 0deg) + 372deg)) scale(1);
    }
}

@keyframes portfolio-boot-eye-pulse {
    0%,
    100% {
        opacity: 0.84;
        transform: scaleY(0.86);
    }
    48% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes portfolio-boot-face-scan {
    0% {
        opacity: 0;
        transform: translateY(-90px);
    }
    20%,
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(210px);
    }
}

@keyframes portfolio-stage-scan {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    16%,
    72% {
        opacity: 0.75;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes portfolio-stage-light-sweep {
    0% {
        opacity: 0;
        transform: translateX(-56%) skewX(-14deg);
    }
    24%,
    68% {
        opacity: 0.68;
    }
    100% {
        opacity: 0;
        transform: translateX(46%) skewX(-14deg);
    }
}

@keyframes portfolio-reticle-breathe {
    0%,
    100% {
        opacity: 0.72;
        transform: translateY(4px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(4px) scale(1.018);
    }
}

@keyframes portfolio-welcome-stage-bob {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    28% {
        transform: translateY(-4px) rotate(-0.35deg);
    }
    56% {
        transform: translateY(2px) rotate(0.28deg);
    }
}

@keyframes portfolio-agent-arm-respond {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    28% {
        transform: translateY(-5px) rotate(-0.26deg);
    }
    56% {
        transform: translateY(2px) rotate(0.2deg);
    }
}

@keyframes portfolio-showcase-robot-greeting {
    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    16% {
        transform: translateY(-7px) rotate(-0.46deg) scale(1.004);
    }
    34% {
        transform: translateY(3px) rotate(0.38deg) scale(0.998);
    }
    52% {
        transform: translateY(-4px) rotate(0.22deg) scale(1.003);
    }
    72% {
        transform: translateY(1px) rotate(-0.18deg) scale(1);
    }
}

@keyframes portfolio-showcase-robot-steady {
    from {
        transform: translateY(-5px) rotate(-0.24deg);
    }
    42% {
        transform: translateY(2px) rotate(0.18deg);
    }
    to {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes portfolio-caption-speak {
    0% {
        border-color: rgba(216, 183, 95, 0.2);
        box-shadow: 0 0 0 rgba(112, 217, 242, 0);
        transform: translateY(2px);
    }
    42% {
        border-color: rgba(112, 217, 242, 0.42);
        box-shadow: 0 0 32px rgba(112, 217, 242, 0.16);
        transform: translateY(0);
    }
    100% {
        border-color: rgba(244, 234, 209, 0.13);
        box-shadow: 0 0 0 rgba(112, 217, 242, 0);
        transform: translateY(0);
    }
}

@keyframes portfolio-dossier-lock {
    0% {
        transform: translateY(8px);
    }
    42% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes portfolio-terminal-glint {
    0%,
    100% {
        opacity: 0.24;
        transform: translateX(-10px) scaleX(0.68);
    }
    46% {
        opacity: 0.92;
        transform: translateX(0) scaleX(1);
    }
}

@keyframes portfolio-guide-console-scan {
    0% {
        opacity: 0.26;
        transform: translateX(-70%);
    }

    42% {
        opacity: 0.86;
    }

    100% {
        opacity: 0.26;
        transform: translateX(70%);
    }
}

@keyframes portfolio-agent-playful-shift {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    24% {
        transform: translateY(-5px) rotate(-0.34deg);
    }

    52% {
        transform: translateY(2px) rotate(0.28deg);
    }

    76% {
        transform: translateY(-2px) rotate(-0.12deg);
    }
}

@keyframes portfolio-hotspot-ready {
    0%,
    100% {
        opacity: 0.56;
        transform: scale(0.72);
    }
    50% {
        opacity: 0.96;
        transform: scale(0.9);
    }
}

@keyframes portfolio-showcase-meter {
    0%,
    100% {
        height: 7px;
        opacity: 0.48;
    }
    46% {
        height: 18px;
        opacity: 0.98;
    }
}

@keyframes portfolio-showcase-curtain-release {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    62% {
        opacity: 0.42;
    }
    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

@keyframes portfolio-showcase-stage-arrive {
    from {
        opacity: 0.58;
        filter: blur(3px);
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes portfolio-showcase-guide-pulse {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(244, 234, 209, 0.08),
            0 0 0 rgba(112, 217, 242, 0);
    }
    48% {
        box-shadow:
            inset 0 1px 0 rgba(244, 234, 209, 0.12),
            0 0 26px rgba(112, 217, 242, 0.16);
    }
}

@keyframes portfolio-showcase-data-beam {
    0% {
        opacity: 0;
        transform: translateX(-16%) scaleX(0.12);
    }
    28% {
        opacity: 1;
    }
    66% {
        opacity: 0.74;
        transform: translateX(8%) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: translateX(18%) scaleX(0.18);
    }
}

@keyframes portfolio-showcase-target-ring {
    0%,
    100% {
        opacity: 0.22;
        transform: scale(0.72);
    }
    44% {
        opacity: 0.86;
        transform: scale(1);
    }
}

@keyframes portfolio-map-signal-receive {
    0% {
        opacity: 0;
        transform: translateY(-18px);
    }
    38%,
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(42px);
    }
}

@keyframes portfolio-showcase-card-present {
    from {
        opacity: 0.42;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portfolio-dossier-scan {
    0% {
        opacity: 0;
        transform: translateY(-18px);
    }
    26% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(130px);
    }
}

@keyframes portfolio-proof-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
