/* ============================================
   aiice.dev — Victorian AI Exhibition
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bone-lace: #f4efe8;
    --frost-glass: #e8edf2;
    --inkwell: #1c1a17;
    --patina: #5a6b6e;
    --pressed-lavender: #b8a9c9;
    --frost-rose: #d4a5a5;
    --rime-blue: #94b3c8;
    --tarnished-gold: #a89060;
    --deep-aubergine: #4a3054;
    --sepia-wire: #c4b49a;

    --text-scale: clamp(0, calc((100vw - 320px) / (1440 - 320)), 1);
    --gutter: 32px;
    --section-gap: 0;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.72;
    color: var(--inkwell);
    background-color: var(--bone-lace);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Typography --- */
h1, h2, .monogram-text, .monogram-text-small {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 900;
    font-feature-settings: 'onum' 1, 'liga' 1;
}

h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    letter-spacing: 0.06em;
    color: var(--inkwell);
    margin-bottom: 0.6em;
}

p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-variation-settings: 'opsz' calc(12 + 8 * clamp(0, (100vw - 320px) / 1120, 1));
    color: var(--inkwell);
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

em {
    font-style: italic;
    color: var(--deep-aubergine);
}

/* --- Drawer Navigation --- */
.drawer-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 100vh;
    pointer-events: none;
}

.drawer-toggle {
    position: absolute;
    top: 32px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--bone-lace);
    border: 1px solid var(--sepia-wire);
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    z-index: 1001;
}

.drawer-toggle:hover {
    background-color: var(--frost-glass);
    border-color: var(--tarnished-gold);
}

.drawer-icon {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--tarnished-gold);
    position: relative;
    transition: background-color 0.3s ease;
}

.drawer-icon::before,
.drawer-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--tarnished-gold);
    left: 0;
    transition: transform 0.3s ease;
}

.drawer-icon::before { top: -6px; }
.drawer-icon::after { top: 6px; }

.drawer-nav.open .drawer-icon {
    background-color: transparent;
}

.drawer-nav.open .drawer-icon::before {
    transform: rotate(45deg) translate(4px, 4px);
}

.drawer-nav.open .drawer-icon::after {
    transform: rotate(-45deg) translate(4px, -4px);
}

.drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--bone-lace) 0%, #ede7db 100%);
    border-right: 1px solid var(--sepia-wire);
    padding: 100px 32px 32px;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.05, 0.265, 1.05);
    pointer-events: all;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(28, 26, 23, 0.08);
}

.drawer-nav.open .drawer-panel {
    transform: translateX(0);
}

.drawer-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tarnished-gold);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sepia-wire);
}

.drawer-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-card {
    display: block;
    height: 64px;
    perspective: 600px;
    text-decoration: none;
    cursor: pointer;
}

.drawer-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.drawer-card:hover .drawer-card-inner {
    transform: rotateY(180deg);
}

.drawer-card-front,
.drawer-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sepia-wire);
}

.drawer-card-front {
    background: var(--bone-lace);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--inkwell);
    letter-spacing: 0.04em;
}

.drawer-card-back {
    background: var(--frost-glass);
    transform: rotateY(180deg);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--patina);
    letter-spacing: 0.04em;
    padding: 0 16px;
    text-align: center;
}

/* --- Filigree Frame Component --- */
.filigree-frame {
    position: absolute;
    inset: 0;
    border: 1px solid var(--sepia-wire);
    pointer-events: none;
}

.filigree-frame::before,
.filigree-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--tarnished-gold);
    opacity: 0.6;
}

.filigree-frame::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid;
    border-left: 2px solid;
    border-color: inherit;
}

.filigree-frame::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid;
    border-right: 2px solid;
    border-color: inherit;
}

/* Additional corners via parent pseudo-elements where needed */

