/* =========================================================================
   V10b · LOWFPS  ·  camcorder / surveillance footage
   Letterboxed 16:9 view, every animation through steps(N) so motion is
   visibly choppy, blinking REC dot at 0.5 Hz, burned-in timecode + date,
   chroma bleed on display text, faint scanlines + tracking flicker.
   The medium is "recorded onto used tape stock at six frames per second."
   ========================================================================= */

:root {
  --bg:        #0A0C10;      /* very dark, slight blue tint */
  --bg-2:      #0E1218;
  --bg-3:      #161B24;
  --fg:        #D4D8DC;      /* washed-out grey-white */
  --fg-strong: #E8ECF0;
  --fg-mid:    #9A9DA2;
  --fg-muted:  #5C5F63;
  --fg-faint:  #3A3D42;
  --rec:       #E53935;      /* iconic camera REC red */
  --osd:       #F5C842;      /* burned-in OSD yellow */
  --osd-2:     #F0E64A;
  --chroma-r:  rgba(229, 57, 53, 0.32);
  --chroma-b:  rgba(74, 138, 255, 0.32);

  --mono:  'IBM Plex Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --osd-f: 'VT323', 'IBM Plex Mono', monospace;
  --sans:  'IBM Plex Sans Condensed', 'Inter', system-ui, sans-serif;
  --body:  'Inter', system-ui, sans-serif;
}

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

body.lowfps {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  cursor: crosshair;
  /* IMPORTANT: kill smooth motion globally — this is 6 FPS footage */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* every interactive transition snaps in 4 frames, never eases */
a, button, .file, .panel, .trans__row {
  transition: all 100ms steps(4, end) !important;
}

p, h1, h2, h3, h4, ol, ul, li, dl, dt, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a {
  color: var(--osd);
  text-decoration: none;
  border-bottom: 1px solid var(--osd);
}
a:hover { color: var(--bg); background: var(--osd); }
::selection { background: var(--osd); color: var(--bg); }

/* =========================================================================
   LETTERBOX BARS — fixed top + bottom, 60px each
   ========================================================================= */

.bar {
  position: fixed;
  left: 0; right: 0;
  background: #000;
  z-index: 90;
  pointer-events: none;
}
.bar--top    { top: 0;    height: 56px; border-bottom: 1px solid #000; }
.bar--bottom { bottom: 0; height: 56px; border-top: 1px solid #000; }

@media (max-width: 720px) {
  .bar--top, .bar--bottom { height: 40px; }
}

/* =========================================================================
   SCANLINES + VIGNETTE + TRACKING FLICKER
   ========================================================================= */

.scanlines {
  position: fixed; inset: 0;
  z-index: 88;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.16) 2px,
    rgba(0,0,0,0.16) 3px
  );
  mix-blend-mode: multiply;
}

.vignette {
  position: fixed; inset: 0;
  z-index: 87;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 50%, rgba(0,0,0,0.55) 100%);
}

.tracking {
  position: fixed;
  left: 0; right: 0;
  top: -10px;
  height: 8px;
  z-index: 89;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.10) 30%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.10) 70%,
    transparent 100%
  );
  mix-blend-mode: screen;
  animation: track 7s steps(28, end) infinite;
}
@keyframes track {
  0%, 84%   { transform: translateY(0); opacity: 0; }
  85%       { opacity: 1; }
  86%       { transform: translateY(20vh); }
  88%       { transform: translateY(60vh); }
  90%       { transform: translateY(100vh); opacity: 0; }
  100%      { transform: translateY(100vh); opacity: 0; }
}

/* =========================================================================
   CAMCORDER HUD — top corners + bottom corners
   ========================================================================= */

.hud {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  font-family: var(--osd-f);
  color: var(--osd);
  text-shadow:
    1px 0 var(--chroma-r),
    -1px 0 var(--chroma-b);
}

.hud > div {
  position: fixed;
  padding: 4px 12px;
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  gap: 14px;
  align-items: center;
}

