:root {
    --bg: #050505;
    --text: #f2f0f0;
    --accent: #6f18c1;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
    /* Custom cursor */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a,
button {
    cursor: none;
}

/* Noise Overlay (Static) */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Haunted Glow */
.haunted-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(70, 20, 120, 0.15), transparent 70%);
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Site Header - Transparent container on desktop, visible flex row on mobile */
.site-header {
    /* Desktop: invisible passthrough, children use fixed positioning */
    display: contents;
}

@media (max-width: 768px) {
    .site-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background: rgba(5, 5, 5, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .bg-toggle {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        mix-blend-mode: normal !important;
    }

    .nav {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        mix-blend-mode: normal !important;
    }
}

/* Background Toggle */
.bg-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
}

.bg-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Navigation */
.nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 1.5rem;
    mix-blend-mode: difference;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    position: relative;
    padding: 0.5rem;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text);
    transition: width 0.4s var(--easing);
}

.nav-btn:hover::after {
    width: 100%;
}

/* Background Image */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url('./assets/numino.webp');
    background-size: cover;
    background-position: center;
    mix-blend-mode: screen;
    opacity: 0.4;
    z-index: -2;
    /* Moved behind glow */
    filter: blur(2px);
    transition: opacity 0.5s ease;
}

/* Hide BG class */
body.hide-bg::before {
    opacity: 0;
}

/* Enhance haunted glow when BG is hidden (Pure mode) */
body.hide-bg .haunted-glow {
    opacity: 1;
    background: radial-gradient(circle at 50% 50%, rgba(100, 30, 150, 0.4), transparent 60%);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    cursor: pointer;
}

.hero-title {
    transition: text-shadow 0.3s ease;
}

