@font-face {
    font-family: 'Heming';
    src: url('../fonts/Heming Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Disket Mono';
    src: url('../fonts/Disket-Mono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Disket Mono';
    src: url('../fonts/Disket-Mono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    /* --- Colors --- */
    --color-bg: oklch(0.1496 0 0); /* #0b0b0b */
    --color-fg: oklch(0.95 0 0); /* #f5f5f5 */
    --color-muted: oklch(0.6878 0.0072 286.21); /* #9a9a9f */
    --color-accent: oklch(0.5597 0.242 268.92); /* Reference accent */
    --color-accent-muted: oklch(0.4 0.18 268.92); /* Reference accent */
    --color-border: oklch(1 0 0 / 8%);

    /* Product Cards */
    --color-surface: oklch(0.2 0 0); 
    --color-card-border: oklch(0.25 0.005 268); 
    --color-card-texture: oklch(0.3 0.01 268); /* Texture dots color */
    --color-fg-muted: oklch(0.95 0 0 / 70%); /* text color */
    --color-fg-faint: oklch(0.95 0 0 / 22%); /* card number color */

    /* --- Typography system --- */
    --font-sans: Inter, Roboto, Arial, system-ui, sans-serif;
    --font-mono: 'Disket Mono', Consolas, monospace;
    --font-display: 'Heming', var(--font-sans);
    --font-marquee: 'Disket Mono'; /* TODO temporary ? Merged with mono later ? */
    /* TODO cleaner les font-weight pour les mettre en token */

    /* Font size */
    --text-xs: 0.85rem;
    --text-s: 0.95rem;
    --text-m-base: 1rem;
    --text-l: 1.125rem;
    --text-xl: 1.25rem;
    
    /* Fluid font size */
    --text-fluid-h3: clamp(1.1rem, 2.4vw, 1.35rem);
    --text-fluid-h2: clamp(1.4rem, 3.2vw, 2rem);
    --text-fluid-hero-title: clamp(3rem, 14.5vw, 18rem);
    --text-fluid-hero-subtitle: clamp(0.9rem, 3.2vw, 5rem);
    --text-fluid-hero-cta: clamp(0.75rem, 1.2vw, 5rem);

    /* --- Spacing --- */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-8: 2rem;
    --space-12: 3rem;

    /* --- Radii --- */
    --radius-s: 6px;
    --radius-m: 8px;
    --radius-l: 18px;
    --radius-full: 999px;

    /* --- Layout --- */
    --layout-header-h: 56px;
    --layout-section: var(--space-8);
    --layout-padding: 1rem;
    --layout-content-width: 820px;
    --layout-site-width: 1200px;

    /* --- Layers --- */
    --layer-below: -1;
    --layer-base: 1;
    --layer-sticky: 100;
    --layer-overlay: 200;
    --layer-modal: 9999;

    /* --- Animation --- */
    --ease-base: 0.3s ease;
    --ease-snappy: 0.1s ease-out;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    margin: 0; /* By default some browser use 8px */
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-size: var(--text-m-base);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* ===================================== Top bar ===================================== */
.topbar {
    position: fixed; /* sticky for it to disapear */
    top: 0;
    width: 100%;
    background: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: var(--layer-sticky);
}

.topbar-content {
    max-width: var(--layout-site-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--layout-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-fg);
    text-decoration: none;
}

.logo img {
    border-radius: var(--radius-m);
}

nav a {
    color: var(--color-fg);
    text-decoration: none;
    margin-left: var(--space-4);
    font-size: var(--text-s);
    transition: color var(--ease-base);
}

nav a:hover {
    color: var(--color-accent);
}

/* ===================================== animated line ===================================== */
.wavelines {
    position: fixed;
    top: 36px; 
    left: 0;
  /*bottom: 0; */
    width: 100vw; 
    height: 100px; 
    display: block;
    pointer-events: none;
    z-index: 110; /* automatically increment from sticky ? */
}

polyline {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
}


/* ===================================== Hero ===================================== */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--layout-header-h));
    margin-top: var(--layout-header-h);
    background: transparent;
    color: var(--color-fg);
    overflow: clip;           /* clip X overflow (title slide-in) without creating a scroll container */
    overflow-y: visible;      /* let nothing be clipped vertically — we control sizing via flex */
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex: 1 1 0%;             /* grow to fill, but also shrink if needed */
    min-height: 0;            /* allow flex shrink below content size */
    padding: var(--space-8) var(--space-8) 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;         /* scope the title slide-in clipping here */
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-fluid-hero-title);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    transform: translateX(-5vw);
    opacity: 0;
    margin-bottom: 0;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: var(--text-fluid-hero-subtitle);
    font-weight: 100;
    letter-spacing: 0.5em;
    color: var(--color-fg);
    text-align: left;
    margin-left: var(--space-8);
    margin-top: -0.7em;
    margin-bottom: 0;
    opacity: 0;
}

