/* ==========================================================================
   Portfolio Stylesheet — Syed Farhan Ahmed (Backend Software Engineer)
   Neo-Brutalist & Retro-Modern Editorial Design System
   Inspired by heyhasan.me: Bold color blocks, Barlow Condensed typography,
   hard offset drop shadows, spring micro-interactions, and custom cursor.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* --------------------------------------------------------------------------
   1. Design System Tokens & Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Palette Tokens */
    --sage: #ecfff6;
    --paper: #fffae9;
    --white: #ffffff;
    --ink: #1d1d1f;
    --ink-2: #2c2c2f;
    --ink-3: #3a3a3e;
    --coral: #ff6447;
    --violet: #6f66f4;
    --sun: #ffc94a;
    --mint: #a8e4ec;
    --leaf: #9fb4a1;

    /* Theme Semantic Defaults (Light Mode — Signature Sage & Dot Matrix) */
    --bg-page: var(--sage);
    --dot-color: rgba(29, 29, 31, 0.08);
    --text-main: var(--ink);
    --text-muted: #55555c;
    --border-color: var(--ink);

    /* Typography */
    --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, monospace;

    /* Metrics & Transitions */
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;

    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --border-neo: 2.5px solid var(--ink);
    --border-neo-thick: 3px solid var(--ink);
    --shadow-neo: 4px 4px 0 var(--ink);
    --shadow-neo-hover: 6px 6px 0 var(--ink);
    --shadow-neo-active: 1px 1px 0 var(--ink);

    /* Legacy compatibility mappings */
    --bg-primary: var(--bg-page);
    --bg-surface: var(--white);
    --bg-subtle: var(--paper);
    --bg-elevated: var(--mint);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --accent: var(--coral);
    --accent-hover: #e04e33;
    --border-subtle: var(--ink);
    --border-hover: var(--ink);
    --font-sans: var(--font-body);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --bg-page: #101216;
    --dot-color: rgba(255, 255, 255, 0.08);
    --text-main: #f5f6f8;
    --text-muted: #a0a4b0;
    --ink: #ffffff;
    --ink-2: #252830;
    --ink-3: #323642;
    --paper: #181b22;
    --white: #1f232d;
    --sage: #14171d;
    --mint: #1e3a40;
    --border-color: #ffffff;
    --border-neo: 2.5px solid #ffffff;
    --border-neo-thick: 3px solid #ffffff;
    --shadow-neo: 4px 4px 0 #ffffff;
    --shadow-neo-hover: 6px 6px 0 #ffffff;
    --shadow-neo-active: 1px 1px 0 #ffffff;
}

