/* footprint.bar - Street Art Observational Catalog */
/* Colors: #1a1a1f (bg), #2a2a2e (card bg), #c8c0b8 (text), #f0ece6 (heading), #ff3e6c (coral), #2eddb5 (teal), #e8b84b (mustard), #3d3a38 (border), #6b6560 (muted) */

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1a1a1f;
    color: #c8c0b8;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ===== BOKEH BACKGROUND ===== */
#bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

/* ===== NAVIGATION ===== */
#nav-toggle {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 1000;
    font-size: 16px;
    color: #ff3e6c;
    opacity: 0.4;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    user-select: none;
}

#nav-toggle:hover {
    opacity: 1;
}

#nav-toggle.active {
    opacity: 1;
}

#radial-nav {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 999;
    width: 100px;
    height: 100px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#radial-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3e6c;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
    text-decoration: none;
}

#radial-nav.open .nav-dot {
    transform: translate(-50%, -50%) translate(
        calc(cos(var(--dot-angle)) * 40px),
        calc(sin(var(--dot-angle)) * 40px)
    );
}

.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Azeret Mono', monospace;
    font-size: 7px;
    color: #1a1a1f;
    font-weight: 500;
}

.nav-dot:hover {
    background: #2eddb5;
}

/* ===== HERO WALL ===== */
.hero-wall {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(61, 58, 56, 0.15) 39px,
            rgba(61, 58, 56, 0.15) 40px
        ),
        linear-gradient(180deg, #1a1a1f 0%, #2a2a2e 50%, #1a1a1f 100%);
}

.stencil-cutouts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cutout {
    position: absolute;
    opacity: 0.06;
}

.cutout-rect {
    width: 200px;
    height: 120px;
    background: #ff3e6c;
    top: 15%;
    left: 8%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.cutout-circle {
    width: 160px;
    height: 160px;
    background: #2eddb5;
    top: 60%;
    right: 12%;
    border-radius: 50%;
}

.cutout-triangle {
    width: 0;
    height: 0;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 150px solid #e8b84b;
    opacity: 0.04;
    bottom: 20%;
    left: 60%;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.stencil-text {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(48px, 10vw, 128px);
    color: #f0ece6;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    word-spacing: 0.3em;
    text-shadow:
        0 0 8px rgba(255, 62, 108, 0.7),
        0 0 20px rgba(255, 62, 108, 0.3),
        0 0 40px rgba(255, 62, 108, 0.1);
    line-height: 1.1;
}

.stencil-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px) scale(1.05);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stencil-text.revealed .char {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-subtitle {
    font-family: 'Azeret Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #6b6560;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease 1.5s, transform 0.6s ease 1.5s;
}

.hero-wall.loaded .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MASONRY GRID ===== */
.masonry-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 6px;
}

.card {
    background-color: #2a2a2e;
    border-radius: 0;
    padding: 28px 24px;
    position: relative;
    border-left: 4px solid #3d3a38;
    margin-top: var(--card-offset, 0px);
    transition: border-left-color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-left-width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at var(--splatter-x, 50%) var(--splatter-y, 50%), rgba(255, 62, 108, 0.03) 0%, transparent 50%),
        radial-gradient(circle at calc(var(--splatter-x, 50%) + 20%) calc(var(--splatter-y, 50%) - 15%), rgba(46, 221, 181, 0.02) 0%, transparent 40%),
        radial-gradient(circle at calc(var(--splatter-x, 50%) - 10%) calc(var(--splatter-y, 50%) + 25%), rgba(232, 184, 75, 0.02) 0%, transparent 45%);
    pointer-events: none;
}

.card.visible {
    border-left-color: #ff3e6c;
    border-left-width: 6px;
}

.card-accent-teal.visible {
    border-left-color: #2eddb5;
}

.card-accent-mustard.visible {
    border-left-color: #e8b84b;
}

.card-featured {
    grid-row: span 2;
}

.card-featured.visible {
    border: 3px solid transparent;
    border-image: linear-gradient(var(--angle, 0deg), #ff3e6c, #2eddb5) 1;
    animation: border-rotate 8s linear infinite;
}

@keyframes border-rotate {
    to {
        --angle: 360deg;
    }
}

.card-featured.card-accent-mustard.visible {
    border-image: linear-gradient(var(--angle, 0deg), #e8b84b, #ff3e6c) 1;
}

.card-featured.card-accent-teal.visible {
    border-image: linear-gradient(var(--angle, 0deg), #2eddb5, #e8b84b) 1;
}

.card-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    color: #6b6560;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card:hover .card-mark {
    color: #ff3e6c;
    transform: scale(1.3);
}

.card-accent-teal:hover .card-mark {
    color: #2eddb5;
}

.card-accent-mustard:hover .card-mark {
    color: #e8b84b;
}

.card-meta {
    display: block;
    font-family: 'Azeret Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6560;
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 20px;
    color: #f0ece6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    margin-bottom: 12px;
}

.card-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #c8c0b8;
    max-width: 52ch;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    background-color: #2a2a2e;
    border-left: 6px solid #2eddb5;
    padding: 40px 32px;
    max-width: 640px;
}

.about-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #c8c0b8;
    margin-top: 16px;
}

/* ===== TAG WALL ===== */
.tag-wall {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(61, 58, 56, 0.08) 59px,
            rgba(61, 58, 56, 0.08) 60px
        );
}

.tag {
    position: absolute;
    left: var(--tag-x, 50%);
    top: var(--tag-y, 50%);
    transform: rotate(var(--tag-rotate, 0deg));
    font-family: 'Archivo Black', sans-serif;
    font-size: var(--tag-size, 20px);
    color: #f0ece6;
    opacity: var(--tag-opacity, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    animation: tag-drift var(--tag-duration, 60s) ease-in-out infinite alternate;
    user-select: none;
}

@keyframes tag-drift {
    0% {
        transform: rotate(var(--tag-rotate, 0deg)) translateY(0);
    }
    100% {
        transform: rotate(var(--tag-rotate, 0deg)) translateY(-30px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .card-featured {
        grid-row: span 1;
    }

    .card {
        margin-top: 0;
    }

    .stencil-text {
        font-size: clamp(36px, 12vw, 64px);
    }

    .tag-wall {
        height: 40vh;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes border-shift {
    0% { border-color: #ff3e6c; }
    33% { border-color: #2eddb5; }
    66% { border-color: #e8b84b; }
    100% { border-color: #ff3e6c; }
}

.card-dashed {
    border-style: dashed;
    animation: border-shift 8s ease infinite;
}

/* ===== SCROLL REVEAL ===== */
.card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease,
                border-left-color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-left-width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* End marker */
#end {
    height: 1px;
}
