/* ══════════════════════════════════════════════════════════
   DIA. — INTELLIGENCE SYSTEM STYLESHEET v2.0
   "I should not have access to this."
   ══════════════════════════════════════════════════════════ */

:root {
  --black:     #000000;
  --bg:        #050403;
  --white:     #ffffff;
  --orange:    #CC3300;
  --orange-2:  rgba(204,51,0,0.65);
  --orange-3:  rgba(204,51,0,0.35);
  --orange-4:  rgba(204,51,0,0.15);
  --orange-5:  rgba(204,51,0,0.06);

  --t1:  rgba(255,255,255,0.90);
  --t2:  rgba(255,255,255,0.68);
  --t3:  rgba(255,255,255,0.42);
  --t4:  rgba(255,255,255,0.22);
  --t5:  rgba(255,255,255,0.10);
  --t6:  rgba(255,255,255,0.05);

  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --panel:     rgba(255,255,255,0.025);
  --panel-2:   rgba(255,255,255,0.04);

  --mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --display: 'Montserrat', sans-serif;

  --sidebar-w: 260px;
  --topbar-h:  52px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

button, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── GRAIN OVERLAY ─────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
}
.grain svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── AMBIENT GLOW ─────────────────────────────────────── */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(
    ellipse 35% 25% at 55% 45%,
    rgba(150,38,0,0.035) 0%,
    transparent 65%
  );
}

/* ════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════ */

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ───────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: rgba(4,3,2,0.98);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.3s var(--ease), min-width 0.3s var(--ease);
  z-index: 50;
}
.sidebar.collapsed {
  width: 52px;
  min-width: 52px;
}

/* Sidebar top */
.sb-top {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 18px;
  flex-shrink: 0;
}
.sb-logo {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s;
}
.sb-logo .period { color: var(--orange); }
.sidebar.collapsed .sb-logo { opacity: 0; }

.sb-toggle {
  width: 28px; height: 28px; border: none; background: none;
  cursor: pointer; color: var(--t4); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s; flex-shrink: 0;
}
.sb-toggle:hover { color: var(--t1); background: var(--panel-2); }

/* Sidebar search */
.sb-search {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sb-search-inner {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 10px;
  transition: border-color 0.15s;
}
.sb-search-inner:focus-within { border-color: var(--line-2); }
.sb-search-icon { color: var(--t4); flex-shrink: 0; transition: color 0.15s; }
.sb-search-inner:focus-within .sb-search-icon { color: var(--orange-3); }
.sb-search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--sans); font-size: 12.5px; color: var(--t2);
  min-width: 0;
}
.sb-search-input::placeholder { color: var(--t5); }
.sidebar.collapsed .sb-search { display: none; }

/* Sidebar body */
.sb-body {
  flex: 1; overflow-y: auto; padding: 6px 0;
}
.sb-body::-webkit-scrollbar { width: 3px; }
.sb-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.sb-section { margin-bottom: 2px; }
.sb-section-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; cursor: pointer;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; color: var(--t4); text-transform: uppercase;
  transition: color 0.12s; white-space: nowrap;
}
.sb-section-header:hover { color: var(--t2); }
.sb-section-header .sb-icon { flex-shrink: 0; width: 14px; }
.sidebar.collapsed .sb-section-header span { display: none; }

.sb-items { overflow: hidden; }
.sb-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 28px;
  font-family: var(--sans); font-size: 12.5px; color: var(--t3);
  cursor: pointer; transition: color 0.12s, background 0.12s;
  border-radius: 4px; margin: 0 6px;
  white-space: nowrap; overflow: hidden;
}
.sb-item:hover { color: var(--t1); background: var(--panel); }
.sb-item.active { color: var(--orange-2); background: var(--orange-5); }
.sidebar.collapsed .sb-items { display: none; }

/* Sidebar recent */
.sb-recent {
  border-top: 1px solid var(--line);
  padding: 10px 0 4px;
  flex-shrink: 0;
}
.sb-recent-title {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--t5); text-transform: uppercase;
  padding: 4px 14px 8px;
}
.sidebar.collapsed .sb-recent { display: none; }

