/* ============================================
   PORTFOLIO — DOSSIER D'ENQUÊTE — Jimmy
   ============================================ */

:root {
  --kraft: #e8ddc4;
  --kraft-dark: #d4c7a8;
  --cream: #f4ead3;
  --cream-light: #faf4e2;
  --ink: #1a1612;
  --ink-soft: #2d2620;
  --ink-faded: #5a4f42;
  --thread: #c8281e;
  --thread-deep: #8b1a12;
  --thread-glow: #ff3a2a;
  --admin-blue: #2a4a6b;
  --stamp-red: #a8231c;
  --paper-shadow: rgba(40, 30, 15, 0.18);
  --paper-shadow-strong: rgba(40, 30, 15, 0.32);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  background: var(--kraft);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><defs><filter id='s'><feGaussianBlur stdDeviation='0.4'/></filter></defs><g filter='url(%23s)'><circle cx='15' cy='15' r='9' fill='rgba(244,234,211,0.15)' stroke='%231a1612' stroke-width='2.2'/><circle cx='15' cy='15' r='9' fill='none' stroke='%23c8281e' stroke-width='0.8' opacity='0.7'/><line x1='21.5' y1='21.5' x2='32' y2='32' stroke='%231a1612' stroke-width='2.8' stroke-linecap='round'/><line x1='21.5' y1='21.5' x2='32' y2='32' stroke='%238b1a12' stroke-width='1.2' stroke-linecap='round'/><circle cx='12' cy='12' r='1.5' fill='rgba(255,255,255,0.6)'/></g></svg>") 15 15, auto;
}

/* Crosshair / target cursor on interactive elements */
a, button, .pin-node, .evidence, .fiche, .tl-card, .channel, .chapter-dot, .intro-skip, [role="button"] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g><circle cx='20' cy='20' r='11' fill='none' stroke='%23c8281e' stroke-width='1.4'/><circle cx='20' cy='20' r='2' fill='%23c8281e'/><line x1='20' y1='4' x2='20' y2='12' stroke='%23c8281e' stroke-width='1.4' stroke-linecap='round'/><line x1='20' y1='28' x2='20' y2='36' stroke='%23c8281e' stroke-width='1.4' stroke-linecap='round'/><line x1='4' y1='20' x2='12' y2='20' stroke='%23c8281e' stroke-width='1.4' stroke-linecap='round'/><line x1='28' y1='20' x2='36' y2='20' stroke='%23c8281e' stroke-width='1.4' stroke-linecap='round'/><circle cx='20' cy='20' r='11' fill='none' stroke='%231a1612' stroke-width='0.5' opacity='0.5'/></g></svg>") 20 20, crosshair;
}

/* Evidence card, fiche, timeline card, channel — stamp cursor (tampon à main) */
.evidence, .evidence-hoverable, .fiche, .tl-card, .channel, .btn-stamp {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g><circle cx='20' cy='20' r='11' fill='none' stroke='%23c8281e' stroke-width='1.4'/><circle cx='20' cy='20' r='2' fill='%23c8281e'/><line x1='20' y1='4' x2='20' y2='12' stroke='%23c8281e' stroke-width='1.4' stroke-linecap='round'/><line x1='20' y1='28' x2='20' y2='36' stroke='%23c8281e' stroke-width='1.4' stroke-linecap='round'/><line x1='4' y1='20' x2='12' y2='20' stroke='%23c8281e' stroke-width='1.4' stroke-linecap='round'/><line x1='28' y1='20' x2='36' y2='20' stroke='%23c8281e' stroke-width='1.4' stroke-linecap='round'/><circle cx='20' cy='20' r='11' fill='none' stroke='%231a1612' stroke-width='0.5' opacity='0.5'/></g></svg>") 20 20, pointer;
}

