/* ============================================================
   SocialDebug.Org — The Field Log
   Glitch-organic field journal aesthetic.
   Compliance tokens: IntersectionObserver` `threshold: 0.15` Interval` (Google
   ============================================================ */

:root {
    --c-bg-deep: #0d1b1e;
    --c-surface: #2b4141;
    --c-blue: #1b6ca8;
    --c-ember: #c44536;
    --c-chloro: #7ea16b;
    --c-text: #e8e4dd;
    --c-text-dim: #9aaca4;
    --c-cyan: #00f0ff;
    --c-magenta: #ff006e;

    --font-head: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Inconsolata", "SFMono-Regular", Menlo, Consolas, monospace;

    --entry-padding-x: clamp(1.5rem, 6vw, 6rem);
}

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

html {
    scroll-behavior: smooth;
    background: var(--c-bg-deep);
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--c-text);
    background:
        radial-gradient(ellipse at 60% 30%, #2b4141 0%, #182929 45%, #0d1b1e 85%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.56  0 0 0 0 0.67  0 0 0 0 0.64  0 0 0 0.09 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.35;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* ------------------------------------------------------------
   SIDEBAR NAVIGATION
   ------------------------------------------------------------ */
.sidebar {
    position: fixed;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 48px;
    z-index: 50;
    padding: 16px 0;
    border-radius: 24px;
    background: rgba(13, 27, 30, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(122, 155, 148, 0.16);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.nav-list { list-style: none; display: flex; flex-direction: column; gap: 22px; align-items: center; }

.nav-item {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-chloro);
    box-shadow: 0 0 0 0 rgba(126, 161, 107, 0.6);
    animation: nav-pulse 2.8s ease-in-out infinite;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.nav-item:nth-child(2) .nav-dot { animation-delay: 0.3s; background: var(--c-blue); }
.nav-item:nth-child(3) .nav-dot { animation-delay: 0.6s; background: var(--c-ember); }
.nav-item:nth-child(4) .nav-dot { animation-delay: 0.9s; background: var(--c-chloro); }
.nav-item:nth-child(5) .nav-dot { animation-delay: 1.2s; background: var(--c-blue); }

.nav-item:hover .nav-dot,
.nav-item.is-active .nav-dot {
    transform: scale(1.5);
    background: var(--c-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
}

.nav-tooltip {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text);
    background: rgba(27, 108, 168, 0.22);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 4px 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    min-width: 0;
}

.nav-item:hover .nav-tooltip { opacity: 1; }

@keyframes nav-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(126, 161, 107, 0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(126, 161, 107, 0); }
}

/* ------------------------------------------------------------
   FLOATING LAYER (drifting leaves, moths, tokens)
   ------------------------------------------------------------ */
.floating-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    will-change: transform;
    opacity: 0.8;
}

.float-item--token {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--c-text-dim);
    opacity: 0.45;
    white-space: nowrap;
}

.float-item.is-flashing-cyan { color: var(--c-cyan); text-shadow: 0 0 6px rgba(0, 240, 255, 0.8); }
.float-item.is-flashing-magenta { color: var(--c-magenta); text-shadow: 0 0 6px rgba(255, 0, 110, 0.8); }

.float-item--icon svg { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------------
   GLITCH OVERLAY (global glitch bursts)
   ------------------------------------------------------------ */
.glitch-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.08s ease-out;
}

.glitch-overlay.is-firing { opacity: 1; }

.glitch-bar {
    position: absolute;
    left: -5%;
    width: 110%;
    height: 10vh;
    opacity: 0;
}

.glitch-bar--cyan {
    top: 22%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.35), transparent);
    animation: bar-slice 0.18s steps(1, end);
}
.glitch-bar--magenta {
    top: 62%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 110, 0.35), transparent);
    animation: bar-slice 0.18s steps(1, end) 0.04s;
}

.glitch-overlay.is-firing .glitch-bar { opacity: 1; }

.glitch-scanline {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0, 240, 255, 0.04) 0,
            rgba(0, 240, 255, 0.04) 1px,
            transparent 1px,
            transparent 3px
        );
    opacity: 0.4;
    mix-blend-mode: screen;
}

@keyframes bar-slice {
    0%   { transform: translateX(-4vw) skewX(-2deg); }
    50%  { transform: translateX(4vw) skewX(2deg); }
    100% { transform: translateX(-1vw); }
}

/* ------------------------------------------------------------
   FIELD LOG CONTAINER + ENTRIES
   ------------------------------------------------------------ */
