/* ==========================================
   DEVELOPER PORTFOLIO - VERCEL / LINEAR MINIMAL
   ========================================== */

:root {
    /* Pure Monochrome & Neutral Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    --bg-subtle: #f4f4f5;
    
    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    
    --accent-primary: #18181b;
    --accent-blue: #2563eb;
    
    --border-color: #e4e4e7;
    --border-hover: #a1a1aa;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Dark Theme Overrides */
body.dark-theme {
    --bg-primary: #09090b;
    --bg-secondary: #121215;
    --bg-card: #18181b;
    --bg-subtle: #27272a;
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-primary: #ffffff;
    --accent-blue: #3b82f6;
    
    --border-color: #27272a;
    --border-hover: #52525b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--text-primary);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Clean Cards */
.clean-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.clean-card:hover {
    border-color: var(--border-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-dark {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-dark:hover {
    opacity: 0.88;
}

.btn-outline {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    background: var(--bg-subtle);
}

/* Clean Minimal Details Button Style */
.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-detail:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-detail i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.btn-detail:hover i {
    transform: translateX(2px);
}

/* Primary project action */
.open-modal-btn {
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    background: var(--signal, var(--accent-primary));
    border-color: var(--text-primary);
    color: var(--ink, var(--bg-primary));
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 3px 3px 0 var(--text-primary);
}

.open-modal-btn:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 1px 1px 0 var(--text-primary);
    transform: translate(2px, 2px);
}

.open-modal-btn:focus-visible {
    outline: 3px solid var(--signal, var(--accent-blue));
    outline-offset: 3px;
}

.btn-detail-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

.btn-detail-ghost:hover {
    background: var(--bg-subtle);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
}

.nav-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

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

.icon-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.icon-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Hero Section */
.hero-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.hero-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.hero-bio {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
}

/* Tech Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.highlight-item {
    padding: 1.25rem;
}

.highlight-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.highlight-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Skills Tags List */
.skills-group {
    margin-bottom: 1.5rem;
}

.skills-group-title {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-item {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.project-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-footer-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 0.4rem;
}

.project-action-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

/* Experience Minimal List */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
}

.exp-period {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.2rem;
}

.exp-role {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.exp-company {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.exp-details {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    line-height: 1.6;
}

/* Contact Bar */
.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 1rem;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    z-index: 10;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    transition: max-width var(--transition-normal);
}

.modal-box.has-demo-videos {
    max-width: 980px;
    border: 2px solid var(--text-primary);
    background: var(--bg-card);
    box-shadow: 10px 10px 0 var(--text-primary);
}

.modal-box.has-architecture {
    max-width: 980px;
    border: 2px solid var(--text-primary);
    box-shadow: 10px 10px 0 var(--text-primary);
}

.modal-box.has-demo-videos::-webkit-scrollbar {
    width: 10px;
}

.modal-box.has-demo-videos::-webkit-scrollbar-track {
    background: var(--bg-subtle);
}

.modal-box.has-demo-videos::-webkit-scrollbar-thumb {
    background: var(--text-primary);
    border: 2px solid var(--bg-subtle);
}

.feature-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.feature-section-heading h4 {
    font-size: 0.9rem;
    font-weight: 800;
}

.feature-section-heading span {
    padding: 0.2rem 0.5rem;
    background: var(--signal);
    color: var(--ink);
    font: 700 0.62rem var(--font-mono);
    letter-spacing: 0.07em;
    transform: rotate(1deg);
}

.feature-list {
    padding-left: 1.1rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list li {
    margin-bottom: 0.35rem;
}

.feature-demo-list {
    display: grid;
    gap: 1.6rem;
    margin-bottom: 1.75rem;
}

.feature-demo-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(210px, 0.8fr) minmax(320px, 1.4fr);
    align-items: center;
    border: 2px solid var(--text-primary);
    background: var(--bg-card);
    box-shadow: 5px 5px 0 var(--text-primary);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-demo-card:nth-child(odd) {
    margin-right: clamp(0.75rem, 4vw, 3.25rem);
}

.feature-demo-card:nth-child(even) {
    margin-left: clamp(0.75rem, 4vw, 3.25rem);
    grid-template-columns: minmax(320px, 1.4fr) minmax(210px, 0.8fr);
}

.feature-demo-card:nth-child(even) .feature-demo-copy {
    grid-column: 2;
    grid-row: 1;
}

.feature-demo-card:nth-child(even) .feature-demo-media {
    grid-column: 1;
    grid-row: 1;
    border-left: 0;
    border-right: 2px solid var(--text-primary);
}

.feature-demo-card::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: linear-gradient(45deg, transparent 48%, var(--text-primary) 50%);
    pointer-events: none;
}

.feature-demo-card:nth-child(even)::after {
    right: auto;
    left: -2px;
    transform: scaleX(-1);
}

.feature-demo-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--text-primary);
}

.feature-demo-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.35rem;
    background: var(--bg-card);
}

.feature-demo-index {
    align-self: flex-start;
    padding: 0.25rem 0.75rem 0.25rem 0.45rem;
    background: var(--signal);
    color: var(--ink);
    font: 800 0.68rem var(--font-mono);
    letter-spacing: 0.08em;
    border: 1px solid var(--text-primary);
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.feature-demo-copy p {
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.55;
    font-weight: 600;
}

.feature-demo-media {
    min-width: 0;
    padding: 0.7rem;
    background: var(--bg-subtle);
    border-left: 2px solid var(--text-primary);
}

.feature-demo-media video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #050505;
    border: 1px solid var(--text-primary);
}

/* DOGO database architecture */
.erd-showcase {
    --erd-blue: #315cf5;
    margin: 3rem 0 2rem;
    color: var(--text-primary);
}

.erd-showcase-head {
    padding-bottom: 1.1rem;
    border-bottom: 3px solid var(--text-primary);
}

.erd-kicker {
    display: inline-block;
    margin-bottom: .45rem;
    color: var(--erd-blue);
    font: 800 .66rem var(--font-mono);
    letter-spacing: .14em;
}

.erd-showcase-head h4 { margin-bottom: .25rem; font-size: 1.25rem; }
.erd-showcase-head p { max-width: 650px; color: var(--text-secondary); font-size: .78rem; }

.erd-lanes { border: 2px solid var(--text-primary); border-top: 0; }
.erd-lane { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1rem; padding: 1.15rem; background: var(--bg-card); }
.erd-lane + .erd-lane { border-top: 1px solid var(--text-primary); }
.erd-lane-label { display: flex; align-items: flex-start; gap: .6rem; padding-top: .35rem; }
.erd-lane-label > span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; background: var(--text-primary); color: var(--bg-card); font: 800 .62rem var(--font-mono); }
.erd-lane-label div { display: flex; flex-direction: column; }
.erd-lane-label b { font-size: .75rem; line-height: 1.25; }
.erd-lane-label small { margin-top: .18rem; color: var(--text-muted); font: 500 .53rem var(--font-mono); }

.erd-path { display: grid; grid-template-columns: minmax(120px, .9fr) 18px minmax(145px, 1.15fr) 18px minmax(125px, .95fr); align-items: center; gap: .4rem; }
.erd-path > i { font: 800 .9rem var(--font-mono); font-style: normal; text-align: center; }
.erd-entity { min-width: 0; padding: .62rem .7rem; border: 1px solid var(--text-primary); background: var(--bg-card); }
.erd-entity b, .erd-entity small { display: block; overflow: hidden; text-overflow: ellipsis; }
.erd-entity b { font: 800 .62rem var(--font-mono); white-space: nowrap; }
.erd-entity small { margin-top: .18rem; color: var(--text-muted); font-size: .58rem; white-space: nowrap; }
.erd-entity--source { border-style: dashed; }
.erd-entity--focus { background: var(--signal); color: var(--ink); box-shadow: 3px 3px 0 var(--text-primary); }
.erd-entity--focus small { color: #333; }
.erd-entity--result { background: var(--text-primary); color: var(--bg-card); box-shadow: 3px 3px 0 var(--erd-blue); }
.erd-entity--result small { color: var(--border-hover); }
.erd-entity-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.erd-lane-note { grid-column: 2; margin-top: -.35rem; color: var(--text-muted); font-size: .58rem; }
.erd-lane-note code { color: var(--erd-blue); font: 700 .56rem var(--font-mono); }

.erd-supporting { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .75rem; border: 1px solid var(--text-primary); }
.erd-supporting > div { min-width: 0; padding: .75rem; }
.erd-supporting > div + div { border-left: 1px solid var(--text-primary); }
.erd-supporting span, .erd-supporting b, .erd-supporting p { display: block; }
.erd-supporting span { margin-bottom: .25rem; color: var(--erd-blue); font: 800 .5rem var(--font-mono); letter-spacing: .08em; }
.erd-supporting b { font-size: .68rem; }
.erd-supporting p { margin-top: .2rem; overflow: hidden; color: var(--text-muted); font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.erd-supporting code { font: 700 .53rem var(--font-mono); }
.erd-supporting--caution { background: var(--bg-subtle); }

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 2rem 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 640px) {
    .exp-item {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .project-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

/* Editorial developer portfolio */
:root { --signal: #c8ff2e; --ink: #101010; }
body { background: var(--bg-primary); }
.container, .nav-container { max-width: 1180px; }
.navbar { padding: .7rem 0; border-bottom: 2px solid var(--text-primary); background: var(--bg-primary); }
.nav-logo { padding: .2rem .45rem; background: var(--text-primary); color: var(--bg-primary); }
.nav-link { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; }
.icon-btn, .btn, .btn-detail, .clean-card, .tech-tag { border-radius: 0; }

.hero-section { position: relative; padding: 7rem 0 5.5rem; border-bottom: 2px solid var(--text-primary); }
.hero-section::before { content: '01'; position: absolute; right: 0; top: 1.7rem; font: 500 .75rem var(--font-mono); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .55fr); gap: 7vw; align-items: end; }
.hero-kicker { display: inline-block; margin-bottom: 1.2rem; padding: .25rem .5rem; background: var(--signal); color: var(--ink); font: 700 .72rem var(--font-mono); letter-spacing: .08em; transform: rotate(-1deg); }
.hero-meta { margin-bottom: 2.2rem; }
.hero-name { max-width: 800px; font-size: clamp(3.6rem, 7.4vw, 7.2rem); line-height: .91; letter-spacing: -.075em; text-transform: uppercase; }
.hero-name span { color: transparent; -webkit-text-stroke: 1.5px var(--text-primary); }
.hero-sub { margin-top: 2rem; font-size: 1.08rem; }
.hero-sub strong { text-decoration: underline; text-decoration-thickness: 5px; text-decoration-color: var(--signal); }
.hero-bio { margin-bottom: 1.6rem; }
.btn-dark { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
.btn-dark:hover { background: var(--signal); color: var(--ink); opacity: 1; }
.btn-outline { border-color: var(--text-primary); }

.hero-panel { position: relative; padding: 1.4rem; border: 2px solid var(--text-primary); background: var(--bg-card); box-shadow: 9px 9px 0 var(--text-primary); transform: rotate(1.5deg); }
.hero-panel::before { content: ''; position: absolute; width: 68px; height: 18px; left: 50%; top: -12px; background: color-mix(in srgb, var(--signal) 75%, transparent); transform: translateX(-50%) rotate(-3deg); }
.panel-topline, .code-line { font-family: var(--font-mono); font-size: .74rem; }
.panel-topline { display: flex; justify-content: space-between; padding-bottom: .8rem; margin-bottom: .5rem; border-bottom: 1px dashed var(--text-primary); }
.panel-dot { width: 8px; height: 8px; background: var(--signal); border: 1px solid var(--ink); border-radius: 50%; }
.code-line { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.code-key::before { content: './'; color: var(--text-muted); }
.code-value { text-align: right; font-weight: 600; }
.active-value { background: var(--signal); color: var(--ink); padding: 0 .25rem; }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--text-primary); }
.panel-stats div { display: flex; flex-direction: column; }
.panel-stats strong { font-size: 1.2rem; }
.panel-stats span { font: 500 .56rem var(--font-mono); color: var(--text-muted); text-transform: uppercase; }

.section { display: grid; grid-template-columns: 190px 1fr; column-gap: 2.2rem; padding: 6rem 0; border-bottom: 2px solid var(--text-primary); }
.section-label { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 6rem; align-self: start; color: var(--text-primary); }
.section-label::after { content: ''; display: block; width: 42px; height: 6px; margin-top: .8rem; background: var(--signal); }
.section-title { grid-column: 2; font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.055em; margin-bottom: 2.5rem; }
.highlights-grid, .projects-list, #skills > .skills-group, #contact > .contact-wrapper { grid-column: 2; }

.highlights-grid { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--text-primary); border-left: 1px solid var(--text-primary); }
.highlight-item { min-height: 260px; padding: 1.4rem; border: 0; border-right: 1px solid var(--text-primary); border-bottom: 1px solid var(--text-primary); }
.highlight-item:hover { background: var(--signal); color: var(--ink); }
.highlight-item:hover * { color: var(--ink); }
.highlight-icon { display: block; margin-bottom: 3rem; font-size: 1.25rem; color: var(--text-primary); }
.highlight-title { font-size: 1rem; margin-bottom: .65rem; }

.projects-list { gap: 0; border-top: 2px solid var(--text-primary); }
.project-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(230px, 300px); column-gap: 2rem; padding: 2.1rem 0; border: 0; border-bottom: 1px solid var(--text-primary); position: relative; }
.project-item::before { content: attr(data-number); grid-row: 1 / span 4; font: 700 1.1rem var(--font-mono); color: var(--text-primary); }
.project-item::after { content: '↗'; position: absolute; right: .2rem; top: 1.5rem; font-size: 1.4rem; transition: transform .18s ease; }
.project-item:hover::after { transform: translate(4px, -4px); }
.project-item:hover .project-title {
    background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 100% / 100% 8px;
}
.project-header-row, .project-summary, .project-footer-row { grid-column: 2; padding-right: 2.5rem; }
.project-title { font-size: clamp(1.25rem, 2.2vw, 2rem); }
.project-item[data-number="03"] .project-title { white-space: nowrap; }
.project-title--shuttle {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}
.project-title--shuttle span { display: block; }
.project-summary { max-width: 760px; }
.project-preview {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: stretch;
    min-height: 230px;
    margin: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--signal) 35%, transparent), transparent 58%),
        var(--bg-subtle);
    border: 1px solid var(--text-primary);
}
.project-preview::before {
    content: '';
    position: absolute;
    inset: .6rem;
    border: 1px solid color-mix(in srgb, var(--text-primary) 18%, transparent);
    pointer-events: none;
    z-index: 1;
}
.project-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.project-preview--mobile img {
    width: auto;
    height: calc(100% - 1.2rem);
    max-width: none;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .16));
}
.project-item[data-number="02"] .project-preview--mobile img {
    transform: scale(2.15) translateY(-20%);
    transform-origin: center top;
}
.project-item[data-number="04"] .project-preview--mobile img {
    transform: scale(2.1);
    transform-origin: center bottom;
}
.project-preview--mobile {
    height: 280px;
    min-height: 280px;
    align-self: center;
    cursor: zoom-in;
}
.project-preview--desktop img {
    object-fit: contain;
    object-position: center top;
    transform: scale(1.4);
    transform-origin: center top;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), object-position .5s cubic-bezier(.22, 1, .36, 1);
}
.project-preview--desktop {
    height: 280px;
    min-height: 280px;
    align-self: center;
    cursor: zoom-in;
}
.project-item[data-number="01"] .project-preview--desktop img {
    object-fit: cover;
    object-position: 94% 55%;
    transform: scale(2);
    transform-origin: 94% 55%;
}
.project-item[data-number="01"]:hover .project-preview--desktop img {
    object-fit: contain;
    object-position: center;
    transform: scale(1);
}
.project-item:hover .project-preview img { transform: scale(1.025); }
.project-item:hover .project-preview--desktop { cursor: zoom-out; }
.project-item:hover .project-preview--desktop img {
    object-position: center center;
    transform: scale(1);
}
.project-item:hover .project-preview--mobile { cursor: zoom-out; }
.project-item:hover .project-preview--mobile img {
    width: auto;
    height: calc(100% - 1.2rem);
    transform: scale(1);
}
.tech-tag { background: transparent; border: 1px solid var(--border-hover); }