/* Pen/quill cursor on form inputs — inline feather (downsized) */
input, textarea, select {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 36 36'><path fill='%23D99E82' d='M5.367 27.603C4 22 4.655 18.919 5.433 16.861C6.8 13.24 16.699 5.169 23.8 2.637C25.678 1.967 31.62 1 35 1c.589 2.332-1.174 6.717-1.62 7.518c-1.009 1.81-3.564 4.273-8.646 9.482c-.252.258-5.119-.46-5.376-.191c-.283.296 4.044 1.579 3.755 1.889c-.738.79-1.495 1.624-2.268 2.507c-.172.196-8.311-.923-8.484-.722c-.232.27 7.501 1.862 7.266 2.14c-.645.765-1.299 1.564-1.959 2.397c-1.725 2.178-12.301 1.583-12.301 1.583z'/><path fill='%23C1694F' d='M4.048 29.644c-.811-.558-1.541-4.073-.936-4.404c.738-.402.686.835 2.255 2.362c1.569 1.528 6.47.913 7.708 1.326c1.363.455-6.385 2.533-9.027.716z'/><path fill='%23662113' d='M35.088 1.514A3.85 3.85 0 0 0 35 1c-.378 0-.792.014-1.225.036c-3.438.178-8.307 1.006-9.975 1.601c-.345.123-.702.27-1.059.418c-.478.198-.964.416-1.459.654c.356 1.481 1.126 3.144 1.807 4.013a72.185 72.185 0 0 0-4.836 4.115C12.598 17.085 8.232 22.709 5.248 27.079c.04.174.076.344.12.524c0 0 .219.012.589.026c1.482-2.288 5.703-8.239 13.194-14.841a91.61 91.61 0 0 1 5.13-4.195c1.745.787 5.228 1.597 7.487 2.087c.322-.369.606-.712.849-1.028c.316-.412.569-.785.763-1.134c.415-.746 1.969-4.594 1.708-7.004z'/><path fill='%23C1694F' d='M35 1c-.369 0-.751-.003-1.138-.008c-3.915 1.874-7.509 4.194-10.772 6.73c-.68-.87-1.451-2.532-1.807-4.013a42.574 42.574 0 0 0-4.484 2.539c.309 1.911.852 4.377 1.455 5.589C6.827 22.441.638 34.605.553 34.776a.5.5 0 0 0 .895.448c.119-.238 12.144-23.883 33.659-33.72A7.693 7.693 0 0 0 35 1z'/></svg>") 2 28, text;
}

/* Pin node — special magnifier pin cursor */
.pin-node {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g><circle cx='20' cy='20' r='14' fill='rgba(200,40,30,0.12)' stroke='%23c8281e' stroke-width='1.8'/><circle cx='20' cy='20' r='14' fill='none' stroke='%238b1a12' stroke-width='0.5' stroke-dasharray='2 2'/><circle cx='20' cy='20' r='3' fill='%23c8281e'/><circle cx='20' cy='20' r='1' fill='%23f4ead3'/></g></svg>") 20 20, pointer;
}

/* Paper texture overlay — fixed across whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* Soft vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(30, 20, 10, 0.18) 100%);
}

h1, h2, h3, h4 {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-weight: normal;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.app-root {
  position: relative;
  z-index: 5;
}

/* ---------- THREADS SVG ---------- */
.threads-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.thread-path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25));
  opacity: 0.85;
  transition: stroke-width 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.thread-path.highlight {
  stroke: var(--thread-glow);
  stroke-width: 3.2;
  filter: drop-shadow(0 0 6px rgba(255, 58, 42, 0.85)) drop-shadow(0 0 14px rgba(200, 40, 30, 0.6));
  opacity: 1;
}

/* ---------- SECTIONS ---------- */
section {
  position: relative;
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 5;
}

.section-label {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ink-faded);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink-faded);
  padding-bottom: 6px;
  margin-bottom: 28px;
  display: inline-block;
}

