:root, [data-theme="dark"] {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #a0a0a0;
    --muted-color: #6b6b6b;
    --panel-dark: #111111;
    --panel-darker: #0a0a0a;
    --panel-darkest: #000000;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-bg-hover: rgba(255, 255, 255, 0.05);
    --metric-bg: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(5, 5, 5, 0.55);
    --glow: rgba(255, 255, 255, 0.035);
    /* Soft positive — mint, not neon “fintech green” */
    --positive: #7dba8a;
    --positive-bg: rgba(125, 186, 138, 0.12);
    --positive-border: rgba(125, 186, 138, 0.28);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #171717;
    --accent-color: #5f5f5f;
    --muted-color: #8a8a8a;
    --panel-dark: #f5f5f5;
    --panel-darker: #ececec;
    --panel-darkest: #e4e4e4;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-bg-hover: rgba(0, 0, 0, 0.04);
    --metric-bg: rgba(0, 0, 0, 0.04);
    --nav-bg: rgba(255, 255, 255, 0.55);
    --glow: rgba(0, 0, 0, 0.025);
    --positive: #2f7a45;
    --positive-bg: rgba(47, 122, 69, 0.08);
    --positive-border: rgba(47, 122, 69, 0.22);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
    -webkit-font-smoothing: antialiased;
}

/* Scroll container */
.container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.container::-webkit-scrollbar {
    display: none;
}

/* Panels */
.panel {
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 6.5rem 5rem 3rem;
    transition: background-color 0.5s var(--ease);
}

.panel.hero {
    background-color: var(--bg-color);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 5rem 0;
    overflow: hidden;
}

/* Problem paradigms — atmospheric backdrop, not a tag cloud */
.paradigm-field {
    position: absolute;
    inset: 0 0 5.5rem 0; /* leave room above specs bar */
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    /* Soft vignette so center content stays readable */
    -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 42%, transparent 0%, transparent 28%, black 72%);
    mask-image: radial-gradient(ellipse 55% 50% at 50% 42%, transparent 0%, transparent 28%, black 72%);
}

.paradigm {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1));
    font-size: clamp(0.7rem, 1.15vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.1;
    white-space: nowrap;
    user-select: none;
    animation: paradigm-breathe-main 12s ease-in-out infinite alternate;
    animation-delay: calc(var(--s, 1) * -5s);
}

.paradigm-soft {
    opacity: 0.06;
    font-weight: 400;
    letter-spacing: 0.16em;
    animation-name: paradigm-breathe-soft;
}

@keyframes paradigm-breathe-main {
    from { opacity: 0.1; }
    to { opacity: 0.055; }
}

@keyframes paradigm-breathe-soft {
    from { opacity: 0.06; }
    to { opacity: 0.03; }
}

@media (min-width: 1100px) {
    @keyframes paradigm-breathe-main {
        from { opacity: 0.125; }
        to { opacity: 0.07; }
    }
    @keyframes paradigm-breathe-soft {
        from { opacity: 0.075; }
        to { opacity: 0.04; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .paradigm,
    .paradigm-soft {
        animation: none;
        opacity: 0.09;
    }
    .paradigm-soft {
        opacity: 0.055;
    }
}

.panel.chapter {
    justify-content: flex-start;
    padding-top: 7rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

/* Outcomes section: content scrolls, not a cramped double-scrollbar mess */
#signature.panel.chapter {
    overflow: hidden;
}

.panel.dark { background-color: var(--panel-dark); }
.panel.darker { background-color: var(--panel-darker); }
.panel.contact.darkest {
    background-color: var(--panel-darkest);
    justify-content: center;
    align-items: center;
}

/* Typography */
h1.title {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.25rem;
    line-height: 1;
}

h2.title,
.section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    max-width: 720px;
    line-height: 1.15;
}

.hero-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.35rem;
}

.hero-name {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    text-indent: 0.22em;
    text-transform: uppercase;
    color: var(--text-color);
}

/* One short line — never wrap the three lanes */
.hero-thesis {
    font-size: clamp(0.95rem, 2.1vw, 1.45rem);
    line-height: 1.3;
    color: var(--accent-color);
    font-weight: 300;
    max-width: none;
    width: max-content;
    max-width: min(92vw, 48rem);
    margin: 0 auto 1.75rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .hero-thesis {
        white-space: nowrap;
        font-size: clamp(0.72rem, 3.2vw, 0.95rem);
        letter-spacing: -0.02em;
        max-width: 96vw;
    }
}

