:root {
    --primary-color: #B59A6D;
    /* Elegant Champagne Gold */
    --primary-color-hover: #8C7355;
    --bg-color: #F7F2E8;
    /* Even Lighter Beige Bone */
    --text-color: #1A1A1A;
    /* Soft rich black */
    --text-muted: rgba(26, 26, 26, 0.7);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

/* Reset and Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 12px;
}

@media (max-width: 1040px),
(max-height: 650px) {
    html {
        font-size: 5px;
    }
}

@media (max-width: 924px),
(max-height: 578px) {
    html {
        font-size: 5px;
    }
}

@media (max-width: 739px),
(max-height: 505px) {
    html {
        font-size: 5px;
    }
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow: hidden;
    /* Important for full-page scroll-snap */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 51px;
    z-index: 10;
    /* Solid background behind the navigation menu to stand out clearly */
    background: var(--bg-color);
    transition: background var(--transition-speed) ease;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.69rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-color);
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 33px;
}

.nav-links li a {
    font-size: 1.01rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 3px;
    color: var(--text-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}



/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

/* Mobile Nav Active State */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Scroll Container */
.scroll-container {
    width: 100vw;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    position: relative;
    z-index: 5;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Responsive Visibility Helpers */
.hide-on-desktop {
    display: none !important;
}

/* Slide Styles */
.slide {
    width: 100vw;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    justify-content: flex-start;
    /* Moved to left */
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-left: 10%;
    /* Spacing from the left */
}

/* Overlay */
.overlay {
    /* Removed the global white gradient.
       If a very subtle darkening/lightening is needed later, it can go here.
       Currently completely transparent to show raw images. */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.sepia-overlay {
    backdrop-filter: sepia(60%) contrast(1.1) brightness(1.05);
    -webkit-backdrop-filter: sepia(60%) contrast(1.1) brightness(1.05);
    background: rgba(181, 154, 109, 0.15);
    /* Soft champagne gold wash */
}

#slide-1 {
    background-size: 120%;
    background-position: 20% center;
    /* 50% is center, 20% pulls the image rightward inside the frame */
}

/* Reusable Text Emphasis (Pulsing Lighter Blue) */
@keyframes pulseZoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
        /* The zoom */
    }

    100% {
        transform: scale(1);
    }
}

.highlight-text {
    color: #003061;
    /* Lighter Blue */
    font-weight: 700;
    display: inline-block;
    animation: pulseZoom 2.5s ease-in-out infinite;
    /* Continuous pulsing zoom */
}

/* Service Page Approval Flowchart */
.flowchart-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.flowchart-step {
    background: rgba(250, 250, 250, 0.5);
    padding: 10px 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 0 1 auto;
    width: fit-content;
}

.flowchart-step-title {
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.flowchart-step-desc {
    font-size: 0.85em;
    opacity: 0.8;
    color: var(--text-color);
    display: block;
}

.flowchart-arrow {
    font-size: 1.5rem;
    opacity: 0.5;
    color: var(--primary-color);
    font-weight: 300;
}

/* Specific animation for Our Service page subtitles */
.service-subtitle-animate {
    display: inline-block;
    animation: pulseZoom 2.5s ease-in-out infinite;
}

/* Specific animation for Our Story page titles */
.story-title-animate {
    display: inline-block;
    animation: pulseZoom 2.5s ease-in-out infinite;
}

/* We can remove the hover since it animates continuously, 
   but we'll leave a subtle brightness bump if hovered */
.highlight-text:hover {
    filter: brightness(1.2);
}

/* Content */
.content {
    position: relative;
    z-index: 2;
    text-align: left;
    /* Left aligned text */
    max-width: 446px;
    transition: transform var(--transition-speed) ease;
}

.content:hover {
    transform: scale(1.06);
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.87rem, 7.66vh, 5.25rem);
    /* Increased base title size */
    font-weight: 700;
    margin-bottom: min(2.60vh, 20px);
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-color);
}