.section-title {
  font-family: 'Special Elite', monospace;
  font-size: 52px;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
}

.section-sub {
  font-size: 13px;
  color: var(--ink-faded);
  margin-bottom: 60px;
  max-width: 640px;
}

/* ---------- PIN NODE ---------- */
.pin-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e94238 0%, var(--thread) 40%, var(--thread-deep) 100%);
  box-shadow:
    0 0 0 1px rgba(80, 10, 5, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.45),
    inset -1px -2px 3px rgba(0, 0, 0, 0.35),
    inset 2px 2px 3px rgba(255, 180, 170, 0.4);
  cursor: pointer;
  z-index: 6;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.pin-node::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 200, 190, 0.9), transparent 60%);
  pointer-events: none;
}

.pin-node:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

.pin-node.active {
  animation: pin-pulse 1.2s ease infinite;
}

@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(80, 10, 5, 0.8), 0 2px 4px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(200, 40, 30, 0.8); }
  50% { box-shadow: 0 0 0 1px rgba(80, 10, 5, 0.8), 0 2px 4px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(200, 40, 30, 0); }
}

/* ---------- STAMPS ---------- */
.stamp {
  display: inline-block;
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--stamp-red);
  border: 2.5px solid var(--stamp-red);
  padding: 6px 14px;
  transform: rotate(-6deg);
  opacity: 0.88;
  text-transform: uppercase;
  position: relative;
  background: transparent;
  text-shadow: 0.5px 0 0 var(--stamp-red);
  filter: url(#roughen);
}

.stamp.blue { color: var(--admin-blue); border-color: var(--admin-blue); text-shadow: 0.5px 0 0 var(--admin-blue); }
.stamp.ink { color: var(--ink); border-color: var(--ink); text-shadow: none; }
.stamp.large { font-size: 18px; padding: 10px 22px; border-width: 3.5px; letter-spacing: 0.3em; }

/* ---------- PAPER CARD ---------- */
.paper {
  background: var(--cream);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.08),
    0 8px 18px var(--paper-shadow),
    inset 0 0 70px rgba(180, 150, 100, 0.1);
  position: relative;
  padding: 28px;
}

.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='f'><feTurbulence baseFrequency='0.9' numOctaves='1'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.22  0 0 0 0 0.12  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ---------- TAPE ---------- */
.tape {
  position: absolute;
  width: 90px;
  height: 24px;
  background: rgba(220, 210, 170, 0.55);
  border-left: 1px dashed rgba(100, 90, 60, 0.3);
  border-right: 1px dashed rgba(100, 90, 60, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 2;
}

.tape::before, .tape::after {
  content: '';
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(200, 180, 130, 0.3) 0 2px, transparent 2px 4px);
}
.tape::before { left: 0; }
.tape::after { right: 0; }

/* ---------- BUTTONS ---------- */
.btn-stamp {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--kraft);
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 3px 3px 0 var(--thread-deep);
}

.btn-stamp:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--thread-deep);
}

.btn-stamp:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--thread-deep);
}

/* ---------- FIELD / FORM ---------- */
.field {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(90, 79, 66, 0.4);
}
.field-label {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-faded);
  text-transform: uppercase;
  width: 130px;
  flex-shrink: 0;
}
.field-value {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--kraft-dark); }
::-webkit-scrollbar-thumb { background: var(--ink); }

/* ---------- INTRO ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #0d0a07;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(60, 40, 20, 0.4), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(40, 20, 10, 0.5), transparent 60%);
  animation: intro-bg-pulse 6s ease-in-out infinite;
}

@keyframes intro-bg-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* floating particles (dust in lamplight) */
.intro-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.intro-dust span {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(230, 200, 150, 0.5);
  border-radius: 50%;
  animation: dust-float 12s linear infinite;
}

@keyframes dust-float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