/* Selection Highlight */
::selection {
    background: var(--sun);
    color: #1d1d1f;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Layout
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. Interactive Custom Crosshair Cursor
   -------------------------------------------------------------------------- */


.cursor-crosshair { display: none !important; }

.cursor-crosshair::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--border-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-crosshair.hover {
    width: 44px;
    height: 44px;
    border-color: var(--coral);
    background-color: rgba(255, 100, 71, 0.25);
}

/* --------------------------------------------------------------------------
   4. Typography & Highlight Slants
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .huge-title, .section-title, .logo-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.01em;
}

.huge-title {
    font-size: clamp(3.2rem, 8.5vw, 7.8rem);
    line-height: 1.05;
    margin: 1.4rem 0 1.2rem;
}

.hero-title-sub {
    display: block;
    font-size: clamp(2.4rem, 6.2vw, 5.4rem);
    margin-top: 0.85rem;
}

.section-title {
    font-size: clamp(2.4rem, 6.5vw, 5.2rem);
}

.section-subtitle {
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    opacity: 0.75;
    margin-bottom: 0.6rem;
    display: block;
}

.section-head {
    margin-bottom: 2.6rem;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* Flat editorial highlights — color only, no tilted marker scribbles */
.ink-coral, .ink-violet, .ink-sun, .ink-mint {
    border-radius: 0.12em;
    padding: 0 0.14em;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.ink-coral {
    background: var(--coral);
    color: #1d1d1f;
}

.ink-violet {
    background: var(--violet);
    color: #ffffff;
}

.ink-sun {
    background: var(--sun);
    color: #1d1d1f;
}

.ink-mint {
    background: var(--mint);
    color: #1d1d1f;
}

/* --------------------------------------------------------------------------
   5. Buttons, Pills & Tactile Neo-Brutalist Controls
   -------------------------------------------------------------------------- */
.btn {
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: var(--border-neo);
    box-shadow: var(--shadow-neo);
    border-radius: var(--radius-pill);
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    cursor: pointer;
    line-height: 1;
}

.btn:hover {
    box-shadow: var(--shadow-neo-hover);
    transform: translate(-2px, -2px);
}

.btn:active {
    box-shadow: var(--shadow-neo-active);
    transform: translate(2px, 2px);
}

.btn-ink {
    background: var(--ink);
    color: var(--white);
}

.btn-paper {
    background: var(--white);
    color: var(--ink);
}

.btn-sun {
    background: var(--sun);
    color: #1d1d1f;
}

.btn-coral {
    background: var(--coral);
    color: #1d1d1f;
}

.btn-big {
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    padding: 1.1rem 2rem;
}

.mono-pill {
    font-family: var(--font-mono);
    letter-spacing: 1px;
    background: var(--pill-bg, var(--ink));
    color: var(--pill-fg, var(--white));
    white-space: nowrap;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-color);
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.round-arrow {
    background: var(--pill-bg, var(--white));
    width: 44px;
    height: 44px;
    color: var(--pill-fg, var(--ink));
    border: 2px solid var(--border-color);
    transition: transform 0.3s var(--ease-spring);
    border-radius: 50%;
    flex: none;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
}

.round-arrow:hover,
a:hover .round-arrow,
.btn:hover .round-arrow {
    transform: translateX(3px);
}

/* Floating Wobble Stickers */
.sticker {
    z-index: 5;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    border: 2px solid var(--border-color);
    box-shadow: 3px 3px 0 var(--border-color);
    color: var(--ink);
    transform: rotate(var(--r, 0deg));
    pointer-events: none;
    border-radius: 14px;
    padding: 0.6rem 0.95rem;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    position: absolute;
    white-space: nowrap;
}

.sticker-sun {
    background: var(--sun);
    color: #1d1d1f;
    --r: -4deg;
}

.sticker-violet {
    background: var(--violet);
    color: #ffffff;
    --r: 6deg;
}

.sticker-mint {
    background: var(--mint);
    color: #1d1d1f;
    --r: -3deg;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
}

.hero-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.72rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-color);
    background: var(--paper);
    color: var(--text-main);
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   6. Color-Blocked Tone Cards System
   -------------------------------------------------------------------------- */
.tone-coral, .tone-violet, .tone-sun, .tone-mint, .tone-ink, .tone-paper {
    background: var(--card-bg);
    color: var(--card-fg);
    border: var(--border-neo);
    box-shadow: var(--shadow-neo);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tone-coral {
    --card-bg: var(--coral);
    --card-fg: #1d1d1f;
    --pill-bg: #1d1d1f;
    --pill-fg: #ffffff;
    --tag-bg: rgba(255, 255, 255, 0.7);
}

.tone-violet {
    --card-bg: var(--violet);
    --card-fg: #ffffff;
    --pill-bg: #ffffff;
    --pill-fg: #1d1d1f;
    --tag-bg: rgba(255, 255, 255, 0.25);
}

.tone-sun {
    --card-bg: var(--sun);
    --card-fg: #1d1d1f;
    --pill-bg: #1d1d1f;
    --pill-fg: #ffffff;
    --tag-bg: rgba(255, 255, 255, 0.8);
}

.tone-mint {
    --card-bg: var(--mint);
    --card-fg: #1d1d1f;
    --pill-bg: #1d1d1f;
    --pill-fg: #ffffff;
    --tag-bg: rgba(255, 255, 255, 0.85);
}

.tone-ink {
    --card-bg: #1d1d1f;
    --card-fg: #ffffff;
    --pill-bg: var(--mint);
    --pill-fg: #1d1d1f;
    --tag-bg: #323642;
}

.tone-paper {
    --card-bg: var(--paper);
    --card-fg: var(--text-main);
    --pill-bg: var(--ink);
    --pill-fg: var(--white);
    --tag-bg: var(--white);
}

[data-theme="dark"] .tone-paper {
    --card-bg: #181b22;
    --card-fg: #ffffff;
    --pill-bg: #ffffff;
    --pill-fg: #1d1d1f;
    --tag-bg: #252830;
}

[data-theme="dark"] .tone-coral {
    --card-bg: #e04e33;
    --card-fg: #ffffff;
}

[data-theme="dark"] .tone-violet {
    --card-bg: #5a51db;
    --card-fg: #ffffff;
}

[data-theme="dark"] .tone-sun {
    --card-bg: #e5b33d;
    --card-fg: #1d1d1f;
}

[data-theme="dark"] .tone-mint {
    --card-bg: #2a5b63;
    --card-fg: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Navigation Header & Footer
   -------------------------------------------------------------------------- */
.site-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

.site-header {
    position: sticky;
    top: 1.25rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--paper);
    border: var(--border-neo);
    box-shadow: var(--shadow-neo);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.2rem;
    margin-bottom: 3.5rem;
    backdrop-filter: blur(8px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.header-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.25rem;
}

.nav-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    color: var(--text-main);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-pill:hover {
    background: rgba(29, 29, 31, 0.08);
}

.nav-pill.active {
    background: var(--ink);
    color: var(--white);
}

/* Hidden by default on Desktop */
.mobile-bottom-dock {
    display: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-cmd-trigger,
.header-resume-badge,
#theme-toggle {
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0 var(--border-color);
    background: var(--white);
    color: var(--text-main);
    border-radius: var(--radius-pill);
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-cmd-trigger {
    padding: 0 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.desktop-kbd {
    background: transparent;
    font-family: inherit;
    font-weight: 700;
}

.header-resume-badge {
    padding: 0 0.85rem;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}

#theme-toggle {
    width: 40px;
    padding: 0;
}

.header-cmd-trigger:hover,
.header-resume-badge:hover,
#theme-toggle:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--border-color);
}

/* Site Footer */
.site-footer {
    margin-top: 5rem;
    padding: 2.5rem 1.5rem;
    border-top: var(--border-neo);
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-neo);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. Hero Section & Stickers
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 0.4rem 0 2.75rem;
}

.hero-sticker.sticker-tr {
    top: -10px;
    right: 4%;
}

.hero-sticker.sticker-mr {
    top: 52%;
    right: -10px;
}

.hero-sticker.sticker-bl {
    bottom: -15px;
    left: 2%;
}

.hero-status-row {
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 1.4rem;
}

.hero-bio {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.6;
    max-width: 860px;
    margin-bottom: 2.2rem;
}

.hero-bio a {
    color: var(--coral);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Focus Pillars Grid */
.hero-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
    gap: 1.25rem;
    margin: 2rem 0 2.5rem;
}

.focus-pillar {
    padding: 1.4rem 1.6rem;
}

.focus-pillar .pillar-label {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.focus-pillar .pillar-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   9. Full-Bleed Infinite Tech Marquee Ticker
   -------------------------------------------------------------------------- */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    border-top: var(--border-neo-thick);
    border-bottom: var(--border-neo-thick);
    background: var(--sun);
    color: #1d1d1f;
    padding: 0.9rem 0;
    display: flex;
    user-select: none;
    margin: 3.5rem -1.25rem 4rem;
    width: calc(100% + 2.5rem);
    box-shadow: 0 4px 0 var(--border-color);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: marquee-scroll 28s linear infinite;
    flex-shrink: 0;
    min-width: 100%;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   10. Current Engineering Focus Section
   -------------------------------------------------------------------------- */
.current-focus-section {
    margin-bottom: 4.5rem;
}

.focus-note-card {
    padding: 2rem 2.2rem;
}

.focus-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.focus-note-badge {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.focus-note-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.focus-note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.focus-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   11. Project Cards & Browser Mockups
   -------------------------------------------------------------------------- */
.featured-projects-list,
.projects-list-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-neo-hover);
}

.pj-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.pj-index {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pj-badge-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Browser Mockup Frame */
.project-browser-frame {
    border: 2px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.browser-header-bar {
    background: #f1f2f6;
    border-bottom: 2px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-url-pill {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0.15rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-media-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
}

.browser-viewport-link {
    display: block;
    aspect-ratio: 16 / 9;
    background: #11141b;
    overflow: hidden;
    position: relative;
}

.project-card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.browser-viewport-link:hover .project-card-media {
    transform: scale(1.03);
}

.project-card-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 0.6rem;
}

.project-card-desc {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    opacity: 0.92;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.6rem;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--tag-bg, rgba(255, 255, 255, 0.8));
    color: var(--tag-fg, inherit);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.65rem;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1.5px solid rgba(0, 0, 0, 0.15);
}

.project-action-btn {
    font-size: 1.05rem;
    padding: 0.6rem 1.2rem;
    gap: 0.6rem;
}

.project-card-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-cta-row {
    text-align: center;
    margin: 2rem 0 5rem;
}

/* --------------------------------------------------------------------------
   12. Experience Timeline (xp-card)
   -------------------------------------------------------------------------- */
.experience-timeline-section {
    margin-bottom: 4.5rem;
}

.timeline-track {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.xp-card {
    padding: 2.2rem 2.4rem;
}

.xp-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-neo-hover);
}

.xp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.xp-index {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.xp-period {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

.timeline-header {
    margin-bottom: 1.25rem;
}

.timeline-role, .experience-role {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.25rem;
}

.timeline-company, .experience-company {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.timeline-bullet-list, .experience-bullet-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline-bullet-list li, .experience-bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.55;
}

.timeline-bullet-list li::before, .experience-bullet-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--coral);
    font-size: 0.75rem;
    top: 0.25rem;
}

/* --------------------------------------------------------------------------
   13. Technical Skills Bento & Presence Grid
   -------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    gap: 1.25rem;
    margin-bottom: 4.5rem;
}

.skill-category-group {
    padding: 1.8rem 2rem;
}

.skill-group-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.skill-group-title {
    font-size: 1.6rem;
}

.skill-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-pill {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--white);
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0 var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s ease;
}

.skill-pill:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--border-color);
}

/* Developer Presence Grid */
.presence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
    gap: 1.15rem;
    margin-bottom: 4.5rem;
}

.presence-card {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.presence-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-neo-hover);
}

