/* ============================================================
   TEL AVIV AI SECURITY FORUM — CRT phosphor console
   Heron blue phosphor on a dark tube
   ============================================================ */

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

:root {
  --bg:      #02070d;
  --bg2:     #04101b;
  --p:       #58b6ff;   /* phosphor */
  --p-hi:    #d6efff;   /* bright phosphor */
  --p-dim:   #2f6a95;   /* dim phosphor */
  --p-deep:  #1c5687;
  --panel:   rgba(10, 26, 44, 0.45);
  --edge:    #163a5c;
  --warn:    #6fe0d0;
  --red:     #ff4757;
  --red-dim: #b33240;
  --green:   #3ddc84;
  --glow:    0 0 6px rgba(88, 182, 255, 0.55);
  --glow-hi: 0 0 10px rgba(88, 182, 255, 0.85);
  --glow-red: 0 0 12px rgba(255, 71, 87, 0.65);
  --glow-led: 0 0 2px rgba(255,255,255,0.95), 0 0 12px rgba(120,200,255,0.95), 0 0 30px rgba(88,182,255,0.8), 0 0 64px rgba(88,182,255,0.45);
  --mono:    'IBM Plex Mono', monospace;
  --pixel:   'VT323', monospace;
  --sb-h:    30px;
}

html { scroll-behavior: smooth; }
body {
  background: radial-gradient(130% 130% at 50% 40%, #04121e 0%, #02090f 62%, #010509 100%);
  color: var(--p);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  text-shadow: var(--glow);
  overflow-x: hidden;
}

/* ============================================================
   CRT OVERLAYS
   ============================================================ */
.crt-scanlines, .crt-vignette, .crt-flicker, .crt-bezel {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000;
}
.crt-scanlines {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: 0.55;
}
.crt-vignette {
  background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,0.7) 100%);
}
.crt-flicker {
  background: rgba(88,182,255,0.02);
  animation: flick 6s infinite steps(1);
}
@keyframes flick { 0%,96%,100% { opacity: 1; } 97% { opacity: 0.72; } 98% { opacity: 1; } 99% { opacity: 0.85; } }
/* faint tube frame */
.crt-bezel {
  border-radius: 26px;
  z-index: 9100;
  box-shadow:
    inset 0 0 140px rgba(88,182,255,0.06),
    inset 0 0 26px rgba(0,0,0,0.9),
    0 0 0 8px #060a0f,
    0 0 0 11px #02060a;
}

/* animated phosphor grain / static */
.crt-noise {
  position: fixed; inset: -60%; z-index: 8990; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: crt-noise 0.5s steps(3) infinite;
}
@keyframes crt-noise {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -3%); }
  100% { transform: translate(-2%, -1%); }
}

/* slow rolling scan beam */
.crt-scanbeam {
  position: fixed; left: 0; right: 0; top: -140px; height: 140px;
  z-index: 9001; pointer-events: none;
  background: linear-gradient(to bottom,
    transparent,
    rgba(88,182,255,0.05) 42%,
    rgba(214,239,255,0.11) 50%,
    rgba(88,182,255,0.05) 58%,
    transparent);
  animation: crt-scanbeam 7s linear infinite;
}
@keyframes crt-scanbeam {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(100vh + 140px)); }
}

/* one-shot power-on: a bright line that expands to fill, then fades */
.crt-power {
  position: fixed; inset: 0; z-index: 9200; pointer-events: none;
  background: #eaf7ff; opacity: 0;
}
body.power-on .crt-power { animation: crt-power 0.62s ease-out forwards; }
@keyframes crt-power {
  0%   { opacity: 0;    clip-path: inset(49.85% 0 49.85% 0); }
  7%   { opacity: 0.95; clip-path: inset(49.7% 0 49.7% 0); }
  38%  { opacity: 0.55; clip-path: inset(0 0 0 0); }
  100% { opacity: 0;    clip-path: inset(0 0 0 0); }
}

/* ============================================================
   BOOT SCREEN
   ============================================================ */
