@font-face {
    font-family: 'Perandory';
    src: url('fonts/Perandory-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Sugar';
    src: url('fonts/sugar.otf') format('opentype');
}

@font-face {
    font-family: 'Pragmatica';
    font-weight: 400;
    src: url('fonts/fonnts.com-Pragmatica_Book.otf') format('opentype');
}

@font-face {
    font-family: 'Pragmatica';
    font-weight: 700;
    src: url('fonts/fonnts.com-Pragmatica_Bold.otf') format('opentype');
}

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

/* Hide the real cursor globally */
html,
body,
a,
button {
    cursor: none !important;
}

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Allows you to click "through" the heart to your links */
    z-index: 9999;
}

:root {
    --primary-red: #AD1102;
    --secondary-white: #fbfaf2;
    --text-white: #fffff5;
    --font-serif: 'Perandory';
    --font-sans: 'Pragmatica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


.logo a {
    text-decoration: none;
    color: var(--text-white);
}

body {
    font-family: var(--font-sans);
    color: var(--text-white);
    line-height: 1.6;
    background-color: var(--primary-red);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise"/><feColorMatrix in="noise" type="saturate" values="0.3"/></filter><rect width="100" height="100" fill="rgba(0,0,0,0.02)" filter="url(%23noise)"/></svg>');
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Header & Navigation */
.header {
    background-color: transparent;
    color: var(--text-white);
    padding: 2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 101;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Sugar';
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: .5px solid var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: 90%;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--text-white);
    color: var(--primary-red);
}

/* Main Content */
main {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70vh;
    margin-bottom: 2rem;
}

.hero-content {
    margin-top: 2%;
    display: flex;
    padding-left: 2rem;
    flex-direction: column;
    gap: 2rem;
}

.hero-title-with-lotus {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.hero-lotus {
    font-size: .7rem;
    font-family: monospace;
    line-height: 1;
    padding: 0;
    white-space: pre;
    letter-spacing: 0;
    position: absolute;
    justify-content: right;
    margin-left: 40%;
    margin-right: 2%;
    top: -1%;
}

.hero-lotus-top {
    font-size: .4rem;
    font-family: monospace;
    line-height: 1;
    padding: 0;
    margin: 0;
    white-space: pre;
    letter-spacing: 0;
    position: absolute;
    left: 32%;
    top: -15%;
    overflow: visible;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 12.5rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 180, 80, 0.15);
}

.hero-title-lau {
    font-family: var(--font-serif);
    font-size: 12.5rem;
    font-weight: 400;
    line-height: .5;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 180, 80, 0.15);
    margin-left: 15%;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 600;
    letter-spacing: 0;
    word-spacing: 2rem;
}

.hero-subtitle-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-transform: uppercase;
    margin: 2%;
    line-height: 115%;
}

#subtitle-right {
    text-align: left;
    justify-content: right;
    margin-right: 5%;
}

.current-song {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dec6c6;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 0px;
    bottom: 0px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #690000;
}

input:focus+.slider {
    box-shadow: 0 0 1px #fcefee;
}

input:checked+.slider:before {
    -webkit-transform: translateX(35px);
    -ms-transform: translateX(35px);
    transform: translateX(35px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.song-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    font-size: 0.75rem;
    margin-bottom: 2rem;
}

.sound-off {
    margin: 0;
    padding: 0;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 2.5rem;
    font-size: 0.9rem;
    border: 2px solid var(--text-white);
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--text-white);
    color: var(--primary-red);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-red);
    transform: translateY(-3px);
}

.hero-visual {
    margin-top: 3rem;
    height: 0;
}

.divider {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Featured Work Section */
.featured-work {
    margin-bottom: 0rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    padding-bottom: 0;
}

.featured-work h2 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin-bottom: 3rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(255, 180, 80, 0.12);
}

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

.project-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    padding: 0;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(255, 180, 80, 0.1);
}

.project-card p {
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-white);
    color: var(--primary-red);
    padding: 10vh 4rem 5vh 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1600px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-column.right {
    text-align: right;
    align-items: flex-end;
}

.footer-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#footer-lotus {
    font-size: 7px;
    /* Fine-tuned for the ASCII detail */
    line-height: 1;
    color: var(--primary-red);
    margin-bottom: 2rem;
    white-space: pre;
}

#footer-logo {
    font-family: var(--font-serif);
    font-size: 8vw;
    line-height: 0.8;
    margin: 0;
    text-transform: uppercase;
}

.footer-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    opacity: 0.5;
    text-transform: uppercase;
}

.footer-nav-links,
.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav-links a,
.footer-social-links a {
    color: var(--primary-red);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.footer-nav-links a:hover,
.footer-social-links a:hover {
    opacity: 0.5;
}

#back-to-top a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* About Page */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
}

