/* ======================================================================
   PPZZ.ee v2 — The Baltic Cosmonaut Archive
   Aesthetic: sci-fi (warm-earth inversion)   Layout: portfolio-grid
   Typography: Bebas Neue + Special Elite     Palette: burnt-orange
   Motifs: marble texture, retro stamps, chamfer barcodes, perforations
   ====================================================================== */

:root {
    /* Core palette from DESIGN.md */
    --bitumen:    #0F0A06;  /* near-black background */
    --tar:        #2B1810;  /* secondary surface */
    --reactor:    #C8521E;  /* dominant burnt orange */
    --brick:      #E47835;  /* lighter orange */
    --cream:      #F2E4C4;  /* primary text / paper */
    --tobacco:    #8A7A5E;  /* muted analyst notes */
    --vein:       #A57147;  /* marble vein highlight */
    --granite:    #1A1815;  /* parallax gutter granite */

    --font-display: 'Bebas Neue', 'Space Mono', sans-serif;
    --font-body:    'Special Elite', 'Space Mono', 'Courier New', monospace;
    --font-mono:    'Space Mono', 'Special Elite', monospace;

    --grid-gap: 12px;
    --gutter-w: 18px;
    --ease-snap: cubic-bezier(0.16, 0.84, 0.44, 1);
}

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

html, body {
    background: var(--bitumen);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 18% 24%, rgba(200, 82, 30, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 82% 78%, rgba(228, 120, 53, 0.04) 0%, transparent 55%),
        var(--bitumen);
    position: relative;
}

/* Page-wide film grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(242, 228, 196, 0.025) 0.5px, transparent 0.5px),
        radial-gradient(rgba(15, 10, 6, 0.07) 0.5px, transparent 0.5px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 1px;
    pointer-events: none;
    z-index: 9000;
    mix-blend-mode: overlay;
    opacity: 0.55;
}

::selection {
    background: var(--reactor);
    color: var(--cream);
}

/* ===========================================================
   COVER PAGE
   =========================================================== */
.cover {
    position: relative;
    min-height: 100vh;
    padding: 36px 60px 48px 60px;
    overflow: hidden;
}

.cover-frame {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 84px);
}

/* Cover header */
.cover-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(242, 228, 196, 0.12);
}

.archive-mark {
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 14px;
    letter-spacing: 0.28em;
}

.cover-title {
    font-family: var(--font-display);
    color: var(--reactor);
    font-size: clamp(48px, 8.4vw, 132px);
    line-height: 0.92;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    min-height: 1.2em;
    text-shadow:
        0 0 1px rgba(200, 82, 30, 0.35),
        2px 0 0 rgba(15, 10, 6, 0.4);
}

.cover-title .caret {
    display: inline-block;
    width: 0.5em;
    color: var(--brick);
    opacity: 0.7;
    animation: stampPulse 1.2s steps(1) infinite;
}

@keyframes stampPulse {
    0%, 49% { opacity: 0.7; }
    50%, 100% { opacity: 0; }
}

.cover-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--tobacco);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.cover-meta .sep {
    color: var(--reactor);
    opacity: 0.7;
}

/* Stamp track (perforated band) */
.stamp-track {
    height: 8vh;
    min-height: 70px;
    margin: 24px 0 0 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 38px,
            rgba(242, 228, 196, 0.08) 38px,
            rgba(242, 228, 196, 0.08) 40px
        ),
        var(--tar);
    border-top: 1px dashed rgba(228, 120, 53, 0.3);
    border-bottom: 1px dashed rgba(228, 120, 53, 0.3);
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 0 16px;
    overflow: hidden;
    position: relative;
}

.stamp-track::before,
.stamp-track::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background-image: radial-gradient(circle, var(--bitumen) 2px, transparent 2.2px);
    background-size: 16px 4px;
}
.stamp-track::before { top: -2px; }
.stamp-track::after  { bottom: -2px; }

.stamp {
    flex: 0 0 auto;
    width: 92px;
    height: 56px;
    background: var(--bitumen);
    border: 1.4px solid var(--brick);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    color: var(--brick);
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 200ms var(--ease-snap), opacity 280ms ease-out;
}