#boot-screen {
  position: fixed; inset: 0; z-index: 9500;
  background: #010509;
  padding: 40px 44px;
  display: flex; align-items: flex-start;
  transition: opacity 0.2s ease;
}
#boot-screen.fade-out { opacity: 0; pointer-events: none; }
#boot-inner { width: 100%; max-width: 760px; font-size: 14px; color: var(--p); }
#boot-log { line-height: 1.7; }
#boot-log .l { display: block; }
.log-ok   { color: var(--p); }
.log-info { color: var(--p-hi); }
.log-warn { color: var(--warn); }
.log-dim  { color: var(--p-dim); }
#cursor-line { display: flex; align-items: center; margin-top: 4px; }
#boot-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.p-dim { color: var(--p-dim); }

/* ============================================================
   VISIBILITY
   ============================================================ */
.hidden { display: none !important; }
#site { opacity: 0; transition: opacity 0.3s ease; }
#site.visible { opacity: 1; }

/* ============================================================
   STATUS BAR
   ============================================================ */
#statusbar {
  position: sticky; top: 0; z-index: 200;
  height: var(--sb-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  background: rgba(2, 10, 18, 0.92);
  border-bottom: 1px solid var(--edge);
  font-size: 13px;
  box-shadow: 0 2px 24px rgba(88,182,255,0.1);
  backdrop-filter: blur(2px);
}
.sb-left, .sb-right { display: flex; align-items: center; gap: 10px; }
.sb-host { color: var(--p-hi); }
.sb-path { color: var(--p); }
.sb-sep  { color: var(--p-dim); }
.sb-nav { display: flex; gap: 4px; margin-left: 8px; }
.sb-nav a { color: var(--p-dim); text-decoration: none; padding: 0 8px; }
.sb-nav a:hover { color: var(--p-hi); text-shadow: var(--glow-hi); }
.sb-nav a.active { color: var(--p-hi); border-bottom: 1px solid var(--p); }
.sb-clock { color: var(--warn); }
.sb-logos { display: flex; align-items: center; gap: 12px; margin-right: 6px; }
.sb-heron img { width: auto; display: block; filter: drop-shadow(0 0 4px rgba(88,182,255,0.6)); opacity: 0.92; }
.sb-logos a:first-child img { height: 20px; }   /* AISF mark (taller, two-line) */
.sb-logos a:last-child img  { height: 13px; }   /* Heron wordmark */
.sb-heron:hover img { opacity: 1; filter: drop-shadow(0 0 8px rgba(88,182,255,0.95)); }

/* ============================================================
   TOP / BOTTOM DOTTED RULES (corner-bracket style dividers)
   ============================================================ */
.rule {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 10px;
}
.rule-mark {
  color: var(--p-dim);
  font-size: 14px;
  line-height: 1;
  text-shadow: var(--glow);
}
.rule-line {
  flex: 1;
  height: 0;
  border-top: 1px dotted var(--edge);
}

/* ============================================================
   TERMINAL BODY
   ============================================================ */
.term {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 32px 120px;
}
.term > section, .term > .rule { position: relative; z-index: 1; }
.blk { margin-bottom: 42px; }

/* big skyline backdrop on the right, bleeding off the edge */
/* left edge and the text column are both percentages of .term, so they scale
   together and can never collide, whatever the viewport width */
.skyline-bg {
  position: absolute;
  top: 150px;
  left: 58%;
  right: -19vw;
  z-index: 0;
  pointer-events: none;
}
.skyline-bg img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(88,182,255,0.4));
  /* soften the hard bottom edge where the reflection is cropped */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, #000 74%, rgba(0,0,0,0) 100%);
}

.hero-grid { display: block; }
.hero-copy { max-width: 82%; min-width: 0; }
.hero-copy .hero-id,
.hero-copy .hero-desc,
.hero-copy .hero-warn { max-width: 54%; }
.museum-caption {
  text-align: left;
  color: var(--p-dim);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-top: 2px;
}
@media (max-width: 900px) {
  .skyline-bg { display: none; }
  .hero-copy { max-width: none; }
  .hero-copy .hero-id,
  .hero-copy .hero-desc,
  .hero-copy .hero-warn { max-width: none; }
}