.intro-dossier {
  position: relative;
  width: min(560px, 92vw);
  background: var(--kraft);
  padding: 50px 44px 40px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 5px 15px rgba(0, 0, 0, 0.5);
  animation: dossier-enter 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  transform: rotate(-1.2deg);
}

@keyframes dossier-enter {
  0% { opacity: 0; transform: rotate(-15deg) translateY(120px) scale(0.7); }
  60% { opacity: 1; transform: rotate(2deg) translateY(-10px) scale(1.02); }
  80% { transform: rotate(-2deg) translateY(3px) scale(0.99); }
  100% { opacity: 1; transform: rotate(-1.2deg) translateY(0) scale(1); }
}

.intro-stamp-wrap {
  position: absolute;
  top: 18px;
  right: -16px;
  animation: stamp-slam 0.5s cubic-bezier(0.3, 1.5, 0.6, 1) 1.6s both;
  transform-origin: center;
}

@keyframes stamp-slam {
  0% { opacity: 0; transform: rotate(10deg) scale(3); }
  50% { opacity: 1; transform: rotate(8deg) scale(0.82); }
  75% { transform: rotate(9deg) scale(1.08); }
  100% { opacity: 0.88; transform: rotate(8deg) scale(1); }
}

.intro-field-reveal {
  opacity: 0;
  animation: intro-field-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes intro-field-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--thread) 0%, var(--thread-glow) 50%, var(--thread-deep) 100%);
  z-index: 200;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(200, 40, 30, 0.6);
}

/* chapter marker floating on left */
.chapter-marker {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}
.chapter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink-faded);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.chapter-dot:hover { border-color: var(--thread); transform: scale(1.3); }
.chapter-dot.active {
  background: var(--thread);
  border-color: var(--thread-deep);
  box-shadow: 0 0 0 3px rgba(200, 40, 30, 0.25);
}
.chapter-dot .label {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  background: var(--cream);
  padding: 3px 8px;
  box-shadow: 2px 2px 0 var(--thread-deep);
}
.chapter-dot:hover .label, .chapter-dot.active .label { opacity: 1; }

/* Shake animation for pin hover */
@keyframes pin-shake {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-50%, -50%) rotate(-8deg); }
  75% { transform: translate(-50%, -50%) rotate(8deg); }
}

/* Stamp slam for hover on cards */
@keyframes stamp-apply {
  0% { transform: scale(3) rotate(-20deg); opacity: 0; }
  50% { transform: scale(0.85) rotate(-4deg); opacity: 1; }
  100% { transform: scale(1) rotate(-6deg); opacity: 0.88; }
}

.stamp.apply-on-hover {
  opacity: 0;
  transition: opacity 0.3s;
}
.fiche:hover .stamp.apply-on-hover,
.evidence:hover .stamp.apply-on-hover {
  animation: stamp-apply 0.4s cubic-bezier(0.3, 1.5, 0.6, 1) forwards;
}

/* Page turn transition for intro → content */
.page-reveal {
  animation: page-slide-in 1s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes page-slide-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover effect for evidence - pick up animation */
.evidence-hoverable {
  cursor: pointer;
}
.evidence-hoverable::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 0; height: 0;
  background: radial-gradient(ellipse, rgba(0,0,0,0.25), transparent 70%);
  transition: all 0.35s cubic-bezier(0.2,0.9,0.3,1);
}
.evidence-hoverable:hover::after {
  width: 85%; height: 18px;
}

