/* Chill-Astro Software - style.css */
/* Tomorrow Font */
@font-face{font-family:"Tomorrow";src:url("../fonts/Tomorrow-Regular.ttf") format("truetype");font-weight:400}
@font-face{font-family:"Tomorrow";src:url("../fonts/Tomorrow-Medium.ttf") format("truetype");font-weight:500}
@font-face{font-family:"Tomorrow";src:url("../fonts/Tomorrow-SemiBold.ttf") format("truetype");font-weight:600}
@font-face{font-family:"Tomorrow";src:url("../fonts/Tomorrow-Bold.ttf") format("truetype");font-weight:700}
@font-face{font-family:"Tomorrow";src:url("../fonts/Tomorrow-ExtraBold.ttf") format("truetype");font-weight:800}

:root{
--bg:#fff;--surface:#f7f7f8;--text:#111;--muted:var(--text);
--button-bg:#111;--button-text:#fff;--card-border:#e6e6e6;
--scroll-meter-fill:var(--text);
--scroll-meter-track:rgba(255,255,255,0.18);
--shadow:0 8px 30px rgba(0,0,0,.08);--radius:20px;--glow-shadow:0 0 15px rgba(0,0,0,0.2)}
@media(prefers-color-scheme:dark){
:root{--bg:#0b0b0b;--surface:#151515;--text:#fff;--muted:var(--text);
--button-bg:#fff;--button-text:#111;--card-border:#292929;
--scroll-meter-fill:var(--text);
--scroll-meter-track:rgba(255,255,255,0.18);
--shadow:0 8px 30px rgba(0,0,0,.45);--glow-shadow:0 0 15px rgba(255,255,255,0.1)}}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:"Tomorrow",sans-serif;background:var(--bg);color:var(--text);transition:.3s;overflow-x:hidden}
section{width:min(1200px,90%);margin:auto}
a{text-decoration:none;color:inherit}
p{color:var(--muted);line-height:1.6}

body {
    min-height: 100vh;
}
h1{font-size:clamp(2rem,3.5vw,2.8rem);font-weight:700;line-height:1.1;white-space:nowrap}
h2{font-size:clamp(1.8rem,3vw,2.6rem);font-weight:700;white-space:nowrap}
.primary-btn{display:inline-flex;padding:10px 24px;border-radius:999px;
background:var(--button-bg);color:var(--button-text);margin-top:1.25rem;
font-weight:600;font-size:0.9rem;transition:.25s}
.primary-btn:hover{transform:translateY(-2px) scale(1.02);box-shadow:var(--shadow)}

/* ======================================
   Hero - Centered Compact Card Layout
====================================== */

.hero{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    max-width:440px;
    margin:1rem auto 0;
    padding:1.75rem 1.5rem 1.5rem;
    min-height:auto;
    background:var(--surface);
    border-radius:var(--radius);
    border:1px solid var(--card-border);
    box-shadow:var(--shadow);
}

.hero-left{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin-bottom:0.75rem;
}

.logo-circle{
    width:90px;
    aspect-ratio:1;
    border-radius:50%;
    overflow:hidden;
    background:var(--bg);
    box-shadow:0 4px 16px rgba(0,0,0,.06);
    border:2px solid var(--card-border);
    transition:transform .3s ease;
}

.logo-circle:hover{
    transform:scale(1.04);
}

.logo-circle img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.username{
    margin-top:8px;
    font-weight:500;
    font-size:0.85rem;
    letter-spacing:0.2px;
    color:var(--muted);
}

.hero-right{
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
}

.hero-right h1{
    margin-bottom:0.3rem;
    font-size:clamp(1.4rem,3vw,1.8rem);
    white-space:normal;
}

.hero-right p{
    margin-bottom:0.5rem;
    line-height:1.6;
    max-width:380px;
    font-size:0.9rem;
}



.hero-btn{
    display:flex;
    gap:0.6rem;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    width:100%;
}

.hero-btn .primary-btn{
    margin-top:0;
    padding:9px 20px;
    flex:0 0 auto;
    justify-content:center;
    font-size:0.85rem;
}

.secondary-hero-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 20px;
    border-radius:999px;
    color:var(--text);
    background:transparent;
    font-weight:600;
    font-size:0.85rem;
    transition:.25s;
    border:1px solid var(--card-border);
    flex:0 0 auto;
}

.secondary-hero-btn:hover{
    background:var(--bg);
    transform:translateY(-2px);
}

@media (max-width:480px){
    .hero{
        max-width:100%;
        align-items: center;
        margin:0.5rem 0.75rem;
        padding:1.25rem 1rem 1.25rem;
    }
    .logo-circle{
        width:72px;
    }
    .hero-right h1{
        font-size:clamp(1.2rem,5vw,1.5rem);
    }
    .hero-right p{
        font-size:0.8rem;
    }
    /* Make container full width and stack buttons vertically */
.hero-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

/* Force both buttons to span full width */
.hero-btn .primary-btn,
.secondary-hero-btn {
    width: 100%;
    max-width: none; /* Removes any restriction capping the width */
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
}

}

.projects{padding:80px 0}
.projects h2,
.additional-stuff h2{
    text-align:center;
    margin-bottom:50px;
    font-size:clamp(2rem,3.5vw,2.8rem);
}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.project-card{transition:.3s}
.project-card:hover{transform:translateY(-8px)}
.project-image{aspect-ratio:1;border-radius:22px;overflow:hidden;background:transparent;}
.project-image img{width:100%;height:100%;object-fit:cover;transition:.35s}
.project-card:hover img{transform:scale(1.02);text-align: center;}
.project-card h3{margin-top:20px;font-weight:600;text-align: center;}
.project-card p{margin-top:10px;text-align:center;max-height:60px;font-size:0.9rem}
.cta{padding:40px 0;text-align:center}
.cta h2{font-size:2rem;margin-bottom:30px;}
.site-header, .site-footer{background:var(--bg);color:var(--text)}
footer{width:100%;margin:2rem 0 0;padding:2rem 1.25rem 2.5rem;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--card-border);gap:1rem;flex-wrap:wrap}
footer svg{transition:.25s}footer a:hover svg{transform:scale(1.12)}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