/* Sidebar bottom */
.sb-bottom {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  flex-shrink: 0;
}
.sb-brand {
  font-family: var(--display); font-size: 13px; font-weight: 900;
  color: var(--t4);
}
.sb-brand .period { color: var(--orange-3); }
.sb-tagline {
  font-family: var(--mono); font-size: 9px; color: var(--t5);
  letter-spacing: 0.1em; margin-top: 3px;
}
.sidebar.collapsed .sb-bottom { display: none; }

/* ── MAIN PANE ─────────────────────────────────────────── */
.main-pane {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top bar */
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--line);
  background: rgba(5,4,3,0.97);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.topbar-left {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 10px; color: var(--t4);
  letter-spacing: 0.1em;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; color: var(--t4);
  letter-spacing: 0.08em;
}
.breadcrumb-item { cursor: pointer; transition: color 0.12s; }
.breadcrumb-item:hover { color: var(--t2); }
.breadcrumb-item.current { color: var(--t2); cursor: default; }
.breadcrumb-sep { color: var(--t6); }

.topbar-right {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 10px; color: var(--t5);
  letter-spacing: 0.08em;
}
.topbar-cmd {
  border: 1px solid var(--line); padding: 4px 10px;
  border-radius: 4px; cursor: pointer; transition: all 0.12s;
  color: var(--t4); display: flex; align-items: center; gap: 6px;
}
.topbar-cmd:hover { border-color: var(--line-2); color: var(--t2); }

/* Content area */
.content-area {
  flex: 1; overflow-y: auto; position: relative;
}
.content-area::-webkit-scrollbar { width: 4px; }
.content-area::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ════════════════════════════════════════════════════════
   HOME — SEARCH INTERFACE
   ════════════════════════════════════════════════════════ */
.home-view {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 40px;
}

.home-wordmark {
  font-family: var(--display);
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.5em; color: var(--t5);
  text-transform: uppercase; margin-bottom: 28px;
  display: flex; align-items: center; gap: 6px;
}
.home-wordmark .period { color: rgba(204,51,0,0.4); }

/* Search module */
.search-module { width: 100%; max-width: 580px; position: relative; }

.search-aura {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 200px;
  background: radial-gradient(ellipse 40% 40% at 50% 50%,
    rgba(160,40,0,0.055) 0%, transparent 65%
  );
  pointer-events: none; z-index: -1;
  transition: all 0.4s var(--ease);
}
.search-module.active .search-aura {
  background: radial-gradient(ellipse 45% 45% at 50% 50%,
    rgba(175,44,0,0.085) 0%, transparent 65%
  );
}

.search-field {
  width: 100%; height: 50px;
  background: rgba(8,5,3,0.97);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 16px rgba(160,40,0,0.08),
    0 0 48px rgba(140,35,0,0.04),
    0 4px 14px rgba(0,0,0,0.6);
  transition: border-color 0.2s, box-shadow 0.3s;
}
.search-field::before {
  content: '';
  position: absolute; top: -1px; left: 24%; right: 24%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185,56,0,0.3) 50%, transparent);
}
.search-field.focused {
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 22px rgba(175,44,0,0.13),
    0 0 60px rgba(155,38,0,0.065),
    0 4px 18px rgba(0,0,0,0.65);
}
.search-field.focused::before { background: linear-gradient(90deg, transparent, rgba(195,60,0,0.45) 50%, transparent); }

.s-icon { color: var(--t4); flex-shrink: 0; transition: color 0.2s; }
.search-field.focused .s-icon { color: rgba(195,60,0,0.5); }

.s-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--sans); font-size: 14.5px; font-weight: 400;
  color: var(--t1); letter-spacing: 0.01em;
  caret-color: var(--orange);
}
.s-input::placeholder { color: var(--t5); font-style: italic; font-weight: 300; }

.s-kbd {
  font-family: var(--mono); font-size: 10px; color: var(--t5);
  border: 1px solid var(--line); padding: 3px 8px;
  border-radius: 3px; flex-shrink: 0;
  transition: color 0.2s;
}
.search-field.focused .s-kbd { color: var(--t4); }

/* Terminal readout */
.terminal-output {
  display: none; padding: 10px 2px 0;
  border-top: 1px solid var(--line); margin-top: 1px;
}
.terminal-output.visible { display: block; }