.presence-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.presence-label {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.presence-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.presence-metric {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   14. Contact Callout Banner & Contact Page Form
   -------------------------------------------------------------------------- */
.contact-cta-section {
    padding: 3.5rem 3rem;
    border-radius: var(--radius-xl);
    margin: 4.5rem 0 2rem;
}

.contact-cta-title {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    margin: 1rem 0;
}

.contact-cta-text {
    font-size: 1.2rem;
    max-width: 680px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* Contact Page Layout */
.contact-layout-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.4fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.contact-info-panel,
.contact-form-panel {
    padding: 2.2rem 2.4rem;
}

.panel-head-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.panel-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.contact-direct-inbox-notice {
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    box-shadow: 3px 3px 0 var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.8rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-availability-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.contact-item-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-link {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-networks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.network-link {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Form Controls */
.clean-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.neo-input,
.neo-textarea {
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--ink);
    background: #ffffff;
    border: 2.5px solid var(--border-color);
    box-shadow: 3px 3px 0 var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    outline: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.neo-input:focus,
.neo-textarea:focus {
    box-shadow: 5px 5px 0 var(--violet);
    transform: translate(-1px, -1px);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.8rem;
}

.alert-box {
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.error-msg {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #dc2626;
    display: none;
}

/* --------------------------------------------------------------------------
   15. Subpage Banner Headers & Filter Bars
   -------------------------------------------------------------------------- */
.page-intro-header {
    margin-bottom: 3.5rem;
}

.page-intro-title {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    margin: 0.4rem 0 0.8rem;
}

.page-intro-desc {
    font-size: 1.2rem;
    max-width: 820px;
    color: var(--text-muted);
}

.projects-filter-bar {
    padding: 1.1rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.8rem;
    flex-wrap: wrap;
}

.filter-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

.projects-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0 var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--border-color);
}

.filter-btn.active {
    background: var(--ink);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   16. Modals (Resume Modal, Command Palette, Lightbox, Transit Loader)
   -------------------------------------------------------------------------- */
/* Scroll & Route Reading Progress Bars */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--coral);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

.route-transit-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--violet);
    z-index: 9998;
    width: 0%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.route-transit-bar.active {
    opacity: 1;
}

/* Page Transit HUD Overlay */
.page-transit-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
}

.page-transit-overlay.visible {
    display: flex;
}

.transit-hud-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 18, 22, 0.7);
    backdrop-filter: blur(6px);
}

.transit-hud-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 440px;
}

