/* ==========================================================
   sora.market // anti-design manifesto
   palette (triadic + supporting):
     #FF3366 signal red
     #00FF88 digital green
     #8833FF electric violet
     #0A0A0A void black
     #F0F0F0 static white
     #3A3A4A interference grey
     #FFAA00 warning amber
   fonts:
     Space Grotesk  (display)
     IBM Plex Mono  (counter/body)
     Rubik Mono One (accent / pull quotes)
   ========================================================== */

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

html {
    background: #0A0A0A;
}

body {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 400;
    color: #F0F0F0;
    background: #0A0A0A;
    line-height: 1.65;
    font-size: clamp(0.85rem, 1vw, 1rem);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- procedural noise canvas (fixed, behind everything) --- */
#noise-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* --- persistent grid / axis overlay --- */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 79px,
            rgba(240, 240, 240, 0.04) 79px,
            rgba(240, 240, 240, 0.04) 80px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 79px,
            rgba(240, 240, 240, 0.04) 79px,
            rgba(240, 240, 240, 0.04) 80px
        );
}

.grid-axis {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #00FF88;
    opacity: 0.5;
}

/* --- structural layers --- */
.site-header,
.site-footer,
.hero,
.section,
.section-foot,
.glitch-bar {
    position: relative;
    z-index: 2;
}

/* ============= header ============= */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 32px;
    border-bottom: 2px solid #F0F0F0;
    background: #0A0A0A;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.coord {
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    color: #00FF88;
    letter-spacing: 0.12em;
}

.header-id {
    font-weight: 700;
    color: #F0F0F0;
}

.site-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #F0F0F0;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.14em;
    border-bottom: 2px solid transparent;
    padding: 2px 0;
    transition: color 120ms linear, border-color 120ms linear, background 120ms linear;
}

.nav-link:hover {
    color: #0A0A0A;
    background: #FFAA00;
    border-bottom-color: #FF3366;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #FF3366;
    display: inline-block;
    animation: pulse 1.2s steps(2, end) infinite;
}

.status-label {
    color: #FFAA00;
    font-weight: 500;
}

@keyframes pulse {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.2; }
}

/* ============= hero ============= */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 90px 32px 120px;
    overflow: hidden;
    isolation: isolate;
}

.hero-frame {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.frame-1 {
    top: 12vh;
    right: -5vw;
    width: 52vw;
    height: 40vh;
    background: #8833FF;
    z-index: 1;
}

.frame-2 {
    top: 32vh;
    left: 8vw;
    width: 30vw;
    height: 18vh;
    border: 2px solid #00FF88;
    background: transparent;
    z-index: 3;
}

.frame-3 {
    bottom: 14vh;
    right: 18vw;
    width: 20vw;
    height: 22vh;
    background: #3A3A4A;
    z-index: 2;
}

.hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.86;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: #F0F0F0;
    position: relative;
    z-index: 4;
    margin-top: 6vh;
    mix-blend-mode: difference;
}

.hero-title-line {
    display: block;
}

.hero-title-bleed {
    margin-left: 8vw;
    white-space: nowrap;
    transform: translateX(6vw);
    color: #F0F0F0;
}

.hero-lede {
    font-family: "IBM Plex Mono", monospace;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    max-width: 460px;
    margin-top: -40px;
    margin-left: 4vw;
    transform: rotate(-3deg);
    transform-origin: top left;
    position: relative;
    z-index: 5;
    padding: 14px 16px;
    background: rgba(10, 10, 10, 0.7);
    border-left: 2px solid #FFAA00;
}

.hero-diag-bar {
    position: absolute;
    left: -6vw;
    bottom: 16vh;
    width: 58vw;
    height: 34px;
    background: #FF3366;
    transform: rotate(12deg);
    z-index: 6;
}

