/* =============================================================
   BITCHERELLA // ISSUE №01
   Editorial zine meets grainy film-stock.
   ============================================================= */

/* -------- Tokens -------- */
:root {
    /* Dark panel */
    --ink:        #0a0609;
    --ink-2:      #13090f;
    --ink-3:      #1b0d16;

    /* Cream paper panel */
    --paper:      #ede2c8;
    --paper-2:    #e6d8b7;
    --paper-ink:  #120a10;
    --paper-line: rgba(18, 10, 16, 0.16);

    /* Accents */
    --pink:       #ff2e7e;
    --pink-hot:   #ff0062;
    --pink-soft:  #ffa3c4;
    --rose:       #c64d7a;
    --bone:       #f6ecd4;
    --white:      #fff8ec;

    /* Neutrals on dark */
    --fg:         #f0e5d0;
    --fg-dim:     #a8998a;
    --fg-mute:    #5c5048;
    --line:       rgba(240, 229, 208, 0.14);
    --line-soft:  rgba(240, 229, 208, 0.07);

    /* Type stacks */
    --f-display:  "Fraunces", "Instrument Serif", serif;
    --f-serif:    "Instrument Serif", "Fraunces", serif;
    --f-sans:     "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --f-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --f-hand:     "Caveat", "Shadows Into Light", cursive;

    --maxw: 1320px;
    --gutter: clamp(20px, 4vw, 64px);

    --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

html, body { min-height: 100%; }

body {
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--fg);
    background: var(--ink);
    overflow-x: clip;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--pink); color: var(--ink); }

/* =============================================================
   GRAIN - the star of this rewrite
   ============================================================= */

/* Shared base */
.grain {
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 9995;
}

/* Fine grain - static, high density, low contrast. Feels like film base. */
.grain--fine {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
    mix-blend-mode: overlay;
    opacity: 0.75;
}

/* Coarse grain - animated, lower density, higher contrast.
   This gives the "projector flicker" sense. */
.grain--coarse {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch' seed='11'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.38 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 420px 420px;
    mix-blend-mode: soft-light;
    opacity: 0.6;
    animation: grain 0.9s steps(8) infinite;
    will-change: transform;
}

/* 8-step jitter. Feels analogue, not mechanical. */
@keyframes grain {
    0%   { transform: translate(0,      0); }
    10%  { transform: translate(-3%,   -2%); }
    20%  { transform: translate(-8%,    1%); }
    30%  { transform: translate(6%,    -4%); }
    40%  { transform: translate(-4%,    4%); }
    50%  { transform: translate(-6%,    3%); }
    60%  { transform: translate(3%,     5%); }
    70%  { transform: translate(-4%,   -2%); }
    80%  { transform: translate(-8%,    3%); }
    90%  { transform: translate(3%,    -4%); }
    100% { transform: translate(0,      0); }
}

/* Inline grain (used inside mascot frame, polaroids, etc.)
   NB: inset is negative so the animated transform never exposes the edges.
   Parent MUST have overflow: hidden. */
.grain--inline {
    position: absolute;
    inset: -20%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.3 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 260px 260px;
    mix-blend-mode: overlay;
    opacity: 0.8;
    pointer-events: none;
    animation: grain 1.2s steps(8) infinite;
}

/* =============================================================
   LAYOUT BASE
   ============================================================= */

.nav, .hero, .manifesto, .gospel, .get, .footer {
    position: relative;
    isolation: isolate;
}