.stamp.is-on {
    transform: translateY(0);
    opacity: 1;
}

.stamp-code {
    font-size: 13px;
    color: var(--reactor);
}
.stamp-sub {
    font-size: 9px;
    color: var(--tobacco);
    letter-spacing: 0.18em;
}

/* Cover body */
.cover-body {
    margin-top: 28px;
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 28px;
    min-height: 56vh;
}

.cover-marble {
    position: relative;
    background: var(--tar);
    border: 1px solid rgba(165, 113, 71, 0.25);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(15, 10, 6, 0.6),
        0 14px 40px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
    opacity: 0;
    animation: marbleSettle 900ms 240ms ease-out forwards;
}

@keyframes marbleSettle {
    0% { transform: scale(1.02); opacity: 0; }
    100% { transform: scale(1.0); opacity: 1; }
}

.marble-cover-svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

.cover-marble-label {
    position: absolute;
    left: 28px;
    bottom: 28px;
    padding: 14px 18px;
    background: rgba(15, 10, 6, 0.78);
    border-left: 3px solid var(--reactor);
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(1px);
}

.lbl-tag {
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 11px;
    letter-spacing: 0.3em;
}
.lbl-code {
    font-family: var(--font-display);
    color: var(--cream);
    font-size: 28px;
    letter-spacing: 0.04em;
}
.lbl-sub {
    color: var(--tobacco);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.05em;
}

/* Cover emblem */
.cover-emblem {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 18px;
    position: relative;
}

.emblem-svg {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(200, 82, 30, 0.16));
    opacity: 0;
    transform: scale(0.96);
    animation: emblemIn 1100ms 700ms ease-out forwards;
}

.emblem-svg .emblem-rotor {
    transform-origin: 160px 160px;
    animation: rotorSpin 60s linear infinite;
}

@keyframes rotorSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

@keyframes emblemIn {
    0%   { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

.emblem-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.ec-line {
    font-family: var(--font-display);
    color: var(--cream);
    font-size: 20px;
    letter-spacing: 0.06em;
}
.ec-sub {
    color: var(--tobacco);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.06em;
}

/* ===========================================================
   PARALLAX GUTTERS
   =========================================================== */
.gutter {
    position: absolute;
    top: 0;
    bottom: -200vh;
    width: var(--gutter-w);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(242, 228, 196, 0.05) 0 1px,
            transparent 1px 64px
        ),
        var(--granite);
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.gutter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='2.4' numOctaves='2' seed='3'/><feColorMatrix values='0.1 0 0 0 0.06  0.08 0 0 0 0.05  0.06 0 0 0 0.04  0 0 0 0.45 0'/></filter><rect width='80' height='80' filter='url(%23g)'/></svg>");
    opacity: 0.85;
}

.gutter-left  { left: 14px; }
.gutter-right { right: 14px; }

.gutter-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    color: var(--tobacco);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1.4;
    padding-top: 80px;
}

.gutter-entry {
    transform: rotate(90deg);
    transform-origin: left top;
    white-space: nowrap;
    padding: 0 0 0 6px;
    margin: 0 0 280px 12px;
    color: var(--tobacco);
}

.gutter-entry .ge-code {
    color: var(--brick);
}

/* ===========================================================
   MISSION PATCH WALL
   =========================================================== */
.wall-section {
    padding: 64px 60px 80px 60px;
    position: relative;
    z-index: 2;
}