/* Social Icons */
.socials {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.socials a {
    color: var(--text-color);
    transition: transform .25s ease, opacity .25s ease;
}

.socials a:hover {
    transform: translateY(-2px);
    opacity: .8;
}

.socials svg {
    display: block;
}
.hidden{opacity:0;transform:translateY(30px);will-change:transform,opacity}
.show{opacity:1;transform:none;transition:all 1.2s cubic-bezier(.22,1,.36,1)}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

@media(max-width:768px){
.hero{flex-direction:column;text-align:center;justify-content:center;gap:30px}
.hero-right{max-width:100%}
h1,h2{white-space:normal}
.project-grid{grid-template-columns:1fr}
footer{padding:1.5rem 1.25rem 2rem}
}

.project-card{
    display:grid;
    grid-template-rows:
        320px   /* image */
        auto    /* title */
        90px    /* description */
        auto    /* version */
        auto;   /* download button */

    justify-items:center;
    text-align:center;
}

.project-image img{
    width:82%;
    height:82%;
    object-fit:contain;
    display:block;
    margin:auto;
}

.project-card h3,
.project-card p,
.project-version{
    text-align:center;
}

.project-version{
    margin-top:10px;
    font-size:0.85rem;
    font-weight:600;
    color:var(--muted);
}

.download-btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:fit-content;
    margin:14px auto 0;
    padding:10px 24px;
    border-radius:999px;
    background:var(--button-bg);
    color:var(--button-text);
    text-decoration:none;
    font-weight:600;
    font-size:0.9rem;
    transition:.25s;
}

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

.project-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:0.6rem;
    margin-top:0.75rem;
    flex-wrap:wrap;
}

.project-actions .primary-btn{
    margin:0;
}

.details-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 26px;
    border:none;
    border-radius:999px;
    background:var(--button-bg);
    color:var(--button-text);
    font-family:"Tomorrow",sans-serif;
    font-weight:600;
    font-size:0.9rem;
    transition:.25s;
}

.details-btn:hover{
    transform:translateY(-3px) scale(1.02);
    box-shadow:var(--shadow);
}

.github-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:0.5rem;
    padding:10px 24px;
    border-radius:999px;
    color:var(--text);
    background:transparent;
    font-family:"Tomorrow",sans-serif;
    font-weight:600;
    font-size:0.9rem;
    transition:transform .25s, background .25s;
}

.github-btn:hover{
    transform:translateY(-2px);
    background:var(--surface);
    text-decoration:underline;
    text-underline-offset:4px;
}

/* ======================================
   Header
====================================== */

.site-header{
    position:fixed !important;
    top:0;
    left:0;
    right:0;
    z-index:10000;

    width:100%;

    background:var(--background);
    border-bottom:1px solid var(--border);

}

.site-header .scroll-meter{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:3px;
    background:transparent;
    overflow:hidden;
    z-index:10001;
}

.site-header .scroll-meter-fill{
    width:0%;
    height:100%;
    background:var(--scroll-meter-fill, var(--text));
    border-radius:999px;
    transform-origin:left;
    transition:none;
}

/* Ensure page content sits below the fixed header */
body {
    padding-top:68px;
}

.site-header-inner{

    width:100%;

    margin:0 auto;

    padding:0 1.25rem;

    height:68px;

    display:flex;
    align-items:center;
    justify-content:space-between;

}

@media (min-width: 1200px) {
    .site-header-inner {
        padding:0 3rem;
    }
}

.site-header .site-header-inner {
    max-width:none;
    width:100%;
}

/* The header has its own entrance; the hamburger menu retains its drawer motion. */
.site-header {
    animation:header-enter .45s cubic-bezier(.22,1,.36,1) both;
    transition:none;
}

@keyframes header-enter {
    from { opacity:0; transform:translateY(-100%); }
    to { opacity:1; transform:translateY(0); }
}

/* Ensure any residual class cannot hide the header. */
.site-header.header-hidden {
    transform:none;
    opacity:1;
}

.site-header .secondary-btn {
    display:inline-flex;
    flex-shrink:0;
    visibility:visible;
    opacity:1;
    transition:none;
}

.header-left-group {
    display:flex;
    align-items:center;
    gap:0.6rem;
}

.menu-toggle {
    display:inline-flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    width:40px;
    height:40px;
    border:1px solid var(--card-border);
    background:transparent;
    cursor:pointer;
    padding:0 10px;
    border-radius:12px;
    transition:background .2s ease, border-color .2s ease;
    position:relative;
    overflow:hidden;
}

.menu-toggle::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:0;
    transform:translateY(105%);
    background:var(--surface);
    transition:transform .23s cubic-bezier(.2,.8,.2,1);
}

.menu-toggle:hover::before {
    transform:translateY(0);
}

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

.menu-toggle:hover span {
    background:var(--text);
}

.menu-toggle span {
    display:block;
    height:2px;
    width:100%;
    background:var(--text);
    border-radius:999px;
    transition:background .23s cubic-bezier(.2,.8,.2,1);
}

.mobile-nav-backdrop {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
    z-index:1000;
}

.mobile-nav-backdrop.open {
    opacity:1;
    visibility:visible;
}

.header-nav {
    position:fixed;
    top:1rem;
    left:1rem;
    bottom:1rem;
    width:min(300px, calc(100vw - 2rem));
    display:flex;
    flex-direction:column;
    gap:0.8rem;
    padding:1rem 1.25rem;
    background:color-mix(in srgb, var(--bg) 86%, transparent);
    color:var(--text);
    border:1px solid var(--card-border);
    border-radius:20px;
    box-shadow:var(--shadow);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    /* allow internal scrolling when content exceeds available height */
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    transform:translateX(-110%);
    transition:transform .28s ease;
    z-index:1100;
}

.header-nav.open {
    transform:translateX(0);
}

.header-nav-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:0.3rem;
    font-weight:700;
}

.nav-close {
    border:none;
    background:transparent;
    color:var(--text);
    font-size:1.2rem;
    cursor:pointer;
}

.header-nav a {
    font-weight:600;
    color:var(--text);
    padding:0.6rem 0.8rem;
    border-radius:12px;
    transition:background .2s ease;
}

.header-nav a:hover {
    background:var(--surface);
}

/* ======================================
   Header Nav: Modal-like link animations
   Mirrors the download modal link style with
   staggered reveal when `.header-nav.open` is set.
====================================== */