/* =============================================================
   NAV - minimal, mono, editorial strip
   ============================================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px var(--gutter);
    background: rgba(10, 6, 9, 0.82);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    border-bottom: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bone);
    font-family: var(--f-serif);
    font-size: 18px;
    text-transform: none;
    letter-spacing: -0.01em;
    font-style: italic;
}
.nav__brand sup {
    font-family: var(--f-mono);
    font-size: 8px;
    color: var(--pink);
    font-style: normal;
    vertical-align: super;
    margin-left: 2px;
}

.nav__icons { display: inline-flex; gap: 6px; }
.nav__icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--bone);
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.nav__icons a:hover {
    background: var(--pink);
    color: var(--ink);
    border-color: var(--pink);
    transform: translateY(-1px);
}

/* =============================================================
   HERO - magazine cover
   ============================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(40px, 6vw, 80px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(800px 500px at 80% 20%, rgba(255, 46, 126, 0.14), transparent 60%),
        radial-gradient(700px 500px at 10% 85%, rgba(198, 77, 122, 0.1), transparent 60%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
    overflow: hidden;
}

/* Corner marks (magazine registration) */
.hero__marks {
    position: absolute;
    inset: clamp(16px, 3vw, 40px);
    pointer-events: none;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-mute);
    z-index: 2;
}
.hero__mark { position: absolute; }
.hero__mark--tl { top: 0; left: 0; font-family: var(--f-serif); font-size: 16px; letter-spacing: -0.02em; color: var(--bone); font-style: italic; }
.hero__mark--tr { top: 0; right: 0; }
.hero__mark--ml { top: 50%; left: 0; transform: rotate(-90deg) translateX(50%); transform-origin: left top; white-space: nowrap; }
.hero__mark--mr { top: 50%; right: 0; transform: rotate(90deg) translateX(-50%); transform-origin: right top; white-space: nowrap; }

/* Ghost wordmark behind everything */
.ghostmark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ghostmark span {
    font-family: var(--f-display);
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    font-size: clamp(180px, 28vw, 520px);
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(240, 229, 208, 0.08);
    white-space: nowrap;
    user-select: none;
}

/* Central stack: title + mascot + kicker */
.hero__stack {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "title"
        "mascot"
        "kicker";
    align-items: center;
    justify-items: center;
    gap: clamp(10px, 2vw, 24px);
    position: relative;
    z-index: 3;
    padding: 20px 0;
    text-align: center;
}

/* ---- WORDMARK ---- */
.wordmark {
    grid-area: title;
    display: grid;
    justify-items: center;
    line-height: 0.84;
    letter-spacing: -0.035em;
    margin-top: 16px;
}

.wordmark__top {
    font-family: var(--f-display);
    font-weight: 900;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    font-size: clamp(84px, 13vw, 200px);
    color: var(--bone);
    text-shadow:
        3px 0 0 var(--pink),
        -3px 0 0 #7cc0ff,
        0 0 50px rgba(255, 46, 126, 0.15);
    margin-bottom: -0.04em;
}

.wordmark__bottom {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(74px, 12vw, 190px);
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-hot) 55%, #ffd872 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: -0.18em;
    letter-spacing: -0.01em;
    filter: drop-shadow(0 4px 22px rgba(255, 46, 126, 0.35));
}

/* ---- MASCOT ---- */
.mascot {
    grid-area: mascot;
    position: relative;
    margin-top: -40px;
    z-index: 4;
    transform: rotate(-2deg);
}

.mascot__frame {
    position: relative;
    width: clamp(220px, 28vw, 360px);
    background: var(--paper);
    padding: 10px 10px 44px;
    border-radius: 2px;
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.15),
        0 16px 30px -10px rgba(0, 0, 0, 0.6),
        0 40px 80px -20px rgba(255, 46, 126, 0.3);
    transition: transform 0.5s var(--ease-back);
}

.mascot__photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 1px;
    isolation: isolate;
}

.mascot__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.08) brightness(0.95);
    object-position: center;
    display: block;
}

.mascot__grain {
    position: absolute;
    inset: -20%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='8'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 260px 260px;
    mix-blend-mode: overlay;
    opacity: 0.85;
    pointer-events: none;
    animation: grain 1.1s steps(8) infinite;
}

.mascot:hover .mascot__frame { transform: rotate(0) scale(1.03); }

/* Caption */
.mascot__cap {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.95;
    width: calc(100% - 20px);
}
.mascot__cap-a { font-family: var(--f-hand); font-size: 18px; color: var(--paper-ink); font-weight: 700; }
.mascot__cap-b { font-family: var(--f-hand); font-size: 22px; color: var(--pink-hot); font-weight: 700; margin-top: -2px; }
.mascot__cap-c { font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.12em; color: var(--paper-ink); opacity: 0.6; margin-top: 4px; text-transform: uppercase; }

