:root {
    --bg: #07111f;
    --bg-elevated: rgba(12, 24, 43, 0.78);
    --bg-strong: #0c1930;
    --surface: rgba(13, 26, 48, 0.78);
    --surface-strong: #10203b;
    --surface-soft: rgba(148, 163, 184, 0.08);
    --text: #e5eefc;
    --text-muted: #9fb1cb;
    --heading: #f8fbff;
    --line: rgba(148, 163, 184, 0.18);
    --primary: #5eead4;
    --primary-strong: #14b8a6;
    --secondary: #f59e0b;
    --accent: #fb7185;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --max-width: 1180px;
    --transition: 180ms ease;
}

body.light-mode {
    --bg: #f4f7fb;
    --bg-elevated: rgba(255, 255, 255, 0.92);
    --bg-strong: #ffffff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-soft: rgba(14, 30, 58, 0.05);
    --text: #1c2a3d;
    --text-muted: #5c6a80;
    --heading: #081528;
    --line: rgba(14, 30, 58, 0.12);
    --primary: #0f766e;
    --primary-strong: #0d9488;
    --secondary: #d97706;
    --accent: #e11d48;
    --shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(94, 234, 212, 0.14), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.12), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, #050b16 100%);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.light-mode {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(217, 119, 6, 0.1), transparent 28%),
        linear-gradient(180deg, #f6fafc 0%, #ecf2f8 100%);
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.page-noise {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 90%);
    opacity: 0.3;
    pointer-events: none;
    z-index: -3;
}

.page-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: -2;
}

.orb-one {
    width: 320px;
    height: 320px;
    top: 4%;
    left: -80px;
    background: rgba(94, 234, 212, 0.22);
}

.orb-two {
    width: 380px;
    height: 380px;
    right: -100px;
    top: 38%;
    background: rgba(245, 158, 11, 0.18);
}

.section-shell,
.navbar,
.site-footer {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.section-shell {
    padding: 72px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: 18px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elevated);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--heading);
    text-decoration: none;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #07111f;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.logo-text {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--heading);
    background: var(--surface-soft);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: var(--heading);
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.theme-toggle,
.back-to-top {
    position: fixed;
    right: 22px;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-elevated);
    color: var(--heading);
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    z-index: 50;
}

.theme-toggle {
    top: 104px;
}

.back-to-top {
    bottom: 26px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

.theme-toggle:hover,
.back-to-top:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 234, 212, 0.45);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero {
    padding-top: 44px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
}

.hero-grid > *,
.about-grid > *,
.skills-layout > *,
.contact-shell > *,
.projects-grid > * {
    min-width: 0;
}

.hero-copy,
.story-card,
.highlight-card,
.timeline-card,
.project-card,
.skills-panel,
.cluster-card,
.contact-shell,
.contact-card,
.contact-panel,
.command-content {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-copy,
.story-card,
.skills-panel,
.contact-shell,
.contact-panel {
    border-radius: var(--radius-xl);
}

.hero-copy {
    padding: 42px;
}

.eyebrow,
.section-kicker {
    letter-spacing: 0.12em;
    font-size: 0.73rem;
    font-weight: 700;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 18px;
}

.eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 8px rgba(94, 234, 212, 0.1);
}

.hero-copy h1,
.section-heading h2,
.contact-copy h2 {
    color: var(--heading);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(2.9rem, 7vw, 5.4rem);
    max-width: 11ch;
}

.hero-copy h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 62ch;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(148, 163, 184, 0.06);
}

.roles-label {
    color: var(--text-muted);
    font-weight: 700;
}

.typing {
    min-height: 1.5em;
    color: var(--heading);
    font-weight: 800;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #07111f;
    font-weight: 800;
}

.btn-secondary {
    background: transparent;
    color: var(--heading);
    border-color: var(--line);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.meta-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(148, 163, 184, 0.06);
}

.meta-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.meta-card strong {
    color: var(--heading);
    font-size: 0.98rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.chip-row span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 17, 31, 0.22);
    color: var(--heading);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

body.light-mode .chip-row span {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-kicker {
    color: var(--primary);
    margin-bottom: 12px;
}

.section-heading h2,
.contact-copy h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 14px;
}