.hero-meta {
    position: absolute;
    bottom: 60px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    z-index: 7;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.meta-line {
    color: #F0F0F0;
    font-weight: 500;
}

.hero-aside {
    position: absolute;
    top: 56vh;
    right: 4vw;
    max-width: 260px;
    padding: 14px 16px;
    border: 2px solid #FF3366;
    background: #0A0A0A;
    z-index: 8;
    transform: rotate(2deg);
    font-size: 12px;
    line-height: 1.55;
}

.hero-aside .aside-label {
    font-family: "Rubik Mono One", sans-serif;
    color: #00FF88;
    font-size: 10px;
    letter-spacing: 0.16em;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* ============= glitch bars ============= */
.glitch-bar {
    width: 100%;
    position: relative;
    z-index: 2;
}
.glitch-bar-red    { background: #FF3366; height: 14px; }
.glitch-bar-green  { background: #00FF88; height: 10px; }
.glitch-bar-violet { background: #8833FF; height: 20px; }

/* ============= generic section shell ============= */
.section {
    position: relative;
    padding: 140px 32px 160px;
    min-height: 100vh;
    overflow: hidden;
}

.section-odd {
    background: #0A0A0A;
}
.section-even {
    background: #0A0A0A;
}

.section-dense {
    padding-bottom: 200px;
}

.section-coord {
    position: absolute;
    top: 24px;
    left: 32px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    color: #00FF88;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.section-coord-right {
    left: auto;
    right: 32px;
    color: #8833FF;
}

.section-content {
    max-width: 520px;
    margin-left: 4vw;
    position: relative;
    z-index: 3;
}

.section-content-right {
    margin-left: auto;
    margin-right: 4vw;
    text-align: right;
}

.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 32px;
    color: #F0F0F0;
}

.section-title-right {
    color: #F0F0F0;
}

.section-body {
    font-size: clamp(0.9rem, 1.05vw, 1.02rem);
    line-height: 1.7;
    max-width: 440px;
}

.section-content-right .section-body {
    margin-left: auto;
}

/* ============= card-flip zone ============= */
.cards-zone {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0;
    margin-top: 80px;
    position: relative;
    z-index: 3;
    perspective: 1200px;
}

.card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    perspective: 1000px;
}

.card-offset {
    margin-top: 48px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.card.is-flipped .card-inner,
.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    padding: 22px 20px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #F0F0F0;
    background: #3A3A4A;
}

.card-front {
    background: #3A3A4A;
    color: #F0F0F0;
}

.card:nth-child(2n) .card-front {
    border-color: #00FF88;
}
.card:nth-child(3n) .card-front {
    border-color: #8833FF;
}
.card:nth-child(4n) .card-front {
    border-color: #FFAA00;
}

.card-tag {
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #00FF88;
    text-transform: uppercase;
}

.card-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-top: 14px;
}

.card-body {
    font-size: 12px;
    line-height: 1.55;
    margin-top: auto;
    padding-top: 14px;
}

.card-price {
    font-family: "Rubik Mono One", sans-serif;
    font-size: 14px;
    color: #FF3366;
    letter-spacing: 0.1em;
    margin-top: 10px;
    display: inline-block;
}

.card-back {
    transform: rotateY(180deg);
    color: #0A0A0A;
    border-color: #0A0A0A;
}

.card-back-red    { background: #FF3366; }
.card-back-green  { background: #00FF88; }
.card-back-violet { background: #8833FF; color: #F0F0F0; }

.card-tag-back {
    font-family: "Rubik Mono One", sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.card-back-body {
    font-size: 13px;
    line-height: 1.55;
    margin-top: auto;
    padding-top: 14px;
}

.card-coord {
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    margin-top: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ============= pull quotes (rotated, marginal) ============= */
.pull-quote {
    position: absolute;
    font-family: "Rubik Mono One", sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.3rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    max-width: 340px;
    color: #FFAA00;
    z-index: 4;
    text-transform: lowercase;
}

.pull-quote-right {
    right: 2vw;
    top: 58%;
    transform: rotate(90deg);
    transform-origin: top right;
}

.pull-quote-left {
    left: 1vw;
    top: 42%;
    transform: rotate(-90deg);
    transform-origin: top left;
    color: #00FF88;
}

/* ============= manifesto ============= */
.manifesto-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.section-content-right .manifesto-list {
    text-align: right;
}

.manifesto-list li {
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.55;
    padding: 10px 14px;
    border-top: 1px solid #3A3A4A;
}

.manifesto-list li:nth-child(odd) {
    border-left: 2px solid #FF3366;
}
.manifesto-list li:nth-child(even) {
    border-right: 2px solid #00FF88;
}
.manifesto-list li:nth-child(3n) {
    background: rgba(136, 51, 255, 0.08);
}

.manifesto-num {
    font-family: "Rubik Mono One", sans-serif;
    color: #FFAA00;
    margin-right: 10px;
    font-size: 13px;
    letter-spacing: 0.1em;
}

/* ============= collision art ============= */
.collision-art {
    position: absolute;
    left: 3vw;
    top: 18vh;
    width: min(38vw, 420px);
    max-width: 420px;
    z-index: 2;
}

.collision-art svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(4px 4px 0 #0A0A0A);
}

.art-caption {
    display: block;
    margin-top: 8px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    color: #F0F0F0;
    text-transform: uppercase;
}

/* ============= ticker ============= */
.ticker-block {
    margin-top: 60px;
    max-width: 960px;
    margin-left: 4vw;
    border: 2px solid #00FF88;
    background: #0A0A0A;
    position: relative;
    z-index: 3;
}

.ticker-row {
    display: grid;
    grid-template-columns: 120px 120px 120px 1fr;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px dashed #3A3A4A;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-items: center;
    transition: background 120ms linear, color 120ms linear;
}

.ticker-row:last-child {
    border-bottom: none;
}

.ticker-header {
    background: #00FF88;
    color: #0A0A0A;
    font-family: "Rubik Mono One", sans-serif;
    letter-spacing: 0.12em;
}

.ticker-symbol {
    font-family: "Rubik Mono One", sans-serif;
    color: #FFAA00;
    font-size: 13px;
}

.ticker-down {
    color: #FF3366;
    font-weight: 700;
}

.ticker-up {
    color: #00FF88;
    font-weight: 700;
}

.ticker-row.is-pinged {
    background: #FFAA00;
    color: #0A0A0A;
}

.ticker-row.is-pinged .ticker-symbol,
.ticker-row.is-pinged .ticker-up,
.ticker-row.is-pinged .ticker-down {
    color: #0A0A0A;
}

/* ============= foot grid (closing section) ============= */
.section-foot {
    position: relative;
    padding: 120px 32px 140px;
    background: #0A0A0A;
    overflow: hidden;
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 0;
    margin-top: 60px;
    border: 2px solid #F0F0F0;
}

.foot-cell {
    padding: 22px 20px;
    border-right: 2px solid #F0F0F0;
    border-bottom: 2px solid #F0F0F0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    line-height: 1.55;
}

.foot-cell:last-child,
.foot-cell:nth-child(4n) {
    border-right: none;
}

.foot-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: #00FF88;
    text-transform: uppercase;
}

.foot-cell-big {
    grid-column: span 2;
    grid-row: span 2;
    background: #0A0A0A;
    justify-content: space-between;
}

.foot-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #F0F0F0;
}

.foot-cell-red    { background: #FF3366; color: #0A0A0A; }
.foot-cell-red    .foot-label { color: #0A0A0A; }

.foot-cell-green  { background: #00FF88; color: #0A0A0A; }
.foot-cell-green  .foot-label { color: #0A0A0A; }

.foot-cell-violet { background: #8833FF; color: #F0F0F0; }
.foot-cell-violet .foot-label { color: #FFAA00; }

.foot-cell-wide {
    grid-column: span 2;
    background: #3A3A4A;
}

/* ============= footer ============= */
.site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 32px 28px;
    border-top: 2px solid #F0F0F0;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: #0A0A0A;
    color: #F0F0F0;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    color: #FFAA00;
}

#footer-seed {
    color: #8833FF;
    font-family: "Rubik Mono One", sans-serif;
    font-size: 11px;
}

#footer-clock {
    color: #00FF88;
}

/* ============= responsive adjustments ============= */
@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }
    .site-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-right {
        justify-content: flex-start;
    }

    .grid-axis { display: none; }

    .hero {
        padding: 60px 20px 90px;
    }
    .hero-lede {
        transform: rotate(-2deg);
        margin-left: 0;
        margin-top: 20px;
    }
    .hero-diag-bar {
        width: 140vw;
        left: -20vw;
    }
    .hero-aside {
        position: static;
        margin-top: 40px;
        transform: rotate(1deg);
        max-width: none;
    }
    .hero-meta {
        position: static;
        align-items: flex-start;
        margin-top: 40px;
    }

    .section {
        padding: 80px 20px 100px;
    }
    .section-content,
    .section-content-right {
        margin: 0;
        max-width: none;
        text-align: left;
    }
    .section-content-right .manifesto-list {
        text-align: left;
    }

    .cards-zone {
        grid-template-columns: 1fr;
    }
    .card-offset { margin-top: 0; }

    .collision-art {
        position: static;
        width: 80%;
        margin: 40px auto 0;
    }

    .pull-quote-right,
    .pull-quote-left {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        right: auto;
        margin: 30px 0;
        max-width: none;
    }

    .ticker-block {
        margin-left: 0;
    }
    .ticker-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        font-size: 11px;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
    .foot-cell-big,
    .foot-cell-wide {
        grid-column: span 2;
    }
    .foot-cell:nth-child(4n) {
        border-right: 2px solid #F0F0F0;
    }
    .foot-cell:nth-child(2n) {
        border-right: none;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
    .footer-right {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(3.2rem, 16vw, 5rem); }
    .section-title { font-size: clamp(2.2rem, 10vw, 3.4rem); }
    .foot-title { font-size: clamp(2.2rem, 14vw, 3.8rem); }
    .foot-grid {
        grid-template-columns: 1fr;
    }
    .foot-cell { border-right: none !important; }
}