.hero-spec-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    max-width: 11rem;
    text-align: center;
    line-height: 1.35;
}

/* Stack chips — live with impact section, not the hero monologue */
.stack-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    max-width: 1200px;
    margin: 0 0 1.25rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stack-strip-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--muted-color);
    flex-shrink: 0;
}

.stack-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.stack-chips li {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.stack-chips li:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .stack-chips li {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .stack-chips li:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.04);
}

/* Tesla-style product specs under hero */
.hero-specs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: none;
    z-index: 5;
}

.hero-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.hero-spec:last-child {
    border-right: none;
}

.hero-spec:hover {
    background: var(--card-bg);
}

.hero-spec-value {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    font-weight: 500;
}

.positive {
    color: var(--positive);
}

.project-metric.positive,
.modal-metric-badge.positive {
    color: var(--positive);
    background: var(--positive-bg);
    border-color: var(--positive-border);
}

.section-lede {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--accent-color);
    max-width: 36rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

p.description {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--accent-color);
    max-width: 32rem;
    font-weight: 400;
}

.timeline-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 7rem; /* clear the absolute specs bar */
    position: relative;
    z-index: 5;
    /* Soft scrim so name + tagline stay crisp over stack atmosphere */
    background: radial-gradient(ellipse 55% 50% at 50% 45%, var(--bg-color) 0%, transparent 70%);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1.5rem;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 2px;
}

.button-primary:hover,
.button:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.button-ghost {
    border-color: var(--border-color);
    color: var(--accent-color);
}

.button-ghost:hover {
    border-color: var(--text-color);
    color: var(--bg-color);
    background: var(--text-color);
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.contact-meta {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--muted-color);
    letter-spacing: 0.02em;
    line-height: 1.45;
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--muted-color);
    letter-spacing: 0.02em;
}

/* Scroll indicator (kept for reuse; hero uses specs instead) */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.55;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.chevron {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator.fade-in,
.hero-specs.fade-in { transition-delay: 0.35s; }

/* Filters — single section only */
.filter-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.filter-pill {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: inherit;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Project grids — no nested scroll trap on outcomes */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
    width: 100%;
    max-width: 1200px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0.5rem;
}

.signature-content {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.25) transparent;
    width: 100%;
    max-width: 1200px;
}

.signature-content .section-lede {
    margin-bottom: 1.1rem;
}

.signature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}

.signature-grid-5 {
    grid-template-columns: repeat(6, 1fr);
}

.signature-grid-5 .project-card.featured {
    grid-column: span 2;
    min-height: 240px;
}

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

.signature-grid-5 .project-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.signature-grid-5 .card-metric-block {
    padding: 1.15rem 1.35rem 0.25rem;
}

.signature-grid-5 .card-body {
    padding: 0.55rem 1.35rem 0.35rem;
}

.signature-grid-5 .card-footer {
    padding: 0.45rem 1.35rem 1rem;
}

.signature-grid-5 .card-metric-hero {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem) !important;
}

.ats-outcomes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-width: 1200px;
    margin: 0 0 1.35rem;
    padding: 0;
}

.ats-outcomes li {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: var(--card-bg);
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
}

.approach-grid {
    grid-template-columns: repeat(3, 1fr);
    max-height: none;
}

.projects-grid::-webkit-scrollbar {
    width: 5px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.25);
    border-radius: 3px;
}

/* ——— Tesla product-card language ——— */
.project-card {
    --card-glow: rgba(255, 255, 255, 0.06);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.01) 45%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
    position: relative;
    overflow: hidden;
    text-align: left;
    isolation: isolate;
}

[data-theme="light"] .project-card {
    background: linear-gradient(165deg, #fff 0%, #f3f3f3 100%);
    --card-glow: rgba(0, 0, 0, 0.04);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.06));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.project-card.featured {
    min-height: 280px;
}