.section-heading p,
.contact-copy p {
    color: var(--text-muted);
    font-size: 1.04rem;
}

.about-grid,
.skills-layout,
.contact-shell {
    display: grid;
    gap: 22px;
}

.about-grid {
    grid-template-columns: 1.08fr 0.92fr;
}

.story-card {
    padding: 28px;
}

.story-card h3,
.skills-panel h3,
.cluster-card h3,
.project-card h3,
.timeline-card h3 {
    color: var(--heading);
    font-family: "Space Grotesk", sans-serif;
    margin-bottom: 12px;
}

.project-card h3,
.timeline-card h3,
.config-link,
.command-result-item strong {
    overflow-wrap: anywhere;
}

.story-card p + p {
    margin-top: 14px;
}

.story-card p,
.timeline-card p,
.project-body p,
.cluster-card p,
.skills-panel p {
    color: var(--text-muted);
}

.about-highlights {
    display: grid;
    gap: 16px;
}

.highlight-card {
    padding: 22px;
    border-radius: var(--radius-lg);
}

.highlight-card i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(94, 234, 212, 0.12);
    color: var(--primary);
}

.timeline {
    position: relative;
    display: grid;
    gap: 22px;
    padding-left: 24px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(245, 158, 11, 0.5));
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid var(--bg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 0 8px rgba(94, 234, 212, 0.08);
}

body.light-mode .timeline-dot {
    border-color: #f4f7fb;
}

.timeline-card {
    padding: 24px 26px;
    border-radius: var(--radius-lg);
}

.timeline-date {
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 6px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.project-visual {
    min-height: 240px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
}

.project-visual h3 {
    margin-bottom: 0;
}

.project-visual p {
    color: rgba(248, 251, 255, 0.86);
    max-width: 28ch;
}

.project-visual-cyan {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f766e, #0f172a);
}

.project-visual-amber {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #d97706, #111827);
}

.project-visual-rose {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #e11d48, #111827);
}

.project-badge {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fbff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-body {
    display: grid;
    gap: 16px;
    padding: 26px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.text-link {
    color: var(--heading);
    text-decoration: none;
    font-weight: 700;
}

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

.skills-layout {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: start;
}

.skills-panel {
    padding: 28px;
}

.skills-panel-header p {
    margin-top: 6px;
}

.skill-meter {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.skill-meter-label {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    color: var(--heading);
    font-weight: 700;
}

.meter {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.meter span {
    display: block;
    width: var(--level);
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.skill-clusters {
    display: grid;
    gap: 16px;
}

.cluster-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.contact-shell {
    grid-template-columns: 1.06fr 0.94fr;
    padding: 24px;
}

.contact-copy {
    padding: 10px 4px 10px 6px;
}

.contact-cards {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
}

.contact-card span {
    color: var(--heading);
    font-weight: 800;
}

.config-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-align: right;
}

.config-link.missing {
    color: var(--text-muted);
}

.contact-panel {
    padding: 24px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    gap: 10px;
}

.form-row label {
    color: var(--heading);
    font-weight: 700;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(148, 163, 184, 0.06);
    color: var(--text);
    resize: vertical;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.form-row input:focus,
.form-row textarea:focus,
.command-input-wrapper input:focus {
    outline: none;
    border-color: rgba(94, 234, 212, 0.5);
    background: rgba(148, 163, 184, 0.1);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px 0 48px;
    color: var(--text-muted);
}

.footer-note {
    margin-top: 4px;
}

.footer-command {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--heading);
    cursor: pointer;
}

.command-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.55);
    z-index: 60;
}

.command-modal.active {
    display: flex;
}

.command-content {
    width: min(720px, 100%);
    border-radius: 24px;
    overflow: hidden;
}

.command-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 22px 24px 16px;
}

.command-kicker {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 800;
}

.command-header h3 {
    color: var(--heading);
    font-family: "Space Grotesk", sans-serif;
    margin-top: 6px;
}

.command-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--heading);
    cursor: pointer;
}

.command-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 18px;
}

.command-input-wrapper i {
    color: var(--primary);
}

.command-input-wrapper input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 14px 16px;
    background: rgba(148, 163, 184, 0.06);
    color: var(--text);
}