/* --- Silhouette Accents --- */
.silhouette {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.silhouette-keyhole {
    width: 40px;
    height: 70px;
    bottom: 15%;
    right: 12%;
    background:
        radial-gradient(circle at 50% 30%, var(--patina) 12px, transparent 12px),
        linear-gradient(to bottom, transparent 35%, var(--patina) 35%, var(--patina) 100%);
    clip-path: polygon(35% 0%, 65% 0%, 65% 35%, 80% 35%, 80% 55%, 65% 55%, 60% 100%, 40% 100%, 35% 55%, 20% 55%, 20% 35%, 35% 35%);
    background-color: var(--patina);
}

.silhouette-falling {
    width: 30px;
    height: 60px;
    top: 20%;
    left: 5%;
    background-color: var(--patina);
    clip-path: polygon(50% 0%, 65% 15%, 75% 10%, 70% 30%, 85% 45%, 70% 50%, 60% 70%, 70% 85%, 55% 100%, 40% 85%, 30% 90%, 25% 65%, 15% 50%, 30% 45%, 20% 25%, 35% 20%);
}

.silhouette-card {
    width: 35px;
    height: 50px;
    bottom: 20%;
    left: 8%;
    background-color: var(--patina);
    clip-path: polygon(10% 5%, 90% 5%, 95% 10%, 95% 90%, 90% 95%, 10% 95%, 5% 90%, 5% 10%);
    transform: rotate(-15deg);
}

.silhouette-teacup {
    width: 50px;
    height: 40px;
    top: 10%;
    right: 8%;
    background-color: var(--patina);
    clip-path: polygon(10% 20%, 15% 5%, 85% 5%, 90% 20%, 95% 50%, 85% 80%, 80% 90%, 75% 95%, 25% 95%, 20% 90%, 15% 80%, 5% 50%, 95% 35%, 100% 25%, 100% 45%, 95% 55%);
}

/* --- ACT I: The Void --- */
.act-void {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bone-lace);
    position: relative;
    overflow: hidden;
}

.void-content {
    text-align: center;
    perspective: 800px;
}

.monogram {
    opacity: 0;
    transform: perspective(800px) rotateY(90deg);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.monogram.revealed {
    opacity: 1;
    transform: perspective(800px) rotateY(0deg);
}

.monogram-text {
    font-size: 12vw;
    color: var(--inkwell);
    display: block;
    line-height: 1;
    user-select: none;
}

.domain-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--patina);
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    margin-top: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
    transition-delay: 0.4s;
}

.domain-label.revealed {
    opacity: 1;
}

/* --- ACT II: The Frost --- */
.act-frost {
    min-height: 150vh;
    background: linear-gradient(
        to bottom,
        var(--bone-lace) 0%,
        var(--frost-glass) 30%,
        var(--frost-glass) 100%
    );
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.frost-bg-lattice {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(148, 179, 200, 0.08) 39px,
            rgba(148, 179, 200, 0.08) 40px
        ),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 39px,
            rgba(148, 179, 200, 0.08) 39px,
            rgba(148, 179, 200, 0.08) 40px
        ),
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 39px,
            rgba(148, 179, 200, 0.08) 39px,
            rgba(148, 179, 200, 0.08) 40px
        );
    pointer-events: none;
    z-index: 0;
}

/* --- Cameo Cards (Act II) --- */
.cameo {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    perspective: 1000px;
    z-index: 2;
}

.cameo-1 {
    margin-left: 15%;
    margin-bottom: 80px;
}

.cameo-2 {
    margin-left: auto;
    margin-right: 12%;
    margin-bottom: 80px;
}

.cameo-3 {
    margin-left: 20%;
    margin-bottom: 80px;
}

.cameo-inner {
    position: relative;
    width: 100%;
    min-height: 260px;
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.card-flip.flipped .cameo-inner {
    transform: rotateY(180deg);
}

.cameo-front,
.cameo-back {
    position: absolute;
    width: 100%;
    min-height: 260px;
    backface-visibility: hidden;
    padding: 40px;
}

.cameo-front {
    background-color: var(--bone-lace);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ornate-label {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--sepia-wire);
    text-align: center;
    z-index: 1;
    position: relative;
}

.cameo-back {
    background-color: var(--frost-glass);
    transform: rotateY(180deg);
}

.cameo-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.cameo-text {
    flex: 1;
}

/* --- CSS 3D Objects --- */
.css3d-object {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    perspective: 800px;
    position: relative;
}

/* Key */
.css3d-key {
    animation: slowRotate 24s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    transform-style: preserve-3d;
}

.key-shaft {
    position: absolute;
    width: 8px;
    height: 55px;
    background: linear-gradient(90deg, var(--tarnished-gold), #c9b070, var(--tarnished-gold));
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow:
        2px 2px 4px rgba(168, 144, 96, 0.3),
        inset 1px 0 2px rgba(255, 255, 255, 0.3);
}

.key-bow {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 6px solid var(--tarnished-gold);
    border-radius: 50%;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow:
        2px 2px 6px rgba(168, 144, 96, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
}

.key-bit {
    position: absolute;
    width: 20px;
    height: 14px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-30%);
    background: var(--tarnished-gold);
    clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 60% 40%, 60% 70%, 100% 70%, 100% 100%, 0% 100%);
    box-shadow: 1px 1px 3px rgba(168, 144, 96, 0.3);
}

/* Compass */
.css3d-compass {
    animation: slowRotate 24s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    animation-delay: -8s;
    transform-style: preserve-3d;
}

.compass-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid var(--tarnished-gold);
    border-radius: 50%;
    top: 10px;
    left: 10px;
    box-shadow:
        0 0 0 1px rgba(168, 144, 96, 0.2),
        inset 0 0 0 1px rgba(168, 144, 96, 0.2),
        2px 3px 8px rgba(0, 0, 0, 0.1);
}

