@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --bg: #f2f6f8;
    --surface: #ffffff;
    --surface-muted: #f7fbfc;
    --text: #14212b;
    --text-soft: #4b6170;
    --line: #d7e2e8;
    --primary: #0b7285;
    --primary-rgb: 11, 114, 133;
    --accent: #f97316;
    --accent-rgb: 249, 115, 22;
    --glow: rgba(11, 114, 133, 0.18);
    --shadow: 0 16px 44px rgba(16, 40, 58, 0.08);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: 0.28s ease;
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

.dark-mode {
    --bg: #0f1b22;
    --surface: #162630;
    --surface-muted: #1c313d;
    --text: #f3f9fc;
    --text-soft: #b8c8d2;
    --line: #2c4555;
    --primary: #41c5dc;
    --primary-rgb: 65, 197, 220;
    --accent: #ff9f45;
    --accent-rgb: 255, 159, 69;
    --glow: rgba(65, 197, 220, 0.26);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);
    background: radial-gradient(1100px 700px at 10% -5%, rgba(var(--primary-rgb), 0.16), transparent 68%),
        radial-gradient(900px 560px at 90% 0%, rgba(var(--accent-rgb), 0.14), transparent 64%),
        var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

body:not(.dark-mode) {
    background:
        radial-gradient(1200px 760px at 12% -10%, rgba(64, 123, 168, 0.26), transparent 70%),
        radial-gradient(900px 560px at 88% 0%, rgba(239, 151, 98, 0.2), transparent 65%),
        linear-gradient(160deg, #d8e4ef 0%, #dce6ef 45%, #cfdae5 100%);
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

body::before {
    width: 360px;
    height: 360px;
    right: -120px;
    top: 35%;
    background: rgba(var(--primary-rgb), 0.18);
}

body::after {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: -20px;
    background: rgba(var(--accent-rgb), 0.16);
}

.container {
    width: min(1180px, 92vw);
}

#main-navbar {
    background: transparent;
    transition: background-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
    padding: 0.58rem 0;
}

#main-navbar,
.site-shell,
footer {
    position: relative;
    z-index: 1;
}

#main-navbar.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(15, 40, 50, 0.12);
}

body.dark-mode #main-navbar:not(.scrolled) .brand-mark {
    color: #e8f5ff !important;
}

body.dark-mode #main-navbar:not(.scrolled) .navbar-nav .nav-link {
    color: #c5dced;
}

body.dark-mode #main-navbar:not(.scrolled) .navbar-nav .nav-link:hover,
body.dark-mode #main-navbar:not(.scrolled) .navbar-nav .nav-link.active {
    color: #f7fbff;
    background: rgba(126, 204, 244, 0.14);
}

body.dark-mode #main-navbar:not(.scrolled) .theme-toggle {
    background: rgba(5, 24, 37, 0.52);
    color: #eef8ff;
    border-color: rgba(140, 193, 221, 0.52);
}

body:not(.dark-mode) #main-navbar:not(.scrolled) .brand-mark {
    color: #18364a !important;
}

body:not(.dark-mode) #main-navbar:not(.scrolled) .navbar-nav .nav-link {
    color: #35566c;
}

body:not(.dark-mode) #main-navbar:not(.scrolled) .navbar-nav .nav-link:hover,
body:not(.dark-mode) #main-navbar:not(.scrolled) .navbar-nav .nav-link.active {
    color: #13293a;
    background: rgba(57, 108, 140, 0.14);
}

body:not(.dark-mode) #main-navbar:not(.scrolled) .theme-toggle {
    background: rgba(245, 250, 255, 0.72);
    color: #1f4057;
    border-color: rgba(84, 122, 145, 0.4);
}

body:not(.dark-mode) #main-navbar.scrolled {
    background: rgba(232, 240, 247, 0.78);
    box-shadow: 0 8px 24px rgba(34, 66, 84, 0.12);
}

body.dark-mode #main-navbar.scrolled {
    background: rgba(15, 27, 34, 0.72);
}