.hero-bottom {
    margin-top: auto;
    flex-shrink: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 0 0 var(--space-8);
}

.hero-cta {
    font-family: var(--font-mono);
    font-size: var(--text-fluid-hero-cta);
    line-height: 1.5;
    font-weight: normal;
    text-align: left;
    margin-left: var(--space-8);
    opacity: 0;
}

.hero-btn {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 2.8vw, var(--text-m-base));
    font-weight: bold;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    padding: var(--space-3) var(--space-8);
    transition: all var(--ease-base);
    margin-top: var(--space-4);
    margin-right: 10vw;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    
    background: var(--color-fg);
    color: var(--color-bg);
    border: 2px solid var(--color-fg);

    box-shadow: 6px 6px 0 var(--color-accent);
    transform: translate(-3px, -3px);
}

.hero-btn:hover {
    background: var(--color-fg);
    color: var(--color-bg);
    border: 2px solid var(--color-fg);

    transform: translate(-6px, -6px) !important;
    box-shadow: 12px 12px 0 var(--color-accent);
}
.hero-btn:active {
  transform: translate(3px, 3px) !important;
  box-shadow: 0px 0px 0 var(--color-accent);
  transition: all var(--ease-snappy);
}

/* ===================================== Marquee ===================================== */
.marquee-track {
    width: 100%;
    flex-shrink: 0;           /* never compress the marquees */
    overflow: hidden;
    background: var(--color-fg);
    color: var(--color-bg);
    padding: var(--space-2) 0;
    display: flex;
    white-space: nowrap;
    border-bottom: 2px solid var(--color-fg);
    border-top: 2px solid var(--color-fg);
}

.marquee-track.accent {
    background: var(--color-accent);
    color: var(--color-bg);
    border-top: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.marquee-content {
    display: inline-flex;
    font-family: var(--font-marquee);
    font-weight: 700;
    font-size: var(--text-l);
    letter-spacing: 0.1em;
    animation: scrollBandeau 60s linear infinite;
    white-space: pre;
}

.marquee-content::before {
    content: attr(data-text) attr(data-text) attr(data-text) attr(data-text) attr(data-text);
}

.marquee-content::after {
    content: attr(data-text) attr(data-text) attr(data-text) attr(data-text) attr(data-text);
}

@keyframes scrollBandeau {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reset animation smoothly on hover if you want:
.marquee-track:hover .marquee-content { animation-play-state: paused; }
*/

/* ===================================== Top bar ===================================== */
.scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-8) 0 var(--space-4);
    color: var(--color-muted);
    opacity: 0.7;
    transition: opacity var(--ease-base);
}

.scroll-arrow a,
.scroll-arrow a:visited {
    color: var(--color-muted);
    text-decoration: none;
}

.scroll-arrow:hover {
    opacity: 1;
    color: var(--color-accent);
}

.scroll-arrow svg {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%,
    100% {transform: translateY(0);}
    50% {transform: translateY(6px);}
}


/* ===================================== Market ===================================== */
.market {
    max-width: var(--layout-site-width);
    margin: 0 auto;
    padding: var(--space-8) var(--layout-padding);
}

.market h2 {
    text-align: center;
    font-size: var(--text-fluid-h2);
    margin-bottom: var(--space-3);
}

/* ===================================== About and text ===================================== */
.about {
    display: flex;
    justify-content: center;
    padding: var(--space-8) var(--layout-padding) 2.75rem;
}

.prose {
    max-width: var(--layout-content-width);
}

