/* Custom Styles & Utilities */
        body {
            background-color: #020617; /* Slate 950 */
            color: #cbd5e1; /* Slate 300 */
        }
        
        .glass-nav {
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .glass-card {
            background: rgba(30, 41, 59, 0.5);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .glass-card:hover {
            transform: translateY(-5px);
            border-color: rgba(56, 189, 248, 0.35);
            box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.15);
        }

        .gradient-text {
            background: linear-gradient(to right, #38bdf8, #818cf8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Scroll Reveal Animation Classes */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Filter Button Active State */
        .filter-btn.active {
            background: linear-gradient(to right, #38bdf8, #818cf8);
            color: #ffffff;
            border-color: transparent;
            box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
        }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #0f172a; 
        }
        ::-webkit-scrollbar-thumb {
            background: #334155; 
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #475569; 
        }
        /* Education identity badges */
        .education-heading { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
        .education-logo { width: 76px; height: 84px; flex: 0 0 76px; display: flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
        .education-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
        
        .education-heading h3 { margin-top: 0; line-height: 1.35; }
        .education-heading p { margin: .35rem 0 0; font-size: .875rem; }
        
        @media (max-width: 479px) { .education-heading { flex-direction: column; align-items: flex-start; gap: .75rem; } }

        #coursework-modal { width: min(850px, calc(100% - 2rem)); max-height: 88vh; margin: auto; padding: 0; background: #0f172a; color: #cbd5e1; border: 1px solid #334155; border-radius: 20px; box-shadow: 0 24px 80px #0008; }
        #coursework-modal::backdrop { background: #000b; backdrop-filter: blur(6px); }
        #coursework-modal .coursework-header { position: sticky; top: 0; z-index: 1; background: #0f172a; padding: 24px; border-bottom: 1px solid #334155; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
        .coursework-content { padding: 24px; }
        .coursework-group + .coursework-group { margin-top: 28px; }
        .coursework-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
        .coursework-item { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border: 1px solid #334155; background: #1e293b80; border-radius: 10px; font-size: 14px; line-height: 1.5; }
        .coursework-code { color: #38bdf8; font-family: monospace; font-size: 12px; letter-spacing: .04em; }
        @media (max-width: 600px) { .coursework-list { grid-template-columns: 1fr; } #coursework-modal .coursework-header, .coursework-content { padding: 20px; } }

        /* Hero and About: scoped to preserve the remaining portfolio. */
        #home, #about { scroll-margin-top: 80px; }
        .intro-shell { width: min(1216px, calc(100% - 64px)); margin: 0 auto; }
        .intro-hero { position: relative; overflow: hidden; padding: 112px 0 0; background: radial-gradient(ellipse at 80% 35%, #15284670, transparent 58%), #020617; }
        .intro-main { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 28px; min-height: 620px; }
        .intro-copy { position: relative; z-index: 2; padding: 36px 0 54px; }
        .intro-eyebrow { color: #94a3b8; text-transform: uppercase; letter-spacing: .24em; font-size: 11px; font-weight: 600; line-height: 1.8; margin-bottom: 22px; }
        .intro-name { font-family: Outfit, sans-serif; font-size: clamp(68px, 7.7vw, 112px); font-weight: 800; line-height: .98; letter-spacing: -.045em; color: #f8fafc; margin: 0; }
        .intro-name span { display: block; color: #60b9f5; }
        .intro-rule { width: 62px; height: 4px; background: #58b9f0; margin: 26px 0 20px; }
        .intro-study { font-size: clamp(19px, 1.9vw, 25px); color: #b7c4d7; line-height: 1.5; }
        .intro-study strong { display: block; color: #f8fafc; font-weight: 600; }
        .intro-tagline { color: #8e9eb5; font-size: 15px; margin: 10px 0 28px; line-height: 1.7; }
        .intro-actions { display: flex; flex-wrap: wrap; gap: 14px; }
        .intro-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 21px; border: 1px solid #38bdf8; border-radius: 8px; font-size: 14px; font-weight: 600; color: #7dd3fc; transition: background .2s, transform .2s; }
        .intro-button-primary { color: #071526; background: #60b9f5; box-shadow: 0 7px 25px #38bdf81a; }
        .intro-button:hover { transform: translateY(-2px); background: #38bdf81a; }
        .intro-button-primary:hover { background: #8ad0ff; }
        .intro-socials { display: flex; gap: 24px; margin-top: 22px; font-size: 21px; color: #9eafc9; }
        .intro-socials a:hover { color: #7dd3fc; }
        .intro-portrait { position: relative; height: 620px; align-self: end; }
        .intro-portrait::before { content: ''; position: absolute; inset: 25px -30px 25px; background-image: linear-gradient(#60a5fa0e 1px, transparent 1px), linear-gradient(90deg, #60a5fa0e 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse, black 40%, transparent 72%); }
        .intro-portrait-panel { position: absolute; inset: 65px 14px 0; border: 1px solid #60b9f560; border-radius: 58px 32px 0 0; background: linear-gradient(145deg, #254a7270, #10243b22 70%); }
        .intro-portrait img { position: absolute; bottom: 0; left: 50%; height: 105%; width: auto; max-width: none; transform: translateX(-50%); object-fit: contain; mask-image: linear-gradient(black 88%, transparent 100%); }
        .intro-portrait-note { position: absolute; bottom: 24px; right: 0; z-index: 2; font-size: 11px; letter-spacing: .04em; color: #b1c1d9; background: #0b1529d9; padding: 9px 12px; border-radius: 5px; }
        .intro-credentials { position: relative; display: grid; grid-template-columns: 1.05fr 1.15fr 1fr auto; gap: 24px; border-top: 1px solid #334155a0; padding: 27px 0 30px; }
        .intro-credential { display: flex; align-items: center; gap: 14px; }
        .intro-credential > i { color: #a5b4cf; font-size: 23px; }
        .intro-credential strong { display: block; color: #e2e8f0; font-size: 12px; font-weight: 500; }
        .intro-credential small { display: block; margin-top: 5px; color: #8596af; font-size: 11px; line-height: 1.5; }
        .intro-scroll { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 11px; }
        .intro-about { position: relative; background: radial-gradient(ellipse at 100% 30%, #172b4b55, transparent 60%), linear-gradient(#020617, #0f172a 16%, #0f172a 80%, #020617); padding: 104px 0 100px; }
        .intro-about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
        .intro-about h2 { font-family: Outfit, sans-serif; font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; color: #f8fafc; line-height: 1.15; }
        .intro-about .intro-rule { margin: 18px 0 28px; width: 84px; background: linear-gradient(90deg, #38bdf8, #818cf830); border-radius: 8px; }
        .intro-about-copy p { color: #aebdd3; font-size: 17px; line-height: 1.9; margin: 0 0 26px; }
        .intro-facts { display: grid; gap: 16px; }
        .intro-fact { display: flex; align-items: center; gap: 20px; padding: 23px; border: 1px solid #425d7b80; background: #1e293b80; border-radius: 12px; }
        .intro-fact-icon { flex: 0 0 54px; height: 58px; display: grid; place-items: center; border-radius: 12px; background: #38bdf80b; color: #38bdf8; font-size: 26px; border: 1px solid #38bdf812; }
        .intro-fact:nth-child(2) .intro-fact-icon { color: #a5a0ff; background: #818cf80c; }
        .intro-fact:nth-child(3) .intro-fact-icon { color: #34d399; background: #34d3990b; }
        .intro-fact dt { color: #9daecc; font-size: 13px; margin-bottom: 6px; }
        .intro-fact dd { font-size: clamp(16px, 1.6vw, 21px); font-weight: 600; color: #f1f5f9; line-height: 1.4; margin: 0; }
        .intro-ledger { display: block; width: 100%; max-width: 400px; height: auto; margin: 30px auto 0; opacity: .65; }
        .intro-next { display: flex; justify-content: flex-end; margin-top: 34px; gap: 10px; align-items: center; font-size: 12px; color: #94a3b8; }
        .intro-next:hover { color: #7dd3fc; }
        #home a:focus-visible, #about a:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 5px; }
        @media (min-width: 1440px) { .intro-main { min-height: 690px; } .intro-portrait { height: 690px; } }
        @media (max-width: 1000px) { .intro-about-grid { gap: 32px; grid-template-columns: 1.3fr 1fr; } .intro-main { min-height: 560px; } .intro-portrait { height: 560px; } .intro-name { font-size: 78px; } .intro-credentials { gap: 16px; grid-template-columns: repeat(3,1fr); } .intro-scroll { display: none; } .intro-fact { padding: 18px; gap: 12px; } }
        @media (max-width: 767px) { .intro-shell { width: calc(100% - 40px); } .intro-hero { padding-top: 110px; } .intro-main { grid-template-columns: 1fr; gap: 0; min-height: 0; } .intro-copy { padding: 16px 0 8px; } .intro-name { font-size: clamp(70px,14vw,100px); } .intro-eyebrow { font-size: 10px; } .intro-portrait { height: 490px; width: 100%; max-width: 460px; margin: 26px auto 0; } .intro-portrait img { height: 104%; } .intro-portrait-note { right: 10px; } .intro-credentials { grid-template-columns: 1fr; gap: 22px; padding: 26px 0; } .intro-credential strong { font-size: 13px; } .intro-about { padding: 72px 0 66px; } .intro-about-grid { grid-template-columns: 1fr; gap: 16px; } .intro-about-copy p { font-size: 16px; line-height: 1.85; } .intro-fact { padding: 20px; } .intro-fact dd { font-size: 18px; } .intro-ledger { max-width: 330px; } }
        @media (max-width: 380px) { .intro-actions { flex-direction: column; } .intro-portrait { height: 410px; } }
        @media (prefers-reduced-motion: reduce) { .intro-button { transition: none; } }


        /* Subtle interactions matching the Education glass cards. */
        .intro-fact { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease; }
        .intro-fact-icon { transition: transform .3s ease, background .3s ease, border-color .3s ease; }
        .intro-portrait-panel { transition: border-color .35s ease, box-shadow .35s ease; }
        .intro-credential { padding: 12px; margin: -12px 0; border: 1px solid transparent; border-radius: 12px; transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease; }
        .intro-credential > i { transition: color .3s ease, transform .3s ease; }
        .intro-socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -5px; border-radius: 9px; border: 1px solid transparent; transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease; }
        .intro-button { transition: background .25s ease, transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
        .intro-button:focus-visible { box-shadow: 0 0 20px #38bdf826; }
        .intro-next i, .intro-scroll i { transition: transform .25s ease; }
        @media (hover: hover) and (pointer: fine) {
            .intro-fact:hover { transform: translateY(-5px); border-color: #38bdf880; background: #24344990; box-shadow: 0 10px 30px -10px #38bdf833, inset 0 0 0 1px #38bdf80a; }
            .intro-fact:hover .intro-fact-icon { transform: scale(1.06); background: #38bdf810; border-color: #38bdf830; }
            .intro-portrait:hover .intro-portrait-panel { border-color: #60caffb0; box-shadow: 0 0 28px #38bdf81c, inset 0 0 30px #38bdf80a; }
            .intro-credential:hover { transform: translateY(-3px); border-color: #38bdf850; background: #1e293b60; box-shadow: 0 8px 24px -12px #38bdf840; }
            .intro-credential:hover > i { color: #7dd3fc; transform: translateY(-2px); }
            .intro-socials a:hover { transform: translateY(-2px); border-color: #38bdf860; background: #38bdf810; }
            .intro-button:hover { border-color: #7dd3fc; box-shadow: 0 0 22px #38bdf82a; }
            .intro-next:hover i, .intro-scroll:hover i { transform: translateY(3px); }
        }
        .intro-button:active { transform: translateY(0) scale(.98); }
        @media (prefers-reduced-motion: reduce) {
            .intro-fact, .intro-fact-icon, .intro-portrait-panel, .intro-credential, .intro-credential > i, .intro-socials a, .intro-button, .intro-next i, .intro-scroll i { transition: none; }
            .intro-fact:hover, .intro-fact:hover .intro-fact-icon, .intro-credential:hover, .intro-credential:hover > i, .intro-socials a:hover, .intro-button:hover, .intro-button:active, .intro-next:hover i, .intro-scroll:hover i { transform: none; }
        }


        /* Gentle motion for the hero introduction and portrait. */
        .intro-eyebrow { display: inline-block; animation: intro-drift 5s ease-in-out infinite; will-change: transform; }
        @keyframes intro-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
        .intro-portrait { perspective: 1000px; }
        .intro-portrait-panel { transform: translate3d(var(--portrait-x, 0px), var(--portrait-y, 0px), 0) rotateX(var(--portrait-rx, 0deg)) rotateY(var(--portrait-ry, 0deg)) scale(var(--portrait-scale, 1)); transform-origin: center; transition: transform .35s ease-out, border-color .35s ease, box-shadow .35s ease; }
        .intro-portrait img { transform: translateX(-50%) translate3d(var(--photo-x, 0px), var(--photo-y, 0px), 0); transition: transform .4s ease-out; }
        @media (prefers-reduced-motion: reduce) {
            .intro-eyebrow { animation: none; will-change: auto; }
            .intro-portrait-panel { transform: none; transition: none; }
            .intro-portrait img { transform: translateX(-50%); transition: none; }
        }


        /* Gallery frames follow each image's natural portrait or landscape ratio. */
        #modal-gallery { align-items: start; justify-items: center; }
        #modal-gallery .gallery-media-card { width: 100%; max-width: min(100%, calc(var(--image-ratio, 1.414) * min(70vh, 640px))); min-width: 0; align-self: start; }
        #modal-gallery .gallery-image-link { display: block; width: 100%; height: auto; }
        #modal-gallery .gallery-image { display: block; width: 100%; height: auto; max-width: 100%; padding: 0; object-fit: contain; transform: none; }
        #modal-gallery .gallery-image-fallback { min-height: 240px; }

        /* Compact mixed-orientation event galleries. */
        #modal-gallery[data-layout="compact"] { display: block; columns: 2; column-gap: 24px; }
        #modal-gallery[data-layout="compact"] .gallery-media-card {
            display: flex;
            break-inside: avoid;
            page-break-inside: avoid;
            max-width: min(100%, calc(var(--image-ratio, 1.414) * min(52vh, 380px)));
            margin: 0 auto 24px;
        }
        @media (max-width: 767px) {
            #modal-gallery[data-layout="compact"] { columns: 1; }
            #modal-gallery[data-layout="compact"] .gallery-media-card { max-width: min(100%, calc(var(--image-ratio, 1.414) * min(65vh, 480px))); }
        }


        /* Living hero: ambient movement layered with the existing pointer tilt. */
        .intro-hero { isolation: isolate; }
        .intro-hero > .intro-shell { position: relative; z-index: 1; }
        .intro-hero::before { content: ''; position: absolute; width: 680px; height: 680px; right: -120px; top: 30px; pointer-events: none; background: radial-gradient(ellipse, #38bdf824, #6366f112 40%, transparent 70%); animation: hero-ambient 14s ease-in-out infinite alternate; }
        .intro-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(340px circle at var(--hero-mouse-x, 65%) var(--hero-mouse-y, 40%), #38bdf818, transparent 72%); transition: opacity .6s ease; }
        .intro-hero.hero-pointer-active::after { opacity: 1; }
        .intro-name span { background: linear-gradient(110deg, #60b9f5 15%, #a4e8ff 35%, #9195fa 55%, #60b9f5 78%); background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: hero-name-flow 9s ease-in-out infinite; }
        .intro-portrait img { animation: hero-photo-float 6s ease-in-out infinite; }
        .intro-portrait-panel { animation: hero-frame-drift 8s ease-in-out infinite; }
        .intro-portrait::before { animation: hero-grid-drift 12s ease-in-out infinite alternate; }
        .intro-copy > .intro-rule { position: relative; overflow: hidden; }
        .intro-copy > .intro-rule::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #e0f2fe, transparent); animation: hero-rule-shine 4s ease-in-out infinite; }
        .hero-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
        .hero-sparks span { position: absolute; left: var(--spark-x); top: var(--spark-y); width: 3px; height: 3px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 10px #38bdf8; opacity: .2; animation: hero-spark-rise var(--spark-time) ease-in-out infinite; animation-delay: var(--spark-delay); }
        @keyframes hero-photo-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
        @keyframes hero-frame-drift { 0%,100% { translate: 0 0; } 50% { translate: 4px 7px; } }
        @keyframes hero-grid-drift { from { transform: translate(-7px, -5px); opacity: .5; } to { transform: translate(9px, 12px); opacity: 1; } }
        @keyframes hero-ambient { from { transform: translate(-35px, -20px) scale(.9); } to { transform: translate(35px, 45px) scale(1.15); } }
        @keyframes hero-name-flow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
        @keyframes hero-rule-shine { 0%,25% { transform: translateX(-110%); } 75%,100% { transform: translateX(110%); } }
        @keyframes hero-spark-rise { 0%,100% { transform: translateY(12px); opacity: .12; } 50% { transform: translateY(-35px); opacity: .5; } }
        .intro-hero.hero-motion-paused::before, .intro-hero.hero-motion-paused .intro-name span, .intro-hero.hero-motion-paused .intro-portrait img, .intro-hero.hero-motion-paused .intro-portrait-panel, .intro-hero.hero-motion-paused .intro-portrait::before, .intro-hero.hero-motion-paused .intro-eyebrow, .intro-hero.hero-motion-paused .intro-rule::after, .intro-hero.hero-motion-paused .hero-sparks span { animation-play-state: paused; }
        @media (max-width: 767px) { .intro-hero::before { width: 460px; height: 600px; top: 300px; right: -180px; } .hero-sparks span:nth-child(n+4) { display: none; } }
        @media (prefers-reduced-motion: reduce) {
            .intro-hero::before, .intro-name span, .intro-portrait img, .intro-portrait-panel, .intro-portrait::before, .intro-copy > .intro-rule::after, .hero-sparks span { animation: none; translate: none; }
            .intro-hero::after, .hero-sparks { display: none; }
        }


        /* Discourage casual image saving; normal text selection remains available. */
        img, .gallery-image-link, .intro-portrait, .education-logo, #image-preview { -webkit-touch-callout: none; }
        img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
        button.gallery-image-link { padding: 0; border: 0; background: transparent; cursor: zoom-in; }
        button.gallery-image-link:focus-visible { outline: 2px solid #38bdf8; outline-offset: -3px; }
        #image-preview { width: min(1100px, calc(100% - 24px)); max-width: none; max-height: 94vh; padding: 16px; margin: auto; background: #0f172a; color: #e2e8f0; border: 1px solid #334155; border-radius: 14px; }
        #image-preview::backdrop { background: #020617ed; backdrop-filter: blur(6px); }
        .image-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
        #image-preview-title { font-size: 14px; line-height: 1.5; }
        .image-preview-close { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #1e293b; color: #e2e8f0; font-size: 24px; cursor: pointer; }
        .image-preview-close:hover { background: #334155; }
        #image-preview-photo { display: block; max-width: 100%; width: auto; height: auto; max-height: calc(90vh - 100px); margin: auto; object-fit: contain; }

        /* Page-wide motion accents. */
        .section-shimmer { overflow: hidden; }
        .intro-about .section-shimmer { position: relative; }
        .section-shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 5%, #e0f2fe 50%, transparent 95%); transform: translateX(-110%); animation: section-line-shine 4.8s ease-in-out infinite; animation-delay: var(--shine-delay, 0s); }
        @keyframes section-line-shine { 0%,25% { transform: translateX(-110%); opacity: .2; } 48% { opacity: 1; } 75%,100% { transform: translateX(110%); opacity: .2; } }
        .language-color-flow { background-image: linear-gradient(110deg, #60b9f5 15%, #a4e8ff 35%, #9195fa 55%, #60b9f5 78%) !important; background-size: 250% 100%; animation: hero-name-flow 9s ease-in-out infinite; box-shadow: 0 0 12px #38bdf824; }
        .glass-card { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background-color .35s ease; }
        .glass-card i { transition: transform .3s ease, color .3s ease; }
        .filter-btn { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
        #navbar a[href^="#"], #mobile-menu a[href^="#"] { transition: color .25s ease, text-shadow .25s ease; }
        #navbar a[aria-current="location"] { color: #7dd3fc; text-shadow: 0 0 18px #38bdf83a; }
        @media (hover: hover) and (pointer: fine) {
            .glass-card:hover { border-color: #38bdf875; box-shadow: 0 12px 30px -14px #38bdf845; background-color: #1e293bb3; }
            .glass-card:hover i:not(.absolute i) { transform: translateY(-2px); }
            .filter-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 18px #38bdf81a; }
        }
        section.section-motion-paused .section-shimmer::after, section.section-motion-paused .language-color-flow { animation-play-state: paused; }
        @media (prefers-reduced-motion: reduce) {
            .section-shimmer::after, .language-color-flow { animation: none; }
            .section-shimmer::after { display: none; }
            .glass-card, .glass-card i, .filter-btn { transition: none; }
            .glass-card:hover, .glass-card:hover i:not(.absolute i), .filter-btn:hover { transform: none; }
        }


        /* Extra space above the portrait on phones only. */
        @media (max-width: 767px) {
            .intro-portrait { margin-top: 200px; }
        }

        /* Fine star accents across the hero. */
        .hero-sparks .hero-star { width: 7px; height: 7px; background: transparent; box-shadow: none; overflow: visible; }
        .hero-sparks .hero-star::before { content: ''; position: absolute; inset: 0; background: #b9e7ff; clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%); animation: hero-star-twinkle 4s ease-in-out infinite; animation-delay: var(--spark-delay); }
        @keyframes hero-star-twinkle { 0%,100% { opacity: .25; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.15); } }
        .hero-motion-paused .hero-star::before { animation-play-state: paused; }
        @media (max-width: 767px) { .hero-sparks span.hero-star { display: block; width: 5px; height: 5px; } }
        @media (prefers-reduced-motion: reduce) { .hero-sparks .hero-star::before { animation: none; } }
