:root {
    --bg: #030008;
    --bg-soft: #090014;
    --accent-yellow: #fff3b0;
    --accent-yellow-strong: rgba(255, 243, 176, 0.95);
    --panel: rgba(155, 92, 255, 0.14);
    --text: #fbf7ff;
    --muted: #c8bbd8;
    --line: rgba(215, 190, 255, 0.22);
    --purple: #9b5cff;
    --purple-hot: #c13cff;
    --cyan: #48f6ff;
    --pink: #ff4fd8;
    --green: #52ffa8;
    --danger: #ff5c9d;
    --shadow: 0 24px 95px rgba(52, 0, 88, 0.55);
    }
    :root {
        --bg: #1a1a2e;
        --bg-soft: #16213e;
        --panel: rgba(100, 100, 150, 0.12);
        --text: #e8e8ff;
        --muted: #a8a8c8;
        --line: rgba(150, 150, 200, 0.2);
        --purple: #7a6fbf;
        --purple-hot: #9d7fbf;
        --cyan: #5dd9ff;
        --pink: #d84aaa;
        --green: #4adb9a;
        --danger: #e84a7a;
        --shadow: 0 24px 95px rgba(30, 20, 60, 0.45);
}
    :root {
        --bg: #1a1a2e;
        --bg-soft: #16213e;
        --panel: rgba(100, 100, 150, 0.12);
        --text: #e8e8ff;
        --muted: #a8a8c8;
        --line: rgba(150, 150, 200, 0.2);
        --purple: #7a6fbf;
        --purple-hot: #9d7fbf;
        --cyan: #5dd9ff;
        --pink: #d84aaa;
        --green: #4adb9a;
        --danger: #e84a7a;
        --shadow: 0 24px 95px rgba(30, 20, 60, 0.45);
    }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Ubuntu, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 15%, rgba(90, 90, 100, 0.06), transparent 24rem),
        radial-gradient(circle at 88% 54%, rgba(72, 246, 255, 0.04), transparent 28rem),
        linear-gradient(135deg, #000, #040405 48%, #000);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.cyber-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image: linear-gradient(rgba(110,128,160,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(72,246,255,.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
    animation: gridDrift 18s linear infinite;
}
.scanline { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.02), transparent); background-size: 100% 6px; opacity: .06; }
.orb { position: fixed; width: 24rem; height: 24rem; pointer-events: none; border-radius: 999px; filter: blur(72px); opacity: .42; }
.orb-one { top: 9rem; left: -8rem; background: rgba(90, 100, 130, 0.22); animation: floatOrb 11s ease-in-out infinite; }
.orb-two { right: -7rem; bottom: 6rem; background: rgba(72, 246, 255, 0.10); animation: floatOrb 13s ease-in-out infinite reverse; }
.nerves {
    position: fixed;
    inset: -20vh -10vw;
    pointer-events: none;
    z-index: -95;
    opacity: .42;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.05), transparent 22%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.04), transparent 20%),
        radial-gradient(circle at 55% 68%, rgba(255,255,255,.03), transparent 18%),
        repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.035) 18px 19px, transparent 19px 42px),
        repeating-linear-gradient(25deg, transparent 0 28px, rgba(72,246,255,.025) 28px 29px, transparent 29px 64px);
    filter: blur(0.2px);
    mix-blend-mode: screen;
    animation: nervesDrift 18s linear infinite alternate;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.05rem 1rem;
    backdrop-filter: blur(18px);
}
.brand, .site-nav { display: flex; align-items: center; gap: .7rem; }
.brand { font-weight: 900; letter-spacing: -.02em; color: #000; text-shadow: none; }
.brand span { display: inline-block; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(0,0,0,.30); border-radius: .85rem; color: #000; background: linear-gradient(145deg, rgba(246,246,246,.98), rgba(210,210,210,.96)); box-shadow: 0 0 18px rgba(0,0,0,.08), inset 0 0 14px rgba(255,255,255,.28); }
.brand-box { padding: .18rem; }
.brand-box path { filter: none; }
.brand-box rect { shape-rendering: geometricPrecision; }
.hamburger-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.05rem;
    padding: .35rem .5rem;
    z-index: 70;
}
.site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0 1rem;
    background: rgba(4, 6, 9, .96);
    box-shadow: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity .24s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .24s;
    z-index: 65;
    will-change: opacity, visibility;
}
.site-nav::after {
    display: none;
}
.site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .24s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
    will-change: opacity, visibility;
}
.site-nav a {
    position: relative;
    display: flex;
    gap: .48rem;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: .6rem 0;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid rgba(255, 177, 186, 0.3);
    color: #ffb1ba;
    font-size: 1rem;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    text-align: center;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    white-space: nowrap;
    will-change: border-color, color;
}
.site-nav a::before {
    display: none;
}
.site-nav a:hover {
    color: #ffd0d5;
    background: transparent;
    border-bottom-color: rgba(255, 177, 186, 0.7);
    box-shadow: none;
    transform: none;
}
.site-nav a:active {
    transform: none;
    transition-duration: .1s;
}

/* Plain menu options: no underline or click effect */
.site-nav a::after {
    display: none;
}

/* Samples and project cards: use the same subtle invisible-box treatment */
.sample-card,
.project-card {
    border: 1px solid rgba(255, 116, 186, .28);
    background: transparent;
    border-radius: .9rem;
    box-shadow:
        0 0 0 1px rgba(255, 116, 186, .10),
        0 0 10px rgba(255, 78, 168, .22),
        0 0 20px rgba(255, 78, 168, .16),
        inset 0 0 0 1px rgba(255, 116, 186, .08);
    position: relative;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .22s ease, border-color .18s ease;
}

/* dark pink glow frame */
.sample-card::before,
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 96, 177, .90), rgba(154, 29, 94, .38), rgba(255, 96, 177, .90));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    box-shadow:
        0 0 14px rgba(255, 72, 160, .28),
        0 0 26px rgba(255, 72, 160, .18),
        0 0 40px rgba(255, 72, 160, .12);
    opacity: .95;
    pointer-events: none;
}

/* hover/focus state: stronger pink glow */
.sample-card:hover::before,
.project-card:hover::before,
.sample-card:focus-within::before,
.project-card:focus-within::before {
    opacity: 1;
}