.header-nav a{
    /* start hidden for animated reveal */
    opacity:0;
    transform:translateX(-12px);
    transition:opacity .38s cubic-bezier(.22,1,.36,1), transform .38s cubic-bezier(.22,1,.36,1);
    padding:.85rem 1.2rem .85rem 0;
    border-top:1px solid var(--card-border);
    white-space:nowrap;
}

.header-nav.open a{
    opacity:1;
    transform:none;
}

.header-nav.open a:nth-of-type(1){ transition-delay: .06s; }
.header-nav.open a:nth-of-type(2){ transition-delay: .12s; }
.header-nav.open a:nth-of-type(3){ transition-delay: .18s; }
.header-nav.open a:nth-of-type(4){ transition-delay: .24s; }

.header-nav a::before{
    content:"";
    display:inline-block;
    width:0;
    opacity:0;
    margin-right:0;
    transition:width .2s ease, opacity .2s ease, margin-right .2s ease;
}

.header-nav a:hover{
    padding-left:1.2rem;
    color:var(--text);
}

.header-nav a:hover::before{
    content:">>";
    width:1.2rem;
    opacity:1;
    margin-right:.2rem;
}

.header-left{

    display:flex;
    align-items:center;

    gap:0.8rem;

}

.secondary-btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:10px 0;

    color:var(--text);

    background:transparent;

    font-weight:600;
    font-size:0.9rem;

    transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,background .2s ease,color .2s ease;

}

.secondary-btn:hover{

     text-decoration:underline;
    text-underline-offset:4px;
    transform:translateY(-4px) scale(1.06);
    box-shadow:0 0 0 4px color-mix(in srgb,var(--text) 12%,transparent),0 10px 22px color-mix(in srgb,var(--text) 22%,transparent);
    background:var(--text);
    color:var(--bg);

}

.site-title{

    color:var(--text);

    text-decoration:none;

    font-size:1.6rem;
    font-weight:700;

}

/* ==== Overrides: hero/project fixes ==== */
.hero{max-width:1200px;gap:2.5rem;}
.hero-left{flex:0 0 300px;}
.hero-right{flex:0 1 580px;}
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:2rem;}
.project-card{display:flex!important;flex-direction:column!important;align-items:center;text-align:center;}
.project-image{display:flex;justify-content:center;align-items:center;width:100%;height:450px;}
.project-image img{max-width:450px!important;max-height:450px!important;width:auto!important;height:auto!important;object-fit:contain!important;}
.project-card h3,.project-card p,.project-version,.project-download{position:static;}

/* CLEAN HEADER OVERRIDES */
.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    width:100%;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom:1px solid var(--card-border);
}
.site-header-inner{width:min(1400px,94%);margin:0 auto;height:68px;display:flex;align-items:center;justify-content:space-between;}
.header-left{display:flex;align-items:center;gap:14px;}
.menu-btn{width:40px;height:40px;border:none;background:transparent;color:var(--text);font-size:1.6rem;cursor:pointer;border-radius:12px;}
.menu-btn:hover{background:var(--surface);}
.site-title{text-decoration:none;color:var(--text);font-size:1.3rem;font-weight:700;}
.header-contact{flex-shrink:0;}
.hero{max-width:1200px!important;gap:2.5rem!important;}
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:2rem;}
.project-card{display:flex!important;flex-direction:column!important;align-items:center;text-align:center;}
.project-image{display:flex;justify-content:center;align-items:center;height:320px!important;}
.project-image img{width:320px!important;height:320px!important;object-fit:contain!important;}

/* ======================================
   Download Modal
====================================== */

.download-overlay{

    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.30);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    opacity:0;
    visibility:hidden;

    transition:.2s ease;

    z-index:9999;

}

.download-overlay.show{

    opacity:1;
    visibility:visible;

}

.download-dialog{

    width:min(92vw,480px);

    background:var(--bg);

    color:var(--text);

    border:1px solid var(--card-border);

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transform:translateY(12px) scale(.97);

    opacity:0;

    transition:.2s ease;

}

.download-overlay.show .download-dialog{

    transform:none;

    opacity:1;

}

.dialog-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0.8rem 1.2rem;

    border-bottom:1px solid var(--card-border);

}

.dialog-header h2{

    font-size:1.2rem;
    font-weight:700;

}

.dialog-close{

    border:none;
    background:none;

    color:var(--text);

    font-size:1.3rem;

    cursor:pointer;

}

.dialog-body{

    padding:1.2rem;

}

.dialog-version{

    color:var(--muted);

    font-size:0.85rem;

    margin-bottom:0.8rem;

}

.dialog-body p{

    margin-bottom:0.8rem;

    line-height:1.6;
    font-size:0.9rem;

}

.command-box{
    display:flex;
    align-items:flex-start;
    gap:0.6rem;
    margin-bottom:0.8rem;
}

.download-command{

    display:none;

    flex:1;
    margin:0;
    padding:0.8rem;

    border-radius:12px;

    background:var(--surface);

    border:1px solid var(--card-border);

    font-family:"Tomorrow", sans-serif;

    white-space:pre-wrap;

}

.copy-command-btn{
    border:none;
    border-radius:999px;
    padding:0.6rem 0.9rem;
    background:var(--button-bg);
    color:var(--button-text);
    font-family:"Tomorrow", sans-serif;
    font-weight:600;
    font-size:0.85rem;
    cursor:pointer;
    transition:transform .2s ease, opacity .2s ease;
}

.copy-command-btn:hover{
    transform:translateY(-1px);
}

.copy-command-btn.copied{
    opacity:.9;
}

.dialog-links{

    display:flex;
    flex-direction:column;

}

.dialog-links a{

    position:relative;
    text-decoration:none;
    color:var(--text);
    padding:.85rem 1.2rem .85rem 0;
    border-top:1px solid var(--card-border);
    transition:padding .2s ease, color .2s ease;
    white-space:nowrap;
    font-size:0.9rem;
}

.dialog-links a::before{
    content:"";
    display:inline-block;
    width:0;
    opacity:0;
    margin-right:0;
    transition:width .2s ease, opacity .2s ease, margin-right .2s ease;
}

.dialog-links a:hover{
    padding-left:1.2rem;
    color:var(--text);
}

.dialog-links a:hover::before{
    content:">>";
    width:1.2rem;
    opacity:1;
    margin-right:.2rem;
}