.t-line {
  font-family: var(--mono); font-size: 11px; font-weight: 300;
  letter-spacing: 0.05em; line-height: 2.1;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(3px);
  transition: opacity 0.25s, transform 0.25s;
}
.t-line.show { opacity: 1; transform: translateY(0); }
.t-prompt { color: var(--orange-3); width: 10px; }
.t-text.dim { color: var(--t5); }
.t-text.mid { color: var(--t4); }
.t-text.bright { color: var(--t3); }
.t-result { color: var(--orange-2); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; }
.t-cursor {
  display: inline-block; width: 7px; height: 12px;
  background: rgba(200,55,0,0.55); border-radius: 1px; margin-left: 4px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:0.55} 50%{opacity:0} }

/* Status */
.search-status {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 11px; padding: 0 2px;
}
.ss-left {
  font-family: var(--mono); font-size: 9.5px; font-weight: 300;
  letter-spacing: 0.06em; color: var(--t6);
  display: flex; align-items: center; gap: 10px;
}
.ss-pulse { display: flex; align-items: center; gap: 5px; }
.pulse-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(195,55,0,0.35);
  animation: pulse 2.8s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:0.35} 50%{opacity:0.62} }
.ss-right { font-family: var(--mono); font-size: 9.5px; color: rgba(195,55,0,0.28); letter-spacing: 0.08em; }

/* Archive hint tags */
.archive-hint {
  width: 100%; max-width: 580px; margin-top: 36px;
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity 0.25s, transform 0.25s;
}
.archive-hint.hidden { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.ah-row { display: flex; align-items: center; gap: 12px; }
.ah-label {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--t6); width: 88px; flex-shrink: 0;
}
.ah-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ah-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em;
  color: var(--t4); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 2px; cursor: pointer;
  transition: all 0.12s; text-transform: uppercase;
}
.ah-tag:hover { color: var(--t2); border-color: var(--line-2); }
.ah-tag.orange { color: var(--orange-3); border-color: var(--orange-4); }
.ah-tag.orange:hover { color: var(--orange-2); border-color: var(--orange-3); background: var(--orange-5); }

/* ════════════════════════════════════════════════════════
   RESULTS
   ════════════════════════════════════════════════════════ */
.results-view {
  padding: 0 28px;
  animation: fadeUp 0.3s var(--ease) forwards;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

.results-header {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0;
  background: rgba(5,4,3,0.96);
  backdrop-filter: blur(10px);
  z-index: 5;
}
.rh-label { font-family: var(--mono); font-size: 9.5px; font-weight: 500; color: var(--t5); letter-spacing: 0.2em; }
.rh-query { font-family: var(--mono); font-size: 9.5px; color: var(--orange-2); letter-spacing: 0.06em; flex: 1; }
.rh-count { font-family: var(--mono); font-size: 9.5px; color: var(--t5); letter-spacing: 0.08em; }

.r-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center; gap: 14px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer; border-radius: 3px;
  transition: background 0.1s;
  position: relative; margin: 0 -6px;
}
.r-item:hover { background: var(--panel); }
.r-item:hover .r-arrow { opacity: 0.5; }
.r-item:hover .r-name { color: var(--t1); }
.r-item.featured { background: rgba(200,55,0,0.03); border-bottom-color: rgba(200,55,0,0.08); }
.r-item.featured::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 2px; background: rgba(200,55,0,0.45); border-radius: 1px;
}

.r-type {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; padding-left: 8px;
}
.r-type.athlete  { color: var(--orange-2); }
.r-type.concept  { color: var(--t3); }
.r-type.framework { color: rgba(140,170,210,0.45); }

.r-main { display: flex; flex-direction: column; gap: 3px; }
.r-name { font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--t2); transition: color 0.1s; }
.r-sub  { font-family: var(--mono); font-size: 10px; color: var(--t5); letter-spacing: 0.06em; }
.r-meta { font-family: var(--mono); font-size: 10px; color: var(--t5); letter-spacing: 0.05em; text-align: right; }
.r-arrow { font-size: 11px; color: var(--orange-3); opacity: 0; transition: opacity 0.1s; margin-left: 6px; }