/* Kicker line under mascot */
.hero__kicker {
    grid-area: kicker;
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.2;
    color: var(--bone);
    max-width: 460px;
    margin-top: 12px;
}
.hero__kicker em {
    font-style: italic;
    color: var(--pink-soft);
    font-weight: 400;
}

/* Hero bottom strip */
.hero__bottom {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.hero__ca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
}
.hero__ca-l {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pink);
    padding: 4px 8px;
    border: 1px solid var(--pink);
    border-radius: 4px;
    white-space: nowrap;
}
.hero__ca code {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--fg);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}
.hero__ca code::-webkit-scrollbar { display: none; }

.hero__ca-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bone);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.hero__ca-btn:hover,
.hero__ca-btn.copied { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--fg-dim);
    animation: bounce 2.4s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

/* =============================================================
   MANIFESTO - the NOT YOUR AVERAGE BITCH moment
   ============================================================= */
.manifesto {
    min-height: 100vh;
    padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
    background:
        radial-gradient(60% 50% at 30% 30%, rgba(255, 46, 126, 0.1), transparent 70%),
        linear-gradient(180deg, var(--ink-3) 0%, var(--ink) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.manifesto__tag {
    display: inline-flex;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pink);
    padding: 8px 12px;
    border: 1px solid var(--pink);
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: clamp(40px, 6vw, 80px);
}

/* ---- kinetic "not your average bitch" ---- */
.manifesto__title {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(10px, 1.4vw, 24px);
    font-family: var(--f-display);
    font-weight: 900;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--bone);
    text-transform: lowercase;
    margin-bottom: clamp(40px, 6vw, 80px);
}

.nyab {
    display: inline-block;
    font-size: clamp(72px, 13vw, 200px);
    line-height: 1.1;
}
.nyab > span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30%);
    animation: nyabIn 1.1s var(--ease-out) both;
}
.nyab[data-word="not"] > span     { animation-delay: 0.05s; }
.nyab[data-word="your"] > span    { animation-delay: 0.18s; }
.nyab[data-word="average"] > span { animation-delay: 0.32s; }
.nyab[data-word="bitch"] > span   { animation-delay: 0.5s; }

@keyframes nyabIn {
    0%   { opacity: 0; transform: translateY(30%) skewY(3deg); }
    100% { opacity: 1; transform: translateY(0)   skewY(0); }
}

/* Specific word treatments */
.nyab[data-word="not"]     { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--fg-dim); padding-left: 8vw; font-size: clamp(52px, 8vw, 120px); }
.nyab[data-word="your"]    { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--fg);     padding-left: 18vw; font-size: clamp(62px, 9vw, 140px); }
.nyab[data-word="average"] {
    font-family: var(--f-display);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--bone);
    font-size: clamp(100px, 17vw, 280px);
    letter-spacing: -0.05em;
    padding-left: 2vw;
}
.nyab[data-word="bitch"] {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 400;
    color: var(--pink);
    font-size: clamp(120px, 22vw, 340px);
    padding-left: 20vw;
    letter-spacing: -0.04em;
    line-height: 0.95;
    filter: drop-shadow(0 10px 50px rgba(255, 46, 126, 0.4));
}

.manifesto__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 80px);
    max-width: 1100px;
    margin-left: auto;
    margin-right: 0;
    width: 100%;
    align-self: flex-end;
    padding-bottom: clamp(60px, 8vw, 100px);
}

.manifesto__lede {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.1;
    color: var(--bone);
    letter-spacing: -0.02em;
}
.manifesto__lede em { font-style: italic; color: var(--pink); }

.manifesto__copy {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.6;
    color: var(--fg-dim);
    max-width: 48ch;
}
.manifesto__copy em { font-style: italic; color: var(--bone); }