/* Specific class to make Hunson Atelier massive */
.hero-brand {
    font-size: clamp(3.85rem, 11.49vh, 7.66rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: min(3.47vh, 24px);
    color: var(--text-color);
}

.subtext {
    font-size: clamp(1.05rem, 2.38vh, 1.43rem);
    /* Increased subtext size */
    font-weight: 500;
    /* Increased weight slightly for legibility on raw image */
    letter-spacing: 0.5px;
    line-height: 1.6;
    color: var(--text-color);
}

.inline-link {
    color: var(--primary-color);
    border-bottom: 1px solid transparent;
    transition: border-bottom var(--transition-speed);
    font-weight: 500;
}

.inline-link:hover {
    border-bottom: 1px solid var(--primary-color);
}

.discover-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    /* Dark text for contrast on white background */
    padding: min(1.30vh, 12px) min(2.60vw, 24px);
    margin-top: min(1.72vh, 16px);
    font-family: var(--font-heading);
    font-size: clamp(0.79rem, 1.76vh, 0.97rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.discover-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

/* Micro Animations - animate from left now */
.fade-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Form - Lighter tone styling */
.form-container {
    max-width: 485px;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: min(1.72vh, 16px);
    margin-top: min(2.60vh, 24px);
    text-align: left;
}

.form-row {
    display: flex;
    width: 100%;
    gap: 33px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group.full-width {
    flex: 100%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: clamp(0.66rem, 1.32vh, 0.73rem);
    padding: min(1.30vh, 8px) 0;
    transition: border-color var(--transition-speed) ease, outline var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.contact-form select,
.contact-form input[type="datetime-local"] {
    color: var(--text-muted);
    cursor: pointer;
}

.contact-form select option {
    background-color: #fff;
    color: var(--text-color);
}

.contact-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--transition-speed);
}

.contact-form input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.cta-button {
    background: var(--text-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(0.86rem, 1.91vh, 1.05rem);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--text-color);
    padding: min(1.72vh, 12px) min(3.47vw, 33px);
    margin: min(2.60vh, 16px) auto 0 auto;
    display: block;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- Magazine Layout (Service Page) --- */
.magazine-slide {
    width: 100vw;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    /* Allow canvas z-index 1 to show through */
    overflow: hidden;
}

.slide-wrapper {
    position: relative;
    width: 100vw;
    max-width: 1161px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.magazine-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 650px;
    width: 65vw;
    /* Keeps the text box relatively smaller compared to the wrapper */
    background: rgba(247, 242, 232, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: min(5.86vh, 68px) min(4.39vw, 54px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.magazine-content:not(.tiltable):hover {
    transform: scale(1.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.magazine-title {
    font-family: var(--font-heading);
    font-size: clamp(2.38rem, 5.73vh, 3.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: min(3.47vh, 51px);
    text-align: center;
}

.magazine-section {
    margin-bottom: min(3.47vh, 67px);
    text-align: center;
}

.magazine-section:last-child {
    margin-bottom: 0;
}

.magazine-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.16rem, 2.87vh, 1.72rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: min(1.30vh, 16px);
    letter-spacing: 0px;
}

.magazine-context {
    font-family: var(--font-body);
    font-size: clamp(1.03rem, 2.06vh, 1.26rem);
    /* Scaled up 20% from (0.86rem, 1.72vh, 1.05rem) */
    font-weight: 400;
    /* Increased from 300 to make it bolder */
    line-height: clamp(1.68, 2.59vh, 2.16);
    /* Scaled up 20% from (1.4, 2.16vh, 1.8) */
    color: #444;
    /* Slightly softer than pure black for dense reading */
    letter-spacing: 0.2px;
}

/* Decorative Images */
.dec-img {
    position: absolute;
    z-index: 1;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s ease-out;
    border-radius: 4px;
    width: clamp(90px, 15vw, 210px);
    max-height: 35vh;
    /* Keep heights reasonable */
}

.dec-img:hover {
    transform: scale(1.02);
}

/* Slide 1 Positions */
.img-pos-1 {
    top: 30%;
    /* Raised further upwards */
    transform: translateY(-50%);
    left: -12%;
    /* Offset negative left to negate width increase inwards */
    width: clamp(120px, 18vw, 250px);
}

.img-pos-2 {
    top: 10%;
    right: -5%;
}

.img-pos-3 {
    bottom: 10%;
    right: -5%;
}

/* Slide 2 Positions */
.img-pos-4 {
    top: 30%;
    /* Raised further upwards */
    transform: translateY(-50%);
    right: -12%;
    /* Offset negative right to negate width increase inwards */
    width: clamp(120px, 18vw, 250px);
}

#luxury-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    /* Helps the light bleed naturally into dark backgrounds */
    opacity: 0.8;
    /* Slight overall dampening to keep it extremely subtle */
    /* Put above the white background but below text (z-index 5) */
}

/* 3D Tilt Elements */
.tiltable {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out;
}

.tiltable:hover {
    transition: transform 0.05s ease-out;
    /* Snappier tracking when hovered */
}


.img-pos-5 {
    top: 15%;
    left: -5%;
}

.img-pos-6 {
    bottom: 15%;
    left: -5%;
}

/* Slide 3 Positions */
.img-pos-7 {
    top: 45%;
    transform: translateY(-50%);
    left: -5%;
}

.img-pos-8 {
    top: 10%;
    right: -5%;
}

.img-pos-9 {
    bottom: 5%;
    right: -5%;
}

/* Responsive Design */


/* --- Demo Page --- */
.password-container {
    padding-top: 17.34vh;
    text-align: center;
    background-color: transparent;
    /* Allow canvas z-index 1 to show through */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.password-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(1.72vh, 16px);
    background: rgba(247, 242, 232, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: min(7.32vh, 68px) min(5.86vw, 54px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    width: 85vw;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.password-form:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.password-form input {
    width: 100%;
    padding: 18px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-family: var(--font-body);
    font-size: 1.13rem;
    color: var(--text-color);
    text-align: center;
    letter-spacing: 2px;
}

.password-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.password-form button {
    width: 100%;
}

.audio-player-container {
    background: rgba(247, 242, 232, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: min(5.86vh, 54px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 85vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-audio {
    width: 100%;
    max-width: 296px;
}

/* --- Demo Access Pages --- */
.demo-content-box {
    background: rgba(247, 242, 232, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: min(7.32vh, 85px) min(5.86vw, 68px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    width: 85vw;
    max-width: 900px;
    height: 85vh;
    max-height: 85vh;
    /* Ensure it stays within the frame of the screen */
    overflow: hidden;
    /* No scrolling on the main box, let inner content scroll */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
}

.demo-content-box::-webkit-scrollbar {
    display: none;
}

.demo-title {
    font-family: var(--font-heading);
    font-size: clamp(1.91rem, 4.80vh, 3.35rem);
    color: var(--text-color);
    margin-bottom: min(2.60vh, 24px);
    text-transform: uppercase;
    text-align: center;
}

.demo-credits-grid {
    display: flex;
    gap: min(3.47vw, 41px);
    width: 100%;
    margin-top: 16px;
    justify-content: center;
}

.credit-column {
    flex: 1;
    max-width: 372px;
    text-align: center;
}

.credit-song-title {
    font-family: var(--font-heading);
    font-size: clamp(1.43rem, 2.87vh, 1.91rem);
    color: var(--primary-color);
    margin-bottom: min(1.72vh, 16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 11px;
}

.credit-item {
    margin-bottom: min(1.72vh, 16px);
}

.credit-role {
    font-family: var(--font-heading);
    font-size: clamp(0.86rem, 1.72vh, 0.95rem);
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.credit-name {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.91vh, 1.16rem);
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-color);
}

.credit-accolades {
    font-family: var(--font-body);
    font-size: clamp(0.77rem, 1.43vh, 0.86rem);
    color: var(--text-muted);
    line-height: 1.4;
}

.demo-audio-wrapper {
    margin-bottom: min(2.60vh, 24px);
    width: 100%;
    display: flex;
    justify-content: center;
}

.demo-split-layout {
    display: flex;
    gap: min(3.47vw, 41px);
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.demo-story,
.demo-lyrics {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.demo-section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.8vh, 1.8rem);
    margin-bottom: min(1.72vh, 16px);
    color: var(--primary-color);
    text-align: center;
}

.demo-text-content {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.2vh, 1.4rem);
    line-height: clamp(1.6, 2.5vh, 2.0);
    color: var(--text-color);
    flex: 1;
    overflow-y: auto;
    padding-right: 11px;
    /* Soft padding to prevent text hitting the edge */
    position: relative;

    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.demo-text-content::-webkit-scrollbar {
    display: none;
}

.demo-text-content p {
    margin-bottom: 1em;
}

.demo-text-content p:last-child {
    margin-bottom: 0;
}

/* Karaoke Lyrics styles */
.lyric-line {
    opacity: 0.3;
    /* Dimmed by default until the song reaches this point */
    transition: opacity 0.3s ease, color 0.3s ease;
}

.lyric-line.active-lyric {
    opacity: 1;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(181, 154, 109, 0.3);
    /* Slight glow effect */
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide mobile-only headers on desktop */
.mobile-header-img {
    display: none;
}

/* Responsive Media Query for Tablets and Mobile */
@media (max-width: 768px) {
    html {
        /* Prevents extreme shrinking from max-height media queries */
        font-size: 14px !important;
    }

    /* Mobile visibility toggle for split slides */
    .hide-on-mobile {
        display: none !important;
    }

    .hide-on-desktop {
        display: flex !important;
        /* .magazine-slide uses flex */
    }

    /* Shrinks specific mobile-only text boxes by 15% */
    .mobile-shrunk-box {
        width: 76.5vw !important;
        /* 90vw * 0.85 */
        padding: 20.4px 17px !important;
        /* 24px 20px * 0.85 */
    }

    .mobile-shrunk-box .magazine-title {
        font-size: calc(clamp(24px, 7vw, 32px) * 0.85) !important;
    }

    .mobile-shrunk-box .magazine-subtitle {
        font-size: calc(clamp(16px, 5vw, 20px) * 0.85) !important;
    }

    .mobile-shrunk-box .magazine-context {
        font-size: calc(15px * 0.85) !important;
        line-height: 1.6 !important;
    }

    /* Shrinks specific Our Story mobile text boxes by 20% */
    .story-shrunk-box {
        width: 72vw !important;
        /* 90vw * 0.80 */
        padding: 19.2px 16px !important;
        /* 24px 20px * 0.80 */
    }

    .story-shrunk-box .magazine-title {
        font-size: calc(clamp(24px, 7vw, 32px) * 0.80) !important;
    }

    .story-shrunk-box .magazine-context {
        font-size: calc(15px * 0.80) !important;
        line-height: 1.6 !important;
    }

    /* Shrinks specific Our Pros mobile text boxes by 20% */
    .pros-shrunk-box {
        width: 72vw !important;
        /* 90vw * 0.80 */
        padding: 19.2px 16px !important;
        /* 24px 20px * 0.80 */
    }

    .pros-shrunk-box .magazine-title {
        font-size: calc(clamp(24px, 7vw, 32px) * 0.80) !important;
    }

    .pros-shrunk-box .magazine-subtitle {
        font-size: calc(clamp(16px, 5vw, 20px) * 0.80) !important;
    }

    .pros-shrunk-box .magazine-context {
        font-size: calc(15px * 0.80) !important;
        line-height: 1.6 !important;
    }

    .pros-shrunk-box .grammy-stats {
        font-size: calc(1.5rem * 0.80) !important;
    }

    .slide {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    #slide-1 {
        background-size: cover !important;
        /* Scale to fill the whole page */
        background-position: 15% center !important;
        /* Move slightly left of center */
    }

    #slide-3,
    #slide-4 {
        background-position: left center !important;
        /* Move left */
    }

    .overlay {
        background: transparent;
    }

    .title {
        font-size: clamp(28px, 8vw, 36px) !important;
    }

    .hero-brand {
        font-size: clamp(38px, 12vw, 50px) !important;
    }

    .subtext {
        font-size: clamp(14px, 4vw, 18px) !important;
    }

    .navbar {
        padding: 15px 5vw !important;
        flex-direction: row;
        /* Keep logo and hamburger inline */
        justify-content: space-between;
        background: var(--bg-color);
        /* Ensure background remains solid */
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        /* Slide in from the right rather than left for better UX */
        top: 66px;
        /* Below the navbar */
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100dvh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 10px 15px rgba(0, 0, 0, 0.05);
        padding-top: 40px;
        z-index: 9;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li a {
        font-size: 18px !important;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .nav-links.active {
        right: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .cta-button {
        width: 100%;
        font-size: 16px !important;
        padding: 15px !important;
    }

    .discover-btn {
        width: 100%;
        text-align: center;
        font-size: 15px !important;
        padding: 12px !important;
    }

    .magazine-title {
        font-size: clamp(24px, 7vw, 32px) !important;
    }

    .magazine-subtitle {
        font-size: clamp(16px, 5vw, 20px) !important;
    }

    .magazine-context {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .magazine-content {
        padding: 24px 20px !important;
        margin: 0 !important;
        width: 90vw !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }

    .dec-img {
        display: none !important;
        /* Hide thoroughly on mobile as requested */
    }

    /* Full-width header images exclusively for the top of mobile text boxes */
    .mobile-header-img {
        display: block !important;
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .demo-content-box {
        width: 90vw !important;
        padding: 24px 20px !important;
        height: 90vh !important;
        max-height: 90vh !important;
    }

    /* Shrinks specific Demo text boxes by 20% and centers them */
    .demo-shrunk-box {
        width: 72vw !important;
        /* 90vw * 0.80 */
        padding: 19.2px 16px !important;
        /* 24px 20px * 0.80 */
        height: 72vh !important;
        /* 90vh * 0.80 */
        max-height: 72vh !important;
        justify-content: center !important;
        /* Vertically center the content */
    }

    .demo-shrunk-box .demo-title {
        font-size: calc(clamp(1.91rem, 4.80vh, 3.35rem) * 0.80) !important;
    }

    .demo-shrunk-box .credit-song-title {
        font-size: calc(clamp(1.43rem, 2.87vh, 1.91rem) * 0.80) !important;
        margin-bottom: calc(min(1.72vh, 16px) * 0.80) !important;
    }

    .demo-shrunk-box .credit-role {
        font-size: calc(clamp(0.86rem, 1.72vh, 0.95rem) * 0.80) !important;
    }

    .demo-shrunk-box .credit-name {
        font-size: calc(clamp(0.95rem, 1.91vh, 1.16rem) * 0.80) !important;
    }

    .demo-shrunk-box .credit-accolades {
        font-size: calc(clamp(0.77rem, 1.43vh, 0.86rem) * 0.80) !important;
    }

    .demo-text-content {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .demo-section-heading {
        font-size: 20px !important;
    }

    .demo-credits-grid,
    .demo-split-layout {
        flex-direction: column;
        gap: 16px;
    }

    .demo-story,
    .demo-lyrics {
        flex: 1;
        /* Takes equal height in flex column */
        height: 50%;
        min-height: unset;
        /* Remove the 40vh default */
        overflow-y: auto;
        /* Enable independent internal scrolling */
        padding-right: 10px;
        /* Space for the scrollbar */
    }

    .password-form {
        width: 90vw !important;
        padding: 30px 20px !important;
    }

    .password-form input {
        font-size: 16px !important;
    }

    .audio-player-container {
        width: 90vw !important;
        padding: 24px 20px !important;
    }

    .flowchart-container {
        flex-direction: column;
    }

    .flowchart-arrow {
        transform: rotate(90deg);
        margin: -5px 0;
    }
}