.nav-shell {
    align-items: center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand-mark img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.navbar-nav {
    gap: 0.8rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-soft);
    font-weight: 500;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    transition: color var(--transition), background-color var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--text);
    background: rgba(var(--primary-rgb), 0.12);
}

.theme-toggle {
    margin-left: 1rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(var(--primary-rgb), 0.46);
}

.site-shell {
    padding-top: 0.45rem;
}

.section {
    padding: 5.6rem 0;
    position: relative;
}

.section-header {
    max-width: 760px;
    margin-bottom: 2.6rem;
}

.section-header h2 {
    font-size: clamp(1.9rem, 1.25rem + 2vw, 2.65rem);
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.section-header p {
    color: var(--text-soft);
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-section {
    padding-top: clamp(0.45rem, 1.1vh, 0.95rem);
    padding-bottom: clamp(0.45rem, 1.1vh, 0.95rem);
    min-height: calc(100dvh - 3.15rem);
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
}

.canvas-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.canvas-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body:not(.dark-mode) .canvas-container::after {
    background: linear-gradient(160deg, rgba(228, 236, 245, 0.52), rgba(222, 232, 242, 0.58));
}

body.dark-mode .canvas-container::after {
    background: transparent;
}

#bg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-simple {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-main-name {
    font-size: clamp(2.25rem, 1.3rem + 2.8vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: #f4fbff;
    margin-bottom: 0;
}

.hero-subtitle {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #9ed3f3;
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(320px, 560px) minmax(300px, 1fr);
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: -0.9rem;
}

.hero-stage::before {
    content: '';
    position: absolute;
    width: min(520px, 44vw);
    height: min(520px, 44vw);
    left: 9%;
    top: 44%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 108, 247, 0.16), rgba(74, 108, 247, 0));
    pointer-events: none;
    z-index: -1;
}

.hero-avatar {
    width: min(585px, 100%);
    max-height: 72vh;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
}

.hero-image-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: clamp(390px, 68vh, 580px);
}

.hero-board-title {
    position: absolute;
    top: 65.2%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(210px, 49%, 300px);
    max-width: 295px;
    text-align: center;
    padding: 0 0.18rem;
    color: #f2f9ff;
    font-size: clamp(0.98rem, 0.84rem + 0.52vw, 1.24rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(2, 13, 22, 0.6);
    margin: 0;
    text-wrap: balance;
}

.hero-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.05rem;
    margin: 0.55rem 0.25rem 0.35rem;
    padding: 2.05rem 2.45rem;
    border-radius: 20px;
    border: 1px solid rgba(137, 193, 223, 0.32);
    background: linear-gradient(145deg, rgba(4, 25, 39, 1), rgba(6, 29, 46, 0.36));
    backdrop-filter: blur(5px);
    box-shadow: 0 12px 30px rgba(4, 20, 33, 0.35);
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 0.72rem;
    width: min(440px, 100%);
    margin-bottom: 0;
}

.hero-actions .cta-btn {
    width: 100%;
    justify-content: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.56rem 0.88rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition),
        color var(--transition), border-color var(--transition);
}

.btn-solid {
    background: linear-gradient(120deg, rgba(var(--primary-rgb), 1), rgba(var(--accent-rgb), 0.92));
    color: #fff;
}

.btn-outline {
    border-color: rgba(136, 189, 219, 0.4);
    background: rgba(7, 30, 46, 0.48);
    color: #f2f9ff;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(3, 20, 34, 0.35);
}

.hero-description {
    margin: 0;
    max-width: 590px;
    color: #d2e2ed;
    font-size: clamp(0.93rem, 0.87rem + 0.2vw, 1.03rem);
    line-height: 1.5;
}

.tag-cluster {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-cluster span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(122, 184, 214, 0.45);
    background: rgba(8, 37, 55, 0.55);
    color: #deedf8;
}

body:not(.dark-mode) .hero-main-name {
    color: #122a3a;
}

body:not(.dark-mode) .hero-subtitle {
    color: #2f5b76;
}

