: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;
}


/* ===== Round 6: centered logo, search, sticky tab row, featured story, contact ===== */

.site-header {
  position: static;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-top {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem 0 0.45rem;
}

.logo.logo-big {
  grid-column: 2;
  font-size: 2.35rem;
  gap: 0.75rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-big .logo-word { display: inline; }

.logo-big .logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.search-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.search-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent); }

.header-top .search-btn {
  grid-column: 3;
  justify-self: end;
}

.company-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  overflow: visible;
  background: rgba(11, 12, 16, 0.97);
  border-bottom: 1px solid transparent;
}

html.bar-stuck .company-bar {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.company-bar-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  min-height: 50px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 0.5rem;
}

.company-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.company-bar a.bar-mark {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 800;
}

.company-bar a.bar-mark:hover { background: var(--accent-hover); color: var(--accent-text); }

.bar-search {
  width: 36px;
  height: 36px;
  justify-self: end;
}

.bar-search svg { width: 19px; height: 19px; }

.bar-mark,
.bar-search {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

html.bar-stuck .bar-mark,
html.bar-stuck .bar-search {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s ease;
}

main { padding-top: 0.8rem; }

/* Featured (newest) story: full width, big image, text below. */
.news-card--featured {
  grid-column: 1 / -1;
}

.news-card--featured .news-card-media {
  aspect-ratio: 21 / 9;
}

.news-card--featured .news-card-body {
  padding: 0.85rem 1.2rem 1.05rem;
}

.news-card.news-card--featured h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.18;
  -webkit-line-clamp: 3;
  margin-bottom: 0.4rem;
}

.news-card--featured .news-card-summary {
  font-size: 1rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  color: var(--text-muted);
  max-width: 62rem;
}

.news-card--featured > .badge {
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
}

.news-card--featured .news-card-figure .image-credit {
  font-size: 0.68rem;
}

/* Footer contact link */
.footer-bottom a { font-weight: 600; }

/* Search overlay */
html.search-open { overflow: hidden; scrollbar-gutter: stable; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(5, 6, 9, 0.78);
  padding: 4.5rem 1rem 2rem;
}

.search-overlay[hidden] { display: none; }

.search-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.75rem;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.35rem 0 0.75rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.search-field:focus-within { border-color: var(--accent); }

.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  padding: 0.8rem 0;
}

.search-field input::-webkit-search-cancel-button { filter: invert(0.7); }

.search-close {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}

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

.search-status {
  margin: 0.6rem 0.35rem 0.35rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-hit {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0.45rem;
  border-radius: 10px;
  color: var(--text);
}

.search-hit:hover,
.search-hit:focus-visible {
  background: var(--bg-card-hover);
  color: var(--text);
}

.search-hit img {
  flex: 0 0 96px;
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: #0e1015;
}

.search-hit-text { min-width: 0; display: block; }

.search-hit-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.search-hit-meta .badge { font-size: 0.66rem; padding: 0.08rem 0.4rem; }

.search-hit-title {
  display: block;
  font-weight: 650;
  line-height: 1.3;
  font-size: 0.98rem;
}

.search-hit-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  margin-top: 0.1rem;
}

.search-hit mark {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 1px;
}

/* Contact page */
.contact-wrap {
  max-width: 640px;
  padding-top: 0.8rem;
}

.contact-wrap h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
}

.contact-intro {
  margin: 0 0 1.3rem;
  color: var(--text-muted);
}

.contact-form .field { margin-bottom: 1rem; }

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.contact-form textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-form [aria-invalid="true"] { border-color: var(--danger); }