.transit-hud-window {
    background: var(--paper);
    border: var(--border-neo-thick);
    box-shadow: 6px 6px 0 var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.transit-window-header {
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.transit-dots {
    display: flex;
    gap: 6px;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.transit-window-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}

.transit-latency-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    background: #d1fae5;
    color: #065f46;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.transit-window-body {
    padding: 1.5rem;
}

.transit-terminal-line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.prompt-sym { color: var(--coral); }
.prompt-cmd { color: var(--violet); }
.prompt-target { color: var(--ink); }

.transit-status-msg {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.transit-bar-wrapper {
    height: 10px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.transit-bar-fill {
    height: 100%;
    background: var(--coral);
    width: 25%;
    transition: width 0.3s ease;
}

.transit-details-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

/* In-Page Resume Modal */
.resume-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(16, 18, 22, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.resume-modal-overlay.active {
    display: flex;
}

.resume-modal-window {
    background: var(--paper);
    border: var(--border-neo-thick);
    box-shadow: 8px 8px 0 var(--ink);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 960px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.resume-modal-header {
    background: var(--white);
    border-bottom: 2.5px solid var(--border-color);
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.modal-pdf-icon {
    font-size: 1.6rem;
    color: var(--coral);
}

.modal-filename {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-action-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.95rem;
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0 var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--white);
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.resume-modal-body {
    flex: 1;
    position: relative;
    background: #525659;
}

#resume-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.resume-loading-indicator {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    color: #ffffff;
    font-size: 1.1rem;
    background: #2b2e34;
}

/* Lightbox Modal */
.lightbox-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99996;
    background: rgba(16, 18, 22, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-modal-overlay.active {
    display: flex;
}

.lightbox-modal-window {
    background: var(--paper);
    border: var(--border-neo-thick);
    box-shadow: 8px 8px 0 var(--ink);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 75vh;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
}

.lightbox-caption {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2.5px solid var(--border-color);
    box-shadow: 3px 3px 0 var(--border-color);
    background: var(--white);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 80;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--border-color);
}

/* --------------------------------------------------------------------------
   17. Responsive Design Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }
    .hero-sticker.sticker-mr {
        display: none;
    }
}




/* --------------------------------------------------------------------------
   18. Project Detail & Editorial Case Study
   -------------------------------------------------------------------------- */
.breadcrumb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

.breadcrumb-back-link,
.breadcrumb-next-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0 var(--border-color);
    border-radius: var(--radius-pill);
    transition: transform 0.15s ease;
}

.breadcrumb-back-link:hover,
.breadcrumb-next-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--border-color);
}

.project-editorial-header {
    margin-bottom: 2.8rem;
}

.project-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.project-discipline-badge,
.project-reading-time-badge,
.detail-featured-badge {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 2px solid var(--border-color);
    background: var(--white);
    box-shadow: 2px 2px 0 var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.detail-featured-badge {
    background: var(--sun);
}

.project-editorial-title {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    margin-bottom: 1.5rem;
}

.project-editorial-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

.project-editorial-actions a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--border-color);
    box-shadow: 3px 3px 0 var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-editorial-actions a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--border-color);
}

