/* ==============================
   Section heading
============================== */

.section-heading {
    text-align: center;
    margin: 70px auto 30px;
}

.section-kicker {
    color: #6c63ff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 2.2rem;
    color: #10143f;
    margin: 0;
}

/* ==============================
   Student Showcase Section
============================== */

.student-showcase {
    max-width: 1100px;
    margin: 80px auto 60px;
    padding: 50px;
    border-radius: 28px;
    background: linear-gradient(135deg, #10143f 0%, #2d1b69 45%, #6c63ff 100%);
    color: white;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 25px 60px rgba(40, 45, 120, 0.25);
}

.student-showcase .section-kicker {
    color: #9ffcff;
}

.student-showcase h2 {
    font-size: 2.3rem;
    margin: 8px 0 16px;
    color: white;
}

.student-showcase p {
    color: #e7e9ff;
    line-height: 1.7;
    max-width: 620px;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.showcase-card span {
    display: inline-block;
    background: #fff;
    color: #6c63ff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.showcase-card h3 {
    color: white;
    font-size: 1.6rem;
    margin: 0 0 12px;
}

.showcase-card p {
    color: #f4f4ff;
    margin: 0;
}

/* ==============================
   Extra polish
============================== */

.learning {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 30px;
}

.learning-grid {
    margin-top: 30px;
}

.features {
    margin-bottom: 30px;
}

/* ==============================
   Mobile Responsive
============================== */

@media (max-width: 900px) {
    .student-showcase {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        margin: 60px 20px 50px;
    }

    .student-showcase h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .section-heading {
        margin: 50px auto 24px;
        padding: 0 18px;
    }

    .section-heading h2 {
        font-size: 1.7rem;
    }

    .student-showcase {
        padding: 30px 22px;
        border-radius: 22px;
        margin: 45px 16px;
    }

    .student-showcase h2 {
        font-size: 1.7rem;
    }

    .student-showcase p {
        font-size: 0.95rem;
    }

    .showcase-card {
        padding: 22px;
    }

    .showcase-card h3 {
        font-size: 1.35rem;
    }
}


/* =====================================================
   PIXEL ROBOT HERO AREA
===================================================== */

.hero-studio {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: visible;
}

.pixel-background-glow {
    position: absolute;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(224, 217, 255, 0.78) 38%,
            rgba(184, 201, 255, 0.35) 64%,
            transparent 76%
        );
    filter: blur(8px);
    z-index: -3;
    animation: pixelGlowPulse 5s ease-in-out infinite;
}

.pixel-robot-wrapper {
    position: relative;
    width: min(430px, 82vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    animation: pixelFloat 4.5s ease-in-out infinite;
}

.pixel-image-frame {
    position: relative;
    width: 82%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.98),
        rgba(238, 234, 255, 0.92)
    );
    border: 7px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 30px 70px rgba(87, 68, 188, 0.25),
        0 12px 30px rgba(83, 153, 255, 0.18),
        inset 0 0 30px rgba(255, 255, 255, 0.75);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.pixel-image-frame:hover {
    transform: scale(1.035) rotate(-1deg);
    box-shadow:
        0 38px 85px rgba(87, 68, 188, 0.32),
        0 16px 38px rgba(83, 153, 255, 0.24),
        inset 0 0 35px rgba(255, 255, 255, 0.85);
}

.pixel-robot-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.pixel-image-frame:hover .pixel-robot-image {
    transform: scale(1.08);
}

.pixel-image-shine {
    position: absolute;
    top: -30%;
    left: -80%;
    width: 42%;
    height: 170%;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.48),
        transparent
    );
    transform: rotate(22deg);
    animation: pixelShine 6s ease-in-out infinite;
}

.pixel-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.pixel-ring-one {
    width: 95%;
    height: 95%;
    border: 2px solid rgba(142, 110, 255, 0.26);
    animation: ringRotate 18s linear infinite;
}

.pixel-ring-two {
    width: 108%;
    height: 108%;
    border: 1px dashed rgba(66, 177, 255, 0.28);
    animation: ringRotateReverse 24s linear infinite;
}

/* =====================================================
   DM STUDIO AI — BRIGHTER PIXEL ORBIT LIGHT BALLS
   ===================================================== */

.pixel-ring-one::before,
.pixel-ring-two::after {
    content: "";
    position: absolute;

    width: 16px;
    height: 16px;
    border-radius: 50%;

    background: radial-gradient(
        circle at 35% 35%,
        #ffffff 0%,
        #e9ffff 28%,
        #8ef3ff 55%,
        #33d6ff 78%,
        #1495ff 100%
    );

    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.95),
        0 0 14px rgba(110, 240, 255, 0.95),
        0 0 28px rgba(0, 217, 255, 0.75),
        0 0 42px rgba(118, 92, 255, 0.35);

    pointer-events: none;
}

.pixel-ring-one::before {
    top: 8%;
    left: 18%;
}

.pixel-ring-two::after {
    right: 7%;
    bottom: 22%;
}

.pixel-shadow {
    position: absolute;
    bottom: 5%;
    width: 48%;
    height: 30px;
    border-radius: 50%;
    background: rgba(85, 76, 180, 0.2);
    filter: blur(17px);
    z-index: -1;
    animation: pixelShadow 4.5s ease-in-out infinite;
}

/* =====================================================
   ORBITING CREATIVE ICONS
===================================================== */

.creative-orbit {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.orbit-item {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 14px 30px rgba(61, 49, 139, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    animation: orbitItemFloat 4s ease-in-out infinite;
}

.orbit-video {
    top: 10%;
    left: 17%;
}

.orbit-design {
    top: 19%;
    right: 11%;
    animation-delay: -1s;
}

.orbit-mobile {
    bottom: 17%;
    right: 12%;
    animation-delay: -2s;
}

.orbit-audio {
    bottom: 11%;
    left: 16%;
    animation-delay: -3s;
}

/* =====================================================
   FLOATING INFORMATION CARDS
===================================================== */

.floating-card {
    position: absolute;
    z-index: 8;
    padding: 16px 18px;
    border-radius: 20px;
    color: #24204f;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 20px 45px rgba(52, 42, 124, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.floating-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.98rem;
    color: #24204f;
}

.floating-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #686487;
}

.card-one {
    left: -2%;
    top: 24%;
    width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: cardFloatOne 5s ease-in-out infinite;
}

.floating-card-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #eee6ff, #dff6ff);
}

.card-two {
    right: -3%;
    bottom: 19%;
    width: 230px;
    animation: cardFloatTwo 5.5s ease-in-out infinite;
}

.progress-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.progress-card-heading span {
    font-size: 0.84rem;
    font-weight: 800;
    color: #7658e8;
}

.progress-track {
    width: 100%;
    height: 8px;
    margin: 11px 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8e6f5;
}

.progress-fill {
    width: 83%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7962ed, #42c8ff);
    box-shadow: 0 0 12px rgba(103, 103, 239, 0.4);
    animation: progressEntrance 1.5s ease both;
}

.pixel-status {
    position: absolute;
    bottom: 4%;
    left: 50%;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: #4f4b73;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(60, 47, 126, 0.12);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.pixel-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #38c987;
    box-shadow: 0 0 0 5px rgba(56, 201, 135, 0.13);
    animation: statusPulse 2s ease-in-out infinite;
}

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes pixelFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(0.8deg);
    }
}

@keyframes pixelShadow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.58;
    }

    50% {
        transform: scale(0.82);
        opacity: 0.34;
    }
}

@keyframes pixelGlowPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes pixelShine {
    0%,
    65% {
        left: -80%;
    }

    85%,
    100% {
        left: 135%;
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ringRotateReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes orbitItemFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(4deg);
    }
}