.sample-card:hover,
.project-card:hover,
.sample-card:focus-within,
.project-card:focus-within {
    transform: translateY(-8px);
    border-color: rgba(255, 112, 185, .58);
    box-shadow:
        0 0 0 1px rgba(255, 112, 185, .22),
        0 0 16px rgba(255, 78, 168, .34),
        0 0 30px rgba(255, 78, 168, .24),
        0 14px 34px rgba(0,0,0,.34),
        inset 0 0 0 1px rgba(255, 116, 186, .12);
}

/* Samples: improved layout and header accent */
.sample-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1rem;
}
.sample-card .box-header-mark {
    position: relative;
    z-index: 3;
    color: var(--pink);
    font-weight: 700;
}
.sample-media video {
    width: 100%;
    border-radius: .7rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    background: #000;
}

/* Slight scale on hover for samples for a more tactile feel */
.sample-card:hover,
.sample-card:focus-within {
    transform: translateY(-10px) scale(1.01);
}

/* subtle yellow accent for header mark inside samples */
.sample-card .box-header-mark,
.project-card .box-header-mark {
    color: rgba(255, 132, 201, .98);
    text-shadow: 0 0 8px rgba(255, 96, 177, 0.34);
}
}

body.menu-open {
    overflow: hidden;
    scroll-behavior: auto;
}

/* On mobile, preserve scroll position when menu closes */
@media (max-width: 768px) {
    body.menu-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
}
.section-wrap { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.6rem 1rem 1.2rem 1rem; border-top: 1px solid rgba(120,234,255,.12); }
.hero-simple { display: block; min-height: auto; padding-top: 1.8rem; overflow: hidden; }
.hero-simple::after { content: '★'; position: absolute; right: 8%; top: 34%; display: grid; place-items: center; width: 6rem; height: 6rem; border-radius: 1.7rem; color: #fff; background: radial-gradient(circle at 35% 20%, #fff, #c9a5ff 22%, var(--purple) 55%, #120021 100%); font-size: 2.8rem; box-shadow: 0 0 70px rgba(155,92,255,.44), 0 0 64px rgba(72,246,255,.16); animation: starFloatSolo 4s ease-in-out infinite, starPulse 2.4s ease-in-out infinite; opacity: .82; }
.hero-simple::before { content: ''; position: absolute; right: 3%; top: 24%; width: 18rem; height: 18rem; border-radius: 999px; border: 1px dashed rgba(72,246,255,.12); box-shadow: 0 0 62px rgba(155,92,255,.12); animation: starSpin 20s linear infinite; }
.eyebrow, .section-kicker {
    margin: 0 0 0.5rem 0;
    color: #c9ff66;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .65rem;
    text-shadow: 0 0 8px rgba(201,255,102,.48), 0 0 16px rgba(120,234,255,.22);
}
h1, h2, h3 { font-family: Ubuntu, "Space Grotesk", Inter, sans-serif; line-height: 1; letter-spacing: -.045em; }
h1 {
    max-width: 900px;
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    color: #ffffff;
    text-shadow: 0 0 22px rgba(155,92,255,.62), 0 0 44px rgba(72,246,255,.22);
}
h1::first-line { color: #f5edff; }
.bio-line { margin: 0.6rem 0 0; color: #efe4ff; font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 900; text-shadow: 0 0 18px rgba(155,92,255,.35); }
.hero-description, .glass-panel p, .contact-section p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.hero-description { max-width: 690px; }
.hero-tagline { max-width: 32rem; }
.contact-section .section-kicker {
    color: #c9ff66;
    text-shadow: 0 0 12px rgba(201,255,102,.62), 0 0 24px rgba(120,234,255,.28);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: 0 1.25rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 900; transition: .2s ease; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: 0 1.25rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-family: Ubuntu, Inter, sans-serif; transition: .2s ease; }
.btn.primary { color: #f8fbff; background: linear-gradient(180deg, rgba(22,24,32,.98), rgba(7,9,14,.98)); border-color: rgba(120,234,255,.22); box-shadow: 0 0 0 1px rgba(120,234,255,.08), 0 16px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08); }
.btn.ghost { color: #dbe8ff; background: linear-gradient(180deg, rgba(14,16,24,.94), rgba(8,10,16,.94)); border-color: rgba(120,234,255,.14); box-shadow: 0 0 0 1px rgba(120,234,255,.05), 0 12px 22px rgba(0,0,0,.24); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(120,234,255,.18), 0 18px 34px rgba(0,0,0,.34), 0 0 22px rgba(120,234,255,.08); }
.glitch-cap { display: none; }
.glitch-click {
    position: relative;
    isolation: isolate;
}
.glitch-click::before,
.glitch-click::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}
.glitch-click::before {
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,.12) 0 2px,
        rgba(0,0,0,.0) 2px 4px
    );
    mix-blend-mode: screen;
    transform: translateX(-1px);
}
.glitch-click::after {
    background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(0,0,0,.16));
    mix-blend-mode: difference;
    transform: translateX(1px);
}
.glitch-click.glitch-active::before,
.glitch-click.glitch-active::after {
    opacity: .42;
    animation: glitchFlicker 120ms steps(2, end) 1;
}
.glitch-click.glitch-active {
    animation: clickFlash 120ms linear 1;
}

/* Preserve box-module labels when glitch overlay is active */
.box-module.glitch-click::after,
.box-module.glitch-active::after,
.box-module.glitch-click::before,
.box-module.glitch-active::before {
    background: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    z-index: 999 !important;
}
.glass-panel, .skill-card, .project-card, .contact-grid a, .admin-panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(155,92,255,.08), rgba(7,0,16,.28)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; }
.split-section h2, .contact-section h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.glass-panel { padding: 2rem; border-radius: 1.5rem; }
.circuit-panel { position: relative; overflow: hidden; }
.circuit-panel:after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border: 1px solid rgba(72,246,255,.22); border-radius: 2rem; transform: rotate(18deg); box-shadow: inset 0 0 40px rgba(72,246,255,.08), 0 0 40px rgba(155,92,255,.14); }
.about-blackbox { align-items: start; }
.about-head .section-kicker {
    letter-spacing: .22em;
    color: #c9ff66;
    text-shadow: 0 0 12px rgba(201,255,102,.62), 0 0 24px rgba(120,234,255,.28);
}
.about-panel {
    border: 1px solid rgba(130, 150, 175, .28);
    background: linear-gradient(180deg, rgba(12,13,18,.98), rgba(5,6,10,.98));
    border-radius: .3rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.about-panel-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 2rem;
    padding: .45rem .75rem;
    border-bottom: 1px solid rgba(130, 150, 175, .22);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.1));
}
.about-dot {
    display: none;
}
.about-panel-label {
    display: none;
}
.about-panel-top::before {
    content: none;
}
.box-header-mark {
    position: absolute;
    top: .34rem;
    left: .75rem;
    z-index: 2;
    color: rgba(201, 255, 102, 0.82);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .12rem;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}