/* Expanded evidence state */
.evidence.expanded {
  transform: rotate(0deg) scale(1.06) !important;
  z-index: 20;
  box-shadow: 0 30px 50px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* Expanded fiche & timeline cards — same straighten + lift effect */
.fiche.expanded {
  transform: rotate(0deg) translateY(-4px) scale(1.03) !important;
  z-index: 20;
  box-shadow: 0 22px 40px var(--paper-shadow-strong), 0 3px 6px rgba(0,0,0,0.18) !important;
}
.tl-card.expanded {
  transform: rotate(0deg) translateY(-3px) scale(1.02) !important;
  z-index: 20;
  box-shadow: 0 20px 36px var(--paper-shadow-strong), 0 3px 6px rgba(0,0,0,0.15) !important;
}

/* ---------- DÉPLIANT : panneau de détails ---------- */
/* Uses grid-template-rows 0fr → 1fr trick for smooth unknown-height transition */
.details-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.9, 0.3, 1),
              margin 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
  margin-top: 0;
}
.evidence.expanded .details-panel,
.fiche.expanded .details-panel,
.tl-card.expanded .details-panel {
  grid-template-rows: 1fr;
  margin-top: 16px;
}
.details-panel > .details-inner {
  overflow: hidden;
  min-height: 0;
}
.details-label {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-faded);
  text-transform: uppercase;
  text-align: center;
  padding: 10px 0 12px;
  margin-bottom: 6px;
  border-top: 1px dashed var(--ink-faded);
  border-bottom: 1px dashed rgba(90, 79, 66, 0.4);
}
.details-row {
  display: flex;
  gap: 12px;
  padding: 6px 2px;
  font-size: 12px;
  line-height: 1.55;
  border-bottom: 1px dotted rgba(90, 79, 66, 0.22);
}
.details-row:last-of-type { border-bottom: none; }
.details-key {
  flex: 0 0 34%;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--admin-blue);
  padding-top: 1px;
}
.details-val {
  flex: 1;
  color: var(--ink-soft);
  font-size: 12.5px;
}
.details-hint {
  margin-top: 10px;
  text-align: center;
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ink-faded);
  opacity: 0.7;
}

/* Typewriter cursor already defined elsewhere */

/* Card hover pins shake */
.tl-card:hover .pin-node,
.fiche:hover .pin-node {
  animation: pin-shake 0.4s ease;
}

/* Hero floating stamps */
.floating-stamp {
  animation: float-rot 6s ease-in-out infinite;
}
.floating-stamp.delay-1 { animation-delay: -2s; }
.floating-stamp.delay-2 { animation-delay: -4s; }

@keyframes float-rot {
  0%, 100% { transform: translateY(0) rotate(var(--r, 6deg)); }
  50% { transform: translateY(-6px) rotate(calc(var(--r, 6deg) + 2deg)); }
}

/* Crosshair cursor target for pins */
.pin-crosshair {
  position: absolute;
  inset: -14px;
  border: 1px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.25s;
}
.pin-node:hover + .pin-crosshair,
.pin-node.active + .pin-crosshair {
  border-color: rgba(200, 40, 30, 0.3);
  transform: scale(1.4);
}

/* Map lines SVG in header */
.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--thread) 50%, transparent);
  opacity: 0.4;
  animation: scan 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0%, 100% { top: 10%; opacity: 0.2; }
  50% { top: 90%; opacity: 0.5; }
}

.intro-skip {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: 1px solid rgba(232, 221, 196, 0.4);
  color: rgba(232, 221, 196, 0.7);
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 10;
}
.intro-skip:hover { color: var(--kraft); border-color: var(--kraft); }

