/* Decoded Intel — v5 "Artemis" system, Marko revision
   Typography: IBM Plex Mono (primary) + Fragment Mono (accents) — locked
   Monochrome editorial: black field, white type, hairline borders. */

:root {
  --black: #000000;
  --ink: #0a0a0a;
  --panel: #0d0d0d;
  --border: #1e1e1e;
  --white: #f5f5f5;
  --gray: #a3a3a3;
  --dim: #5c5c5c;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --mono2: 'Fragment Mono', 'IBM Plex Mono', monospace;
  --header-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--white); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--white); color: var(--black); }

/* ---------- header ---------- */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h);
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--black);
  position: sticky; top: 0; z-index: 100;
}
.site-header .logo { display: flex; align-items: center; justify-self: start; }
.site-header .logo img { height: 30px; display: block; mix-blend-mode: screen; }
.header-socials { display: flex; gap: 14px; align-items: center; justify-self: center; }
.header-socials a { color: var(--dim); display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.header-socials a:hover { color: var(--white); }
.header-socials svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.header-socials a[aria-label="Bluesky"] svg { transform: translateY(1.5px); }
.site-nav { display: flex; align-items: center; justify-self: end; }
.site-nav a {
  font-family: var(--mono2); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gray);
}
.site-nav a + a::before { content: '·'; margin: 0 26px; color: var(--dim); }
.site-nav a:hover { color: var(--white); text-decoration: none; }
.site-nav a.active { color: var(--white); }

/* ---------- hero: split stage, compact ---------- */
.hero {
  display: grid; grid-template-columns: 42% 58%;
  border-bottom: 1px solid var(--border);
}
.hero-left {
  padding: clamp(22px, 3.5vh, 40px) 32px clamp(22px, 3.5vh, 40px) 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow {
  font-family: var(--mono2); font-size: 12px; letter-spacing: 0.16em;
  color: var(--gray); text-transform: uppercase; margin-bottom: clamp(16px, 2.5vh, 28px);
}
.hero-eyebrow::before { content: '// '; color: var(--dim); }
#hero-title { width: 100%; aspect-ratio: 2.6 / 1; display: block; margin-bottom: clamp(16px, 2.5vh, 32px); }
.hero-title-fallback {
  font-weight: 700; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04;
  letter-spacing: -0.02em; text-transform: uppercase; display: none;
}
.hero-lede { font-size: 13px; font-weight: 300; color: var(--gray); max-width: 460px; text-align: justify; }
.hero-facts { margin-top: 26px; max-width: 460px; }
.hero-facts div {
  font-size: 12px; color: var(--white); font-weight: 300;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 8px 0; border-top: 1px solid var(--border);
}
.hero-facts div span:first-child {
  color: var(--dim); font-family: var(--mono2); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-right {
  position: relative;
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 20px 12px 8px;
}
.hero-right .hero-img { width: 100%; height: auto; display: block; transform: scale(1.06); }

/* ---------- stations (three doors, side by side) ---------- */
.section-head {
  padding: 56px 40px 0;
  font-family: var(--mono2); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim);
}
.section-head::before { content: '// '; }
.stations {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.station {
  padding: 40px 36px 36px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; color: var(--white);
}
.station:last-child { border-right: none; }
.station:hover { background: var(--ink); text-decoration: none; }
.station .s-code {
  font-family: var(--mono2); font-size: 12px; letter-spacing: 0.14em;
  color: var(--dim); text-transform: uppercase;
}
.station h3 {
  font-size: clamp(19px, 1.8vw, 24px); font-weight: 600;
  text-transform: uppercase; letter-spacing: -0.01em; margin: 12px 0 4px;
}
.station .s-loc { font-size: 11px; color: var(--dim); font-family: var(--mono2); letter-spacing: 0.1em; text-transform: uppercase; }
.station .s-desc { font-size: 13px; color: var(--gray); font-weight: 300; margin: 20px 0 26px; flex: 1; text-align: justify; }
.station .go { font-family: var(--mono2); font-size: 13px; color: var(--white); letter-spacing: 0.08em; }

/* ---------- live wire (news feed) ---------- */
.wire { border-bottom: 1px solid var(--border); }
.wire-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  font-family: var(--mono2); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wire-bar .t-label { color: var(--dim); }
.wire-bar .t-status { color: var(--white); }
.wire-bar .pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--white); margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.wire-viewport {
  border-top: 1px solid var(--border);
  height: 320px; overflow: hidden; position: relative;
}
.wire-viewport::before, .wire-viewport::after {
  content: ''; position: absolute; left: 0; right: 0; height: 56px; z-index: 2;
  pointer-events: none;
}
.wire-viewport::before { top: 0; background: linear-gradient(to bottom, var(--black), transparent); }
.wire-viewport::after { bottom: 0; background: linear-gradient(to top, var(--black), transparent); }
.wire-track { animation: wire-roll 45s linear infinite; }
.wire-viewport:hover .wire-track { animation-play-state: paused; }
@keyframes wire-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wire-row {
  display: grid; grid-template-columns: 60px 1fr minmax(140px, auto); gap: 20px;
  padding: 15px 40px; border-bottom: 1px solid var(--border);
  align-items: baseline; font-size: 13px;
}
.wire-row .w-flag { font-size: 15px; }
.wire-row .w-text { color: #c9c9c9; font-weight: 300; }
.wire-row .w-src {
  font-family: var(--mono2); font-size: 11px; letter-spacing: 0.08em;
  color: var(--dim); text-transform: uppercase; text-align: right;
}
.wire-row .w-src a { color: var(--gray); }
.wire-row .w-src a:hover { color: var(--white); }
.wire-row:hover { background: var(--ink); }

/* ---------- counters ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.stat { padding: 26px 40px 30px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .num { font-size: 34px; font-weight: 600; color: var(--white); display: block; letter-spacing: -0.02em; }
.stat .lbl { font-family: var(--mono2); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); }
.stat .upd { font-size: 10px; color: var(--dim); display: block; margin-top: 6px; }

/* ---------- quote ---------- */
.quote-block { max-width: 1280px; margin: 0 auto; padding: 100px 40px; }
.quote-block p {
  font-size: clamp(20px, 2.6vw, 32px); line-height: 1.4; font-weight: 300;
  color: var(--white); max-width: 24em;
}
.quote-block cite {
  display: block; margin-top: 26px; font-family: var(--mono2);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); font-style: normal;
}

/* ---------- archives / analysis list ---------- */
.archives { border-bottom: 1px solid var(--border); padding-bottom: 30px; }
.article-row {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 24px;
  padding: 30px 40px; border-top: 1px solid var(--border);
  align-items: baseline; color: var(--white);
}
a.article-row:hover { background: var(--ink); text-decoration: none; }
.article-row .date { font-family: var(--mono2); font-size: 12px; color: var(--dim); }
.article-row h3 { font-size: 19px; font-weight: 600; text-transform: uppercase; }
.article-row .desc { grid-column: 2; font-size: 13px; color: var(--gray); font-weight: 300; margin-top: 6px; }
.article-row .arrow { font-family: var(--mono2); color: var(--white); }
.article-row.static { color: var(--gray); }
.article-row.static h3 { color: var(--gray); }

/* ---------- generic section (subpages) ---------- */
.section { padding: 70px 40px; max-width: 1280px; margin: 0 auto; width: 100%; }
.section-label {
  font-family: var(--mono2); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 16px;
}
.section-label::before { content: '// '; }
.section h2 {
  font-size: clamp(26px, 3.4vw, 44px); font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 44px;
}
.sub-label {
  font-family: var(--mono2); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white);
  margin: 48px 0 0; padding: 14px 0; border-top: 1px solid var(--border);
}
.sub-label:first-of-type { margin-top: 0; }