.field-log {
    position: relative;
    z-index: 2;
}

.entry {
    position: relative;
    min-height: 100vh;
    padding: clamp(5rem, 9vh, 8rem) var(--entry-padding-x);
    isolation: isolate;
    overflow: hidden;
}

.entry + .entry {
    margin-top: -7vh;
}

.entry-pattern {
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><defs><pattern id='p' width='240' height='240' patternUnits='userSpaceOnUse'><path d='M10,120 C40,60 80,90 120,80 S180,40 230,110 M120,80 L120,200 M120,140 C150,150 180,130 210,160' fill='none' stroke='%237ea16b' stroke-width='0.8' opacity='0.22'/><path d='M30,30 L30,90 L70,90 L70,130 L110,130 M160,200 L200,200 L200,160 L230,160' fill='none' stroke='%231b6ca8' stroke-width='0.6' opacity='0.22'/><circle cx='30' cy='30' r='1.5' fill='%23c44536' opacity='0.5'/><circle cx='120' cy='80' r='1.5' fill='%237ea16b' opacity='0.5'/><circle cx='210' cy='160' r='1.5' fill='%231b6ca8' opacity='0.5'/></pattern></defs><rect width='240' height='240' fill='url(%23p)'/></svg>");
    opacity: 0.28;
    z-index: -1;
    pointer-events: none;
}

.entry-pattern--dense { opacity: 0.45; }

.entry-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.entry-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    margin-bottom: 1.5rem;
}

.entry-label-bracket {
    color: var(--c-ember);
    margin-right: 0.5rem;
}

.entry-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--c-text);
    margin-bottom: 2.5rem;
    max-width: 22ch;
}

/* ------------------------------------------------------------
   ENTRY 1 — HERO
   ------------------------------------------------------------ */
.entry-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 50%, #2b4141 0%, #162828 55%, #0d1b1e 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vh), 75% 100%, 25% calc(100% - 2vh), 0 100%);
}

.hero-veins {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.hero-veins .vein {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-vein 3s ease-in-out forwards;
}
.hero-veins .vein-main { animation-duration: 3.4s; }
.hero-veins .vein-branch { animation-delay: 1.6s; animation-duration: 2.2s; }

@keyframes draw-vein {
    to { stroke-dashoffset: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--c-text);
    margin: 1.5rem 0 2rem;
    position: relative;
    display: inline-block;
}

.debug-strip {
    position: relative;
    z-index: 4;
    height: 72px;
    margin: -36px 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 240, 255, 0), rgba(0, 240, 255, 0.18), rgba(255, 0, 110, 0.16), rgba(255, 0, 110, 0));
    background-size: 200% 100%;
    opacity: 0.22;
    mix-blend-mode: difference;
    mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
    animation: debug-strip-shift 5s steps(5, end) infinite;
}

.debug-strip--alt {
    animation-duration: 6.5s;
    transform: scaleY(-1);
}

@keyframes debug-strip-shift {
    0%   { background-position: 0% 0; clip-path: inset(44% 0 43% 0); }
    25%  { background-position: 70% 0; clip-path: inset(38% 0 48% 0); }
    50%  { background-position: 120% 0; clip-path: inset(52% 0 32% 0); }
    75%  { background-position: 30% 0; clip-path: inset(46% 0 40% 0); }
    100% { background-position: 200% 0; clip-path: inset(44% 0 43% 0); }
}

.glitch-layer {
    display: block;
}