.prose h2 {
    margin: 0 0 var(--space-3);
    font-size: var(--text-fluid-h2);
}

.prose h3 {
    margin: 1.25rem 0 var(--space-2);
    font-size: var(--text-fluid-h3);
}

.prose p {
    margin: .85rem 0;
    color: var(--color-fg);
    line-height: 1.65;
}

.prose ul {
    margin: var(--space-2) 0 0 1.1rem;
    line-height: 1.6;
}

.prose li {
    margin: .2rem 0;
}

/* ---------------------------- Figure Styles ---------------------------- */
.figure-container {
    position: relative;
    display: flex;
    flex-direction: column; /* Mobile first: stack vertically */
    align-items: center;
    margin: var(--space-12) auto;
    width: fit-content;
    max-width: 100%;
}

.figure-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px; /* Keep or use radius var? */
    border-radius: var(--radius-s);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: block;
    z-index: 2;
}

.figure-subtext,
.figure-annotation {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    color: oklch(30% 0.01 250); /* Keep specific color or map? */
    text-transform: uppercase;
    margin: var(--space-2) 0;
    z-index: 1;
    transition: all 0.4s ease;
    position: relative;
    padding: 0.2rem 0.4rem;
}

.figure-subtext::before,
.figure-annotation::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: oklch(20% 0.01 250);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scaleY(0);
    transform-origin: top;
}

.figure-container:hover .figure-subtext,
.figure-container:hover .figure-annotation {
    color: oklch(80% 0.01 250);
}

.figure-container:hover .figure-subtext::before,
.figure-container:hover .figure-annotation::before {
    transform: scaleY(1);
}

/* ---------------------------- Cards (Events) ---------------------------- */
.events {
    max-width: var(--layout-site-width);
    margin: var(--space-8) auto;
    padding: 0 var(--layout-padding);
}

.events h2 {
    text-align: center;
    font-size: var(--text-fluid-h2);
    margin-bottom: 1.5rem;
}

.event-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.event-card {
    width: 100%;
    background: #181818; /* Maybe map to a surface color? */
    border-radius: var(--radius-s);
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    padding: 1.5rem;
    color: var(--color-fg);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    transition: box-shadow 0.2s, opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(4px);
    box-sizing: border-box;
}

.event-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.event-card:hover {
/*transform: scale(1.01);*/
    box-shadow: 0 4px 24px rgba(96, 96, 96, 0.479);
}

.event-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--space-2);
    gap: var(--space-2);
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: var(--space-4);
}

.event-index {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-muted);
    margin-right: var(--space-2);
}

.event-location {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-left: var(--space-2);
    font-weight: 400;
}

.event-tags {
    display: flex;
    gap: 0.4em;
  flex-wrap: wrap; /* remove it in desktop ? */
}

.event-tag {
    background: var(--color-accent-muted);
    color: #181818;
    border-radius: var(--radius-s);
    padding: 0.2em 0.7em;
    font-size: 0.95em;
    font-weight: 600;
}

.event-meta {
    margin-bottom: 0.7rem;
    color: var(--color-muted);
    font-size: var(--text-m-base);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.event-date {
    font-weight: 600;
    color: var(--color-accent-muted);
}

.event-artists {
    font-style: italic;
}

.event-desc {
    margin-bottom: var(--space-4);
    color: var(--color-fg);
    font-size: 1.05rem;
    max-height: 5.5em;
    overflow: hidden;
    position: relative;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--color-accent-muted);
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.5em;
    font-size: 1em;
    padding: 0;
}

.event-carousel {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.carousel-img {
    max-width: 120px;
    max-height: 80px;
    border-radius: var(--radius-m);
    box-shadow: 0 1px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: cover;
}

.carousel-img:hover {
    transform: scale(1.08);
  /*box-shadow: 0 2px 16px rgba(96, 96, 96, 0.479);*/
}

.img-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--layer-modal);
}

.img-expanded {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
  /*box-shadow: 0 4px 32px rgba(96, 96, 96, 0.479);*/
}

.close-overlay {
    position: absolute;
    top: 2vw;
    right: 4vw;
    font-size: 2.5rem;
    color: var(--color-fg);
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
}

/* Spinner */
.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-8) auto;
}