/* ---------- SUSPECT ---------- */
.suspect-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.polaroid {
  background: #f8f3e0;
  padding: 14px 14px 60px;
  box-shadow: 0 8px 24px var(--paper-shadow-strong), 0 2px 4px rgba(0,0,0,0.1);
  transform: rotate(-3deg);
  position: relative;
  width: 300px;
  margin: 40px auto 0;
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(45deg, #3a3028 0 8px, #2e251f 8px 16px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.polaroid-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='1.2' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.25'/></svg>");
}

.polaroid-mugshot {
  position: relative;
  z-index: 2;
  font-family: 'Special Elite', monospace;
  color: #e0d5b8;
  text-align: center;
  letter-spacing: 0.15em;
}

.polaroid-mugshot .silhouette {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8a7a66 0%, #5a4c3e 100%);
  margin: 0 auto 12px;
  box-shadow: inset 0 -20px 30px rgba(0,0,0,0.5);
  position: relative;
}
.polaroid-mugshot .silhouette::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 60px;
  background: linear-gradient(180deg, #6a5a48, #3a2e24);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.polaroid-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  color: var(--ink);
}

.polaroid-caption .num {
  font-size: 10px;
  color: var(--ink-faded);
  letter-spacing: 0.3em;
  margin-top: 4px;
}

.polaroid .tape {
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.id-file {
  position: relative;
}
.id-file-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.id-file h2 {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
}
.id-file .subname {
  font-size: 13px;
  color: var(--ink-faded);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.skill-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  padding: 6px 12px;
  background: var(--kraft-dark);
  border: 1px solid var(--ink);
  color: var(--ink);
  letter-spacing: 0.05em;
}
.skill-tag.highlight {
  background: var(--thread);
  color: var(--cream-light);
  border-color: var(--thread-deep);
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 2px dashed var(--ink-faded);
  transform: translateX(-1px);
}
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}
.timeline-item.right { flex-direction: row-reverse; }
.timeline-item .card-wrap {
  width: calc(50% - 60px);
  position: relative;
}
.timeline-item.left .card-wrap { padding-right: 30px; }
.timeline-item.right .card-wrap { padding-left: 30px; }

.timeline-date {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--kraft);
  font-family: 'Special Elite', monospace;
  font-size: 15px;
  letter-spacing: 0.2em;
  padding: 8px 18px;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.tl-card {
  background: var(--cream);
  padding: 22px 24px 20px;
  box-shadow: 0 4px 14px var(--paper-shadow), 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
}
.tl-card .pin-node { top: -9px; left: 28px; }
.timeline-item.right .tl-card .pin-node { left: auto; right: 28px; }
.tl-card h3 { font-size: 22px; margin-bottom: 4px; }
.tl-card .location { font-size: 12px; color: var(--ink-faded); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 10px; }
.tl-card p { font-size: 13px; line-height: 1.6; }
.tl-card .status-row { display: flex; justify-content: flex-end; margin-top: 14px; }

.tl-card.current {
  border: 1px solid var(--thread);
}
.status-live {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--thread);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--thread);
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* ---------- EXPERIENCES ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}

.fiche {
  background: var(--cream);
  padding: 24px 26px;
  box-shadow: 0 6px 18px var(--paper-shadow), 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.3s;
}
.fiche:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 0 12px 28px var(--paper-shadow-strong), 0 2px 3px rgba(0,0,0,0.15);
}

.fiche-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}
.fiche-num {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-faded);
}
.fiche-period {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 3px 8px;
}
.fiche h3 { font-size: 20px; line-height: 1.15; margin-bottom: 4px; }
.fiche .location { font-size: 11px; color: var(--admin-blue); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 14px; font-weight: bold; }
.fiche p { font-size: 13px; line-height: 1.65; margin-bottom: 14px; }
.fiche .pin-node { top: -9px; right: 22px; }

.fiche-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.fiche-skills .skill-tag { font-size: 10px; padding: 3px 8px; }

/* ---------- EVIDENCE ---------- */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.evidence {
  background: var(--cream);
  padding: 22px 22px 24px;
  position: relative;
  box-shadow: 0 6px 16px var(--paper-shadow), 0 1px 2px rgba(0,0,0,0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.35s;
  transform-origin: center;
}
.evidence:nth-child(3n+1) { transform: rotate(-1.2deg); }
.evidence:nth-child(3n+2) { transform: rotate(0.8deg); }
.evidence:nth-child(3n+3) { transform: rotate(-0.4deg); }
.evidence:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.02);
  box-shadow: 0 20px 36px var(--paper-shadow-strong), 0 2px 6px rgba(0,0,0,0.2);
  z-index: 7;
}