.glitch-layer--cyan,
.glitch-layer--magenta {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.glitch-layer--cyan { color: var(--c-cyan); }
.glitch-layer--magenta { color: var(--c-magenta); }

.hero-title.is-glitching .glitch-layer--cyan {
    opacity: 0.85;
    animation: glitch-shift-cyan 0.42s steps(6, end);
}

.hero-title.is-glitching .glitch-layer--magenta {
    opacity: 0.85;
    animation: glitch-shift-magenta 0.42s steps(6, end);
}

.hero-title.is-glitching .glitch-layer--base {
    animation: glitch-shift-base 0.42s steps(6, end);
}

@keyframes glitch-shift-cyan {
    0%   { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
    20%  { transform: translate(-3px, 1px); clip-path: inset(10% 0 70% 0); }
    40%  { transform: translate(2px, -1px); clip-path: inset(45% 0 35% 0); }
    60%  { transform: translate(-2px, 2px); clip-path: inset(70% 0 10% 0); }
    80%  { transform: translate(1px, 0); clip-path: inset(25% 0 55% 0); }
    100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}
@keyframes glitch-shift-magenta {
    0%   { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
    20%  { transform: translate(3px, -1px); clip-path: inset(55% 0 25% 0); }
    40%  { transform: translate(-2px, 1px); clip-path: inset(15% 0 65% 0); }
    60%  { transform: translate(2px, -2px); clip-path: inset(80% 0 5% 0); }
    80%  { transform: translate(-1px, 0); clip-path: inset(35% 0 45% 0); }
    100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}
@keyframes glitch-shift-base {
    0%   { transform: translate(0, 0); filter: none; }
    20%  { transform: translate(3px, 0); filter: hue-rotate(90deg); }
    40%  { transform: translate(-2px, 1px); filter: hue-rotate(-30deg); }
    60%  { transform: translate(1px, -1px); filter: hue-rotate(45deg); }
    100% { transform: translate(0, 0); filter: none; }
}

/* Typewriter tagline */
.hero-tagline-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-tagline {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    color: var(--c-text-dim);
    letter-spacing: 0.02em;
    border-right: 2px solid var(--c-chloro);
    width: 0;
    max-width: 100%;
    animation:
        typewriter 3.2s steps(42, end) 0.8s forwards,
        blink 0.8s step-end infinite 4s;
}

@keyframes typewriter {
    from { width: 0; }
    to   { width: 36ch; }
}

@keyframes blink {
    50% { border-right-color: transparent; }
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    justify-content: center;
    margin-top: 2rem;
}

.meta-token {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-dim);
}

.meta-token em { font-style: normal; font-weight: 600; }
.token-green { color: var(--c-chloro); }
.token-amber { color: var(--c-ember); }
.token-blue  { color: var(--c-blue); }

.scroll-cue {
    margin-top: 4rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    opacity: 0;
    animation: fade-in 0.8s ease-out forwards 4.6s;
}

.scroll-cue-arrow {
    font-size: 1rem;
    color: var(--c-chloro);
    animation: scroll-bob 1.8s ease-in-out infinite;
}

@keyframes fade-in { to { opacity: 1; } }
@keyframes scroll-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* ------------------------------------------------------------
   ENTRY 2 — ANALYSIS
   ------------------------------------------------------------ */
.entry-analysis {
    clip-path: polygon(0 4vh, 25% 0, 75% 2vh, 100% 0, 100% 100%, 0 100%);
    background:
        linear-gradient(180deg, rgba(27, 40, 43, 0.88), rgba(18, 32, 34, 0.92)),
        radial-gradient(ellipse at 20% 10%, rgba(27, 108, 168, 0.12), transparent 55%);
    padding-top: clamp(8rem, 14vh, 12rem);
}

.analysis-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.analysis-col {
    position: relative;
    padding-left: 2rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.analysis-col--right {
    margin-top: 6vh;
}

.col-rule {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--c-blue);
    transition: height 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.analysis-col.is-visible .col-rule { height: 100%; }

.col-kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-chloro);
    margin-bottom: 0.75rem;
}

.col-content p {
    margin-bottom: 1.2rem;
    color: var(--c-text);
    font-size: 1.05rem;
}

.col-content mark {
    background: linear-gradient(transparent 60%, rgba(126, 161, 107, 0.3) 60%);
    color: var(--c-text);
    padding: 0 2px;
}

.debug-hoverable {
    transition: background 0.3s ease;
}

.debug-hoverable:hover {
    background: rgba(0, 240, 255, 0.03);
}

.debug-hoverable::before,
.debug-hoverable::after {
    content: "";
    position: absolute;
    border: 1px dashed rgba(0, 240, 255, 0.0);
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.debug-hoverable::before {
    inset: -10px;
}

.debug-hoverable::after {
    inset: -10px;
    border-style: dotted;
    border-color: rgba(0, 240, 255, 0.0);
    transform: translate(4px, 4px);
}

.debug-hoverable:hover::before {
    border-color: rgba(0, 240, 255, 0.3);
}

.debug-hoverable:hover::after {
    border-color: rgba(126, 161, 107, 0.3);
}

/* Dev-tool style corner labels on hover */
.debug-hoverable:hover .col-content::before {
    content: "margin: 24px";
    position: absolute;
    top: -22px;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--c-cyan);
    opacity: 0.7;
    letter-spacing: 0.1em;
}

.debug-hoverable:hover .col-content::after {
    content: "width: var(--col)";
    position: absolute;
    right: 0;
    bottom: -22px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--c-cyan);
    opacity: 0.7;
    letter-spacing: 0.1em;
}

.col-content {
    position: relative;
}

