/* ═══════════════════════════════════════════
   JAMMY JINGLE — SITE STYLESHEET
   jammyjingle.com ⚙ NORTH POLE, SECTOR B
   Workshop Technician, Grade 7
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=Space+Mono:wght@400;700&family=DM+Sans:wght@400&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  /* — color system — */
  --bg:           #F5EED8;
  --bg-alt:       #EDE4C8;
  --amber:        #C47A2C;
  --amber-dim:    #8A5218;
  --amber-glow:   rgba(196, 122, 44, 0.12);
  --amber-glow-strong: rgba(196, 122, 44, 0.22);
  --forest:       #2D4A2D;
  --cream:        #1A1A0A;
  --text:         #1A1A0A;
  --text-muted:   #6B6055;
  --caution:      #F0B429;
  --rust:         #8B3E1E;
  --border:       #C47A2C;
  --border-dash:  #C47A2C;
  --widget-bg:    #EDE4C4;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #C47A2C var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-dim); }

/* ── FILM GRAIN (heavier than Jonny's) ── */
body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  animation: grain 0.4s steps(1) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-10%); }
  20% { transform: translate(-15%,5%); }
  30% { transform: translate(7%,-25%); }
  40% { transform: translate(-5%,25%); }
  50% { transform: translate(-15%,10%); }
  60% { transform: translate(15%,0%); }
  70% { transform: translate(0%,15%); }
  80% { transform: translate(3%,35%); }
  90% { transform: translate(-10%,10%); }
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.025) 2px,
    rgba(0,0,0,0.025) 4px
  );
}

/* ── CAUTION STRIPE DIVIDER ── */
.caution-stripe {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber-dim) 0px,
    var(--amber-dim) 8px,
    #EDE4C8 8px,
    #EDE4C8 16px
  );
  opacity: 0.8;
}

.caution-stripe-wide {
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber-dim) 0px,
    var(--amber-dim) 10px,
    #EDE4C8 10px,
    #EDE4C8 20px
  );
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(245,238,216,0.97);
  border-bottom: 1px solid var(--border-dash);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.nav-logo .gear { color: var(--amber); margin-right: 6px; }
.nav-logo:hover { color: var(--amber-dim); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--amber-dim); border-color: var(--border-dash); }
.nav-links a.active { color: var(--amber); }

.nav-sep {
  color: var(--border-dash);
  font-size: 8px;
  pointer-events: none;
  user-select: none;
  font-family: 'Courier Prime', monospace;
}

.nav-shift {
  display: none;
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
@media (min-width: 860px) { .nav-shift { display: block; } }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.5) contrast(1.1) brightness(0.7);
}

.hero-gradient {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 75%;
  background: linear-gradient(to top, var(--bg) 0%, rgba(245,238,216,0.88) 40%, transparent 100%);
}

/* amber workshop lamp glow */
.hero-glow {
  position: absolute;
  top: 20%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(196,122,44,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px 64px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 768px) { .hero-content { padding: 0 48px 80px; } }

.hero-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber-dim);
}

.hero-name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 108px);
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--cream);
  text-transform: uppercase;
}

.hero-tagline {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(11px, 1.4vw, 13px);
  color: var(--text-muted);
  margin-top: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-tagline .accent { color: var(--amber); }

.hero-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 6px 14px;
  border: 1px solid var(--amber-dim);
  border-radius: 2px;
  color: var(--amber);
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(184,134,11,0.06);
  transition: background 0.2s, border-color 0.2s;
}
.hero-ig:hover { background: rgba(184,134,11,0.14); border-color: var(--amber); }

/* ═══════════════════════════════════════════
   SECTION SCAFFOLDING
   ═══════════════════════════════════════════ */
section {
  position: relative;
  padding: 90px 28px;
}
@media (min-width: 768px) { section { padding: 120px 48px; } }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* OSHA-style section label */
.section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '▶';
  color: var(--amber);
  font-size: 7px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dash);
  border-top: 1px dashed var(--border-dash);
  background: none;
}

.section-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 48px);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 12px;
}