.about-header h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 6px rgba(255, 180, 80, 0.12);
}

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

.about-text {
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
}

.about-image {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skills-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.skills-section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 180, 80, 0.1);
}

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

.skill-tag {
    background-color: transparent;
    padding: 0.75rem 1rem;
    border-radius: 0;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

/* Works Page */
.works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.works-header h1 {
    font-family: var(--font-serif);
    font-size: 5rem;
    margin-bottom: 3rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 180, 80, 0.15);
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.work-item {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-image {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-info {
    padding: 0;
}

.work-info h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(255, 180, 80, 0.12);
}

.work-category {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.work-tag {
    background-color: transparent;
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


#explore {
    font-size: 7rem;
}

#magazine {
    /* Very soft depth shadow */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1) !important;
}

/* 1. Force Smoothness & Add Spine Shadow */
.stPageFlip-page {
    background-color: #fff;
    /* This adds depth where the pages meet (the spine) */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* 2. Create the Glossy Finish Overlay */
.page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Diagonal 'light' beam that makes it look like shiny paper */
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    /* Allows the user to still click through to turn pages */
    z-index: 10;
}

/* Hide raw images until framework loads */
.page {
    display: none;
    width: 100%;
    height: 100%;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Volumes Section Refinement */
.split-portfolio-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Keeps the list at the top */
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px;
    margin: 4% auto;
    padding: 0 2rem;
}

/* Constrain the left side so the magazine has room to breathe */
.volumes-container {
    flex: 1;
    max-width: 450px;
    margin-top: 0;
    /* Reset previous margin */
}

/* Adjust the viewport to be part of the flex row */
.magazine-viewport {
    flex: 1.5;
    /* Gives the book slightly more space than the text */
    position: relative;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
    perspective: 3000px;
}

#magazine {
    /* Optional: Slight tilt to give it a more "laid on a desk" feel */
    transform: rotate(1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

.volume-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.volume-item[open] {
    padding-bottom: 2.5rem;
}

.volume-item summary {
    list-style: none;
    font-family: var(--font-sans);
    /* Pragmatica */
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    text-transform: uppercase;
}

.volume-item summary::-webkit-details-marker {
    display: none;
}

.plus-icon {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.volume-item[open] .plus-icon {
    transform: rotate(45deg);
    /* Turns + into x */
}

.volume-content {
    padding-top: 1.5rem;
    font-family: var(--font-sans);
    /* Pragmatica Book */
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    text-transform: uppercase;
    /* Soft fade-in for the text */
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-btn {
    background: transparent;
    border: 1px solid var(--text-white);
    color: var(--text-white);
    padding: 0.7rem 2rem;
    margin-top: 2rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0px;
    border-radius: 50px;
    /* Matches your nav links */
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: var(--text-white);
    color: var(--primary-red);
}

.image-divider-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin: 0;
}

.divider-image {
    width: 100vw;
    margin: 0;
    /* filter: grayscale(100%) brightness(80%); */
    margin-top: -10%;
}


.celebration-container {
    background-color: #FFFCF4;
    padding: 5%;
    padding-top: 0;
}

.celebration-section {
    width: 100%;
    margin: 0;
    margin-top: 10%;
    display: inline-block;
    text-align: center;
    align-items: center;
    justify-content: center;
}


#celebration-text {
    font-family: var(--font--sans);
    font-size: 2rem;
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0px;
    text-shadow: 0 0 6px rgba(255, 180, 80, 0.15);
    text-align: center;
    margin-top: -5%;
    justify-content: center;
}

#celebration-content-text {
    justify-content: center;
    align-items: center;
    font-family: var(--font--sans);
    text-transform: uppercase;
    color: var(--primary-red);
    padding-right: 15%;
    padding-left: 15%;
    margin-top: 3%;
}

.small-lotus {
    font-size: .1rem;
    color: var(--primary-red);
    margin-top: 2%;
}

#creative-people-bg {
    width: 100%;
    margin-top: -5%;
    margin-bottom: -20%;
}
#10-things {
    width: 100%;
    margin-top: -5%;
    margin-bottom: -20%;
    background: url('assets/10-things.gif') no-repeat center center;
    background-size: cover;
}
.about-image {
    background-image: url('assets/about-page.png');
    width: 100vw;
    height: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: var(--primary-red);
}

.contact-image {
    height: 100px;
    transform: translateY(20px);
}

.contact-container {
    display: flex;
    flex-direction: row;
    font-size: 3rem;
    gap: 1rem;
    overflow: hidden;
}

.contact-section {
    flex: 1;
    text-align: left;
    padding: 2rem;
    margin: 5%;
}

#contact-title-together {
    font-size: 10rem;
    line-height: 0.5;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 180, 80, 0.15);
}

.contact-info {
    margin-top: 10%;
}

