/* ============================================================
   prototype.st — Urban Poster Wall Design
   Colors: #e8e4de #111111 #525252 #ffffff #3b82f6 #ef4444 #fbbf24 #222222
   Fonts: "Work Sans" (Google Fonts) — body; Bebas Neue (Google Fonts) — display
   ============================================================ */

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

:root {
    --concrete: #e8e4de;
    --ink: #111111;
    --gray: #525252;
    --white: #ffffff;
    --blue: #3b82f6;
    --red: #ef4444;
    --yellow: #fbbf24;
    --dark: #222222;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--concrete);
    font-family: 'Work Sans', sans-serif;
    color: var(--gray);
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Concrete noise texture overlay via pseudo-element on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.5;
}

/* ---- SVG noise filter (hidden element) ---- */
#concrete-filter {
    display: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    background: var(--concrete);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 5vw 120px;
}

/* Extra noise overlay for hero */
#hero-noise-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
    opacity: 0.6;
}

#hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: 0;
}

#hero-stamp {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    border: 2px solid var(--blue);
    padding: 4px 10px;
    transform: rotate(-1deg);
}

#hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 14vw, 11rem);
    font-weight: 400;
    color: var(--ink);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
    transform: rotate(-3deg);
    transform-origin: left bottom;
    margin-bottom: 32px;
    display: block;
    /* Slight text-shadow for stencil look */
    text-shadow: 4px 4px 0 rgba(17,17,17,0.08);
}

#hero-tagline {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

#hero-sub {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--dark);
    letter-spacing: 0.12em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

#hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    display: inline-block;
    transition: background 0.2s, transform 0.15s;
    border: 2px solid var(--ink);
    transform: rotate(-0.5deg);
}

.btn-primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: rotate(0.5deg) translateY(-2px);
}

.btn-ghost {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    padding: 14px 32px;
    display: inline-block;
    border: 2px solid var(--gray);
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
    transform: rotate(0.5deg);
}

.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--blue);
    transform: rotate(-0.5deg) translateY(-2px);
}

/* Torn edge between hero and gallery */
#hero-torn-edge {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--concrete);
    clip-path: polygon(
        0% 100%,
        0% 60%,
        2% 20%,
        4% 55%,
        6% 10%,
        8% 45%,
        10% 5%,
        13% 40%,
        15% 0%,
        17% 35%,
        20% 8%,
        23% 50%,
        26% 15%,
        29% 48%,
        32% 5%,
        35% 40%,
        38% 12%,
        41% 55%,
        44% 20%,
        47% 45%,
        50% 0%,
        53% 38%,
        56% 10%,
        59% 50%,
        62% 8%,
        65% 42%,
        68% 18%,
        71% 52%,
        74% 5%,
        77% 45%,
        80% 22%,
        83% 55%,
        86% 10%,
        89% 48%,
        92% 18%,
        95% 38%,
        98% 5%,
        100% 30%,
        100% 100%
    );
    z-index: 2;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ============================================================
   GALLERY
   ============================================================ */
#gallery {
    position: relative;
    z-index: 1;
    padding: 80px 5vw 100px;
    background: var(--concrete);
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px 32px;
    align-items: start;
}

/* ---- Poster Cards ---- */
.poster-card {
    background: var(--white);
    padding: 32px 28px 28px;
    position: relative;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
    /* Paper shadow */
    box-shadow:
        3px 3px 0 rgba(17,17,17,0.12),
        6px 6px 0 rgba(17,17,17,0.06);
}

.poster-card:hover {
    transform: rotate(calc(var(--rot, 0deg) * -0.3)) translateY(-6px);
    box-shadow:
        6px 8px 0 rgba(17,17,17,0.18),
        12px 14px 0 rgba(17,17,17,0.08);
    z-index: 10;
}

/* Masking tape strips — top */
.poster-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 44px;
    height: 12px;
    background: var(--tape-color, #fbbf24);
    opacity: 0.75;
    transform: rotate(-1.5deg);
}

/* Masking tape strips — right corner */
.poster-card::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 36px;
    height: 12px;
    background: var(--tape-color, #fbbf24);
    opacity: 0.55;
    transform: rotate(1.5deg);
}

.card-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--concrete);
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 24px;
    letter-spacing: -0.02em;
    pointer-events: none;
    user-select: none;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    line-height: 1.1;
}