.section-subheading {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* alt background sections */
.section-alt {
  background: var(--bg-alt);
}

/* amber glow sections */
.section-glow {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(196,122,44,0.08) 0%, transparent 70%), var(--bg);
}

/* ═══════════════════════════════════════════
   BIO / INCIDENT REPORT
   ═══════════════════════════════════════════ */
.bio-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 56px;
}

.bio-entry {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px dashed var(--border-dash);
  align-items: start;
}
.bio-entry:first-child { border-top: 1px dashed var(--border-dash); }

.bio-entry-num {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
  padding-top: 3px;
  font-weight: 700;
}

.bio-entry-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.bio-entry-text em {
  color: var(--cream);
  font-style: normal;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--amber);
}

/* HR file stats block */
.hr-file {
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
  padding: 28px;
}

.hr-file-header {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-dash);
}

.hr-file-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
@media (min-width: 600px) {
  .hr-file-grid { grid-template-columns: repeat(3, 1fr); }
}

.hr-field-label {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.hr-field-value {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--cream);
  line-height: 1.4;
}
.hr-field-value.amber { color: var(--amber); }

/* ═══════════════════════════════════════════
   WORKSHOP / JOB DESCRIPTION
   ═══════════════════════════════════════════ */
.workshop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .workshop-layout { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
}

.workshop-image-wrap {
  position: relative;
  border: 1px dashed var(--border-dash);
}
.workshop-image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.15) brightness(0.85);
  display: block;
}
/* amber glow overlay on workshop images */
.workshop-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 40%;
  background: linear-gradient(to top, rgba(196,122,44,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.workshop-image-label {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 10px;
  border-top: 1px dashed var(--border-dash);
}

.job-spec {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-spec-row {
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-dash);
}
.job-spec-row:first-child { border-top: 1px dashed var(--border-dash); }

.job-spec-key {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.job-spec-value {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--cream);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   GALLERY / DOCUMENTATION
   ═══════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #D8D0BA;
  cursor: pointer;
  border: 1px dashed var(--border);
}
.gallery-item::before {
  content: '';
  display: block;
  padding-top: 120%;
}
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item.wide::before { padding-top: 60%; }

.gallery-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.4) contrast(1.1) brightness(0.9);
  transition: filter 0.3s, transform 0.3s;
}
.gallery-item:hover img {
  filter: saturate(0.6) contrast(1.15) brightness(1.0);
  transform: scale(1.02);
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 10px 10px;
  background: linear-gradient(to top, rgba(26,26,10,0.88) 0%, transparent 100%);
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption .ref { color: var(--amber); margin-right: 6px; }

/* ═══════════════════════════════════════════
   FAMILY CARDS
   ═══════════════════════════════════════════ */
.family-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) {
  .family-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 900px) {
  .family-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.family-card {
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
  overflow: hidden;
}

.family-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.45) contrast(1.1) brightness(0.9);
  display: block;
  transition: filter 0.3s;
}
.family-card:hover .family-card-image { filter: saturate(0.65) contrast(1.1) brightness(1.0); }

.family-card-body {
  padding: 16px;
  border-top: 1px dashed var(--border-dash);
}