.loader {
    border: 6px solid #222;
    border-top: 6px solid var(--color-accent);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}


/* ===================================== Product Cards ===================================== */
.product-cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    justify-content: center;
    margin-top: var(--space-8);
}

/* Link wrapper — kills underline/color inheritance */
.product-card-link {
    text-decoration: none;
    color: inherit;
    outline: none;
    display: block;
    width: 300px;
    max-width: 100%;
}

/* Keyboard-only focus ring for accessibility */
.product-card-link:focus-visible .product-card-face {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* The card shell — holds perspective for children */
.product-card {
    width: 100%;
    aspect-ratio: 63 / 88;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    
    /* === 3D & Holo Parameters === */
    --card-perspective: 500px;     /* 3D vanishing point */
    --card-z-hover: 30px;          /* Card hover lift towards camera */
    --card-scale-hover: 1.03;      /* Card hover zoom */
    --title-lift-hover: -12px;      /* Title hover lift*/
    --title-scale-hover: 1.1;     /* Title hover zoom */
    
    --shine-opacity: 0.9;          /* Foil strength (0 to 1) */
    --shine-blend: color-dodge;    /* Foil blend mode (color-dodge, overlay, etc) */
    
    --glare-opacity: 1;          /* Cursor glare strength (0 to 1) */
    --glare-size: 60%;             /* Glare spread radius */

    /* Custom properties updated by JS */
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
}

/* Card face */
.product-card-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-l);
    overflow: hidden;
    transform: perspective(var(--card-perspective)) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0px) scale3d(1, 1, 1);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.product-card:hover .product-card-face {
    transform: perspective(var(--card-perspective)) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--card-z-hover)) scale3d(var(--card-scale-hover), var(--card-scale-hover), var(--card-scale-hover));
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(120, 100, 255, 0.2);
}

/* Full-art image background */
.product-art {
    position: absolute;
    inset: 0;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: var(--layer-base);
}

/* Radial glare that follows the cursor */
.product-glare {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: var(--radius-l);
    mix-blend-mode: overlay;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 35%, transparent var(--glare-size));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-glare {
    opacity: var(--glare-opacity);
}

/* Iridescent / holographic shine layer */
.product-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: var(--radius-l);
    opacity: 0;
    mix-blend-mode: var(--shine-blend);
    transition: opacity 0.5s ease;
    background-image:
        repeating-linear-gradient(
            133deg,
            rgba(255, 50, 50, 0.12) 0%,
            rgba(255, 200, 50, 0.12) 8%,
            rgba(50, 255, 100, 0.12) 16%,
            rgba(50, 150, 255, 0.12) 24%,
            rgba(180, 50, 255, 0.12) 32%,
            rgba(255, 50, 150, 0.12) 40%,
            rgba(255, 50, 50, 0.12) 48%
        ),
        repeating-linear-gradient(
            -37deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.15) 3%,
            rgba(255, 255, 255, 0.06) 6%
        );
    background-size: 300% 300%;
    background-position: var(--mx) var(--my);
    filter: blur(1px) saturate(2);
}

.product-card:hover .product-shine {
    opacity: var(--shine-opacity);
}

/* Top of the card */
.product-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: var(--space-4) var(--space-4) var(--space-4);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        transparent 100%
    );
}

.product-title {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-fg);
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    letter-spacing: 0.04em;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
               text-shadow 0.5s ease;
    will-change: transform;
}

.product-card:hover .product-title {
    transform: translateY(var(--title-lift-hover)) scale(var(--title-scale-hover));
    text-shadow:
        0 14px 30px rgba(0,0,0,0.95),
        0 0 25px rgba(120, 100, 255, 0.3);
}

.product-type-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.product-type {
    font-size: var(--text-s);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    font-weight: 700;
    line-height: 1;
    margin-bottom: -2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Bottom part */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: var(--space-4) var(--space-4) var(--space-3);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.65) 65%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: -5px;
}

.product-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-fg-muted);
    padding: 2px var(--space-2);
    border-radius: var(--radius-s);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.product-desc {
    margin: 2px 0 0;
    font-size: var(--text-xs);
    line-height: 1.45;
    color: var(--color-fg-muted);
    text-align: justify;
}