.hud__tl { top: 14px; left: 16px;  }
.hud__tr { top: 14px; right: 16px; }
.hud__bl { bottom: 14px; left: 16px; }
.hud__br { bottom: 14px; right: 16px; }

.hud__rec {
  color: var(--rec);
  text-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}
.rec-dot {
  width: 11px; height: 11px;
  background: var(--rec);
  border-radius: 50%;
  display: inline-block;
  animation: rec 1.6s steps(2, end) infinite;
  box-shadow: 0 0 6px rgba(229, 57, 53, 0.6);
}
@keyframes rec {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0.15; }
}

.hud__tape, .hud__bat, .hud__date, .hud__zoom, .hud__fps, .hud__tc {
  color: var(--osd);
}

@media (max-width: 720px) {
  .hud > div { font-size: 14px; padding: 2px 8px; gap: 8px; }
  .hud__bl, .hud__br { bottom: 8px; }
  .hud__tl, .hud__tr { top: 8px; }
  .hud__tape, .hud__zoom { display: none; }
}

/* =========================================================================
   MAIN CONTENT FRAME
   ========================================================================= */

main, section { position: relative; z-index: 10; }

.slate, .ch, .end {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;
}

/* =========================================================================
   SLATE (title card)
   ========================================================================= */

.slate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.slate__clap {
  font-family: var(--osd-f);
  color: var(--fg-strong);
  background: #1A1F26;
  border: 2px solid var(--fg-mid);
  padding: 0;
  width: 240px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 0 6px #000;
}
.slate__clap-top {
  display: flex;
  height: 28px;
  border-bottom: 2px solid var(--fg-mid);
}
.stripe { flex: 1; background: #000; }
.stripe--alt { background: var(--fg-strong); }

.slate__board { padding: 14px 16px; }
.slate__row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  font-size: 18px;
  letter-spacing: 0.04em;
  border-bottom: 1px dashed var(--fg-faint);
}
.slate__row:last-child { border-bottom: 0; }
.slate__row span { color: var(--fg-muted); flex: 0 0 auto; min-width: 56px; }
.slate__row b { color: var(--osd); flex: 1; font-weight: 400; }

.slate__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--rec);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.slate__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(60px, 11vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--fg-strong);
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow:
    2px 0 var(--chroma-r),
    -2px 0 var(--chroma-b);
}
.slate__deck {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 56ch;
}
.slate__deck b { color: var(--osd); font-weight: 500; }

@media (max-width: 900px) {
  .slate { grid-template-columns: 1fr; padding: 80px 24px; }
  .slate__clap { margin: 0; }
  .slate, .ch, .end { padding-left: 24px; padding-right: 24px; }
}

/* =========================================================================
   CHAPTERS
   ========================================================================= */

.ch {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--fg-faint);
}

.ch__h {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 14px;
  margin-bottom: 40px;
  border-bottom: 1px dashed var(--fg-faint);
}
.ch__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--rec);
  text-transform: uppercase;
}
.ch__t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
  text-shadow:
    1.5px 0 var(--chroma-r),
    -1.5px 0 var(--chroma-b);
}
.ch__tc {
  font-family: var(--osd-f);
  font-size: 17px;
  color: var(--osd);
  letter-spacing: 0.04em;
}
.ch__d {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

/* =========================================================================
   GRID / PANELS
   ========================================================================= */

.grid--2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-2);
  border: 1px solid var(--fg-faint);
  padding: 22px 24px;
}
.panel__lab {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--rec);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.panel__h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.012em;
  color: var(--fg-strong);
  margin-bottom: 12px;
}
.panel__b {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 10px;
}