.banner {
  color: var(--p);
  font-size: clamp(8px, 1.7vw, 15px);
  line-height: 1.1;
  white-space: pre;
  text-shadow: var(--glow-hi);
  overflow: hidden;
  animation: rgb-shift 3.5s ease-in-out infinite, banner-glitch 8s linear infinite;
}
.banner-led {
  font-family: 'Bitcount Grid Single', var(--mono);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.12;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  /* solid fill + layered neon: the LED font carries the terminal character on
     its own, so the letterforms stay unbroken and legible at phone sizes */
  color: #eaf7ff;
  text-shadow: var(--glow-led);
  animation: rgb-shift 3.5s ease-in-out infinite, banner-glitch 8s linear infinite;
}
/* chromatic aberration — red/cyan fringing that breathes */
@keyframes rgb-shift {
  0%, 100% { text-shadow: var(--glow-led), -1px 0 rgba(255,40,90,0.28),  1px 0 rgba(40,220,255,0.28); }
  50%      { text-shadow: var(--glow-led), -2px 0 rgba(255,40,90,0.24),  2px 0 rgba(40,220,255,0.24); }
}
/* rare horizontal desync glitch */
@keyframes banner-glitch {
  0%, 96%, 100% { transform: translate(0,0) skewX(0); }
  96.6% { transform: translate(-2px,0) skewX(-1.2deg); }
  97.2% { transform: translate(3px,0)  skewX(1.2deg); }
  97.8% { transform: translate(-1px,0) skewX(0); }
}
.banner-sub {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.28em;
  margin: 2px 0 0;
  text-shadow: var(--glow-red);
}
.hero-copy .museum-caption { margin-bottom: 26px; }

/* prompt lines */
.cmd { font-size: 15px; margin-bottom: 8px; }
.usr { color: var(--p-dim); }
.pn  { color: var(--p-dim); }
.cmd { color: var(--p-hi); }
.out { color: var(--p); }

.hero-id { font-size: 18px; color: var(--p-hi); text-shadow: var(--glow-hi); }
.typed { color: var(--p-hi); }
.cur { color: var(--p); animation: blink 1s step-end infinite; }
.hero-desc { color: var(--p); margin-top: 8px; }

/* actions */
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-block;
  background: var(--p);
  color: #02070d;
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: none;
  box-shadow: 0 0 16px rgba(88,182,255,0.5);
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--p-hi); color: #02070d; text-shadow: none; box-shadow: 0 0 26px rgba(88,182,255,0.8); }
.btn.ghost {
  background: transparent;
  color: var(--p);
  border: 1px solid var(--p-deep);
  box-shadow: none;
  text-shadow: var(--glow);
}
.btn.ghost:hover {
  background: var(--p);
  border-color: var(--p-hi);
  color: #02070d;
  text-shadow: none;
  box-shadow:
    0 0 10px rgba(88,182,255,0.95),
    0 0 26px rgba(88,182,255,0.7),
    0 0 54px rgba(120,200,255,0.45);
}
.btn.primary {
  background: rgba(255, 71, 87, 0.12);
  color: var(--red);
  border: 1px solid var(--red);
  box-shadow: 0 0 16px rgba(255,71,87,0.35);
  text-shadow: var(--glow-red);
}
.btn.primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: #02070d;
  text-shadow: none;
  box-shadow: 0 0 26px rgba(255,71,87,0.6);
}
.warn { color: var(--warn); font-size: 13px; }
.hero-warn { margin-top: 10px; }