.family-card-id {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.family-card-quote {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.family-card-link {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--amber-dim);
  text-transform: uppercase;
}
.family-card-link:hover { color: var(--amber); }

/* ═══════════════════════════════════════════
   MOOD / DIAGNOSTIC READOUT
   ═══════════════════════════════════════════ */
.mood-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .mood-layout { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
}

.diagnostic-panel {
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
}

.diagnostic-header {
  padding: 10px 16px;
  background: rgba(196,122,44,0.06);
  border-bottom: 1px dashed var(--border-dash);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.diagnostic-header .status-dot {
  width: 6px; height: 6px;
  background: var(--caution);
  flex-shrink: 0;
}

.diagnostic-body { padding: 20px 16px; }

.mood-current-status {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.mood-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mood-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mood-bar-label {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  width: 100px;
  flex-shrink: 0;
  text-align: right;
}

.mood-bar-track {
  flex: 1;
  height: 2px;
  background: var(--border-dash);
  overflow: visible;
  position: relative;
}

.mood-bar-fill {
  height: 100%;
  background: var(--amber-dim);
  position: relative;
}
.mood-bar-fill.high { background: var(--amber); }
.mood-bar-fill.caution { background: var(--caution); }

.mood-bar-val {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  color: var(--text-muted);
  width: 24px;
  flex-shrink: 0;
}

/* mood portraits grid */
.mood-portraits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mood-portrait {
  position: relative;
  overflow: hidden;
  border: 1px dashed var(--border);
  cursor: default;
}
.mood-portrait::before {
  content: '';
  display: block;
  padding-top: 130%;
}
.mood-portrait img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.4) contrast(1.1) brightness(0.9);
  transition: filter 0.25s;
}
.mood-portrait:hover img { filter: saturate(0.6) brightness(1.0); }

.mood-portrait-label {
  position: absolute;
  bottom: 6px; left: 6px;
  font-family: 'Courier Prime', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  background: rgba(26,26,10,0.82);
  padding: 2px 5px;
}

/* inner monologue */
.inner-monologue {
  grid-column: 1 / -1;
  margin-top: 8px;
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
}
.inner-monologue-header {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  padding: 8px 14px;
  border-bottom: 1px dashed var(--border-dash);
}
.inner-monologue-text {
  padding: 16px 14px;
  font-family: 'Courier Prime', monospace;
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6,6,5,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}
/* No transition on lightbox — industrial, cuts in */
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--amber); }

/* ═══════════════════════════════════════════
   PAGE LAYOUT (sub-pages)
   ═══════════════════════════════════════════ */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 28px 80px;
}

.page-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border-dash);
}

.page-header-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-header-label::before { content: '▶'; font-size: 7px; }

.page-header h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -0.01em;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — PERSONNEL FILE
   ═══════════════════════════════════════════ */
.personnel-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 800px) {
  .personnel-hero { grid-template-columns: 320px 1fr; gap: 64px; }
}

.personnel-photo {
  position: relative;
  border: 1px dashed var(--border-dash);
}
.personnel-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.35) contrast(1.15) brightness(0.85);
  display: block;
}
.personnel-photo-label {
  padding: 8px 12px;
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-top: 1px dashed var(--border-dash);
}

.personnel-info { padding-top: 8px; }

.personnel-quote {
  font-family: 'Courier Prime', monospace;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 2px solid var(--amber-dim);
}

.personnel-stats {
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
}

.personnel-stats-header {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  padding: 8px 14px;
  border-bottom: 1px dashed var(--border-dash);
  background: rgba(196,122,44,0.05);
}

.personnel-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.stat-cell {
  padding: 12px 14px;
  border-right: 1px dashed var(--border-dash);
  border-bottom: 1px dashed var(--border-dash);
}
.stat-cell:nth-child(even) { border-right: none; }

.stat-cell-label {
  font-family: 'Courier Prime', monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.stat-cell-value {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--cream);
}
.stat-cell-value.amber { color: var(--amber); }

/* section divider (dashed rule) */
.rule {
  border: none;
  border-top: 1px dashed var(--border-dash);
  margin: 40px 0;
}

/* about body text */
.about-section { margin-bottom: 52px; }