.wall-header {
    max-width: 920px;
    margin: 0 0 36px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wall-label,
.strip-label {
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 13px;
    letter-spacing: 0.32em;
}

.wall-title,
.strip-title {
    font-family: var(--font-display);
    color: var(--cream);
    font-size: clamp(36px, 5.2vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

.wall-note,
.strip-note {
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    max-width: 720px;
    opacity: 0.88;
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--grid-gap);
    position: relative;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='13' cy='13' r='8' fill='none' stroke='%23C8521E' stroke-width='2.4'/><line x1='19' y1='19' x2='28' y2='28' stroke='%23C8521E' stroke-width='2.4' stroke-linecap='round'/></svg>") 14 14, crosshair;
}

.folio {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--tar);
    overflow: hidden;
    border: 1px solid rgba(228, 120, 53, 0.18);
    transform: scale(1) translateY(0);
    opacity: 0;
    transition:
        transform 280ms var(--ease-snap),
        opacity 280ms var(--ease-snap),
        filter 280ms ease-out;
    will-change: transform, opacity, filter;
}

/* Vertical offsets for hand-pinned feel — every 3rd card offset */
.folio:nth-child(3n+1) { margin-top: 0; }
.folio:nth-child(3n+2) { margin-top: 32px; }
.folio:nth-child(3n+3) { margin-top: 12px; }
.folio:nth-child(7n+5) { margin-top: 56px; }

.folio.is-visible {
    opacity: 1;
}

/* Three entrance variants applied via class */
.folio.enter-stamp.is-visible  { animation: enterStamp 380ms var(--ease-snap) forwards; }
.folio.enter-slide.is-visible  { animation: enterSlide 340ms var(--ease-snap) forwards; }
.folio.enter-tilt.is-visible   { animation: enterTilt 380ms var(--ease-snap) forwards; }

@keyframes enterStamp {
    0%   { transform: scale(1.04) rotate(-1.5deg); opacity: 0; }
    70%  { transform: scale(0.99) rotate(0.5deg);  opacity: 1; }
    100% { transform: scale(1)    rotate(0deg);    opacity: 1; }
}
@keyframes enterSlide {
    0%   { transform: translateX(24px) rotate(-0.5deg); opacity: 0; }
    80%  { transform: translateX(-2px) rotate(0.2deg);  opacity: 1; }
    100% { transform: translateX(0) rotate(0deg);       opacity: 1; }
}
@keyframes enterTilt {
    0%   { transform: rotate(-2deg) scale(0.99); opacity: 0; }
    70%  { transform: rotate(0.4deg) scale(1.005); opacity: 1; }
    100% { transform: rotate(0deg)  scale(1);      opacity: 1; }
}

/* Zoom-focus / neighbor recession states */
.wall-grid.has-focus .folio { transform: scale(0.96); opacity: 0.82; }
.wall-grid.has-focus .folio.is-focus {
    transform: scale(1.06);
    opacity: 1;
    z-index: 5;
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(200, 82, 30, 0.45);
    filter: saturate(1.0);
}
.wall-grid.has-focus .folio:not(.is-focus) {
    filter: saturate(0.82);
}

/* Trace outline */
.folio-trace {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}
.folio-trace rect {
    fill: none;
    stroke: var(--reactor);
    stroke-width: 1;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 320ms ease-out;
}
.folio.is-focus .folio-trace rect {
    stroke-dashoffset: 0;
}

/* Folio inner layout */
.folio-marble {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.folio-marble svg {
    width: 100%;
    height: 100%;
    display: block;
}

.folio-stamp-bg {
    position: absolute;
    left: 18%;
    top: 14%;
    width: 64%;
    height: 64%;
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}
.folio-stamp-bg svg {
    width: 100%;
    height: 100%;
}

.folio-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 14px 14px 32px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.folio-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.folio-mk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 3px 8px;
    background: rgba(15, 10, 6, 0.75);
    border-left: 2px solid var(--reactor);
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.folio-date {
    font-family: var(--font-body);
    color: var(--tobacco);
    font-size: 10px;
    letter-spacing: 0.06em;
}

.folio-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.folio-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.7vw, 32px);
    line-height: 0.95;
    letter-spacing: -0.005em;
    color: var(--cream);
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(15, 10, 6, 0.6);
}

.folio-sub {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--cream);
    opacity: 0.78;
    line-height: 1.35;
}

/* Redaction bar */
.folio-redact {
    display: inline-block;
    height: 9px;
    width: 64px;
    background: var(--bitumen);
    border-top: 1px solid var(--tar);
    margin-top: 4px;
    transform: rotate(-1.2deg);
    box-shadow: 1px 1px 0 var(--tar);
}