/* ════════════════════════════════════════════════════════
   ATHLETE DIRECTORY
   ════════════════════════════════════════════════════════ */
.dir-view {
  padding: 0;
  animation: fadeUp 0.3s var(--ease) forwards;
}

.dir-header {
  padding: 40px 40px 32px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: end;
  position: relative;
}
.dir-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(180deg, rgba(140,35,0,0.035) 0%, transparent 100%);
  pointer-events: none;
}

.dir-class {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--orange-2); text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.dir-badge { border: 1px solid var(--orange-3); padding: 4px 10px; border-radius: 2px; color: var(--orange-2); }
.dir-fileno { color: var(--t5); font-weight: 300; }

.dir-name {
  font-family: var(--display); font-size: 62px; font-weight: 900;
  line-height: 0.92; letter-spacing: -0.03em; color: var(--t1);
  margin-bottom: 16px;
}

.dir-vitals {
  font-family: var(--mono); font-size: 10.5px; font-weight: 300;
  color: var(--t4); letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.dir-vitals .sep { color: var(--orange-4); }

.dir-meta-col { display: flex; flex-direction: column; gap: 16px; }
.dir-meta-row {}
.dir-meta-lbl {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; color: var(--orange-2); text-transform: uppercase; margin-bottom: 4px;
}
.dir-meta-val { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--t2); }

/* Folder grid */
.folder-grid-wrap {
  padding: 28px 40px 40px;
}
.folder-grid-label {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--t5); text-transform: uppercase;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.folder-grid-label::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.folder-item {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px; padding: 14px 14px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; transition: all 0.15s;
  position: relative; overflow: hidden;
}
.folder-item:hover {
  border-color: var(--orange-3);
  background: var(--orange-5);
}
.folder-item:hover .folder-name { color: var(--t1); }
.folder-item:hover .folder-icon-svg path { stroke: rgba(200,55,0,0.55); fill: rgba(200,55,0,0.08); }
.folder-item:active { transform: scale(0.98); }

.folder-icon-svg {
  width: 32px; height: 26px; flex-shrink: 0;
}
.folder-icon-svg path.bg {
  fill: rgba(200,55,0,0.06); stroke: rgba(200,55,0,0.22); stroke-width: 1;
  transition: fill 0.15s, stroke 0.15s;
}

.folder-name {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--t3); text-transform: uppercase;
  line-height: 1.4; transition: color 0.15s;
}

.folder-count {
  font-family: var(--mono); font-size: 9px; color: var(--t6);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════
   FILE VIEW — INDIVIDUAL FOLDER CONTENT
   ════════════════════════════════════════════════════════ */
.file-content {
  animation: fadeUp 0.3s var(--ease) forwards;
}

.fc-header {
  padding: 36px 40px 28px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 24px;
}
.fc-back {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; color: var(--t4);
  letter-spacing: 0.1em; cursor: pointer; border: none; background: none;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px;
  transition: all 0.12s; flex-shrink: 0; margin-top: 4px;
}
.fc-back:hover { color: var(--t2); border-color: var(--line-2); }

.fc-title-area { flex: 1; }
.fc-folder-label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; color: var(--orange-2); text-transform: uppercase;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.fc-folder-label .folder-icon-sm {
  width: 16px; height: 13px;
}
.fc-title {
  font-family: var(--display); font-size: 38px; font-weight: 900;
  letter-spacing: -0.02em; color: var(--t1); line-height: 1;
}

/* File body */
.fc-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  min-height: 50vh;
}

.fc-main {
  padding: 36px 40px;
  border-right: 1px solid var(--line);
  max-width: 700px;
}

/* DIA VOICE — body typography */
.dia-text {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.88;
  color: var(--t2);
}
.dia-text p { margin-bottom: 20px; }
.dia-text p:last-child { margin-bottom: 0; }
.dia-text strong { color: var(--t1); font-weight: 600; }

/* Short punchy paragraphs */
.dia-graf {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--t2);
  margin-bottom: 18px;
}