.contact-info a {
    text-decoration: none;
    color: var(--secondary-white);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#get-in-touch-text {
    color: var(--secondary-white);
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 2%;
}

/* Container setup */
.works-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

.works-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Individual Item Styling */
.works-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-decoration: none;
    color: var(--text-white);
}

.works-title {
    font-family: var(--font-serif);
    /* Perandory */
    font-size: 5.5rem;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.works-vol {
    font-family: var(--font-sans);
    /* Pragmatica */
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.6;
}

/* The Hover Logic: 
   When the container is hovered, dim ALL items. 
   Then, keep the specifically hovered item at full opacity. */

.works-nav:hover .works-item {
    opacity: 0.2;
    /* Lower opacity for non-hovered items */
    filter: blur(2px);
    /* Optional: adds a dreamy vibe */
}

.works-nav .works-item:hover {
    opacity: 1;
    filter: blur(0px);
    border-bottom-color: rgba(255, 255, 255, 0.8);
    transform: translateX(20px);
    /* Subtle slide-right effect */
}

/* 1. Scaling the Text on Hover */
.works-item:hover .works-title {
    transform: scale(1.05);
    /* Subtle grow */
    letter-spacing: 4px;
    /* Expands slightly for a 'breathing' effect */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

/* 2. The Interactive Vignette Container */
#vignette-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Don't block clicks */
    z-index: 5;
    /* Sit behind the text but above the background */
    opacity: 0;
    transition: opacity 0.5s ease;
    /* This creates a 'hole' of light where the mouse is */
    background: radial-gradient(circle 200px at var(--mouse-x) var(--mouse-y),
            rgba(173, 17, 2, 0) 0%,
            rgba(173, 17, 2, 0.4) 100%);
}

.works-nav:hover~#vignette-layer {
    opacity: 1;
}

.trail-particle {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: filter 0.2s;
}

.heart-particle {
    position: fixed;
    pointer-events: none;
    font-family: monospace;
    z-index: 9999;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4);
    user-select: none;
}

/* --- RESPONSIVE MEDIA QUERIES REVISED --- */

/* Tablet & Smaller Desktop Viewports */
@media (max-width: 1024px) {

    /* Allow regular cursor indicators on mobile/touch interfaces */
    html,
    body,
    a,
    button {
        cursor: auto !important;
    }

    #cursor-canvas {
        display: none !important;
    }

    .hero-title,
    .hero-title-lau {
        font-size: 7vw;
    }

    .split-portfolio-container {
        flex-direction: column;
        align-items: center;
    }

    .volumes-container {
        max-width: 100%;
        width: 100%;
    }

    .magazine-viewport {
        width: 100%;
        min-height: 500px;
        padding: 50px 0;
    }

    .contact-container {
        flex-direction: column;
        font-size: 2rem;
    }

    #contact-title-together {
        font-size: 14vw;
        line-height: 1;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title-with-lotus {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
    }

    .hero-title-lau {
        font-size: 3.5rem;
        line-height: 1.1;
        margin-left: 0;
    }

    .hero-lotus {
        position: relative;
        margin-left: 0;
        top: 0;
        font-size: 0.5rem;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-lotus-top {
        display: none;
        /* Hide conflicting absolute components */
    }

    .hero-subtitle-container {
        flex-direction: column;
        gap: 1rem;
        margin: 5% 0;
    }

    #subtitle-right {
        text-align: left;
        margin-right: 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .featured-work h2,
    .about-header h1,
    .works-header h1 {
        font-size: 2.5rem;
    }

    .projects-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .divider pre {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow: hidden;
    }

    .celebration-container {
        padding: 2rem 1rem;
    }

    .celebration-section {
        margin-top: 2rem;
    }

    #explore {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    .works-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .works-title {
        font-size: 2.5rem;
    }

    .works-item:hover {
        transform: none;
    }

    .works-nav .works-item:hover {
        transform: none;
    }

    /* Footer Responsive Grid */
    .footer {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .footer-column,
    .footer-column.right {
        text-align: center;
        align-items: center;
        width: 100%;
    }
}

/* Small Screens / Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        border-radius: 15px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title-lau {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    #celebration-text {
        font-size: 1.5rem;
    }

    #celebration-content-text {
        padding-right: 0;
        padding-left: 0;
    }

    .featured-work h2 {
        font-size: 2rem;
    }

    .works-header h1 {
        font-size: 2.5rem;
    }
}

/* --- Mobile polish added for cleaner phone layouts --- */
html {
    overflow-x: hidden;
}

img,
video,
canvas {
    max-width: 100%;
}

pre {
    max-width: 100%;
}

.divider {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.75rem 0;
}

