/* ============================================================
   SPIRITBOX — shared stylesheet
   Palette / type / motion tokens derived from the original
   glitch menu (index_-_Copia.html). Keep edits here so every
   page stays consistent.
   ============================================================ */

@font-face {
    font-family: 'Amatic SC';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/AmaticSC-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Amatic SC';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/AmaticSC-Bold.ttf') format('truetype');
}

:root {
    --bg: #000000;
    --bg-overlay: rgba(0, 0, 0, 0.9);   /* darkens the noise bg by ~50% for readability */
    --fg: #ffffff;
    --fg-dim: rgba(255, 255, 255, 0.65);
    --border: #ffffff;
    --accent-cyan: #64f0ff;
    --accent-red: #ff6e6e;
    --card-bg: rgba(0, 0, 0, 0.55);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --radius: 10px;
    --font-display: 'Amatic SC', cursive;
    --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    position: relative;
    opacity: 0;
    animation: fadeIn .8s ease-in-out forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

a { color: inherit; }

::selection { background: var(--accent-cyan); color: #000; }

:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* ---------- noise video background + darken overlay ---------- */
#background-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    background: #000;
}

#bg-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: -1;
    pointer-events: none;
}

/* ---------- glitch title ---------- */
.title-glitch {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--fg);
    font-size: 5.5rem;
    line-height: 1.15;
    padding: 0.15em 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        0px -5px 10px rgba(255,255,255,1),
        0px 0px 5px rgba(255,255,255,0),
        0px 0px 10px rgba(255,255,255,0),
        0px 0px 15px rgba(255,255,255,0),
        0px 0px 20px rgba(255,255,255,0);
    animation: blur 8s ease-in-out infinite alternate,
               shift 4s ease-in-out infinite alternate,
               noiseClip 3s infinite linear alternate-reverse;
}

.title-glitch.small { font-size: 3rem; letter-spacing: 2px; }

@keyframes blur {
    0%, 40%, 50%, 60%, 90%, 95%, 100% {
        text-shadow:
            0px -5px 10px rgba(255,255,255,1),
            0px 0px 5px rgba(255,255,255,0),
            0px 0px 10px rgba(255,255,255,0),
            2px 1px 15px rgba(100,240,255,0),
            0px 0px 20px rgba(255,255,255,0);
    }
    45%, 75% {
        text-shadow:
            0px -5px 10px rgba(255,255,255,1),
            0px 0px 5px rgba(255,255,255,1),
            0px 0px 10px rgba(255,255,255,1),
            2px 1px 15px rgba(100,240,255,1),
            0px 0px 20px rgba(255,255,255,1);
    }
    97.5% {
        text-shadow:
            0px -5px 10px rgba(255,255,255,0),
            0px 0px 5px rgba(255,255,255,0),
            0px 0px 10px rgba(255,255,255,0),
            2px 1px 4px rgba(255,110,110,1),
            0px 0px 20px rgba(255,255,255,0);
    }
}

@keyframes noiseClip {
    0%, 2.5%, 6%, 11%, 17%, 24%, 30%, 38%, 45%, 53%, 60%, 67%, 75%, 82%, 89%, 95%, 100% {
        clip-path: inset(0 0 0 0);
    }
    3%   { clip-path: inset(0 0 82% 0); }
    3.4% { clip-path: inset(0 0 0 0); }
    25%  { clip-path: inset(78% 0 0 0); }
    25.4%{ clip-path: inset(0 0 0 0); }
    46%  { clip-path: inset(0 0 68% 0); }
    46.4%{ clip-path: inset(0 0 0 0); }
    61%  { clip-path: inset(55% 0 0 0); }
    61.4%{ clip-path: inset(0 0 0 0); }
    83%  { clip-path: inset(0 0 72% 0); }
    83.4%{ clip-path: inset(0 0 0 0); }
}

@keyframes shift {
    0%, 40%, 44%, 58%, 61%, 65%, 69%, 73%, 100% { transform: skewX(0deg); }
    41% { transform: skewX(5deg); }
    42% { transform: skewX(-5deg); }
    59% { transform: skewX(10deg) skewY(2deg); }
    60% { transform: skewX(-10deg) skewY(-2deg); }
    63% { transform: skewX(3deg) skewY(-1deg); }
    70% { transform: skewX(-8deg) skewY(-3deg); }
    71% { transform: skewX(3deg) skewY(-2deg); }
}