/* Pull quote */
.dia-quote {
  border-left: 2px solid var(--orange-3);
  padding: 2px 0 2px 24px;
  margin: 28px 0;
}
.dia-quote p {
  font-family: var(--sans); font-size: 19px; font-weight: 300;
  font-style: italic; color: var(--t2); line-height: 1.6; margin: 0;
}
.dia-quote cite {
  display: block; margin-top: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  color: var(--t4); letter-spacing: 0.1em; font-style: normal;
}

/* File sidebar */
.fc-sidebar {
  padding: 28px 24px;
}
.fc-sb-section { margin-bottom: 24px; }
.fc-sb-lbl {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; color: var(--orange-2); text-transform: uppercase;
  margin-bottom: 10px;
}
.fc-sb-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.fc-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--t4);
  border: 1px solid var(--line); padding: 4px 9px; border-radius: 2px;
  cursor: pointer; transition: all 0.12s;
}
.fc-tag:hover { color: var(--t1); border-color: var(--line-2); }
.fc-tag.orange { color: var(--orange-2); border-color: var(--orange-4); }
.fc-tag.orange:hover { background: var(--orange-5); border-color: var(--orange-3); }

/* ════════════════════════════════════════════════════════
   CONCEPT FILE
   ════════════════════════════════════════════════════════ */
.concept-view {
  animation: fadeUp 0.3s var(--ease) forwards;
}

.cv-header {
  padding: 40px 40px 32px;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 260px;
  gap: 48px;
}
.cv-type {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; color: var(--orange-2); text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.cv-type::before { content: '—'; color: var(--orange-3); }
.cv-title {
  font-family: var(--display); font-size: 56px; font-weight: 900;
  line-height: 0.92; letter-spacing: -0.03em; color: var(--t1); margin-bottom: 18px;
}
.cv-def {
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  line-height: 1.78; color: var(--t2); max-width: 580px;
}
.cv-stat-lbl { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.22em; color: var(--orange-2); text-transform: uppercase; margin-bottom: 5px; }
.cv-stat-val { font-family: var(--sans); font-size: 13px; color: var(--t2); line-height: 1.5; }
.cv-stats { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }

.cv-body {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}
.cv-col { padding: 32px 0; }
.cv-col:first-child { border-right: 1px solid var(--line); padding-right: 36px; }
.cv-col:last-child { padding-left: 36px; }
.cv-col-lbl {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--orange-2); text-transform: uppercase; margin-bottom: 20px;
}

.cv-study { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cv-study:last-child { border-bottom: none; }
.cv-cite { font-family: var(--mono); font-size: 10px; color: var(--orange-2); letter-spacing: 0.06em; margin-bottom: 6px; }
.cv-finding { font-family: var(--sans); font-size: 14px; color: var(--t3); line-height: 1.65; }
.cv-finding strong { color: var(--t1); font-weight: 500; }

.cv-miscon { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cv-miscon:last-child { border-bottom: none; }
.cv-wrong { font-family: var(--mono); font-size: 10.5px; color: var(--t5); text-decoration: line-through; margin-bottom: 6px; }
.cv-right { font-family: var(--sans); font-size: 14px; color: var(--t3); line-height: 1.6; }

.cv-vault {
  padding: 28px 40px; border-bottom: 1px solid var(--line);
}
.cv-vault-lbl {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--orange-2); text-transform: uppercase; margin-bottom: 14px;
}
.cv-vault-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-vault-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--t3);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 2px;
  cursor: pointer; transition: all 0.12s;
}
.cv-vault-tag:hover { color: var(--t1); border-color: var(--line-2); }
.cv-vault-tag.active { color: var(--orange-2); border-color: var(--orange-3); }

/* ════════════════════════════════════════════════════════
   NEWSLETTER STRIP — Archive Access Feel
   ════════════════════════════════════════════════════════ */