/* Abstract product “surface” — like a Tesla hero strip */
.card-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.project-card[data-visual="1"] .card-visual {
    background:
        radial-gradient(ellipse 80% 70% at 15% 20%, rgba(125, 186, 138, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

.project-card[data-visual="2"] .card-visual {
    background:
        radial-gradient(ellipse 70% 80% at 80% 10%, rgba(120, 160, 220, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 20% 40%, rgba(255, 255, 255, 0.07) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

.project-card[data-visual="3"] .card-visual {
    background:
        radial-gradient(ellipse 75% 65% at 50% 0%, rgba(180, 140, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 10% 50%, rgba(125, 186, 138, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

.project-card[data-visual="4"] .card-visual {
    background:
        radial-gradient(ellipse 65% 70% at 70% 20%, rgba(255, 200, 120, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 15% 15%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

.project-card:hover .card-visual {
    transform: scale(1.06);
    opacity: 1;
}

/* Shine sweep on hover */
.project-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-18deg);
    transition: left 0.7s var(--ease);
    z-index: 3;
    pointer-events: none;
}

.project-card:hover::after {
    left: 120%;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-card:hover::before {
    opacity: 1;
}

[data-theme="light"] .project-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card.hidden {
    display: none;
}

/* Impact-first metric block */
.card-metric-block {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.5rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-metric-hero {
    font-size: clamp(2.1rem, 3.2vw, 2.65rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.045em !important;
    line-height: 1 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    white-space: nowrap;
}

.card-metric-caption {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-color);
    font-weight: 600;
    line-height: 1.3;
    max-width: 18ch;
}

.card-body {
    position: relative;
    z-index: 1;
    padding: 0.85rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-grow: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.35rem 0;
}

.project-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-color);
    font-weight: 600;
}

.project-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.project-metric {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    background: var(--metric-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.project-summary {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--accent-color);
    flex-grow: 1;
}

.project-method {
    font-size: 0.7rem;
    line-height: 1.45;
    color: var(--muted-color);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.25rem;
}

/* Non-featured cards still get glass treatment */
.project-card:not(.featured) {
    padding: 1.35rem 1.4rem;
    min-height: 180px;
    gap: 0.55rem;
}

.project-card:not(.featured) .card-header {
    padding: 0;
}

.project-card:not(.featured) .card-footer {
    padding: 0;
    margin-top: auto;
}

.project-card:not(.featured) .project-name {
    font-size: 1.15rem;
}

.blast-line {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--accent-color);
    max-width: 42rem;
    margin: -0.75rem 0 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
}

.blast-line strong {
    color: var(--text-color);
    font-weight: 600;
}

.selected-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Experience paradigms — Velocity / 80-20 / 0-1 / 1-100 */
.ops-paradigms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 1.15rem;
}

.ops-paradigm {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.05rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    text-align: left;
}

.ops-paradigm-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: var(--positive);
}

.ops-paradigm-copy {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--accent-color);
}

/* Iteration strip */
.iteration-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 1.5rem;
}

.iteration-beat {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem 1.15rem;
    background: var(--card-bg);
    text-align: left;
}

.iteration-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--positive);
    margin-bottom: 0.45rem;
}

.iteration-copy {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--accent-color);
}

/* ---------- Obsidian-style knowledge graph (Tesla-clean) ---------- */
.graph-layout {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: calc(100vh - 7rem);
    max-height: calc(100vh - 7rem);
    overflow: hidden;
    width: 100%;
    max-width: 1320px;
}

.graph-intro .section-heading {
    margin-bottom: 0.4rem;
}

.graph-lede {
    margin-bottom: 0 !important;
    max-width: 26rem;
    font-size: 0.95rem;
}

.graph-shell {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 320px);
    gap: 1.1rem;
    width: 100%;
}

/* Canvas — quiet field, faint constellation grid */
.graph-canvas-wrap {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background:
        radial-gradient(ellipse 55% 45% at 50% 38%, rgba(255, 255, 255, 0.035) 0%, transparent 68%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, transparent 55%);
    background-size: auto, 22px 22px, auto;
    overflow: hidden;
    min-height: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .graph-canvas-wrap {
    background:
        radial-gradient(ellipse 55% 45% at 50% 38%, rgba(0, 0, 0, 0.025) 0%, transparent 68%),
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0),
        linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 55%);
    background-size: auto, 22px 22px, auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.graph-edges {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Edges: secondary quieter; primary slightly stronger; lit soft-glows */
.graph-edge {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition:
        stroke 0.4s var(--ease),
        stroke-width 0.4s var(--ease),
        stroke-opacity 0.4s var(--ease),
        filter 0.4s var(--ease);
}

.graph-edge-primary {
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 0.22;
}

.graph-edge-secondary {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 0.14;
}

.graph-edge.is-dim {
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 0.12;
    filter: none;
}

.graph-edge.is-lit {
    stroke: rgba(125, 186, 138, 0.72);
    filter: url(#edge-glow);
}

.graph-edge-primary.is-lit {
    stroke-width: 0.32;
}

.graph-edge-secondary.is-lit {
    stroke: rgba(125, 186, 138, 0.48);
    stroke-width: 0.22;
}

[data-theme="light"] .graph-edge-primary {
    stroke: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .graph-edge-secondary {
    stroke: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .graph-edge.is-dim {
    stroke: rgba(0, 0, 0, 0.035);
}

[data-theme="light"] .graph-edge.is-lit {
    stroke: rgba(47, 122, 69, 0.65);
}

[data-theme="light"] .graph-edge-secondary.is-lit {
    stroke: rgba(47, 122, 69, 0.42);
}

.graph-nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Base node */
.g-node {
    appearance: none;
    font-family: inherit;
    position: absolute;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-color);
    transition:
        transform 0.35s var(--ease),
        border-color 0.3s ease,
        opacity 0.35s ease,
        box-shadow 0.35s ease,
        background 0.3s ease,
        color 0.3s ease;
    z-index: 2;
    max-width: 12rem;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.g-node-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Products — anchors: larger, rectangular, elevated */
.g-node-product {
    padding: 0.78rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(0, 0, 0, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    z-index: 5;
}

/* Projects — distinct mid-tier capsules */
.g-node-project {
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    z-index: 4;
}

/* Paradigms — whispers: smaller, dashed, low contrast */
.g-node-paradigm {
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-color);
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.1);
    border-style: dashed;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: 9.5rem;
    z-index: 2;
    opacity: 0.72;
}

[data-theme="light"] .g-node-product {
    background: linear-gradient(155deg, #fff 0%, #f0f0f0 100%);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .g-node-project {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .g-node-paradigm {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--muted-color);
}

.g-node:hover {
    transform: translate(-50%, -50%) scale(1.05);
    border-color: rgba(255, 255, 255, 0.42);
    z-index: 8;
    opacity: 1;
}

.g-node-paradigm:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.04);
}

.g-node.is-active {
    border-color: var(--positive);
    border-style: solid;
    background: var(--positive-bg);
    color: var(--text-color);
    opacity: 1;
    box-shadow:
        0 0 0 1px var(--positive-border),
        0 0 28px rgba(125, 186, 138, 0.22),
        0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.g-node-product.is-active {
    box-shadow:
        0 0 0 1px var(--positive-border),
        0 0 36px rgba(125, 186, 138, 0.28),
        0 14px 36px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.g-node.is-linked {
    border-color: rgba(255, 255, 255, 0.32);
    border-style: solid;
    opacity: 1;
    z-index: 6;
    color: var(--text-color);
}

.g-node-paradigm.is-linked {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.04);
    opacity: 0.95;
}

.g-node.is-dim {
    opacity: 0.16;
    box-shadow: none;
}

.g-node-paradigm.is-dim {
    opacity: 0.1;
}

[data-theme="light"] .g-node:hover {
    border-color: rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .g-node.is-linked {
    border-color: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .g-node.is-active {
    box-shadow:
        0 0 0 1px var(--positive-border),
        0 0 24px rgba(47, 122, 69, 0.15),
        0 10px 24px rgba(0, 0, 0, 0.08);
}

.graph-legend {
    position: absolute;
    bottom: 0.85rem;
    left: 1rem;
    display: flex;
    gap: 0.9rem;
    z-index: 3;
    pointer-events: none;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .graph-legend {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.06);
}

.legend-item {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.legend-item::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.legend-product::before {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    border-radius: 3px;
    border-color: rgba(255, 255, 255, 0.2);
}

.legend-project::before {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.legend-paradigm::before {
    border-radius: 999px;
    border-style: dashed;
    background: transparent;
    opacity: 0.7;
}

/* Inspector — glass card, intentional rhythm */
.graph-inspector {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 40%, rgba(0, 0, 0, 0.18) 100%);
    padding: 1.4rem 1.3rem 1.25rem;
    overflow-y: auto;
    text-align: left;
    min-height: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.25) transparent;
}

.graph-inspector::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.3rem;
    right: 1.3rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
}

[data-theme="light"] .graph-inspector {
    background: linear-gradient(165deg, #fff 0%, #f4f4f4 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .graph-inspector::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.inspector-empty {
    font-size: 0.88rem;
    color: var(--muted-color);
    line-height: 1.55;
    margin-top: 2.5rem;
    text-align: center;
    letter-spacing: 0.01em;
    padding: 0 0.5rem;
}

.inspector-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: inspector-in 0.35s var(--ease);
}

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

.inspector-kind {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--positive);
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    background: var(--positive-bg);
    border: 1px solid var(--positive-border);
}

.inspector-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    margin: 0.75rem 0 0.45rem;
    line-height: 1.15;
}

.inspector-blurb {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--accent-color);
    margin-bottom: 1.15rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.inspector-block {
    margin-bottom: 1rem;
}

.inspector-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.inspector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.inspector-tag {
    appearance: none;
    font-family: inherit;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.32rem 0.68rem;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    line-height: 1.25;
}

.inspector-tag:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

[data-theme="light"] .inspector-tag {
    background: rgba(0, 0, 0, 0.025);
}

[data-theme="light"] .inspector-tag:hover {
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(0, 0, 0, 0.04);
}

.inspector-tag.tag-paradigm {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.6rem;
    color: var(--accent-color);
    border-style: dashed;
    font-weight: 500;
}

.inspector-tag.tag-stack {
    background: var(--positive-bg);
    border-color: var(--positive-border);
    color: var(--positive);
    cursor: default;
    font-weight: 600;
}

.inspector-tag.tag-stack:hover {
    transform: none;
    border-color: var(--positive-border);
}

.inspector-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    margin-top: 0.35rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-color);
    text-decoration: none;
    background: var(--text-color);
    border-radius: 8px;
    border: none;
    transition: opacity 0.2s ease, transform 0.25s var(--ease);
}

.inspector-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    position: relative;
    z-index: 1;
    padding: 0.75rem 1.5rem 1.25rem;
}

.view-details-link {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-color);
    opacity: 0.4;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: opacity 0.25s ease, letter-spacing 0.3s ease;
}

.project-card:hover .view-details-link {
    opacity: 1;
    letter-spacing: 0.16em;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.project-card:hover .arrow-icon {
    transform: translateX(3px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-window {
    background: #0f0f0f;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    padding: 2.25rem;
    position: relative;
    transform: scale(0.96) translateY(16px);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-overlay.active .modal-window {
    transform: scale(1) translateY(0);
}

[data-theme="light"] .modal-window {
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--card-bg-hover);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

.modal-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-color);
    font-weight: 600;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 0.4rem;
    margin-bottom: 0.9rem;
    padding-right: 2rem;
    line-height: 1.15;
}

.modal-metric-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: var(--metric-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.modal-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.35rem 0;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.modal-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-bullets li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--accent-color);
    position: relative;
    padding-left: 1.15rem;
}

.modal-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-color);
}