body:not(.dark-mode) .hero-stage::before {
    background: radial-gradient(circle, rgba(74, 108, 247, 0.1), rgba(74, 108, 247, 0));
}

body:not(.dark-mode) .hero-board-title {
    color: #17374d;
    text-shadow: 0 2px 10px rgba(236, 245, 252, 0.9);
}

body:not(.dark-mode) .hero-right-content {
    border: 1px solid rgba(82, 127, 157, 0.36);
    background: linear-gradient(145deg, rgba(250, 253, 255, 0.74), rgba(233, 241, 248, 0.67));
    box-shadow: 0 14px 32px rgba(42, 74, 95, 0.16);
    backdrop-filter: blur(8px);
}

body:not(.dark-mode) .btn-outline {
    border-color: rgba(70, 113, 142, 0.45);
    background: rgba(239, 247, 252, 0.82);
    color: #17364a;
}

body:not(.dark-mode) .hero-description {
    color: #2d4f65;
}

body:not(.dark-mode) .tag-cluster span {
    border-color: rgba(71, 118, 149, 0.36);
    background: rgba(236, 245, 251, 0.84);
    color: #27495f;
}

.systems-grid,
.projects-grid,
.stack-grid,
.building-grid {
    display: grid;
    gap: 1rem;
}

.systems-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.system-card,
.project-card,
.stack-card,
.experience-card,
.research-card,
.building-card,
.philosophy-list article,
.contact-form {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.system-card,
.project-card,
.stack-card,
.building-card,
.philosophy-list article {
    padding: 1.2rem;
}

.system-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-top h3 {
    margin: 0.2rem 0 0;
    font-size: 1.34rem;
}

.card-domain {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.system-block h4 {
    font-size: 0.97rem;
    margin-bottom: 0.4rem;
}

.system-block ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-soft);
}

.system-block li {
    margin-bottom: 0.35rem;
}

.system-card p,
.project-card p,
.research-card p,
.experience-card p,
.building-card p {
    color: var(--text-soft);
}

.system-card strong,
.project-card strong,
.research-card strong {
    color: var(--text);
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    padding: 0.46rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text);
    transition: transform var(--transition), background-color var(--transition), color var(--transition);
}

.card-link:hover {
    background: linear-gradient(120deg, rgba(var(--primary-rgb), 1), rgba(var(--accent-rgb), 0.9));
    color: #fff;
    transform: translateY(-2px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
    align-items: start;
}

.about-grid h2 {
    font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.4rem);
    margin-bottom: 0.8rem;
}

.about-grid p {
    color: var(--text-soft);
    margin-bottom: 0.8rem;
}

.philosophy-list {
    display: grid;
    gap: 0.7rem;
}

.philosophy-list h3 {
    font-size: 1.06rem;
    margin-bottom: 0.25rem;
}

.stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stack-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
}

.experience-card {
    padding: 1.25rem;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.78rem;
    margin-bottom: 1rem;
}

.experience-meta .role {
    font-weight: 700;
    color: var(--text);
}

.experience-meta .duration {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.88rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.experience-grid h3 {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
}

.experience-grid ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-soft);
}

.experience-grid li {
    margin-bottom: 0.45rem;
}

.experience-actions {
    margin-top: 1rem;
}

.research-card {
    padding: 1.2rem;
}

.research-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.research-columns h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

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

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.42rem;
}

.project-summary {
    min-height: 78px;
}

.building-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.status-tag {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.76rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.contact-section {
    padding-bottom: 4.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.contact-grid h2 {
    font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.35rem);
    margin-bottom: 0.7rem;
}

.contact-grid p {
    color: var(--text-soft);
}

.contact-points {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.contact-points li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text);
}

.contact-points i {
    color: var(--primary);
}

.contact-form {
    position: relative;
    padding: 1.2rem 1.2rem 0.45rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-group {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.form-group label {
    font-size: 0.87rem;
    color: var(--text-soft);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.62rem 0.78rem;
    font: inherit;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.66);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

.submit-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, rgba(var(--primary-rgb), 1), rgba(var(--accent-rgb), 0.92));
    transition: transform var(--transition), box-shadow var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.78;
    transform: none;
    box-shadow: none;
}

