/* ========================================= */
/* LOCAL FONT SETUP                          */
/* ========================================= */

/* Helvetica Neue (Fully Mapped Weights) */
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueLightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueMediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueHeavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueHeavyItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueBlack.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('fonts/HelveticaNeueBlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}

/* IBM Plex Sans (Variable Fonts) */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

/* Inter (Variable Fonts) */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

/* ========================================= */
/* BASE STYLES                               */
/* ========================================= */

html {
  --close-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M8 8 L24 24 M24 8 L8 24' stroke='%239E4242' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 16 16, pointer;
  background-color: #111111; /* Fixes the white scroll bounce */
}

@property --float-x { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --float-y { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --float-rotate { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ambient-light { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --ambient-red { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --fog-pulse { syntax: "<number>"; inherits: false; initial-value: 0; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  font-weight: 400; /* Forces variable fonts to render correctly */
  background: #111111;
  color: #F5F5F5;
  animation: page-enter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

/* Global Headings Force Helvetica */
h1, h2, h3, h4, h5, h6, .logo {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.page-leaving {
  opacity: 0;
  transform: scale(0.985);
  filter: brightness(0.78);
  pointer-events: none;
}

.home-page {
  --edge-darkness: 0.62;
  --fog-opacity: 0.55;
  --fog-pulse: 0;
  --red-wash: 0.16;
  --spotlight-strength: 0.13;
  --ambient-light: 0;
  --ambient-red: 0;
  position: relative;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, calc(var(--spotlight-strength) + var(--ambient-light))), rgba(255, 255, 255, 0.025) 22%, transparent 48%),
    radial-gradient(circle at 50% 48%, rgba(158, 66, 66, calc(var(--red-wash) + var(--ambient-red))), transparent 34%),
    linear-gradient(155deg, #171515 0%, #0f1010 45%, #181210 100%);
  animation: page-enter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards, ambient-light-pulse 34s ease-in-out infinite alternate;
}

.home-page:has(.card:hover) {
  --edge-darkness: 0.74;
  --fog-opacity: 0.42;
  --red-wash: 0.1;
  --spotlight-strength: 0.09;
}

.home-page::before, .home-page::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
.home-page::before { z-index: 0; background: radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, var(--edge-darkness)) 100%), repeating-radial-gradient(circle at 18% 32%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px), repeating-radial-gradient(circle at 72% 64%, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 5px); background-size: auto, 9px 9px, 11px 11px; mix-blend-mode: soft-light; transition: background 0.35s ease; }
.home-page::after { z-index: 1; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), transparent 28%), radial-gradient(circle at 28% 70%, rgba(255, 255, 255, 0.045), transparent 24%); filter: blur(26px); opacity: calc(var(--fog-opacity) + var(--fog-pulse)); transform: scale(1); transition: opacity 0.35s ease; animation: ambient-fog-drift 42s ease-in-out infinite alternate; }

.home-page .home-title, .home-page .board { position: relative; z-index: 2; }

.nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-bottom: 1px solid #2a2a2a; animation: nav-pop 420ms cubic-bezier(0.16, 1, 0.3, 1) 80ms backwards; }
.logo { font-weight: 700; letter-spacing: 0.08em; }
.nav a { margin-left: 20px; text-decoration: none; color: #8A8A8A; transition: color 0.3s ease; }
.nav a:hover { color: #F5F5F5; }

/* Restored Clean Title Block With Perfect Symmetrical Grid */
.home-title { max-width: 1180px; margin: 0 auto; padding: 42px 40px 10px; text-align: center; }
.home-title h1 { 
  margin: 0; 
  font-size: clamp(48px, 8vw, 96px); 
  font-weight: 800; 
  line-height: 0.95; 
  letter-spacing: 0.08em; 
  word-spacing: normal; 
  text-shadow: 0 18px 80px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.08); 
  animation: title-settle 820ms cubic-bezier(0.16, 1, 0.3, 1) 100ms both; 
  
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(15px, 3vw, 30px);
}

.home-title h1 span:first-child { justify-self: end; }
.home-title h1 span:last-child { justify-self: start; }

.title-eye {
  height: clamp(50px, 8.5vw, 100px); 
  width: auto;
  filter: invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  transform: translateY(-5px); 
}

.case-kicker { 
  margin: 0 0 12px; 
  color: #c0a466; 
  font-family: "IBM Plex Sans", Inter, sans-serif; 
  font-size: 12px; 
  font-weight: 700; 
  letter-spacing: 0.18em; 
  text-transform: uppercase; 
  text-indent: 0.18em;
}
.case-summary { max-width: 620px; margin: 18px auto 0; color: rgba(245, 245, 245, 0.72); font-size: 15px; font-weight: 400; line-height: 1.6; }

/* SYMMETRICAL RESPONSIVE BOARD LAYOUT */
.board { 
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  flex: 1 1 auto; 
  position: relative; 
  max-width: 1120px; 
  width: 100%; 
  margin: 40px auto 40px auto; 
  padding: 0 34px; 
  box-sizing: border-box; 
  z-index: 2;
}

.board::after { content: ""; position: absolute; inset: 12px 28px 22px; z-index: 0; pointer-events: none; background: radial-gradient(circle at 50% 46%, rgba(158, 66, 66, 0.16), transparent 58%); opacity: 0.28; transition: opacity 0.35s ease; }
.board:has(.card:hover)::after { opacity: 0.5; }

.card { 
  --card-tilt: 0deg; 
  --float-x: 0px; 
  --float-y: 0px; 
  --float-rotate: 0deg; 
  position: relative; 
  z-index: 1; 
  width: 300px; 
  flex: 0 1 auto;
  padding: 24px 24px 32px; 
  background: #1a1a1a; 
  border: 1px solid #2a2a2a; 
  cursor: pointer; 
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease, opacity 0.35s ease; 
}

.home-page .card {
  color: #181818;
  background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.8), transparent 16%), repeating-radial-gradient(circle at 14% 26%, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 5px), repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 7px), linear-gradient(145deg, #f0f0ef, #d9dada);
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38), 0 2px 2px rgba(0, 0, 0, 0.18);
  filter: saturate(0.92) contrast(0.96);
  transform: translate3d(var(--float-x), var(--float-y), 0) rotate(calc(var(--card-tilt) + var(--float-rotate)));
  transform-origin: center top;
  animation: card-drift 31s ease-in-out infinite alternate;
  will-change: transform;
}
.home-page .card::before { content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd9d9 0 18%, #b84a4a 48%, #5d1515 100%); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.38), 0 0 10px rgba(158, 66, 66, 0.28); transform: translateX(-50%); }
.home-page .card h2, .home-page .card p { position: relative; }
.home-page .card h2 { margin: 5px 0 8px; font-size: 16px; font-weight: 700; line-height: 1.08; }
.home-page .card p { margin: 0; color: rgba(24, 24, 24, 0.68); font-size: 13px; font-weight: 400; line-height: 1.28; }
.case-tag { display: inline-flex; margin-top: 8px; color: #8a2d2d; font-family: "IBM Plex Sans", Inter, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 2px solid rgba(138, 45, 45, 0.34); }

.card:hover { z-index: 3; opacity: 1; transform: translate3d(var(--float-x), calc(var(--float-y) - 10px), 0) rotate(0deg) scale(1.05); border-color: #9E4242; }
.home-page .card:hover { box-shadow: 0 26px 52px rgba(0, 0, 0, 0.48), 0 6px 10px rgba(0, 0, 0, 0.2); border-color: rgba(195, 92, 84, 0.7); filter: saturate(1.08) contrast(1.08); }
.home-page .card.is-transitioning { z-index: 5; opacity: 1; pointer-events: none; transform: translate3d(var(--float-x), calc(var(--float-y) - 16px), 0) rotate(0deg) scale(1.16); filter: saturate(1.1) contrast(1.1); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.58), 0 12px 22px rgba(0, 0, 0, 0.25); transition-duration: 260ms; }
.board:has(.card:hover) .card:not(:hover) { opacity: 0.42; filter: saturate(0.72) contrast(0.88) blur(0.45px); }
.board:has(.card.is-transitioning) .card:not(.is-transitioning) { opacity: 0.22; filter: saturate(0.6) contrast(0.82) blur(0.8px); }

.card:nth-child(1) { --card-tilt: -1.6deg; animation-duration: 34s; animation-delay: -8s; }
.card:nth-child(2) { --card-tilt: 1.2deg; animation-duration: 39s; animation-delay: -17s; }
.card:nth-child(3) { --card-tilt: -0.8deg; animation-duration: 36s; animation-delay: -12s; }
.card:nth-child(4) { --card-tilt: 1.5deg; animation-duration: 41s; animation-delay: -22s; }
.card:nth-child(5) { --card-tilt: -1.2deg; animation-duration: 37s; animation-delay: -5s; }

@keyframes page-enter { from { opacity: 0; transform: scale(1.012); filter: brightness(0.8); } to { opacity: 1; transform: scale(1); filter: brightness(1); } }
@keyframes nav-pop { from { opacity: 0; transform: translate3d(0, -12px, 0) scale(0.985); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes title-settle { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.99); filter: blur(2px); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); } }
@keyframes card-drift { 0% { --float-x: -1px; --float-y: 0.5px; --float-rotate: -0.12deg; } 45% { --float-x: 1.5px; --float-y: -1.25px; --float-rotate: 0.14deg; } 100% { --float-x: -0.5px; --float-y: 1px; --float-rotate: -0.08deg; } }
@keyframes ambient-light-pulse { 0% { --ambient-light: -0.008; --ambient-red: -0.01; } 50% { --ambient-light: 0.012; --ambient-red: 0.006; } 100% { --ambient-light: -0.002; --ambient-red: 0.012; } }
@keyframes ambient-fog-drift { 0% { --fog-pulse: -0.025; transform: translate3d(0, 0, 0) scale(1); } 50% { --fog-pulse: 0.015; transform: translate3d(0.4%, -0.35%, 0) scale(1.035); } 100% { --fog-pulse: 0.005; transform: translate3d(-0.25%, 0.25%, 0) scale(1.02); } }

@media (prefers-reduced-motion: reduce) {
  .home-page, .home-page::after, .home-page .card, .home-page .home-title h1, .nav { animation: none; }
  body { animation: none; transition: opacity 160ms ease; }
  body.page-leaving { transform: none; filter: none; }
}

@media (hover: hover) and (pointer: fine) {
  .home-page, .home-page a, .home-page .card { cursor: none; }
  .custom-cursor, .cursor-trail { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0); transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease; z-index: 20; }
  .custom-cursor { width: 14px; height: 14px; border: 1px solid rgba(245, 245, 245, 0.62); background: rgba(245, 245, 245, 0.04); box-shadow: 0 0 18px rgba(245, 245, 245, 0.08); mix-blend-mode: difference; }
  .cursor-trail { width: 26px; height: 26px; border: 1px solid rgba(158, 66, 66, 0.2); background: rgba(158, 66, 66, 0.045); filter: blur(0.2px); z-index: 19; }
  .cursor-ready .custom-cursor, .cursor-ready .cursor-trail { opacity: 1; }
  .cursor-card-hover .custom-cursor { width: 30px; height: 30px; border-color: rgba(195, 92, 84, 0.82); background: rgba(195, 92, 84, 0.08); box-shadow: 0 0 24px rgba(195, 92, 84, 0.18); mix-blend-mode: normal; }
  .cursor-card-hover .cursor-trail { width: 42px; height: 42px; border-color: rgba(195, 92, 84, 0.22); background: rgba(195, 92, 84, 0.055); }
  @media (prefers-reduced-motion: reduce) { .cursor-trail { display: none; } }
}

/* ========================= */
/* SHARED CASE FILE PAGES */
/* ========================= */

.case-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(192, 164, 102, 0.08), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(158, 66, 66, 0.13), transparent 28%),
    linear-gradient(155deg, #111111 0%, #171514 52%, #0d0d0d 100%);
}