.project-editorial-actions .btn-primary {
    background: var(--ink);
    color: var(--white);
}

.project-walkthrough-section {
    margin-bottom: 3.5rem;
}

.walkthrough-browser-frame {
    border: var(--border-neo-thick);
    box-shadow: 6px 6px 0 var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
}

.walkthrough-viewport {
    background: #11141b;
    position: relative;
}

.walkthrough-video {
    width: 100%;
    max-height: 600px;
    display: block;
}

.walkthrough-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.walkthrough-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.walkthrough-image-wrap {
    cursor: pointer;
    position: relative;
    display: block;
}

.walkthrough-img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-editorial-body {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin-bottom: 4rem;
}

.editorial-section {
    background: var(--paper);
    border: var(--border-neo);
    box-shadow: var(--shadow-neo);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2.4rem;
}

.editorial-heading {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 1.2rem;
    display: inline-block;
    border-bottom: 3px solid var(--coral);
    padding-bottom: 0.2rem;
}

.editorial-prose {
    font-size: 1.15rem;
    line-height: 1.65;
}

.editorial-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.editorial-list li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 1.1rem;
    line-height: 1.55;
}

.editorial-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--violet);
    font-size: 0.75rem;
    top: 0.3rem;
}

.editorial-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.editorial-specs-table {
    border-top: 2px solid var(--border-color);
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.spec-name {
    font-weight: 700;
    color: var(--text-muted);
}

.spec-content {
    font-weight: 700;
}

.project-editorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: var(--border-neo);
}


/* --------------------------------------------------------------------------
   Command Palette Modal (Cmd+K / Ctrl+K) — High-Contrast & Neo-Brutalist
   -------------------------------------------------------------------------- */
.cmd-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99995;
    background: rgba(16, 18, 22, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1.25rem 2rem;
}

.cmd-modal-overlay.active {
    display: flex;
}

.cmd-modal-window,
.cmd-palette-window {
    background: #ffffff !important;
    color: #1d1d1f !important;
    border: 3px solid #1d1d1f !important;
    box-shadow: 8px 8px 0 #1d1d1f !important;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .cmd-modal-window,
[data-theme="dark"] .cmd-palette-window {
    background: #181b22 !important;
    color: #f1f5f9 !important;
    border: 3px solid #ffffff !important;
    box-shadow: 8px 8px 0 #ffffff !important;
}

.cmd-search-bar,
.cmd-search-header {
    background: #fffae9 !important;
    border-bottom: 2.5px solid #1d1d1f !important;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

[data-theme="dark"] .cmd-search-bar,
[data-theme="dark"] .cmd-search-header {
    background: #212530 !important;
    border-bottom: 2.5px solid #ffffff !important;
}

.cmd-search-icon {
    font-size: 1.2rem;
    color: #1d1d1f;
}

[data-theme="dark"] .cmd-search-icon {
    color: #f1f5f9;
}

#cmd-search-input,
.cmd-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    outline: none;
    color: #1d1d1f !important;
}

[data-theme="dark"] #cmd-search-input,
[data-theme="dark"] .cmd-search-input {
    color: #ffffff !important;
}

#cmd-search-input::placeholder,
.cmd-search-input::placeholder {
    color: #64748b;
    font-size: 1.15rem;
    opacity: 0.85;
}

.cmd-esc-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    background: #ffffff;
    color: #1d1d1f;
    border: 1.5px solid #1d1d1f;
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    box-shadow: 1.5px 1.5px 0 #1d1d1f;
}

[data-theme="dark"] .cmd-esc-badge {
    background: #181b22;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 1.5px 1.5px 0 #ffffff;
}

.cmd-results-list,
.cmd-palette-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.75rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

[data-theme="dark"] .cmd-results-list,
[data-theme="dark"] .cmd-palette-list {
    background: #181b22;
}

.cmd-group-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    padding: 0.5rem 0.8rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cmd-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d1d1f !important;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    background: transparent;
    transition: background 0.1s ease, transform 0.1s ease;
    width: 100%;
    text-align: left;
}

[data-theme="dark"] .cmd-item {
    color: #f1f5f9 !important;
}

.cmd-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cmd-item-icon {
    font-size: 1rem;
    color: #64748b;
    width: 18px;
    text-align: center;
}

.cmd-item:hover,
.cmd-item.selected {
    background: var(--sun) !important;
    color: #1d1d1f !important;
    border-color: #1d1d1f !important;
    box-shadow: 2.5px 2.5px 0 #1d1d1f !important;
    transform: translate(-1px, -1px);
}