/* ---------- site header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 40px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .brand span { color: var(--accent-cyan); }

.site-header .brand img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
}

.hero .logo-main {
    max-width: 220px;
    width: 40vw;
    height: auto;
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.3));
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--border);
    color: var(--fg);
    font-family: var(--font-display);
    font-size: 1.6rem;
    padding: 4px 14px;
    border-radius: var(--radius);
    cursor: pointer;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.menu-button {
    background: black;
    border: 2px solid var(--border);
    color: var(--fg);
    padding: 10px 22px;
    font-size: 1.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.menu-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

.menu-button:active { transform: translateY(0); }

.menu-button.current {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.menu-button.primary {
    border-color: var(--accent-cyan);
    background: rgba(100,240,255,0.08);
}

.menu-button.primary:hover { background: rgba(100,240,255,0.18); }

/* ---------- page layout ---------- */
main { position: relative; z-index: 1; }

.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 70px 30px;
}

.section-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-sub {
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    color: var(--fg-dim);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
    gap: 26px;
}

.tagline {
       font-family: var(--font-display);
    color: var(--fg-dim);
    max-width: 560px;
    font-size: 1.65rem;
    line-height: 1.6;
}

.logo {
    max-width: 120px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* ---------- floating cards (content grid) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.float-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
    animation: floaty 6s ease-in-out infinite;
}

/* stagger the float animation so cards don't bob in unison */
.card-grid .float-card:nth-child(6n+1) { animation-delay: 0s; }
.card-grid .float-card:nth-child(6n+2) { animation-delay: .3s; }
.card-grid .float-card:nth-child(6n+3) { animation-delay: .6s; }
.card-grid .float-card:nth-child(6n+4) { animation-delay: .9s; }
.card-grid .float-card:nth-child(6n+5) { animation-delay: 1.2s; }
.card-grid .float-card:nth-child(6n+6) { animation-delay: 1.5s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-card:hover {
    background: var(--card-bg-hover);
    box-shadow: 0 10px 30px rgba(255,255,255,0.12);
    animation-play-state: paused;
    transform: translateY(-6px);
}

.float-card h3 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.float-card p {
        font-family: var(--font-display);
    font-size: 1.65rem;
    line-height: 1.6;
    color: var(--fg-dim);
}

.float-card .tag {
    display: inline-block;
    font-family: system-ui, sans-serif;
    font-size: .7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 14px;
}

/* ---------- shop grid ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.12);
}

.product-card .thumb {
    aspect-ratio: 4 / 3;
    background: #111 center/cover no-repeat;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-dim);
    font-family: system-ui, sans-serif;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card .info { padding: 18px 20px; }

.product-card h3 {
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-card .price {
    color: var(--accent-cyan);
    font-family: system-ui, sans-serif;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 8px;
}

.product-card .excerpt {
    font-family: system-ui, sans-serif;
    font-size: .85rem;
    color: var(--fg-dim);
    line-height: 1.5;
}

/* ---------- product modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px;
    overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal-box {
    background: #050505;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    max-width: 800px;
    width: 100%;
    padding: 34px;
    position: relative;
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--fg);
    font-size: 2rem;
    font-family: var(--font-display);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: var(--accent-cyan); }

.modal-media {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-media img, .modal-media video { width: 100%; display: block; }

.modal-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.modal-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.modal-box h2 {
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.modal-box .price {
    color: var(--accent-cyan);
    font-family: system-ui, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.modal-box .desc {
    font-family: system-ui, sans-serif;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--fg-dim);
    margin-bottom: 26px;
    white-space: pre-line;
}

.etsy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-cyan);
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid var(--accent-cyan);
    transition: background .25s ease, transform .25s ease;
}

.etsy-btn:hover { background: #a4f5ff; transform: translateY(-2px); }

/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-family: system-ui, sans-serif;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg-dim);
    margin-bottom: 6px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--fg);
    font-family: system-ui, sans-serif;
    font-size: .95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.contact-form button {
    align-self: flex-start;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    background: var(--card-bg);
    transition: background .25s ease, transform .25s ease;
}

.channel-link:hover {
    background: var(--card-bg-hover);
    transform: translateX(4px);
}

.channel-link .icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.channel-link .label {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.channel-link .sub {
    font-family: system-ui, sans-serif;
    font-size: .8rem;
    color: var(--fg-dim);
    display: block;
}

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 30px;
    text-align: center;
    font-family: system-ui, sans-serif;
    font-size: .8rem;
    color: var(--fg-dim);
    position: relative;
    z-index: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .site-header { padding: 16px 20px; flex-wrap: wrap; }
    .nav-toggle { display: inline-block; }
    .buttons-container {
        display: none;
        width: 100%;
        justify-content: flex-start;
        padding-top: 14px;
    }
    .buttons-container.open { display: flex; }
    .title-glitch { font-size: 3.4rem; }
    .title-glitch.small { font-size: 2.4rem; }
    .section { padding: 50px 20px; }
}
