/* =====================================================
   licence.broker — Generative Punk
   Palette: #1A0A10 #4A0E2B #E8175D #F2D0D9 #FAE8EE #8A3A5E #C44D1A
   Type: Josefin Sans (display) / Outfit (body) / Space Mono (mono)
   ===================================================== */

:root {
    --abyss: #1A0A10;
    --marrow: #4A0E2B;
    --pulse: #E8175D;
    --bone: #F2D0D9;
    --ghost: #FAE8EE;
    --wire: #8A3A5E;
    --sear: #C44D1A;
    --elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --max-measure: 480px;
    --section-pad: clamp(48px, 8vw, 140px);
}

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

html, body {
    background: var(--abyss);
    color: var(--bone);
    font-family: "Outfit", "Inter", system-ui, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(ellipse at center, rgba(74, 14, 43, 0.55) 0%, var(--abyss) 70%),
        var(--abyss);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
canvas, svg { display: block; }

/* ----- subliminal triangular grid overlay ----- */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    background-image:
        linear-gradient(60deg, transparent 49.7%, var(--wire) 50%, transparent 50.3%),
        linear-gradient(-60deg, transparent 49.7%, var(--wire) 50%, transparent 50.3%),
        linear-gradient(0deg, transparent 49.7%, var(--wire) 50%, transparent 50.3%);
    background-size: 60px 104px, 60px 104px, 60px 104px;
    mix-blend-mode: screen;
}

/* ----- scroll progress rail ----- */
.progress-rail {
    position: fixed;
    top: 0; right: 0;
    width: 2px;
    height: 100vh;
    background: rgba(242, 208, 217, 0.08);
    z-index: 50;
}

.progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--ghost) 0%, var(--pulse) 50%, var(--sear) 100%);
    box-shadow: 0 0 12px var(--pulse);
    transition: height 0.05s linear;
}

main {
    position: relative;
    z-index: 2;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--abyss);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-text {
    font-family: "Josefin Sans", "Futura", "Space Mono", sans-serif;
    font-weight: 700;
    font-size: 220px;
    letter-spacing: -0.03em;
    fill: var(--ghost);
    paint-order: stroke fill;
}

.hero-text-outline {
    font-family: "Josefin Sans", "Futura", "Space Mono", sans-serif;
    font-weight: 700;
    font-size: 220px;
    letter-spacing: -0.03em;
    fill: none;
    stroke: var(--pulse);
    stroke-width: 1.2;
    opacity: 0.55;
    mix-blend-mode: screen;
}

.hero-meta {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.meta-tag {
    font-family: "Space Mono", "Space", "Inter", monospace;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wire);
}

.meta-coords {
    color: var(--bone);
    opacity: 0.65;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, transparent 0%, var(--bone) 100%);
    animation: scrollLineDrift 2.4s ease-in-out infinite;
}

@keyframes scrollLineDrift {
    0%, 100% { transform: translateY(0); opacity: 0.25; }
    50% { transform: translateY(8px); opacity: 1; }
}

.scroll-label {
    font-family: "Space Mono", "Space", "Inter", monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--bone);
    text-transform: uppercase;
}

/* =====================================================
   BLOB DIVIDERS
   ===================================================== */
.blob-divider {
    position: relative;
    width: 100%;
    height: clamp(80px, 12vw, 200px);
    margin-top: -1px;
    margin-bottom: -1px;
    line-height: 0;
}

.blob-divider svg {
    width: 100%;
    height: 100%;
}

/* =====================================================
   MANIFESTO
   ===================================================== */
.manifesto {
    position: relative;
    min-height: 100vh;
    padding: var(--section-pad) clamp(24px, 5vw, 96px);
    background: var(--marrow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 80px);
    overflow: hidden;
}

.manifesto-column {
    max-width: var(--max-measure);
    margin-left: clamp(0px, 8vw, 140px);
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    font-family: "Space Mono", "Space", "Inter", monospace;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wire);
    margin-bottom: 24px;
}

.section-title {
    font-family: "Josefin Sans", "Futura", "Space Mono", sans-serif;
    font-weight: 700;
    font-size: clamp(56px, 8vw, 128px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--ghost);
    margin-bottom: 32px;
    position: relative;
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 1.2s var(--elastic), opacity 0.8s ease;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-stroke: 1px var(--pulse);
    transform: translate(6px, 6px);
    z-index: -1;
    opacity: 0.6;
}

.manifesto.is-visible .section-title { transform: translateX(0); opacity: 1; }

