/* ==========================================================================
   Mitchell Andrade Portfolio — Design System & Layout
   Apple-inspired minimal aesthetic with full Light/Dark theme support
   ========================================================================== */

:root {
    --bg-main: #f5f5f7;
    --bg-elevated: #fbfbfd;
    --card-bg: #ffffff;
    --card-muted: #f2f2f5;
    --text-primary: #1d1d1f;
    --text-secondary: #515154; /* WCAG AA >= 7:1 on #fff, >= 6.4:1 on #f5f5f7 */
    --text-tertiary: #636368;  /* WCAG AA >= 4.9:1 on #f5f5f7 */
    --accent-blue: #0066cc;
    --accent-hover: #0055b3;
    --accent-soft: rgba(0, 102, 204, 0.1);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --nav-bg: rgba(251, 251, 253, 0.78);
    --pill-bg: rgba(0, 0, 0, 0.05);
    --pill-hover: rgba(0, 0, 0, 0.09);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.16);

    /* Status & Milestone Variables */
    --live-text: #047857;
    --live-bg: rgba(16, 185, 129, 0.12);
    --live-dot: #10b981;
    --amber-text: #92400e;
    --amber-bg: rgba(245, 158, 11, 0.14);
    --amber-dot: #f59e0b;

    --milestone-bg: linear-gradient(135deg, rgba(0, 102, 204, 0.06) 0%, rgba(16, 185, 129, 0.05) 100%);
    --milestone-border: rgba(0, 102, 204, 0.24);
    --metric-chip-bg: rgba(255, 255, 255, 0.9);
    --chat-glass: rgba(255, 255, 255, 0.96);

    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
    --bg-main: #000000;
    --bg-elevated: #0c0c0e;
    --card-bg: #161618;
    --card-muted: #1f1f23;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6; /* WCAG AA >= 7.2:1 on #161618 */
    --text-tertiary: #8e8e93;
    --accent-blue: #2997ff;
    --accent-hover: #4ea9ff;
    --accent-soft: rgba(41, 151, 255, 0.16);
    --border-subtle: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.2);
    --nav-bg: rgba(22, 22, 24, 0.78);
    --pill-bg: rgba(255, 255, 255, 0.08);
    --pill-hover: rgba(255, 255, 255, 0.14);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.78);

    --live-text: #34d399;
    --live-bg: rgba(16, 185, 129, 0.18);
    --live-dot: #34d399;
    --amber-text: #fbbf24;
    --amber-bg: rgba(245, 158, 11, 0.18);
    --amber-dot: #fbbf24;

    --milestone-bg: linear-gradient(135deg, rgba(41, 151, 255, 0.14) 0%, rgba(16, 185, 129, 0.1) 100%);
    --milestone-border: rgba(41, 151, 255, 0.35);
    --metric-chip-bg: rgba(31, 31, 35, 0.9);
    --chat-glass: rgba(28, 28, 30, 0.96);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.55;
    transition: background-color 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section[id],
