/* ============================================================
   mujun.dev — brutalist diagonal-section dossier
   palette: ocean-deep   typography: mono   patterns: blur-focus
   ============================================================ */

:root {
    --c-bg: #0A1628;          /* abyssal black, primary background */
    --c-bg-2: #0D2137;        /* hadal blue, secondary background */
    --c-bg-3: #0F2D3D;        /* pressure teal, tertiary surface */
    --c-text: #C8E6F5;        /* bioluminescent white */
    --c-text-2: #5A7D8A;      /* deep current gray */
    --c-accent-teal: #00E5CC; /* anglerfish glow */
    --c-accent-amber: #E89B3A;/* thermal vent amber */
    --c-danger: #C42B1C;      /* magma seep red */
    --c-highlight: #1B5E7A;   /* phosphor trace */
    --c-divider: #162D42;     /* trench line */

    --f-mono: "Space Mono", "IBM Plex Mono", "Share Tech Mono", ui-monospace, monospace;
    --f-annot: "IBM Plex Mono", "Space Mono", ui-monospace, monospace;
    --f-numeral: "Share Tech Mono", "Space Mono", ui-monospace, monospace;

    --grid-unit: 24px;
    --doc-margin: 120px;
    --tilt-1: -7deg;
    --tilt-2: 7deg;
    --tilt-3: -4deg;
    --tilt-4: 11deg;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; }
html { background: var(--c-bg); }

body {
    font-family: var(--f-mono);
    font-weight: 400;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 24px;
    font-size: 15px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

::selection { background: var(--c-accent-teal); color: var(--c-bg); }

/* ============================================================
   PAGE BACKGROUND LAYERS
   ============================================================ */

body::before {
    /* ambient deep radial light */
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 12%, rgba(27, 94, 122, 0.18) 0%, transparent 38%),
        radial-gradient(circle at 82% 78%, rgba(15, 45, 61, 0.6) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(13, 33, 55, 0.45) 0%, transparent 70%),
        var(--c-bg);
    z-index: -3;
}

body::after {
    /* page-level edge oxidation vignette */
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 200px 30px rgba(10, 22, 40, 0.85),
        inset 0 0 60px 6px rgba(10, 22, 40, 0.6);
    z-index: -2;
}

.grain-layer {
    position: fixed;
    inset: -10%;
    pointer-events: none;
    opacity: 0.085;
    mix-blend-mode: overlay;
    z-index: -1;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 0.78  0 0 0 0 0.9  0 0 0 0 0.96  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
}

.dot-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(rgba(200, 230, 245, 0.06) 1px, transparent 1.4px);
    background-size: 48px 48px;
    background-position: 0 0;
    opacity: 0.55;
    transition: opacity 600ms linear;
}
body.scroll-paused .dot-grid { opacity: 1; }

.halo-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}
.halo-layer .halo {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 94, 122, 0.18) 0%, rgba(27, 94, 122, 0.06) 35%, transparent 65%);
    transform: translate(-50%, -50%);
    filter: blur(2px);
}

/* ============================================================
   NAVIGATION COMPASS GLYPH
   ============================================================ */

.nav-compass {
    position: fixed;
    top: 36px;
    right: 36px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--c-divider);
    padding: 14px 16px 12px 16px;
    color: var(--c-text);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: border-color 200ms linear, color 200ms linear;
}
.nav-compass:hover { border-color: var(--c-accent-teal); color: var(--c-accent-teal); }
.nav-compass .nav-glyph {
    font-family: var(--f-numeral);
    font-size: 28px;
    line-height: 1;
    color: var(--c-accent-teal);
    display: inline-block;
    transform-origin: 50% 50%;
    animation: glyph-spin 30s linear infinite;
    letter-spacing: 0;
    margin-bottom: 4px;
    width: 22px;
    text-align: center;
}
.nav-compass .nav-label { font-weight: 700; color: var(--c-text); }
.nav-compass .nav-coord { font-family: var(--f-numeral); color: var(--c-text-2); font-size: 10px; }