/* Ticker at bottom of manifesto */
.ticker {
    margin: 0 calc(-1 * var(--gutter));
    padding: 18px 0;
    background: var(--bone);
    color: var(--ink);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    overflow: hidden;
    position: relative;
}
.ticker::before {
    content: "";
    position: absolute;
    inset: -40% -10%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch' seed='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 260px 260px;
    mix-blend-mode: multiply;
    opacity: 0.7;
    pointer-events: none;
    animation: grain 0.9s steps(8) infinite;
}
.ticker__track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    font-family: var(--f-display);
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 1;
    letter-spacing: -0.02em;
    animation: marquee 38s linear infinite;
    padding-left: 40px;
}
.ticker__track span { display: inline-block; }
.ticker__dot { color: var(--pink); font-size: 0.6em; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================================
   GOSPEL - cream editorial spread (the magazine page)
   ============================================================= */
.gospel {
    background: var(--paper);
    color: var(--paper-ink);
    padding: clamp(80px, 10vw, 140px) var(--gutter);
    position: relative;
    overflow: hidden;
}
.gospel::before {
    /* Paper texture: fibers + grain.
       inset negative so translate animation never exposes the cream edge. */
    content: "";
    position: absolute;
    inset: -15%;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.04  0 0 0 0 0.06  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 320px 320px;
    mix-blend-mode: multiply;
    opacity: 0.85;
    pointer-events: none;
    animation: grain 1.4s steps(8) infinite;
}
.gospel::after {
    /* Deckle / ink bleed at edges */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 40% at 50% 0%, rgba(18, 10, 16, 0.12), transparent 60%),
        radial-gradient(80% 40% at 50% 100%, rgba(18, 10, 16, 0.14), transparent 60%);
    pointer-events: none;
}

.gospel__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 40px;
    margin-bottom: clamp(40px, 6vw, 80px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--paper-line);
    position: relative;
    z-index: 2;
}

.gospel__kicker {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--paper-ink);
    opacity: 0.7;
}

.gospel__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-variation-settings: "opsz" 144;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 0.94;
    letter-spacing: -0.03em;
    color: var(--paper-ink);
    text-align: center;
    justify-self: center;
}
.gospel__title em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--pink-hot);
}
.gospel__title u {
    text-decoration: none;
    background: linear-gradient(180deg, transparent 65%, var(--pink) 65%, var(--pink) 85%, transparent 85%);
    padding: 0 4px;
}

.gospel__pageno {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.6;
    justify-self: end;
}

/* ---- 3-column spread ---- */
.gospel__spread {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(24px, 4vw, 60px);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    border-top: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
}

.gospel__col p {
    font-family: var(--f-serif);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.65;
    color: var(--paper-ink);
    margin-bottom: 1em;
    text-align: justify;
    hyphens: auto;
}
.gospel__col p em {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--pink-hot);
}
.gospel__col p u {
    text-decoration: none;
    background: linear-gradient(180deg, transparent 70%, rgba(255, 46, 126, 0.4) 70%);
    padding: 0 2px;
}

/* Drop cap on first paragraph */
.gospel__drop {
    position: relative;
}
.drop {
    float: left;
    font-family: var(--f-display);
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    font-size: 6em;
    line-height: 0.8;
    margin: 0.05em 0.08em -0.1em 0;
    color: var(--pink-hot);
    letter-spacing: -0.04em;
}

.gospel__aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.gospel__polaroid {
    background: var(--bone);
    padding: 8px 8px 36px;
    transform: rotate(-3deg);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.15),
        0 16px 30px -10px rgba(0, 0, 0, 0.35);
    position: relative;
}
.gospel__polaroid-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    isolation: isolate;
}
.gospel__polaroid-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) contrast(1.1) saturate(0.7) brightness(0.95);
}
.gospel__polaroid-cap {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    text-align: center;
    font-family: var(--f-hand);
    font-size: 18px;
    color: var(--paper-ink);
}