.cmd-item:hover .cmd-item-icon,
.cmd-item.selected .cmd-item-icon {
    color: #1d1d1f !important;
}

.cmd-item-shortcut,
.cmd-item-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(29, 29, 31, 0.08);
    border: 1px solid rgba(29, 29, 31, 0.2);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.6rem;
}

.cmd-item:hover .cmd-item-shortcut,
.cmd-item.selected .cmd-item-shortcut {
    color: #1d1d1f;
    background: #ffffff;
    border-color: #1d1d1f;
}

.cmd-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    padding: 0.65rem 1.2rem;
    background: #f8fafc;
    border-top: 1.5px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748b;
}

[data-theme="dark"] .cmd-footer {
    background: #14171d;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.cmd-hint kbd {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   Page Navigation & Balanced Neo-Brutalist Footer
   -------------------------------------------------------------------------- */
.page-navigation-container {
    margin: 5rem 0 3rem;
}

.page-nav-divider-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.page-nav-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.page-nav-rule {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-color) 0 6px, transparent 0 12px);
}

.mobile-swipe-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--paper);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
}

.page-navigation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.page-navigation-grid.has-next-only,
.page-navigation-grid.has-prev-only {
    grid-template-columns: 1fr;
}

.nav-card {
    background: var(--paper);
    border: var(--border-neo);
    box-shadow: var(--shadow-neo);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-neo-hover);
}

.nav-card-prev {
    flex-direction: row;
}

.nav-card-next {
    flex-direction: row-reverse;
    text-align: right;
}

.nav-card-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-spring);
}

.nav-card:hover .nav-card-arrow {
    transform: scale(1.1);
}

.nav-card-prev:hover .nav-card-arrow {
    transform: translateX(-4px) scale(1.1);
}

.nav-card-next:hover .nav-card-arrow {
    transform: translateX(4px) scale(1.1);
}

.nav-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-card-direction {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--coral);
}