/* key/value block */
.kvs { display: flex; flex-direction: column; gap: 6px; }
.kv { display: flex; gap: 4px; align-items: baseline; font-size: 15px; flex-wrap: wrap; }
.k  { color: var(--p-dim); min-width: 92px; }
.eq { color: var(--p-dim); padding: 0 4px; }
.v  { color: var(--p-hi); }
.kv a { color: var(--p-hi); text-decoration: underline; text-underline-offset: 3px; }
.kv a:hover { color: #fff; text-shadow: var(--glow-hi); }

/* prose */
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose p { color: var(--p); }
.comment { color: var(--p-dim); font-size: 13px; letter-spacing: 0.06em; }
.comment.subtitle-red { color: var(--red); text-shadow: var(--glow-red); font-size: 15px; }
.hl { color: var(--p-hi); text-shadow: var(--glow-hi); }
.prose p.lead { color: var(--p-hi); text-shadow: var(--glow-hi); }
.prose p.lead .hl { color: var(--warn); text-shadow: none; }
.topics-list li { color: var(--warn); }
.topics-list .arr { color: var(--green); }
.prose a { color: var(--p-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; }
.status-open { color: var(--warn); font-weight: 600; }

.list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.list li { display: flex; gap: 10px; color: var(--p); font-size: 15px; }
.arr { color: var(--p); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }

/* quotes */
.quotes { display: flex; flex-direction: column; gap: 14px; }
blockquote {
  border-left: 2px solid var(--p-deep);
  padding-left: 14px;
  color: var(--p);
  font-style: italic;
}
blockquote cite { display: block; color: var(--p-dim); font-style: normal; font-size: 13px; margin-top: 5px; }

/* TBA */
.tba {
  border: 1px dashed var(--p-deep);
  padding: 34px 30px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: inset 0 0 40px rgba(88,182,255,0.05);
  max-width: 560px;
}
.tba-cur { font-size: 28px; color: var(--p); animation: blink 1s step-end infinite; }
.tba-title { color: var(--p-hi); }
.tba-desc { color: var(--p-dim); font-size: 14px; }

/* orgs */
.orgs { display: flex; flex-wrap: wrap; gap: 6px; }
.orgs a, .orgs span {
  font-size: 13px; padding: 3px 9px;
  border: 1px solid var(--edge);
  color: var(--p); text-decoration: none;
  background: var(--panel);
  display: inline-block;
}
.orgs a:hover { border-color: var(--p); color: var(--p-hi); text-shadow: var(--glow-hi); }

/* presented by */
.presented { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mark-row { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.heron-mark img { width: auto; filter: drop-shadow(0 0 12px rgba(88,182,255,0.55)); }
.mark-row a:first-child img { height: 58px; }   /* AISF mark */
.mark-row a:last-child img  { height: 38px; }   /* Heron wordmark */
.heron-mark:hover img { filter: drop-shadow(0 0 20px rgba(88,182,255,0.95)); }
.presented-note { color: var(--p-dim); max-width: 620px; }
.presented-note a { color: var(--p-hi); text-decoration: underline; }

/* footer */
#footbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; gap: 14px;
  height: var(--sb-h);
  padding: 0 18px;
  background: rgba(2, 10, 18, 0.92);
  border-top: 1px solid var(--edge);
  font-size: 12px;
  box-shadow: 0 -2px 24px rgba(88,182,255,0.1);
  backdrop-filter: blur(2px);
}
.fb-mode { color: #02070d; background: var(--p); padding: 1px 8px; font-weight: 600; text-shadow: none; letter-spacing: 0.06em; }
.fb-info { color: var(--p-dim); }
.fb-info a { color: var(--p); text-decoration: none; }
.fb-info a:hover { color: var(--p-hi); }

/* scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--p-deep); }
::selection { background: var(--p); color: #02070d; text-shadow: none; }
a:focus-visible { outline: 1px solid var(--p); outline-offset: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  body { font-size: 14px; }
  .term { padding: 30px 18px 110px; }
  #statusbar { height: auto; min-height: var(--sb-h); flex-wrap: wrap; row-gap: 6px; padding: 8px 14px; }
  .sb-host, .sb-path, .sb-sep { display: none; }
  .sb-heron img { height: 16px; margin-right: 2px; }
  .sb-nav { margin-left: 0; }
  .sb-nav a { padding: 0 5px; }
  .sb-nav a:not(.active) { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .k { min-width: 78px; }
  .banner { font-size: 7px; }
  .crt-bezel { border-radius: 0; }
  #boot-screen { padding: 18px; }
}
/* narrow screens: key/value rows stack predictably instead of some staying
   inline and some wrapping mid-row (which read as "jumping" lines) */
@media (max-width: 620px) {
  .kv { display: block; }
  .kv .eq { display: none; }
  .kv .k { display: block; min-width: 0; margin-bottom: 1px; }
  .kv .v { display: block; }
  .kvs { gap: 12px; }
}
@media (max-width: 420px) {
  .banner { font-size: 5.5px; }
  .actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .crt-flicker, .cur, #boot-cursor, .tba-cur,
  .crt-noise, .crt-scanbeam, .crt-power, .banner { animation: none; }
  .crt-power { display: none; }
}