.evidence-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.evidence-piece-num {
  font-family: 'Special Elite', monospace;
  font-size: 22px;
  color: var(--thread-deep);
  letter-spacing: 0.08em;
}
.evidence-year {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: var(--ink-faded);
  letter-spacing: 0.2em;
}
.evidence h3 { font-size: 22px; line-height: 1.1; margin-bottom: 12px; }
.evidence p { font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; color: var(--ink-soft); }

.evidence-tech-label {
  font-family: 'Special Elite', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ink-faded);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.evidence-tech { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.evidence-tech .skill-tag { font-size: 9.5px; padding: 2px 7px; }

.evidence-verdict {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink);
  border-top: 1px solid var(--ink-faded);
  padding-top: 10px;
  text-transform: uppercase;
}
.evidence-verdict strong { color: var(--thread-deep); }

.evidence .pin-node { top: -9px; left: 50%; }
.evidence .corner-stamp {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 9px;
  padding: 3px 7px;
  transform: rotate(-4deg);
}

/* ---------- CONTACT ---------- */
.telegram {
  background: var(--cream-light);
  padding: 40px 44px;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 10px 30px var(--paper-shadow-strong);
  transform: rotate(-0.5deg);
}
.telegram::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--thread) 0 12px, transparent 12px 20px, var(--admin-blue) 20px 32px, transparent 32px 40px);
  opacity: 0.85;
}
.telegram::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--thread) 0 12px, transparent 12px 20px, var(--admin-blue) 20px 32px, transparent 32px 40px);
  opacity: 0.85;
}

.tg-head {
  text-align: center;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
  margin: 10px 0 24px;
}
.tg-head h3 { font-size: 30px; letter-spacing: 0.1em; }
.tg-head .tg-meta {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faded);
  margin-top: 4px;
}

.tg-field {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px dashed var(--ink-faded);
  padding: 10px 0;
}
.tg-field label {
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faded);
  text-transform: uppercase;
  width: 120px;
  flex-shrink: 0;
}
.tg-field input, .tg-field textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
  resize: none;
}
.tg-field textarea { min-height: 80px; }

.channels {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.channel {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-decoration: none;
  border: 1px dashed var(--ink-faded);
  padding: 8px 14px;
  text-transform: uppercase;
  background: var(--kraft);
  transition: all 0.2s;
  cursor: pointer;
}
.channel:hover {
  background: var(--ink);
  color: var(--kraft);
  border-color: var(--ink);
  border-style: solid;
}
.channel .ch-label {
  font-size: 8px;
  color: var(--ink-faded);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 2px;
}
.channel:hover .ch-label { color: var(--kraft-dark); }

/* ---------- NAV ---------- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: linear-gradient(180deg, rgba(232, 221, 196, 0.95), rgba(232, 221, 196, 0.75) 70%, transparent);
  backdrop-filter: blur(2px);
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.top-nav .brand { color: var(--ink); }
.top-nav .brand strong { color: var(--thread-deep); }
.top-nav-links { display: flex; gap: 22px; }
.top-nav-links a {
  color: var(--ink-faded);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.top-nav-links a:hover { color: var(--ink); }
.top-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 2px;
  background: var(--thread);
  transition: width 0.25s;
}
.top-nav-links a:hover::after { width: 100%; }

/* ---------- FOOTER ---------- */
.footer {
  padding: 60px 48px 40px;
  text-align: center;
  font-family: 'Special Elite', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faded);
  text-transform: uppercase;
  border-top: 1px dashed var(--ink-faded);
  max-width: 1280px;
  margin: 60px auto 0;
}