#skills { grid-template-rows: auto repeat(4, auto); }
#skills > .skills-group { display: grid; grid-template-columns: 190px 1fr; align-items: center; margin: 0; padding: 1.15rem 0; border-top: 1px solid var(--text-primary); }
#skills > .skills-group:last-child { border-bottom: 1px solid var(--text-primary); }
.skills-group-title { margin: 0; color: var(--text-primary); }
.contact-wrapper { border: 2px solid var(--text-primary); padding: 2rem; box-shadow: 8px 8px 0 var(--signal); }
.footer { border-top: 0; }

body.dark-theme { --signal: #c8ff2e; }
body.dark-theme .hero-name span { -webkit-text-stroke-color: var(--text-primary); }

@media (max-width: 860px) {
    .hero-content { grid-template-columns: 1fr; gap: 3.5rem; }
    .hero-panel { max-width: 440px; }
    .section { grid-template-columns: 1fr; }
    .section-label, .section-title, .highlights-grid, .projects-list, #skills > .skills-group, #contact > .contact-wrapper { grid-column: 1; }
    .section-label { grid-row: auto; position: static; }
    .section-title { margin-top: .7rem; }
    .project-item { grid-template-columns: 58px minmax(0, 1fr) minmax(210px, 270px); gap: 1.25rem; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .hero-section { padding: 4.5rem 0 4rem; }
    .hero-name { font-size: clamp(3rem, 15vw, 4.5rem); }
    .highlights-grid { grid-template-columns: 1fr; }
    .highlight-item { min-height: 0; }
    .project-item { grid-template-columns: 42px minmax(0, 1fr); column-gap: .7rem; }
    .project-header-row { align-items: flex-start; flex-direction: column; gap: .25rem; }
    .project-footer-row { padding-right: 0; }
    .project-preview {
        grid-column: 2;
        grid-row: auto;
        width: 100%;
        min-height: 250px;
        margin: .35rem 0 .2rem;
    }
    .project-preview--desktop {
        height: 320px;
        min-height: 320px;
    }
    .project-preview--desktop,
    .project-item:hover .project-preview--desktop { cursor: default; }
    .project-preview--desktop img,
    .project-item:hover .project-preview--desktop img {
        object-position: center center;
        transform: scale(1);
    }
    .project-preview--mobile {
        height: 320px;
        min-height: 320px;
        cursor: default;
    }
    .project-preview--mobile img,
    .project-item:hover .project-preview--mobile img {
        width: auto;
        height: calc(100% - 1.2rem);
        transform: none;
    }
    #skills > .skills-group { grid-template-columns: 1fr; gap: .7rem; }
    .contact-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .modal { padding: 0; align-items: stretch; }
    .modal-box,
    .modal-box.has-demo-videos,
    .modal-box.has-architecture {
        max-width: none;
        max-height: 100vh;
        border: 0;
        border-radius: 0;
        padding: 1.25rem;
    }
    .feature-demo-card,
    .feature-demo-card:nth-child(even) {
        grid-template-columns: 1fr;
        margin-right: 0;
        margin-left: 0;
    }
    .feature-demo-card:nth-child(even) .feature-demo-copy,
    .feature-demo-card:nth-child(even) .feature-demo-media {
        grid-column: 1;
        grid-row: auto;
    }
    .feature-demo-card:nth-child(even) .feature-demo-media { border-right: 0; }
    .feature-demo-media { border-left: 0; border-top: 2px solid var(--text-primary); }
    .feature-section-heading { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
    .erd-showcase { margin-top: 2.25rem; }
    .erd-lane { grid-template-columns: 1fr; gap: .75rem; padding: 1rem; }
    .erd-path { grid-template-columns: 1fr; gap: .45rem; }
    .erd-path > i { height: 14px; line-height: 14px; transform: rotate(90deg); }
    .erd-entity { text-align: center; }
    .erd-entity-pair { gap: .45rem; }
    .erd-lane-note { grid-column: 1; margin-top: 0; padding-top: .6rem; border-top: 1px dashed var(--border-hover); line-height: 1.5; }
    .erd-supporting { grid-template-columns: 1fr; }
    .erd-supporting > div + div { border-top: 1px solid var(--text-primary); border-left: 0; }
    .erd-supporting p { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .feature-demo-card { transition: none; }
}