.hero-content:hover .hero-title {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.wip-box {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-content:hover .wip-box {
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.8),
        0 0 50px rgba(255, 250, 240, 0.5),
        0 0 70px rgba(255, 248, 230, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}


.hero-title {
    font-family: var(--font-heading);
    font-size: 7vw;
    font-weight: 300;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.title-line {
    display: flex;
    justify-content: center;
}

.title-line--surname .char {
    font-size: 0.78em;
}

.char {
    display: inline-block;
    transform: translateY(100%);
    animation: reveal 1.2s var(--easing) forwards;
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes reveal {
    to {
        transform: translateY(0);
    }
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffe9c1;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

@keyframes fadeIn {
    to {
        opacity: 0.7;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
    cursor: pointer;
    /* Clickable */
    padding: 1rem;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(5px);
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Universe Section */
.universe {
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portal {
    position: relative;
    aspect-ratio: 4/3;
    transition: transform 0.6s var(--easing);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal--about .portal-inner {
    border-color: rgba(255, 211, 154, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(193, 81, 253, 0.25);
}

.portal--about .portal-img {
    filter: grayscale(10%) contrast(1.05) brightness(0.9);
}

.portal--about .portal-content p {
    color: rgba(255, 211, 154, 0.85);
}

.portal--about {
    grid-column: 1 / -1;
    justify-self: start;
    width: min(900px, 100%);
}

@media (min-width: 900px) {
    .portal--about {
        aspect-ratio: 16/9;
    }
}

.portal-inner {
    width: 100%;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--easing), filter 0.6s ease;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
}

.portal:hover .portal-img {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* Portal Titles - Bottom Left Overlay */
.portal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: none;
    opacity: 1;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to the portal */
}

.portal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.portal-content p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 1;
    color: #c151fd;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    width: 90vw;
    height: 90vh;
    padding: 2rem;
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.5s var(--easing);
    overflow-y: auto;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.overlay-content::-webkit-scrollbar {
    display: none;
}

.overlay.active .overlay-content {
    transform: translateY(0);
}

/* About / Parcours */
.overlay--about {
    overflow: hidden;
}

.overlay--about::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, rgba(193, 81, 253, 0.18), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 211, 154, 0.12), transparent 50%);
    opacity: 0.8;
    z-index: 0;
}

.overlay--about .overlay-content {
    width: min(92vw, 1100px);
    position: relative;
    z-index: 1;
}

.about-content p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.about-hero {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-intro h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.about-role {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 1.2rem;
}

.about-manifesto {
    font-family: 'Spectral', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245, 245, 245, 0.85);
}

.about-points {
    list-style: none;
    margin-top: 1.6rem;
    display: grid;
    gap: 0.9rem;
}

.about-points li {
    position: relative;
    padding-left: 1.6rem;
    color: rgba(245, 245, 245, 0.9);
    line-height: 1.6;
}

.about-points li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #ffd39a;
    text-shadow: 0 0 10px rgba(255, 211, 154, 0.4);
}

.about-highlight {
    color: #ffd700;
    font-style: italic;
}

.about-sigil {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.about-sigil-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 30px rgba(111, 24, 193, 0.35);
}

.about-sigil-core {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(15, 15, 15, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.about-sigil-star {
    font-size: 1.4rem;
    color: #f3e1ff;
    text-shadow: 0 0 18px rgba(195, 120, 255, 0.8);
}

.about-sigil-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.8);
}

.about-timeline {
    display: grid;
    gap: 1.5rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1rem;
}

.timeline-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
}

.timeline-header p {
    font-size: 0.95rem;
    color: rgba(245, 245, 245, 0.6);
    margin: 0;
}

.timeline {
    --timeline-pad: 4.5rem;
    --timeline-line: 1.7rem;
    --timeline-dot: 10px;
    position: relative;
    display: grid;
    gap: 2rem;
    padding-left: var(--timeline-pad);
}

.timeline::before {
    content: '';
    position: absolute;
    left: var(--timeline-line);
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.0),
            rgba(111, 24, 193, 0.5),
            rgba(255, 255, 255, 0.25),
            rgba(111, 24, 193, 0.4),
            rgba(255, 255, 255, 0.0));
}

.timeline-entry {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 2rem;
    position: relative;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: calc(var(--timeline-line) - var(--timeline-pad) - (var(--timeline-dot) / 2));
    top: 0.65rem;
    width: var(--timeline-dot);
    height: var(--timeline-dot);
    border-radius: 50%;
    background: #c151fd;
    box-shadow:
        0 0 0 4px rgba(193, 81, 253, 0.18),
        0 0 18px rgba(193, 81, 253, 0.7);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: rgba(245, 245, 245, 0.85);
    text-align: right;
    padding-top: 0.2rem;
}

.timeline-card {
    background: rgba(12, 12, 12, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.timeline-group + .timeline-group {
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-group h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 0.6rem;
}

.timeline-group ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.timeline-group li {
    position: relative;
    padding-left: 1.2rem;
    color: rgba(245, 245, 245, 0.85);
    line-height: 1.6;
}

.timeline-group li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(245, 245, 245, 0.5);
}

@media (min-width: 900px) {
    .about-hero {
        grid-template-columns: 1.4fr 0.6fr;
    }

    .about-sigil {
        justify-self: end;
    }
}

@media (max-width: 800px) {
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline {
        --timeline-pad: 3rem;
        --timeline-line: 1.1rem;
    }

    .timeline::before {
        left: var(--timeline-line);
    }

    .timeline-entry {
        grid-template-columns: 3rem 1fr;
        gap: 1.5rem;
    }

    .timeline-year {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .about-intro h2 {
        font-size: 2.4rem;
    }

    .about-sigil {
        width: 160px;
        height: 160px;
    }
}

/* Masonry Gallery Layout */
.gallery-grid {
    column-count: 2;
    column-gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        column-count: 4;
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        column-count: 5;
    }
}

.gallery-item {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    border-radius: 4px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Gallery Sections for grouped display */
.gallery-section {
    display: contents;
    /* Allows items to participate in parent masonry */
}

.gallery-divider {
    width: 100%;
    height: 1px;
    border: none;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent);
    margin: 2rem 0;
    column-span: all;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* Section headings between grouped gallery sections */
.gallery-section-label {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    column-span: all;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.gallery-credits {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-credits h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.gallery-credits p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.gallery-video {
    margin-top: 2.5rem;
}

.gallery-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.gallery-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Solid black background for black-bg images */
.gallery-item--black-bg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background-color: #000000;
}

/* Subtle visual distinction for white-bg section items */
.gallery-section--white-bg .gallery-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s var(--easing);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-nav:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.lightbox-nav--prev {
    left: 2rem;
}

.lightbox-nav--next {
    right: 2rem;
}

@media (max-width: 600px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-nav--prev {
        left: 1rem;
    }

    .lightbox-nav--next {
        right: 1rem;
    }
}

.overlay h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.overlay p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(245, 245, 245, 0.8);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.socials {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.socials a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.socials a:hover {
    opacity: 0.7;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    padding: 1rem;
    transition: transform 0.3s ease;
    z-index: 210;
    pointer-events: auto;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Disable custom cursor on touch devices */
@media (hover: none),
(pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .cursor {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .portal,
    .portal:nth-child(odd),
    .portal:nth-child(even),
    .portal:nth-child(3) {
        grid-column: 1 / -1;
        margin-top: 2rem;
        aspect-ratio: 4/3;
    }

    .hero-title {
        font-size: 12vw;
    }
}

/* Work in Progress Section */
.wip-container {
    position: relative;
    margin-top: 2rem;
    z-index: 20;
    width: 100%;
    max-width: 550px;
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}

.wip-box {
    position: relative;
    padding: 2rem 3rem;
    text-align: left;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.7),
        0 0 40px rgba(255, 250, 240, 0.4),
        0 0 60px rgba(255, 248, 230, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover effect removed for text clarity */

.wip-box p {
    font-family: 'Spectral', serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 480px;
}

.wip-box p:last-child {
    margin-bottom: 0;
}

.wip-box .highlight {
    color: #ffd700;
    font-style: italic;
    font-weight: 500;
    text-shadow: none;
}

/* Decorative Stars */
.star {
    position: absolute;
    color: #ffffff;
    font-size: 0.8rem;
    pointer-events: none;
    animation: twinkle 3s infinite ease-in-out;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 14px rgba(255, 255, 255, 0.55);
}

.burst-1 {
    top: -8px;
    left: 10%;
    animation-delay: 0s;
    font-size: 1.2rem;
}

.burst-2 {
    bottom: -10px;
    right: 15%;
    animation-delay: 1.5s;
    font-size: 1rem;
}

.burst-3 {
    top: 40%;
    right: -6px;
    animation-delay: 0.7s;
    font-size: 0.6rem;
}

.burst-4 {
    bottom: 20%;
    left: -5px;
    animation-delay: 2.2s;
    font-size: 0.9rem;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.9) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.25) rotate(45deg);
    }
}

/* Mobile-specific styles for text clarity */
@media (max-width: 768px) {
    .wip-box {
        padding: 1rem 1.5rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(5, 5, 5, 0.85);
    }

    .wip-box p {
        font-size: 0.8rem;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-shadow: none;
    }
}