/* ---------- TYPEWRITER CURSOR ---------- */
.tw-cursor::after {
  content: '▊';
  display: inline-block;
  color: var(--thread);
  animation: blink 0.8s step-end infinite;
  margin-left: 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  section { padding: 80px 24px; }
  .section-title { font-size: 36px; }
  .suspect-grid { grid-template-columns: 1fr; gap: 40px; }
  .exp-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item.right { flex-direction: column; align-items: flex-start; }
  .timeline-item .card-wrap { width: 100%; padding-left: 50px !important; padding-right: 0 !important; }
  .timeline-date { left: 20px; transform: translateX(-50%) translateY(-40px); }
  .top-nav-links { display: none; }
  .threads-svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ WATERDROP — liquid glass lens ============ */
#waterdrop {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  border-radius: 50%;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
#waterdrop.is-visible { opacity: 1; }

/* the clone wrapper — this is what gets distorted */
#waterdrop .wd-clone-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  filter: url(#waterdrop-filter);
  /* falloff so the edges look refracted, not cut */
  -webkit-mask: radial-gradient(circle at center,
    black 55%,
    rgba(0,0,0,0.9) 70%,
    rgba(0,0,0,0.7) 85%,
    rgba(0,0,0,0.5) 100%);
  mask: radial-gradient(circle at center,
    black 55%,
    rgba(0,0,0,0.9) 70%,
    rgba(0,0,0,0.7) 85%,
    rgba(0,0,0,0.5) 100%);
}

/* subtle warm glass tint */
#waterdrop .wd-tint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 245, 220, 0.10), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(60, 30, 15, 0.08), transparent 55%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* dark glass rim + outer soft shadow */
#waterdrop .wd-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1.5px rgba(26, 22, 18, 0.55),
    inset 0 0 20px rgba(40, 25, 15, 0.18),
    inset 0 -6px 14px rgba(60, 30, 15, 0.22),
    inset 0 6px 14px rgba(255, 240, 210, 0.25),
    0 10px 30px rgba(20, 10, 5, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.3);
}

/* specular highlight like a waterdrop */
#waterdrop .wd-spec {
  position: absolute;
  top: 14%;
  left: 22%;
  width: 28%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.25) 55%,
    transparent 75%);
  filter: blur(1px);
  transform: rotate(-22deg);
  pointer-events: none;
}

@media (pointer: coarse),
       (prefers-reduced-motion: reduce) {
  #waterdrop { display: none; }
}
#magnifier-lens {
  position: fixed;
  top: 0; left: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: hidden;
  /* waterdrop soft shadow + inner rim */
  box-shadow:
    0 10px 20px rgba(20, 10, 5, 0.45),
    0 3px 7px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1.5px rgba(26, 22, 18, 0.8),
    inset 0 0 0 3px rgba(244, 234, 211, 0.3),
    inset 0 -6px 16px rgba(40, 20, 10, 0.25),
    inset 0 6px 16px rgba(255, 240, 210, 0.15);
  transform: translate(-9999px, -9999px);
  backdrop-filter: none;
  will-change: transform;
  filter: saturate(1.08) contrast(1.02);
}

#magnifier-lens .lens-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

/* glass rim — dark circle */
#magnifier-lens .lens-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(26, 22, 18, 0.9),
    inset 0 0 0 4px rgba(200, 40, 30, 0.15),
    inset 0 0 18px rgba(0, 0, 0, 0.35);
}

/* specular highlight — top-left like a waterdrop */
#magnifier-lens .lens-highlight {
  position: absolute;
  top: 7px;
  left: 11px;
  width: 28px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255,255,255,0.85), rgba(255,255,255,0.15) 55%, transparent 70%);
  filter: blur(1px);
  pointer-events: none;
  transform: rotate(-20deg);
}

/* secondary refraction dot */
#magnifier-lens .lens-shadow {
  position: absolute;
  bottom: 8px;
  right: 11px;
  width: 14px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.4), transparent 70%);
  filter: blur(1.5px);
  pointer-events: none;
}

/* Hide on touch */
@media (pointer: coarse) {
  #magnifier-lens { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #magnifier-lens { display: none; }
}