@keyframes glyph-spin {
    0%   { content: "/"; }
    100% { content: "/"; }
}

/* ============================================================
   NAVIGATION OVERLAY
   ============================================================ */

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 350ms linear;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: var(--doc-margin);
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-overlay-inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--c-divider);
    padding: 56px 64px;
    position: relative;
    background:
        repeating-linear-gradient(135deg, rgba(90, 125, 138, 0.04) 0 1px, transparent 1px 80px),
        rgba(13, 33, 55, 0.4);
}
.nav-overlay-inner::before {
    content: "矛盾";
    position: absolute;
    right: 64px;
    bottom: 72px;
    font-family: var(--f-numeral);
    font-size: 200px;
    color: var(--c-danger);
    opacity: 0.08;
    letter-spacing: 0.05em;
    pointer-events: none;
    line-height: 1;
}

.nav-overlay-header, .nav-overlay-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-text-2);
}
.nav-overlay-close {
    background: transparent;
    border: 1px solid var(--c-divider);
    color: var(--c-accent-amber);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    padding: 6px 12px;
    cursor: pointer;
}
.nav-overlay-close:hover { border-color: var(--c-accent-amber); }

.nav-overlay-list {
    list-style: none;
    margin: 56px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nav-overlay-list a {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 24px;
    align-items: baseline;
    text-decoration: none;
    color: var(--c-text);
    padding: 18px 0;
    border-bottom: 1px solid var(--c-divider);
    transition: padding 250ms linear, color 200ms linear;
}
.nav-overlay-list a:hover { padding-left: 24px; color: var(--c-accent-teal); }
.nav-overlay-list .coord {
    font-family: var(--f-numeral);
    font-size: 64px;
    letter-spacing: 0.08em;
    color: var(--c-text);
    line-height: 1;
}
.nav-overlay-list a:hover .coord { color: var(--c-accent-teal); }
.nav-overlay-list .label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.nav-overlay-list .hint {
    font-family: var(--f-annot);
    font-size: 12px;
    color: var(--c-text-2);
    letter-spacing: 0.1em;
}

.nav-overlay-footer span:last-child {
    color: var(--c-danger);
    font-family: var(--f-numeral);
    font-size: 14px;
    letter-spacing: 0.15em;
}

/* ============================================================
   DOCUMENT LAYOUT / DIAGONAL SECTIONS
   ============================================================ */

.document {
    padding: 0;
    margin: 0;
    position: relative;
}

.diag-section {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: visible;
    /* state for blur-focus animation */
    --focus: 0;
    filter: blur(calc((1 - var(--focus)) * 6px));
    opacity: calc(0.4 + var(--focus) * 0.6);
    transition: filter 600ms ease-out, opacity 600ms ease-out;
}

/* Each section's clip-path produces the diagonal slice.
   Computed angles match data-tilt values; outer slice contains the
   container, inner content is counter-rotated for legibility. */

.section-01 { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); padding: 140px 0 220px; }
.section-02 { clip-path: polygon(0 12%, 100% 0,    100% 100%, 0 90%); padding: 220px 0 220px; margin-top: -60px; }
.section-03 { clip-path: polygon(0 0,   100% 6%,   100% 96%,  0 100%); padding: 220px 0 220px; margin-top: -60px; }
.section-04 { clip-path: polygon(0 4%,  100% 0,    100% 92%,  0 100%); padding: 220px 0 220px; margin-top: -60px; }
.section-05 { clip-path: polygon(0 0,   100% 0,    100% 100%, 0 100%); padding: 200px 0 240px; margin-top: -60px; }

