/* ============================================
   artchristech — styles.css
   Clean gallery portfolio for Art. Code. Design.
   ============================================ */

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

:root {
    --bg-dark: #0a0a0a;
    --bg-light: #fafaf8;
    --bg-warm: #f5f3ef;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-light: #a0a0a0;
    --text-white: #f0ede8;
    --accent: #c4a265;
    --accent-dim: rgba(196, 162, 101, 0.15);
    --border: #e8e6e2;
    --border-dark: #2a2a2a;
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    transition: var(--transition);
    mix-blend-mode: difference;
}

.nav.scrolled {
    mix-blend-mode: normal;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.875rem 2.5rem;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-dark);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Showcase --- */
.showcase {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    padding-top: 5rem;
}

.showcase-header {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.word-art {
    color: var(--accent);
}

.word-chris {
    color: var(--text-white);
}

.word-tech {
    color: var(--text-light);
}

.showcase-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Main display area */
.showcase-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.showcase-main {
    flex: 1;
    max-width: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Browser mockup for website previews */
.showcase-browser {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-light);
    background: #111;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    text-align: center;
    letter-spacing: 0.02em;
}

.browser-viewport {
    background: #fff;
    line-height: 0;
}

.browser-viewport img {
    width: 100%;
    display: block;
}

/* Product image display (when not browser) */
.showcase-product-img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: var(--radius);
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
}

/* Info panel */
.showcase-info {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: opacity 0.3s ease;
}

.showcase-item-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.2rem 0.75rem;
    border: 1px solid rgba(196, 162, 101, 0.3);
    border-radius: 100px;
    align-self: flex-start;
}

.showcase-item-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.showcase-item-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
}

.showcase-item-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 0.5rem;
    transition: var(--transition);
}

.showcase-item-link:hover {
    letter-spacing: 0.02em;
}

/* Thumbnail strip */
.showcase-strip-wrap {
    padding: 0 2rem 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.showcase-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    justify-content: center;
}

.showcase-strip::-webkit-scrollbar {
    display: none;
}

.showcase-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #1a1a1a;
    padding: 0;
    transition: var(--transition);
    opacity: 0.5;
}

.showcase-thumb:hover {
    opacity: 0.8;
}

.showcase-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

.showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding: 0.3rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 100px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Placeholder thumbs for tech projects --- */
.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: var(--accent);
}

/* Showcase placeholder display */
.showcase-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    padding: 4rem 2rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.02);
}

.showcase-placeholder svg {
    color: var(--accent);
    opacity: 0.6;
}

.showcase-placeholder span {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Seed of Life ASCII --- */
.seed-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #050505;
    overflow: hidden;
}

.seed-section canvas {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* edges are feathered to transparent in the shader for a seamless melt */
}

.seed-label {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    width: min(92vw, 640px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.seed-label.visible {
    opacity: 1;
}

.seed-eq-name {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(196, 162, 101, 0.7);
}

.seed-eq-formula {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    white-space: pre-line;
    color: rgba(150, 205, 220, 0.55);
}

/* --- Art Gallery --- */
.art-gallery {
    padding: 6rem 0 4rem;
    background: #060606;
    position: relative;
}

/* Subtle grid texture overlay */
.art-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.art-gallery > * {
    position: relative;
    z-index: 1;
}

.art-gallery .section-header {
    margin-bottom: 3rem;
}

.art-gallery .section-header h2 {
    color: var(--text-white);
}

.art-gallery .section-header p {
    color: rgba(255,255,255,0.4);
}

.art-gallery .section-label {
    color: var(--accent);
    border-color: rgba(196, 162, 101, 0.4);
}

.art-row {
    margin-bottom: 3.5rem;
}

.art-row-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0 2.5rem;
    margin-bottom: 1rem;
}

.art-row-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-white);
}

.art-row-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}

/* === Runway lookbook — auto-scrolling editorial bands =====================
   Splide markup reused, NOT mounted. Each row is a runway: an infinite
   horizontal scroll (the track is duplicated in JS for a seamless loop),
   masked to fade at both edges, paused on hover. Pure CSS animation — no
   carousel JS. The Patterns band runs at hero scale (it's the surface art). */
