/* Studio homepage refresh: real, clickable category art arranged like the approved mockup.
   Loaded after the legacy homepage styles to avoid affecting interior pages. */

.home-illustrated .studio-landing {
    position: relative;
    isolation: isolate;
    width: min(1340px, calc(100% - clamp(1.25rem, 4vw, 4rem)));
    padding: clamp(2.5rem, 5vw, 4.6rem) 0 clamp(3rem, 5vw, 5rem);
    text-align: center;
}

.studio-landing::before,
.studio-landing::after {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    color: rgba(161, 91, 211, .24);
    font-family: Georgia, serif;
    line-height: 1;
}
.studio-landing::before {
    content: "✦";
    top: clamp(4.5rem, 8vw, 8rem);
    left: 3%;
    font-size: clamp(4rem, 8vw, 8rem);
}
.studio-landing::after {
    content: "✦";
    top: clamp(4.5rem, 8vw, 8rem);
    right: 3%;
    font-size: clamp(4rem, 8vw, 8rem);
}

.studio-landing-header {
    margin: 0 auto clamp(1.4rem, 2.8vw, 2.7rem);
    max-width: 1230px;
}
.studio-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.7rem, 2.5vw, 2.1rem);
    margin: 0 auto .45rem;
    color: #eac8fa;
    font-size: clamp(.9rem, 1.6vw, 1.15rem);
    letter-spacing: .23em;
    line-height: 1.3;
}
.studio-welcome::before,
.studio-welcome::after {
    content: "";
    width: clamp(2.7rem, 13vw, 11rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, #b476d7);
}
.studio-welcome::after { transform: scaleX(-1); }
.studio-landing-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: .17em;
    row-gap: 0;
    margin: 0;
    color: #f0e9df;
    font-family: "Spooky Punk", "Permanent Marker", cursive;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 400;
    line-height: .96;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 rgba(0,0,0,.8), 0 0 26px rgba(118,56,171,.19);
}
.studio-title-accent {
    color: #ac63dc;
    text-shadow: 3px 3px 0 #08050b, 0 0 20px rgba(164,85,227,.27);
}
.studio-moon-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    width: min(540px, 74%);
    margin: clamp(.55rem, 1.6vw, 1.1rem) auto 0;
    color: #b36be5;
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    letter-spacing: .17em;
    text-shadow: 0 0 14px rgba(165,90,216,.35);
}
.studio-moon-divider::before,
.studio-moon-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    border-radius: 100%;
    background: linear-gradient(90deg, transparent, #a965db 75%, transparent);
}
.studio-moon-divider::after { transform: scaleX(-1); }

/* Real anchor elements, not a flattened hero image: artwork and links remain usable. */
.studio-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.2rem, 1.1vw, .9rem) clamp(.25rem, 1.5vw, 1.35rem);
    width: min(1110px, 100%);
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}
.studio-category {
    display: grid;
    position: relative;
    place-items: center;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1.12 / 1;
    color: #f6efe6;
    border: 2px solid transparent;
    border-radius: 18px;
    text-decoration: none !important;
    transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.studio-category:hover {
    transform: translateY(-6px) scale(1.035);
    filter: brightness(1.17) drop-shadow(0 10px 15px rgba(0,0,0,.3));
}
.studio-category:focus-visible {
    outline: 3px solid #d6a4ff;
    outline-offset: 2px;
    background: rgba(160, 91, 207, .12);
}
.studio-category-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 7px 9px rgba(0,0,0,.23));
}
.studio-category-label {
    position: relative;
    z-index: 1;
    max-width: 94%;
    margin: 0;
    padding: 0 .2em;
    color: #fff1e9;
    font-family: "Thur", "Spooky Punk", "Permanent Marker", cursive;
    font-size: clamp(1.4rem, 2.25vw, 2.6rem);
    font-weight: 400;
    line-height: 1.02;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #050407, -1px -1px 0 #050407, 0 0 7px #050407;
}
.studio-category-cute .studio-category-label {
    /* Center the two lines within the cat's face rather than letting the
       lettering's natural width push it over the right-hand edge. */
    position: absolute;
    top: 52%;
    left: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    max-width: none;
    padding: 0;
    font-size: clamp(1.2rem, 1.9vw, 2.15rem);
    line-height: 1;
    text-align: center;
    transform: translate(-50%, -50%);
}
.studio-category-all .studio-category-label {
    color: #f7e5fb;
    font-size: clamp(1.7rem, 2.75vw, 3.25rem);
}
.studio-category-promo .studio-category-art {
    width: 105%;
    max-width: none;
}
.studio-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.studio-intro {
    position: relative;
    width: min(910px, 90%);
    margin: clamp(1.8rem, 3vw, 3rem) auto 0;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.1rem, 3vw, 2.8rem);
    border: 2px solid #8744b4;
    border-radius: 46% 54% 48% 52% / 45% 55% 45% 55%;
    background: linear-gradient(130deg, #22132e 0%, #170d1d 53%, #25132e 100%);
    box-shadow: 0 10px 0 rgba(5,4,7,.36), 0 16px 40px rgba(0,0,0,.2);
}
.studio-intro::before,
.studio-intro::after {
    content: "☾ ✦";
    position: absolute;
    top: 50%;
    color: #b773dc;
    font-size: clamp(1.1rem, 2.1vw, 1.8rem);
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: .7;
    pointer-events: none;
}
.studio-intro::before { right: calc(100% + 1.2rem); }
.studio-intro::after { left: calc(100% + 1.2rem); transform: translateY(-50%) scaleX(-1); }
.studio-intro p {
    margin: 0;
    line-height: 1.5;
    color: #f4e8f7;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}
.studio-intro .studio-intro-quiet {
    margin-top: .45rem;
    color: #c2b3c5;
    font-size: clamp(.85rem, 1.35vw, 1rem);
}

@media (max-width: 900px) {
    .studio-landing::before,
    .studio-landing::after { opacity: .45; }
    .studio-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(760px, 100%); }
    .studio-category-label { font-size: clamp(1.55rem, 3.25vw, 2.25rem); }
    .studio-category-all .studio-category-label { font-size: clamp(2rem, 4vw, 2.75rem); }
    .studio-intro::before,
    .studio-intro::after { display: none; }
}
@media (max-width: 620px) {
    .home-illustrated .studio-landing { padding-top: 2rem; }
    .studio-landing-title { font-size: clamp(2.75rem, 10vw, 4.5rem); line-height: .95; }
    .studio-welcome { letter-spacing: .12em; }
    .studio-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; }
    .studio-category { aspect-ratio: 1 / 1; }
    .studio-category-label { font-size: clamp(1.3rem, 5.1vw, 2rem); }
    .studio-category-all .studio-category-label { font-size: clamp(1.6rem, 6vw, 2.3rem); }
    .studio-intro {
        width: 100%;
        border-radius: 28px;
        padding: 1rem 1.1rem;
        margin-top: 1.5rem;
    }
    .studio-landing::before,
    .studio-landing::after { display: none; }
}
@media (max-width: 350px) {
    .studio-category-label { font-size: 1.1rem; }
    .studio-category-all .studio-category-label { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
    .studio-category { transition: none; }
    .studio-category:hover { transform: none; }
}