@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #100f22;
  --surface: #1d1a39;
  --surface-2: #262249;
  --text: #faf8ff;
  --muted: #b2aed0;
  --accent: #ff595a;
  --accent-2: #5c5dff;
  --border: #38345f;
  --max: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(92, 93, 255, .24), transparent 58%),
    linear-gradient(rgba(92, 93, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 93, 255, .035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
  color: var(--text);
  font: 16px/1.68 Inter, Arial, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.ed-wrap { width: min(var(--max), calc(100% - 40px)); margin: auto; }

.ed-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 15, 34, .84);
  border-bottom: 1px solid rgba(92, 93, 255, .32);
  backdrop-filter: blur(18px);
}
.ed-head .ed-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ed-brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; text-decoration: none; }
.ed-brand::before { content: '//'; color: var(--accent); font-family: 'Space Grotesk', sans-serif; }
.ed-nav { display: flex; align-items: center; gap: .55rem; }
.ed-nav a { padding: .55rem .8rem; border: 1px solid transparent; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .88rem; }
.ed-nav a:hover, .ed-nav a:focus-visible { color: var(--text); border-color: var(--border); background: var(--surface); }

.ed-hero { position: relative; padding: clamp(5rem, 10vw, 9rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.ed-hero::after { content: ''; position: absolute; right: -8vw; bottom: 8%; width: clamp(180px, 28vw, 420px); aspect-ratio: 1; border: 1px solid rgba(255, 89, 90, .4); border-radius: 50%; box-shadow: 0 0 90px rgba(92, 93, 255, .18); pointer-events: none; }
.ed-kicker, .ed-label { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; }
.ed-kicker::before { content: '[ '; color: var(--accent-2); }
.ed-kicker::after { content: ' ]'; color: var(--accent-2); }
.ed-hero h1 { position: relative; z-index: 1; max-width: 17ch; margin: .28em 0; font-size: clamp(2.65rem, 7vw, 6.2rem); }
.ed-dek { position: relative; z-index: 1; max-width: 68ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.ed-image { width: min(var(--max), calc(100% - 40px)); max-height: 650px; margin: 0 auto; aspect-ratio: 16/8.6; object-fit: cover; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 90px rgba(0, 0, 0, .34); }

.ed-article { width: min(900px, calc(100% - 40px)); margin: auto; padding: clamp(3rem, 7vw, 6rem) 0 7rem; counter-reset: signal-section; }
.ed-copy { position: relative; padding: clamp(2rem, 5vw, 3.7rem) 0; border-bottom: 1px solid var(--border); counter-increment: signal-section; }
.ed-copy h2 { margin: 0 0 1.25rem; font-size: clamp(1.65rem, 3.6vw, 2.75rem); }
.ed-copy h2::before { content: 'SIGNAL 0' counter(signal-section); display: block; margin-bottom: .8rem; color: var(--accent); font: 800 .68rem/1 Inter, sans-serif; letter-spacing: .16em; }
.ed-copy p { margin: 0 0 1.15rem; color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-size: 1.04rem; }

.ed-cite {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  margin: .18rem .22rem .18rem 0;
  padding: .2rem .48rem;
  border: 1px solid rgba(92, 93, 255, .52);
  border-radius: 999px;
  background: rgba(92, 93, 255, .12);
  color: #c9c8ff;
  font: 700 .67rem/1 Inter, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  vertical-align: middle;
}
.ed-cite:hover, .ed-cite:focus-visible { border-color: var(--accent); color: var(--text); }

.ed-facts { margin: 3rem calc(50% - 50vw); padding: clamp(2.2rem, 6vw, 4.5rem) max(20px, calc((100vw - 1120px) / 2)); background: linear-gradient(135deg, rgba(29, 26, 57, .96), rgba(21, 19, 48, .96)); border-block: 1px solid var(--border); }
.ed-facts > .ed-label { display: block; margin-bottom: 1.3rem; }
.ed-facts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ed-facts li { padding: 1.4rem; background: rgba(16, 15, 34, .7); border: 1px solid var(--border); border-radius: var(--radius); }
.ed-facts strong, .ed-facts span { display: block; }
.ed-facts strong { color: var(--accent); font: 700 clamp(2rem, 5vw, 3.4rem)/1 'Space Grotesk', sans-serif; }
.ed-facts span { margin-top: .55rem; font-weight: 700; }
.ed-facts li p { margin: .7rem 0 0; color: var(--muted); font-size: .84rem; }

.ed-inline-resource { margin: 1.5rem 0; padding: 1.15rem 1.3rem; border-left: 3px solid var(--accent); background: rgba(255, 89, 90, .08); color: var(--muted); }
.ed-inline-resource a { color: var(--text); font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.ed-conclusion { margin: 3rem 0 0; padding: 1.6rem; border: 1px solid rgba(255, 89, 90, .38); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 89, 90, .09), rgba(92, 93, 255, .1)); font-size: 1.08rem; font-weight: 700; }
.ed-sources { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.ed-sources h2 { margin: 0 0 1rem; color: var(--muted); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.ed-sources h2::before { content: 'REFERENCE LOG / '; color: var(--accent-2); }
.ed-sources ol { display: grid; gap: .7rem; padding: 0; list-style: none; counter-reset: ref-log; }
.ed-sources li { counter-increment: ref-log; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .65rem; align-items: start; color: var(--muted); font-size: .86rem; }
.ed-sources li::before { content: counter(ref-log, upper-alpha); display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); font-weight: 800; }
.ed-sources a { color: var(--text); text-decoration-color: var(--border); text-underline-offset: 3px; }
.ed-sources small { display: block; color: var(--muted); }

.ed-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.15rem; padding-bottom: 7rem; }
.ed-card { grid-column: span 6; position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(29, 26, 57, .96), rgba(19, 18, 43, .96)); border: 1px solid var(--border); border-radius: var(--radius); }
.ed-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
.ed-card:nth-child(4), .ed-card:nth-child(5) { grid-column: span 6; }
.ed-card img { width: 100%; height: 100%; min-height: 260px; aspect-ratio: 16/9; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.ed-card:not(:first-child) img { height: 245px; }
.ed-card-copy { display: flex; min-width: 0; flex-direction: column; padding: clamp(1.35rem, 3vw, 2.25rem); }
.ed-card-copy h2 { margin: .2rem 0 .8rem; font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
.ed-card-copy p:not(.ed-kicker) { color: var(--muted); }
.ed-card-copy > a { align-self: flex-start; margin-top: auto; padding-top: 1rem; color: var(--accent); font-weight: 800; text-decoration: none; }
.ed-card-copy > a::after { content: '  ↗'; }
.ed-card-copy > a:hover { color: var(--text); }
.ed-footer { padding: 2.4rem 0; border-top: 1px solid var(--border); color: var(--muted); }

@media (max-width: 760px) {
  .ed-wrap, .ed-article, .ed-image { width: calc(100% - 28px); }
  .ed-head .ed-wrap { min-height: 68px; }
  .ed-nav { gap: .1rem; }
  .ed-nav a { padding: .45rem .55rem; font-size: .78rem; }
  .ed-hero { padding-top: 4.5rem; }
  .ed-hero::after { opacity: .45; }
  .ed-facts ul { grid-template-columns: 1fr; }
  .ed-card, .ed-card:first-child, .ed-card:nth-child(4), .ed-card:nth-child(5) { grid-column: 1 / -1; display: block; }
  .ed-card img, .ed-card:not(:first-child) img { height: auto; min-height: 0; }
}