.panel--data { background: #07090C; }

.readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.readout > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dotted var(--fg-faint);
  font-family: var(--mono);
  font-size: 12px;
}
.readout dt { color: var(--fg-muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.readout dd { color: var(--osd); font-family: var(--osd-f); font-size: 19px; }
.readout__warn { color: var(--rec) !important; }
.readout__ok   { color: #5CD679 !important; }

/* =========================================================================
   FILED PROJECTS — surveillance camera thumbnails
   ========================================================================= */

.files {
  display: grid;
  gap: 24px;
}

.file {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background: var(--bg-2);
  border: 1px solid var(--fg-faint);
  padding: 0;
}
@media (max-width: 760px) { .file { grid-template-columns: 1fr; } }

.file__thumb {
  position: relative;
  min-height: 200px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0 1px,
      rgba(255,255,255,0.04) 1px 2px
    ),
    #0E1418;
  overflow: hidden;
}
/* fake camera scenes — three different temperatures */
.file__thumb--a {
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 1px, rgba(255,255,255,0.04) 1px 2px),
    radial-gradient(80% 80% at 30% 40%, #3A2618 0%, #1A1006 60%, #06030A 100%);
}
.file__thumb--b {
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 1px, rgba(255,255,255,0.04) 1px 2px),
    radial-gradient(80% 80% at 70% 50%, #1A2A20 0%, #0E1A12 60%, #03080A 100%);
}
.file__thumb--c {
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 1px, rgba(255,255,255,0.04) 1px 2px),
    radial-gradient(80% 80% at 40% 60%, #0E1A2A 0%, #08121E 60%, #02060A 100%);
}

.file__rec {
  position: absolute;
  top: 8px; left: 10px;
  font-family: var(--osd-f);
  font-size: 16px;
  color: var(--rec);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.file__caption {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--osd-f);
  font-size: 14px;
  color: var(--osd);
  letter-spacing: 0.04em;
}

.file__meta { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.file__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rec);
  text-transform: uppercase;
}
.file__t {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.018em;
  color: var(--fg-strong);
  margin: 4px 0 6px;
}
.file__v {
  font-family: var(--osd-f);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--osd);
  margin-left: 6px;
}
.file__d {
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg);
  margin: 6px 0 14px;
}
.file__row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px dotted var(--fg-faint);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.file__row span {
  color: var(--fg-muted);
  font-size: 10px;
  letter-spacing: 0.10em;
  padding-top: 3px;
}

/* =========================================================================
   TRANSCRIPTS (writing)
   ========================================================================= */

.trans { display: grid; gap: 0; }
.trans__row {
  display: grid;
  grid-template-columns: 160px 100px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--fg-faint);
}
.trans__tc {
  font-family: var(--osd-f);
  font-size: 17px;
  color: var(--osd);
  letter-spacing: 0.04em;
}
.trans__d {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.trans__t {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--fg-strong);
  border-bottom: 0;
  text-transform: uppercase;
}
.trans__t:hover { color: var(--osd); background: transparent; }

@media (max-width: 720px) {
  .trans__row { grid-template-columns: 1fr; gap: 2px; }
}

/* =========================================================================
   CONTACT
   ========================================================================= */

.contact {
  background: var(--bg-2);
  border: 1px solid var(--fg-faint);
  padding: 28px 32px;
}
.contact__lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rec);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.contact__list { display: grid; gap: 4px; }
.contact__list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--fg-faint);
  align-items: baseline;
}
.contact__list dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.contact__list dd {
  font-family: var(--osd-f);
  font-size: 22px;
  color: var(--osd);
  letter-spacing: 0.02em;
}
.contact__list a { font-family: inherit; font-size: inherit; }

/* =========================================================================
   END CARD
   ========================================================================= */

.end {
  padding-top: 80px;
  padding-bottom: 120px;
  text-align: center;
  border-top: 1px solid var(--fg-faint);
}
.end__t {
  font-family: var(--osd-f);
  font-size: 32px;
  color: var(--osd);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  animation: blink-slow 3s steps(2, end) infinite;
}
@keyframes blink-slow { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0.25; } }

.end__sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--rec);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.end__copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