.section-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.section-01 .section-bg { background: linear-gradient(178deg, var(--c-bg) 0%, var(--c-bg-2) 60%, var(--c-bg-3) 100%); }
.section-02 .section-bg { background: linear-gradient(180deg, var(--c-bg-3) 0%, var(--c-bg-2) 50%, var(--c-bg) 100%); }
.section-03 .section-bg { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%); }
.section-04 .section-bg { background: linear-gradient(180deg, var(--c-bg-2) 0%, var(--c-bg-3) 100%); }
.section-05 .section-bg { background: linear-gradient(180deg, var(--c-bg-3) 0%, var(--c-bg) 100%); }

/* knife-edge hard seam between sections */
.diag-section::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -1px;
    height: 2px;
    background: var(--c-bg);
    z-index: 5;
    pointer-events: none;
}
.section-01::after { transform: rotate(-1.4deg); }
.section-02::after { transform: rotate(1.6deg); }
.section-03::after { transform: rotate(-0.9deg); }
.section-04::after { transform: rotate(2.4deg); }
.section-05::after { display: none; }

/* fold lines */
.section-fold-lines {
    position: absolute;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient( 47deg, transparent 0 213px, rgba(90, 125, 138, 0.06) 213px 214px, transparent 214px 480px),
        repeating-linear-gradient(-32deg, transparent 0 311px, rgba(90, 125, 138, 0.05) 311px 312px, transparent 312px 720px),
        repeating-linear-gradient( 12deg, transparent 0 144px, rgba(200, 230, 245, 0.025) 144px 145px, transparent 145px 360px);
    mix-blend-mode: screen;
}
.section-fold-lines.straight {
    background:
        repeating-linear-gradient(0deg, transparent 0 96px, rgba(90, 125, 138, 0.06) 96px 97px, transparent 97px 200px),
        repeating-linear-gradient(90deg, transparent 0 96px, rgba(90, 125, 138, 0.04) 96px 97px, transparent 97px 200px);
}

/* circuit trace decoration */
.section-circuit {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        linear-gradient(to right, transparent 0 calc(50% - 1px), var(--c-divider) calc(50% - 1px) calc(50% + 0px), transparent calc(50% + 0px)),
        linear-gradient(to bottom, transparent 0 80px, var(--c-divider) 80px 81px, transparent 81px 100%),
        radial-gradient(circle 6px at 50% 80px, var(--c-divider) 100%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, 100% 100%;
}
.section-circuit.alt {
    background-image:
        linear-gradient(to right, var(--c-divider) 0 1px, transparent 1px 100%),
        linear-gradient(to bottom, transparent 0 calc(100% - 120px), var(--c-divider) calc(100% - 120px) calc(100% - 119px), transparent calc(100% - 119px)),
        radial-gradient(circle 6px at 1px calc(100% - 120px), var(--c-divider) 100%, transparent 100%);
    background-position: 80% 0, 0 0, 0 0;
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.2;
}
.section-circuit.straight { opacity: 0.1; }

.section-vignette {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 0 0 80px rgba(10, 22, 40, 0.55), inset 0 0 220px rgba(10, 22, 40, 0.3);
}

/* counter-rotated content container so text reads horizontal
   while the section's clip-path implies a tilted page */
.section-content {
    position: relative;
    z-index: 1;
    margin: 0 var(--doc-margin);
    padding: 60px 0;
    transform-origin: 50% 50%;
}
.content-01 { transform: rotate(0.6deg); }
.content-02 { transform: rotate(-0.5deg); }
.content-03 { transform: rotate(0.3deg); }
.content-04 { transform: rotate(-0.7deg); }
.content-05 { transform: rotate(0deg); }

/* ============================================================
   STAGGERED FOCUS — text-level blur cascade
   driven by .section.focus-stage-{1,2,3} added by JS
   ============================================================ */

.diag-section [data-stage="1"],
.diag-section [data-stage="2"],
.diag-section [data-stage="3"] {
    filter: blur(4px);
    opacity: 0.3;
    transition: filter 700ms ease-out, opacity 700ms ease-out;
}
.diag-section.focus-stage-1 [data-stage="1"] { filter: blur(0); opacity: 1; }
.diag-section.focus-stage-2 [data-stage="1"],
.diag-section.focus-stage-2 [data-stage="2"] { filter: blur(0); opacity: 1; }
.diag-section.focus-stage-3 [data-stage="1"],
.diag-section.focus-stage-3 [data-stage="2"],
.diag-section.focus-stage-3 [data-stage="3"] { filter: blur(0); opacity: 1; }

/* ============================================================
   META STRIPS / GENERIC TYPE
   ============================================================ */

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-text-2);
    border-bottom: 1px solid var(--c-divider);
    padding-bottom: 12px;
    gap: 20px;
}
.meta-row.bottom { border-bottom: 0; border-top: 1px solid var(--c-divider); padding: 12px 0 0 0; margin-top: 60px; }
.meta-tag.right { text-align: right; }