.manifesto-body {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--bone);
}

.manifesto-body .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    transition: opacity 0.5s ease, transform 0.7s var(--elastic);
}

.manifesto-body .word.is-on {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.geometry-field {
    position: relative;
    width: 100%;
    height: clamp(420px, 60vh, 720px);
    z-index: 1;
}

.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.geo-shape svg { overflow: visible; }

/* =====================================================
   PROCESS BANDS
   ===================================================== */
.process {
    position: relative;
    background: var(--abyss);
}

.process-band {
    position: relative;
    min-height: 100vh;
    padding: var(--section-pad) clamp(24px, 5vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 80px);
    overflow: hidden;
    border-top: 1px solid rgba(138, 58, 94, 0.18);
}

.process-band--1 { background: var(--abyss); }
.process-band--2 { background: var(--marrow); }
.process-band--3 {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(196, 77, 26, 0.15) 0%, transparent 60%),
        var(--abyss);
}

.process-band--2 .process-text { order: 2; }
.process-band--2 .process-illustration { order: 1; }

.process-illustration {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 540px;
    margin: 0 auto;
}

.process-illustration canvas {
    width: 100%;
    height: 100%;
}

.process-text {
    max-width: 560px;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 1s var(--elastic), opacity 0.8s ease;
}

.process-band.is-visible .process-text {
    transform: translateY(0);
    opacity: 1;
}

.band-number {
    display: block;
    font-family: "Josefin Sans", "Futura", "Space Mono", sans-serif;
    font-weight: 700;
    font-size: clamp(80px, 14vw, 200px);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--pulse);
    margin-bottom: 16px;
}

.band-tag {
    display: inline-block;
    font-family: "Space Mono", "Space", "Inter", monospace;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wire);
    margin-bottom: 18px;
}

.band-title {
    font-family: "Josefin Sans", "Futura", "Space Mono", sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ghost);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(232, 23, 93, 0.12) 0%, var(--abyss) 70%),
        var(--abyss);
    display: grid;
    place-items: center;
}

.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    pointer-events: none;
}

.contact-tag {
    display: block;
    font-family: "Space Mono", "Space", "Inter", monospace;
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--wire);
    margin-bottom: 32px;
}

.contact-email {
    display: inline-block;
    font-family: "Josefin Sans", "Futura", "Space Mono", sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 7vw, 112px);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ghost);
    pointer-events: auto;
    position: relative;
    transition: color 0.5s ease, transform 0.7s var(--elastic);
}

.contact-email::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -10px;
    height: 2px;
    background: var(--pulse);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s var(--elastic);
}

.contact-email:hover {
    color: var(--pulse);
    transform: scale(1.02);
}

.contact-email:hover::after { transform: scaleX(1); }

.contact-sub {
    display: block;
    margin-top: 36px;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 16px;
    color: var(--bone);
    opacity: 0.7;
    letter-spacing: 0.04em;
}

/* =====================================================
   COLOPHON
   ===================================================== */
.colophon {
    background: var(--marrow);
    padding: var(--section-pad) clamp(24px, 5vw, 96px);
    border-top: 1px solid rgba(232, 23, 93, 0.18);
}

.colophon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 64px);
    max-width: 1280px;
    margin: 0 auto;
}

.colophon-cell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cell-label {
    font-family: "Space Mono", "Space", "Inter", monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pulse);
}

.cell-body {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--bone);
    max-width: 360px;
}

.cell-mono {
    font-family: "Space Mono", "Space", "Inter", monospace;
    font-size: 13px;
    color: var(--wire);
    letter-spacing: 0.08em;
}

.palette-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.palette-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Space Mono", "Space", "Inter", monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--bone);
}

.palette-list i {
    width: 18px;
    height: 18px;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(242, 208, 217, 0.18);
    flex-shrink: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .hero-text, .hero-text-outline {
        font-size: 130px;
    }

    .manifesto, .process-band {
        grid-template-columns: 1fr;
    }

    .manifesto-column {
        margin-left: 0;
    }

    .geometry-field {
        height: 320px;
    }

    .process-band--2 .process-text { order: 0; }
    .process-band--2 .process-illustration { order: 1; }

    .colophon-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .hero-text, .hero-text-outline {
        font-size: 84px;
    }

    .section-title {
        font-size: clamp(48px, 14vw, 96px);
    }

    .band-number {
        font-size: 96px;
    }

    .meta-coords {
        display: none;
    }
}