.command-results {
    display: grid;
    gap: 10px;
    padding: 0 24px 20px;
    max-height: 320px;
    overflow-y: auto;
}

.command-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(148, 163, 184, 0.05);
    color: var(--heading);
    text-align: left;
    cursor: pointer;
}

.command-result-item:hover {
    border-color: rgba(94, 234, 212, 0.4);
    background: rgba(94, 234, 212, 0.08);
}

.command-result-item span {
    color: var(--text-muted);
}

.command-empty {
    padding: 20px;
    color: var(--text-muted);
    text-align: center;
}

.command-hint {
    padding: 14px 24px 22px;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(18px);
    min-width: 260px;
    max-width: min(92vw, 420px);
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    color: var(--heading);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: var(--shadow);
    z-index: 70;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

code {
    color: var(--heading);
}

@media (max-width: 1100px) {
    .hero-grid,
    .about-grid,
    .skills-layout,
    .contact-shell,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 14ch;
    }
}

@media (max-width: 860px) {
    .section-shell {
        padding: 64px 0;
    }

    .site-header {
        padding-top: 14px;
    }

    .navbar {
        padding: 14px 18px;
        border-radius: 24px;
    }

    .logo-text {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 22px;
        border: 1px solid var(--line);
        background: var(--bg-elevated);
        box-shadow: var(--shadow);
        max-height: min(70vh, 420px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 14px 16px;
    }

    .theme-toggle {
        top: auto;
        bottom: 88px;
    }

    .hero-copy,
    .story-card,
    .skills-panel,
    .contact-panel,
    .contact-shell {
        padding: 24px;
    }

    .hero-grid {
        gap: 18px;
    }

    .hero-copy h1 {
        max-width: 12ch;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 110px;
    }

    .contact-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .section-shell,
    .navbar,
    .site-footer {
        width: min(var(--max-width), calc(100% - 20px));
    }

    .section-shell {
        padding: 58px 0;
    }

    .hero {
        padding-top: 24px;
    }

    .hero-copy,
    .story-card,
    .skills-panel,
    .contact-panel,
    .contact-shell {
        padding: 20px;
    }

    .hero-copy h1 {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .timeline-card,
    .project-body,
    .project-visual {
        padding: 22px;
    }

    .project-visual {
        min-height: 200px;
    }

    .project-links {
        gap: 10px;
    }

    .timeline {
        padding-left: 18px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-dot {
        left: -19px;
    }

    .contact-actions {
        width: 100%;
    }

    .project-links,
    .footer-command,
    .contact-card {
        gap: 10px;
    }

    .config-link {
        text-align: left;
    }

    .btn,
    .footer-command {
        width: 100%;
    }

    .theme-toggle,
    .back-to-top {
        right: 14px;
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .theme-toggle {
        bottom: 74px;
    }

    .command-header,
    .command-input-wrapper,
    .command-results,
    .command-hint {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 14px;
        border-radius: 18px;
    }

    .nav-menu {
        left: 10px;
        right: 10px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-copy h1,
    .section-heading h2,
    .contact-copy h2 {
        text-wrap: balance;
    }

    .hero-roles {
        padding: 12px 14px;
        gap: 8px;
    }

    .hero-actions,
    .contact-actions,
    .project-links {
        flex-direction: column;
    }

    .hero-actions .btn,
    .contact-actions .btn,
    .project-links .text-link {
        width: 100%;
    }

    .hero-lead,
    .section-heading p,
    .contact-copy p {
        font-size: 0.98rem;
    }

    .chip-row span {
        font-size: 0.84rem;
        padding: 7px 10px;
    }

    .project-visual {
        min-height: 172px;
        padding: 18px;
    }

    .about-highlights,
    .skill-clusters,
    .contact-cards {
        gap: 12px;
    }

    .project-body,
    .timeline-card,
    .cluster-card,
    .contact-card {
        padding: 16px;
    }

    .contact-form {
        gap: 14px;
    }

    .form-row input,
    .form-row textarea {
        padding: 13px 14px;
    }

    .command-content {
        border-radius: 18px;
    }

    .command-modal {
        padding: 12px;
    }

    .command-result-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