/* ======================================
   Mobile layout refinements
   These overrides intentionally apply only below the tablet breakpoint.
====================================== */
@media (max-width: 768px){
    .hero{padding:1.25rem 1rem 1.5rem;gap:1rem!important;}
    .hero-left{flex:none;}
    .hero-right{flex:none;}
    .logo-circle{width:min(55vw,160px);height:min(55vw,160px);}
    .username{margin-top:0.5rem;}
    .hero-right h1{margin:0 0 0.5rem;}
    .hero-right p{margin:0 0 0.75rem;line-height:1.6;}
    .skill-icons{align-self:center;height:34px;margin:0 auto 0.75rem;}

    .projects{padding:3rem 0;}
    .projects h2{margin-bottom:1.5rem;}
    .project-grid{gap:2.5rem;}
    .project-image{height:min(80vw,340px)!important;}
    .project-image img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;}
    .project-card h3{margin-top:0.8rem;}
    .project-card p{margin-top:0.4rem;max-width:34ch;}
    .project-version{margin-top:0.5rem;}
    .project-download{margin-top:0.75rem;}

    .download-dialog{width:calc(100vw - 2rem);max-height:calc(100dvh - 2rem);overflow:auto;}
    .dialog-header,.dialog-body{padding:0.8rem 1rem;}
}

@media (max-width: 420px){
    .hero{padding-inline:0.75rem;margin:0.25rem 0.5rem;}
    .logo-circle{width:min(50vw,120px);height:min(50vw,120px);}
    .project-image{height:min(60vw,220px)!important;}
    .primary-btn{padding:0.6rem 0.9rem;font-size:0.75rem;}
    .project-grid{gap:2rem;}
}

/* ======================================
   Homepage hero – centered showcase card
====================================== */
.hero{
    position:relative;
    width:min(900px, calc(100% - 2rem));
    max-width:900px !important;
    min-height:0;
    margin:9rem auto 0;
    padding:clamp(7.25rem, 13vw, 8.75rem) clamp(1.25rem, 5vw, 4rem) clamp(2.25rem, 5vw, 3.5rem);
    display:block;
    background: var(--surface);
    border:1px solid var(--card-border);
    border-radius:clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow);
    color: var(--text);
    text-align:center;
    overflow:visible;
}



.hero-left{
    position:absolute;
    top:0;
    left:50%;
    display:flex;
    align-items:center;
    margin:0;
    transform:translate(-50%, -50%);
    z-index:1;
}

.logo-circle{
    width:clamp(200px, 22vw, 220px);
    height:clamp(200px, 22vw, 220px);
    background: var(--bg);
    border:4px solid var(--text);
    box-shadow: var(--shadow);
}

.username{display:none;}

.hero-right{
    display:flex;
    flex:none;
    align-items:center;
    min-width:0;
}

.hero-right h1{
    margin:0 0 1rem;
    font-size:clamp(2rem, 5vw, 3.25rem);
    line-height:1;
    text-wrap:balance;
}

.hero-right p{
    max-width:58ch;
    margin:0 0 1.4rem;
    color: var(--muted);
    font-size:clamp(.92rem, 1.7vw, 1.08rem);
    font-weight:500;
}


.hero-btn{
    display:flex;
    justify-content:center;
    gap:.85rem;
    flex-wrap:wrap;
}

.hero-btn .primary-btn{
    flex:0 0 auto;
    min-width:170px;
    margin:0;
    padding:.85rem 1.45rem;
    background:var(--button-bg);
    color:var(--button-text);
    font-size:.9rem;
}

.hero-btn .primary-btn:hover{box-shadow:0 10px 24px rgba(255,255,255,.16);}

@media (max-width: 700px){
    .hero{
        width:calc(100% - 1.5rem);
        margin-top:6.25rem;
        padding:6.25rem 1.5rem 2rem;
        border-radius:1.75rem;
    }

    .logo-circle{width:170px;height:170px;}
    .hero-right h1{font-size:clamp(1.6rem, 7vw, 2.2rem);}
        .hero-right p{margin-bottom:1.15rem;}
    .skill-icons{height:38px;margin-bottom:1.25rem;}
    .hero-btn{width:100%;}
}

@media (max-width: 420px){
    .hero{width:calc(100% - 1rem);margin-top:5.25rem;padding:5.25rem 1.25rem 1.5rem;}
    .logo-circle{width:116px;height:116px;border-width:3px;}
    .hero-btn{flex-direction:column;gap:.65rem;align-items:center;}
    .hero-btn .primary-btn,
    .hero-btn .secondary-hero-btn{
        flex:0 0 auto;
        width:100%;
        max-width:240px;
        min-height:44px;
        padding:.75rem 1rem;
    }
}

/* Project cards match the surface treatment used by Additional Stuff. */
.project-card{
    padding:1.25rem 0 1.6rem;
    background:var(--surface);
    border:1px solid var(--card-border);
    border-radius:18px;
    box-shadow:0 8px 24px rgba(0,0,0,.05);
    transition:transform .65s cubic-bezier(.22, 1, .36, 1), border-color .65s cubic-bezier(.22, 1, .36, 1), box-shadow .65s cubic-bezier(.22, 1, .36, 1);
}

.project-card:hover{
    transform:translateY(-4px) scale(1.015);
    border-color:var(--card-border); /* Keep original border color */
    box-shadow:var(--glow-shadow);
}

/* Keep app logos steady; the card itself provides the hover feedback. */
.project-card:hover .project-image img{
    transform:none;
}

.project-card h3{margin-top:1rem;}
.project-card p{padding:0 .9rem;}

.project-actions{gap:.55rem;margin-top:1rem;}

.details-btn,
.project-actions .project-download{
    min-width:132px;
    min-height:42px;
    margin:0;
    padding:.65rem 1rem;
    border-radius:999px;
    font-size:.82rem;
    line-height:1;
}

/* Download is the primary action; project details remain available but quieter. */
.details-btn{
    border:1px solid var(--card-border);
    background:transparent;
    color:var(--text);
}

.details-btn:hover{
    background:color-mix(in srgb, var(--text) 7%, transparent);
    box-shadow:none;
    transform:translateY(-2px);
}

.project-actions .project-download{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--button-bg);
    color:var(--button-text);
}