.nl-strip {
  border-top: 1px solid var(--line);
  padding: 40px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nl-left {}
.nl-lbl {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.25em; color: var(--orange-2); text-transform: uppercase; margin-bottom: 8px;
}
.nl-title {
  font-family: var(--display); font-size: 20px; font-weight: 800;
  letter-spacing: -0.01em; color: var(--t1); margin-bottom: 6px;
}
.nl-sub {
  font-family: var(--sans); font-size: 13px; color: var(--t4); line-height: 1.6;
}
.nl-form {
  display: flex; border: 1px solid var(--line); border-radius: 5px;
  overflow: hidden; min-width: 300px; flex-shrink: 0;
  transition: border-color 0.2s;
}
.nl-form:focus-within { border-color: var(--line-2); }
.nl-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 16px; font-family: var(--sans); font-size: 13px; color: var(--t1);
}
.nl-input::placeholder { color: var(--t5); }
.nl-btn {
  background: var(--orange); border: none; padding: 12px 18px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; color: #fff; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.nl-btn:hover { background: #dc3800; }

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.footer-brand {
  font-family: var(--display); font-size: 13px; font-weight: 900; color: var(--t4);
}
.footer-brand .period { color: var(--orange-3); }
.footer-tagline {
  font-family: var(--mono); font-size: 9px; color: var(--t6);
  letter-spacing: 0.1em; margin-top: 3px;
}
.footer-year {
  font-family: var(--mono); font-size: 10px; color: var(--t5); letter-spacing: 0.1em;
}

/* ════════════════════════════════════════════════════════
   RELATED ATHLETES
   ════════════════════════════════════════════════════════ */
.related-section {
  border-top: 1px solid var(--line);
  padding: 28px 40px;
}
.related-lbl {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; color: var(--orange-2); text-transform: uppercase; margin-bottom: 16px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.related-item {
  padding: 16px 18px; border-right: 1px solid var(--line);
  cursor: pointer; transition: background 0.12s;
}
.related-item:last-child { border-right: none; }
.related-item:hover { background: var(--panel); }
.ri-name {
  font-family: var(--display); font-size: 13px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--t2); margin-bottom: 4px;
}
.ri-sport { font-family: var(--mono); font-size: 9.5px; color: var(--t5); letter-spacing: 0.12em; text-transform: uppercase; }
.ri-link { font-family: var(--mono); font-size: 9px; color: var(--orange-3); margin-top: 5px; letter-spacing: 0.06em; }

/* ════════════════════════════════════════════════════════
   PSYCHOLOGICAL PROFILE CHART
   ════════════════════════════════════════════════════════ */
.profile-chart-wrap {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.profile-chart-svg { flex-shrink: 0; }

.profile-scores { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.score-row {
  display: flex; align-items: center; gap: 10px;
}
.score-label {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--t5); text-transform: uppercase;
  width: 80px; flex-shrink: 0;
}
.score-track {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.05); border-radius: 2px;
  overflow: hidden;
}
.score-fill {
  height: 100%; background: linear-gradient(90deg, rgba(200,55,0,0.5), rgba(200,55,0,0.8));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.score-val {
  font-family: var(--mono); font-size: 10px; color: var(--orange-2);
  width: 16px; text-align: right; flex-shrink: 0;
}

/* ── ATHLETE HERO IMAGE ─────────────────────────────────── */
.dir-hero-img-wrap {
  position: absolute;
  top: 0; right: 0;
  width: 340px; height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.dir-hero-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center top;
  filter: grayscale(0.3) contrast(1.05);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.dir-hero-initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 120px; font-weight: 900;
  color: rgba(255,255,255,0.03); letter-spacing: -0.05em;
}

/* ════════════════════════════════════════════════════════
   TRANSITIONS
   ════════════════════════════════════════════════════════ */
.fade-in { animation: fadeUp 0.3s var(--ease) forwards; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .dir-header { grid-template-columns: 1fr; gap: 24px; }
  .dir-meta-col { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .cv-body { grid-template-columns: 1fr; }
  .cv-col:first-child { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .cv-col:last-child { padding-left: 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .app-shell { position: relative; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .sidebar.open { transform: translateX(0); }
  .folder-grid { grid-template-columns: repeat(3, 1fr); }
  .fc-body { grid-template-columns: 1fr; }
  .fc-sidebar { border-top: 1px solid var(--line); }
  .nl-strip { flex-direction: column; align-items: flex-start; }
  .nl-form { min-width: unset; width: 100%; }
  .dir-name { font-size: 44px; }
  .cv-title { font-size: 42px; }
}