.case-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 44%, rgba(0, 0, 0, 0.66) 100%);
  background-size: 48px 48px, 48px 48px, auto;
  opacity: 0.74;
}

.case-page > :not(.zoom-overlay):not(.evidence-modal):not(.research-zoom-overlay) {
  position: relative;
  z-index: 1;
}

.case-page .nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 13, 13, 0.84);
  backdrop-filter: blur(12px);
}

.nav-subtitle {
  color: #9E4242;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-left: 8px;
}

.case-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 32px 34px;
}

.case-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #f3f0e8;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.case-hero p:not(.case-kicker) {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(245, 245, 245, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.case-meta-row span,
.status-strip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #d8c28a;
  font-family: "IBM Plex Sans", Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(216, 194, 138, 0.34);
  background: rgba(216, 194, 138, 0.055);
}

.log-trigger-btn {
 cursor: pointer;
 transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.log-trigger-btn:hover {
 background: rgba(216, 194, 138, 0.15);
 border-color: #d8c28a;
 color: #fff;
}

/* Inline evidence link */
.inline-evidence-link {
  color: #d8c28a;
  text-decoration: none;
  border-bottom: 1px dashed rgba(216, 194, 138, 0.4);
  transition: all 0.2s ease;
}

.inline-evidence-link:hover {
  color: #f3f0e8;
  border-bottom-color: #f3f0e8;
  background: rgba(216, 194, 138, 0.1);
}

/* ========================= */
/* CASE FILE LAYOUT */
/* ========================= */

.case-layout {
  max-width: 1120px; 
  margin: 0 auto 110px;
  padding: 0 32px;
}

.timeline-entry,
.field-log article,
.exhibit-frame,
.verdict-grid article {
  position: relative;
  border: 1px solid rgba(245, 245, 245, 0.12);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(28, 27, 25, 0.92), rgba(16, 16, 16, 0.94)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.timeline-entry h2,
.field-log h2,
.exhibit-frame h2,
.verdict-grid h2 {
  margin: 0;
  color: #f3f0e8;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-entry p,
.field-log p,
.exhibit-frame p,
.verdict-grid p {
  color: rgba(245, 245, 245, 0.68);
  line-height: 1.65;
}

/* ========================= */
/* TIMELINE STYLES           */
/* ========================= */

.timeline-board {
  position: relative;
  display: grid;
  gap: 30px; 
  padding-left: 32px;
}

.timeline-board::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px; /* Adjusted to perfect centre */
  width: 2px;
  background: linear-gradient(#9e4242, rgba(216, 194, 138, 0.55), transparent);
}

.timeline-entry {
  padding: 24px;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -33px; /* Shifted 3px right to align with the vertical line */
  width: 14px;
  height: 14px;
  border: 2px solid #d8c28a;
  border-radius: 50%;
  background: #111111;
  box-shadow: 0 0 0 6px rgba(158, 66, 66, 0.13);
}

.timeline-date,
.evidence-code,
.field-log article span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #9e4242;
  font-family: "IBM Plex Sans", Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ========================= */
/* RESEARCH PAGE (EVIDENCE WALL) */
/* ========================= */

.evidence-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto 60px;
  padding: 0 32px;
}

.evidence-card {
  position: relative;
  min-height: 245px;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(216, 194, 138, 0.16), transparent 22%),
    linear-gradient(145deg, #eee9d8, #cfc7ad);
  color: #171514;
  transform: rotate(-1deg);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  perspective: 1000px;
}

.evidence-card:nth-child(even) {
  transform: rotate(1.2deg);
}

.card-content-wrapper {
 transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.evidence-card h2 {
  margin: 0 0 10px 0;
  color: #171514;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evidence-card p {
  color: rgba(23, 21, 20, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.evidence-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 18px;
  width: 48px;
  height: 13px;
  background: rgba(35, 35, 35, 0.78);
  transform: rotate(3deg);
  transition: opacity 0.2s ease;
}

.evidence-card:hover {
  transform: translateY(-8px) rotate(0deg);
  border-color: #9E4242;
  box-shadow: 0 15px 35px rgba(158, 66, 66, 0.2), 0 5px 15px rgba(0,0,0,0.5);
  z-index: 10;
}

.evidence-card.clicked {
 transform: scale(0.95) rotate(0deg);
 box-shadow: 0 5px 10px rgba(0,0,0,0.8);
 border-color: #9E4242;
}

.evidence-card.clicked .card-content-wrapper {
 opacity: 0;
 transform: translateY(10px);
}

.evidence-card.clicked::before {
 opacity: 0;
}

/* RESEARCH MODALS (POP-UP DOSSIERS) */
.evidence-modal {
 position: fixed;
 inset: 0;
 background: rgba(17, 17, 17, 0.95);
 display: none;
 justify-content: center;
 align-items: center;
 z-index: 2000;
 padding: 20px;
 opacity: 0;
 transition: opacity 0.3s ease;
 cursor: var(--close-cursor);
}

.evidence-modal.active {
 display: flex;
 opacity: 1;
}

.evidence-modal-content {
 background: #1a1a1a;
 max-width: 800px;
 width: 100%;
 max-height: 85vh;
 overflow-y: auto;
 padding: 50px 40px;
 border: 1px solid #2a2a2a;
 border-top: 4px solid #9E4242;
 position: relative;
 box-shadow: 0 20px 60px rgba(0,0,0,0.8);
 cursor: default;
}

.bib-modal-content {
 border-top-color: #d8c28a;
 background:
  linear-gradient(145deg, #1a1a1a, #111),
  repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 30px);
}

.bib-modal-content h2 {
 color: #d8c28a;
}

.modal-close-btn {
 position: absolute;
 top: 20px;
 right: 25px;
 background: none;
 border: none;
 color: #8A8A8A;
 font-size: 32px;
 cursor: pointer;
 transition: color 0.2s;
 padding: 0;
 line-height: 1;
}

.modal-close-btn:hover {
 color: #9E4242;
}

.bib-modal-content .modal-close-btn:hover {
 color: #d8c28a;
}

.evidence-modal-content h2 {
 color: #F5F5F5;
 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
 font-size: 28px;
 text-transform: uppercase;
 letter-spacing: 0.05em;
 margin: 0 0 20px 0;
 border-bottom: 1px solid #2a2a2a;
 padding-bottom: 15px;
}

.evidence-modal-content p {
 color: rgba(245, 245, 245, 0.8);
 font-size: 16px;
 line-height: 1.8;
 margin-bottom: 20px;
}

/* DOSSIER SPLIT LAYOUT (Text + Single Image) */
.dossier-split-layout {
 display: flex;
 gap: 40px;
 align-items: flex-start;
 margin-top: 20px;
}

.dossier-split-reversed {
 flex-direction: row-reverse;
}

.dossier-text {
 flex: 1;
}

.dossier-image-container {
 flex-shrink: 0;
 width: 240px;
 padding: 12px 12px 36px 12px;
 background: #e8e6df;
 border-radius: 2px;
 box-shadow: 0 10px 25px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0,0,0,0.1);
 transform: rotate(2deg);
 position: relative;
}

.dossier-split-reversed .dossier-image-container {
 transform: rotate(-2deg);
}

.dossier-image-container::before {
 content: "";
 position: absolute;
 top: -10px;
 left: 50%;
 transform: translateX(-50%) rotate(-3deg);
 width: 60px;
 height: 20px;
 background: rgba(255, 255, 255, 0.4);
 backdrop-filter: blur(2px);
 box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dossier-split-reversed .dossier-image-container::before {
 transform: translateX(-50%) rotate(3deg);
}

.dossier-img {
 width: 100%;
 display: block;
 filter: contrast(1.1) saturate(0.9);
 border-radius: 1px;
}

/* ZIG-ZAG DOSSIER LAYOUT (Used in Exhibit F & J) */
.dossier-f-content {
 max-width: 940px;
 padding: 42px 36px;
}

.dossier-f-layout {
 display: grid;
 grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
 gap: 34px;
 align-items: start;
 margin-top: 24px;
}

.dossier-f-visuals,
.dossier-f-text-stack {
 display: flex;
 flex-direction: column;
}

.dossier-f-visuals {
 gap: 26px;
 padding-top: 0;
}

.dossier-f-text-stack {
 gap: 14px;
 padding-top: 0;
}

.dossier-f-row {
 display: flex;
 flex-direction: row;
 gap: 42px;
 align-items: flex-start;
 z-index: 2;
 position: relative;
}

.dossier-f-row-reverse {
 flex-direction: row-reverse;
 margin-top: 6px;
}

.dossier-f-copy {
 flex: 1;
 min-width: 300px;
 padding-top: 0;
}

.dossier-f-copy p {
 margin-top: 0;
 margin-bottom: 14px;
}

.dossier-f-copy p:last-child {
 margin-bottom: 0;
}

/* The Massive Polaroid Container */
.dossier-f-photo {
 flex-shrink: 0;
 width: 100%;
 margin: 0;
 padding: 11px 11px 30px 11px;
 background: #e8e6df;
 border-radius: 2px;
 box-shadow: 0 16px 34px rgba(0,0,0,0.62), inset 0 0 0 1px rgba(0,0,0,0.1);
 position: relative;
 z-index: 5;
}

.dossier-f-photo::before {
 content: "";
 position: absolute;
 top: -10px;
 left: 50%;
 width: 68px;
 height: 22px;
 background: rgba(255, 255, 255, 0.42);
 backdrop-filter: blur(2px);
 box-shadow: 0 1px 3px rgba(0,0,0,0.22);
 transform: translateX(-50%) rotate(2deg);
}

.tilt-left { transform: rotate(-1.5deg); }
.tilt-left::before { transform: translateX(-50%) rotate(3deg); }

.tilt-right { transform: rotate(1.5deg); }
.tilt-right::before { transform: translateX(-50%) rotate(-3deg); }

.dossier-f-photo .dossier-img {
 aspect-ratio: 4 / 3;
 object-fit: cover;
 max-height: 238px;
}

.research-zoomable {
 cursor: zoom-in;
 transition: transform 0.2s ease, filter 0.2s ease;
}

.research-zoomable:hover {
 filter: contrast(1.14) saturate(1.02);
 transform: scale(1.012);
}

.dossier-f-quote {
 align-self: stretch;
 width: 100%;
 margin: 0;
 box-sizing: border-box;
 padding: 12px 26px;
 font-size: 18px;
 text-align: left;
 position: relative;
 z-index: 10;
}

.photo-credit {
 margin-top: 14px;
 padding-top: 12px;
 border-top: 1px solid rgba(0,0,0,0.15);
 font-family: 'IBM Plex Sans', monospace;
 font-size: 11px;
 line-height: 1.4;
 color: rgba(17, 17, 17, 0.8);
 text-transform: uppercase;
}

.photo-credit strong {
 color: #9E4242;
 display: block;
 margin-bottom: 4px;
}

/* =================================================== */
/* BOTTOM BIBLIOGRAPHY BUTTON (MOVED)                  */
/* =================================================== */
.bottom-action-row {
 display: flex;
 justify-content: center;
 margin: 0 auto 60px auto;
 width: 100%;
}

.bottom-log-btn {
 padding: 12px 24px;
 font-size: 13px;
 background: rgba(158, 66, 66, 0.08);
 border-color: rgba(158, 66, 66, 0.4);
 color: #9E4242;
}

.bottom-log-btn:hover {
 background: rgba(158, 66, 66, 0.2);
 border-color: #9E4242;
 color: #F5F5F5;
}

.evidence-modal-content p.bib-intro-text {
 color: #9E4242;
 font-family: 'IBM Plex Sans', monospace;
 font-size: 12px;
 font-weight: 600;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 margin-bottom: 24px;
 padding-bottom: 18px;
 border-bottom: 1px dashed rgba(158, 66, 66, 0.3);
}

/* =================================================== */
/* IMAGE ZOOM OVERLAY                                  */
/* =================================================== */
.research-zoom-overlay {
 position: fixed;
 inset: 0;
 z-index: 3000;
 display: none;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 18px;
 padding: 34px;
 background: rgba(5, 5, 5, 0.94);
 cursor: zoom-out;
}

.research-zoom-overlay.active {
 display: flex;
}

#researchZoomImage {
 max-width: min(94vw, 1180px);
 max-height: 82vh;
 object-fit: contain;
 border: 1px solid rgba(245, 245, 245, 0.16);
 box-shadow: 0 26px 80px rgba(0,0,0,0.82);
}

#researchZoomCaption {
 max-width: 760px;
 margin: 0;
 color: rgba(245, 245, 245, 0.74);
 font-family: 'IBM Plex Sans', sans-serif;
 font-size: 12px;
 line-height: 1.5;
 text-align: center;
 text-transform: uppercase;
 letter-spacing: 0.06em;
}

.research-zoom-close {
 position: fixed;
 top: 24px;
 right: 30px;
 background: none;
 border: none;
 color: rgba(245, 245, 245, 0.72);
 font-size: 42px;
 line-height: 1;
 cursor: pointer;
}

.research-zoom-close:hover {
 color: #9E4242;
}

.dossier-quote {
 border-left: 3px solid #9E4242;
 padding: 10px 0 10px 20px;
 margin: 24px 0;
 font-family: 'IBM Plex Sans', monospace;
 font-size: 15px;
 line-height: 1.6;
 color: #d8c28a;
 background: rgba(216, 194, 138, 0.05);
}

/* EVIDENCE LOGS (BIBLIOGRAPHY) */
.log-container {
 display: flex;
 flex-direction: column;
 gap: 16px;
}

.log-entry {
 color: rgba(245, 245, 245, 0.6);
 font-family: 'Inter', sans-serif;
 font-size: 14px;
 line-height: 1.6;
 padding-left: 16px;
 border-left: 2px solid rgba(158, 66, 66, 0.4);
 transition: color 0.2s, border-color 0.2s;
}

.log-entry:hover {
 color: rgba(245, 245, 245, 0.9);
 border-left-color: #d8c28a;
}

.log-entry strong {
 color: #d8c28a;
}

/* ========================= */
/* MISC PAGES */
/* ========================= */

.field-log {
  display: grid;
  gap: 22px;
}

.field-log article {
  padding: 24px 26px;
}

.darkroom-panel {
  background:
    radial-gradient(circle at 50% 12%, rgba(158, 66, 66, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(6, 6, 6, 0.96));
}

.status-strip {
  margin-top: 24px;
  color: #f3f0e8;
  border-color: rgba(158, 66, 66, 0.55);
  background: rgba(158, 66, 66, 0.18);
}

.presentation-stage {
  max-width: 1120px;
  margin: 0 auto 110px;
  padding: 0 32px;
}

.exhibit-frame {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  overflow: hidden;
  border-color: rgba(216, 194, 138, 0.28);
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 50% 12%, rgba(245, 245, 245, 0.18), transparent 34%),
    linear-gradient(145deg, #23211d, #0d0d0d);
}

.exhibit-frame::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px dashed rgba(216, 194, 138, 0.24);
  pointer-events: none;
}

.exhibit-frame h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
}

.exhibit-frame p {
  max-width: 610px;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.verdict-grid article {
  padding: 24px;
}

/* ========================= */
/* MANAGEMENT PAGE ACCORDION */
/* ========================= */

.management-page .management-feed {
  margin-top: 30px;
  margin-bottom: 86px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 32px;
}

.doc-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: 4px;
}

.accordion-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-toggle h2 {
  margin: 0;
  color: #9E4242; /* Restored Red Color */
  font-family: 'IBM Plex Sans', sans-serif; /* Restored IBM Font */
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.toggle-icon {
  color: rgba(245, 245, 245, 0.4);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-toggle.active .toggle-icon {
  transform: rotate(45deg);
  color: #9E4242;
}

.accordion-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.accordion-content.open {
  max-height: 1200px;
  opacity: 1;
  transition: max-height 0.6s ease-in-out, opacity 0.4s ease 0.1s;
}

.accordion-inner {
  padding: 40px 0 60px 0;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(245, 245, 245, 0.05);
  width: 100%;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.carousel-track {
  width: 850px;
  height: 650px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-track img {
  position: absolute;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 70px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  border-radius: 2px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  transform: scale(0.9) rotate(0deg);
}

.carousel-track img.active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-in;
}

.doc-block:nth-child(odd) .carousel-track img.active {
  transform: scale(1) rotate(-1.5deg);
}

.doc-block:nth-child(even) .carousel-track img.active {
  transform: scale(1) rotate(2deg);
}

.arrow {
  background: none;
  border: none;
  font-size: 50px;
  color: rgba(245, 245, 245, 0.4);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 20px;
}

.arrow:hover {
  color: #9E4242;
  transform: scale(1.1);
}

.page-counter {
  position: absolute;
  bottom: -15px;
  right: 20px;
  color: #9E4242;
  font-family: 'IBM Plex Sans', monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  opacity: 0.8;
  pointer-events: none;
}

/* ========================= */
/* DECLASSIFY UI (PROGRESSION) */
/* ========================= */

.expandable-log {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.expandable-log.unsealed {
  max-height: 2500px; 
}

.classified-text {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-10px);
  transition: all 0.6s ease;
}

/* Stops the hidden text from pushing itself down */
.classified-text p:first-child {
  margin-top: 0;
}

.expandable-log.unsealed .classified-text {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: 0.2s; /* Waits for the container to drop down before clarifying */
}

.decrypt-btn {
  background: transparent;
  border: 1px dashed rgba(158, 66, 66, 0.4);
  color: #9E4242;
  padding: 10px 18px;
  font-family: 'IBM Plex Sans', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.decrypt-btn:hover {
  background: rgba(158, 66, 66, 0.1);
  border-color: #9E4242;
  color: #F5F5F5;
}

.decrypt-btn.granted {
  border-style: solid;
  border-color: #d8c28a;
  color: #d8c28a;
  background: rgba(216, 194, 138, 0.05);
}

/* ========================= */
/* PROGRESSION TIMELINE GALLERY */
/* ========================= */

.timeline-gallery-row {
  display: flex;
  gap: 3%; 
  margin-top: 30px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap; 
}

.timeline-gallery-row .timeline-evidence {
  width: 31%; 
  box-sizing: border-box; 
  flex-shrink: 0;
  margin: 0 0 20px 0; 
  padding: 8px 8px 24px 8px; 
  background: #e8e6df; 
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.1);
  transform-origin: center top; 
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  filter: contrast(1.1) saturate(0.9);
}

/* Unique Tilts and Positioning for each Polaroid */
.timeline-photo-1 {
  transform: rotate(2.5deg) translateY(4px);
}

.timeline-photo-2 {
  transform: rotate(-1.8deg);
}

.timeline-photo-3 {
  transform: rotate(3.1deg) translateY(8px);
}

/* ========================= */
/* ZOOM SYSTEM (ENHANCED) */
/* ========================= */

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: var(--close-cursor);
  animation: zoom-in 0.2s ease-out;
}

.zoom-overlay.active {
  display: flex;
}

.zoom-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default;
}

#zoomedImage {
  max-width: 85vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 70px;
  color: rgba(245, 245, 245, 0.4);
  cursor: pointer;
  z-index: 1010;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 30px;
}

.modal-arrow:hover {
  color: #9E4242;
  transform: translateY(-50%) scale(1.1);
}

.modal-arrow.left { left: -120px; }
.modal-arrow.right { left: auto; right: -120px; }

#modalCounter {
  position: absolute;
  bottom: -40px;
  right: 0;
  font-size: 14px;
  opacity: 0.6;
}