.github-btn{
    margin-top:.85rem;
    padding:.35rem .65rem;
    border-radius:999px;
    color:var(--muted);
    font-size:.78rem;
}

.github-btn:hover{
    color:var(--text);
    background:color-mix(in srgb, var(--text) 7%, transparent);
    text-decoration:none;
}

@media (max-width: 420px){
    .project-actions{width:100%;padding:0 .75rem;}
    .details-btn,
    .project-actions .project-download{flex:1 1 130px;}
}
/* ======================================
   ADDITIONAL STUFF
   ====================================== */

.additional-stuff {
    width: min(1100px, 100%);
    margin: 60px auto 0;
}

.additional-stuff h2 {
    margin-bottom: 24px;
}

.additional-grid {
    display: grid;
    /* On PC: fits as many 200px cards as possible, centering the whole grid and wrapping leftover cards to center */
    grid-template-columns: repeat(auto-fit, 200px);
    justify-content: center;
    justify-items: center;
    gap: 16px;
}

.additional-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 18px 14px;

    text-decoration: none;
    text-align: center;

    border: 1px solid var(--card-border);
    border-radius: 18px;

    background: var(--surface);

    transition:
        transform .65s cubic-bezier(.22, 1, .36, 1),
        border-color .65s cubic-bezier(.22, 1, .36, 1),
        box-shadow .65s cubic-bezier(.22, 1, .36, 1);
}

.additional-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:var(--glow-shadow);
}

.additional-image {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
}

.additional-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.additional-card h3 {
    margin: 0;

    font-size: 0.9rem;
    line-height: 1.3;

    color: var(--text);
}


/* ======================================
   MOBILE
   ====================================== */

@media (max-width: 768px) {

    .additional-stuff {
        width: 92%;
        margin-top: 40px;
    }

    .additional-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        gap: 12px;
    }

    .additional-card {
        padding: 14px 8px;
        border-radius: 14px;
    }

    /* Target the 3rd card when it wraps alone and center it */
    .additional-grid .additional-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 6px);
        justify-self: center;
    }

    .additional-image {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
    }

    .additional-card h3 {
        font-size: 0.8rem;
    }

}

/* Project cards use the same centered 3 / 2+1 / 1 arrangement as Additional Stuff. */
.project-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    justify-content:center;
    gap:2rem;
}

@media (min-width: 561px) and (max-width: 900px){
    .project-grid{
        grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    }
    
    .hero-btn .primary-btn{
        min-width:170px;
    }
    
    .project-actions .primary-btn{
        min-width:132px;
    }
    
    .academic-item{
        min-width:180px;
    }

    .project-grid .project-card:nth-child(odd):last-child{
        grid-column:1 / -1;
        width:calc(50% - 1rem);
        justify-self:center;
    }
}

@media (max-width: 560px){
    .project-grid{
        grid-template-columns:1fr;
    }
}

@media (prefers-reduced-motion: reduce){
    .project-card,
    .additional-card{
        transition:none;
    }
}

/* Chill-Astro // monochrome interface layer */
:root{color-scheme:light dark;--bg:#fafafa;--surface:#fff;--surface-2:#f1f1f1;--text:#0a0a0a;--muted:#515151;--button-bg:#0a0a0a;--button-text:#fff;--card-border:#d8d8d8;--line:#c9c9c9;--shadow:0 22px 60px rgba(0,0,0,.08);--glow-shadow:0 0 0 1px var(--text),0 18px 42px rgba(0,0,0,.12);--radius:0}
@media (prefers-color-scheme:dark){:root{--bg:#050505;--surface:#0b0b0b;--surface-2:#121212;--text:#f5f5f5;--muted:#b4b4b4;--button-bg:#f5f5f5;--button-text:#050505;--card-border:#292929;--line:#383838;--shadow:0 22px 60px rgba(0,0,0,.48);--glow-shadow:0 0 0 1px var(--text),0 18px 48px rgba(255,255,255,.08)}}
*{scroll-margin-top:7rem}body{background:var(--bg);color:var(--text);letter-spacing:.01em;background-image:linear-gradient(color-mix(in srgb,var(--text) 4%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--text) 4%,transparent) 1px,transparent 1px);background-size:40px 40px}body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 50% -20%,color-mix(in srgb,var(--text) 8%,transparent),transparent 42%)}p{color:var(--muted)}h1,h2,h3,h4{letter-spacing:-.035em;text-wrap:balance}h1{font-weight:800}h2{font-weight:700}a{transition:color .2s ease,background .2s ease,transform .2s ease}:focus-visible{outline:2px solid var(--text);outline-offset:3px}

/* Shared navigation */
.site-header{height:68px!important;background:color-mix(in srgb,var(--bg) 83%,transparent)!important;border-bottom:1px solid var(--line)!important;backdrop-filter:blur(18px) saturate(0)!important}.site-header::after{content:"SYSTEM / CHILL-ASTRO";position:absolute;right:7.4rem;top:50%;transform:translateY(-50%);font-size:.58rem;letter-spacing:.18em;color:var(--muted);pointer-events:none}.site-header-inner{height:68px!important}.site-title{font-size:1rem!important;letter-spacing:.08em;text-transform:uppercase}.menu-toggle{border:1px solid var(--card-border)!important;width:36px!important;height:36px!important;padding:0 8px!important}.menu-toggle:hover{background:var(--surface)!important;color:var(--text)!important}.menu-toggle:hover span{background:var(--text)!important}.secondary-btn{border:1px solid var(--card-border);padding:.5rem .8rem!important;font-size:.72rem!important;letter-spacing:.1em;text-transform:uppercase}.secondary-btn:hover{background:var(--text);color:var(--bg);text-decoration:none!important}.header-nav{border-radius:0!important;background:color-mix(in srgb,var(--bg) 94%,transparent)!important;border-color:var(--line)!important}.header-nav-top{letter-spacing:.12em;text-transform:uppercase;font-size:.75rem}.header-nav a{border-color:var(--line)!important;text-transform:uppercase;font-size:.76rem;letter-spacing:.08em}.header-nav a:hover{background:var(--text)!important;color:var(--bg)!important}.mobile-nav-backdrop{background:rgba(0,0,0,.62)!important}