.about-panel-inner {
    padding: 1.25rem 1.35rem 1.4rem;
}
.about-panel-inner p {
    margin: 0;
    color: #aab2c2;
    font-size: 1.03rem;
    line-height: 1.78;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(290px, .95fr);
    gap: 1.1rem;
    align-items: center;
}
.about-copy {
    max-width: 100%;
}
.about-copy h1 {
    max-width: 11ch;
    margin-bottom: .4rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
}
.about-lead {
    max-width: 34rem;
    margin-bottom: .85rem;
    font-size: clamp(1rem, 1.9vw, 1.2rem);
    line-height: 1.35;
}
.about-invisible-box {
    max-width: 36rem;
    padding: .95rem 1rem;
    border: 1px solid rgba(130, 150, 175, .10);
    border-radius: .9rem;
    background: rgba(0,0,0,.16);
    color: var(--muted);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.about-invisible-box p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
}
.about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .85rem;
}
.about-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 .8rem;
    border-radius: 999px;
    border: 1px solid rgba(130,150,175,.16);
    background: rgba(8,8,10,.78);
    color: var(--cyan);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.about-media-frame {
    justify-self: center;
    width: min(100%, 360px);
    padding: 1rem;
    border: 1px solid rgba(130,150,175,.14);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(8,8,10,.96), rgba(2,2,4,.96));
    box-shadow: 0 18px 42px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.03);
}
.about-media-frame .profile-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
}

main {
    padding-top: 1.2rem;
}

.hero-copy h1,
.about-copy h1,
.contact-section h2,
.section-title {
    text-shadow: 0 0 14px rgba(155,92,255,.34), 0 0 28px rgba(72,246,255,.14);
}

/* Shared blackbox header strip for content boxes */
.box-module {
    position: relative;
    overflow: hidden;
}
.box-module::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 2rem;
    border-bottom: 1px solid rgba(130, 150, 175, .16);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.1));
    pointer-events: none;
    z-index: 1;
}
.box-module::after {
    display: none;
}

.skill-card.box-module,
.project-card.box-module {
    padding-top: 2.7rem;
}

/* Give contact cards extra top space so header mark doesn't overlap content */
.contact-grid a.box-module {
    padding-top: 3.4rem;
}