.gospel__quote {
    position: relative;
    padding-left: 18px;
    border-left: 2px solid var(--pink-hot);
}
.gospel__qmark {
    position: absolute;
    top: -24px; left: -4px;
    font-family: var(--f-display);
    font-size: 80px;
    line-height: 0.5;
    color: var(--pink-hot);
    opacity: 0.5;
}
.gospel__quote p {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.3;
    color: var(--paper-ink);
    margin-bottom: 12px;
}
.gospel__quote p em { color: var(--pink-hot); font-style: italic; }
.gospel__quote footer {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
}

.gospel__scribble {
    display: inline-block;
    font-family: var(--f-hand);
    font-size: 22px;
    color: var(--pink-hot);
    transform: rotate(-3deg);
    margin-top: 18px;
}

.gospel__footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--paper-line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper-ink);
    opacity: 0.6;
    position: relative;
    z-index: 2;
}

/* =============================================================
   ARTIFACT - found footage / proof of provenance
   ============================================================= */
.artifact {
    position: relative;
    padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(60px, 8vw, 120px);
    background:
        radial-gradient(900px 600px at 85% 15%, rgba(255, 46, 126, 0.08), transparent 65%),
        radial-gradient(700px 500px at 10% 90%, rgba(124, 192, 255, 0.05), transparent 70%),
        linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 60%, var(--ink) 100%);
    color: var(--bone);
    overflow: hidden;
}

.artifact__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(40px, 6vw, 80px);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.artifact__kicker { color: var(--pink); }
.artifact__pageno { color: var(--fg-mute); }

.artifact__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(56px, 10vw, 160px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--bone);
    margin: 0 0 clamp(32px, 4vw, 60px);
    max-width: 16ch;
    font-variation-settings: "opsz" 144;
}

.artifact__title u {
    text-decoration: none;
    color: var(--pink);
    position: relative;
    padding: 0 0.05em;
}
.artifact__title u::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.12em;
    height: 4px;
    background: var(--pink);
    opacity: 0.35;
    transform: skewX(-10deg);
}

.artifact__lede,
.artifact__outro {
    max-width: 62ch;
    font-family: var(--f-serif);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.5;
    color: var(--fg);
    margin: 0 0 clamp(40px, 5vw, 70px);
}
.artifact__outro { margin-top: clamp(40px, 5vw, 70px); margin-bottom: 0; }

.artifact__lede em,
.artifact__outro em {
    color: var(--pink);
    font-style: italic;
}
.artifact__lede strong {
    font-family: var(--f-mono);
    color: var(--bone);
    font-weight: 500;
    font-size: 0.85em;
    letter-spacing: 0.04em;
    background: rgba(255, 46, 126, 0.12);
    padding: 1px 8px;
    border-radius: 2px;
}
.artifact__outro u {
    text-decoration: none;
    color: var(--bone);
    background: linear-gradient(transparent 65%, rgba(255, 46, 126, 0.3) 65%);
    padding: 0 0.1em;
}

/* THE CARD - archival file layout */
.artifact__card {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(24px, 3vw, 48px);
    align-items: stretch;
    padding: clamp(24px, 3vw, 44px);
    background:
        linear-gradient(180deg, rgba(255, 240, 220, 0.03) 0%, rgba(0,0,0,0) 50%),
        linear-gradient(180deg, #1a0e15 0%, #120a10 100%);
    border: 1px solid rgba(246, 236, 212, 0.1);
    border-radius: 2px;
    box-shadow:
        0 40px 80px -40px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255, 46, 126, 0.04);
}
.artifact__card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(246, 236, 212, 0.08);
    border-radius: 1px;
    pointer-events: none;
}

.artifact__card-stamp {
    position: absolute;
    top: -14px;
    left: clamp(20px, 3vw, 40px);
    padding: 5px 12px;
    background: var(--pink);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transform: rotate(-1.5deg);
    box-shadow: 0 4px 12px rgba(255, 46, 126, 0.3);
    z-index: 2;
}