/* Shared surfaces, actions, media and document content */
.primary-btn,.download-btn,.copy-command-btn{border-radius:0!important;border:1px solid var(--button-bg)!important;letter-spacing:.08em;text-transform:uppercase;font-size:.72rem!important;padding:.78rem 1.15rem!important;box-shadow:4px 4px 0 color-mix(in srgb,var(--text) 25%,transparent)}.primary-btn:hover,.download-btn:hover,.copy-command-btn:hover{transform:translate(-2px,-2px)!important;box-shadow:6px 6px 0 var(--text)!important}.details-btn,.secondary-hero-btn{border-radius:0!important;border:1px solid var(--line)!important;letter-spacing:.08em;text-transform:uppercase;font-size:.72rem!important}.details-btn:hover,.secondary-hero-btn:hover{background:var(--text)!important;color:var(--bg)!important}pre,code,.terminal-preview,.tmm-command{font-family:Consolas,"Courier New",monospace!important}.lamina-content pre,.tmm-section pre,.rooting-content pre,.tmm-command{border-radius:0!important;border-color:var(--line)!important;background:var(--surface-2)!important}.lamina-media img,.lamina-media video,.root-checker-media,.root-checker-media img,.root-checker-media video,.tmm-media img,.tmm-media video,.eeg-media,.hero-image{border-radius:0!important;border:none!important;box-shadow:none!important}.lamina-page,.root-checker-page,.tmm-page,.rooting-page,.eeg-page,.omp-page,.about-page{padding-top:clamp(3rem,7vw,6rem)!important;padding-bottom:clamp(4rem,9vw,8rem)!important}.lamina-section,.root-checker-section,.tmm-section{position:relative;padding-top:1.25rem;border-top:1px solid var(--line)}.lamina-section h2::before,.root-checker-section h2::before,.tmm-section h2::before,.rooting-content h2::before{content:"// ";color:var(--muted);font-family:"Tomorrow",sans-serif;font-size:.65em}
blockquote,.rooting-note,.doc-note,.eeg-caution{box-sizing:border-box;border-radius:0!important;border:1px solid var(--line)!important;border-left:4px solid var(--text)!important;background:var(--surface-2)!important;padding:1.25rem 1.4rem!important}blockquote>:first-child,.rooting-note>:first-child,.doc-note>:first-child,.eeg-caution>:first-child{margin-top:0!important}blockquote>:last-child,.rooting-note>:last-child,.doc-note>:last-child,.eeg-caution>:last-child{margin-bottom:0!important}

/* Home */
.hero{margin-top:6rem!important;border-radius:0!important;background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important}.hero::before{content:"CHILL-ASTRO / INDEPENDENT SOFTWARE";position:absolute;top:1rem;left:1.25rem;font:600 .62rem "Tomorrow",sans-serif;letter-spacing:.13em;color:var(--muted)}.hero::after{content:"01";position:absolute;right:1.25rem;bottom:1rem;font:600 .68rem "Tomorrow",sans-serif;color:var(--muted)}.logo-circle{border-radius:0!important;border:1px solid var(--text)!important;box-shadow:8px 8px 0 color-mix(in srgb,var(--text) 24%,transparent)!important}.projects h2,.additional-stuff h2{margin-bottom:2rem!important}.projects h2::before,.additional-stuff h2::before{content:"[ ";font:500 .55em "Tomorrow",sans-serif;color:var(--muted)}.projects h2::after,.additional-stuff h2::after{content:" ]";font:500 .55em "Tomorrow",sans-serif;color:var(--muted)}.project-card,.additional-card{border-radius:0!important;background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none!important}.project-card{padding:1.25rem 0 1.6rem!important}.project-card:hover,.additional-card:hover{transform:translate(-3px,-3px)!important;box-shadow:6px 6px 0 var(--text)!important;border-color:var(--text)!important}.project-image{height:300px!important;overflow:visible!important}.project-image img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}.project-version,.github-btn{font-family:"Tomorrow",sans-serif!important;font-size:.72rem!important;color:var(--muted)!important}.github-btn{border:1px solid var(--line)}.github-btn:hover{background:var(--text)!important;color:var(--bg)!important}.additional-card{min-height:170px}

/* Project pages */
.root-checker-hero,.tmm-hero,.eeg-hero,.rooting-hero,.about-hero{position:relative}.root-checker-hero::before,.tmm-hero::before,.eeg-hero::before,.rooting-hero::before{content:"PRODUCT BRIEF";display:block;margin-bottom:1rem;font:600 .65rem "Tomorrow",sans-serif;letter-spacing:.16em;color:var(--muted)}.root-checker-intro,.tmm-intro,.doc-intro-card,.eeg-app,.feature-card,.theme-showcase{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:0!important;box-shadow:var(--shadow)}.eeg-app{padding:clamp(1.25rem,4vw,2.5rem)!important}.eeg-entry{border-color:var(--line)!important}.eeg-difficulty,.hero-badges span{border-radius:0!important;border-color:var(--line)!important;background:var(--surface-2)!important}.eeg-star{color:var(--text)!important}.feature-card{padding:1.35rem!important}.feature-card:hover{transform:translate(-3px,-3px)!important;box-shadow:6px 6px 0 var(--text)!important}.theme-showcase{padding:clamp(1.25rem,4vw,2.5rem)!important}.terminal-preview{border:1px solid var(--line)!important;border-radius:0!important}.terminal-titlebar{border-radius:0!important}.about-page{max-width:1100px!important}.about-hero .hero-image{border-radius:10px!important}.academic-row{gap:clamp(2rem,10vw,7rem)!important}.academic-item{border-top:1px solid var(--line);padding-top:1.25rem;min-width:180px}.score-main,.score-secondary{font-family:"Tomorrow",sans-serif;font-weight:700!important;letter-spacing:-.09em}.future{padding:2rem;border:1px solid var(--line);background:var(--surface)}.error-shell{border-radius:0!important;border:1px solid var(--line)!important;background:var(--surface)!important;box-shadow:10px 10px 0 color-mix(in srgb,var(--text) 22%,transparent)!important}.error-code{font-family:"Tomorrow",sans-serif!important}footer{border-color:var(--line)!important;background:var(--surface);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}footer .socials a{border:1px solid var(--line);padding:.45rem}footer .socials a:hover{background:var(--text);color:var(--bg)}
@media(max-width:700px){.site-header::after{display:none}.hero{margin-top:4.5rem!important}.project-image{height:min(72vw,300px)!important}.primary-btn,.download-btn{width:auto}.root-checker-intro,.tmm-intro{padding:1.25rem!important}.future{padding:1.25rem}blockquote,.rooting-note,.doc-note,.eeg-caution{padding:1rem!important}}