.skill-card.box-module .skill-icon,
.project-card.box-module .project-meta,
.contact-grid a.box-module span,
.contact-grid a.box-module strong {
    position: relative;
    z-index: 3;
}
.skill-card.box-module .skill-icon,
.project-card.box-module .project-meta,
.contact-grid a.box-module .contact-icon {
    margin-top: .25rem;
}
.section-title { margin: 0 0 2rem; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-head .section-title { margin: 0; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.samples-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.skill-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .6rem;
    padding: 1rem;
    border-radius: 1rem;
    border-left: 1px solid rgba(120,234,255,.12);
    animation: boxFloat 6s ease-in-out infinite;
}
.project-card, .contact-grid a { display: flex; flex-direction: column; padding: 1rem; border-radius: 1rem; border-left: 1px solid rgba(120,234,255,.12); animation: boxFloat 6s ease-in-out infinite; }
.skill-card:nth-child(3n+1), .project-card:nth-child(3n+1), .contact-grid a:nth-child(3n+1) { border-left: none; }
.project-card:nth-child(n+4) { border-top: 1px solid rgba(120,234,255,.12); }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.contact-grid a {
    border-left: none;
    border-top: none;
    position: relative;
}
.contact-grid a:nth-child(1) { border-top: none; }
.contact-link {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 0;
    padding-top: 0;
}
.contact-card-top {
    position: relative;
    min-height: 1.1rem;
    padding: .05rem 0 0;
    border-bottom: 1px solid rgba(130, 150, 175, .16);
    background: transparent;
}
.contact-card-dots {
    position: absolute;
    left: .75rem;
    top: .12rem;
    display: none;
    gap: .28rem;
}
.contact-card-dots i {
    width: .28rem;
    height: .28rem;
    border-radius: 999px;
    background: rgba(200, 210, 225, 0.7);
    display: block;
}
.contact-card-title {
    position: absolute;
    left: 1.2rem;
    top: -.03rem;
    color: rgba(201, 255, 102, 0.82);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1rem;
    line-height: 1;
    text-shadow: 0 0 6px rgba(201,255,102,.24), 0 0 12px rgba(120,234,255,.16);
    white-space: nowrap;
}
.contact-card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .75rem .95rem .85rem;
}
.contact-card-body span:last-child {
    white-space: nowrap;
}
.contact-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .65rem;
    background: rgba(155,92,255,.16);
    color: var(--cyan);
    flex: 0 0 auto;
    box-shadow: 0 0 18px rgba(155,92,255,.12);
}
.contact-icon svg {
    width: 1rem;
    height: 1rem;
}
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.4s; }
.skill-card:nth-child(4) { animation-delay: 0.6s; }
.skill-card:nth-child(5) { animation-delay: 0.8s; }
.project-card:nth-child(2) { animation-delay: 0.3s; }
.contact-grid a:nth-child(2) { animation-delay: 0.2s; }
.contact-grid a:nth-child(3) { animation-delay: 0.4s; }
.skill-card h3 {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -.03em;
    line-height: 1.1;
}
.project-card h3 { margin: .7rem 0; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.1; }
.skill-card .skill-icon {
    grid-column: 1;
    grid-row: 1;
    flex: 0 0 auto;
    margin: 0;
}
.skill-card p {
    grid-column: 1 / -1;
    margin: 0;
}
.skill-card small { grid-column: 1 / -1; display: inline-flex; margin-top: 0; color: var(--cyan); font-weight: 900; }
.skill-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .9rem; background: transparent; color: var(--cyan); box-shadow: none; }
.skill-card.muted { opacity: .78; }
.project-meta { display: flex; justify-content: space-between; gap: .6rem; color: var(--cyan); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.holo-card { position: relative; overflow: hidden; }
.holo-card:after { content: ''; position: absolute; inset: -80% -20%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.12), transparent); transform: rotate(12deg); animation: shineSweep 7s ease-in-out infinite; }
.card-link, .coming-soon { position: relative; z-index: 1; display: inline-flex; margin-top: 1rem; color: var(--cyan); font-weight: 900; }
.coming-soon { color: var(--muted); }
.sample-card .project-meta {
    margin-bottom: .4rem;
}
.sample-media {
    margin: .35rem 0 .85rem;
    border-radius: .9rem;
    overflow: hidden;
    border: 1px solid rgba(130, 150, 175, .18);
    background: rgba(0, 0, 0, .15);
    width: 100%;
    height: 18rem;
}
.sample-media video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transform: none !important;
    background: #000;
}
.contact-section { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.contact-description-text { max-width: 600px; width: 100%; margin: 0 auto .2rem; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: 0.95rem; line-height: 1.55; text-align: center; }
.contact-description-line { width: min(600px, 100%); height: 1px; margin: .15rem auto .35rem; background: linear-gradient(90deg, transparent, rgba(130, 150, 175, .24), rgba(201, 255, 102, .32), rgba(130, 150, 175, .24), transparent); opacity: .9; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; max-width: 600px; width: 100%; margin: 0 auto; }
.contact-grid a {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
}
.contact-grid span { color: var(--muted); }
.contact-grid strong { color: var(--cyan); }
.contact-grid {
    width: 100%;
    max-width: none;
    justify-self: center;
}

/* Make contact cards header mark match other boxes (uppercase, aligned) */
.contact-grid a .box-header-mark {
    text-transform: uppercase;
    top: .34rem;
    left: .75rem;
    font-size: .72rem;
    letter-spacing: .1rem;
}

@media (min-width: 981px) {
    .contact-card-body {
        justify-content: flex-start;
        padding: 1rem 1.15rem 1.1rem;
    }

    .contact-card-title {
        left: 1.95rem;
    }
}
code { color: var(--cyan); }
.site-footer { position: relative; width: calc(100% - 2rem); max-width: 1180px; margin: 0 auto; padding: 0.5rem 0 1rem; color: var(--muted); border-top: none; }
@keyframes starSpin { to { transform: rotate(1turn); } }
@keyframes starPulse { 0%,100% { filter: drop-shadow(0 0 8px rgba(155,92,255,.45)); transform: scale(1); } 50% { filter: drop-shadow(0 0 24px rgba(72,246,255,.75)); transform: scale(1.08); } }
@keyframes starFloat { 0%,100% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-12px); } }
@keyframes starFloatSolo { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes heroProfileFloat { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(-14px); } }
@keyframes boxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes cardProfileFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes gridDrift { to { background-position: 72px 72px; } }
@keyframes floatOrb { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(2rem,-1.5rem,0); } }
@keyframes nervesDrift { 0% { transform: translate3d(-1%, -1%, 0) scale(1); } 50% { transform: translate3d(1.5%, 1%, 0) scale(1.03); } 100% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.01); } }
@keyframes clickFlash {
    0% { filter: grayscale(0) contrast(1); }
    50% { filter: grayscale(1) contrast(1.08); }
    100% { filter: grayscale(0) contrast(1); }
}
@keyframes glitchFlicker {
    0% { clip-path: inset(0 0 0 0); transform: translateX(-1px); }
    35% { clip-path: inset(28% 0 40% 0); transform: translateX(1px); }
    70% { clip-path: inset(52% 0 16% 0); transform: translateX(-1px); }
    100% { clip-path: inset(0 0 0 0); transform: translateX(0); }
}
@keyframes shineSweep { 0%,45% { transform: translateX(-65%) rotate(12deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: translateX(65%) rotate(12deg); opacity: 0; } }
@media (max-width: 980px) { .hero-simple { min-height: auto; padding-top: 2.8rem; } .split-section, .contact-section { grid-template-columns: 1fr; } .hero-simple::after { right: 4%; top: 8rem; width: 4.8rem; height: 4.8rem; font-size: 2.2rem; opacity: .52; } .hero-simple::before { right: -5rem; top: 5rem; } .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; } .projects-grid, .samples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; } .skill-card:nth-child(2n+1), .project-card:nth-child(2n+1) { border-left: none; } .skill-card:nth-child(n+3), .project-card:nth-child(n+3) { border-top: 1px solid rgba(120,234,255,.12); } .section-title { font-size: clamp(1.8rem, 5vw, 3.1rem); } .section-kicker, .eyebrow { font-size: .66rem; letter-spacing: .12em; } .box-header-mark, .contact-grid a .box-header-mark { font-size: .66rem; letter-spacing: .09rem; } .contact-card-title { font-size: .62rem; letter-spacing: .08rem; } }
@media (max-width: 980px) {
    .hero-simple {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hero-profile {
        justify-self: stretch;
        width: 100%;
        max-width: 320px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-panel {
        margin-top: 0.3rem;
    }
    .about-panel-inner {
        padding: 0.8rem 0.8rem 1rem;
    }
}
@media (max-width: 980px) {
    .contact-section {
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
        max-width: 28rem;
        margin: 0 auto;
    }

    .contact-grid a {
        width: 100%;
    }
}
@media (max-width: 768px) { .site-header { flex-direction: column; } .section-wrap { padding: 2.8rem 0; } .hero-simple { padding-top: 2.2rem; } .skills-grid, .projects-grid, .samples-grid { grid-template-columns: 1fr; } .contact-grid { gap: .5rem; } .skill-card, .project-card { border-left: none !important; border-top: 1px solid rgba(120,234,255,.12); } .skill-card:first-child, .project-card:first-child { border-top: none; } .contact-grid a + a::before { top: -.82rem; } h1 { font-size: 3.3rem; } .hero-simple::after { top: 6.5rem; right: .5rem; width: 3.7rem; height: 3.7rem; font-size: 1.7rem; opacity: .34; } }

/* --- About separators, centered tabs, and reduced effects --- */
/* Add subtle horizontal rules between paragraphs in About body */
.about-invisible-box p + p {
    border-top: 1px solid rgba(130,150,175,0.06);
    padding-top: .9rem;
    margin-top: .9rem;
}

/* Add small vertical separators between the about pills */
.about-pills span + span {
    position: relative;
    padding-left: 1rem;
}
.about-pills span + span::before {
    content: '';
    position: absolute;
    left: .4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 56%;
    background: rgba(255,255,255,0.04);
    border-radius: 1px;
}

/* Center the menu lines vertically with line separators */
@media (max-width: 980px) {
    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0 2rem;
    }
    .site-nav.open {
        justify-content: center;
        padding-top: 0;
        gap: 0;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }
    .site-nav a {
        width: auto !important;
        min-width: auto !important;
        padding: .6rem 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 2px solid rgba(255, 177, 186, 0.3) !important;
        box-shadow: none !important;
        font-size: .95rem !important;
    }
}

/* Reduce hover transforms and strong shine effects on desktop and mobile */
.sample-card:hover,
.project-card:hover,
.sample-card:focus-within,
.project-card:focus-within {
    transform: none !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.38) !important;
    border-color: rgba(255,112,185,.22) !important;
}