em.amber { color: var(--c-accent-amber); font-style: normal; }
em.teal  { color: var(--c-accent-teal); font-style: normal; }
em.red   { color: var(--c-danger); font-style: normal; }

/* ============================================================
   SECTION 01 — IDENTITY / HERO
   ============================================================ */

.hero-frame {
    margin: 80px 0 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    position: relative;
}

.numeral-block {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    color: var(--c-text);
}
.numeral-block.inline { flex-direction: row; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.numeral-block.centered { align-items: center; text-align: center; }

.numeral-leader, .numeral-trail {
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-text-2);
}
.numeral-trail { margin-top: 8px; }
.numeral-block.inline .numeral-trail { margin-top: 0; }

.numeral-big {
    font-family: var(--f-numeral);
    font-size: 144px;
    letter-spacing: 0.3em;
    line-height: 1;
    color: var(--c-text);
    margin: 12px 0 4px;
    font-weight: 400;
}

.hero-numeral { display: flex; flex-direction: column; }

.hero-symbol-wrap {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}
.hero-symbol {
    font-family: var(--f-numeral), "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 220px;
    line-height: 1;
    color: var(--c-danger);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 32px rgba(196, 43, 28, 0.25);
}
.hero-symbol-shadow {
    position: absolute;
    left: 6px;
    top: 6px;
    font-family: inherit;
    font-size: 220px;
    color: rgba(196, 43, 28, 0.18);
    z-index: 1;
    filter: blur(2px);
    letter-spacing: 0.05em;
}
.hero-glitch {
    position: absolute;
    background: var(--c-accent-teal);
    opacity: 0.5;
    width: 16px;
    height: 4px;
    z-index: 3;
    mix-blend-mode: screen;
}
.hero-glitch.a { top: 22px;  left: 230px; }
.hero-glitch.b { top: 110px; left: 410px; width: 28px; height: 4px; opacity: 0.35; }
.hero-glitch.c { top: 200px; left: 60px;  width: 12px; height: 4px; background: var(--c-accent-amber); opacity: 0.6; }

.hero-statement {
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: var(--c-text);
    max-width: 980px;
}
.hero-statement .word { display: inline; }
.hero-statement .punct { color: var(--c-accent-teal); }
.hero-rule {
    display: block;
    width: 96px;
    height: 2px;
    background: var(--c-accent-amber);
    margin: 24px 0;
}
.hero-line {
    display: block;
    font-weight: 400;
    font-size: 22px;
    color: var(--c-text);
    line-height: 1.45;
    max-width: 880px;
}

.hero-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    border-top: 1px solid var(--c-divider);
    border-bottom: 1px solid var(--c-divider);
    padding: 18px 0;
    font-family: var(--f-annot);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--c-text);
    text-transform: uppercase;
}
.hero-strip .strip-cell { display: flex; }

/* ============================================================
   PALIMPSEST GAP — section gap watermarks
   ============================================================ */