/* Chamfered barcode corner */
.folio-chamfer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 64px;
    height: 32px;
    background: var(--tar);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 5px 4px 0;
    gap: 3px;
}

.folio-chamfer .bc-stripes {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 16px;
}
.folio-chamfer .bc-stripes span {
    display: inline-block;
    height: 100%;
    background: var(--cream);
}

.folio-chamfer .bc-id {
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 9px;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-left: 4px;
}

/* Wall footnote */
.wall-footnote {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(242, 228, 196, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--tobacco);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.05em;
}
.wall-footnote .sep { color: var(--reactor); opacity: 0.7; }

/* ===========================================================
   FOLIO DETAIL STRIP
   =========================================================== */
.strip-section {
    padding: 60px 0 72px 0;
    position: relative;
    z-index: 2;
}

.strip-header {
    padding: 0 60px;
    max-width: 920px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.strip-rail {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 60px 12px 60px;
    will-change: scroll-position;
}
.strip-rail::-webkit-scrollbar { display: none; }

.strip-folio {
    flex: 0 0 76vw;
    height: 68vh;
    min-height: 460px;
    margin-right: 18px;
    scroll-snap-align: start;
    background: var(--tar);
    border: 1px solid rgba(228, 120, 53, 0.22);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.sf-marble {
    position: relative;
    background: var(--tar);
    overflow: hidden;
}
.sf-marble svg {
    width: 100%;
    height: 100%;
    display: block;
}
.sf-marble-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, transparent 0 50%, rgba(15, 10, 6, 0.4) 100%);
    pointer-events: none;
}

.sf-marble-stamp {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 10px;
    background: rgba(15, 10, 6, 0.8);
    border-left: 3px solid var(--reactor);
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 12px;
    letter-spacing: 0.2em;
}

.sf-marble-seal {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 96px;
    height: 96px;
    border: 1.5px solid var(--reactor);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    font-family: var(--font-display);
    background: rgba(15, 10, 6, 0.55);
    transform: rotate(-4deg);
}
.sf-marble-seal .sms-line1 { font-size: 11px; color: var(--brick); letter-spacing: 0.18em; }
.sf-marble-seal .sms-line2 { font-size: 16px; }
.sf-marble-seal .sms-line3 { font-size: 9px; color: var(--tobacco); letter-spacing: 0.18em; }

.sf-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bitumen);
    position: relative;
    overflow: hidden;
}

.sf-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        180deg,
        transparent 0 28px,
        rgba(242, 228, 196, 0.04) 28px 29px
    );
    pointer-events: none;
}

.sf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--tobacco);
    letter-spacing: 0.06em;
}
.sf-meta .sf-tag {
    color: var(--brick);
    font-family: var(--font-display);
    letter-spacing: 0.2em;
}

.sf-title {
    font-family: var(--font-display);
    color: var(--cream);
    font-size: clamp(32px, 3.6vw, 56px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.005em;
}

.sf-sub {
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 14px;
    letter-spacing: 0.22em;
}

.sf-debrief {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 14px;
    line-height: 1.65;
    max-width: 36em;
    position: relative;
}

.sf-photo {
    align-self: stretch;
    height: 120px;
    background-color: var(--reactor);
    background-image:
        radial-gradient(circle at 25% 35%, var(--bitumen) 1.4px, transparent 1.6px),
        radial-gradient(circle at 75% 65%, var(--bitumen) 1.4px, transparent 1.6px);
    background-size: 4px 4px, 4px 4px;
    background-position: 0 0, 2px 2px;
    mix-blend-mode: multiply;
    position: relative;
    border: 1px solid var(--tar);
}

.sf-photo::after {
    content: attr(data-caption);
    position: absolute;
    left: 8px;
    bottom: 6px;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.12em;
    background: rgba(15, 10, 6, 0.65);
    padding: 2px 6px;
}

.sf-signature {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(228, 120, 53, 0.3);
}

.sf-sign-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sf-sign-name {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--cream);
    transform: rotate(-1.3deg);
}
.sf-sign-role {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--tobacco);
    letter-spacing: 0.18em;
}