@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================= */
/* PERSONNEL FILE / RETURN LINK */
/* ========================= */

.personnel-file-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 34px 80px;
  width: 100%;
  box-sizing: border-box;
}

.personnel-file {
  position: relative;
  transform: rotate(0.8deg);
  display: flex;
  gap: 16px;
  width: min(100%, 300px);
  padding: 16px 20px;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid rgba(216, 194, 138, 0.3);
  border-left: 4px solid #9E4242;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 10;
  overflow: hidden;
}

.id-details h2 {
  margin: 0 0 4px 0;
  color: #F5F5F5;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
}

.id-label {
  display: block;
  color: #9E4242;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.id-details p {
  margin: 0 0 12px 0;
  color: rgba(245,245,245,0.6);
  font-size: 12px;
  font-family: monospace;
}

.id-links {
  display: flex;
  gap: 12px;
}

.id-links a {
  color: #d8c28a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.id-links a:hover {
  border-color: #d8c28a;
}

.return-archive {
  display: block;
  width: fit-content;
  margin: 0 auto 80px auto;
  color: #9E4242;
  font-family: 'IBM Plex Sans', monospace;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px dashed rgba(158, 66, 66, 0.4);
  background: rgba(158, 66, 66, 0.05);
  transition: all 0.3s ease;
}