.artifact__card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    isolation: isolate;
}
.artifact__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) contrast(1.1) brightness(0.9);
    transition: filter 0.5s, transform 0.5s;
}
.artifact__card-media:hover img {
    filter: saturate(1) contrast(1.2) brightness(1);
    transform: scale(1.02);
}
.artifact__card-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.18) 2px,
        rgba(0, 0, 0, 0.18) 3px
    );
    mix-blend-mode: multiply;
    opacity: 0.7;
}
.artifact__card-media::after {
    /* vhs-style corner marks */
    content: "● REC";
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--pink);
    text-shadow: 0 0 8px rgba(255, 46, 126, 0.6);
    z-index: 2;
}

.artifact__card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--pink);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 50px rgba(255, 46, 126, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 2;
}
.artifact__card-media:hover .artifact__card-play {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 70px rgba(255, 46, 126, 0.7);
}

.artifact__card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.artifact__card-title {
    margin: 0;
    font-family: var(--f-display);
    font-style: italic;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    color: var(--bone);
    letter-spacing: -0.02em;
}

.artifact__card-sub {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 15px;
    color: var(--fg-dim);
    line-height: 1.4;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(246, 236, 212, 0.12);
}

.artifact__card-meta {
    display: grid;
    gap: 10px;
    margin: 4px 0 18px;
}
.artifact__card-meta > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 1px dotted rgba(246, 236, 212, 0.1);
}
.artifact__card-meta dt {
    font-family: var(--f-mono);
    font-size: 9.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--fg-mute);
}
.artifact__card-meta dd {
    margin: 0;
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 15px;
    color: var(--bone);
}

.artifact__card-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--pink);
    color: var(--pink);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.artifact__card-cta:hover {
    background: var(--pink);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -12px rgba(255, 46, 126, 0.6);
}
.artifact__card-cta svg { transition: transform 0.22s; }
.artifact__card-cta:hover svg { transform: translate(2px, -2px); }

@media (max-width: 900px) {
    .artifact__card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .artifact__card-meta > div { grid-template-columns: 1fr; gap: 2px; padding-bottom: 10px; }
}

/* =============================================================
   GET HER - CTA / contract + links
   ============================================================= */
.get {
    padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 80px);
    background: var(--ink);
    overflow: hidden;
}

.get__tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--pink);
    padding: 6px 12px;
    border: 1px solid var(--pink);
    border-radius: 4px;
    margin-bottom: 32px;
}

.get__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-variation-settings: "opsz" 144;
    font-size: clamp(56px, 9vw, 140px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--bone);
    margin-bottom: clamp(40px, 6vw, 80px);
    max-width: 12ch;
}
.get__title em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--pink-soft);
}
.get__title u {
    text-decoration: none;
    font-family: var(--f-display);
    font-weight: 900;
    color: var(--pink);
    font-style: normal;
}

.get__ca {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 18px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(255, 46, 126, 0.06), rgba(255, 46, 126, 0.02));
    margin-bottom: 40px;
    max-width: 780px;
}
.get__ca-l {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pink);
    padding: 4px 8px;
    border: 1px solid var(--pink);
    border-radius: 4px;
}
.get__ca code {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--fg);
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.get__ca code::-webkit-scrollbar { display: none; }
.get__ca-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bone);
    color: var(--ink);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}
.get__ca-btn:hover { background: var(--pink); color: var(--bone); }
.get__ca-btn.copied { background: var(--pink); color: var(--bone); }

/* ---- Three link rows (editorial list) ---- */
.get__links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.get__link {
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    align-items: center;
    gap: 28px;
    padding: 28px 4px;
    border-bottom: 1px solid var(--line);
    transition: padding 0.5s var(--ease-out), background 0.5s;
    overflow: hidden;
}

.get__link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--pink-hot), var(--pink), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
    z-index: -1;
}

.get__link:hover { padding-left: 24px; padding-right: 24px; }
.get__link:hover::before { transform: scaleX(1); }
.get__link:hover .get__link-no     { color: var(--ink); }
.get__link:hover .get__link-label  { color: var(--ink); font-style: italic; }
.get__link:hover .get__link-note   { color: rgba(10, 6, 9, 0.8); }
.get__link:hover .get__link-arrow  { color: var(--ink); transform: translate(6px, -6px); }