.palimpsest-gap {
    height: 200px;
    margin: -60px 0 -60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.palimp-text {
    position: absolute;
    inset: 0;
    padding: 24px var(--doc-margin);
    font-family: var(--f-annot);
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 0.04em;
    color: var(--c-text);
    opacity: 0.06;
    transform: rotate(-1.8deg);
    pointer-events: none;
    white-space: nowrap;
}
.palimp-text p { margin: 0; }

/* ============================================================
   SECTION 02 — PHILOSOPHY
   ============================================================ */

.philo-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 40px;
}

.philo-side {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-right: 1px solid var(--c-divider);
    padding-right: 32px;
}

.margin-notes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--c-text-2);
    text-transform: uppercase;
}
.margin-notes .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: middle;
}
.margin-notes .dot.amber { background: var(--c-accent-amber); }
.margin-notes .dot.teal  { background: var(--c-accent-teal); }
.margin-notes .dot.red   { background: var(--c-danger); }

.stamp.diagonal-stamp {
    border: 1.5px solid var(--c-danger);
    color: var(--c-danger);
    padding: 8px 12px;
    align-self: flex-start;
    font-family: var(--f-numeral);
    font-size: 11px;
    letter-spacing: 0.22em;
    transform: rotate(-6deg);
    text-transform: uppercase;
    background: rgba(196, 43, 28, 0.04);
}

.philo-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 760px;
}
.philo-header { display: flex; flex-direction: column; gap: 12px; }
.kicker {
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-accent-teal);
}
.philo-title {
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.18;
    color: var(--c-text);
    letter-spacing: -0.005em;
}

.philo-body p {
    font-family: var(--f-mono);
    font-size: 16px;
    line-height: 28px;
    color: var(--c-text);
}
.philo-body .lead { font-size: 18px; color: var(--c-text); }
.philo-body .signoff {
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--c-text-2);
    margin-top: 16px;
    text-transform: uppercase;
}

.callout {
    position: relative;
    padding: 28px 32px;
    border: 1px dashed var(--c-divider);
    background: rgba(15, 45, 61, 0.55);
    margin: 12px 0;
}
.callout-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--c-accent-amber);
}
.callout-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.callout-corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.callout-corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.callout-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.callout-tag {
    display: block;
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-accent-amber);
    margin-bottom: 12px;
}
.callout p {
    font-size: 19px;
    line-height: 1.5;
    color: var(--c-text);
}

/* ============================================================
   SECTION 03 — WORK / DOSSIERS
   ============================================================ */

.work-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 60px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--c-divider);
}
.work-blurb {
    font-size: 15px;
    line-height: 26px;
    color: var(--c-text);
    max-width: 540px;
    justify-self: end;
}

.dossier-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.dossier {
    position: relative;
    padding: 36px 40px 36px 40px;
    border: 1px solid var(--c-divider);
    background:
        repeating-linear-gradient(0deg, rgba(90, 125, 138, 0.025) 0 1px, transparent 1px 24px),
        rgba(13, 33, 55, 0.4);
    overflow: hidden;
}
.dossier::before {
    /* corner trace */
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 28px;
    height: 28px;
    border-top: 2px solid var(--c-accent-teal);
    border-left: 2px solid var(--c-accent-teal);
    pointer-events: none;
}
.dossier::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 28px;
    height: 28px;
    border-bottom: 2px solid var(--c-accent-amber);
    border-right: 2px solid var(--c-accent-amber);
    pointer-events: none;
}

