* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background: #000;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: monospace;
    color: #fff;
    min-height: 100%;
}

.centerTitle {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    font-size: clamp(18px, 2.6vw, 30px);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0.18;
    animation: centerFade 2.2s ease-in-out infinite;
    text-shadow:
        0 0 18px rgba(0, 255, 255, 0.22),
        0 0 24px rgba(255, 0, 255, 0.18);
}

@keyframes centerFade {
    0% { opacity: 0.08; filter: blur(0px); }
    50% { opacity: 0.55; filter: blur(0px); }
    100% { opacity: 0.08; filter: blur(0px); }
}

#fractalCanvas {
    position: fixed;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    z-index: 0;
}

.ui {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 28px 18px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero {
    padding: 22px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.scrollSpacer {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
}

.isHidden {
    display: none;
}

.subhead {
    margin-top: 10px;
    opacity: 0.9;
    line-height: 1.4;
}

.links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.links a {
    color: var(--accent, #fff);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.45);
    padding: 8px 10px;
    border-radius: 999px;
    line-height: 1;
}

.links a:hover {
    border-color: rgba(255, 255, 255, 0.55);
}

.section {
    margin-top: 22px;
    padding: 18px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.sectionTitle {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.95;
}

.setsGrid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.setCard {
    position: relative;
    padding: 12px 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.setCard::before,
.setCard::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.setCard::before {
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.06) 1px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0) 6px
    );
}

.setCard::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0));
    transform: translateX(-30%);
}

.setCard.isGlitch::before,
.setCard.isGlitch::after {
    opacity: 1;
    animation: cardGlitch 320ms steps(2, end) both;
}

.setTitle {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.setTitle a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.setTitle a:hover {
    border-bottom-style: solid;
}

.setTitle small {
    opacity: 0.75;
}

.mixcloudFrame {
    width: 100%;
    height: 120px;
    border: 0;
}

.contactLine {
    margin-top: 14px;
}

.contactLink {
    color: var(--accent, #fff);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.contactLink:hover {
    border-bottom-style: solid;
}

.contactBubble {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.contactBubble.isArmed {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

@keyframes cardGlitch {
    0% { transform: translateX(-12%); filter: contrast(140%); }
    35% { transform: translateX(4%); filter: contrast(180%); }
    70% { transform: translateX(-6%); filter: contrast(150%); }
    100% { transform: translateX(0); filter: contrast(100%); }
}

.glitch {
    position: relative;
    display: inline-block;
    font-size: clamp(34px, 6vw, 64px);
    letter-spacing: 0.18em;
    line-height: 1.1;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    opacity: 0.85;
    pointer-events: none;
}

.glitch::before {
    transform: translate(1px, 0);
    clip-path: inset(0 0 60% 0);
    animation: titleGlitch 2.4s infinite steps(2, end);
}

.glitch::after {
    transform: translate(-1px, 0);
    clip-path: inset(55% 0 0 0);
    animation: titleGlitch 1.9s infinite steps(2, end);
}

@supports not (clip-path: inset(10% 10% 10% 10%)) {
    .glitch::before,
    .glitch::after {
        display: none;
    }
    .glitch {
        text-shadow: 1px 0 rgba(255, 0, 255, 0.35), -1px 0 rgba(0, 255, 255, 0.25);
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero,
    .section,
    .contactBubble {
        background: rgba(0, 0, 0, 0.78);
    }
}

@keyframes titleGlitch {
    0% { opacity: 0.25; }
    10% { opacity: 0.9; transform: translate(2px, -1px); }
    12% { transform: translate(-2px, 1px); }
    14% { transform: translate(1px, 0); }
    50% { opacity: 0.35; }
    55% { opacity: 0.95; transform: translate(-1px, 0); }
    60% { transform: translate(0, 0); }
    100% { opacity: 0.25; }
}