.sf-stamp-small {
    width: 64px;
    height: 64px;
    border: 1.4px solid var(--reactor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brick);
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.16em;
    transform: rotate(-7deg);
    text-align: center;
    line-height: 1.1;
    background: rgba(15, 10, 6, 0.4);
}

/* Strip divider between folios (rendered as ::after on each folio) */
.strip-folio:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 8%;
    bottom: 8%;
    right: -10px;
    width: 1px;
    background: rgba(138, 122, 94, 0.4);
}

.strip-divider {
    flex: 0 0 40px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
}
.strip-divider .sd-octagon {
    width: 32px;
    height: 32px;
    background: var(--granite);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    border: 1px solid var(--brick);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 9px;
    color: var(--brick);
    letter-spacing: 0.1em;
}

/* Strip progress */
.strip-progress {
    margin: 16px 60px 0 60px;
    height: 14px;
    position: relative;
    display: flex;
    align-items: center;
}
.sp-line {
    flex: 1;
    height: 1px;
    background: rgba(228, 120, 53, 0.25);
}
.sp-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background: var(--reactor);
    clip-path: polygon(3px 0, 9px 0, 12px 3px, 12px 9px, 9px 12px, 3px 12px, 0 9px, 0 3px);
    transition: left 220ms var(--ease-snap);
}

/* ===========================================================
   COLOPHON
   =========================================================== */
.colophon-section {
    padding: 60px 60px 80px 60px;
    position: relative;
    z-index: 2;
}

.colophon {
    position: relative;
    background: var(--tar);
    border: 1px solid rgba(165, 113, 71, 0.4);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.colophon-marble {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.78;
}
.col-marble-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.colophon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 10, 6, 0.5) 0%, rgba(15, 10, 6, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

.colophon-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    padding: 44px 48px 28px 48px;
    align-items: center;
}

.col-mark {
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 12px;
    letter-spacing: 0.32em;
    margin-bottom: 8px;
}

.col-title {
    font-family: var(--font-display);
    color: var(--cream);
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin-bottom: 14px;
}

.col-prose {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 14px;
    line-height: 1.65;
    max-width: 36em;
    margin-bottom: 18px;
    opacity: 0.92;
}

.col-ledger {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
    padding: 14px 16px;
    background: rgba(15, 10, 6, 0.55);
    border-left: 3px solid var(--reactor);
}
.col-ledger li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cl-k {
    font-family: var(--font-display);
    color: var(--brick);
    font-size: 10px;
    letter-spacing: 0.22em;
}
.cl-v {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 13px;
}

.col-right {
    display: flex;
    justify-content: center;
    align-items: center;
}
.col-stamp-svg {
    width: 220px;
    height: 220px;
    transform: rotate(-6deg);
    filter: drop-shadow(0 0 8px rgba(200, 82, 30, 0.25));
}

.colophon-base {
    position: relative;
    z-index: 2;
    padding: 14px 48px 22px 48px;
    border-top: 1px dashed rgba(228, 120, 53, 0.28);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--tobacco);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.1em;
}
.colophon-base .sep { color: var(--reactor); opacity: 0.7; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1100px) {
    .wall-grid { grid-template-columns: repeat(4, 1fr); }
    .cover { padding: 28px 36px 36px 36px; }
    .wall-section { padding: 48px 36px 60px 36px; }
    .strip-header, .strip-rail, .strip-progress { padding-left: 36px; padding-right: 36px; }
    .colophon-section { padding: 48px 36px 60px 36px; }
}
@media (max-width: 820px) {
    .wall-grid { grid-template-columns: repeat(3, 1fr); }
    .cover-body { grid-template-columns: 1fr; }
    .colophon-content { grid-template-columns: 1fr; padding: 32px 24px; }
    .strip-folio { flex: 0 0 92vw; grid-template-columns: 1fr; height: auto; min-height: 600px; }
    .sf-marble { min-height: 240px; }
}
@media (max-width: 560px) {
    .wall-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cover { padding: 22px 24px 30px 24px; }
    .wall-section { padding: 36px 24px 48px 24px; }
    .colophon-section { padding: 36px 24px 48px 24px; }
    .gutter { display: none; }
}
