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

:root {
  --bg: #0D0D0F;
  --text: #F2F0EB;
  --text-secondary: #C7C5BF;
  --text-muted: #8B8A86;
  --accent-yellow: #E8B931;
  --brand-red: #CC1010;
  --pov-orange: #D9822B;
  --pov-blue: #4A7FB5;
  --hairline: rgba(255, 255, 255, .14);
  --hairline-soft: rgba(255, 255, 255, .1);
  --hairline-grid: rgba(255, 255, 255, .12);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-red);
}

.frontpage-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 0 56px 64px;
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 3px solid var(--text);
}

.masthead-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.masthead-logo {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.masthead-logo span {
  color: var(--brand-red);
}

.masthead-by,
.masthead-date,
.rail-title,
.hero-kicker,
.topic-kicker {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.masthead-nav {
  display: flex;
  gap: 32px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  padding: 44px 0 52px;
  border-bottom: 1px solid var(--hairline);
}

.hero-kicker,
.topic-kicker {
  color: var(--accent-yellow);
  margin: 0 0 16px;
}

.hero-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(40px, 5.1vw, 58px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.06;
  max-width: 850px;
  margin: 0 0 20px;
  text-wrap: pretty;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.perspective-list {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.perspective {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 14px;
  align-items: baseline;
}

.perspective-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(1px);
}

.perspective-dot.orange {
  background: var(--pov-orange);
}

.perspective-dot.blue {
  background: var(--pov-blue);
}

.perspective-dot.quiet {
  border: 1.5px solid var(--text-muted);
}

.perspective p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.perspective strong {
  color: var(--text);
  font-weight: 600;
}

.perspective span {
  color: var(--text-muted);
}

.hero-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin: 36px 0 0;
}

.hero-meta a {
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.analysis-rail {
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
}

.rail-title {
  margin: 0 0 6px;
}

.analysis-item {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.analysis-item:last-child {
  border-bottom: 0;
}

.analysis-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 8px;
}

.analysis-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.listen {
  color: var(--accent-yellow);
  font-weight: 600;
}

.topics-section {
  padding: 40px 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 26px;
}

.section-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.section-note {
  color: var(--text-muted);
  font-size: 13px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline-grid);
  border: 1px solid var(--hairline-grid);
}

.topic-card {
  display: block;
  min-width: 0;
  background: var(--bg);
  padding: 26px 28px;
}

.topic-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 14px;
}

.topic-links {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.about-section {
  padding: 56px 0 0;
}

.signal-stage {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(204, 16, 16, .08), rgba(0, 0, 0, 0) 34%),
    radial-gradient(circle at 70% 22%, rgba(232, 185, 49, .08), transparent 24%),
    #09090b;
}

.signal-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0, rgba(255, 255, 255, .035) 1px, transparent 1px, transparent 5px),
    rgba(0, 0, 0, .46);
  mix-blend-mode: screen;
}

.terminal-stream {
  position: absolute;
  inset: 0;
  color: #55ff88;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.45;
  opacity: .72;
  text-shadow: 0 0 8px rgba(85, 255, 136, .6);
}

.terminal-stream span {
  position: absolute;
  max-width: min(560px, 78%);
  animation: terminalDrift 16s linear infinite;
  white-space: pre-wrap;
}

.terminal-stream span:nth-child(1) { left: 6%; top: 12%; animation-delay: 0s; }
.terminal-stream span:nth-child(2) { left: 38%; top: 22%; color: var(--accent-yellow); animation-delay: -4s; }
.terminal-stream span:nth-child(3) { left: 14%; top: 48%; animation-delay: -8s; }
.terminal-stream span:nth-child(4) { left: 52%; top: 66%; color: var(--accent-yellow); animation-delay: -12s; }

@keyframes terminalDrift {
  0% { transform: translateY(22px); opacity: 0; }
  12% { opacity: .8; }
  72% { opacity: .62; }
  100% { transform: translateY(-48px); opacity: 0; }
}

.about-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  padding: 88px 0;
}

.about-card {
  min-height: 190px;
  background: rgba(13, 13, 15, .86);
  border: 1px solid var(--hairline-grid);
  padding: 24px 26px;
  backdrop-filter: blur(6px);
}

.about-card:nth-child(2) {
  transform: translateY(28px);
}

.about-card-kicker {
  color: var(--accent-yellow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.about-card h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: 44px 0 0;
}

.cta-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  max-width: 760px;
  margin: 0 0 14px;
}

.cta-text {
  color: var(--text-secondary);
  max-width: 680px;
  font-size: 16px;
}

.cta-button {
  color: var(--accent-yellow);
  border-bottom: 1px solid var(--accent-yellow);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.frontpage-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 3px solid var(--text);
}

.frontpage-footer p {
  color: var(--text-secondary);
  font-size: 15px;
}

.frontpage-cta {
  color: var(--accent-yellow);
  border-bottom: 1px solid var(--accent-yellow);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .frontpage-shell {
    padding: 0 32px 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .analysis-rail {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding: 32px 0 0;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-cards {
    grid-template-columns: 1fr;
    padding: 46px 0;
  }

  .about-card:nth-child(2) {
    transform: none;
  }

  .cta-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .frontpage-shell {
    padding: 0 20px 44px;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .masthead-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 42px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .section-head,
  .frontpage-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .signal-stage {
    min-height: auto;
  }

  .about-cards {
    width: 100%;
    padding: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-stream span {
    animation: none;
    opacity: .58;
  }
}