.art-row-scroll {
    padding: 0.75rem 0 1.4rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* Splide hides itself until mounted; we never mount, so force it visible.
   Two-class selector beats Splide's later-loaded rule. */
.art-row-scroll.splide {
    visibility: visible;
}
.art-row-scroll .splide__track {
    overflow: visible;
}
.art-row-scroll .splide__list {
    display: flex !important;
    width: max-content;
    gap: 1rem;
    animation: runway var(--runway-dur, 80s) linear infinite;
    will-change: transform;
}
.art-row-scroll[data-dir="rtl"] .splide__list {
    animation-direction: reverse;
}
/* Pause the whole band on hover or keyboard focus */
.art-row:hover .splide__list,
.art-row-scroll:focus-within .splide__list {
    animation-play-state: paused;
}
.art-row-scroll .splide__slide {
    flex: 0 0 auto;
    width: 250px;
    margin: 0 !important;
}
.art-row-scroll[data-hero] .splide__slide {
    width: 380px;
}

@keyframes runway {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Respect reduced-motion: drop the animation, allow manual horizontal scroll */
@media (prefers-reduced-motion: reduce) {
    .art-row-scroll {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .art-row-scroll .splide__list {
        animation: none;
        width: auto;
    }
}

/* Splide arrow overrides */
.splide__arrow {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    box-shadow: none;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(8px);
}

.art-row:hover .splide__arrow,
.splide__arrow:focus-visible {
    opacity: 1;
}

.splide__arrow:hover {
    background: rgba(196, 162, 101, 0.15);
    border-color: rgba(196, 162, 101, 0.3);
}

.splide__arrow svg {
    fill: rgba(255,255,255,0.7);
}

/* --- Originals — featured fine-art works, uncropped gallery wall --- */
.art-featured {
    padding: 0.5rem 2.5rem 1rem;
    columns: 2;
    column-gap: 1.4rem;
}
.art-featured .art-card {
    display: block;
    break-inside: avoid;
    margin: 0 0 1.4rem;
}
/* Show the whole piece — no lookbook crop here */
.art-featured .art-card img {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Art Cards — editorial lookbook frames --- */
.art-card {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.45s ease, box-shadow 0.45s ease,
                transform 0.55s cubic-bezier(0.2, 0, 0, 1);
}

.art-card:hover {
    box-shadow: 0 18px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(196,162,101,0.15);
    border-color: rgba(196, 162, 101, 0.45);
    transform: translateY(-8px);
}

.art-card img {
    width: 100%;
    aspect-ratio: 4 / 5;          /* portrait, lookbook crop */
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.art-row-scroll[data-hero] .art-card img {
    aspect-ratio: 1 / 1;          /* patterns are the art — show them square */
}

.art-card:hover img {
    transform: scale(1.05);
}

/* Editorial index number, top-left; difference blend keeps it legible on
   both the white product shots and the dark patterns. */
.art-card-num {
    position: absolute;
    top: 0.6rem;
    left: 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: #fff;
    mix-blend-mode: difference;
    z-index: 2;
    pointer-events: none;
}

/* Caption — slides up on hover */
.art-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.4rem 0.9rem 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

.art-card:hover .art-card-info {
    opacity: 1;
    transform: translateY(0);
}

.art-card-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.03em;
}

.art-card-type {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

/* --- Projects (removed, now in showcase) --- */

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.project-card.featured {
    grid-column: 1 / -1;
    background: var(--bg-dark);
    border-color: var(--border-dark);
    color: var(--text-white);
}

.project-card.featured:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 40px rgba(196, 162, 101, 0.1);
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(80, 200, 120, 0.15);
    color: #50c878;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--accent-dim);
    color: var(--accent);
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.project-card.featured .project-desc {
    color: var(--text-light);
}

.project-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: auto;
    transition: var(--transition);
}

.project-card:hover .project-link {
    letter-spacing: 0.02em;
}

.project-tech {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-top: auto;
}

/* --- Arcade (Tron) --- */
.arcade {
    padding: 6rem 0 5rem;
    background: #060606;
    position: relative;
}

.arcade .section-header {
    margin-bottom: 2.5rem;
}

.arcade .section-header h2 {
    color: var(--text-white);
}

.arcade .section-header p {
    color: rgba(255,255,255,0.4);
}

.arcade .section-label {
    color: var(--accent);
    border-color: rgba(196, 162, 101, 0.4);
}

.arcade-stage {
    position: relative;
    width: min(960px, calc(100% - 5rem));
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(196, 162, 101, 0.25);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(120, 200, 255, 0.06);
}

.arcade-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0b1020;
}

/* Theater mode — lift the stage out over a dimmed page while playing. */
body.arcade-theater {
    overflow: hidden;
}

.arcade-backdrop {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(6, 6, 8, 0.93);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.arcade-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Higher specificity than `.fade-in.visible` so its transform can't re-pin us. */
body.arcade-theater .arcade-stage.is-theater {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 160;
    margin: 0;
    width: min(95vw, calc(92vh * 16 / 9));
    height: auto;
    box-shadow: 0 0 90px rgba(120, 200, 255, 0.18), 0 0 0 1px rgba(196, 162, 101, 0.4);
}

/* Native fullscreen — fill the screen, drop the framing. */
.arcade-stage:fullscreen,
.arcade-stage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    transform: none;
    top: 0;
    left: 0;
    aspect-ratio: auto;
    border-radius: 0;
    border: 0;
}

/* Theater controls (top-right of the stage), hidden until theater/fullscreen. */
.arcade-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    display: none;
    gap: 8px;
}

.arcade-stage.is-theater .arcade-controls,
.arcade-stage:fullscreen .arcade-controls,
.arcade-stage:-webkit-full-screen .arcade-controls {
    display: flex;
}

.arcade-ctrl {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(6, 6, 8, 0.65);
    border: 1px solid rgba(196, 162, 101, 0.5);
    border-radius: 4px;
    color: var(--accent);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.arcade-ctrl:hover {
    background: rgba(196, 162, 101, 0.18);
    box-shadow: 0 0 16px rgba(196, 162, 101, 0.35);
}

.arcade-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(6, 6, 6, 0.55);
    backdrop-filter: blur(2px);
    transition: opacity 0.4s ease;
}

.arcade-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.arcade-play {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(120, 200, 255, 1);
    background: transparent;
    border: 1px solid rgba(120, 200, 255, 0.6);
    border-radius: 3px;
    padding: 0.85rem 2rem;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.arcade-play:hover {
    background: rgba(120, 200, 255, 0.1);
    box-shadow: 0 0 22px rgba(120, 200, 255, 0.35);
}

.arcade-hint {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 680px) {
    .arcade-stage {
        width: calc(100% - 2.5rem);
    }
}

/* --- Resources --- */
.resources {
    padding: 6rem 2.5rem 7rem;
    background: #060606;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.resources .section-header {
    margin-bottom: 2.5rem;
}

.resources .section-header h2 {
    color: var(--text-white);
}

.resources .section-label {
    color: var(--accent);
    border-color: rgba(196, 162, 101, 0.4);
}

.resource-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.015);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.resource-item:hover {
    border-color: rgba(196, 162, 101, 0.5);
    background: rgba(196, 162, 101, 0.05);
    transform: translateY(-2px);
}

.resource-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-white);
    letter-spacing: 0.01em;
}