.modal-bullets strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3.5rem;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--nav-bg);
    transition: border-color 0.5s var(--ease), background-color 0.5s ease;
}

.nav-logo {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.nav-logo:hover {
    opacity: 0.75;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-item {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    transition: color 0.25s var(--ease);
    position: relative;
    padding: 0.4rem 0;
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: all 0.3s var(--ease);
    transform: translateX(-50%);
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-color);
}

.nav-item.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    z-index: 1001;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.4rem;
}

.menu-bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-color);
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
    transform-origin: center;
}

body.menu-open .menu-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .menu-bar:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Theme toggle */
.theme-toggle-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    position: relative;
    transition: background-color 0.2s ease;
}

.theme-toggle-btn:hover {
    background: var(--card-bg-hover);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: transform 0.45s var(--ease), opacity 0.25s ease;
}

.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
    opacity: 1;
    transform: rotate(0);
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
    opacity: 1;
    transform: rotate(0);
}

/* Ambient glow */
.ambient-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1200px;
}

/* Beyond */
.beyond-layout {
    display: flex;
    gap: 3.5rem;
    width: 100%;
    max-width: 1200px;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
}

.beyond-left {
    flex: 1;
    max-width: 480px;
}

.beyond-heading {
    font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
    line-height: 1.15 !important;
    margin-top: 0.35rem;
    margin-bottom: 1.25rem !important;
}

