/* BRUTALIST BLACK & WHITE DESIGN SYSTEM */

:root {
    --pure-black: #000000;
    --deep-black: #0a0a0a;
    --off-black: #141414;
    --pure-white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #e5e5e5;
    --mid-gray: #888888;
    --dark-gray: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--pure-black);
    color: var(--pure-white);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-transform: uppercase;
}

/* ── Typography ─────────────────────────────────────── */
.headline-massive {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    position: relative;
    z-index: 20;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.headline-large {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.headline-medium {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Sections ───────────────────────────────────────── */
.section-black {
    background-color: var(--pure-black);
    color: var(--pure-white);
    position: relative;
}

.section-white {
    background-color: var(--pure-white);
    color: var(--pure-black);
    position: relative;
}

.section-gray {
    background-color: var(--off-black);
    color: var(--pure-white);
    border-top: 1px solid var(--dark-gray);
    border-bottom: 1px solid var(--dark-gray);
}

/* ── Borders ────────────────────────────────────────── */
.border-brutal {
    border: 2px solid var(--pure-white);
}

.border-brutal-thick {
    border: 4px solid var(--pure-white);
}

.border-brutal-inverse {
    border: 2px solid var(--pure-black);
}

.border-top-thick {
    border-top: 8px solid var(--pure-white);
}

.border-bottom-thick {
    border-bottom: 8px solid var(--pure-white);
}

/* ── Buttons ────────────────────────────────────────── */
.btn-brutal {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: var(--pure-white);
    color: var(--pure-black);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--pure-white);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-brutal:hover {
    background-color: var(--pure-black);
    color: var(--pure-white);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--pure-white);
}

.btn-brutal-outline {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: transparent;
    color: var(--pure-white);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--pure-white);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-brutal-outline:hover {
    background-color: var(--pure-white);
    color: var(--pure-black);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--mid-gray);
}

.btn-brutal-inverse {
    display: inline-block;
    padding: 1.25rem 3rem;
    background-color: var(--pure-black);
    color: var(--pure-white);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--pure-black);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-brutal-inverse:hover {
    background-color: var(--pure-white);
    color: var(--pure-black);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--pure-black);
}

/* ── Nav ────────────────────────────────────────────── */
.nav-brutal {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-gray);
}

.nav-brutal a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-brutal a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--pure-white);
    transition: width 0.3s ease;
}

.nav-brutal a:hover::after {
    width: 100%;
}

.nav-brutal .btn-brutal {
    color: var(--pure-black) !important;
}

.nav-brutal .btn-brutal:hover {
    color: var(--pure-white) !important;
}

.nav-brutal .btn-brutal-outline {
    color: var(--pure-white);
}

.nav-brutal .btn-brutal-outline:hover {
    color: var(--pure-black);
}

/* ── Grid Lines ─────────────────────────────────────── */
.grid-lines {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.grid-lines-dark {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Cards ──────────────────────────────────────────── */
.card-brutal {
    background-color: var(--deep-black);
    border: 2px solid var(--dark-gray);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.card-brutal:hover {
    border-color: var(--pure-white);
    transform: translateY(-8px);
    box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.1);
}

.card-white {
    background-color: var(--pure-white);
    color: var(--pure-black);
    border: 2px solid var(--pure-black);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.card-white:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

/* ── Marquee ────────────────────────────────────────── */
/* NOTE: index.html overrides border colour and animation name for its
   black-bg marquee strip. @keyframes marquee-scroll is defined there. */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid var(--pure-white);
    border-bottom: 2px solid var(--pure-white);
    padding: 1rem 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 28s linear infinite;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Reveal Animations ──────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* ── Image Treatment ────────────────────────────────── */
.img-monochrome {
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease;
}

.img-monochrome:hover {
    filter: grayscale(0%) contrast(1);
}

/* ── Logo ───────────────────────────────────────────── */
.logo-glow {
    position: relative;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.1));
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.1));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 100px rgba(255, 255, 255, 0.2));
    }
}

/* ── Typography Utilities ───────────────────────────── */
.number-huge {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: 2px var(--pure-white);
}

.line-through-brutal {
    position: relative;
    display: inline-block;
}

.line-through-brutal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--pure-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.line-through-brutal:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── Glitch ─────────────────────────────────────────── */
@keyframes glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
    }

    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(2px, -2px);
    }

    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-2px, 2px);
    }

    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(0);
    }
}

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip-path: inset(0);
    animation: glitch 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 blue;
    clip-path: inset(0);
    animation: glitch 2s infinite linear alternate-reverse;
}

/* ── Selection & Scrollbar ──────────────────────────── */
::selection {
    background-color: var(--pure-white);
    color: var(--pure-black);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pure-black);
}

::-webkit-scrollbar-thumb {
    background: var(--pure-white);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .headline-massive {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .btn-brutal,
    .btn-brutal-outline,
    .btn-brutal-inverse {
        padding: 1rem 2rem;
        font-size: 0.75rem;
    }

    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}