/* ============================================
   EMBODIED WIRE — dark tech editorial theme
   ============================================ */
:root {
  --bg: #0a0e13;
  --bg-raised: #0f151d;
  --bg-panel: #121a24;
  --border: #1e2936;
  --border-bright: #2c3d50;
  --text: #dce5ee;
  --text-dim: #8fa1b3;
  --text-faint: #5c6d7e;
  --accent: #00e5a0;
  --accent-dim: #00e5a022;
  --accent2: #4db8ff;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 19, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { color: var(--text); }
.logo__pulse { width: 26px; height: 14px; flex: none; }
.logo em { font-style: normal; color: var(--accent); }
.nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.nav a.active { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 1px;
}

/* ---------- section labels ---------- */
.sec-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.sec-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-bright), transparent);
}

/* ---------- hero ---------- */
.hero { padding: 40px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.kicker--alt { color: var(--accent2); }
.byline {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ---------- text-only hero ---------- */
.hero-grid--text { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
.lead-story {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 36px 40px;
  transition: border-color .15s, transform .15s;
}
.lead-story:hover { border-color: var(--border-bright); border-left-color: var(--accent); transform: translateY(-2px); }
.lead-story h2 {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: var(--text);
}
.lead-story p { color: var(--text-dim); font-size: 16px; line-height: 1.65; }
.lead-story .byline { margin-top: 22px; }
.headline-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.headline-stack a {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}
.headline-stack a:first-child { padding-top: 4px; }
.headline-stack a:last-child { border-bottom: none; padding-bottom: 4px; }
.headline-stack .kicker { margin-bottom: 6px; }
.headline-stack h3 {
  font-family: var(--display);
  font-size: 17.5px;
  line-height: 1.35;
  color: var(--text);
  font-weight: 600;
}
.headline-stack a:hover h3 { color: var(--accent); }

/* ---------- main layout ---------- */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-bottom: 72px;
}

/* ---------- feed ---------- */
.feed { display: flex; flex-direction: column; }
.feed-item {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.feed-item:first-of-type { padding-top: 0; }
.feed-item .kicker { margin-bottom: 8px; }
.feed-item h3 {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.feed-item p { color: var(--text-dim); font-size: 14px; }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}
.panel h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.panel p { font-size: 13.5px; color: var(--text-dim); }
.ranked { list-style: none; counter-reset: rank; }
.ranked li {
  counter-increment: rank;
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.4;
}
.ranked li:last-child { border-bottom: none; padding-bottom: 0; }
.ranked li::before {
  content: counter(rank, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 13px;
  padding-top: 1px;
}
.panel .more-link {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent2);
}

/* ---------- index (companies) page ---------- */
.page-head { padding: 48px 0 32px; }
.page-head h1 {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head > p { color: var(--text-dim); max-width: 640px; }
.filters { display: flex; gap: 10px; margin: 28px 0 20px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.index-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.index-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.index-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-bright);
}
.index-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.index-table tr:hover td { background: var(--bg-raised); }
.index-table .co { font-family: var(--display); font-weight: 600; font-size: 15px; white-space: nowrap; }
.index-table .co small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.index-table .desc { color: var(--text-dim); font-size: 13.5px; max-width: 380px; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  white-space: nowrap;
}
.tag--humanoid { color: var(--accent); border-color: #0e5c44; }
.tag--avatar { color: var(--accent2); border-color: #1e4a6e; }
.tag--platform { color: #d0a2ff; border-color: #4a3268; }
.tag--quadruped { color: #ffb454; border-color: #6e5220; }
.tag--enter { color: #ff6b9d; border-color: #6e2440; }
.mono-cell { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.cite-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0 20px;
}
.cite-box h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cite-box p { font-size: 14px; color: var(--text-dim); }
.mono-inline { font-family: var(--mono); font-size: 13px; color: var(--accent2); }
.index-note {
  margin: 28px 0 64px;
  font-size: 13px;
  color: var(--text-faint);
  border-left: 2px solid var(--border-bright);
  padding-left: 16px;
}

/* ---------- article page ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 48px 0 72px; }
.article .kicker { margin-bottom: 14px; }
.article h1 {
  font-family: var(--display);
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.article .standfirst { font-size: 19px; color: var(--text-dim); line-height: 1.55; margin-bottom: 24px; }
.article .meta {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.article .meta b { color: var(--text-dim); font-weight: 500; }
.article-body p { margin-bottom: 22px; font-size: 16.5px; line-height: 1.75; color: #c6d2de; }
.article-body h2 {
  font-family: var(--display);
  font-size: 24px;
  margin: 36px 0 16px;
  letter-spacing: -0.5px;
}
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-size: 18px;
  color: var(--text);
  font-style: italic;
}
.article-body blockquote cite {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  font-style: normal;
  margin-top: 10px;
}
.keyfacts {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
}
.keyfacts h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.keyfacts ul { list-style: none; }
.keyfacts li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.keyfacts li:last-child { border-bottom: none; }
.keyfacts li::before { content: "▸"; color: var(--accent); }

/* sources */
.sources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.sources h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.sources ul { list-style: none; }
.sources li { padding: 5px 0; font-size: 14px; }
.sources a { color: var(--accent2); }
.sources a:hover { color: var(--accent); }

/* ---------- about page ---------- */
.about-hero { padding: 72px 0 64px; }
.about-hero h1 {
  font-family: var(--display);
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 26px;
  max-width: 780px;
}
.about-hero h1 em { font-style: normal; color: var(--accent); }
.about-lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 640px;
}
.about-section { padding: 0 0 64px; }
.about-section--last { padding-bottom: 88px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.about-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 24px 24px;
  transition: border-color .15s, transform .15s;
}
.about-card:hover { border-color: var(--accent); transform: translateY(-3px); color: inherit; }
.about-card__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.about-card h3 {
  font-family: var(--display);
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
}
.about-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.principle {
  padding: 28px;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
}
.principle:last-child { border-right: none; }
.principle b {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--accent);
}
.principle p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
.principle a { color: var(--accent2); }

.about-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, var(--bg-panel), #0d1a17);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 32px 36px;
}
.about-contact p { color: var(--text-dim); font-size: 15px; }
.about-email {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 12px 20px;
  white-space: nowrap;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 56px 0 28px;
  margin-top: 8px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(110px, auto));
  gap: 44px 64px;
  align-items: start;
}
.site-footer .logo { font-size: 17px; }
.site-footer .wrap > div:first-child p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-faint);
  margin-top: 14px;
  max-width: 340px;
}
.foot-nav { display: contents; }
.foot-nav > div { display: flex; flex-direction: column; gap: 9px; }
.foot-nav b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 7px;
}
.foot-nav a {
  font-size: 13.5px;
  color: var(--text-dim);
  width: fit-content;
}
.foot-nav a:hover { color: var(--accent); }
.foot-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-faint);
}
.foot-bottom a { color: var(--text-faint); margin-left: 24px; }
.foot-bottom a:first-child { margin-left: 0; }
.foot-bottom a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .hero-grid--text, .main-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 0 36px; }
  .lead-story { padding: 26px 24px; }
  .lead-story h2 { font-size: 26px; }
  .headline-stack a:first-child { padding-top: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 6px 24px 14px;
  }
  .nav.nav--open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .page-head { padding: 36px 0 24px; }
  .page-head h1 { font-size: 30px; }
  .article { padding: 32px 0 56px; }
  .article h1 { font-size: 29px; }
  .article .meta { flex-wrap: wrap; gap: 10px 18px; }
  .index-table .desc { max-width: none; min-width: 260px; }
  .index-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .about-hero { padding: 48px 0 44px; }
  .about-hero h1 { font-size: 34px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: none; border-bottom: 1px solid var(--border); }
  .principle:last-child { border-bottom: none; }
  .site-footer { padding: 44px 0 24px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot-bottom a { margin-left: 0; margin-right: 20px; }
}

/* ---------- accessibility & focus (maintenance 2026-07-09) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #04120c;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.skip-link:focus { left: 0; }
.skip-link:hover { color: #04120c; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