.field-hint {
  margin: 0.25rem 0 0;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.field-error {
  margin: 0.3rem 0 0;
  color: #ff8a7a;
  font-size: 0.88rem;
}

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

.contact-submit:hover { background: var(--accent-hover); }
.contact-submit:disabled { opacity: 0.6; cursor: progress; }

.contact-status {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.contact-status.is-ok { background: rgba(80, 220, 140, 0.12); color: #8ff0b4; border: 1px solid rgba(80, 220, 140, 0.3); }
.contact-status.is-error { background: rgba(232, 93, 76, 0.12); color: #ffb0a5; border: 1px solid rgba(232, 93, 76, 0.35); }

.contact-privacy {
  margin: 0.9rem 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 759px) {
  .news-card--featured .news-card-link {
    display: block;
    padding: 0;
  }
  .news-card--featured .news-card-media {
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }
  .news-card--featured .news-card-body { padding: 0.6rem 0.75rem 0.75rem; }
  .news-card.news-card--featured h2 { font-size: 1.15rem; line-height: 1.22; }
  .news-card--featured .news-card-summary { font-size: 0.86rem; line-height: 1.42; }
  .news-card--featured .news-card-figure .image-credit { font-size: 0.58rem; }
}

@media (max-width: 720px) {
  .header-top {
    width: calc(100% - 20px);
    padding: 0.7rem 0 0.3rem;
  }
  .logo.logo-big { font-size: 1.8rem; gap: 0.55rem; }
  .logo-big .logo-mark { width: 42px; height: 42px; border-radius: 11px; font-size: 1.08rem; }
  .header-top .search-btn { width: 40px; height: 40px; }
  .company-bar { background: #0b0c10; }
  .company-bar-inner {
    width: calc(100% - 10px);
    min-height: 44px;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 3px;
  }
  .company-tabs { justify-content: space-between; gap: 0; }
  .company-bar .company-tabs a {
    font-size: clamp(11px, 3.4vw, 15px);
    padding: 6px clamp(3px, 1.1vw, 9px);
    letter-spacing: -0.01em;
    font-weight: 600;
  }
  .company-bar a.bar-mark { width: 28px; height: 28px; border-radius: 7px; font-size: 0.7rem; }
  .bar-search { width: 28px; height: 28px; border: 0; background: transparent; }
  .bar-search svg { width: 18px; height: 18px; }
  .search-overlay { padding: 0.6rem 0.5rem 1.5rem; }
  .search-panel { padding: 0.55rem; border-radius: 14px; }
  .search-hit img { flex-basis: 72px; width: 72px; height: 54px; }
  main { padding-top: 0.55rem; }
}

/* Round 7: static pages (Contact, later About) in the search results */
.search-hit-icon {
  flex: 0 0 96px;
  width: 96px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
}
@media (max-width: 720px) {
  .search-hit-icon { flex-basis: 72px; width: 72px; }
}

/* Round 8: newsroom byline, AI note under every article, About page */
.article-byline-avatar--mark { border-radius: 12px; background: transparent; }

.article-ai-note {
  margin: 2rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.article-ai-note a { white-space: nowrap; }

.about-wrap { max-width: 720px; }
.about-wrap .about-lede {
  margin: 0 0 1.4rem;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
}
.about-wrap h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  scroll-margin-top: 4.5rem;
}
.about-wrap p,
.about-wrap li {
  color: var(--text-muted);
  line-height: 1.65;
}
.about-wrap p { margin: 0 0 0.9rem; }
.about-wrap ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.about-wrap strong { color: var(--text); }

/* ---------- Round 9: language selector (left of the header, mirrors the search button) ---------- */
/* The open menu must cover the sticky company bar (z-index 50). */
.site-header { position: relative; z-index: 60; }
.lang-switch {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: relative;
  z-index: 70;
}
.lang-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover, .lang-switch.is-open .lang-btn { background: rgba(255, 255, 255, 0.08); }
.lang-btn:focus-visible, .lang-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-btn .flag { width: 22px; height: 15px; }
.lang-code { display: none; }
.flag { display: block; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); overflow: hidden; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}
.lang-menu[hidden] { display: none; }
.lang-menu li { margin: 0; padding: 0; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.lang-menu a:hover { background: rgba(255, 255, 255, 0.06); }
.lang-menu a[aria-current="true"] { color: var(--accent); background: rgba(240, 180, 41, 0.08); }
.lang-menu a[aria-current="true"]::after { content: "✓"; margin-left: auto; padding-left: 0.8rem; }
.article-not-translated {
  margin: 1.4rem 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.page-not-translated { margin-top: 1rem; }
@media (max-width: 720px) {
  .lang-btn { width: 40px; height: 40px; }
  .lang-btn .flag { width: 20px; height: 14px; }
  .lang-menu { min-width: 172px; }
}
/* Korean: break lines between words, not inside them */
:lang(ko) h1, :lang(ko) h2, :lang(ko) p, :lang(ko) .news-card-summary { word-break: keep-all; overflow-wrap: anywhere; }

/* ===== Round 11: desktop uses the same list as mobile ===== */
/* Homepage and company tab pages: one featured card, then a single
   vertical list (thumbnail left, title + summary + time right) in a
   centered column. Header, footer and article pages stay unchanged. */
@media (min-width: 760px) {
  .wrap:has([data-news-list]),
  .wrap:has([data-company-news]) {
    width: min(820px, calc(100% - 2rem));
  }

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

  /* List items: thumbnail left, text right (like the mobile cards, a bit larger). */
  .news-card-link {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 0.95rem;
    padding: 0.7rem 0.8rem;
    align-items: start;
  }

  .news-card-link:not(:has(.news-card-figure)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-card-figure {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
  }

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

  .news-card-figure .image-credit {
    font-size: 0.55rem;
    padding: 0.4rem 0.35rem 0.2rem;
  }

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

  .news-card-link:not(:has(.news-card-figure)) .news-card-body {
    grid-column: 1;
  }

  .news-card h2,
  .news-card h3 {
    font-size: 1.15rem;
    line-height: 1.28;
    letter-spacing: -0.03em;
    -webkit-line-clamp: 3;
    margin: 0 0 0.28rem;
  }

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

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

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

  .news-card > .badge {
    top: 0.85rem;
    left: 0.95rem;
  }

  /* Featured stays a big stacked card: image on top, title and summary below. */
  .news-card--featured {
    margin-bottom: 0.35rem;
  }

  .news-card--featured .news-card-link {
    display: block;
    padding: 0;
  }

  .news-card--featured .news-card-figure {
    border-radius: 0;
  }

  .news-card--featured .news-card-media {
    aspect-ratio: 2 / 1;
    border-radius: 0;
  }

  .news-card--featured .news-card-body {
    padding: 0.9rem 1.15rem 1.1rem;
  }

  .news-card.news-card--featured h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    -webkit-line-clamp: 3;
    margin-bottom: 0.4rem;
  }

  .news-card--featured .news-card-summary {
    font-size: 1.02rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    max-width: none;
  }

  .news-card--featured .news-card-figure .image-credit {
    font-size: 0.68rem;
  }

  .news-card--featured > .badge {
    top: 0.8rem;
    left: 0.8rem;
  }
}

/* ===== YouTube roundup (type "youtube-roundup"): dark with a YouTube-red accent ===== */
.badge-youtube { background: rgba(230, 33, 23, 0.18); color: #ff7a70; }

.card-kicker {
  color: #ff5a4d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card--youtube-roundup {
  background: linear-gradient(180deg, rgba(230, 33, 23, 0.14), rgba(230, 33, 23, 0.02) 42%), #0f1014;
  border-color: rgba(230, 33, 23, 0.5);
  box-shadow: inset 0 3px 0 #e62117;
}
.news-card--youtube-roundup:hover {
  background: linear-gradient(180deg, rgba(230, 33, 23, 0.2), rgba(230, 33, 23, 0.04) 42%), #12131a;
  border-color: rgba(255, 70, 58, 0.75);
}

.roundup-kicker {
  color: #ff5a4d;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-full--youtube-roundup {
  border-top: 3px solid #e62117;
  padding-top: 1rem;
}
.article-full--youtube-roundup h1 { letter-spacing: -0.03em; }

.roundup-channels {
  margin: 0 0 1.8rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(230, 33, 23, 0.35);
  border-radius: var(--radius);
  background: rgba(230, 33, 23, 0.06);
  max-width: 44rem;
}
.roundup-channels-title {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff7a70;
}
.roundup-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.channel-chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 33, 23, 0.55);
  background: rgba(230, 33, 23, 0.12);
  color: #ffd9d5;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
a.channel-chip:hover { background: rgba(230, 33, 23, 0.28); color: #fff; }

.roundup-body { max-width: 46rem; }
.roundup-item {
  margin: 0 0 1.6rem;
  padding: 1rem 1.1rem 0.2rem;
  border: 1px solid var(--border);
  border-left: 4px solid #e62117;
  border-radius: 12px;
  background: #101116;
}
.roundup-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.4rem;
}
.roundup-posted { color: var(--text-dim); font-size: 0.82rem; }
.article-body .roundup-item-title {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.roundup-item .embed { margin: 1rem 0 1.1rem; }
.article-body .roundup-disclaimer {
  margin-top: 1.4rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .roundup-item { padding: 0.85rem 0.8rem 0.1rem; }
  .article-body .roundup-item-title { font-size: 1.08rem; }
}

/* Round 13: X posts are click-to-load (nothing is requested from X until the click) */
.embed-x .x-preview {
  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 .x-preview p {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 1.02rem;
}

.embed-x .x-preview a { color: inherit; }

.x-load-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin: 0.7rem 0 0;
}

.x-load {
  appearance: none;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #1b1e27;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
}

.x-load:hover,
.x-load:focus-visible {
  border-color: var(--accent);
  outline: none;
}

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