.compass-ring::before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(168, 144, 96, 0.3);
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.compass-needle {
    position: absolute;
    width: 4px;
    height: 50px;
    top: 25px;
    left: 48px;
    background: linear-gradient(to bottom, var(--frost-rose) 50%, var(--patina) 50%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: needleSway 4s ease-in-out infinite;
}

.compass-center {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--tarnished-gold);
    border-radius: 50%;
    top: 45px;
    left: 45px;
    box-shadow: 0 0 4px rgba(168, 144, 96, 0.5);
}

/* Crystal */
.css3d-crystal {
    animation: slowRotate 24s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    animation-delay: -16s;
    transform-style: preserve-3d;
    position: relative;
}

.crystal-face {
    position: absolute;
    background: linear-gradient(135deg, rgba(148, 179, 200, 0.4), rgba(232, 237, 242, 0.6));
    border: 1px solid rgba(148, 179, 200, 0.5);
}

.crystal-face-1 {
    width: 40px;
    height: 70px;
    top: 15px;
    left: 30px;
    clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
    box-shadow: inset 0 0 20px rgba(148, 179, 200, 0.3);
}

.crystal-face-2 {
    width: 30px;
    height: 55px;
    top: 20px;
    left: 45px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 100%, 0% 100%, 0% 25%);
    background: linear-gradient(135deg, rgba(184, 169, 201, 0.3), rgba(232, 237, 242, 0.4));
    transform: rotateY(15deg);
}

.crystal-face-3 {
    width: 25px;
    height: 45px;
    top: 30px;
    left: 20px;
    clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 0% 100%, 0% 20%);
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.2), rgba(232, 237, 242, 0.4));
    transform: rotateY(-10deg);
}

.crystal-face-4 {
    width: 15px;
    height: 35px;
    top: 35px;
    left: 60px;
    clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 0% 100%, 0% 20%);
    background: linear-gradient(135deg, rgba(148, 179, 200, 0.2), rgba(184, 169, 201, 0.3));
    transform: rotateY(20deg);
}

/* --- Animations --- */
@keyframes slowRotate {
    0% { transform: rotateX(15deg) rotateY(0deg); }
    100% { transform: rotateX(15deg) rotateY(360deg); }
}

@keyframes needleSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* --- ACT III: The Looking Glass --- */
.act-looking-glass {
    min-height: 100vh;
    background-color: var(--frost-glass);
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.looking-glass-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
}

.mirror-above {
    margin-bottom: 0;
}

.mirror-cameo {
    position: relative;
    padding: 48px;
    background: var(--bone-lace);
}

.mirror-text h2 {
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    color: var(--inkwell);
    margin-bottom: 32px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.mirror-text p {
    position: relative;
    z-index: 1;
    max-width: 580px;
}

.mirror-divider {
    padding: 24px 0;
    overflow: hidden;
}

.mirror-border {
    width: 100%;
    height: 20px;
    display: block;
}

.mirror-reflection {
    transform: scaleY(-1);
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

/* --- ACT IV: The Collection --- */
.act-collection {
    min-height: 150vh;
    background: linear-gradient(
        to bottom,
        var(--frost-glass) 0%,
        var(--bone-lace) 20%,
        var(--bone-lace) 100%
    );
    position: relative;
    padding: 120px 32px;
    overflow: hidden;
}

.collection-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    row-gap: 48px;
}

.collection-card {
    perspective: 1000px;
    cursor: pointer;
    min-height: 280px;
}

.card-span-3 { grid-column: span 4; }
.card-span-4 { grid-column: span 5; }
.card-span-5 { grid-column: span 7; }

/* Asymmetric offsets */
.collection-card:nth-child(1) { grid-column: 1 / span 5; }
.collection-card:nth-child(2) { grid-column: 7 / span 4; }
.collection-card:nth-child(3) { grid-column: 2 / span 7; }
.collection-card:nth-child(4) { grid-column: 8 / span 4; }
.collection-card:nth-child(5) { grid-column: 1 / span 7; }
.collection-card:nth-child(6) { grid-column: 6 / span 5; }

.collection-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.collection-card.flipped .collection-card-inner {
    transform: rotateY(180deg);
}

.collection-card-front,
.collection-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 280px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.collection-card-front {
    background: var(--bone-lace);
}

.collection-card-back {
    background: var(--frost-glass);
    transform: rotateY(180deg);
    position: relative;
    overflow: hidden;
}

.lattice-bg {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(148, 179, 200, 0.1) 39px,
            rgba(148, 179, 200, 0.1) 40px
        ),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 39px,
            rgba(148, 179, 200, 0.1) 39px,
            rgba(148, 179, 200, 0.1) 40px
        ),
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 39px,
            rgba(148, 179, 200, 0.1) 39px,
            rgba(148, 179, 200, 0.1) 40px
        );
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.card-numeral {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3rem;
    color: var(--sepia-wire);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
    z-index: 1;
    position: relative;
}