@keyframes cardFloatOne {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cardFloatTwo {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(11px);
    }
}

@keyframes progressEntrance {
    from {
        width: 0;
    }

    to {
        width: 83%;
    }
}

@keyframes statusPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.82);
        opacity: 0.7;
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {
    .hero-studio {
        min-height: 520px;
        width: 100%;
    }

    .pixel-robot-wrapper {
        width: min(410px, 72vw);
    }

    .card-one {
        left: 1%;
    }

    .card-two {
        right: 1%;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {
    .hero-studio {
        min-height: 500px;
        margin-top: 12px;
        overflow: hidden;
    }

    .pixel-background-glow {
        width: 380px;
        height: 380px;
    }

    .pixel-robot-wrapper {
        width: min(360px, 88vw);
        transform-origin: center;
    }

    .pixel-image-frame {
        width: 88%;
        border-width: 5px;
    }

    .orbit-item {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 1.15rem;
    }

    .orbit-video {
        top: 7%;
        left: 7%;
    }

    .orbit-design {
        top: 10%;
        right: 7%;
    }

    .orbit-mobile {
        bottom: 18%;
        right: 5%;
    }

    .orbit-audio {
        bottom: 18%;
        left: 5%;
    }

    .card-one {
        top: auto;
        bottom: 2%;
        left: 4%;
        width: 48%;
        min-width: 165px;
        padding: 12px;
    }

    .card-one .floating-card-icon {
        display: none;
    }

    .card-two {
        right: 4%;
        bottom: 2%;
        width: 43%;
        min-width: 150px;
        padding: 12px;
    }

    .floating-card strong {
        font-size: 0.82rem;
    }

    .floating-card p {
        font-size: 0.7rem;
    }

    .pixel-status {
        display: none;
    }
}

/* =====================================================
   VERY SMALL DEVICES
===================================================== */

@media (max-width: 430px) {
    .hero-studio {
        min-height: 450px;
    }

    .pixel-robot-wrapper {
        width: 340px;
        max-width: 94vw;
    }

    .pixel-ring-two {
        width: 101%;
        height: 101%;
    }

    .card-one,
    .card-two {
        bottom: 3%;
        min-width: 0;
    }

    .card-one {
        left: 3%;
        width: 46%;
    }

    .card-two {
        right: 3%;
        width: 46%;
    }

    .progress-card-heading span {
        font-size: 0.72rem;
    }
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    .pixel-robot-wrapper,
    .pixel-shadow,
    .pixel-background-glow,
    .pixel-image-shine,
    .pixel-ring,
    .orbit-item,
    .floating-card,
    .pixel-status-dot {
        animation: none;
    }
}




.pixel-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .pixel-image {
        max-width:100%;
    }
}


/* =========================================================
   MEET PIXEL - SUPER WOW SEND-FRIENDLY ANIMATION
   Add this at the VERY BOTTOM of assets/css/home-style.css
========================================================= */

.intro-hero-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.intro-hero-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 65px rgba(45, 52, 120, 0.17);
}

.intro-hero-card .character-circle {
    position: relative;
    width: 240px !important;
    height: 240px !important;
    max-width: 240px !important;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: visible;
    z-index: 3;
    animation: introPixelFloat 4s ease-in-out infinite;
}

.intro-hero-card .character-circle::before {
    content: "";
    position: absolute;
    inset: -13px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #7768ff,
        #48c8ff,
        #59e2bb,
        #ffd166,
        #ff79c6,
        #7768ff
    );
    opacity: 0.68;
    filter: blur(1px);
    z-index: -2;
    animation: introHaloSpin 9s linear infinite;
}

.intro-hero-card .character-circle::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 18px 42px rgba(72, 82, 170, 0.22),
        0 0 0 7px rgba(255, 255, 255, 0.65);
    z-index: -1;
}

.intro-hero-card .character-circle .pixel-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    animation: introPixelPulse 4s ease-in-out infinite;
}

.pixel-speech-bubble {
    position: absolute;
    top: -28px;
    left: -52px;
    z-index: 10;
    padding: 10px 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6c63ff, #36bfe8);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow:
        0 12px 28px rgba(76, 88, 190, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform-origin: bottom right;
    animation: introBubbleWow 5s ease-in-out infinite;
}

.pixel-speech-bubble::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -6px;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #43b8e6;
    transform: rotate(45deg);
    z-index: -1;
}

.pixel-intro-orbit {
    position: absolute;
    z-index: 8;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 12px 28px rgba(55, 62, 145, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 1.18rem;
    pointer-events: none;
}

.intro-orbit-video {
    top: 12px;
    right: -24px;
    animation: introOrbitVideo 5.2s ease-in-out infinite;
}

.intro-orbit-design {
    top: 52%;
    right: -34px;
    animation: introOrbitDesign 4.7s ease-in-out infinite;
}

.intro-orbit-audio {
    bottom: 8px;
    left: -25px;
    animation: introOrbitAudio 5.4s ease-in-out infinite;
}

.intro-orbit-camera {
    bottom: -20px;
    right: 32px;
    animation: introOrbitCamera 4.9s ease-in-out infinite;
}

.intro-hero-card:hover .pixel-image {
    filter: saturate(1.08) brightness(1.02);
}

@keyframes introPixelFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(-0.8deg);
    }

    50% {
        transform: translateY(-11px) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) rotate(0.8deg);
    }
}

@keyframes introPixelPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

@keyframes introHaloSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes introBubbleWow {
    0%, 8%, 100% {
        opacity: 0;
        transform: translateY(8px) scale(0.75) rotate(-5deg);
    }

    14% {
        opacity: 1;
        transform: translateY(-3px) scale(1.08) rotate(2deg);
    }

    19%, 70% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }

    76% {
        opacity: 1;
        transform: translateY(-5px) scale(1.04);
    }

    84% {
        opacity: 0;
        transform: translateY(-12px) scale(0.88);
    }
}

@keyframes introOrbitVideo {
    0%, 100% {
        transform: translate(0, 0) rotate(-6deg) scale(1);
    }

    50% {
        transform: translate(7px, -12px) rotate(7deg) scale(1.10);
    }
}

@keyframes introOrbitDesign {
    0%, 100% {
        transform: translate(0, 0) rotate(5deg) scale(1);
    }

    50% {
        transform: translate(10px, 8px) rotate(-8deg) scale(1.12);
    }
}

@keyframes introOrbitAudio {
    0%, 100% {
        transform: translate(0, 0) rotate(-4deg) scale(1);
    }

    50% {
        transform: translate(-7px, 10px) rotate(8deg) scale(1.10);
    }
}

@keyframes introOrbitCamera {
    0%, 100% {
        transform: translate(0, 0) rotate(4deg) scale(1);
    }

    50% {
        transform: translate(7px, 8px) rotate(-7deg) scale(1.10);
    }
}