.form-status {
    min-height: 1.2rem;
    margin-top: 0.55rem;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.form-status.is-success {
    color: #9debc6;
}

.form-status.is-error {
    color: #ffb8b8;
}

body:not(.dark-mode) .form-status.is-success {
    color: #0f6a46;
}

body:not(.dark-mode) .form-status.is-error {
    color: #b42318;
}

footer {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 1.15rem 0 1.8rem;
    color: var(--text-soft);
    background: transparent;
}

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

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    body.dark-mode #main-navbar {
        --bs-navbar-toggler-border-color: rgb(95, 143, 110, 0.72);
        --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.96%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    body.dark-mode #main-navbar .navbar-toggler {
        border-color: rgb(8, 33, 46);
        /* background: rgba(255, 255, 255, 0.06); */
    }

    body.dark-mode #main-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgb(8, 33, 46);
    }

    .site-shell {
        padding-top: 3.35rem;
    }

    .navbar-nav {
        margin-top: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .theme-toggle {
        margin: 0.4rem 0 0;
    }

    .theme-toggle.theme-toggle-floating {
        position: fixed;
        right: 0.95rem;
        bottom: 0.95rem;
        margin: 0;
        z-index: 1300;
        box-shadow: 0 10px 24px rgba(8, 24, 36, 0.32);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        justify-items: center;
        margin-top: 0;
    }

    .hero-stage::before {
        width: min(420px, 72vw);
        height: min(420px, 72vw);
        left: 50%;
        top: 39%;
        transform: translate(-50%, -50%);
    }

    .hero-image-wrap {
        min-height: 340px;
    }

    .hero-avatar {
        width: min(440px, 90vw);
        max-height: 54vh;
    }

    .hero-board-title {
        width: clamp(200px, 56%, 300px);
        top: 65%;
    }

    .hero-right-content {
        align-items: center;
        text-align: center;
        gap: 0.9rem;
        margin: 0.35rem 0.2rem 0.08rem;
        padding: 1.5rem 1.7rem;
        width: min(680px, 100%);
    }

    .hero-main-name {
        margin-bottom: 0;
    }

    .hero-subtitle {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

    .hero-actions {
        width: min(500px, 100%);
    }

    .hero-description {
        max-width: 700px;
    }
}

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

    .hero-section {
        min-height: auto;
        padding-top: 0.1rem;
    }

    .hero-links,
    .card-links {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn,
    .card-link {
        justify-content: center;
    }

    .hero-image-wrap {
        min-height: 300px;
    }

    .hero-avatar {
        width: min(330px, 92vw);
        max-height: 46vh;
    }

    .hero-board-title {
        width: clamp(178px, 60%, 250px);
        top: 65%;
        font-size: clamp(0.88rem, 0.84rem + 0.9vw, 1.08rem);
    }

    .hero-main-name {
        font-size: clamp(1.8rem, 1.1rem + 5vw, 2.7rem);
    }

    .hero-subtitle {
        font-size: 0.72rem;
        margin-bottom: 0.5rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.66rem;
        width: min(420px, 100%);
        margin: 0 auto;
    }

    .hero-actions .cta-btn {
        width: 100%;
        min-width: 0;
    }

    .hero-description {
        margin-top: 0;
        font-size: 0.89rem;
        max-width: 460px;
    }

    .project-summary {
        min-height: auto;
    }
}

@media (max-height: 820px) and (min-width: 769px) {
    .hero-section {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
        align-items: center;
    }

    .hero-image-wrap {
        min-height: 330px;
    }

    .hero-avatar {
        max-height: 53vh;
    }

    .hero-main-name {
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        margin-bottom: 0.5rem;
    }
}

@media (hover: none) {
    .cta-btn:hover,
    .card-link:hover,
    .submit-btn:hover,
    .theme-toggle:hover {
        transform: none;
    }
}