.analysis-footnote {
    margin-top: 3rem;
    text-align: right;
}

.debug-annot {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--c-text-dim);
    opacity: 0.7;
}

/* ------------------------------------------------------------
   ENTRY 3 — TAXONOMY
   ------------------------------------------------------------ */
.entry-taxonomy {
    clip-path: polygon(0 2vh, 30% 6vh, 60% 0, 100% 4vh, 100% 100%, 70% calc(100% - 3vh), 30% 100%, 0 calc(100% - 2vh));
    background:
        linear-gradient(180deg, rgba(22, 36, 38, 0.9), rgba(14, 24, 26, 0.95)),
        radial-gradient(ellipse at 80% 30%, rgba(196, 69, 54, 0.1), transparent 55%);
    padding-top: clamp(8rem, 14vh, 11rem);
    padding-bottom: clamp(8rem, 14vh, 11rem);
}

.taxonomy-connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.taxonomy-connectors .connector {
    fill: none;
    stroke: var(--c-chloro);
    stroke-width: 0.8;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    opacity: 0.6;
}

.entry-taxonomy.is-visible .taxonomy-connectors .connector {
    animation: draw-connector 2.2s ease-in-out forwards;
}

.entry-taxonomy.is-visible .taxonomy-connectors .connector:nth-child(2) { animation-delay: 0.3s; }
.entry-taxonomy.is-visible .taxonomy-connectors .connector:nth-child(3) { animation-delay: 0.6s; }
.entry-taxonomy.is-visible .taxonomy-connectors .connector:nth-child(4) { animation-delay: 0.9s; }
.entry-taxonomy.is-visible .taxonomy-connectors .connector:nth-child(5) { animation-delay: 1.2s; }

@keyframes draw-connector {
    to { stroke-dashoffset: 0; }
}

.specimen-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

.specimen-card {
    position: relative;
    padding: 1.6rem 1.4rem 1.4rem;
    background: rgba(43, 65, 65, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px 4px 24px 4px;
    border: 1px solid rgba(232, 228, 221, 0.1);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.card-pos-1 { margin-top: 0; margin-left: 0; }
.card-pos-2 { margin-top: 4vh; margin-left: 2vw; border-radius: 4px 24px 4px 24px; }
.card-pos-3 { margin-top: 0; margin-left: -1vw; }
.card-pos-4 { margin-top: 5vh; margin-left: 1vw; border-radius: 4px 24px 4px 24px; }
.card-pos-5 { margin-top: 2vh; margin-left: -2vw; }

.specimen-card:hover {
    border-color: var(--c-cyan);
    transform: translateX(2px);
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.12);
    animation: card-jitter 0.1s steps(2, end) 0s 1;
}

@keyframes card-jitter {
    0%   { transform: translateX(0); }
    33%  { transform: translateX(2px); }
    66%  { transform: translateX(-1px); }
    100% { transform: translateX(2px); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--c-text);
    line-height: 1.2;
}

.card-id {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--c-text-dim);
    white-space: nowrap;
}

.card-id em {
    font-style: normal;
    color: var(--c-chloro);
}

.card-body {
    font-size: 0.95rem;
    color: var(--c-text-dim);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.card-footer {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-blue);
    padding: 3px 8px;
    border: 1px solid rgba(27, 108, 168, 0.3);
    border-radius: 2px;
    background: rgba(27, 108, 168, 0.06);
}

.card-tag:last-child {
    color: var(--c-ember);
    border-color: rgba(196, 69, 54, 0.3);
    background: rgba(196, 69, 54, 0.06);
}

/* ------------------------------------------------------------
   ENTRY 4 — FIELD NOTES
   ------------------------------------------------------------ */
.entry-notes {
    clip-path: polygon(0 0, 35% 4vh, 65% 0, 100% 3vh, 100% 100%, 0 calc(100% - 2vh));
    background:
        linear-gradient(180deg, rgba(18, 32, 34, 0.92), rgba(20, 36, 38, 0.88)),
        radial-gradient(ellipse at 40% 70%, rgba(126, 161, 107, 0.08), transparent 55%);
    padding-top: clamp(8rem, 14vh, 11rem);
    padding-bottom: clamp(8rem, 14vh, 11rem);
}

.notes-column {
    max-width: 60%;
    border-left: 1px solid rgba(196, 69, 54, 0.3);
    padding-left: 2rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .notes-column { max-width: 100%; }
}

.note {
    margin-bottom: 2.5rem;
    position: relative;
}

.note::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 0.4rem;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-ember);
    opacity: 0.75;
}