/* Tone down holo shine animation for calmer appearance */
.holo-card:after { animation: none !important; opacity: .06 !important; }

/* Make hover/focus transitions smoother and less jumpy */
.sample-card, .project-card { transition: box-shadow .28s ease, border-color .22s ease; }

/* Prevent cards from shifting when the JS click-glitch classes are applied */
.box-module.glitch-click,
.box-module.glitch-active,
.project-card.glitch-click,
.project-card.glitch-active,
.sample-card.glitch-click,
.sample-card.glitch-active,
.skill-card.glitch-click,
.skill-card.glitch-active {
    animation: none !important;
    transform: none !important;
}

/* Also prevent holo shine animation from causing jumps when clicked */
.holo-card.glitch-click:after,
.holo-card.glitch-active:after {
    animation: none !important;
    opacity: .04 !important;
}


/* --- Overrides: make About body plain and menu links tab-like --- */
/* Remove the boxed look around the About body text */
.about-invisible-box {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
}
.about-invisible-box p {
    margin: 0 0 0.6rem 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Make mobile/overlay menu items display as lines with separators */
.site-nav {
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    gap: 0;
    flex-direction: column;
    flex-wrap: nowrap;
}
.site-nav a {
    width: auto !important;
    min-width: auto !important;
    padding: 1rem 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(255, 177, 186, 0.3) !important;
    box-shadow: none !important;
    color: #ffb1ba !important;
    font-size: 1.05rem !important;
    display: flex !important;
    justify-content: center;
    text-align: center;
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: all .2s cubic-bezier(.4, 0, .2, 1) !important;
}
.site-nav a:hover, .site-nav a:focus {
    background: transparent !important;
    border-bottom-color: rgba(255, 177, 186, 0.7) !important;
    box-shadow: none !important;
    color: #ffd0d5 !important;
    outline: none !important;
    transform: none !important;
}
.site-nav a:active {
    transform: none !important;
    transition-duration: .1s !important;
}

/* When menu open, keep items centered */
.site-nav.open { 
    gap: 0;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

@media (max-width: 980px) {
    .site-nav a { 
        padding: 1rem 0 !important; 
        font-size: 1.05rem !important;
        border-bottom: 2px solid rgba(255, 177, 186, 0.3) !important;
    }
}

@media (max-width: 768px) {
    .site-nav {
        gap: 1.2rem;
        flex-direction: column;
    }

    .site-nav a {
        color: #ffb1ba !important;
        padding: .8rem 1.4rem !important;
        font-size: 1rem !important;
        text-shadow: none !important;
        letter-spacing: .01em;
    }

    .site-nav a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        gap: .6rem;
    }

    .contact-link {
        padding: .12rem 0 0 !important;
    }

    .contact-card-top {
        min-height: .95rem;
        padding: .02rem 0 0;
    }

    .contact-card-dots {
        left: .6rem;
        top: .08rem;
    }

    .contact-card-title {
        left: 1.7rem;
        font-size: .74rem;
        letter-spacing: .12rem;
    }

    .contact-card-body {
        justify-content: flex-start;
        gap: .65rem;
        padding: .65rem .95rem .8rem;
    }

    .contact-icon {
        width: 2.15rem;
        height: 2.15rem;
    }
}

@media (max-width: 768px) {
    .brand {
        animation: logoMobileMotion 3.8s ease-in-out infinite;
    }
    .brand span {
        animation: logoTextFlicker 5.2s ease-in-out infinite;
    }
    .sample-media {
        height: clamp(10.25rem, 58vw, 13.5rem);
    }
}

@keyframes logoMobileMotion {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.01); }
}

@keyframes logoTextFlicker {
    0%, 92%, 100% { opacity: 1; filter: none; }
    94% { opacity: .88; filter: grayscale(1) contrast(1.2); }
    96% { opacity: 1; filter: none; }
}