.resource-item:hover .resource-name {
    color: var(--accent);
}

.resource-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
}

/* --- About --- */
.about {
    padding: 8rem 2rem;
    background: var(--bg-dark);
    color: var(--text-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content .section-label {
    color: var(--accent);
    border-color: var(--accent);
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    font-style: italic;
    margin: 1rem 0 1.5rem;
    letter-spacing: 0;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.about-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    color: var(--text-white);
    transition: var(--transition);
}

.about-links .contact-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 500;
}

.about-links .contact-btn:hover {
    background: transparent;
    color: var(--accent);
}

.about-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    padding: 2rem 2.5rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* --- PhotoSwipe overrides --- */
.pswp {
    --pswp-bg: rgba(0, 0, 0, 0.92);
}

.pswp-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .showcase-display {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem 2rem 1.5rem;
    }

    .showcase-info {
        flex: none;
        text-align: center;
        align-items: center;
    }

    .art-row-header {
        padding: 0 1.5rem;
    }
}

@media (max-width: 680px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav.scrolled {
        padding: 0.75rem 1.5rem;
    }

    .showcase {
        padding-top: 4rem;
    }

    .showcase-header {
        padding: 1.5rem 1rem 1rem;
    }

    .showcase-display {
        padding: 0.5rem 1rem 1rem;
    }

    .showcase-main {
        min-height: auto;
    }

    .showcase-product-img {
        max-height: 340px;
    }

    .showcase-item-name {
        font-size: 1.3rem;
    }

    .showcase-strip-wrap {
        padding: 0 0.5rem 1.5rem;
    }

    .showcase-strip {
        justify-content: flex-start;
        padding-left: 0.5rem;
    }

    .showcase-thumb {
        width: 64px;
        height: 48px;
    }


    .about {
        padding: 5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Splide: hide arrows on mobile, rely on swipe */
    .splide__arrow {
        display: none;
    }

    .art-gallery {
        padding: 4rem 0 3rem;
    }

    .art-row {
        margin-bottom: 2rem;
    }

    .art-row-header {
        padding: 0 1rem;
    }

    .art-row-scroll .splide__slide {
        width: 175px;
    }
    .art-row-scroll[data-hero] .splide__slide {
        width: 250px;
    }
    .art-featured {
        columns: 1;
        padding: 0.5rem 1rem 1rem;
    }

    .art-card-info {
        padding: 1.5rem 0.5rem 0.4rem;
        opacity: 1;
    }
}

@media (max-width: 400px) {
    .showcase-title {
        font-size: 2rem;
    }
}
