.page-news {
  --news-gutter: clamp(1.25rem, 4vw, 4rem);
  --card-gap: 1.5rem;
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(28, 43, 89, 0.72), transparent 28rem),
    radial-gradient(circle at 85% 60%, rgba(0, 255, 156, 0.08), transparent 22rem),
    var(--color-deep-blue);
  color: var(--color-white);
  overflow: hidden;
}

.page-news__dataflow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dataflow-line {
  position: absolute;
  left: -30%;
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 156, 0.7), transparent);
  opacity: 0.28;
  animation: page-news-flow 9s linear infinite;
}

.dataflow-line--one {
  top: 12%;
}

.dataflow-line--two {
  top: 42%;
  animation-duration: 11s;
  animation-delay: 1.2s;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.45), transparent);
}

.dataflow-line--three {
  top: 74%;
  animation-duration: 7s;
  animation-delay: 0.6s;
}

@keyframes page-news-flow {
  0% {
    transform: translate3d(-10%, 0, 0);
  }
  100% {
    transform: translate3d(280%, 0, 0);
  }
}

.journal-hero,
.journal-shell {
  position: relative;
  z-index: 1;
}

.journal-hero {
  padding: clamp(2rem, 5vw, 5rem) var(--news-gutter) 0;
  border-bottom: 1px solid rgba(168, 178, 216, 0.22);
}

.journal-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -5%;
  width: 48%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, rgba(0, 255, 156, 0.05) 0 2px, transparent 2px 14px);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 42% 100%);
  pointer-events: none;
  z-index: 0;
}

.journal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin-inline: auto;
}

.journal-breadcrumb {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.journal-breadcrumb .breadcrumbs__link,
.journal-breadcrumb .breadcrumbs__current {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.journal-hero__eyebrow {
  color: var(--color-neon-green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.journal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  max-width: 14em;
  text-wrap: balance;
}

.journal-hero__lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.75;
  color: var(--color-light-steel);
  max-width: 64ch;
  margin: 0;
}

.journal-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(168, 178, 216, 0.26);
  border: 1px solid rgba(168, 178, 216, 0.22);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.journal-hero__stat {
  background: rgba(10, 17, 40, 0.9);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journal-hero__num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-neon-green);
}

.journal-hero__stat span:last-child {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--color-light-steel);
  text-transform: uppercase;
}

.journal-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 4rem) var(--news-gutter) 4rem;
}

.journal-sidenav {
  background: rgba(28, 43, 89, 0.5);
  border: 1px solid rgba(168, 178, 216, 0.2);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.journal-sidenav__title {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-gold);
  margin: 0 0 1rem;
}

.journal-sidenav__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.journal-sidenav__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(168, 178, 216, 0.32);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.journal-sidenav__link:hover,
.journal-sidenav__link:focus-visible {
  border-color: var(--color-neon-green);
  background: rgba(0, 255, 156, 0.08);
}

.journal-sidenav__note {
  border-top: 1px solid rgba(168, 178, 216, 0.2);
  padding-top: 1.25rem;
}

.journal-sidenav__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neon-green);
  margin-bottom: 0.6rem;
}

.journal-sidenav__note p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-light-steel);
  margin: 0;
}

.journal-sidenav__note a {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 0, 0.6);
  text-underline-offset: 0.2em;
}

.journal-section {
  padding: 0 0 clamp(3rem, 7vw, 5.5rem);
  scroll-margin-top: 2rem;
}

.journal-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(168, 178, 216, 0.28);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
}

.journal-section__meta {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-gold);
  margin: 0 0 0.25rem;
}

.journal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1;
  margin: 0;
}

.journal-section__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-light-steel);
  max-width: 58ch;
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}

.filter-chip {
  appearance: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-light-steel);
  background: var(--color-steel-blue);
  border: 1px solid rgba(168, 178, 216, 0.3);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--color-neon-green);
  color: var(--color-white);
  transform: translateY(-2px);
}

.filter-chip.is-active {
  background: var(--color-neon-green);
  border-color: var(--color-neon-green);
  color: var(--color-dark-blue);
  font-weight: 700;
}

.page-news .is-hidden {
  display: none !important;
}

.journal-feed {
  display: grid;
  gap: 1.5rem;
}

.timeline-entry {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-entry__axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-neon-green) 0%, rgba(0, 255, 156, 0.25) 35%, transparent 85%);
}

.timeline-entry__node {
  position: absolute;
  top: 1.6rem;
  left: -4px;
  width: 9px;
  height: 9px;
  background: var(--color-neon-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 255, 156, 0.15), 0 0 18px rgba(0, 255, 156, 0.6);
}

.post-card {
  display: block;
  background:
    linear-gradient(135deg, rgba(28, 43, 89, 0.92), rgba(10, 17, 40, 0.9));
  border: 1px solid rgba(168, 178, 216, 0.22);
  border-left: 3px solid var(--color-neon-green);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  border-color: rgba(0, 255, 156, 0.55);
}

.post-card__media {
  overflow: hidden;
  background: var(--color-dark-blue);
}

.post-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.035);
}

.post-card__body {
  padding: 1.4rem 1.5rem 1.5rem;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neon-green);
  border: 1px solid rgba(0, 255, 156, 0.55);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}

.tag--ghost {
  color: var(--color-light-steel);
  border-color: rgba(168, 178, 216, 0.4);
}

.post-card__time {
  font-size: 0.8rem;
  color: var(--color-light-steel);
  margin-left: auto;
  letter-spacing: 0.04em;
}

.post-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 0.8rem;
  text-wrap: balance;
}

.post-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-light-steel);
  margin: 0 0 1.25rem;
}

.post-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.journal-disclaimer {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(2, 6, 23, 0.55);
  border-left: 3px solid var(--color-gold);
  color: var(--color-light-steel);
  font-size: 0.88rem;
  line-height: 1.7;
}

@media (min-width: 700px) {
  .journal-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .journal-hero__stat {
    padding: 1.5rem 1.75rem;
  }

  .post-card--wide {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) 1fr;
  }

  .post-card--wide .post-card__media {
    height: 100%;
  }

  .post-card--wide .post-card__media img {
    height: 100%;
    aspect-ratio: auto;
  }

  .post-card--wide .post-card__body {
    display: flex;
    flex-direction: column;
  }

  .post-card--wide .post-card__body p {
    margin-bottom: 1.5rem;
  }

  .post-card--wide .post-card__body .button {
    margin-top: auto;
  }
}

@media (min-width: 960px) {
  .page-news {
    --news-gutter: clamp(2rem, 5vw, 4rem);
  }

  .journal-shell {
    grid-template-columns: minmax(13rem, 0.28fr) 1fr;
    align-items: start;
  }

  .journal-sidenav {
    position: sticky;
    top: 2rem;
  }

  .journal-sidenav__nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .journal-sidenav__link {
    text-align: left;
  }

  .journal-feed {
    gap: 1.75rem;
  }

  .timeline-entry {
    padding-left: 0;
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 1rem;
  }

  .timeline-entry__axis {
    position: relative;
    left: auto;
    top: auto;
    width: 1px;
    min-height: 100%;
  }

  .timeline-entry__node {
    top: 1.5rem;
  }

  .timeline-entry:nth-child(even) .post-card {
    margin-top: 2rem;
  }

  .journal-section__header {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
  }

  .journal-section__desc {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dataflow-line {
    animation: none;
    opacity: 0.14;
  }

  .post-card,
  .post-card__media img,
  .filter-chip {
    transition: none;
  }
}
