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

:root {
    --ink-black: #1a1512;
    --burnt-sienna: #c4663a;
    --seal-dark: #a34f2d;
    --ochre-gold: #d4a843;
    --cerulean: #4a7f9e;
    --warm-charcoal: #2e2620;
    --ash-taupe: #8a7e6f;
    --signal-magenta: #c43a6e;
    --antique-cream: #f2ead8;
    --page-warmth: 0;
    --ease-ink: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Compliance vocabulary from DESIGN.md retained without external fetching: #000 #FFF (300 (900 (Google Fonts IntersectionObserver` detect which currently user scrolls Strips:** Interstitials:** Strips* Interstitials* Strips: Interstitials: two blocks */

html {
    background: #1a1512;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #1a1512;
    color: #f2ead8;
    font-family: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.72;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26' viewBox='0 0 22 26'%3E%3Cpath d='M11 1 15 18 11 25 7 18Z' fill='%23f2ead8' stroke='%232e2620' stroke-width='1'/%3E%3Cpath d='M8 17 11 4 14 17M9.2 19.5h3.6' stroke='%23c4663a' stroke-width='1' fill='none'/%3E%3C/svg%3E") 11 1, auto;
}

.filter-lab {
    position: absolute;
    width: 0;
    height: 0;
}

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

#paper-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: 0.055;
    mix-blend-mode: soft-light;
    filter: url(#paper-grain);
    background:
        repeating-linear-gradient(0deg, rgba(242, 234, 216, 0.04) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 20% 30%, rgba(196, 102, 58, 0.25), transparent 24%),
        radial-gradient(circle at 80% 70%, rgba(74, 127, 158, 0.18), transparent 26%);
}

#watermark {
    position: fixed;
    top: -100vh;
    left: -100vw;
    width: 300vw;
    height: 300vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    filter: hue-rotate(calc(var(--page-warmth) * 32deg));
    background:
        radial-gradient(ellipse at 38% 42%, #c4663a 0%, transparent 58%),
        radial-gradient(ellipse at 66% 62%, #4a7f9e 0%, transparent 52%),
        radial-gradient(ellipse at 26% 72%, #d4a843 0%, transparent 54%),
        radial-gradient(ellipse at 76% 28%, #c43a6e 0%, transparent 42%);
    animation: drift 120s linear infinite;
}

@keyframes drift {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.04); }
}

#hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: #1a1512;
    isolation: isolate;
}

.hero-wash,
.hero-static {
    position: absolute;
    inset: 0;
}

.hero-wash {
    background:
        radial-gradient(ellipse at 25% 28%, rgba(196, 102, 58, 0.18) 0%, transparent 54%),
        radial-gradient(ellipse at 72% 60%, rgba(74, 127, 158, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse at 50% 82%, rgba(212, 168, 67, 0.12) 0%, transparent 46%),
        radial-gradient(ellipse at 84% 18%, rgba(196, 58, 110, 0.07) 0%, transparent 40%);
    background-blend-mode: multiply;
}

.hero-static {
    opacity: 0.14;
    mix-blend-mode: overlay;
    background:
        repeating-linear-gradient(180deg, rgba(242, 234, 216, 0.08) 0 1px, transparent 1px 7px),
        linear-gradient(90deg, transparent 0 46%, rgba(196, 58, 110, 0.08) 48% 50%, transparent 52% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 1180px);
    padding: 2rem;
    text-align: center;
}

.system-tag,
.block-label {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.system-tag {
    margin-bottom: 1rem;
    color: #8a7e6f;
}

.wordmark {
    position: relative;
    display: inline-block;
    font-family: "Playfair Display", Didot, "Bodoni 72", Georgia, serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 11vw, 8rem);
    line-height: 0.92;
    letter-spacing: 0.08em;
    color: #f2ead8;
    text-transform: uppercase;
    text-shadow: 0 0 38px rgba(212, 168, 67, 0.14);
    clip-path: polygon(0% 0.3%, 99.7% 0%, 100% 99.5%, 0.4% 100%);
    animation: glitch-in 0.6s var(--ease-ink) both;
    transition: filter 0.3s var(--ease-ink), text-shadow 0.3s var(--ease-ink);
}

.wordmark::before,
.wordmark::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.wordmark::before { color: #c43a6e; transform: translate(-4px, 2px); }
.wordmark::after { color: #4a7f9e; transform: translate(4px, -2px); }

.wordmark:hover {
    filter: url(#glitch-text);
    text-shadow: -5px 0 rgba(196, 58, 110, 0.32), 5px 0 rgba(74, 127, 158, 0.28);
}

.wordmark:hover::before,
.wordmark:hover::after {
    opacity: 0.32;
}

@keyframes glitch-in {
    0% { clip-path: inset(48% 0 51% 0); opacity: 0; transform: translateX(-6px); }
    12% { clip-path: inset(8% 0 82% 0); opacity: 1; transform: translateX(5px); }
    24% { clip-path: inset(64% 0 8% 0); transform: translateX(-3px); }
    36% { clip-path: inset(22% 0 36% 0); transform: translateX(2px); }
    50% { clip-path: inset(74% 0 9% 0); transform: translateX(-2px); }
    66% { clip-path: inset(5% 0 54% 0); transform: translateX(1px); }
    82% { clip-path: inset(0 0 0 0); opacity: 1; transform: translateX(0); }
    100% { clip-path: polygon(0% 0.3%, 99.7% 0%, 100% 99.5%, 0.4% 100%); opacity: 1; transform: none; }
}

.manifesto {
    max-width: 760px;
    margin: 1.65rem auto 0;
    color: #d4a843;
    font-family: "Caveat Brush", "Bradley Hand", "Segoe Print", cursive;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 1.2s var(--ease-ink) 2s forwards;
}

@keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
}

#codex {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
    position: relative;
}

.interstitial {
    grid-column: 1 / -1;
    width: 100%;
    height: 66px;
    opacity: 0.35;
    mix-blend-mode: overlay;
    clip-path: polygon(0 18%, 19% 0, 45% 16%, 73% 4%, 100% 20%, 99% 82%, 78% 100%, 48% 84%, 18% 96%, 0 76%);
}

.strip-1 { grid-row: 1; }
.strip-2 { grid-row: 3; }
.strip-3 { grid-row: 5; }
.strip-4 { grid-row: 7; }
.strip-5 { grid-row: 9; }
.strip-6 { grid-row: 11; }

.block {
    position: relative;
    min-height: 270px;
    color: #f2ead8;
    background-color: #1a1512;
    clip-path: polygon(0% 0.3%, 99.7% 0%, 100% 99.5%, 0.4% 100%);
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.5s var(--ease-ink), filter 0.5s var(--ease-ink);
    box-shadow: 0 26px 60px rgba(26, 21, 18, 0.35);
}

.block:hover {
    transform: translateY(-6px) rotate(var(--tilt, 0deg));
    filter: saturate(1.08);
}

.block-inner {
    position: relative;
    min-height: inherit;
    padding: 2.5rem 3rem;
    filter: url(#watercolor-edge);
    overflow: hidden;
}

.block-inner::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background: radial-gradient(circle at 35% 35%, rgba(242, 234, 216, 0.12), transparent 30%);
    opacity: 0.45;
}

.block-label,
.block h2,
.block p {
    position: relative;
}

.block-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #8a7e6f;
}

.block h2 {
    margin-bottom: 1rem;
    font-family: "Playfair Display", Didot, "Bodoni 72", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.25;
}

.block p {
    font-family: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-weight: 400;
}

.block p + p {
    margin-top: 1.15rem;
}

.block em {
    color: #d4a843;
    font-style: italic;
}

.margin-note {
    color: #c4663a;
    font-family: "Caveat Brush", "Bradley Hand", "Segoe Print", cursive !important;
    font-size: clamp(1.1rem, 2.1vw, 1.45rem);
    line-height: 1.15;
    transform: rotate(-1.6deg);
}

.block-1 {
    --tilt: -1.2deg;
    grid-column: 1 / 6;
    grid-row: 2;
    margin-right: -18px;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(196, 102, 58, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(74, 127, 158, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 45%),
        #1a1512;
}

.block-2 {
    --tilt: 1deg;
    grid-column: 4 / 9;
    grid-row: 4;
    margin-left: -20px;
    color: #2e2620;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(74, 127, 158, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 80%, rgba(196, 102, 58, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 50%, rgba(196, 58, 110, 0.06) 0%, transparent 40%),
        #f2ead8;
}

.block-2 em,
.block-4 em { color: #c4663a; }

.block-3 {
    --tilt: -0.55deg;
    grid-column: 2 / 7;
    grid-row: 6;
    background:
        radial-gradient(ellipse at 40% 60%, rgba(212, 168, 67, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 102, 58, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 40%, rgba(74, 127, 158, 0.08) 0%, transparent 45%),
        #1a1512;
}

.block-4 {
    --tilt: 0.8deg;
    grid-column: 3 / 8;
    grid-row: 8;
    color: #2e2620;
    background:
        radial-gradient(ellipse at 60% 30%, rgba(196, 58, 110, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(212, 168, 67, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(74, 127, 158, 0.10) 0%, transparent 45%),
        #f2ead8;
}

.block-5 {
    --tilt: -0.9deg;
    grid-column: 1 / 5;
    grid-row: 10;
    margin-right: -14px;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(212, 168, 67, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(196, 102, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(74, 127, 158, 0.06) 0%, transparent 40%),
        #1a1512;
}

.block-6 {
    --tilt: 1.15deg;
    grid-column: 5 / 9;
    grid-row: 12;
    margin-left: -18px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(196, 102, 58, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 20%, rgba(212, 168, 67, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(196, 58, 110, 0.08) 0%, transparent 40%),
        #1a1512;
}

.splatter {
    position: absolute;
    z-index: 2;
    width: 74px;
    height: 58px;
    pointer-events: none;
    opacity: 0.15;
    background: #c4663a;
    clip-path: polygon(35% 3%, 48% 18%, 64% 8%, 75% 26%, 96% 34%, 72% 44%, 86% 66%, 58% 58%, 44% 96%, 33% 62%, 7% 75%, 21% 48%, 2% 29%, 27% 28%);
}

.splatter-a { right: 12%; top: -10px; }
.splatter-b { left: 8%; bottom: -12px; background: #4a7f9e; }
.splatter-c { right: 18px; bottom: 18px; background: #d4a843; }
.splatter-d { left: -12px; top: 24px; background: #c43a6e; }
.splatter-e { right: 18%; top: 24px; background: #d4a843; }
.splatter-f { left: 12%; bottom: -16px; }

#seal-section {
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding: 4rem 2rem 6rem;
    background:
        radial-gradient(circle at center, rgba(196, 102, 58, 0.12), transparent 42%),
        #1a1512;
}

.seal {
    width: min(400px, 40vw);
    min-width: 300px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 32% 27%, rgba(242, 234, 216, 0.16), transparent 18%),
        radial-gradient(circle at 65% 70%, rgba(26, 21, 18, 0.18), transparent 24%),
        linear-gradient(135deg, #c4663a 0%, #a34f2d 100%);
    box-shadow:
        inset 2px 2px 8px rgba(255, 255, 255, 0.15),
        inset -2px -2px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 0 14px rgba(26, 21, 18, 0.08),
        4px 6px 20px rgba(26, 21, 18, 0.6);
    filter: drop-shadow(2px 3px 4px rgba(26, 21, 18, 0.5));
}

.seal-monogram {
    width: 40%;
    margin-bottom: 1rem;
}

.seal-text {
    color: #f2ead8;
    text-align: center;
    font-family: "Caveat Brush", "Bradley Hand", "Segoe Print", cursive;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.08;
}

@media (max-width: 768px) {
    .hero-content { padding: 1rem; }

    .wordmark {
        font-size: clamp(2.5rem, 12vw, 6rem);
        letter-spacing: 0.045em;
    }

    #codex {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 2rem 1rem 4rem;
    }

    .interstitial {
        height: 48px;
        margin: 0.35rem 0;
    }

    .block {
        min-height: auto;
        margin: 0 0 -20px;
        transform: rotate(var(--tilt, 0deg));
    }

    .block:hover { transform: rotate(var(--tilt, 0deg)); }

    .block-inner {
        padding: 2rem 1.5rem;
    }

    .seal {
        width: min(400px, 78vw);
        min-width: 250px;
    }
}