.card-meta {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.card-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-tag {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    padding: 3px 8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.06em;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   MANIFESTO STRIP
   ============================================================ */
#manifesto {
    background: var(--ink);
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

#manifesto-inner {
    overflow: hidden;
    white-space: nowrap;
}

.manifesto-line {
    display: inline-block;
    animation: manifesto-scroll 22s linear infinite;
    will-change: transform;
}

.manifesto-word {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: var(--concrete);
    text-transform: uppercase;
    margin: 0 12px;
}

.manifesto-sep {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--blue);
    margin: 0 8px;
    display: inline-block;
    transform: translateY(-1px);
}

@keyframes manifesto-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   SUBMIT SECTION
   ============================================================ */
#submit {
    position: relative;
    background: var(--dark);
    z-index: 1;
    padding: 100px 5vw 100px;
    overflow: hidden;
}

/* Concrete noise on dark background */
#submit::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.4;
}

#submit-torn-top {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--concrete);
    clip-path: polygon(
        0% 0%,
        2% 80%,
        5% 30%,
        8% 90%,
        11% 20%,
        14% 70%,
        17% 10%,
        20% 60%,
        23% 25%,
        26% 80%,
        29% 5%,
        32% 55%,
        35% 30%,
        38% 85%,
        41% 15%,
        44% 65%,
        47% 35%,
        50% 90%,
        53% 20%,
        56% 75%,
        59% 45%,
        62% 80%,
        65% 10%,
        68% 60%,
        71% 30%,
        74% 75%,
        77% 15%,
        80% 55%,
        83% 25%,
        86% 70%,
        89% 0%,
        92% 50%,
        95% 20%,
        98% 65%,
        100% 0%,
        100% 0%,
        0% 0%
    );
    z-index: 2;
}

#submit-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.submit-poster {
    background: var(--white);
    padding: 48px 44px;
    max-width: 600px;
    width: 100%;
    position: relative;
    transform: rotate(var(--rot, 0deg));
    box-shadow:
        4px 4px 0 rgba(17,17,17,0.3),
        8px 8px 0 rgba(17,17,17,0.15);
}

/* Tape on submit poster */
.submit-poster::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 60px;
    height: 14px;
    background: var(--tape-color, #fbbf24);
    opacity: 0.8;
    transform: rotate(-2deg);
}

.submit-poster::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 50px;
    height: 14px;
    background: var(--tape-color, #fbbf24);
    opacity: 0.65;
    transform: rotate(1.5deg);
}

#submit-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: var(--ink);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    margin-top: 12px;
}

#submit-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 32px;
}

#submit-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.field-input {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--concrete);
    border: 2px solid var(--gray);
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.field-input:focus {
    border-color: var(--ink);
}

.field-input::placeholder {
    color: #aaa;
}

textarea.field-input {
    resize: vertical;
    min-height: 90px;
}

select.field-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23525252' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

#submit-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--white);
    border: 2px solid var(--ink);
    padding: 16px 32px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    transform: rotate(-0.5deg);
    align-self: flex-start;
    margin-top: 4px;
}

#submit-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: rotate(0.5deg) translateY(-2px);
}

#submit-btn.success {
    background: #22c55e;
    border-color: #22c55e;
}

/* ============================================================
   TICKER BAR
   ============================================================ */
#ticker-bar {
    background: var(--blue);
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    z-index: 2;
}

#ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 18s linear infinite;
    will-change: transform;
}

.tick-item {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.18em;
    color: var(--white);
    margin: 0 16px;
    text-transform: uppercase;
}

.tick-sep {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0 4px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: var(--ink);
    padding: 50px 5vw 40px;
    position: relative;
    z-index: 1;
}

#footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 36px;
}

#footer-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#footer-tagline {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.04em;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
}

#footer-copy {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.04em;
}

/* ============================================================
   SCROLL-IN ANIMATIONS
   ============================================================ */
.poster-card,
.submit-poster {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

.poster-card.visible {
    opacity: 1;
}

.submit-poster.visible {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
    #gallery-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    #hero-title {
        transform: rotate(-2deg);
    }

    .submit-poster {
        padding: 36px 24px;
    }

    #footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    #hero-cta-row {
        flex-direction: column;
        max-width: 260px;
    }
}

@media (min-width: 1200px) {
    #gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