.featured-card {
    scroll-margin-top: 5.75rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
    font-size: clamp(2.85rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
}

.hero-headline {
    font-size: clamp(1.65rem, 3.4vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    padding-top: 5rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    background: var(--accent-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Glassmorphism Navigation
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.75rem;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--accent-blue);
    font-weight: 600;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.06);
    border-color: var(--border-strong);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* ==========================================================================
   Hero Section & Impact Metrics Strip
   ========================================================================== */
.hero {
    padding-top: 8.5rem;
    padding-bottom: 3rem;
    text-align: center;
}

.hero-content {
    max-width: 840px;
    margin: 0 auto;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 0.42rem 1.05rem;
    border-radius: 980px;
    margin-bottom: 1.4rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.location-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-dot);
    box-shadow: 0 0 0 3px var(--live-bg);
}

.gradient-text {
    background: linear-gradient(95deg, var(--accent-blue) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.78rem 1.55rem;
    border-radius: 980px;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-sm {
    padding: 0.52rem 1.05rem;
    font-size: 0.84rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--card-muted);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.btn-ghost {
    background-color: var(--pill-bg);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background-color: var(--pill-hover);
}

/* Executive Metrics Bar */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.75rem auto 0 auto;
    max-width: 960px;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.25rem 1.15rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.metric-value {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.metric-sub {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

/* Status Directory */
.status-directory {
    max-width: 680px;
    margin: 2rem auto 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.status-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-directory-hint {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-directory-list {
    display: flex;
    flex-direction: column;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.94rem;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.status-row:last-child {
    border-bottom: none;
    padding-bottom: 0.35rem;
}

.status-row:hover {
    background-color: var(--accent-soft);
    transform: translateX(3px);
}

.status-row-name {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pulse-live {
    background: var(--live-dot);
    box-shadow: 0 0 0 3px var(--live-bg);
}

.pulse-amber {
    background: var(--amber-dot);
    box-shadow: 0 0 0 3px var(--amber-bg);
}

.status-row-state {
    font-size: 0.84rem;
    font-weight: 600;
    text-align: right;
}

.state-live {
    color: var(--live-text);
}

.state-amber {
    color: var(--amber-text);
}

/* Google Tour Showcase */
.social-proof-showcase {
    margin-top: 3.5rem;
    padding-top: 2.75rem;
    border-top: 1px solid var(--border-subtle);
}

.showcase-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.showcase-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.showcase-thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.showcase-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.showcase-img-badge {
    object-position: center 22%;
}

.showcase-overlay-label {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    background: rgba(15, 15, 18, 0.74);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ==========================================================================
   Generic Cards & Highlight State
   ========================================================================== */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.card.skill-matched {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-md);
}

.card.skill-dimmed {
    opacity: 0.45;
}

/* ==========================================================================
   Experience, Finance & Education Bento
   ========================================================================== */
.experience-bento {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.bento-col-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-subtle);
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.timeline-item.skill-matched {
    border-left-color: var(--accent-blue);
}

.timeline-item.skill-dimmed {
    opacity: 0.42;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.timeline-role {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-period {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: var(--accent-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.timeline-org {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.timeline-bullets {
    padding-left: 1.05rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.edu-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.edu-card {
    padding: 1.6rem;
}

.edu-degree {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.edu-school {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.35rem;
}

.edu-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
}

.edu-highlight {
    font-size: 0.84rem;
    color: var(--text-primary);
    background: var(--card-muted);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-subtle);
}

.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: var(--card-muted);
    border: 1px solid var(--border-subtle);
    font-size: 0.86rem;
    font-weight: 600;
}

.cert-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--amber-text);
    background: var(--amber-bg);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ==========================================================================
   CliftonStrengths Top 5 — Balanced 6-Col Bento Grid (3 + 2)
   ========================================================================== */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.strength-card {
    padding: 1.75rem;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

.strength-card:nth-child(4),
.strength-card:nth-child(5) {
    grid-column: span 3;
}

.strength-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.strength-number {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--accent-blue);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.strength-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
}

.strength-desc {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   Projects Filter Bar, Case Studies & Collapsible Build Drawers
   ========================================================================== */
.projects-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.filter-pill.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.featured-card {
    margin-bottom: 1.75rem;
}

.featured-card.is-hidden-filter,
.mini-project-card.is-hidden-filter {
    display: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--card-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    border-radius: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-live {
    background: var(--live-bg);
    color: var(--live-text);
}

.status-live .status-dot {
    background: var(--live-dot);
    box-shadow: 0 0 0 3px var(--live-bg);
}

.status-progress {
    background: var(--accent-soft);
    color: var(--accent-blue);
}

.status-progress .status-dot {
    background: var(--accent-blue);
}

.tech-stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.tech-chip {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: var(--accent-soft);
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
}

.project-desc {
    font-size: 1.04rem;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
}

.pbr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.pbr-box {
    background: var(--card-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
}

.pbr-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-blue);
    margin-bottom: 0.35rem;
    display: block;
}

.pbr-box p {
    font-size: 0.89rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.project-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.project-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.drawer-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--card-muted);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.drawer-toggle-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent-blue);
}

.drawer-chevron {
    transition: transform 0.25s ease;
}

.drawer-toggle-btn[aria-expanded="true"] .drawer-chevron {
    transform: rotate(180deg);
}

/* Collapsible Build Log Drawer */
.phases-drawer {
    display: none;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
}

.phases-drawer.open {
    display: block;
    animation: fadeSlideDown 0.25s ease;
}

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

.phases-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.phase {
    display: flex;
    gap: 1.25rem;
}

.phase-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.active-phase .phase-indicator {
    background-color: var(--accent-blue);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.future-phase .phase-indicator {
    background-color: var(--text-tertiary);
}

.future-phase {
    opacity: 0.68;
}

.phase-details {
    flex: 1;
    min-width: 0;
}

.phase-details h4 {
    font-size: 1.06rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.phase-details p {
    color: var(--text-secondary);
    font-size: 0.93rem;
}

/* Clickable, Accessible Media Thumbnails */
.hardware-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.15rem;
}

.media-thumb {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--card-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-thumb:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

.media-thumb-frame {
    position: relative;
    width: 100%;
    height: 155px;
    overflow: hidden;
    background: var(--bg-main);
}

.media-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.media-thumb-frame img.img-contain {
    object-fit: contain;
    padding: 0.35rem;
    background: var(--bg-elevated);
}

.media-thumb:hover .media-thumb-frame img {
    transform: scale(1.04);
}

.zoom-badge {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 15, 18, 0.78);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
}

.media-thumb-caption {
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Milestone Banner */
.milestone-banner {
    margin: 0.5rem 0;
    padding: 1.35rem 1.5rem;
    background: var(--milestone-bg);
    border: 1px solid var(--milestone-border);
    border-left: 4px solid var(--accent-blue);
    border-radius: 14px;
}

.milestone-banner.upcoming-milestone {
    border-style: dashed;
    border-left-style: solid;
    border-left-width: 4px;
    border-left-color: var(--amber-dot);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(0, 102, 204, 0.05) 100%);
}

.milestone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.milestone-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--amber-text);
    background: var(--amber-bg);
    padding: 4px 10px;
    border-radius: 999px;
}

.milestone-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.milestone-banner h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.milestone-banner p {
    font-size: 0.91rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.milestone-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metric-chip {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--metric-chip-bg);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 8px;
}

/* Additional Engineering & FinTech Grid */
.subprojects-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem 0;
    color: var(--text-primary);
}

.mini-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.mini-project-card {
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.mini-project-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Unit Economics & Cost Guardrail Simulator
   ========================================================================== */
.simulator-card {
    padding: 2.25rem;
}

.sim-tabs {
    display: inline-flex;
    background: var(--card-muted);
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    gap: 0.25rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.sim-tab-btn {
    padding: 0.55rem 1.05rem;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
}

.sim-tab-btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.sim-panel {
    display: none;
}

.sim-panel.active {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
    align-items: center;
}

.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.slider-val {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    background: var(--accent-soft);
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
}

.sim-range {
    width: 100%;
    accent-color: var(--accent-blue);
    cursor: pointer;
    height: 6px;
}

.sim-assumption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--card-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.sim-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sim-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.sim-kpi {
    background: var(--card-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.sim-kpi-highlight {
    border-color: var(--accent-blue);
    background: var(--accent-soft);
}

.sim-kpi-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.sim-kpi-num {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.sim-bars {
    background: var(--card-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
}

.bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--border-subtle);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.bar-fill-naive {
    background: var(--text-tertiary);
}

.bar-fill-edge {
    background: var(--accent-blue);
}

.bar-fill-safe {
    background: var(--live-dot);
}

/* ==========================================================================
   Interactive Technical Expertise Matrix
   ========================================================================== */
.skills-filter-status {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.skills-filter-status.visible {
    display: flex;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.skill-group {
    padding: 1.75rem;
}

.skill-group h3 {
    font-size: 1.12rem;
    margin-bottom: 0.9rem;
    color: var(--text-primary);
}

.skill-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--card-muted);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
}

.skill-pill:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.skill-pill.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 4.5rem 0 6rem 0;
}

.footer-content {
    text-align: center;
    padding: 3.25rem 2rem;
}

.footer-content h2 {
    margin-bottom: 0.55rem;
}

.footer-subtitle {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.footer-detail {
    font-size: 0.96rem;
    color: var(--text-secondary);
    margin-bottom: 1.85rem;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.copyright {
    font-size: 0.84rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Full-Screen Lightbox Modal
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(10, 10, 12, 0.86);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.lightbox-modal.hidden {
    display: none;
}

.lightbox-dialog {
    position: relative;
    max-width: 980px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.lightbox-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.lightbox-counter {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.lightbox-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--card-muted);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-stage {
    background: #0a0a0c;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 68vh;
    min-height: 280px;
    padding: 1rem;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 62vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    gap: 1rem;
}

.lightbox-caption {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lightbox-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ==========================================================================
   AI Chat Widget
   ========================================================================== */
.chat-widget-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    font-family: var(--font-stack);
}

.chat-widget-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.chat-widget-button:hover {
    transform: scale(1.06);
    background-color: var(--accent-hover);
}

.chat-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 385px;
    height: 540px;
    max-height: 78vh;
    background: var(--chat-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.22s ease, transform 0.22s ease;
    transform-origin: bottom right;
}

.chat-window.expanded {
    width: 540px;
    height: 680px;
    max-height: 85vh;
}

.chat-window.dragging {
    transition: none !important;
}

.chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.chat-sheet-handle {
    display: none;
}

.chat-header {
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #4f46e5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.chat-title-wrap {
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.chat-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chat-icon-btn,
.chat-close-btn {
    background: var(--pill-bg);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s, color 0.2s;
}

.chat-icon-btn:hover,
.chat-close-btn:hover {
    background: var(--pill-hover);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: 1.1rem 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    max-width: 86%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.48;
    white-space: pre-line;
}

.ai-message {
    background-color: var(--card-muted);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background-color: var(--accent-blue);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-suggestions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.55rem 1rem 0.25rem 1rem;
    flex-shrink: 0;
}

.suggestion-pill {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 0.4rem 0.78rem;
    font-size: 0.78rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.suggestion-pill:hover {
    border-color: var(--accent-blue);
    background-color: var(--accent-soft);
}

.suggestion-pill-primary {
    border-color: var(--accent-blue);
    background-color: var(--accent-soft);
    color: var(--accent-blue);
}

.suggestion-pill-primary:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.ai-message-intake {
    max-width: 96%;
    width: 100%;
    white-space: normal;
}

.chat-intake-intro {
    margin: 0;
    line-height: 1.45;
}

.chat-intake-card {
    margin-top: 0.75rem;
    padding: 0.9rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    white-space: normal;
}

.chat-intake-section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.chat-intake-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.chat-duration-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.25rem;
    background: var(--card-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 11px;
}

.chat-duration-pill {
    padding: 0.42rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.16s ease;
}

.chat-duration-pill:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--pill-bg);
}

.chat-duration-pill.active {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.28);
}

.chat-duration-pill:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.chat-calendar-box {
    padding: 0.7rem;
    background: var(--card-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.chat-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.chat-cal-month-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-cal-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-cal-tz {
    padding: 0.24rem 0.45rem;
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.chat-cal-tz:focus {
    border-color: var(--accent-blue);
}

.chat-cal-nav-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.chat-cal-nav-btn:hover:not(:disabled) {
    border-color: var(--accent-blue);
    background: var(--accent-soft);
    color: var(--accent-blue);
}

.chat-cal-nav-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.chat-cal-weekdays,
.chat-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.22rem;
}

.chat-cal-weekday {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-tertiary);
    padding: 0.15rem 0;
}

.chat-cal-day {
    height: 30px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.14s ease;
}

.chat-cal-day:hover:not(:disabled):not(.is-selected) {
    background: var(--card-bg);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.chat-cal-day.is-today:not(.is-selected) {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.chat-cal-day.is-selected {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.chat-cal-day:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chat-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.chat-slot-pill {
    padding: 0.42rem 0.3rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.74rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all 0.14s ease;
}

.chat-slot-pill:hover:not(:disabled):not(.active) {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-soft);
}

.chat-slot-pill.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.chat-slot-pill:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.chat-slot-summary {
    padding: 0.46rem 0.7rem;
    border-radius: 9px;
    border: 1px solid var(--milestone-border);
    background: var(--accent-soft);
    color: var(--accent-blue);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 520px) {
    .chat-slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.chat-intake-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.chat-intake-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-intake-field-full {
    grid-column: 1 / -1;
}

.chat-intake-input,
.chat-intake-select,
.chat-intake-textarea {
    width: 100%;
    padding: 0.5rem 0.68rem;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--card-muted);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: inherit;
    line-height: 1.35;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-intake-input::placeholder,
.chat-intake-textarea::placeholder {
    color: var(--text-tertiary);
}

.chat-intake-input:focus,
.chat-intake-select:focus,
.chat-intake-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.chat-intake-input:disabled,
.chat-intake-select:disabled,
.chat-intake-textarea:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.chat-intake-textarea {
    resize: vertical;
    min-height: 50px;
}

.chat-intake-submit {
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 10px;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.83rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.18s ease, opacity 0.18s ease;
}

.chat-intake-submit:hover:not(:disabled) {
    background: var(--accent-hover);
}

.chat-intake-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.chat-intake-hint {
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--text-tertiary);
    min-height: 0.95rem;
}

.chat-intake-hint.is-error {
    color: #dc2626;
    font-weight: 600;
}

.chat-input-wrapper {
    background: var(--card-bg);
    border-top: 1px solid var(--border-subtle);
    padding: 0.65rem 0.9rem 0.75rem 0.9rem;
    flex-shrink: 0;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#chat-input {
    flex: 1;
    min-width: 0;
    padding: 0.68rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 980px;
    background: var(--card-muted);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}

#chat-input:focus {
    border-color: var(--accent-blue);
}

.chat-send-btn {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.chat-input-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0 0.45rem;
    font-size: 0.71rem;
    color: var(--text-secondary);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.55rem 0.95rem;
    background-color: var(--card-muted);
    border-radius: 18px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================================================
   Resume Subpage Styles
   ========================================================================== */
.resume-main {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
}

.resume-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem auto;
}

.resume-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.resume-mode-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.resume-sheet {
    padding: 2.75rem;
}

.resume-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.resume-doc-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.resume-doc-contact {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.resume-block {
    margin-bottom: 2rem;
}

.resume-block:last-child {
    margin-bottom: 0;
}

.resume-block-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.15rem;
}

.resume-entry {
    margin-bottom: 1.2rem;
}

.resume-entry:last-child {
    margin-bottom: 0;
}

.resume-entry-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.resume-entry-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.resume-entry-date {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.resume-entry-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.resume-entry ul {
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.pdf-viewer-card {
    padding: 0;
    overflow: hidden;
    display: none;
}

.pdf-viewer-card.active {
    display: block;
}

.resume-sheet.hidden-mode {
    display: none;
}

.pdf-embed {
    width: 100%;
    height: 820px;
    border: none;
    display: block;
    background: var(--card-muted);
}

.pdf-fallback {
    padding: 3rem 2rem;
    text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
    .metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-bento {
        grid-template-columns: 1fr;
    }

    .sim-panel.active {
        grid-template-columns: 1fr;
    }

    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strength-card,
    .strength-card:nth-child(4),
    .strength-card:nth-child(5) {
        grid-column: span 1;
    }

    .strength-card:nth-child(5) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.1rem;
    }

    .glass-nav .container {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.65rem;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        gap: 0.9rem;
        flex-wrap: wrap;
    }

    section[id],
    .featured-card {
        scroll-margin-top: 7.25rem;
    }

    .hero {
        padding-top: 8.5rem;
    }

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

    .metrics-strip,
    .showcase-grid,
    .pbr-grid,
    .hardware-showcase,
    .mini-projects-grid,
    .skills-wrapper,
    .strengths-grid,
    .sim-kpi-grid {
        grid-template-columns: 1fr;
    }

    .strength-card,
    .strength-card:nth-child(4),
    .strength-card:nth-child(5) {
        grid-column: span 1;
    }

    .card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .resume-sheet {
        padding: 1.5rem;
    }

    footer {
        padding: 3.5rem 0 7rem 0;
    }

    /* Mobile Bottom-Sheet Chat */
    .chat-widget-container {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-window {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 62vh;
        max-height: 62vh;
        border-radius: 24px 24px 0 0;
        z-index: 10000;
        transform-origin: bottom center;
    }

    .chat-window.expanded {
        width: 100%;
        height: 92vh;
        max-height: 92vh;
    }

    .chat-sheet-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 22px;
        cursor: grab;
        touch-action: none;
        flex-shrink: 0;
    }

    .chat-sheet-handle::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-strong);
        border-radius: 999px;
    }

    .chat-header {
        touch-action: none;
    }

    .lightbox-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    .glass-nav,
    .chat-widget-container,
    .resume-mode-bar,
    .resume-hero,
    footer {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .resume-main {
        padding: 0;
    }

    .card.resume-sheet {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}