.return-archive:hover {
  background: rgba(158, 66, 66, 0.15);
  border-color: #9E4242;
  color: #F5F5F5;
}

/* ========================= */
/* SYSTEM NOTIFICATION       */
/* ========================= */

.clipboard-toast {
  position: absolute;
  bottom: -50px;
  right: 20px; /* Anchors the toast to the right side of the empty space */
  background: rgba(158, 66, 66, 0.95);
  color: #F5F5F5;
  font-family: 'IBM Plex Sans', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border: 1px solid #9E4242;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.clipboard-toast.show {
  bottom: 16px; /* Aligns perfectly with the ID card's bottom padding */
  opacity: 1;
}

/* ========================= */
/* TRANSCRIPT LOG STYLES (NEW) */
/* ========================= */

.transcript-log {
  margin-top: 20px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-left: 3px solid rgba(216, 194, 138, 0.6);
  border-radius: 4px;
  font-family: 'IBM Plex Sans', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.transcript-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(245, 245, 245, 0.15);
}

.transcript-header span {
  color: #9E4242;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.transcript-meta {
  color: rgba(216, 194, 138, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  margin: 16px 0;
  letter-spacing: 0.05em;
}

.transcript-line {
  margin-bottom: 16px;
}

.transcript-line .speaker-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.transcript-line p {
  margin: 0;
  color: rgba(245, 245, 245, 0.85);
}

/* Differentiating the speakers */
.transcript-line.supervisor .speaker-label {
  color: rgba(245, 245, 245, 0.5);
}

.transcript-line.investigator {
  padding-left: 20px;
}

.transcript-line.investigator .speaker-label {
  color: #d8c28a;
}

/* Investigator's Retrospective Notes */
.investigator-note {
  margin: 24px 0 24px 20px;
  padding: 16px 20px;
  background: rgba(158, 66, 66, 0.08);
  border: 1px dashed rgba(158, 66, 66, 0.4);
  border-radius: 2px;
}

.investigator-note strong {
  display: block;
  color: #9E4242;
  margin-bottom: 8px;
  font-size: 11px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.15em;
}

.investigator-note p {
  margin: 0;
  color: #d8c28a;
  font-style: italic;
}

/* ========================= */
/* TERMINAL DASHBOARD (PRACTICE) */
/* ========================= */

.dashboard-layout {
  display: flex;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto 110px;
  padding: 0 32px;
  align-items: flex-start;
}

.dashboard-menu {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 100px;
}

.menu-title {
  color: rgba(245, 245, 245, 0.4);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.1);
  padding-bottom: 10px;
}