/* Profile image and lower-page stability refinements */
.hero-simple {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    gap: 3rem;
    align-items: center;
}
.hero-profile {
    position: relative;
    justify-self: end;
    width: min(100%, 380px);
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(155,92,255,.30);
    border-radius: 2.2rem;
    background: linear-gradient(180deg, rgba(155,92,255,.14), rgba(5,0,15,.66));
    box-shadow: 0 0 90px rgba(155,92,255,.24), inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter: blur(20px);
    animation: starFloatSolo 5.5s ease-in-out infinite;
    overflow: visible;
}
.hero-profile::before,
.hero-profile::after {
    content: '✦';
    position: absolute;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(72,246,255,.72);
    animation: starFloatSolo 4.5s ease-in-out infinite;
}
.hero-profile::before { right: -1.1rem; top: 18%; }
.hero-profile::after { left: -1rem; bottom: 22%; color: var(--purple-hot); animation-delay: -1.4s; }
.profile-ring {
    display: grid;
    place-items: center;
    width: 10.5rem;
    height: 10.5rem;
    margin: 0 auto 1rem;
    border-radius: 2.2rem;
    /* dark pink / near-black profile ring */
    background: radial-gradient(circle at 35% 20%, #070607 0%, #070607 40%, #7a0033 68%, #1a0505 100%);
    box-shadow: 0 0 48px rgba(122,0,51,0.55), 0 0 64px rgba(0,0,0,0.6);
    overflow: visible;
    animation: starFloatSolo 4s ease-in-out infinite;
}
.profile-star { color: #fff; font-size: 4.4rem; text-shadow: 0 0 20px rgba(255,255,255,.55); }
.profile-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-caption { text-align: center; }
.profile-caption strong { display: block; font-size: 1.45rem; color: var(--text); }
.profile-caption span { display: block; margin-top: .35rem; color: var(--muted); font-size: .93rem; }
.project-card, .skill-card, .contact-grid a { min-height: 0; }
.card-link:focus-visible, .btn:focus-visible, .site-nav a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
@media (max-width: 980px) {
    .hero-simple { grid-template-columns: 1fr; gap: 2rem; }
    .hero-profile { justify-self: start; width: min(100%, 280px); }
}
@media (max-width: 640px) {
    .profile-ring { width: 8rem; height: 8rem; border-radius: 1.6rem; }
    .profile-star { font-size: 3.3rem; }
    .sample-media {
        height: 10.75rem;
    }
}

/* Profile cleanup and cursor-following snowflakes */
.hero-simple::before,
.hero-simple::after {
    display: none !important;
}
.hero-profile {
    position: relative;
    padding: 1.18rem 1rem 1.08rem;
    border: 1px solid rgba(130,150,175,.26);
    border-radius: 1.85rem;
    background: linear-gradient(180deg, rgba(12,13,18,.98), rgba(5,6,10,.98));
    box-shadow: 0 18px 42px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.03);
    overflow: visible;
}
.hero-profile::before,
.hero-profile::after {
    display: block !important;
    pointer-events: none;
}
.hero-profile::before {
    content: 'PROFILE';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: .95rem;
    padding-left: 1.95rem;
    border-bottom: 1px solid rgba(130,150,175,.16);
    border-top-left-radius: 1.85rem;
    border-top-right-radius: 1.85rem;
    font-size: .61rem;
    line-height: .95rem;
    letter-spacing: .11em;
    color: rgba(188,200,220,.66);
    font-weight: 700;
    background:
        radial-gradient(circle at .58rem .46rem, rgba(200,210,225,.34) 0 .14rem, transparent .15rem),
        radial-gradient(circle at .98rem .46rem, rgba(200,210,225,.26) 0 .14rem, transparent .15rem),
        radial-gradient(circle at 1.38rem .46rem, rgba(200,210,225,.2) 0 .14rem, transparent .15rem),
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08));
}
.hero-profile::after {
    content: '';
    left: 1.15rem;
    right: 1.15rem;
    top: .44rem;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120,234,255,.06), rgba(120,234,255,.32), rgba(120,234,255,.06));
    box-shadow: 0 0 12px rgba(120,234,255,.16);
}
.profile-ring {
    background: transparent;
    animation: none;
}
.profile-ring.has-photo {
    border: 1px solid rgba(215,190,255,.28);
    box-shadow: 0 0 34px rgba(155,92,255,.22), 0 0 22px rgba(72,246,255,.08);
}
.profile-ring.has-placeholder {
    background: linear-gradient(135deg, rgba(155,92,255,.22), rgba(72,246,255,.10));
    box-shadow: 0 0 32px rgba(155,92,255,.22);
}
.profile-photo {
    border-radius: inherit;
}
.profile-initials {
    color: #fff;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -.08em;
    text-shadow: 0 0 24px rgba(72,246,255,.55);
}
.cursor-snowflake {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    pointer-events: none;
    color: rgba(255,255,255,.96);
    font-size: var(--snow-size, 14px);
    line-height: 1;
    text-shadow: 0 0 8px rgba(255,255,255,.75), 0 0 16px rgba(72,246,255,.82), 0 0 24px rgba(155,92,255,.62);
    transform: translate(-50%, -50%) rotate(0deg);
    animation: cursorSnowflakeFall var(--snow-duration, 900ms) ease-out forwards;
    will-change: transform, opacity;
}
@keyframes cursorSnowflakeFall {
    0% {
        opacity: .98;
        transform: translate(-50%, -50%) scale(.85) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--snow-drift-x, 0px)), calc(-50% + var(--snow-drift-y, 42px))) scale(.2) rotate(var(--snow-rotation, 160deg));
    }
}
@media (prefers-reduced-motion: reduce) {
    .cursor-snowflake { display: none; }
}

/* Circular profile picture with animated loading ring */
.profile-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 10.75rem;
    height: 10.75rem;
    margin: 0 auto 1.05rem;
    border-radius: 50% !important;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    animation: profileCircleFloat 4.2s ease-in-out infinite;
    isolation: isolate;
}
.profile-ring::before {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    z-index: -2;
    /* subtle dark pink rotating ring */
    background: conic-gradient(from 0deg, rgba(0,0,0,0) 0 10%, rgba(90,8,30,0.85) 12%, rgba(122,0,51,0.95) 36%, rgba(60,6,10,0.7) 60%, rgba(0,0,0,0) 100%);
    box-shadow: 0 0 28px rgba(122,0,51,0.36), 0 0 44px rgba(0,0,0,0.55);
    animation: profileLoadingSpin 2.1s linear infinite;
}
.profile-ring::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    z-index: -3;
    background: radial-gradient(circle, rgba(122,10,40,0.34) 0 28%, rgba(30,10,12,0.22) 48%, transparent 72%);
    filter: blur(10px);
    opacity: .88;
    animation: profileHaloPulse 2.8s ease-in-out infinite;
}

/* moving background glows */
body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -100;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .3;
}
body::before {
    background: radial-gradient(40rem 40rem at 10% 20%, rgba(50, 80, 120, 0.08), transparent 30%);
    transform: translateZ(0);
    animation: glowMove 22s linear infinite alternate;
}
body::after {
    background: radial-gradient(36rem 36rem at 90% 80%, rgba(40, 100, 140, 0.06), transparent 28%);
    transform: translateZ(0);
    animation: glowMoveAlt 28s linear infinite alternate-reverse;
}