.divider span {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    font-size: clamp(0.75rem, 1.6vw, 1rem);
    line-height: 1;
    letter-spacing: 0.06em;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .header {
        padding: 1rem;
    }

    .navbar {
        gap: 0.75rem;
        align-items: center;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
        padding-left: 0;
    }

    .nav-links a {
        border-radius: 999px;
        padding: 0.35rem 0.75rem;
        font-size: 0.68rem;
        line-height: 1;
    }

    .hero {
        padding: 1.25rem 0 0.5rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
        gap: 1.25rem;
    }

    .hero-title-with-lotus {
        display: block;
    }

    .hero-title,
    .hero-title-lau {
        font-size: clamp(3.4rem, 17vw, 5.5rem);
        line-height: 0.9;
        letter-spacing: 1px;
        overflow-wrap: normal;
    }

    .hero-title-lau {
        margin-left: 0;
        margin-top: 0.2rem;
    }

    .hero-lotus,
    .hero-lotus-top,
    .small-lotus,
    #footer-lotus {
        display: none !important;
    }

    .hero-subtitle-container {
        flex-direction: column;
        gap: 0.8rem;
        margin: 0;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.78rem;
        line-height: 1.35;
        word-spacing: normal;
        letter-spacing: 0.02em;
    }

    #subtitle-right {
        margin-right: 0;
    }

    .song-container {
        flex-wrap: wrap;
        gap: 0.6rem 0.8rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .current-song {
        width: 100%;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .sound-off {
        font-size: 0.68rem;
    }

    .divider {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 0.65rem 0;
    }

    .divider span {
        width: 100vw;
        padding: 0 0.5rem;
        font-size: 0.82rem;
        text-align: left;
    }

    .featured-work {
        padding: 1.5rem 1rem 0;
    }

    .featured-work-header {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    #explore,
    .featured-work h2 {
        font-size: clamp(2.6rem, 15vw, 4rem);
        line-height: 0.95;
        margin-bottom: 0.75rem;
    }

    .split-portfolio-container {
        margin: 1.5rem 0 0;
        padding: 0;
        gap: 1rem;
    }

    .volume-item {
        padding: 1rem 0;
    }

    .volume-item summary {
        font-size: 0.92rem;
        gap: 1rem;
    }

    .volume-content {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .view-btn {
        width: 100%;
        margin-top: 1.25rem;
        padding: 0.8rem 1rem;
    }

    .image-divider-container {
        width: 100%;
        overflow: hidden;
    }

    .divider-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-top: 0;
        margin-bottom: 0;
        display: block;
    }
    
    .celebration-container {
        padding: 3rem 1rem;
    }

    .celebration-section {
        margin-top: 0;
        display: block;
    }

    #celebration-text {
        margin-top: 0;
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.1;
    }

    #celebration-content-text {
        padding: 0;
        margin-top: 1rem;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    #celebration-content-text br {
        display: none;
    }

    .footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-container {
        gap: 2rem;
    }

    #footer-logo {
        font-size: clamp(3rem, 18vw, 5rem);
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-links {
        flex-direction: row;
        width: auto;
        text-align: right;
    }

    .nav-links a {
        display: inline-block;
        width: auto;
    }

    .hero-title,
    .hero-title-lau {
        font-size: clamp(3rem, 16vw, 4.2rem);
    }

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

    .divider span {
        font-size: 0.78rem;
    }
}

/* --- Responsive divider + mobile lotus refinement --- */
.mobile-lotus, .mobile-celebration-lotus {
    display: none;
}

.mobile-cele {
    display: none;
}

.divider {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.divider .divider-pattern {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    line-height: 1;
}

@media (max-width: 768px) {
    .divider {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0.65rem 0;
    }

    .divider .divider-pattern {
        width: 100vw;
        min-width: 100vw;
        padding: 0 0.75rem;
        font-size: clamp(0.74rem, 3.4vw, 0.92rem);
        letter-spacing: 0.02em;
    }

    .mobile-lotus, .mobile-celebration-lotus {
        display: block;
        width: min-content;
        max-width: 100%;
        margin: 0.75rem auto 0;
        font-family: monospace;
        font-size: clamp(0.29rem, 1.45vw, 0.42rem);
        line-height: 1;
        letter-spacing: 0;
        white-space: pre;
        overflow: hidden;
        opacity: 0.9;
        text-align: left;
    }

    .mobile-celebration-lotus {
        color: var(--primary-red);
    }

    .nav-links a {
        border-radius: 90%;
    }

    .view-btn,
    .btn {
        border-radius: 90%;
    }
}

@media (max-width: 480px) {
    .divider .divider-pattern {
        font-size: clamp(0.7rem, 3.7vw, 0.86rem);
        padding: 0 0.6rem;
    }

    .nav-links a {
        border-radius: 90%;
        padding: 0.42rem 0.82rem;
    }
}