.dashboard-btn {
  background: transparent;
  border: 1px solid rgba(245, 245, 245, 0.1);
  color: rgba(245, 245, 245, 0.6);
  padding: 16px 20px;
  text-align: left;
  font-family: 'IBM Plex Sans', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.dashboard-btn:hover {
  background: rgba(245, 245, 245, 0.05);
  color: #f3f0e8;
}

.dashboard-btn.active {
  background: rgba(158, 66, 66, 0.1);
  border-color: #9E4242;
  color: #f3f0e8;
  border-left: 4px solid #9E4242;
}

.dashboard-display {
  flex-grow: 1;
  background: 
    linear-gradient(145deg, rgba(28, 27, 25, 0.92), rgba(16, 16, 16, 0.94)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px);
  border: 1px solid rgba(245, 245, 245, 0.12);
  border-radius: 4px;
  min-height: 500px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
  position: relative;
  overflow: hidden;
}

.tab-pane {
  display: none;
  padding: 40px;
  animation: fade-in 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

.pane-header {
  border-bottom: 1px dashed rgba(216, 194, 138, 0.3);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.pane-header h2 {
  margin: 10px 0 0 0;
  color: #f3f0e8;
  font-size: 28px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec-block {
  margin-bottom: 30px;
}

.spec-block h3, .grid-item h3 {
  color: #9E4242;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.spec-block p, .grid-item p {
  color: rgba(245, 245, 245, 0.75);
  line-height: 1.6;
  font-size: 14px;
}

.tech-list {
  color: rgba(245, 245, 245, 0.75);
  font-size: 14px;
  line-height: 1.8;
  padding-left: 20px;
}

.tech-list strong {
  color: #d8c28a;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.grid-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 245, 245, 0.05);
  padding: 20px;
  border-radius: 2px;
}

/* Branding Specifics */
.type-label {
  display: block;
  font-family: 'IBM Plex Sans', monospace;
  color: rgba(245, 245, 245, 0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.1);
  padding-bottom: 5px;
}

.type-spec {
  position: relative;
  overflow: hidden;
  padding: 30px; 
  border-radius: 2px;
}

/* Redesigned Terminal Aesthetic for Type */
.terminal-spec {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 245, 245, 0.05);
  border-left: 3px solid rgba(216, 194, 138, 0.4);
  color: #f3f0e8;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.terminal-spec:hover {
  background: rgba(0, 0, 0, 0.5);
  border-left-color: #d8c28a;
}

.terminal-spec strong {
  font-size: 28px; 
  display: block;
  margin-bottom: 16px;
  color: #f3f0e8;
}

.terminal-spec p.charset {
  color: rgba(245, 245, 245, 0.7); 
  margin: 0 0 16px 0;
  font-size: 20px; 
  line-height: 1.8;
  letter-spacing: 0.25em; 
  text-transform: lowercase;
}

.terminal-spec small {
  display: block;
  color: rgba(216, 194, 138, 0.7);
  font-size: 13px; 
  line-height: 1.6;
  border-top: 1px dashed rgba(245, 245, 245, 0.1);
  padding-top: 16px;
  margin-top: 16px;
}

.color-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.color-swatch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.color-swatch {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.color-swatch-container span {
  font-family: 'IBM Plex Sans', monospace;
  font-size: 11px;
  color: #d8c28a;
  letter-spacing: 0.05em;
}

/* ========================= */
/* STRICT FONT OVERRIDES     */
/* ========================= */

.font-helvetica, .font-helvetica strong, .font-helvetica p.charset {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.font-ibm, .font-ibm strong, .font-ibm p.charset {
  font-family: 'IBM Plex Sans', sans-serif !important;
}

.font-inter, .font-inter strong, .font-inter p.charset {
  font-family: 'Inter', sans-serif !important;
}

/* Adjusted spacing for better letterform visibility */
.terminal-spec p.charset {
  letter-spacing: 0.15em !important; 
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Breakpoints */
@media (max-width: 1080px) { 
  .case-layout {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
}

@media (max-width: 920px) {
  .home-page { height: auto; min-height: 100vh; overflow-x: hidden; }
  .nav { gap: 16px; padding: 18px 22px; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .nav a { margin-left: 0; }
  .nav-subtitle { display: block; margin: 6px 0 0; }
  .home-title { padding: 34px 22px 0; }
  .board { display: block; height: auto; min-height: 0; padding: 32px 22px 70px; }
  .card, .card:nth-child(1), .card:nth-child(2), .card:nth-child(3), .card:nth-child(4), .card:nth-child(5) { position: relative; inset: auto; grid-column: auto; grid-row: auto; width: auto; height: auto; min-height: auto; margin-bottom: 20px; transform: none; }
  .evidence-wall, .verdict-grid { grid-template-columns: 1fr; }
  .evidence-card, .evidence-card:nth-child(even) { transform: none; }
  .carousel { gap: 0; }
  .carousel-track { width: min(760px, 76vw); height: 560px; }
  .modal-arrow.left { left: -76px; }
  .modal-arrow.right { right: -76px; }
  .page-counter { bottom: -10px; right: 10px; }
  /* Override absolute positioning fixes since layout is universally flexed now */
  .dossier-f-layout { display: flex; flex-direction: column; gap: 24px; margin-top: 0; }
  .dossier-f-visuals { gap: 20px; padding-top: 0; }
  .dossier-f-text-stack { gap: 18px; padding-top: 0; }
  .dossier-split-layout, .dossier-split-reversed, .dossier-f-row, .dossier-f-row-reverse { flex-direction: column; gap: 24px; margin-top: 0; }
  .dossier-image-container, .dossier-f-photo { width: 100%; max-width: 500px; margin: 0 auto 20px auto; transform: none; height: auto; }
  .dossier-split-reversed .dossier-image-container { transform: none; }
  .evidence-photo { transform: none !important; }
  .dossier-f-content { max-width: min(900px, 94vw); }
  .dossier-f-photo .dossier-img { max-height: none; }
  .dossier-f-quote { width: 100%; max-width: 100%; margin: 10px 0; }
  
  .timeline-gallery-row {
    flex-direction: column; 
    align-items: center;
    gap: 15px;
  }
  
  .timeline-gallery-row .timeline-evidence {
    width: 100%;
    max-width: 400px; 
    transform: none !important; 
  }

  /* Dashboard Mobile Adjustments */
  .dashboard-layout { flex-direction: column; }
  .dashboard-menu { width: 100%; position: static; flex-direction: column; }
  .dashboard-btn { width: 100%; text-align: left; border-left: 4px solid transparent; border-bottom: 1px solid rgba(245, 245, 245, 0.1); }
  .dashboard-btn.active { border-left: 4px solid #9E4242; border-bottom: 1px solid rgba(245, 245, 245, 0.1); }
  .spec-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .home-title h1, .case-hero h1 { font-size: 42px; }
  .board { display: block; }
  .case-hero, .case-layout, .evidence-wall, .presentation-stage { padding-left: 20px; padding-right: 20px; }
  .timeline-board { padding-left: 24px; }
  .carousel-track { width: 72vw; height: 430px; }
  .arrow { font-size: 36px; padding: 10px; }
  .modal-arrow { display: none; }
  .evidence-modal-content { padding: 38px 22px; }
  .research-zoom-overlay { padding: 18px; }
  #researchZoomImage { max-width: 94vw; max-height: 76vh; }
  .research-zoom-close { top: 14px; right: 18px; }
  .title-eye { height: 32px; } /* Ensures the eye shrinks properly on small mobiles */
}

/* ========================================= */
/* OPTICAL ALIGNMENT FIXES                   */
/* ========================================= */
/* Nudges the small tracking text to perfectly align with the visual edge of the Helvetica headings */

.case-hero .case-kicker {
  margin-left: 4px;
}

.pane-header .evidence-code,
.evidence-card .evidence-code,
.exhibit-frame .evidence-code,
.card .case-tag {
  margin-left: 2px;
}

/* ========================================= */
/* INTRO BOOT SEQUENCE                       */
/* ========================================= */
#intro-sequence {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0d0d0d;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-in-out;
}

/* Force standard cursor when intro is up to prevent weird glitches */
body.intro-active, body.intro-active a, body.intro-active button {
  cursor: default !important;
}
body.intro-active .custom-cursor,
body.intro-active .cursor-trail {
  display: none !important;
}

.boot-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(158, 66, 66, 0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.scanline {
  width: 100%;
  height: 100px;
  background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(158, 66, 66, 0.15) 50%, rgba(0,0,0,0) 100%);
  position: absolute;
  top: -100px;
  animation: scan 4s linear infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes scan {
  0% { top: -100px; }
  100% { top: 100vh; }
}

.boot-eye {
  width: 300px;
  max-width: 80vw;
  filter: invert(1) brightness(150%) contrast(200%);
  animation: flicker 0.15s infinite;
  z-index: 2;
  position: relative;
}

.boot-text {
  margin-top: 30px;
  font-family: 'IBM Plex Sans', monospace;
  color: #9E4242;
  font-size: 12px;
  letter-spacing: 0.2em;
  z-index: 2;
}

.authorise-btn {
  margin-top: 20px;
  background: rgba(158, 66, 66, 0.05);
  border: 1px dashed rgba(158, 66, 66, 0.4);
  color: #9E4242;
  font-family: 'IBM Plex Sans', monospace;
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.15em;
  cursor: pointer !important;
  transition: all 0.3s ease;
  animation: blink 2s step-end infinite;
  z-index: 2;
  position: relative;
}

.authorise-btn:hover {
  background: rgba(158, 66, 66, 0.2);
  color: #F5F5F5;
  border-color: #9E4242;
  box-shadow: 0 0 15px rgba(158, 66, 66, 0.3);
}

@keyframes blink {
  50% { opacity: 0.6; }
}

@keyframes flicker {
  0% { opacity: 1; filter: invert(1) brightness(150%) contrast(200%) drop-shadow(0 0 5px rgba(158, 66, 66, 0.4)); transform: translate(0, 0); }
  20% { opacity: 0.8; filter: invert(1) brightness(120%) contrast(300%); transform: translate(-2px, 1px); }
  40% { opacity: 0.4; }
  60% { opacity: 1; transform: translate(2px, -1px); }
  80% { opacity: 0.9; }
  100% { opacity: 1; filter: invert(1) brightness(150%) contrast(200%) drop-shadow(0 0 15px rgba(158, 66, 66, 0.7)); transform: translate(0, 0); }
}

.fade-out-intro {
  opacity: 0;
  pointer-events: none;
}