.dossier-stamp {
    position: absolute;
    top: 28px;
    right: 36px;
    border: 2px solid var(--c-accent-teal);
    color: var(--c-accent-teal);
    padding: 8px 14px;
    font-family: var(--f-numeral);
    font-size: 12px;
    letter-spacing: 0.28em;
    transform: rotate(7deg);
    background: rgba(0, 229, 204, 0.04);
    text-align: center;
    line-height: 1.2;
    z-index: 2;
}
.dossier-stamp.red {
    border-color: var(--c-danger);
    color: var(--c-danger);
    background: rgba(196, 43, 28, 0.05);
}
.dossier-stamp .stamp-text { display: block; font-weight: 700; }
.dossier-stamp .stamp-sub  { display: block; font-size: 9px; letter-spacing: 0.18em; opacity: 0.8; margin-top: 2px; }

.dossier-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 16px;
}

.dossier-meta {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px 14px;
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--c-text-2);
}
.dossier-meta .d-label { text-transform: uppercase; color: var(--c-text-2); }
.dossier-meta .d-value { color: var(--c-text); }
.dossier-meta .d-value.amber { color: var(--c-accent-amber); }
.dossier-meta .d-value.teal  { color: var(--c-accent-teal); }
.redact {
    background: var(--c-text);
    color: var(--c-text);
    padding: 0 4px;
    user-select: none;
}

.dossier-body { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.dossier-title {
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.32;
    color: var(--c-text);
    letter-spacing: -0.005em;
}
.dossier-body p {
    font-family: var(--f-mono);
    font-size: 15px;
    line-height: 26px;
    color: var(--c-text);
}

.tag-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.tag-row li {
    font-family: var(--f-annot);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text-2);
    border: 1px solid var(--c-divider);
    padding: 4px 10px;
}

/* ============================================================
   SECTION 04 — PROCESS
   ============================================================ */

.proc-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--c-divider);
}
.proc-blurb {
    font-size: 15px;
    line-height: 26px;
    color: var(--c-text);
    max-width: 540px;
    justify-self: end;
}

.proc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-left: 1px solid var(--c-divider);
    border-top: 1px solid var(--c-divider);
    border-bottom: 1px solid var(--c-divider);
}
.proc-step {
    position: relative;
    padding: 36px 28px 64px 28px;
    border-right: 1px solid var(--c-divider);
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(13, 33, 55, 0.3);
}
.proc-step:hover { background: rgba(15, 45, 61, 0.5); }
.proc-step::before {
    /* circuit pad */
    content: "";
    position: absolute;
    top: 24px;
    right: 24px;
    width: 8px;
    height: 8px;
    background: var(--c-accent-teal);
    opacity: 0.5;
}

.step-num {
    font-family: var(--f-numeral);
    font-size: 56px;
    letter-spacing: 0.18em;
    line-height: 1;
    color: var(--c-text);
}
.step-title {
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--c-text);
    letter-spacing: -0.002em;
}
.step-body {
    font-family: var(--f-mono);
    font-size: 13px;
    line-height: 22px;
    color: var(--c-text);
}
.step-anti {
    margin-top: auto;
    font-family: var(--f-annot);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-danger);
    border-top: 1px dashed var(--c-divider);
    padding-top: 14px;
}

/* ============================================================
   SECTION 05 — RESOLUTION / CONTACT
   ============================================================ */

.section-05 {
    /* the only horizontal section */
    transform: none;
}

.resolved-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
    padding: 40px 0;
    position: relative;
}

.resolution-mujun {
    font-family: var(--f-numeral), "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 320px;
    line-height: 1;
    color: var(--c-danger);
    letter-spacing: 0.02em;
    opacity: 0.95;
    text-shadow: 0 0 60px rgba(196, 43, 28, 0.18);
    margin: 12px 0;
    position: relative;
}
.resolution-mujun::after {
    content: "矛盾";
    position: absolute;
    inset: 0;
    color: var(--c-danger);
    opacity: 0.12;
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
}