/* Oh My Posh credits section override */
.theme-showcase.credits-section{background:none!important;border:none!important;box-shadow:none!important;padding:0!important}

/* Oh My Posh terminal preview border-radius override */
.omp-page .terminal-preview{border-radius:10px!important}
.omp-page .terminal-titlebar{border-radius:10px 10px 0 0!important}
.omp-page .minima-preview .terminal-titlebar{border-radius:10px 10px 0 0!important}
.omp-page .minima-plus-preview .terminal-titlebar{border-radius:10px 10px 0 0!important}

/* TMM and Root Checker intro section overrides */
.tmm-intro,.root-checker-intro{background:none!important;border:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important;transform:none!important}
.tmm-intro:hover,.root-checker-intro:hover{transform:none!important;border:none!important;box-shadow:none!important}

/* Global image and video border removal */
img,video{border:none!important;box-shadow:none!important}

/* Rounded sci-fi refinements: one radius scale, minimal decoration, touch-friendly controls. */
:root{--ui-radius:20px;--ui-radius-small:14px}
.site-header{border-radius:0 0 var(--ui-radius) var(--ui-radius)!important}.site-header::after,.hero::before,.hero::after,.root-checker-hero::before,.tmm-hero::before,.eeg-hero::before,.rooting-hero::before{display:none!important}
.header-nav,.download-dialog,.project-card,.additional-card,.root-checker-intro,.tmm-intro,.doc-intro-card,.eeg-app,.feature-card,.theme-showcase,.future,.error-shell{border-radius:var(--ui-radius)!important}.theme-showcase.credits-section{border-radius:0!important}
.primary-btn,.download-btn,.copy-command-btn,.details-btn,.secondary-hero-btn,.github-btn,.hero-badges span,.eeg-difficulty{border-radius:var(--ui-radius-small)!important}
.logo-circle,.lamina-media img,.lamina-media video,.root-checker-media,.root-checker-media img,.root-checker-media video,.tmm-media img,.tmm-media video,.eeg-media,.hero-image{border-radius:var(--ui-radius)!important;border:none!important;box-shadow:none!important}
.project-card,.additional-card{overflow:hidden}.project-image{border-radius:var(--ui-radius-small) var(--ui-radius-small) 0 0;overflow:hidden!important}

/* The homepage needs room for its floating logo, without decorative text competing for space. */
.hero{margin-top:10rem!important;border-radius:var(--ui-radius)!important;overflow:visible!important}