@media (max-width: 600px) {

    .intro-hero-card .character-circle {
        width: 190px !important;
        height: 190px !important;
        max-width: 190px !important;
        margin-bottom: 20px;
    }

    .pixel-speech-bubble {
        top: -22px;
        left: -25px;
        padding: 8px 11px;
        font-size: 0.72rem;
    }

    .pixel-intro-orbit {
        width: 35px;
        height: 35px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .intro-orbit-video {
        right: -13px;
    }

    .intro-orbit-design {
        right: -18px;
    }

    .intro-orbit-audio {
        left: -14px;
    }

    .intro-orbit-camera {
        right: 24px;
        bottom: -16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .intro-hero-card,
    .intro-hero-card .character-circle,
    .intro-hero-card .character-circle::before,
    .intro-hero-card .character-circle .pixel-image,
    .pixel-speech-bubble,
    .pixel-intro-orbit {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .pixel-speech-bubble {
        opacity: 1;
    }
}

/* =========================================================
   STORYBOARD POSTER + FULL-SCREEN VIEWER
========================================================= */

.poster-section {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.poster-card {
    width: 100%;
    box-sizing: border-box;
}

/* Poster wrapper gives us a clean zoom target */
.poster-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 24px auto 0;
}

/* Main poster */
.storyboard-poster {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    cursor: zoom-in;
    box-shadow:
        0 18px 45px rgba(35, 42, 100, 0.15),
        0 4px 14px rgba(35, 42, 100, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.storyboard-poster:hover,
.storyboard-poster:focus-visible {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 24px 55px rgba(35, 42, 100, 0.19),
        0 6px 18px rgba(35, 42, 100, 0.10);
    outline: none;
}


/* Clear SEND-friendly action button */
.poster-zoom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin: 18px auto 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #665cff, #26bfe3);
    box-shadow: 0 12px 28px rgba(86, 83, 218, 0.22);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.poster-zoom-button:hover,
.poster-zoom-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(86, 83, 218, 0.28);
    outline: 3px solid rgba(87, 189, 255, 0.28);
    outline-offset: 3px;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.poster-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
        radial-gradient(circle at top, rgba(86, 78, 180, 0.28), transparent 38%),
        rgba(8, 12, 38, 0.96);
    color: #ffffff;
}

.poster-lightbox.is-open {
    display: grid;
}

body.poster-lightbox-open {
    overflow: hidden;
}

.poster-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 12px 18px;
    background: rgba(10, 15, 48, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.poster-lightbox-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.poster-lightbox-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #7267ff, #38c5ef);
    box-shadow: 0 10px 24px rgba(67, 88, 210, 0.24);
}

.poster-lightbox-small {
    margin: 0 0 2px;
    color: #b9c5ff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.poster-lightbox-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1rem, 3vw, 1.35rem);
    line-height: 1.15;
}

.poster-lightbox-close {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #11184f;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.poster-lightbox-close:hover,
.poster-lightbox-close:focus-visible {
    transform: scale(1.08);
    background: #eef5ff;
    outline: 3px solid rgba(87, 189, 255, 0.45);
    outline-offset: 3px;
}

/* Scrollable poster area */
.poster-lightbox-scroll {
    min-height: 0;
    width: 100%;
    overflow: auto;
    padding: 22px;
    text-align: center;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.poster-lightbox-image {
    display: block;
    width: min(900px, 100%);
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.poster-lightbox-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 16px;
    color: #e7ebff;
    background: rgba(10, 15, 48, 0.90);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* =========================================================
   TABLET / MOBILE POSTER
========================================================= */

@media (max-width: 700px) {

    .poster-section {
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .poster-card {
        width: 100%;
        max-width: none;
        padding: 18px 10px 22px;
        border-radius: 22px;
        box-sizing: border-box;
    }

    .poster-image-wrapper {
        width: 100%;
        max-width: none;
        margin-top: 18px;
    }

    .storyboard-poster {
        width: 100%;
        max-width: none;
        border-radius: 12px;
    }

    .poster-hover-icon {
        right: 8px;
        bottom: 8px;
        width: 42px;
        height: 42px;
    }

    .poster-zoom-button {
        width: 100%;
        max-width: 320px;
        min-height: 52px;
        padding: 13px 16px;
        font-size: 0.95rem;
    }

    .poster-lightbox-header {
        min-height: 64px;
        padding: 9px 10px;
    }

    .poster-lightbox-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .poster-lightbox-close {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .poster-lightbox-scroll {
        padding: 14px 10px 22px;
        text-align: left;
    }

    /*
       Important:
       The poster deliberately becomes wider than the phone screen.
       Students can scroll horizontally and vertically to read
       the small text instead of having the poster squeezed.
    */
    .poster-lightbox-image {
        width: 720px;
        max-width: none;
        margin: 0;
        border-radius: 12px;
    }

    .poster-lightbox-help {
        min-height: 48px;
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}

/* Very small phones */
@media (max-width: 430px) {

    .poster-section {
        padding-inline: 5px;
    }

    .poster-card {
        padding-inline: 7px;
    }

    .poster-lightbox-image {
        width: 680px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .storyboard-poster,
    .poster-zoom-button,
    .poster-lightbox-close {
        transition: none !important;
        transform: none !important;
    }
}

/* =========================================================
   POSTER ZOOM BUTTON VISIBILITY
   Hidden on desktop / shown on tablet and mobile
========================================================= */

/* Desktop and larger screens */
@media (min-width: 769px) {
    .poster-zoom-button {
        display: none !important;
    }
}


/* =========================================
   POSTER ZOOM - DESKTOP
   Hide zoom indicators on large screens
========================================= */

@media (min-width: 769px) {

    .poster-zoom-hint,
    .poster-zoom-icon,
    .zoom-icon {
        display: none !important;
    }

    .poster-card::after {
        display: none !important;
        content: none !important;
    }

    .storyboard-poster {
        cursor: default;
    }
}

@media (max-width: 768px) {

    .poster-zoom-hint {
        display: block;
    }

    .storyboard-poster {
        cursor: zoom-in;
    }
}


/* =====================================================
   LARGE SCREEN - POSTER CLOSE / BACK BUTTON
===================================================== */

@media (min-width: 769px) {

    .poster-lightbox-close {
        position: fixed !important;

        top: 92px !important;
        right: 28px !important;

        z-index: 9999999 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 9px;

        width: auto !important;
        height: 50px !important;

        padding: 0 18px 0 14px !important;

        border: 2px solid rgba(255,255,255,0.9) !important;
        border-radius: 999px !important;

        background: #ffffff !important;
        color: #11184f !important;

        font-size: 28px !important;
        font-weight: 800;

        cursor: pointer;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        box-shadow:
            0 12px 35px rgba(0,0,0,0.35);

        transition:
            transform 0.25s ease,
            background 0.25s ease,
            color 0.25s ease;
    }


    /* Add text beside the existing X */

    .poster-lightbox-close::after {
        content: "Back to lesson";

        font-size: 0.9rem;
        font-weight: 800;

        white-space: nowrap;
    }


    /* Hover effect */

    .poster-lightbox-close:hover {
        transform: translateY(-2px) scale(1.05);

        background: linear-gradient(
            135deg,
            #6c63ff,
            #00bfe8
        ) !important;

        color: #ffffff !important;
    }
}


/* =========================================================
   DM STUDIO AI
   HOMEPAGE UPGRADE - NEW SECTIONS
   ========================================================= */


/* =========================================================
   GENERAL TEXT USED BY NEW HOMEPAGE SECTIONS
   ========================================================= */


/* This styles the small paragraph underneath a section title. */
.section-intro {
    /* Prevent the text from becoming too wide. */
    max-width: 720px;

    /* Centre the paragraph on the page. */
    margin: 10px auto 0;

    /* Centre the text. */
    text-align: center;

    /* Make paragraphs easier to read. */
    line-height: 1.7;

    /* Use a soft dark-blue/grey colour. */
    color: #5f6782;
}


/* =========================================================
   LEARNING PATHWAY BADGES
   Example: "Beginner Friendly"
   ========================================================= */


/* This styles the little label above each pathway title. */
.learning-level {
    /* Make the label behave like a small flexible badge. */
    display: inline-flex;

    /* Centre the text vertically. */
    align-items: center;

    /* Make the badge only as wide as its text. */
    width: fit-content;

    /* Add space underneath the badge. */
    margin-bottom: 10px;

    /* Add space inside the badge. */
    padding: 6px 11px;

    /* Make the badge rounded. */
    border-radius: 999px;

    /* Give it a soft purple background. */
    background: #f0edff;

    /* Purple text colour. */
    color: #5d50e9;

    /* Make the text slightly smaller. */
    font-size: 0.76rem;

    /* Make the text bold. */
    font-weight: 700;
}


/* Make pathway cards behave consistently. */
.learning-card {
    /* Allow content to be arranged vertically. */
    display: flex;

    /* Put items one underneath another. */
    flex-direction: column;

    /* Keep cards approximately the same height. */
    min-height: 270px;

    /* Allow smoother hover animation. */
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Lift the pathway card slightly when the mouse is over it. */
.learning-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(33, 41, 94, 0.12);
}


/* Make the pathway icon clearer. */
.learning-icon {
    /* Use a flexible icon box. */
    display: flex;

    /* Centre icon horizontally. */
    align-items: center;

    /* Centre icon vertically. */
    justify-content: center;

    /* Set icon box width. */
    width: 46px;

    /* Set icon box height. */
    height: 46px;

    /* Add space below icon. */
    margin-bottom: 12px;

    /* Round the icon background. */
    border-radius: 14px;

    /* Give icon a soft background. */
    background: #f2efff;

    /* Increase emoji/icon size. */
    font-size: 1.3rem;
}


/* Push the Begin Learning link toward the bottom of the card. */
.learning-card > a {
    margin-top: auto;
}


/* =========================================================
   LEARN IN FOUR SIMPLE STEPS
   ========================================================= */


/* Main wrapper around the four steps. */
.learning-process {
    /* Keep the section aligned with the rest of the homepage. */
    max-width: 1100px;

    /* Centre it and add vertical spacing. */
    margin: 90px auto;

    /* Add side space. */
    padding: 0 20px;
}


/* Container for the four learning cards. */
.learning-process-grid {
    /* Use CSS Grid. */
    display: grid;

    /* Create four equal columns. */
    grid-template-columns: repeat(4, 1fr);

    /* Space between the cards. */
    gap: 20px;

    /* Space between heading and cards. */
    margin-top: 38px;
}


/* One individual learning step. */
.learning-step {
    /* Needed for positioning the number badge. */
    position: relative;

    /* Give the card breathing room. */
    padding: 34px 24px 28px;

    /* Add a subtle border. */
    border: 1px solid rgba(91, 80, 230, 0.09);

    /* Rounded corners. */
    border-radius: 22px;

    /* White card background. */
    background: #ffffff;

    /* Centre all text. */
    text-align: center;

    /* Add soft shadow. */
    box-shadow:
        0 14px 35px rgba(31, 39, 89, 0.08);

    /* Smooth hover effect. */
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Move card slightly upwards on hover. */
.learning-step:hover {
    transform: translateY(-5px);

    box-shadow:
        0 22px 48px rgba(31, 39, 89, 0.13);
}


/* Number 1, 2, 3 or 4. */
.learning-step-number {
    /* Position it inside the card. */
    position: absolute;

    /* Distance from top. */
    top: 15px;

    /* Distance from left. */
    left: 16px;

    /* Use flex to centre number. */
    display: flex;

    /* Centre vertically. */
    align-items: center;

    /* Centre horizontally. */
    justify-content: center;

    /* Circle width. */
    width: 32px;

    /* Circle height. */
    height: 32px;

    /* Turn it into a circle. */
    border-radius: 50%;

    /* Purple background. */
    background:
        linear-gradient(
            135deg,
            #6c63ff,
            #4a7cff
        );

    /* White number. */
    color: #ffffff;

    /* Small bold number. */
    font-size: 0.82rem;
    font-weight: 800;

    /* Subtle glow. */
    box-shadow:
        0 7px 16px rgba(91, 80, 230, 0.25);
}


/* Large emoji above each step. */
.learning-step-icon {
    /* Put icon on its own line. */
    display: block;

    /* Space underneath. */
    margin-bottom: 18px;

    /* Larger icon. */
    font-size: 2rem;
}


/* Step title. */
.learning-step h3 {
    /* Remove unnecessary top margin. */
    margin: 0 0 10px;

    /* Main DM Studio AI dark colour. */
    color: #10143f;

    /* Title size. */
    font-size: 1.2rem;
}


/* Step description. */
.learning-step p {
    /* Remove default margin. */
    margin: 0;

    /* Softer text colour. */
    color: #616982;

    /* Improve readability. */
    line-height: 1.65;

    /* Slightly smaller than title. */
    font-size: 0.92rem;
}


/* =========================================================
   MEET PIXEL SECTION
   ========================================================= */


/* Main Pixel information section. */
.pixel-support-section {
    /* Use two columns. */
    display: grid;

    /* Text side is slightly larger. */
    grid-template-columns: 1.08fr 0.92fr;

    /* Space between both sides. */
    gap: 55px;

    /* Centre items vertically. */
    align-items: center;

    /* Keep same page width. */
    max-width: 1100px;

    /* Centre section with spacing. */
    margin: 90px auto;

    /* Internal spacing. */
    padding: 55px;

    /* Rounded container. */
    border-radius: 30px;

    /* Soft DM Studio AI background. */
    background:
        radial-gradient(
            circle at 87% 22%,
            rgba(119, 104, 255, 0.20),
            transparent 33%
        ),
        linear-gradient(
            135deg,
            #edf4ff 0%,
            #f4f0ff 55%,
            #eafbff 100%
        );

    /* Give the section depth. */
    box-shadow:
        0 20px 55px rgba(28, 36, 85, 0.09);
}


/* Meet Pixel main heading. */
.pixel-support-content h2 {
    /* Small spacing around heading. */
    margin: 8px 0 16px;

    /* Dark heading colour. */
    color: #10143f;

    /* Responsive title size. */
    font-size: clamp(2rem, 4vw, 3rem);
}


/* Main Pixel explanation paragraph. */
.pixel-support-content > p:not(.section-kicker) {
    /* Stop text becoming too wide. */
    max-width: 650px;

    /* Soft text colour. */
    color: #59627d;

    /* Comfortable reading height. */
    line-height: 1.75;

    /* Normal paragraph size. */
    font-size: 1rem;
}


/* Wrapper for Pixel benefit items. */
.pixel-help-list {
    /* Use grid. */
    display: grid;

    /* Two items per row. */
    grid-template-columns: repeat(2, minmax(0, 1fr));

    /* Space between items. */
    gap: 12px;

    /* Space above list. */
    margin-top: 28px;
}


/* One Pixel benefit. */
.pixel-help-list span {
    /* Allow icon/text alignment. */
    display: flex;

    /* Centre vertically. */
    align-items: center;

    /* Minimum height keeps boxes equal. */
    min-height: 48px;

    /* Internal spacing. */
    padding: 11px 14px;

    /* Rounded box. */
    border-radius: 13px;

    /* Semi-transparent white. */
    background: rgba(255, 255, 255, 0.78);

    /* Text colour. */
    color: #273057;

    /* Small readable text. */
    font-size: 0.9rem;

    /* Make benefits easy to scan. */
    font-weight: 650;

    /* Very light border. */
    border: 1px solid rgba(255, 255, 255, 0.8);
}


/* =========================================================
   PIXEL EXAMPLE CHAT CARD
   ========================================================= */


/* Dark card showing a sample Pixel conversation. */
.pixel-demo-card {
    /* Needed if decorative content is added later. */
    position: relative;

    /* Prevent content escaping rounded corners. */
    overflow: hidden;

    /* Internal spacing. */
    padding: 31px;

    /* Rounded corners. */
    border-radius: 25px;

    /* Premium purple background. */
    background:
        linear-gradient(
            145deg,
            #151340,
            #423398 62%,
            #7061ee
        );

    /* Stronger shadow to make card stand out. */
    box-shadow:
        0 25px 55px rgba(45, 35, 130, 0.25);
}


/* Ask Pixel badge. */
.pixel-demo-label {
    /* Make it badge-sized. */
    display: inline-flex;

    /* Add inside spacing. */
    padding: 7px 12px;

    /* Fully rounded badge. */
    border-radius: 999px;

    /* Transparent white background. */
    background: rgba(255, 255, 255, 0.15);

    /* White text. */
    color: #ffffff;

    /* Small text. */
    font-size: 0.82rem;

    /* Strong label. */
    font-weight: 750;
}


/* Example learner question. */
.pixel-demo-question {
    /* Add space above. */
    margin-top: 25px;

    /* Offset slightly to look like chat. */
    margin-left: 30px;

    /* Internal spacing. */
    padding: 16px 18px;

    /* Chat-bubble shape. */
    border-radius: 18px 18px 6px 18px;

    /* White background. */
    background: #ffffff;

    /* Dark text. */
    color: #18204b;

    /* Medium bold. */
    font-weight: 650;

    /* Readable text spacing. */
    line-height: 1.5;

    /* Small shadow. */
    box-shadow:
        0 12px 25px rgba(12, 16, 57, 0.15);
}


/* Example Pixel response. */
.pixel-demo-answer {
    /* Add space above response. */
    margin-top: 15px;

    /* Offset opposite direction. */
    margin-right: 30px;

    /* Internal space. */
    padding: 16px 18px;

    /* Opposite chat bubble shape. */
    border-radius: 18px 18px 18px 6px;

    /* Glass-like background. */
    background: rgba(255, 255, 255, 0.16);

    /* White text. */
    color: #ffffff;

    /* Comfortable reading spacing. */
    line-height: 1.55;

    /* Light border. */
    border: 1px solid rgba(255, 255, 255, 0.10);
}


/* =========================================================
   STUDENTS AND TEACHERS
   ========================================================= */


/* Main wrapper for student/teacher section. */
.user-paths {
    /* Match other page section widths. */
    max-width: 1100px;

    /* Centre section. */
    margin: 90px auto;

    /* Add horizontal room. */
    padding: 0 20px;
}


/* Two-column layout. */
.user-paths-grid {
    /* Use CSS Grid. */
    display: grid;

    /* Two equal columns. */
    grid-template-columns: repeat(2, 1fr);

    /* Space between cards. */
    gap: 24px;

    /* Space below heading. */
    margin-top: 40px;
}


/* Student or Teacher card. */
.user-path-card {
    /* Allows decorative elements later. */
    position: relative;

    /* Prevent decorative content leaving card. */
    overflow: hidden;

    /* Internal spacing. */
    padding: 37px;

    /* Subtle border. */
    border: 1px solid rgba(91, 80, 230, 0.09);

    /* Rounded card. */
    border-radius: 25px;

    /* White background. */
    background: #ffffff;

    /* Subtle shadow. */
    box-shadow:
        0 16px 40px rgba(29, 37, 87, 0.09);

    /* Smooth hover movement. */
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Hover effect. */
.user-path-card:hover {
    /* Lift card slightly. */
    transform: translateY(-5px);

    /* Increase shadow. */
    box-shadow:
        0 24px 52px rgba(29, 37, 87, 0.13);
}


/* Large Student / Teacher icon box. */
.user-path-icon {
    /* Use flex for centring. */
    display: flex;

    /* Icon box width. */
    width: 60px;

    /* Icon box height. */
    height: 60px;

    /* Centre vertically. */
    align-items: center;

    /* Centre horizontally. */
    justify-content: center;

    /* Space underneath. */
    margin-bottom: 21px;

    /* Rounded square. */
    border-radius: 18px;

    /* Light purple-blue background. */
    background:
        linear-gradient(
            135deg,
            #eeebff,
            #e6f8ff
        );

    /* Emoji size. */
    font-size: 1.75rem;
}


/* Student / Teacher card heading. */
.user-path-card h3 {
    /* Normal heading spacing. */
    margin: 0 0 12px;

    /* Main dark colour. */
    color: #10143f;

    /* Heading size. */
    font-size: 1.45rem;
}


/* Student / Teacher description. */
.user-path-card p {
    /* Space below paragraph. */
    margin: 0 0 22px;

    /* Soft body-text colour. */
    color: #606881;

    /* Comfortable line spacing. */
    line-height: 1.7;
}


/* Link inside cards. */
.user-path-card a {
    /* Make link behave nicely with arrow. */
    display: inline-flex;

    /* Centre its content. */
    align-items: center;

    /* Small space between text and arrow. */
    gap: 6px;

    /* Purple link colour. */
    color: #5c50f1;

    /* Make it clear and bold. */
    font-weight: 750;

    /* Remove default underline. */
    text-decoration: none;

    /* Smooth animation. */
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


/* Link hover effect. */
.user-path-card a:hover {
    /* Move link slightly right. */
    transform: translateX(4px);

    /* Darker purple. */
    color: #4034d7;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    /* Change four steps into two columns. */
    .learning-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Stack Meet Pixel vertically. */
    .pixel-support-section {
        grid-template-columns: 1fr;

        /* Reduce spacing a little. */
        gap: 35px;

        /* Reduce padding. */
        padding: 42px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /* Reduce section spacing on phones. */
    .learning-process {
        margin: 65px auto;
        padding: 0 18px;
    }


    /* One learning step per row. */
    .learning-process-grid {
        grid-template-columns: 1fr;
    }


    /* Make Pixel section fit a phone comfortably. */
    .pixel-support-section {
        /* Use single column. */
        grid-template-columns: 1fr;

        /* Reduce outside spacing. */
        margin: 65px 16px;

        /* Reduce inside spacing. */
        padding: 31px 23px;

        /* Slightly smaller corners. */
        border-radius: 23px;
    }


    /* One Pixel help item per row. */
    .pixel-help-list {
        grid-template-columns: 1fr;
    }


    /* Remove desktop chat offsets. */
    .pixel-demo-question,
    .pixel-demo-answer {
        margin-left: 0;
        margin-right: 0;
    }


    /* One Student / Teacher card per row. */
    .user-paths-grid {
        grid-template-columns: 1fr;
    }


    /* Reduce horizontal padding. */
    .user-paths {
        margin: 65px auto;
        padding: 0 18px;
    }


    /* Slightly smaller cards on phone. */
    .user-path-card {
        padding: 28px 24px;
    }


    /* Allow pathway cards to choose their natural height. */
    .learning-card {
        min-height: auto;
    }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    /* Remove animations/transitions for users who prefer less movement. */
    .learning-step,
    .learning-card,
    .user-path-card,
    .user-path-card a {
        transition: none;
    }


    /* Prevent hover movement. */
    .learning-step:hover,
    .learning-card:hover,
    .user-path-card:hover,
    .user-path-card a:hover {
        transform: none;
    }
}


/* =========================================================
   EDGE / CHROME PIXEL HERO RENDERING FIX - VERSION 2
   Removes backdrop-filter compositing glitches.
   ========================================================= */


/* ---------------------------------------------------------
   Ask Pixel + Project Progress cards
   --------------------------------------------------------- */

.floating-card {
    /* Disable the effect most likely causing the rectangular glitches. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    /* Stop the cards moving while we test the rendering. */
    animation: none !important;

    /* Remove transformed compositing layers. */
    transform: none !important;

    /* Use an almost-solid white background instead of blurred glass. */
    background: rgba(255, 255, 255, 0.96) !important;

    /* Keep the existing premium appearance. */
    border: 1px solid rgba(255, 255, 255, 0.98) !important;

    box-shadow:
        0 18px 42px rgba(52, 42, 124, 0.15) !important;
}


/* ---------------------------------------------------------
   Pixel status pill
   --------------------------------------------------------- */

.pixel-status {
    /* Remove backdrop blur here too. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    /* Give it a normal white background. */
    background: rgba(255, 255, 255, 0.96) !important;
}


/* ---------------------------------------------------------
   Background glow
   --------------------------------------------------------- */

.pixel-background-glow {
    /* Disable CSS blur because Edge may place it on a separate GPU layer. */
    filter: none !important;

    /* Keep glow static. */
    animation: none !important;
}


/* ---------------------------------------------------------
   Main robot layers
   --------------------------------------------------------- */

.pixel-robot-wrapper,
.pixel-image-frame,
.pixel-robot-image {
    /* Remove animated GPU transforms. */
    animation: none !important;
    transform: none !important;

    /* Do not ask the browser to create extra rendering layers. */
    will-change: auto !important;
}


/* Keep Pixel inside a clean circular frame. */
.pixel-image-frame {
    overflow: hidden !important;
    border-radius: 50% !important;
}


/* Ensure the image itself is displayed normally. */
.pixel-robot-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;

    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
}


/* ---------------------------------------------------------
   Shine effect
   --------------------------------------------------------- */

/* Disable this while testing because it creates another moving layer. */
.pixel-image-shine {
    display: none !important;
}


/* ---------------------------------------------------------
   Decorative rings
   --------------------------------------------------------- */

/* Keep the rings visible but temporarily stop rotation. */
.pixel-ring {
    animation: none !important;
}


/* ---------------------------------------------------------
   Orbiting icons
   --------------------------------------------------------- */

/* Keep icons visible but stop animation while testing. */
.orbit-item {
    animation: none !important;
}


/* =========================================================
   PIXEL HERO - STABLE VERSION
   Designed to work reliably in Chrome and Edge.
   ========================================================= */


/* ---------------------------------------------------------
   MAIN PIXEL AREA
   --------------------------------------------------------- */

.hero-studio {
    /* Allows Pixel elements to be positioned inside this area. */
    position: relative;

    /* Gives the Pixel area enough vertical space. */
    min-height: 560px;

    /* Centres Pixel. */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Allow decorative elements to remain visible. */
    overflow: visible;

    /* Avoid unnecessary browser compositing layers. */
    isolation: auto;
}


/* ---------------------------------------------------------
   SOFT BACKGROUND GLOW
   --------------------------------------------------------- */

.pixel-background-glow {
    /* Show the glow again. */
    display: block !important;

    /* Position behind Pixel. */
    position: absolute;

    /* Glow size. */
    width: 470px;
    height: 470px;

    /* Circular shape. */
    border-radius: 50%;

    /* Soft purple/blue glow without CSS blur. */
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(224, 217, 255, 0.75) 38%,
            rgba(184, 201, 255, 0.30) 64%,
            transparent 77%
        );

    /* Keep behind the robot. */
    z-index: -3;

    /* Do not animate it. */
    animation: none !important;

    /* Avoid GPU blur problems in Edge. */
    filter: none !important;
}


/* ---------------------------------------------------------
   PIXEL ROBOT WRAPPER
   --------------------------------------------------------- */

.pixel-robot-wrapper {
    /* Show Pixel normally. */
    display: flex !important;

    /* Needed for rings and image positioning. */
    position: relative;

    /* Responsive size. */
    width: min(430px, 82vw);

    /* Keep it square. */
    aspect-ratio: 1;

    /* Centre the robot. */
    align-items: center;
    justify-content: center;

    /* Place robot above the rings. */
    z-index: 4;

    /* No animation because this caused rendering problems. */
    animation: none !important;

    /* No moving transform layer. */
    transform: none !important;

    /* Let the browser manage rendering normally. */
    will-change: auto !important;
}


/* ---------------------------------------------------------
   CIRCULAR PIXEL FRAME
   --------------------------------------------------------- */

.pixel-image-frame {
    /* Show the circular frame. */
    display: block !important;

    /* Needed for the image. */
    position: relative;

    /* Size inside the rings. */
    width: 82% !important;

    /* Keep frame square. */
    aspect-ratio: 1;

    /* Crop the square image into a circle. */
    overflow: hidden !important;

    /* Circular shape. */
    border-radius: 50% !important;

    /* Light background. */
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(238, 234, 255, 0.94)
        ) !important;

    /* White circular border. */
    border: 7px solid rgba(255, 255, 255, 0.92) !important;

    /* Premium static shadow. */
    box-shadow:
        0 30px 70px rgba(87, 68, 188, 0.24),
        0 12px 30px rgba(83, 153, 255, 0.16) !important;

    /* Do not move/rotate the frame. */
    transform: none !important;

    /* Do not create an extra GPU layer. */
    will-change: auto !important;
}


/* Do not enlarge/rotate on hover. */
.pixel-image-frame:hover {
    transform: none !important;
}


/* ---------------------------------------------------------
   PIXEL IMAGE
   --------------------------------------------------------- */

.pixel-robot-image {
    /* Display image normally. */
    display: block !important;

    /* Fill the circular frame. */
    width: 100% !important;
    height: 100% !important;

    /* Crop image neatly. */
    object-fit: cover !important;
    object-position: center !important;

    /* No animation. */
    animation: none !important;

    /* No transform layer. */
    transform: none !important;

    /* No special rendering optimisation. */
    will-change: auto !important;

    /* Prevent flipping/rendering artefacts. */
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
}


/* Do not zoom Pixel on hover. */
.pixel-image-frame:hover .pixel-robot-image {
    transform: none !important;
}


/* ---------------------------------------------------------
   REMOVE MOVING SHINE
   --------------------------------------------------------- */

.pixel-image-shine {
    /* This animation created another overlapping rendering layer. */
    display: none !important;
}


/* ---------------------------------------------------------
   PIXEL RINGS
   --------------------------------------------------------- */

.pixel-ring {
    /* Show rings again. */
    display: block !important;

    /* Position around Pixel. */
    position: absolute;

    /* Circular shape. */
    border-radius: 50%;

    /* Rings are decorative only. */
    pointer-events: none;

    /* Keep them static for stability. */
    animation: none !important;
}


/* Inner ring. */
.pixel-ring-one {
    width: 95%;
    height: 95%;

    border:
        2px solid
        rgba(142, 110, 255, 0.30);
}


/* Outer ring. */
.pixel-ring-two {
    width: 108%;
    height: 108%;

    border:
        1px dashed
        rgba(66, 177, 255, 0.30);
}


/* ---------------------------------------------------------
   CREATIVE ORBIT ICONS
   --------------------------------------------------------- */

.creative-orbit {
    /* Show the icon layer again. */
    display: block !important;

    /* Fill the Pixel area. */
    position: absolute;
    inset: 0;

    /* Keep icons above Pixel. */
    z-index: 6;

    /* Decorative only. */
    pointer-events: none;
}


/* Individual creative icon. */
.orbit-item {
    /* Restore the icon boxes. */
    display: grid !important;

    /* Position each icon separately. */
    position: absolute;

    /* Icon box size. */
    width: 48px;
    height: 48px;

    /* Centre the emoji. */
    place-items: center;

    /* Rounded square. */
    border-radius: 15px;

    /* Icon size. */
    font-size: 1.35rem;

    /* Solid white instead of backdrop blur. */
    background: rgba(255, 255, 255, 0.96) !important;

    /* Light border. */
    border: 1px solid rgba(255, 255, 255, 0.98);

    /* Soft shadow. */
    box-shadow:
        0 14px 30px rgba(61, 49, 139, 0.14);

    /* Important: no backdrop blur. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    /* Static instead of floating. */
    animation: none !important;

    /* No transform layer. */
    transform: none !important;
}


/* ---------------------------------------------------------
   FLOATING INFORMATION CARDS
   --------------------------------------------------------- */

.floating-card {
    /* Show cards again. */
    display: block !important;

    /* Allow precise placement. */
    position: absolute;

    /* Keep cards above Pixel. */
    z-index: 8;

    /* Internal spacing. */
    padding: 16px 18px;

    /* Rounded corners. */
    border-radius: 20px;

    /* Text colour. */
    color: #24204f;

    /* Almost-solid white background. */
    background: rgba(255, 255, 255, 0.97) !important;

    /* Light border. */
    border: 1px solid rgba(255, 255, 255, 0.98);

    /* Premium shadow. */
    box-shadow:
        0 20px 45px rgba(52, 42, 124, 0.16);

    /* Remove backdrop blur - important for Edge. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    /* Keep cards static. */
    animation: none !important;

    /* No animated transform. */
    transform: none !important;
}


/* Ask Pixel card needs flex layout. */
.card-one {
    display: flex !important;

    /* Keep previous positioning. */
    left: -2%;
    top: 24%;

    /* Card width. */
    width: 220px;

    /* Align icon and text. */
    align-items: center;
    gap: 12px;
}


/* Project progress card. */
.card-two {
    /* Keep previous positioning. */
    right: -3%;
    bottom: 19%;

    /* Card width. */
    width: 230px;
}


/* ---------------------------------------------------------
   PIXEL STATUS
   --------------------------------------------------------- */

.pixel-status {
    /* Show status pill again. */
    display: flex !important;

    /* Position under Pixel. */
    position: absolute;

    bottom: 4%;
    left: 50%;

    /* Keep above background. */
    z-index: 8;

    /* Align green dot and text. */
    align-items: center;
    gap: 8px;

    /* Pill spacing. */
    padding: 9px 15px;

    /* Rounded pill. */
    border-radius: 999px;

    /* Text colour. */
    color: #4f4b73;

    /* Normal white background. */
    background: rgba(255, 255, 255, 0.97) !important;

    /* Light border. */
    border: 1px solid rgba(255, 255, 255, 0.98);

    /* Soft shadow. */
    box-shadow:
        0 10px 28px rgba(60, 47, 126, 0.12);

    /* Remove blur. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    /* Only static positioning transform is used. */
    transform: translateX(-50%) !important;

    /* Text style. */
    font-size: 0.78rem;
    font-weight: 700;

    /* Keep status on one line. */
    white-space: nowrap;
}


/* ---------------------------------------------------------
   STATIC SHADOW UNDER PIXEL
   --------------------------------------------------------- */

.pixel-shadow {
    /* Show shadow again. */
    display: block !important;

    /* Position underneath robot. */
    position: absolute;

    /* Position near bottom. */
    bottom: 5%;

    /* Shadow size. */
    width: 48%;
    height: 25px;

    /* Oval shape. */
    border-radius: 50%;

    /* Soft transparent colour. */
    background: rgba(85, 76, 180, 0.13);

    /* Static shadow instead of CSS blur animation. */
    box-shadow:
        0 8px 25px rgba(85, 76, 180, 0.15);

    /* Keep underneath Pixel. */
    z-index: -1;

    /* No filter. */
    filter: none !important;

    /* No animation. */
    animation: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /* Give Pixel enough room on mobile. */
    .hero-studio {
        min-height: 500px;
        margin-top: 12px;
        overflow: hidden;
    }


    /* Slightly smaller robot area. */
    .pixel-robot-wrapper {
        width: min(360px, 88vw);
    }


    /* Slightly larger image inside its wrapper. */
    .pixel-image-frame {
        width: 88% !important;
        border-width: 5px !important;
    }


    /* Resize floating icons. */
    .orbit-item {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 1.15rem;
    }


    /* Put Ask Pixel near the bottom-left. */
    .card-one {
        top: auto;
        bottom: 2%;
        left: 4%;

        width: 48%;
        min-width: 165px;

        padding: 12px;
    }


    /* Hide its decorative icon to save space. */
    .card-one .floating-card-icon {
        display: none;
    }


    /* Put progress card at bottom-right. */
    .card-two {
        right: 4%;
        bottom: 2%;

        width: 43%;
        min-width: 150px;

        padding: 12px;
    }


    /* Hide the status pill on smaller screens. */
    .pixel-status {
        display: none !important;
    }
}

/* ================================================================
   DM STUDIO AI — QR CARD
================================================================ */

.dm-home-qr {
    width: min(94%, 1180px);
    margin: 46px auto 72px;
    padding: 22px 26px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;

    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 26px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(96, 165, 250, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f6f8ff 55%,
            #eef9ff 100%
        );

    box-shadow:
        0 22px 55px rgba(25, 40, 90, 0.10);
}


/* QR */

.dm-home-qr-code {
    width: 112px;
    height: 112px;

    padding: 12px;

    display: grid;
    place-items: center;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(27, 40, 90, 0.10);
}

.dm-home-qr-code img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* TEXT */

.dm-home-qr-content {
    min-width: 0;
}

.dm-home-qr-eyebrow {
    margin: 0 0 5px;

    color: #4f63ff;

    font-size: 0.72rem;
    font-weight: 850;

    letter-spacing: 0.14em;
}

.dm-home-qr-content h2 {
    margin: 0 0 7px;

    color: #101a44;

    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.1;
}

.dm-home-qr-content > p:not(.dm-home-qr-eyebrow) {
    max-width: 660px;

    margin: 0 0 8px;

    color: #667085;

    font-size: 0.94rem;
    line-height: 1.6;
}

.dm-home-qr-domain {
    color: #667085;

    font-size: 0.88rem;
    font-weight: 650;
}


/* ARROW */

.dm-home-qr-arrow {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(79, 99, 255, 0.16);
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #eef3ff
        );

    color: #5367ff;

    font-size: 1.25rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.dm-home-qr-arrow:hover,
.dm-home-qr-arrow:focus-visible {
    border-color: rgba(79, 99, 255, 0.35);

    background: #edf2ff;
}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 700px) {

    .dm-home-qr {
        width: calc(100% - 28px);

        grid-template-columns: 92px 1fr auto;

        gap: 16px;

        padding: 18px;

        border-radius: 22px;
    }

    .dm-home-qr-code {
        width: 92px;
        height: 92px;

        padding: 10px;

        border-radius: 17px;
    }

    .dm-home-qr-content h2 {
        font-size: 1.25rem;
    }

    .dm-home-qr-content > p:not(.dm-home-qr-eyebrow) {
        display: none;
    }

    .dm-home-qr-arrow {
        width: 42px;
        height: 42px;
    }

}


@media (max-width: 480px) {

    .dm-home-qr {
        grid-template-columns: 82px 1fr;

        gap: 14px;
    }

    .dm-home-qr-code {
        width: 82px;
        height: 82px;
    }

    .dm-home-qr-arrow {
        display: none;
    }

    .dm-home-qr-eyebrow {
        font-size: 0.64rem;
    }

    .dm-home-qr-content h2 {
        font-size: 1.08rem;
    }

}

/* ================================================================
   PIXEL INTELIGENT — ANIMATED CREATIVE PATHWAYS CENTRE
================================================================ */

.dm-pathways-character {
    position: absolute;

    left: 50%;
    top: 50%;

    width: clamp(250px, 27vw, 370px);

    transform: translate(-50%, -50%);

    z-index: 3;

    pointer-events: none;

    animation:
        pixelCreativeFloat 4.5s ease-in-out infinite;
}


/* Soft glow behind Pixel */

.dm-pathways-character-glow {
    position: absolute;

    inset: 16%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(120, 92, 255, 0.34) 0%,
            rgba(83, 175, 255, 0.18) 42%,
            transparent 72%
        );

    filter: blur(24px);

    animation:
        pixelCreativeGlow 3s ease-in-out infinite;

    z-index: -1;
}


/* Main artwork */

.dm-pathways-character-image {
    display: block;

    width: 100%;
    height: auto;

    filter:
        drop-shadow(
            0 24px 35px rgba(63, 72, 190, 0.18)
        );

    animation:
        pixelCreativePulse 5s ease-in-out infinite;
}


/* Gentle up/down floating */

@keyframes pixelCreativeFloat {

    0%,
    100% {
        transform:
            translate(-50%, -50%)
            translateY(0);
    }

    50% {
        transform:
            translate(-50%, -50%)
            translateY(-12px);
    }

}


/* Very subtle breathing */

@keyframes pixelCreativePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }

}


/* Glow animation */

@keyframes pixelCreativeGlow {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }

}


/* Tablet */

@media (max-width: 900px) {

    .dm-pathways-character {
        width: clamp(220px, 40vw, 320px);
    }

}


/* Mobile */

@media (max-width: 700px) {

    .dm-pathways-character {
        width: min(72vw, 290px);
    }

}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .dm-pathways-character,
    .dm-pathways-character-image,
    .dm-pathways-character-glow {
        animation: none;
    }

}

.dm-pathways-character {
    position: absolute;

    left: 50%;
    top: 44%;

    width: clamp(330px, 35vw, 430px);

    transform: translate(-50%, -50%);

    z-index: 3;

    pointer-events: none;

    animation:
        pixelCreativeFloat 4.5s ease-in-out infinite;
}



/* ============================================================
   DM STUDIO AI - PREMIUM CREATIVE STUDIO HEADER
   Homepage feature section
   ============================================================ */

.dm-studio-heading {
    max-width: 1600px;
    margin: 65px auto 28px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.dm-studio-heading-copy {
    max-width: 850px;
}

.dm-studio-eyebrow {
    margin: 0 0 12px;
    color: #635bff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.dm-studio-heading h2 {
    margin: 0 0 12px;
    color: #111b43;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.dm-studio-heading h2 span {
    background: linear-gradient(
        110deg,
        #8054ff,
        #514dff,
        #28b9ec
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dm-studio-description {
    margin: 0;
    color: #657194;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.65;
}

.dm-studio-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 16px 26px;
    border-radius: 15px;

    background: linear-gradient(
        120deg,
        #7654ff,
        #534cff
    );

    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 12px 28px rgba(99, 80, 255, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.dm-studio-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 34px rgba(99, 80, 255, 0.32);
    color: #ffffff;
}

.dm-studio-explore:focus-visible {
    outline: 3px solid #514dff;
    outline-offset: 4px;
}

.dm-studio-explore span {
    font-size: 21px;
    transition: transform 0.25s ease;
}

.dm-studio-explore:hover span {
    transform: translateX(4px);
}

/* Tablet and mobile */

@media (max-width: 768px) {
    .dm-studio-heading {
        margin-top: 40px;
        padding: 0 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .dm-studio-heading h2 {
        letter-spacing: -0.8px;
    }

    .dm-studio-explore {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dm-studio-explore,
    .dm-studio-explore span {
        transition: none;
    }
}



/* ============================================================
   DM STUDIO AI - CREATIVE STUDIO ALIGNMENT FIX
   Keep heading aligned with the four feature cards
   ============================================================ */

.dm-studio-heading {
    width: min(100% - 48px, 1280px);
    max-width: 1280px;
    margin: 65px auto 28px;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dm-studio-heading {
        width: calc(100% - 40px);
        margin: 40px auto 24px;
    }
}


/* =====================================================
   DM STUDIO AI - MOBILE HERO SPACING FIX
   Reduce unnecessary empty space below Pixel.
   Desktop layout remains unchanged.
===================================================== */

@media (max-width: 430px) {

    /* Make Pixel's hero area more compact. */
    .hero-studio {
        min-height: 390px;
        height: auto;
        margin-top: 0;
    }

    /* Keep Pixel proportional to the phone width. */
    .pixel-robot-wrapper {
        width: min(320px, 88vw);
        max-width: 100%;
    }

    /* Keep the background glow proportional. */
    .pixel-background-glow {
        width: 340px;
        height: 340px;
        max-width: 100%;
    }
}

/* =====================================================
   DM STUDIO AI - COMPACT MOBILE PIXEL HERO
   Only affects phones up to 430px.
===================================================== */

@media (max-width: 430px) {

    .hero-studio {
        min-height: 0;
        height: 340px;
        margin-top: 0;
        overflow: visible;
    }

    .pixel-robot-wrapper {
        width: min(320px, 88vw);
        max-width: 100%;
    }

    .pixel-background-glow {
        width: 340px;
        height: 340px;
        max-width: 100%;
    }
}

/* =====================================================
   DM STUDIO AI - MOBILE PIXEL SIDE CLIPPING FIX
===================================================== */

@media (max-width: 430px) {

    /* Keep Pixel and its decorations inside mobile width */
    .pixel-robot-wrapper {
        width: min(300px, 80vw) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible !important;
    }

    /* Keep decorative rings within the available space */
    .pixel-ring {
        transform: scale(0.92);
        transform-origin: center;
    }

    /* Keep stars visible */
    .pixel-orbit-dot {
        z-index: 5;
    }
}


/* ==========================================================
   DM STUDIO AI - MOBILE HERO HEADING FIX
   Prevent awkward heading wrapping on small screens.
   Desktop layout remains unchanged.
   ========================================================== */

@media (max-width: 480px) {

    .hero-pro h1 {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.15;
        letter-spacing: -0.8px;
        overflow-wrap: normal;
        word-break: normal;
    }

}


/* ==========================================================
   DM STUDIO AI - MOBILE HERO BUTTON FIX
   Full-width stacked buttons on mobile only.
   ========================================================== */

@media (max-width: 480px) {

    .hero-pro .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-pro .hero-buttons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-height: 54px;
        padding: 14px 18px;
        box-sizing: border-box;
        text-align: center;
        white-space: normal;
    }

}


/* ==========================================================
   DM STUDIO AI — MOBILE HOMEPAGE WIDTH IMPROVEMENT
   Keep Pixel visible and use more available screen space.
   Desktop layout remains unchanged.
   ========================================================== */

@media (max-width: 600px) {

    /* Main homepage hero */
    .hero.hero-pro {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Hero text */
    .hero.hero-pro .hero-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Pixel illustration */
    .hero.hero-pro .hero-studio {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    /* Keep Pixel centred without horizontal overflow */
    .hero.hero-pro .pixel-robot-wrapper {
        width: min(340px, 82vw);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Make the decorative glow responsive */
    .hero.hero-pro .pixel-background-glow {
        width: min(370px, 94vw);
        height: auto;
        aspect-ratio: 1;
        max-width: 100%;
    }
}


/* ============================================================
   DM STUDIO AI — COMPACT MOBILE PIXEL HOMEPAGE
   ============================================================
   Mobile only.
   Reduces empty space around Pixel.
   Does not change the 3D model or desktop layout.
   ============================================================ */

@media (max-width: 700px) {

    /* Allow the hero to follow its actual content height. */
    .hero.hero-pro {
        height: auto !important;
        min-height: 0 !important;
        row-gap: 0 !important;
        padding-bottom: 20px !important;
    }

    /* Remove unused space after the introductory text. */
    .hero.hero-pro .hero-text {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Keep the buttons close to Pixel. */
    .hero.hero-pro .hero-buttons {
        margin-bottom: 0 !important;
    }

    /* Reduce the space reserved for the Pixel illustration. */
    .hero.hero-pro .hero-image.hero-studio {
        height: clamp(340px, 98vw, 420px) !important;
        min-height: 0 !important;

        margin-top: 8px !important;
        margin-bottom: 0 !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;

        align-items: center;
        justify-content: center;
    }
}