.resolution-line {
    font-family: var(--f-mono);
    font-size: 28px;
    line-height: 1.4;
    color: var(--c-text);
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    border-top: 1px solid var(--c-divider);
    border-bottom: 1px solid var(--c-divider);
    padding: 28px 12px;
    width: 100%;
    max-width: 1100px;
}
.resolution-line .r-label {
    font-family: var(--f-annot);
    font-size: 12px;
    letter-spacing: 0.32em;
    color: var(--c-text-2);
    text-transform: uppercase;
    align-self: center;
}
.resolution-line .r-coord {
    color: var(--c-accent-teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 229, 204, 0.4);
    padding-bottom: 2px;
}
.resolution-line .r-coord:hover { color: var(--c-accent-amber); border-bottom-color: var(--c-accent-amber); }

.resolution-sub {
    font-family: var(--f-annot);
    font-size: 13px;
    color: var(--c-text-2);
    letter-spacing: 0.12em;
    max-width: 760px;
}

.resolution-links {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.resolution-links a {
    color: var(--c-text);
    text-decoration: none;
    border: 1px solid var(--c-divider);
    padding: 10px 16px;
}
.resolution-links a:hover { color: var(--c-accent-teal); border-color: var(--c-accent-teal); }

.doc-footer {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--f-annot);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--c-text-2);
    text-transform: uppercase;
}

/* ============================================================
   WATERMARKS (per-section faint string)
   ============================================================ */

.watermark {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    font-family: var(--f-annot);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--c-text);
    opacity: 0.04;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   GLITCH BLOCKS along edges (decorative)
   ============================================================ */

.diag-section .section-content::before,
.diag-section .section-content::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 4px;
    background: var(--c-accent-teal);
    opacity: 0.1;
    pointer-events: none;
}
.diag-section .section-content::before { top: 24px; left: -8px; }
.diag-section .section-content::after  { bottom: 24px; right: -8px; background: var(--c-accent-amber); opacity: 0.1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    :root { --doc-margin: 64px; }
    .numeral-big { font-size: 96px; }
    .hero-symbol, .hero-symbol-shadow { font-size: 160px; }
    .hero-statement { font-size: 36px; }
    .philo-title { font-size: 28px; }
    .resolution-mujun { font-size: 220px; }
    .resolution-line { font-size: 22px; }
    .work-header, .proc-header { grid-template-columns: 1fr; gap: 24px; }
    .work-blurb, .proc-blurb { justify-self: start; max-width: none; }
    .philo-grid { grid-template-columns: 1fr; gap: 40px; }
    .philo-side { position: static; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--c-divider); padding-bottom: 24px; }
    .dossier-grid { grid-template-columns: 1fr; gap: 24px; }
    .dossier-meta { grid-template-columns: 110px 1fr; }
    .proc-list { grid-template-columns: 1fr; }
    .proc-step { border-right: 0; border-bottom: 1px solid var(--c-divider); }
    .nav-overlay { padding: 32px; }
    .nav-overlay-inner { padding: 32px; }
    .nav-overlay-list a { grid-template-columns: 120px 1fr auto; gap: 16px; }
    .nav-overlay-list .coord { font-size: 36px; }
}

@media (max-width: 640px) {
    :root { --doc-margin: 24px; }
    .numeral-big { font-size: 64px; letter-spacing: 0.18em; }
    .hero-symbol, .hero-symbol-shadow { font-size: 120px; }
    .hero-symbol-wrap { height: 160px; }
    .hero-statement { font-size: 26px; }
    .hero-line { font-size: 16px; }
    .hero-strip { grid-template-columns: 1fr; }
    .philo-title { font-size: 22px; }
    .resolution-mujun { font-size: 144px; }
    .resolution-line { font-size: 16px; padding: 16px 8px; }
    .nav-compass { top: 12px; right: 12px; padding: 8px 10px; }
    .nav-compass .nav-glyph { font-size: 22px; }
    .palimp-text { padding: 16px 24px; font-size: 10px; }
    .dossier { padding: 24px 20px; }
    .dossier-stamp { top: 16px; right: 16px; padding: 6px 10px; font-size: 10px; }
}