/* Bottom-right corner */
.product-id {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-fg-faint);
    letter-spacing: 0.08em;
    z-index: 6;
    pointer-events: none;
    user-select: none;
}

/* ===================================== Normal & Rare Card Styles ===================================== */
.product-card.Normal .product-card-face,
.product-card.Rare .product-card-face {
    background-color: var(--color-surface); /* noise texture*/
    background-image: 
        radial-gradient(circle at 3px 3px, var(--color-card-texture) 1px, transparent 1px),
        radial-gradient(circle at 13px 13px, var(--color-card-texture) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 8px solid var(--color-card-border);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: clip;
}

/* Limit the zoom effect */
.product-card.Normal,
.product-card.Rare {
    --card-scale-hover: 1.05;
}

/* Disable glare and shine for Normal only */
.product-card.Normal .product-glare,
.product-card.Normal .product-shine {
    display: none;
}

/* Position glare and shine over the artwork for Rare */
.product-card.Rare .product-glare,
.product-card.Rare .product-shine {
    position: absolute;
    inset: auto;
    width: 92%;
    aspect-ratio: 4 / 3;
    left: 4%;     /* margin auto centering */
    top: 3.5rem;  /* matching the margin-top */
    border-radius: 10px;
}

/* Contained artwork instead of full coverage */
.product-card.Normal .product-art,
.product-card.Rare .product-art {
    position: relative;
    inset: auto;
    width: 92%;
    aspect-ratio: 4 / 3;
    margin: 3.5rem auto 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    background-color: #1a1a1a;
    z-index: 2;
}

/* Keep top bar inline without background */
.product-card.Normal .product-top-bar,
.product-card.Rare .product-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: var(--space-3) var(--space-3) 0;
}

/* Disable floating title */
.product-card.Normal:hover .product-title,
.product-card.Rare:hover .product-title {
    transform: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Overlay adjustments to flow normally in the flex column */
.product-card.Normal .product-overlay,
.product-card.Rare .product-overlay {
    position: relative;
    bottom: auto;
    background: transparent;
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card.Normal .product-desc,
.product-card.Rare .product-desc {
    margin-top: var(--space-3);
    color: var(--color-fg-muted);
    text-shadow: none;
}

.product-card.Normal .product-id,
.product-card.Rare .product-id {
    color: var(--color-fg-faint);
    bottom: var(--space-2);
    right: var(--space-2);
}

/* ===================================== Footer ===================================== */
.footer {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    max-width: var(--layout-site-width);
    margin: 0 auto;
    padding: var(--space-8) var(--layout-padding) 2.5rem;
    color: var(--color-muted);
    font-size: var(--text-s);
    border-top: 1px solid var(--color-border);
}

.footer-message {
    position: absolute;
    top: -0.7em;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg);
    padding: 0 0.5rem;
    color: var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.footer .legal {
    margin: 0;
    font-size: var(--text-xs);
}

.footer .links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer .links a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-fg);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: var(--text-xs);
}

.footer .links a:hover {
    opacity: 1;
}

/* Legal Notice */
.legal-notice {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-top: var(--space-4);
}

/* ===================================== Desktop mode ===================================== */

@media (min-width: 900px) {
  
  .figure-container {
      flex-direction: row;
      margin: 5rem auto;
  }

  .figure-subtext,
  .figure-annotation {
      position: absolute;
      margin: 0;
      white-space: nowrap;
  }

  .figure-subtext {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      bottom: 0;
      left: -3rem;
      text-align: left;
  }

  .figure-annotation {
      writing-mode: vertical-rl;
      text-orientation: upright;
      top: 0;
      right: -3rem;
      letter-spacing: -0.15em;
      font-weight: bold;
  }

  /* === Cards === */
  .event-card {
    width: 80%;
    padding: 2rem 2.5rem;
    }

    .event-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }

    .event-tags {
        flex-wrap: nowrap;
    }

    .event-meta {
        gap: 1.5rem;
        flex-wrap: nowrap;
    }
    
    /* === Footer === */
    .footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 0;
    }

    /* === Hero === */
    .hero-bottom {
        align-items: center;
    }

    .hero-btn {
        margin-top: 0;
    }

    .footer .legal {
        max-width: 40%;
    }
}
