/* gabs.feedback :: neubrutalism raw edges blog
   Palette is flat, shadows are hard, corners are sharp. */

:root {
    --paper: #fffbeb;
    --ink: #1a1a1a;
    --red: #e63946;
    --blue: #457b9d;
    --chalk: #f1faee;
    --mustard: #e9c46a;
    --gray: #8d99ae;

    --border-w: 4px;
    --shadow-hard: 6px 6px 0 var(--ink);
    --shadow-hover: 3px 3px 0 var(--red);

    --rot: 0deg;
    --stamp-rot: 0deg;
}

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

html {
    scroll-behavior: auto;
    background: var(--paper);
}

body {
    font-family: "Work Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ---------- Progress Scar ---------- */
.progress-scar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: var(--red);
    z-index: 9999;
    transform-origin: left center;
}

.progress-scar.is-pulse {
    animation: scar-pulse 0.3s steps(2, end);
}

@keyframes scar-pulse {
    0%   { transform: scaleY(1); }
    50%  { transform: scaleY(2); }
    100% { transform: scaleY(1); }
}

/* ---------- Sticky Brand ---------- */
.sticky-brand {
    position: fixed;
    top: 14px;
    left: 18px;
    z-index: 1000;
    background: var(--paper);
    padding: 6px 10px;
    border-bottom: 4px solid var(--ink);
    font-family: "Work Sans", sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-text::before {
    content: "■ ";
    color: var(--red);
}

/* ---------- Type defaults ---------- */
h1, h2, h3 {
    font-family: "Bebas Neue", "Work Sans", sans-serif;
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.marker, .hero-stamp, .block-stamp, .declaration-stamp,
.tile-label, .big-number {
    font-family: "Permanent Marker", "Work Sans", cursive;
    font-weight: 400;
}

/* ---------- 1. Paste-Up (Hero) ---------- */
.paste-up {
    position: relative;
    height: 100vh;
    min-height: 640px;
    background: var(--paper);
    overflow: hidden;
    padding: 100px 6vw 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paste-up__inner {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(6rem, 20vw, 18rem);
    color: var(--ink);
    transform: rotate(-3deg);
    transform-origin: left center;
    display: inline-block;
    border-bottom: 10px solid var(--ink);
    padding: 0 8% 0 0;
    margin-left: -2vw;
    margin-right: -8%;
    line-height: 0.85;
}

.hero-sub {
    font-family: "Permanent Marker", cursive;
    font-size: clamp(2.5rem, 7vw, 6rem);
    color: var(--red);
    transform: rotate(1deg);
    margin-top: -0.18em;
    margin-left: 6vw;
    text-transform: lowercase;
    letter-spacing: 0;
    line-height: 1;
    display: inline-block;
    background: var(--paper);
    padding: 0 0.2em;
}

.hero-tag {
    margin-top: 2.5rem;
    margin-left: 2vw;
    max-width: 520px;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 600;
    border-left: 6px solid var(--ink);
    padding-left: 1rem;
    transform: rotate(-0.5deg);
}

.hero-stamp {
    position: absolute;
    top: 5vh;
    right: 4vw;
    font-size: clamp(8rem, 18vw, 22rem);
    color: var(--red);
    opacity: 0.18;
    transform: rotate(-12deg) scale(0);
    z-index: 1;
    line-height: 1;
    user-select: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-stamp.is-stamped {
    transform: rotate(-12deg) scale(1);
}

.hero-stamp--small {
    top: auto;
    right: 6vw;
    bottom: 8vh;
    font-size: clamp(2rem, 4vw, 4rem);
    color: var(--ink);
    opacity: 0.85;
    border: 4px solid var(--ink);
    padding: 0.4rem 1.2rem;
    transform: rotate(8deg) scale(0);
    background: var(--mustard);
    box-shadow: 5px 5px 0 var(--ink);
}

.hero-stamp--small.is-stamped {
    transform: rotate(8deg) scale(1);
}

.hero-meta {
    position: absolute;
    bottom: 28px;
    left: 6vw;
    display: flex;
    gap: 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray);
    z-index: 3;
}

/* ---------- Common section heading ---------- */
.section-title {
    font-size: clamp(3rem, 8vw, 8rem);
    color: var(--ink);
    line-height: 0.86;
}

.kicker {
    font-family: "Work Sans", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-block;
    margin-top: 0.75rem;
}

.big-number {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.5rem;
    transform: rotate(-4deg);
}

/* ---------- 2. Opinion Corridor ---------- */
.corridor {
    position: relative;
    padding: 12vh 4vw 18vh;
    background: var(--paper);
}

.corridor__heading,
.stamp-wall__heading {
    margin-bottom: 6vh;
    padding-left: 4vw;
    transform: rotate(-1deg);
}

.block {
    position: relative;
    border: var(--border-w) solid var(--ink);
    box-shadow: var(--shadow-hard);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: -3vh;
    transform: rotate(var(--rot));
    transition: box-shadow 0.12s ease-out, background 0.12s ease-out, transform 0.12s ease-out;
    max-width: 620px;
}

.block:hover {
    box-shadow: var(--shadow-hover);
    background: var(--chalk) !important;
    z-index: 5;
}

.block--left  { margin-left: 4vw;  margin-right: auto; }
.block--right { margin-left: auto; margin-right: 4vw; }

.block--bg-paper   { background: var(--paper); }
.block--bg-blue    { background: var(--blue); color: var(--chalk); }
.block--bg-mustard { background: var(--mustard); }
.block--bg-chalk   { background: var(--chalk); }

.block-meta {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray);
    border-bottom: 2px solid currentColor;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.block--bg-blue .block-meta { color: var(--chalk); }

.block-quote {
    font-size: clamp(1.1rem, 1.7vw, 1.55rem);
    font-weight: 600;
    line-height: 1.4;
}

.block-tag {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.04em;
}

.block--bg-blue .block-tag { color: var(--mustard); }

.block-stamp {
    position: absolute;
    top: -22px;
    right: -18px;
    background: var(--red);
    color: var(--paper);
    border: var(--border-w) solid var(--ink);
    font-size: 1.2rem;
    padding: 0.35rem 0.9rem;
    transform: rotate(var(--stamp-rot, 8deg)) scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 4px 4px 0 var(--ink);
    letter-spacing: 0.04em;
}

.block-stamp.is-stamped {
    transform: rotate(var(--stamp-rot, 8deg)) scale(1);
}

.block-stamp--green {
    background: var(--mustard);
    color: var(--ink);
}

/* ---------- 3. Stamp Wall ---------- */
.stamp-wall {
    background: var(--ink);
    color: var(--chalk);
    padding: 14vh 4vw 16vh;
    position: relative;
    clip-path: url(#tear-2);
}

.stamp-wall .section-title { color: var(--chalk); }
.stamp-wall .big-number    { color: var(--mustard); }
.stamp-wall .kicker        { color: var(--mustard); }

.mosaic {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
}

.tile {
    border: var(--border-w) solid var(--chalk);
    box-shadow: 6px 6px 0 var(--red);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotate(var(--rot));
    transition: transform 0.15s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
    overflow: hidden;
    position: relative;
}

.tile:hover {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 3px 3px 0 var(--mustard);
}

.tile--sm { grid-column: span 1; grid-row: span 1; }
.tile--md { grid-column: span 2; grid-row: span 1; }
.tile--lg { grid-column: span 2; grid-row: span 2; }

.tile--paper   { background: var(--paper);   color: var(--ink); }
.tile--red     { background: var(--red);     color: var(--chalk); }
.tile--mustard { background: var(--mustard); color: var(--ink); }
.tile--blue    { background: var(--blue);    color: var(--chalk); }
.tile--chalk   { background: var(--chalk);   color: var(--ink); }
.tile--ink     { background: var(--ink);     color: var(--mustard); border-color: var(--mustard); }

.tile-label {
    font-size: clamp(1.1rem, 2vw, 2.4rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transform: rotate(-3deg);
    align-self: flex-start;
}

.tile-count {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 3rem);
    align-self: flex-end;
    line-height: 1;
}

/* ---------- Interlude / stats ---------- */
.interlude {
    background: var(--mustard);
    padding: 10vh 6vw 12vh;
    border-top: 6px solid var(--ink);
    border-bottom: 6px solid var(--ink);
    position: relative;
}

.interlude__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat {
    border: var(--border-w) solid var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow-hard);
    padding: 1.5rem 1.2rem;
    transform: rotate(var(--rot));
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.stat:hover {
    box-shadow: var(--shadow-hover);
    background: var(--chalk);
}

.stat-num {
    display: block;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--ink);
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--blue);
}

.interlude__note {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    font-weight: 600;
    max-width: 720px;
    border-left: 6px solid var(--ink);
    padding-left: 1rem;
}

.interlude__note .marker {
    color: var(--red);
    font-size: 1.15em;
    padding: 0 0.1em;
    transform: rotate(-2deg);
    display: inline-block;
}

/* ---------- 4. Declaration ---------- */
.declaration {
    background: var(--chalk);
    min-height: 100vh;
    padding: 14vh 6vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    clip-path: url(#tear-4);
}

.declaration-pre {
    font-size: 0.85rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 2rem;
    font-weight: 600;
}

.declaration-text {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.5rem, 8vw, 7.5rem);
    line-height: 0.9;
    color: var(--ink);
    max-width: 1100px;
}

.declaration-line {
    display: inline-block;
    position: relative;
    color: var(--red);
}

.wobble-underline {
    position: absolute;
    left: 0;
    bottom: -0.05em;
    width: 100%;
    height: 0.25em;
    overflow: visible;
    animation: wobble 2.4s ease-in-out infinite;
}

.wobble-underline path {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 0.9s ease-out;
}

.declaration.is-visible .wobble-underline path {
    stroke-dashoffset: 0;
}

@keyframes wobble {
    0%   { transform: translateY(0)    rotate(0deg); }
    25%  { transform: translateY(-2px) rotate(-0.6deg); }
    50%  { transform: translateY(1px)  rotate(0.4deg); }
    75%  { transform: translateY(-1px) rotate(-0.2deg); }
    100% { transform: translateY(0)    rotate(0deg); }
}

.declaration-stamp {
    position: absolute;
    bottom: 6vh;
    right: 6vw;
    font-size: clamp(3rem, 7vw, 6rem);
    color: var(--red);
    border: 6px solid var(--red);
    padding: 0.5rem 1.2rem;
    transform: rotate(8deg) scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--paper);
    box-shadow: 8px 8px 0 var(--ink);
    letter-spacing: 0.02em;
}

.declaration-stamp.is-stamped {
    transform: rotate(8deg) scale(1);
}

.declaration-foot {
    margin-top: 4rem;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gray);
}

/* ---------- Footer ---------- */
.paste-foot {
    background: var(--ink);
    color: var(--mustard);
    padding: 2rem 4vw;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.6rem);
    letter-spacing: 0.08em;
    border-top: 6px solid var(--red);
}

.paste-foot span::before {
    content: "// ";
    color: var(--red);
}

/* ---------- Reveal animation entry ---------- */
[data-block] {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-block].is-stamped {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    :root {
        --shadow-hard: 3px 3px 0 var(--ink);
        --shadow-hover: 2px 2px 0 var(--red);
    }

    .block { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
    .corridor { padding: 8vh 4vw 12vh; }

    .mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
        gap: 8px;
    }
    .tile--sm, .tile--md, .tile--lg {
        grid-column: span 1;
        grid-row: span 1;
    }
    .tile--lg { grid-row: span 2; }

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

    .hero-stamp { font-size: 8rem; }
    .hero-meta { gap: 0.6rem; flex-wrap: wrap; font-size: 0.6rem; }
}