/* Download picker */
.download-overlay{background:color-mix(in srgb,#000 62%,transparent)!important;backdrop-filter:blur(12px)!important}.download-dialog{background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:0 24px 80px rgba(0,0,0,.42)!important}.dialog-header{padding:1rem 1.25rem!important;border-color:var(--line)!important}.dialog-header h2{font-size:1rem!important;letter-spacing:.03em}.dialog-body{padding:1.25rem!important}.dialog-links a{border-color:var(--line)!important;border-radius:var(--ui-radius-small)!important;padding:.85rem .9rem!important}.dialog-links a:hover{padding-left:1.1rem!important;background:var(--surface-2)!important}.download-command{border-radius:var(--ui-radius-small)!important;background:var(--surface-2)!important;border-color:var(--line)!important}.dialog-close{width:36px;height:36px;border-radius:50%;border:1px solid var(--line)!important}.dialog-close:hover{background:var(--text);color:var(--bg)}

/* Video player */
.video-player{border:none!important;border-radius:var(--ui-radius)!important;background:#000!important}.video-player__play,.video-player__skip,.video-player__fullscreen{border:1px solid rgba(255,255,255,.38)!important;background:rgba(8,8,8,.72)!important;box-shadow:none!important;backdrop-filter:blur(14px)!important}.video-player__play:hover,.video-player__skip:hover,.video-player__fullscreen:hover{background:#fff!important;color:#000!important;box-shadow:0 0 0 4px rgba(255,255,255,.16)!important}.video-player__progress{border:1px solid rgba(255,255,255,.3)!important;border-radius:var(--ui-radius-small)!important;background:rgba(8,8,8,.72)!important;box-shadow:none!important;backdrop-filter:blur(14px)!important}

@media(max-width:700px){.site-header{border-radius:0 0 var(--ui-radius-small) var(--ui-radius-small)!important}.hero{width:calc(100% - 1.25rem)!important;margin-top:7.5rem!important;padding:6.5rem 1.25rem 1.75rem!important}.logo-circle{width:min(44vw,170px)!important;height:min(44vw,170px)!important}.project-card,.additional-card,.root-checker-intro,.tmm-intro,.doc-intro-card,.eeg-app,.feature-card,.theme-showcase,.future,.error-shell{border-radius:var(--ui-radius-small)!important}.theme-showcase.credits-section{border-radius:0!important}.download-dialog{width:calc(100vw - 1.25rem)!important;max-height:calc(100dvh - 1.25rem)!important;border-radius:var(--ui-radius)!important}.dialog-header,.dialog-body{padding:1rem!important}.dialog-links a{white-space:normal!important}.video-player{border-radius:var(--ui-radius-small)!important}.video-player__center-controls{gap:12px!important}.video-player__play{width:62px!important;height:62px!important;font-size:20px!important}.video-player__skip{width:48px!important;height:48px!important;font-size:14px!important}.video-player__fullscreen{right:12px!important;bottom:12px!important;width:40px!important;height:40px!important}.video-player__progress{right:60px!important;bottom:12px!important;left:12px!important;padding:11px 12px!important}.theme-showcase.credits-section{padding:0!important}}

/* Gaming interface feedback — deliberately no bracketed-title treatment. */
.projects h2::before,.projects h2::after,.additional-stuff h2::before,.additional-stuff h2::after,.lamina-section h2::before,.root-checker-section h2::before,.tmm-section h2::before,.rooting-content h2::before{content:none!important}
@media (hover:hover){
  .project-card,.additional-card,.feature-card,.theme-showcase,.eeg-app{transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s ease,border-color .24s ease,background .24s ease!important}
  .project-card:hover,.additional-card:hover,.feature-card:hover,.theme-showcase:hover,.eeg-app:hover{transform:translateY(-7px)!important;border-color:var(--text)!important;box-shadow:0 0 0 1px var(--text),0 18px 48px color-mix(in srgb,var(--text) 18%,transparent)!important}
  .theme-showcase.credits-section{transform:none!important;border:none!important;box-shadow:none!important}
  .project-card:hover .project-image img{transform:none!important;}
  .additional-card:hover .additional-image img{transform:none!important;}
  .additional-image img,.project-image img{transition:transform .3s cubic-bezier(.2,.8,.2,1),filter .3s ease!important}
  .primary-btn,.download-btn,.copy-command-btn,.details-btn,.secondary-hero-btn{position:relative;isolation:isolate;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease!important}
  .primary-btn::before,.download-btn::before,.copy-command-btn::before,.details-btn::before,.secondary-hero-btn::before{content:"";position:absolute;z-index:-1;inset:0;transform:translateY(105%);background:var(--text);transition:transform .23s cubic-bezier(.2,.8,.2,1)}
  .primary-btn:hover::before,.download-btn:hover::before,.copy-command-btn:hover::before,.details-btn:hover::before,.secondary-hero-btn:hover::before{transform:translateY(0)}
  .primary-btn:hover,.download-btn:hover,.copy-command_btn:hover,.details-btn:hover,.secondary-hero-btn:hover{color:var(--bg)!important;transform:translateY(-3px)!important;box-shadow:0 0 0 1px var(--text),0 9px 24px color-mix(in srgb,var(--text) 25%,transparent)!important}
  .header-nav a:hover{padding-left:1.35rem!important;letter-spacing:.13em}
  .github-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px color-mix(in srgb,var(--text) 18%,transparent)}
}

/* Menu selection marker: the row stays quiet; its leading edge lights up. */
.header-nav a,.dialog-links a{position:relative;border-left:0!important;border-radius:0!important;background:transparent!important;padding-left:1.1rem!important}.header-nav a::before,.dialog-links a::before{content:none!important}.header-nav a::after,.dialog-links a::after{content:"";position:absolute;top:0;bottom:0;left:0;width:3px;background:var(--text);transform:scaleY(0);transform-origin:center;transition:transform .18s ease}
@media (hover:hover){.header-nav a:hover,.dialog-links a:hover{background:var(--surface-2)!important;color:var(--text)!important;padding-left:1.1rem!important}.header-nav a:hover{letter-spacing:.08em!important}.dialog-links a:hover{letter-spacing:.01em!important}.header-nav a:hover::after,.dialog-links a:hover::after{transform:scaleY(1)}}
.header-nav a:focus-visible,.dialog-links a:focus-visible{background:var(--surface-2)!important}.header-nav a:focus-visible::after,.dialog-links a:focus-visible::after{transform:scaleY(1)}

/* Restore the original soft interface feel everywhere; menu markers stay square. */
:root{--ui-radius:24px;--ui-radius-small:16px}
.site-header{border-radius:0 0 var(--ui-radius) var(--ui-radius)!important}.menu-toggle,.secondary-btn,.nav-close{border-radius:var(--ui-radius-small)!important}
.hero,.header-nav,.download-dialog,.project-card,.additional-card,.root-checker-intro,.tmm-intro,.doc-intro-card,.eeg-app,.feature-card,.theme-showcase,.future,.error-shell,.video-player{border-radius:var(--ui-radius)!important}
.primary-btn,.download-btn,.copy-command-btn,.details-btn,.secondary-hero-btn,.github-btn,.hero-badges span,.eeg-difficulty{border-radius:999px!important}
.project-image{border-radius:var(--ui-radius-small) var(--ui-radius-small) 0 0!important}.dialog-links a,.header-nav a{border-radius:0!important}
@media(max-width:700px){.site-header{border-radius:0 0 var(--ui-radius-small) var(--ui-radius-small)!important}.hero,.header-nav,.download-dialog,.project-card,.additional-card,.root-checker-intro,.tmm-intro,.doc-intro-card,.eeg-app,.feature-card,.theme-showcase,.future,.error-shell,.video-player{border-radius:var(--ui-radius-small)!important}}

/* Keep the header deliberately flat and quiet. */
.site-header{border-radius:0!important}.menu-toggle,.secondary-btn,.dialog-close{background:transparent!important}.menu-toggle:hover,.secondary-btn:hover,.dialog-close:hover{background:var(--surface)!important;color:var(--text)!important;box-shadow:none!important;transform:none!important}.menu-toggle:hover span{background:var(--text)!important}.secondary-btn:hover{text-decoration:underline!important;text-underline-offset:4px}.dialog-close{border-color:transparent!important}
.menu-toggle,.menu-toggle:hover,.menu-toggle:focus-visible{border-color:var(--card-border)!important;box-shadow:none!important;background:transparent!important}
.secondary-btn:focus-visible{text-decoration:none!important;background:transparent!important;box-shadow:inset 3px 0 0 var(--text)!important}

/* Scrollable code panels use the same rounded surface as the rest of the UI. */
.lamina-content pre,.tmm-section pre,.rooting-content pre,.tmm-command{border-radius:var(--ui-radius-small)!important;overflow:auto!important}

/* Subtle corners throughout; the profile image remains deliberately circular. */
:root{--ui-radius:10px;--ui-radius-small:8px}
.primary-btn,.download-btn,.copy-command-btn,.details-btn,.secondary-hero-btn,.github-btn,.hero-badges span,.eeg-difficulty{border-radius:var(--ui-radius-small)!important}
footer .socials a{border-radius:var(--ui-radius-small)!important}
.logo-circle{border-radius:50%!important}

/* Footer controls are the rounded, game-like interactive elements. */
footer .socials a{display:grid;place-items:center;width:42px;height:42px;padding:0!important;border-radius:50%!important;border:1px solid var(--line)!important;background:var(--surface)!important;transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,background .2s ease,color .2s ease!important}
@media (hover:hover){footer .socials a:hover{background:var(--text)!important;color:var(--bg)!important;transform:translateY(-4px) scale(1.06)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--text) 12%,transparent),0 10px 22px color-mix(in srgb,var(--text) 22%,transparent)!important}}