.beyond-copy {
    margin-bottom: 1rem;
}

.beyond-copy-secondary {
    font-size: 1rem !important;
    color: var(--muted-color) !important;
}

.beyond-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 420px;
}

.interest-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.interest-card .project-summary {
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* Career path */
.path-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 880px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding-right: 0.35rem;
    border-top: 1px solid var(--border-color);
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.25) transparent;
}

.path-item {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.path-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.15rem;
}

.path-when {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-color);
    font-weight: 600;
}

.path-where {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.path-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.path-copy {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--accent-color);
    max-width: 40rem;
}

@media (max-width: 700px) {
    .path-item {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        padding: 1.1rem 0;
    }

    .path-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.5rem 0.75rem;
    }

    .path-stack {
        max-height: none;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .signature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .signature-grid-5 {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 900px) {
    .signature-grid-5 {
        grid-template-columns: 1fr;
    }

    .graph-layout {
        height: auto;
        max-height: none;
        overflow: visible;
        gap: 0.85rem;
    }

    .graph-shell {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        min-height: 0;
    }

    .graph-canvas-wrap {
        min-height: min(58vh, 480px);
        height: min(58vh, 480px);
        border-radius: 18px;
    }

    .graph-inspector {
        border-radius: 18px;
        max-height: none;
        min-height: auto;
        padding: 1.15rem 1.1rem;
    }

    .graph-legend {
        bottom: 0.55rem;
        left: 0.55rem;
        gap: 0.55rem;
        padding: 0.32rem 0.5rem;
    }

    .legend-item {
        font-size: 0.52rem;
        letter-spacing: 0.1em;
    }

    .g-node-product {
        font-size: 0.72rem;
        padding: 0.55rem 0.85rem;
        border-radius: 10px;
        max-width: 9.5rem;
    }

    .g-node-project {
        font-size: 0.6rem;
        padding: 0.38rem 0.62rem;
        max-width: 8.5rem;
    }

    .g-node-paradigm {
        font-size: 0.5rem;
        padding: 0.22rem 0.42rem;
        max-width: 7rem;
        letter-spacing: 0.04em;
    }

    .inspector-title {
        font-size: 1.15rem;
    }

    .inspector-cta {
        width: 100%;
        justify-content: center;
    }

    .iteration-strip {
        grid-template-columns: 1fr;
    }

    .ops-paradigms {
        grid-template-columns: 1fr 1fr;
    }

    .navbar {
        padding: 0 1.5rem;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        gap: 1.75rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease);
        z-index: 1000;
    }

    body.menu-open .nav-links {
        opacity: 1;
        pointer-events: all;
    }

    .nav-item {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .nav-item::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
        order: 3;
        margin-left: 0.5rem;
    }

    .nav-actions {
        margin-left: auto;
    }

    .panel {
        padding: 5.5rem 1.5rem 2rem;
        height: auto;
        min-height: 100vh;
    }

    .panel.hero {
        padding: 5.5rem 1.5rem 0;
        justify-content: flex-start;
        padding-top: 7.5rem;
    }

    .paradigm-field {
        inset: 0 0 0 0;
        -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, transparent 35%, black 80%);
        mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, transparent 35%, black 80%);
    }

    .paradigm {
        font-size: 0.65rem;
        opacity: 0.07;
    }

    .paradigm-soft {
        display: none; /* fewer whispers on small screens */
    }

    .hero-content {
        flex: 1;
        justify-content: center;
        padding-bottom: 1.5rem;
    }

    .hero-specs {
        position: relative;
        grid-template-columns: 1fr 1fr;
        margin-top: auto;
    }

    .hero-spec {
        padding: 1.15rem 0.75rem;
    }

    .hero-spec:nth-child(1),
    .hero-spec:nth-child(2) {
        border-bottom: 1px solid var(--border-color);
    }

    .hero-spec:nth-child(2n) {
        border-right: none;
    }

    .panel.chapter {
        padding-top: 6rem;
    }

    .signature-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        max-height: none;
    }

    .beyond-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .beyond-left,
    .beyond-right {
        max-width: 100%;
        width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    h1.title {
        font-size: 3rem;
    }

    .hero-spec-value {
        font-size: 1.45rem;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .container {
        scroll-behavior: auto;
    }
}