.get__link-no {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--pink);
    transition: color 0.4s;
}
.get__link-label {
    font-family: var(--f-display);
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--bone);
    text-transform: lowercase;
    transition: color 0.4s, font-style 0.4s;
}
.get__link-note {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(14px, 1.3vw, 18px);
    color: var(--fg-dim);
    transition: color 0.4s;
    text-align: right;
    max-width: 22ch;
}
.get__link-arrow {
    color: var(--bone);
    transition: transform 0.4s var(--ease-out), color 0.4s;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
    background: var(--ink);
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.footer__stripe {
    padding: clamp(20px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.footer__stripe-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    font-family: var(--f-display);
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    font-size: clamp(44px, 6.5vw, 96px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px var(--bone);
    animation: marquee 45s linear infinite;
    padding-left: 28px;
}
.footer__stripe-track i {
    font-style: normal;
    color: var(--pink);
    -webkit-text-stroke: 0;
    font-size: 0.5em;
}

.footer__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    padding: 24px var(--gutter);
    align-items: center;
}

.footer__mark {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--bone);
}
.footer__mark sup { font-family: var(--f-mono); font-size: 8px; color: var(--pink); font-style: normal; }

.footer__disclaimer {
    font-family: var(--f-sans);
    font-size: 12px;
    color: var(--fg-dim);
    line-height: 1.5;
    max-width: 640px;
}

.footer__year {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-mute);
}

/* =============================================================
   TOAST
   ============================================================= */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 30px);
    padding: 12px 22px;
    background: var(--bone);
    color: var(--ink);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px var(--pink), 0 20px 40px -10px rgba(255, 46, 126, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.3s var(--ease-back);
    z-index: 9999;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   CURSOR
   ============================================================= */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--pink);
    mix-blend-mode: difference;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: opacity 0.3s, width 0.2s, height 0.2s;
    opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
    body:hover .cursor { opacity: 1; }
    a:hover ~ .cursor, button:hover ~ .cursor { width: 24px; height: 24px; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
    .hero__stack { gap: 24px; }
    .mascot { margin-top: -20px; }

    .manifesto__body { grid-template-columns: 1fr; gap: 30px; }
    .gospel__spread { grid-template-columns: 1fr; }
    .gospel__aside { order: -1; flex-direction: row; align-items: flex-start; }
    .gospel__polaroid { flex: 1 0 200px; }
    .gospel__head { grid-template-columns: 1fr; text-align: left; gap: 12px; }
    .gospel__title { text-align: left; justify-self: start; }
    .gospel__pageno { justify-self: start; }

    .get__link { grid-template-columns: auto 1fr auto; }
    .get__link-note { display: none; }
}

@media (max-width: 700px) {
    .nav { padding: 12px 18px; gap: 8px; }
    .nav__icons a { width: 30px; height: 30px; font-size: 14px; }

    .hero { padding-top: 72px; }
    .hero__marks { font-size: 9px; }
    .hero__mark--tl { font-size: 12px; }

    .wordmark__top { text-shadow: 2px 0 0 var(--pink), -2px 0 0 #7cc0ff; }

    .hero__bottom { grid-template-columns: 1fr; gap: 14px; }
    .hero__scroll { justify-self: flex-start; }

    .nyab[data-word="not"]     { padding-left: 0; }
    .nyab[data-word="your"]    { padding-left: 6vw; }
    .nyab[data-word="average"] { padding-left: 0; -webkit-text-stroke-width: 1.5px; }
    .nyab[data-word="bitch"]   { padding-left: 8vw; }

    .gospel__aside { flex-direction: column; }
    .gospel__polaroid-cap { font-size: 16px; }

    .footer__bar { grid-template-columns: 1fr; gap: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .grain--coarse, .mascot__grain, .grain--inline, .gospel::before, .ticker::before {
        animation: none !important;
    }
    .nyab > span { transform: none; }
}

/* Scroll reveal fallback (for browsers w/o animation-timeline) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@supports (animation-timeline: view()) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