.note-stamp {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--c-text-dim);
    margin-bottom: 0.5rem;
}

.note-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--c-text);
}

.word-glitch {
    display: inline-block;
    position: relative;
    color: inherit;
    transition: color 0.1s ease;
}

.word-glitch.is-glitching {
    animation: word-glitch 0.2s steps(3, end);
}

@keyframes word-glitch {
    0%   { transform: translate(0, 0); color: var(--c-text); text-shadow: none; }
    33%  { transform: translate(-1px, 0); color: var(--c-cyan); text-shadow: 1px 0 var(--c-magenta); }
    66%  { transform: translate(1px, 0); color: var(--c-magenta); text-shadow: -1px 0 var(--c-cyan); }
    100% { transform: translate(0, 0); color: inherit; text-shadow: none; }
}

.pull-quote {
    position: relative;
    margin: 3rem 0 3rem 1rem;
    padding-left: 2rem;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.35;
    color: var(--c-ember);
    letter-spacing: -0.01em;
    max-width: 28ch;
}

.pull-brace {
    position: absolute;
    left: -1.2rem;
    top: -1.2rem;
    font-family: var(--font-mono);
    font-size: 4rem;
    color: var(--c-blue);
    opacity: 0.2;
    line-height: 1;
    pointer-events: none;
}

/* ------------------------------------------------------------
   ENTRY 5 — SIGNAL
   ------------------------------------------------------------ */
.entry-signal {
    clip-path: polygon(0 0, 25% 4vh, 55% 1vh, 100% 3vh, 100% 100%, 0 100%);
    background: var(--c-bg-deep);
    padding-top: clamp(8rem, 16vh, 12rem);
    padding-bottom: clamp(5rem, 10vh, 8rem);
    min-height: 100vh;
}

.entry-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.6'/></svg>");
    opacity: 0.035;
    animation: noise-flicker 3s steps(6, end) infinite;
    mix-blend-mode: overlay;
}

@keyframes noise-flicker {
    0%, 100% { opacity: 0.02; }
    50%      { opacity: 0.05; }
}

.signal-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.signal-prompt {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    line-height: 1.4;
    color: var(--c-text);
    margin: 2rem 0 3rem;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--c-chloro);
    width: 0;
    letter-spacing: 0.01em;
}

.signal-prompt.is-typing {
    animation:
        typewriter-signal 2.8s steps(36, end) forwards,
        blink 0.8s step-end infinite 3s;
}

@keyframes typewriter-signal {
    from { width: 0; }
    to   { width: 32ch; }
}

.signal-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto 2rem;
    border-bottom: 1px solid var(--c-chloro);
    padding: 0.6rem 0;
}

.prompt-caret {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--c-chloro);
    font-weight: 700;
}

.signal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--c-text);
    letter-spacing: 0.04em;
    padding: 0.2rem 0;
    caret-color: var(--c-chloro);
}

.signal-input::placeholder { color: rgba(154, 172, 164, 0.5); }

.prompt-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--c-text-dim);
    text-transform: uppercase;
    opacity: 0.7;
}

.prompt-hint em {
    font-style: normal;
    color: var(--c-ember);
    font-weight: 600;
}

@media (max-width: 640px) {
    .prompt-hint { display: none; }
}

.signal-confirm {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--c-chloro);
    letter-spacing: 0.08em;
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

.signal-confirm.is-visible {
    opacity: 1;
    height: auto;
    margin: 1.5rem 0 0;
}

.signal-footer {
    margin-top: 5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    opacity: 0.7;
}

.footer-sep { color: var(--c-ember); }

/* ------------------------------------------------------------
   GLOBAL GLITCH STATE (hero section)
   ------------------------------------------------------------ */
.entry-hero.is-glitching {
    animation: hero-shake 0.08s steps(2, end);
    filter: hue-rotate(90deg);
    transition: filter 0.04s ease;
}

@keyframes hero-shake {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(3px, -1px); }
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .analysis-columns { grid-template-columns: 1fr; gap: 2rem; }
    .analysis-col--right { margin-top: 0; }
    .card-pos-1, .card-pos-2, .card-pos-3, .card-pos-4, .card-pos-5 {
        margin-left: 0;
        margin-top: 0;
    }
}

@media (max-width: 540px) {
    .entry-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-meta { flex-direction: column; gap: 0.5rem; }
}

/* Will-change hints for glitch animations */
.glitch-target,
.specimen-card,
.word-glitch {
    will-change: transform, filter;
    contain: layout;
}