.nav-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.nav-card-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Refined Site Footer */
.site-footer {
    margin-top: 4.5rem;
    padding: 1.6rem 2.2rem;
    background: var(--paper);
    border: var(--border-neo);
    box-shadow: var(--shadow-neo);
    border-radius: var(--radius-xl);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.footer-brand-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   Comprehensive Dark Mode Palette & Contrast Enhancements
   -------------------------------------------------------------------------- */
[data-theme="dark"] .tone-paper {
    --card-bg: #181b22;
    --card-fg: #ffffff;
    --pill-bg: #ffffff;
    --pill-fg: #1d1d1f;
    --tag-bg: #212530;
    --tag-fg: #ffffff;
}

[data-theme="dark"] .tone-coral {
    --card-bg: #b8321b;
    --card-fg: #ffffff;
    --pill-bg: #ffffff;
    --pill-fg: #1d1d1f;
    --tag-bg: rgba(0, 0, 0, 0.45);
    --tag-fg: #ffffff;
}

[data-theme="dark"] .tone-violet {
    --card-bg: #4f46e5;
    --card-fg: #ffffff;
    --pill-bg: #ffffff;
    --pill-fg: #1d1d1f;
    --tag-bg: rgba(0, 0, 0, 0.45);
    --tag-fg: #ffffff;
}

[data-theme="dark"] .tone-sun {
    --card-bg: #c98c14;
    --card-fg: #12151c;
    --pill-bg: #12151c;
    --pill-fg: #ffffff;
    --tag-bg: rgba(255, 255, 255, 0.85);
    --tag-fg: #12151c;
}

[data-theme="dark"] .tone-mint {
    --card-bg: #194a52;
    --card-fg: #ffffff;
    --pill-bg: #ffffff;
    --pill-fg: #1d1d1f;
    --tag-bg: rgba(0, 0, 0, 0.45);
    --tag-fg: #ffffff;
}

[data-theme="dark"] .tone-ink {
    --card-bg: #12151c;
    --card-fg: #ffffff;
    --pill-bg: var(--mint);
    --pill-fg: #ffffff;
    --tag-bg: #212530;
    --tag-fg: #ffffff;
}

/* Browser Frame & Mockups in Dark Mode */
[data-theme="dark"] .project-browser-frame,
[data-theme="dark"] .walkthrough-browser-frame {
    background: #12151c !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .browser-header-bar {
    background: #1a1e27 !important;
    border-bottom-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .browser-url-pill {
    background: #12151c !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #cbd5e1 !important;
}

/* Project Card Buttons & Links in Dark Mode */
[data-theme="dark"] .project-card .btn-paper {
    background: #ffffff !important;
    color: #12151c !important;
    border-color: #ffffff !important;
    box-shadow: 3px 3px 0 #12151c !important;
}

[data-theme="dark"] .project-card .btn-paper:hover {
    background: #f1f2f6 !important;
    box-shadow: 5px 5px 0 #12151c !important;
}

[data-theme="dark"] .project-card-footer {
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

/* Form Inputs, Textarea, and Alerts in Dark Mode */
[data-theme="dark"] .neo-input,
[data-theme="dark"] .neo-textarea {
    background: #181b22 !important;
    color: #f1f5f9 !important;
    border-color: #ffffff !important;
    box-shadow: 3px 3px 0 #ffffff !important;
}

[data-theme="dark"] .neo-input:focus,
[data-theme="dark"] .neo-textarea:focus {
    box-shadow: 5px 5px 0 var(--sun) !important;
    border-color: #ffffff !important;
}

[data-theme="dark"] .neo-input::placeholder,
[data-theme="dark"] .neo-textarea::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .network-link {
    background: #212530 !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .network-link:hover {
    background: var(--sun) !important;
    color: #12151c !important;
    border-color: #ffffff !important;
}

[data-theme="dark"] .alert-success {
    background: #064e3b !important;
    color: #a7f3d0 !important;
    border-color: #059669 !important;
}

[data-theme="dark"] .alert-error {
    background: #7f1d1d !important;
    color: #fecaca !important;
    border-color: #dc2626 !important;
}

[data-theme="dark"] .marquee-wrapper {
    background: #c98c14 !important;
    color: #12151c !important;
    border-color: #ffffff !important;
}

[data-theme="dark"] .breadcrumb-back-link,
[data-theme="dark"] .breadcrumb-next-link,
[data-theme="dark"] .project-discipline-badge,
[data-theme="dark"] .project-reading-time-badge {
    background: #1f232d !important;
    color: #f1f5f9 !important;
    border-color: #ffffff !important;
    box-shadow: 2px 2px 0 #ffffff !important;
}

/* --------------------------------------------------------------------------
   Mobile Floating Bottom Dock Navigation & Responsiveness (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    body {
        padding-bottom: 6rem !important;
    }

    .site-container {
        padding: 0.65rem 0.85rem 4rem !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Short, minimal header at top: Logo on left, Tools on right */
    .site-header {
        position: sticky !important;
        top: 0.6rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.45rem 0.85rem !important;
        margin-bottom: 2rem !important;
        width: 100% !important;
        border-radius: var(--radius-pill) !important;
        box-sizing: border-box !important;
    }

    /* Hide desktop nav tabs completely from the top bar on mobile */
    .desktop-nav,
    .header-nav {
        display: none !important;
    }

    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .header-controls {
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
    }

    .mobile-search-icon {
        display: inline-block !important;
        font-size: 0.95rem !important;
    }

    .desktop-kbd {
        display: none !important;
    }

    /* Tactile Neo-Brutalist Floating Bottom Navigation Dock */
    .mobile-bottom-dock {
        position: fixed !important;
        bottom: 1rem !important;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 99999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        background: var(--paper) !important;
        border: 2.5px solid var(--border-color) !important;
        box-shadow: 4px 4px 0 var(--border-color) !important;
        border-radius: 999px !important;
        padding: 0.35rem 0.5rem !important;
        gap: 0.35rem !important;
        width: calc(100% - 2rem) !important;
        max-width: 360px !important;
        box-sizing: border-box !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    .mobile-dock-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.45rem 0.25rem;
        border-radius: 999px;
        font-family: var(--font-mono);
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-dock-btn i {
        font-size: 1.05rem;
        margin-bottom: 1px;
    }

    .mobile-dock-btn:hover,
    .mobile-dock-btn:focus {
        color: var(--text-main);
    }

    .mobile-dock-btn.active {
        background: var(--ink) !important;
        color: var(--white) !important;
        box-shadow: none !important;
    }

    /* Back to Top button sits safely above the mobile dock */
    #back-to-top {
        bottom: 5.5rem !important;
        right: 1rem !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
        z-index: 99990 !important;
    }

    /* Hero section */
    .hero-section {
        padding: 1rem 0 2rem !important;
    }

    .hero-sticker {
        display: none !important;
    }

    .hero-status-pill {
        white-space: normal !important;
        text-align: left !important;
        font-size: 0.72rem !important;
        line-height: 1.4 !important;
        padding: 0.45rem 0.8rem !important;
    }

    .huge-title {
        font-size: clamp(2.15rem, 9.2vw, 3.4rem) !important;
        line-height: 0.96 !important;
        margin: 0.85rem 0 0.7rem !important;
        overflow-wrap: break-word !important;
    }

    .marquee-wrapper {
        margin-left: -0.85rem !important;
        margin-right: -0.85rem !important;
        width: calc(100% + 1.7rem) !important;
    }

    .hero-chip {
        font-size: 0.68rem !important;
    }

    .hero-title-sub {
        font-size: clamp(1.6rem, 7.5vw, 2.6rem) !important;
        margin-top: 0.6rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Featured Projects Section */
    .section-head {
        margin-bottom: 1.8rem !important;
    }

    .section-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
    }

    .section-title {
        font-size: clamp(1.85rem, 8vw, 2.8rem) !important;
        line-height: 0.98 !important;
        overflow-wrap: break-word !important;
    }

    .section-link-btn {
        font-size: 0.95rem !important;
        padding: 0.55rem 1rem !important;
    }

    .featured-projects-list,
    .projects-list-wrapper {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 1.6rem !important;
        box-sizing: border-box !important;
    }

    .project-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 1.25rem 1rem !important;
        overflow: hidden !important;
    }

    .project-browser-frame {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 1.2rem !important;
    }

    .browser-header-bar {
        padding: 0.45rem 0.65rem !important;
        gap: 0.4rem !important;
    }

    .browser-url-pill {
        max-width: 130px !important;
        font-size: 0.65rem !important;
        padding: 0.15rem 0.5rem !important;
    }

    .project-card-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
        line-height: 1.1 !important;
        word-break: break-word !important;
    }

    .project-card-desc {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    .project-card-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .project-action-btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        font-size: 0.98rem !important;
        padding: 0.65rem 1rem !important;
    }

    .project-card-links {
        width: 100% !important;
        justify-content: flex-end !important;
    }

    /* Experience, Contact, and Layout on Mobile */
    .xp-card {
        padding: 1.4rem 1.2rem !important;
    }

    .contact-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-cta-section {
        padding: 2.2rem 1.4rem !important;
    }

    .contact-cta-title {
        font-size: clamp(2rem, 9vw, 3.2rem) !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Page Navigation & Footer */
    .page-navigation-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .nav-card {
        padding: 1.2rem 1.25rem !important;
    }

    .footer-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
        padding: 0 !important;
    }

    .site-footer {
        padding: 1.25rem 1.15rem !important;
        margin-top: 2.5rem !important;
    }

    .neo-input,
    .neo-textarea,
    #cmd-search-input,
    .cmd-search-input {
        font-size: 16px !important;
    }

    .contact-networks-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-link,
    .contact-cta-actions .btn {
        overflow-wrap: anywhere;
    }

    .breadcrumb-container {
        flex-wrap: wrap !important;
        gap: 0.65rem !important;
        align-items: stretch !important;
    }

    .breadcrumb-next-link span {
        max-width: 52vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Command Palette on Mobile */
    .cmd-modal-overlay {
        padding: 3rem 1rem 1rem !important;
    }

    .cmd-modal-window {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 5px 5px 0 var(--border-color) !important;
    }

    .cmd-search-bar {
        padding: 0.85rem 1rem !important;
    }

    .cmd-search-input {
        font-size: 1.15rem !important;
    }

    .cmd-footer {
        display: none !important;
    }
}

/* Dark Mode Overrides for Mobile Bottom Dock */
[data-theme="dark"] .mobile-bottom-dock {
    background: #181b22 !important;
    border-color: #ffffff !important;
    box-shadow: 4px 4px 0 #ffffff !important;
}

[data-theme="dark"] .mobile-dock-btn.active {
    background: #ffffff !important;
    color: #12151c !important;
    box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Editorial finish
   Same system, fewer toys: no fake route terminal, no bouncing chrome,
   keyboard focus, and layouts that stay inside the screen.
   -------------------------------------------------------------------------- */
.page-transit-overlay,
.page-transit-overlay.visible {
    display: none !important;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
}

.btn:focus-visible,
.nav-pill:focus-visible,
.filter-btn:focus-visible,
.mobile-dock-btn:focus-visible,
.round-arrow:focus-visible {
    outline-offset: 4px;
}

.hero-bio {
    max-width: 42rem;
}

.hero-tagline {
    max-width: 40rem;
    line-height: 1.45;
}

.section-head {
    margin-bottom: 1.75rem;
}

.project-card,
.xp-card,
.skill-category-group,
.presence-card,
.editorial-section,
.focus-note-card {
    min-width: 0;
}

.project-card-title a,
.contact-link span,
.nav-card-title {
    overflow-wrap: break-word;
}

.contact-cta-actions .btn {
    max-width: 100%;
}

.browser-url-pill {
    min-width: 0;
    flex: 1;
}

.mobile-dock-btn.active {
    box-shadow: none;
}

@media (max-width: 480px) {
    .page-intro-title,
    .project-editorial-title {
        font-size: clamp(2.05rem, 11vw, 2.7rem);
        line-height: 0.96;
    }

    .page-intro-desc,
    .hero-bio,
    .contact-cta-text {
        font-size: 1rem;
    }

    .pj-badge-group {
        max-width: 62%;
        justify-content: flex-end;
    }

    .pj-badge-group .mono-pill {
        white-space: normal;
        text-align: right;
    }

    .xp-top {
        align-items: flex-start;
    }

    .editorial-section,
    .contact-info-panel,
    .contact-form-panel {
        padding: 1.25rem 1.05rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-modal-window {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .resume-modal-overlay {
        padding: 0;
    }

    .modal-action-pill {
        position: relative;
    }

    .modal-header-actions .modal-action-pill span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .lightbox-modal-overlay {
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