/* ---------- article page ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 90px 24px 110px; }
.article .a-date { font-family: var(--mono2); font-size: 12px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; }
.article h1 { font-size: clamp(28px, 4vw, 48px); color: var(--white); line-height: 1.1; margin: 16px 0 12px; text-transform: uppercase; letter-spacing: -0.01em; }
.article .lede { font-size: 16px; color: var(--gray); font-weight: 300; border-bottom: 1px solid var(--border); padding-bottom: 30px; margin-bottom: 36px; }
.article h2 { font-size: 21px; color: var(--white); margin: 42px 0 16px; text-transform: uppercase; }
.article p { margin-bottom: 20px; color: #c9c9c9; font-weight: 300; }
.article blockquote { border-left: 2px solid var(--white); padding: 6px 0 6px 22px; margin: 30px 0; color: var(--gray); }
.article .source-note { font-family: var(--mono2); font-size: 11px; color: var(--dim); border-top: 1px solid var(--border); padding-top: 24px; margin-top: 48px; letter-spacing: 0.08em; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; }
.about-grid p { color: #c9c9c9; font-weight: 300; margin-bottom: 18px; }
.stack-list { list-style: none; }
.stack-list li {
  font-size: 13px; color: var(--white);
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px;
}
.stack-list li span { color: var(--dim); font-size: 12px; font-family: var(--mono2); }

/* ---------- footer: white bar, pinned to bottom ---------- */
.site-footer {
  margin-top: auto;
  background: var(--white); color: var(--black);
  padding: 20px 40px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 18px;
}
.site-footer .fine, .site-footer .tagline {
  font-family: var(--mono2); font-size: 11px; color: var(--black);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.site-footer .fine { justify-self: start; }
.site-footer .tagline { justify-self: end; }
.socials { display: flex; gap: 16px; align-items: center; justify-self: center; }
.socials a { color: #4a4a4a; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.socials a:hover { color: var(--black); }
.socials svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.socials a[aria-label="Bluesky"] svg { transform: translateY(1.5px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .stations { grid-template-columns: 1fr; }
  .station { border-right: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; }
  .wire-row { grid-template-columns: 40px 1fr; gap: 12px; }
  .wire-row .w-src { display: none; }
  .hero-right { padding: 0; min-height: 0; }
  .hero-right .hero-img { position: static; height: auto; }
}
@media (max-width: 620px) {
  .site-header { padding: 0 16px; display: flex; justify-content: space-between; gap: 16px; }
  .header-socials { display: none; }
  .site-nav { flex-wrap: nowrap; }
  .site-nav a { font-size: 10px; letter-spacing: 0.06em; white-space: nowrap; }
  .site-nav a + a::before { margin: 0 6px; }
  .site-header .logo img { height: 22px; }
  .hero-left { padding: 40px 18px 48px; }
  .station, .wire-bar, .stat, .section-head { padding-left: 18px; padding-right: 18px; }
  .wire-row { padding: 12px 18px; }
  .section, .quote-block { padding-left: 18px; padding-right: 18px; }
  .article-row { grid-template-columns: 1fr; gap: 6px; padding: 24px 18px; }
  .article-row .desc { grid-column: 1; }
  .site-footer { padding: 16px 18px; grid-template-columns: 1fr; justify-items: center; }
  .site-footer .fine, .site-footer .tagline { justify-self: center; text-align: center; }
}
.hero-facts div span:last-child { text-transform: uppercase; }
.hero-eyebrow { color: var(--white); }
.hero-eyebrow .geo { color: var(--gray); }
.hero-eyebrow .geo::before { content: '// '; color: var(--dim); }