@keyframes glowMove {
    0% { transform: translate3d(-6vw, -2vh, 0) scale(1); }
    50% { transform: translate3d(6vw, 8vh, 0) scale(1.05); }
    100% { transform: translate3d(-4vw, -6vh, 0) scale(0.98); }
}

@keyframes glowMoveAlt {
    0% { transform: translate3d(6vw, 6vh, 0) scale(1); }
    50% { transform: translate3d(-8vw, -6vh, 0) scale(1.06); }
    100% { transform: translate3d(8vw, 4vh, 0) scale(0.96); }
}

/* snowflake cursor / touch visuals */
.cursor-snowflake {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: var(--snow-size, 14px);
    line-height: 1;
    transform: translate(-50%, -50%) rotate(var(--snow-rotation, 0deg));
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
    animation: snowFall var(--snow-duration, 1000ms) linear forwards;
    will-change: transform, opacity;
}

@keyframes snowFall {
    to {
        transform: translate(calc(-50% + var(--snow-drift-x)), calc(-50% + var(--snow-drift-y))) rotate(calc(var(--snow-rotation)));
        opacity: 0;
    }
}
.profile-ring.has-photo .profile-photo,
.profile-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50% !important;
    border: 3px solid rgba(95,10,10,0.95);
    background: rgba(8,6,8,0.92);
    box-shadow: inset 0 0 18px rgba(80,8,8,0.12), 0 0 28px rgba(60,6,6,0.32);
}
.profile-ring.has-placeholder {
    background: transparent !important;
}
.profile-ring.has-placeholder .profile-initials,
.profile-initials {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.72);
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.30), rgba(155,92,255,.72) 42%, rgba(5,0,15,.96) 100%);
}
@keyframes profileLoadingSpin {
    to { transform: rotate(360deg); }
}
@keyframes profileCircleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.025); }
}
@keyframes profileHaloPulse {
    0%, 100% { opacity: .55; transform: scale(.95); }
    50% { opacity: .95; transform: scale(1.08); }
}
@media (max-width: 768px) {
    .profile-ring {
        width: 8.35rem;
        height: 8.35rem;
        border-radius: 50% !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .profile-ring,
    .profile-ring::before,
    .profile-ring::after {
        animation: none !important;
    }
}

/* Restore the full framed profile card */
.hero-profile {
    position: relative;
    padding: 1.65rem 1.4rem 1.5rem !important;
    border: 1px solid rgba(130,150,175,.26) !important;
    border-radius: 2.1rem !important;
    background: linear-gradient(180deg, rgba(12,13,18,.98), rgba(5,6,10,.98)) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.03) !important;
    backdrop-filter: blur(20px) !important;
    overflow: visible !important;
    animation: heroProfileFloat 6s ease-in-out infinite !important;
    width: min(100%, 420px) !important;
}
.hero-profile .profile-caption {
    margin-top: 1.15rem;
    text-shadow: 0 0 18px rgba(5,0,15,.78), 0 0 22px rgba(155,92,255,.28);
}

/* Responsive profile placement and sizing polish */
.profile-ring {
    width: 11.35rem;
    height: 11.35rem;
}

@media (min-width: 769px) and (max-width: 980px) {
    .hero-simple {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 310px) !important;
        gap: 2.2rem !important;
        align-items: center !important;
        padding-top: 7rem !important;
    }
    .hero-copy {
        order: 1;
    }
    .hero-profile {
        order: 2;
        justify-self: center !important;
        width: auto !important;
    }
    .profile-ring {
        width: 10.9rem;
        height: 10.9rem;
    }
}