.card-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--tarnished-gold);
    z-index: 1;
    position: relative;
}

/* --- ACT V: The Return --- */
.act-return {
    min-height: 100vh;
    background: linear-gradient(
        to bottom,
        var(--bone-lace) 0%,
        var(--bone-lace) 100%
    );
    position: relative;
    padding: 120px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.return-content {
    text-align: center;
    max-width: 640px;
}

.final-cameo {
    position: relative;
    padding: 56px 48px;
    background: var(--bone-lace);
    margin-bottom: 80px;
}

.filigree-animated {
    border: 1px solid var(--sepia-wire);
}

.corner-ornament {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 2;
}

.corner-tl { top: -10px; left: -10px; }
.corner-tr { top: -10px; right: -10px; }
.corner-bl { bottom: -10px; left: -10px; }
.corner-br { bottom: -10px; right: -10px; }

.ornament-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2s ease-in-out;
}

.filigree-animated.animate-in .ornament-path {
    stroke-dashoffset: 0;
}

.final-text {
    position: relative;
    z-index: 1;
}

.closing-statement {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: var(--inkwell);
    letter-spacing: 0.02em;
}

.return-monogram {
    margin-bottom: 16px;
}

.monogram-text-small {
    font-size: 3vw;
    color: var(--inkwell);
    display: inline-block;
    animation: gentleRotate 30s linear infinite;
}

@keyframes gentleRotate {
    0% { transform: perspective(800px) rotateY(0deg); }
    100% { transform: perspective(800px) rotateY(360deg); }
}

.return-domain {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--patina);
    font-size: 0.75rem;
    opacity: 0.6;
}

/* --- Scroll-triggered reveal states --- */
.cameo,
.mirror-above,
.mirror-divider,
.mirror-below,
.collection-card,
.final-cameo {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cameo.visible,
.mirror-above.visible,
.mirror-divider.visible,
.mirror-below.visible,
.collection-card.visible,
.final-cameo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for cameos */
.cameo-1.visible { transition-delay: 0s; }
.cameo-2.visible { transition-delay: 0.2s; }
.cameo-3.visible { transition-delay: 0.4s; }

/* --- Mirror reflection scroll effect --- */
.mirror-reflection {
    transition: transform 0.3s ease;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .cameo-1,
    .cameo-2,
    .cameo-3 {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    .collection-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .collection-card:nth-child(1) { grid-column: 1 / span 6; }
    .collection-card:nth-child(2) { grid-column: 1 / span 6; }
    .collection-card:nth-child(3) { grid-column: 1 / span 6; }
    .collection-card:nth-child(4) { grid-column: 1 / span 6; }
    .collection-card:nth-child(5) { grid-column: 1 / span 6; }
    .collection-card:nth-child(6) { grid-column: 1 / span 6; }
}

@media (max-width: 768px) {
    .drawer-panel {
        width: 280px;
    }

    .cameo-content {
        flex-direction: column;
        align-items: center;
    }

    .cameo-front,
    .cameo-back {
        padding: 24px;
        min-height: 200px;
    }

    .cameo-inner {
        min-height: 200px;
    }

    .mirror-cameo {
        padding: 32px 24px;
    }

    .collection-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .collection-card:nth-child(n) {
        grid-column: span 2;
    }

    .collection-card-front,
    .collection-card-back {
        min-height: 220px;
    }

    .collection-card-inner {
        min-height: 220px;
    }

    .final-cameo {
        padding: 32px 24px;
    }

    .act-frost,
    .act-looking-glass,
    .act-collection {
        padding: 80px 16px;
    }

    .filigree-frame::before,
    .filigree-frame::after {
        width: 14px;
        height: 14px;
    }

    /* Mobile: card-flip nav becomes simpler */
    .drawer-card-inner {
        transform: none !important;
    }

    .drawer-card-back {
        display: none;
    }

    .drawer-card-front {
        position: relative;
    }

    .monogram-text {
        font-size: 20vw;
    }
}

@media (max-width: 480px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-card:nth-child(n) {
        grid-column: span 1;
    }

    .mirror-text h2 {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
    }
}
