:root {
  --bg: #0b0c10;
  --bg-elevated: #12141a;
  --bg-card: #181b22;
  --bg-card-hover: #1e222b;
  --bg-soft: #16181f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f1ea;
  --text-muted: #a8a399;
  --text-dim: #7a766c;
  --accent: #f0b429;
  --accent-hover: #ffc44a;
  --accent-dim: rgba(240, 180, 41, 0.14);
  --accent-text: #1a1408;
  --danger: #e85d4c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --max: 1180px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(240, 180, 41, 0.08), transparent 50%),
    radial-gradient(800px 400px at 100% 0%, rgba(80, 120, 255, 0.06), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(11, 12, 16, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 800;
}

main {
  flex: 1;
  padding: 0.55rem 0 3.5rem;
}

.hero {
  padding: 0.05rem 0 0.45rem;
}

.hero h1 {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lede,
.page-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.12rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.news-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.news-list {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.25rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.news-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.news-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  margin-bottom: 0.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
}

.badge-tesla { background: rgba(232, 33, 39, 0.16); color: #ff6b6b; }
.badge-spacex { background: rgba(90, 170, 255, 0.14); color: #7ec2ff; }
.badge-x { background: rgba(255, 255, 255, 0.1); color: #ececec; }
.badge-xai { background: rgba(180, 120, 255, 0.16); color: #d2b4ff; }
.badge-neuralink { background: rgba(80, 220, 180, 0.14); color: #6eebc4; }
.badge-boring-company { background: rgba(255, 160, 60, 0.14); color: #ffb154; }
.badge-overig { background: var(--accent-dim); color: var(--accent); }

.news-time {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.news-card h2,
.news-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.news-card p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.news-source {
  font-size: 0.92rem;
  font-weight: 550;
}

.news-source a::after {
  content: " ↗";
  font-size: 0.85em;
}

.empty-state,
.news-error {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.page-hero {
  margin-bottom: 1.6rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.intro,
.longread {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
  margin-bottom: 1.25rem;
}

.intro p:first-child,
.longread p:first-of-type {
  margin-top: 0;
}

.meer-lezen {
  appearance: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin: 0.4rem 0 0.2rem;
}

.meer-lezen:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.longread {
  display: none;
  margin-top: 1rem;
}

.longread.is-open {
  display: block;
}

.longread h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.longread h2:first-child {
  margin-top: 0.2rem;
}

.longread p,
.longread li {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.75;
  color: #e7e2d6;
}

.longread ul,
.longread ol {
  padding-left: 1.2rem;
}

.section-title {
  margin: 2.4rem 0 1rem;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2rem 0 2.4rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  gap: 0.7rem;
}

.footer-inner strong {
  color: var(--text-muted);
  font-weight: 650;
}

.footer-note {
  max-width: 46rem;
  margin: 0;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.news-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.news-card > .badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
}

.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card-link:hover {
  color: inherit;
}

.news-card-media {
  aspect-ratio: 16 / 9;
  background: #0e1015;
  overflow: hidden;
}

.news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 1.1rem 1.25rem 1.3rem;
}

.news-card-summary {
  font-size: 1.05rem;
  line-height: 1.55;
}

[data-scroll-sentinel] {
  height: 1px;
  pointer-events: none;
}

.article-back-wrap {
  margin: 0 0 1rem;
}

.article-back {
  font-weight: 600;
  font-size: 0.95rem;
}

.article-full h1 {
  margin: 0.7rem 0 1.1rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.article-hero {
  margin: 0 0 1.4rem;
  background: transparent;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: #0e1015;
}

.article-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.article-body {
  max-width: 44rem;
}

.article-body p {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.8;
  color: #e7e2d6;
  margin: 0 0 1.15rem;
}

.article-source {
  margin: 2rem 0 0;
  font-weight: 550;
}

.article-source a::after {
  content: " ↗";
  font-size: 0.85em;
}

@media (prefers-reduced-motion: reduce) {
  .news-card-media img,
  .news-card:hover .news-card-media img {
    transition: none;
    transform: none;
  }
}

.news-card-figure {
  margin: 0;
}

.image-credit {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-dim);
  font-weight: 400;
  margin: 0.4rem 0 0;
  padding: 0 0.15rem;
}

.news-card-figure .image-credit {
  padding: 0.4rem 1.25rem 0;
}

.image-credit a {
  color: inherit;
  text-decoration: none;
}

.image-credit a:hover,
.image-credit a:focus-visible {
  color: var(--text-muted);
  text-decoration: underline;
}


@media (min-width: 760px) {
  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}

@media (min-width: 1080px) {
  .news-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-card {
  border-radius: 12px;
}

.news-card > .badge {
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
}

.news-card-figure {
  position: relative;
  margin: 0;
}

.news-card-figure .image-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.55rem 0.5rem 0.28rem;
  font-size: 0.62rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-body {
  padding: 0.6rem 0.75rem 0.7rem;
}

.news-card-top {
  margin-bottom: 0.28rem;
  gap: 0.3rem 0.55rem;
}

.news-card-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.news-card .news-time {
  font-size: 0.75rem;
}

.news-card h2,
.news-card h3 {
  margin: 0 0 0.28rem;
  font-size: 1.02rem;
  line-height: 1.28;
  letter-spacing: -0.025em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.news-card p {
  margin: 0;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
}

.article-byline-avatar,
.author-box-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  flex-shrink: 0;
}

.article-byline-text {
  min-width: 0;
}

.article-author-name,
.author-box-name {
  margin: 0;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin: 0.15rem 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.article-date time {
  color: var(--text-muted);
}

.author-box {
  display: flex;
  gap: 1rem;
  margin: 2.4rem 0 0;
  padding: 1.15rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 44rem;
}

.author-box-avatar {
  width: 88px;
  height: 88px;
}

.author-box-role {
  margin: 0.15rem 0 0.45rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.author-box-bio {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 759px) {
  .news-card-summary {
    -webkit-line-clamp: 3;
  }
}

/* Compact desktop images so two rows fit a 1280x900 viewport. */
@media (min-width: 760px) {
  .news-card-media {
    aspect-ratio: 2 / 1;
  }
  .news-card-body {
    padding: 0.45rem 0.7rem 0.5rem;
  }
  .news-card h2,
  .news-card h3 {
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
  }
}

/* Mobile: smaller type, denser list, thumbnail beside text */
@media (max-width: 759px) {
  body {
    font-size: 0.95rem;
  }

  main {
    padding: 0.7rem 0 2.5rem;
  }

  .hero {
    padding: 0.05rem 0 0.55rem;
  }

  .hero h1 {
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.03em;
  }

  .filters {
    gap: 0.3rem;
    margin: 0 0 0.55rem;
  }

  .filter-btn {
    padding: 0.22rem 0.55rem;
    font-size: 0.75rem;
  }

  .news-meta-bar {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
  }

  .news-list {
    gap: 0.55rem;
  }

  .news-card {
    border-radius: 10px;
  }

  .news-card-link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 0.65rem;
    padding: 0.5rem 0.55rem 0.55rem;
    align-items: start;
  }

  .news-card > .badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
  }

  .news-card-figure {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .news-card-media {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }

  .news-card-figure .image-credit {
    font-size: 0.52rem;
    padding: 0.35rem 0.28rem 0.18rem;
  }

  .news-card-body {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    min-width: 0;
  }

  .news-card h2,
  .news-card h3 {
    font-size: 0.9rem;
    line-height: 1.25;
    -webkit-line-clamp: 3;
    margin: 0 0 0.2rem;
  }

  .news-card-summary {
    font-size: 0.75rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .news-card-author,
  .news-card .news-time {
    font-size: 0.68rem;
  }

  .news-card-top {
    margin-bottom: 0.18rem;
  }

  .article-full h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .article-lede {
    font-size: 1.02rem;
  }

  .author-box {
    padding: 0.9rem;
    gap: 0.75rem;
  }

  .author-box-avatar {
    width: 64px;
    height: 64px;
  }
}


/* ===== Round 5: sticky company bar, embeds ===== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.96);
}

.header-inner {
  min-height: 54px;
  justify-content: flex-start;
  gap: 1.1rem;
}

.logo {
  flex: 0 0 auto;
  font-size: 1.25rem;
  gap: 0.55rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.company-bar {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.company-bar::-webkit-scrollbar { display: none; }

.company-bar a {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--text-muted);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.company-bar a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.company-bar a[aria-current="true"] {
  color: var(--accent-text);
  background: var(--accent);
}

main {
  padding-top: 0.7rem;
}

.news-meta-bar {
  margin: 0 0 0.5rem;
  align-items: center;
}

.about-link {
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-companies {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0b0c10; }
  .header-inner {
    width: calc(100% - 14px);
    min-height: 46px;
    gap: 6px;
  }
  .logo-word { display: none; }
  .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.82rem;
  }
  .company-bar {
    justify-content: space-between;
    gap: 0;
  }
  .company-bar a {
    font-size: clamp(10.5px, 3.15vw, 15px);
    padding: 6px clamp(2px, 0.7vw, 7px);
    letter-spacing: -0.01em;
    font-weight: 600;
  }
  main { padding-top: 0.5rem; }
}

/* Embeds on article pages */
.embed {
  margin: 1.5rem 0;
}

.embed-x {
  max-width: 550px;
  min-height: 120px;
}

.embed-x .twitter-tweet {
  margin: 0 !important;
}

/* Static fallback shown until (or unless) X's script turns it into the real post */
.embed-x blockquote.twitter-tweet {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.5;
}

.embed-x blockquote.twitter-tweet p {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 1.02rem;
}

.embed-caption {
  margin-top: 0.45rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #050608;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 40%, rgba(240, 180, 41, 0.16), transparent 70%),
    linear-gradient(160deg, #1b1e27, #07080b);
}

.video-play-icon {
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: #e62117;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.video-play-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

.video-play:hover .video-play-icon { background: #ff2d22; }

.video-play-title {
  font-weight: 650;
  font-size: 1.05rem;
  max-width: 34rem;
}

.video-play-note {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.card-flag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.article-back-wrap {
  color: var(--text-dim);
  font-size: 0.9rem;
}