.about-section-title {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-section-title::after {
  content: '';
  flex: 1;
  border-top: 1px dashed var(--border-dash);
}
.about-section-title .amber { color: var(--amber); }

.about-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.01em;
}
.about-body p { margin-bottom: 18px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body em { color: var(--cream); font-style: italic; }

/* trait/performance review cards */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.trait-card {
  padding: 14px 16px;
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
  transition: border-color 0.2s;
}
.trait-card:hover { border-color: var(--amber-dim); }

.trait-card-name {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.trait-card-desc {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.trait-rating {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.trait-rating .denom {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   WORKSHOP PAGE
   ═══════════════════════════════════════════ */
.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.inventory-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-dash);
  align-items: center;
}
.inventory-item:first-child { border-top: 1px dashed var(--border-dash); }

.inventory-num {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

.inventory-name {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inventory-status {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: right;
}
.inventory-status.ok { color: var(--amber-dim); }

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rule-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--border-dash);
}
.rule-item:first-child { border-top: 1px dashed var(--border-dash); }

.rule-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--amber-dim);
  line-height: 1;
  padding-top: 2px;
}

.rule-text {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.rule-subtext {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

/* fixed work block */
.fixed-item {
  padding: 20px 0;
  border-bottom: 1px dashed var(--border-dash);
}
.fixed-item:first-child { border-top: 1px dashed var(--border-dash); }

.fixed-date {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--amber-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fixed-title {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.fixed-desc {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   PHOTOS PAGE — MASONRY GRID
   ═══════════════════════════════════════════ */
.photos-grid {
  columns: 2;
  column-gap: 8px;
}
@media (min-width: 600px) { .photos-grid { columns: 3; } }
@media (min-width: 900px) { .photos-grid { columns: 4; } }

.photo-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
  break-inside: avoid;
  overflow: hidden;
  border: 1px dashed var(--border);
}
.photo-item img {
  width: 100%; display: block;
  filter: saturate(0.4) contrast(1.1) brightness(0.9);
  transition: filter 0.25s;
}
.photo-item:hover img { filter: saturate(0.6) contrast(1.1) brightness(1.0); }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(to top, rgba(26,26,10,0.88) 0%, transparent 100%);
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-item:hover .photo-caption { opacity: 1; }
.photo-caption .ref { color: var(--amber); margin-right: 6px; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 56px 28px 40px;
  border-top: 1px dashed var(--border-dash);
  margin-top: 60px;
  background: var(--bg-alt);
}

.footer-sector {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--amber); }

.footer-catchphrase {
  font-family: 'Courier Prime', monospace;
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-copy {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL — CUTS IN, NO FLOAT
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
}
.reveal.visible {
  opacity: 1;
  transition: opacity 0.15s;
}
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.10s; }
.reveal-d3 { transition-delay: 0.15s; }

/* ═══════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════ */
.mono { font-family: 'Courier Prime', monospace; }
.ibm  { font-family: 'IBM Plex Mono', monospace; font-weight: 700; }
.space { font-family: 'Space Mono', monospace; }
.amber { color: var(--amber); }
.muted { color: var(--text-muted); }

/* two-col text layout */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .two-col-text { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ═══════════════════════════════════════════
   BLOG / COMING SOON
   ═══════════════════════════════════════════ */
.coming-soon-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 60px 28px;
}

.coming-soon-label {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--amber-dim);
  text-transform: uppercase;
}

.coming-soon-title {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.coming-soon-body {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.7;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   VIDEO / AUDIO — ON THE CLOCK
   ═══════════════════════════════════════════ */

/* Featured video player */
.video-featured {
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
  margin-bottom: 40px;
}

.video-featured video {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  background: #0E0C0A;
}

.video-featured-caption {
  padding: 10px 14px;
  border-top: 1px dashed var(--border-dash);
  font-family: 'Courier Prime', monospace;
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Video clip grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
@media (min-width: 600px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

.video-card {
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
  overflow: hidden;
  position: relative;
}

.video-card-label {
  font-family: 'Courier Prime', monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
  padding: 8px 10px 6px;
  border-bottom: 1px dashed var(--border-dash);
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-card-label::before {
  content: '●';
  font-size: 6px;
  color: var(--caution);
}

.video-card video {
  display: block;
  width: 100%;
  background: #0E0C0A;
}

.video-card-caption {
  padding: 8px 10px 10px;
  font-family: 'Courier Prime', monospace;
  font-style: italic;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px dashed var(--border-dash);
}

/* Audio log */
.audio-log {
  border: 1px dashed var(--border-dash);
  background: var(--widget-bg);
}

.audio-log-header {
  padding: 10px 16px;
  background: rgba(196,122,44,0.06);
  border-bottom: 1px dashed var(--border-dash);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-log-body { padding: 20px 16px; }

.audio-track {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-dash);
}
.audio-track:first-child { border-top: 1px dashed var(--border-dash); }

.audio-track-info {}

.audio-track-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.audio-track-note {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

.audio-track audio {
  width: 220px;
  flex-shrink: 0;
}
@media (max-width: 599px) {
  .audio-track {
    grid-template-columns: 1fr;
  }
  .audio-track audio { width: 100%; }
}