@media (max-width: 768px) {
    .hero-simple {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.45rem !important;
        padding-top: 5.6rem !important;
        text-align: left;
    }
    .hero-profile {
        order: -1;
        width: auto !important;
        align-self: center !important;
        margin: 0 auto .35rem auto !important;
    }
    .hero-copy {
        order: 2;
        width: 100%;
    }
    .profile-ring {
        width: 8rem !important;
        height: 8rem !important;
        margin-bottom: .85rem !important;
    }
    .profile-caption strong {
        font-size: 1.35rem;
    }
    .profile-caption span {
        max-width: 18rem;
        line-height: 1.35;
    }
    .hero-actions {
        justify-content: flex-start;
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
        margin-top: 1.2rem;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .btn {
        font-size: .82rem;
        min-height: 2.4rem;
        letter-spacing: .01em;
    }
    .btn.primary {
        background: linear-gradient(180deg, rgba(22,24,32,.98), rgba(7,9,14,.98));
        box-shadow: 0 0 0 1px rgba(120,234,255,.08), 0 12px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
    }
    .btn.ghost {
        background: linear-gradient(180deg, rgba(14,16,24,.94), rgba(8,10,16,.94));
        box-shadow: 0 0 0 1px rgba(120,234,255,.05), 0 10px 18px rgba(0,0,0,.22);
    }
}

@media (max-width: 390px) {
    .profile-ring {
        width: 9.15rem !important;
        height: 9.15rem !important;
    }
    .hero-simple {
        padding-top: 5.15rem !important;
    }
}

/* Disable profile rotation on mobile to keep it stable */
@media (max-width: 768px) {
    .profile-ring,
    .profile-ring::before,
    .profile-ring::after {
        animation: none !important;
        transform: none !important;
    }
}

/* Mobile hero formatting polish after moving profile to the top */
html,
body {
    overflow-x: hidden;
    background-color: var(--bg);
}

@media (max-width: 768px) {
    .hero-simple {
        padding-top: 3.85rem !important;
        padding-bottom: 3.5rem !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    .hero-copy {
        max-width: 100%;
        padding-inline: .15rem;
    }
    .hero-copy .eyebrow {
        display: block;
        max-width: 19rem;
        line-height: 1.22;
        letter-spacing: .14em;
        font-size: .64rem;
    }
    .hero-copy h1,
    h1 {
        max-width: 100%;
        font-size: clamp(1.98rem, 9.3vw, 2.35rem) !important;
        line-height: .96 !important;
        letter-spacing: -.075em;
        overflow-wrap: normal;
        text-wrap: balance;
    }
    .hero-copy h2 {
        font-size: .98rem;
        line-height: 1.25;
    }
    .hero-copy p {
        max-width: 20rem;
        font-size: .9rem;
        line-height: 1.52;
    }
}

@media (max-width: 390px) {
    .hero-copy h1,
    h1 {
        font-size: clamp(1.88rem, 8.9vw, 2.2rem) !important;
        letter-spacing: -.065em;
    }
    .hero-copy .eyebrow {
        font-size: .6rem;
        letter-spacing: .12em;
    }
}

/* Final mobile overflow fix for hero text */
@media (max-width: 768px) {
    .section-wrap {
        width: min(100% - 2rem, 1120px) !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .hero-copy,
    .hero-copy * {
        box-sizing: border-box;
    }
    .hero-tagline {
        max-width: 17rem;
    }
    .hero-copy h1,
    h1 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        font-size: clamp(1.82rem, 8.5vw, 2.12rem) !important;
        line-height: 1.02 !important;
        letter-spacing: -.055em !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        text-wrap: wrap !important;
    }
    .hero-copy p {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word;
    }
}

@media (max-width: 390px) {
    .hero-copy h1,
    h1 {
        width: min(100%, 18.75rem) !important;
        font-size: clamp(2.08rem, 9.2vw, 2.42rem) !important;
    }
    .hero-copy p {
        max-width: 17rem !important;
    }
}

/* Visual polish: richer ring, buttons, and cleaner mobile grid */
.profile-ring {
    background: radial-gradient(circle at 35% 20%, #09070a 0%, #09070a 38%, #9b0046 72%, #1b050a 100%) !important;
    box-shadow: 0 0 38px rgba(155,0,70,0.55), 0 0 64px rgba(0,0,0,0.65) !important;
}
.profile-ring::before {
    background: conic-gradient(from 0deg, rgba(0,0,0,0) 0 10%, rgba(120,10,45,0.9) 14%, rgba(200,24,96,0.95) 36%, rgba(80,10,30,0.7) 60%, rgba(0,0,0,0) 100%) !important;
    box-shadow: 0 0 34px rgba(200,24,96,0.42), 0 0 52px rgba(0,0,0,0.55) !important;
}
.profile-ring::after {
    background: radial-gradient(circle, rgba(200,24,96,0.38) 0 30%, rgba(45,10,20,0.25) 52%, transparent 74%) !important;
}
.profile-ring.has-photo .profile-photo,
.profile-photo {
    border: 3px solid rgba(200,24,96,0.9);
    box-shadow: inset 0 0 16px rgba(200,24,96,0.2), 0 0 26px rgba(200,24,96,0.35);
}
.btn.primary {
    background: linear-gradient(180deg, rgba(18,20,26,.98), rgba(8,10,14,.98));
    border-color: rgba(120,234,255,.16);
    box-shadow: 0 0 0 1px rgba(120,234,255,.06), 0 12px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
}
.btn.ghost {
    background: linear-gradient(180deg, rgba(12,14,20,.96), rgba(6,8,12,.96));
    border-color: rgba(120,234,255,.12);
    box-shadow: 0 0 0 1px rgba(120,234,255,.04), 0 10px 22px rgba(0,0,0,.22);
}
.btn:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.06);
}

@media (max-width: 768px) {
    .cyber-grid {
        opacity: .05;
        background-size: 110px 110px;
    }
    .nerves {
        opacity: .22;
        filter: blur(0.3px);
    }
    .scanline {
        opacity: .03;
    }
}

/* Full blackbox consistency pass */
.about-panel,
.skill-card,
.project-card,
.contact-grid a {
    border: 1px solid rgba(130, 150, 175, .26) !important;
    background: linear-gradient(180deg, rgba(12,13,18,.98), rgba(5,6,10,.98)) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.about-panel,
.skill-card,
.project-card,
.contact-grid a {
    border-radius: .78rem;
}

.about-panel-top {
    display: flex !important;

}

.box-module::before {
    content: '' !important;
    border-bottom-color: rgba(130, 150, 175, .2) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.1)) !important;
}

.about-panel-label,
.box-module::after {
    display: none !important;
}

.about-panel-inner p,
.skill-card p,
.project-card p,
.contact-grid span {
    color: #aab2c2;
}

.contact-grid .contact-card-title {
    color: rgba(201, 255, 102, 0.82);
    text-shadow: 0 0 10px rgba(201,255,102,.3), 0 0 18px rgba(120,234,255,.2);
}

/* Keep nav as a right-side overlay drawer (no legacy connector line) */
.site-nav::before {
    content: none;
}
.site-nav a {
    z-index: 1;
    margin-left: 0;
}

/* Profile caption in the same blackbox module language */
.hero-profile .profile-caption {
    position: relative;
    margin-top: 1.15rem;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Restore decorative top line and label on the profile box */
/* The base rules earlier in the file will provide the 'PROFILE' strip and top line. */

.hero-profile .profile-caption strong,
.hero-profile .profile-caption span {
    margin: 0;
    padding: 0;
    text-shadow: none !important;
    color: var(--text) !important;
}

/* Samples frame override: fully transparent */
.sample-card,
.project-card.sample-card {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
}

.sample-card::before,
.project-card.sample-card::before {
    content: none !important;
}

.sample-card:hover,
.sample-card:focus-within,
.project-card.sample-card:hover,
.project-card.sample-card:focus-within {
    transform: translateY(-8px) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    box-shadow: none !important;
}

.sample-card .sample-media {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
}

.sample-card .box-header-mark {
    display: none !important;
}
.hero-profile .profile-caption strong,
.hero-profile .profile-caption span {
    position: relative;
    z-index: 1;
}
.hero-profile .profile-caption strong {
    margin-top: 0;
    line-height: .96;
}

.hero-simple {
    min-height: auto !important;
    padding-top: 4.25rem !important;
    gap: 1.4rem !important;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .brand,
    .hamburger-menu {
        order: initial;
        margin-right: 0;
    }
    .section-wrap {
        padding: 2.2rem 1rem !important;
    }
    .hero-simple {
        padding-top: 3.6rem !important;
    }
}
