/* ============================================================
   Frontier AI Weekly — Edition 4 — State & Stack
   April 12, 2026 | Institutional navy · copper · amber caution
   ============================================================ */

:root {
  --bg-primary: #0c1220;
  --bg-secondary: #111a2e;
  --bg-surface: #152238;
  --bg-elevated: #1a2d4a;
  --bg-panel: #0f1829;

  --text-primary: #e8edf7;
  --text-secondary: #9aa8c4;
  --text-muted: #5c6b8a;

  --accent-violet: #8b5cf6;
  --accent-violet-dim: rgba(139, 92, 246, 0.12);
  --accent-blue: #3b82f6;
  --accent-green: #17b26a;
  --accent-amber: #f59e0b;
  --accent-amber-dim: rgba(245, 158, 11, 0.1);
  --accent-copper: #c97a50;
  --accent-copper-dim: rgba(201, 122, 80, 0.15);

  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.07);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --ticker-h: 44px;
  --rule: rgba(245, 158, 11, 0.12);
  --rule-strong: rgba(201, 122, 80, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--ticker-h) + env(safe-area-inset-top, 0px));
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.7;
}

/* ─── Ticker ─────────────────────────────────────────────── */
.ticker-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-h);
  z-index: 200;
  background: rgba(12, 18, 32, 0.95);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--rule-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-marquee 58s linear infinite;
}

@keyframes ticker-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding: 0 1rem;
  height: var(--ticker-h);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-item { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.ticker-label {
  color: var(--accent-copper);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.ticker-divider { color: var(--text-muted); margin: 0 0.75rem; opacity: 0.5; }

/* ─── Page shell ─────────────────────────────────────────── */
.edition-page { position: relative; z-index: 1; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(201, 122, 80, 0.08) 0%, transparent 45%),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(139, 92, 246, 0.04) 79px, rgba(139, 92, 246, 0.04) 80px),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 1100px;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-amber);
  border: 1px solid var(--rule);
  padding: 0.45rem 0.85rem;
  margin-bottom: 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--accent-copper);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero__title span { display: block; }
.hero__title span:last-child {
  background: linear-gradient(105deg, var(--text-primary) 0%, var(--accent-copper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 2rem;
}

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

.hero__ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__ribbon-cell {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: 1rem 1.1rem;
  border-radius: 4px;
}

.hero__ribbon-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--accent-amber);
  display: block;
  line-height: 1.1;
}

.hero__ribbon-val--green { color: var(--accent-green); }
.hero__ribbon-val--violet { color: var(--accent-violet); }

.hero__ribbon-lbl {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  margin-right: 1.25rem;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-copper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out-expo), color 0.2s;
}
.source:hover, .source:focus-visible {
  color: var(--accent-amber);
  border-bottom-color: var(--accent-amber);
  outline: none;
}

/* ─── Sections base ─────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
}

.section:nth-child(even) { background: rgba(17, 26, 46, 0.35); }

.section__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-copper);
  display: block;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section__lead {
  font-size: clamp(1rem, 2vw, 1.08rem);
  color: var(--text-secondary);
  max-width: 70ch;
  margin-bottom: 1.5rem;
}

.section__aside {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-amber);
}

/* 01 Dossier strip */
.dossier {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .dossier {
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
  }
}

.dossier__main {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  padding: 1.5rem;
  border-radius: 6px;
}

.dossier__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dossier__stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px dashed var(--rule-strong);
  padding: 1rem;
  border-radius: 4px;
}

.dossier__list {
  list-style: none;
  margin-top: 1rem;
}
.dossier__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.dossier__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-copper);
}

/* 02 Glasswing board */
.board {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .board {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.board__quote {
  background: linear-gradient(135deg, rgba(26, 45, 74, 0.9), rgba(12, 18, 32, 0.95));
  border: 1px solid var(--glass-border);
  padding: 1.75rem;
  border-radius: 6px;
}
.board__quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}
.board__quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: normal;
}

.stat-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.stat-board__cell {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  text-align: center;
  border-radius: 4px;
}
.stat-board__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent-amber);
}
.stat-board__small {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* 03 Revenue band */
.revenue-band {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 6px;
  border-left: 4px solid var(--accent-green);
}

.revenue-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.revenue-band__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent-green);
}
.revenue-band__txt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* 04 Policy pillars — staggered */
.pillar-deck {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.pillar-deck__card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  padding: 1.25rem 1.35rem;
  border-radius: 4px;
  max-width: 100%;
}
.pillar-deck__card:nth-child(odd) { margin-left: 0; }
@media (min-width: 640px) {
  .pillar-deck__card:nth-child(odd) { margin-left: 0; margin-right: 8%; }
  .pillar-deck__card:nth-child(even) { margin-left: 8%; }
}
.pillar-deck__h {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}
.pillar-deck__card p { font-size: 0.95rem; color: var(--text-secondary); }

/* 05 Safety memo */
.safety-memo {
  margin-top: 1.5rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid var(--accent-amber-dim);
  border-radius: 6px;
  overflow: hidden;
}
.safety-memo__head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.65rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}
.safety-memo__body { padding: 1.25rem 1.35rem; }
.safety-memo__body ul {
  margin-top: 0.85rem;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.safety-memo__body li { margin-bottom: 0.4rem; }

/* 06 Fellowship row */
.fellow-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .fellow-row { grid-template-columns: repeat(3, 1fr); }
}

.fellow-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
  border-radius: 6px;
  min-height: 140px;
}
.fellow-card__k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-violet);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.fellow-card__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: var(--text-primary);
}
.fellow-card__p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.45;
}

/* 07 Gemma matrix */
.matrix-wrap { overflow-x: auto; margin-top: 1.5rem; -webkit-overflow-scrolling: touch; }
.matrix {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.matrix th, .matrix td {
  border: 1px solid var(--glass-border);
  padding: 0.75rem 0.85rem;
  text-align: left;
}
.matrix th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-copper);
  background: var(--bg-elevated);
}
.matrix td { color: var(--text-secondary); }
.matrix td:first-child { color: var(--text-primary); font-weight: 500; }

/* 08 API tiers */
.tier-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.tier-node {
  flex: 1 1 140px;
  min-width: min(100%, 140px);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  padding: 1.1rem;
  border-radius: 4px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.tier-node strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-green);
  margin-bottom: 0.35rem;
}
.tier-plus {
  align-self: center;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0 0.25rem;
}

/* 09 Trust principles */
.trust-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .trust-cols { grid-template-columns: 1fr 1fr; }
}

.trust-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(139, 92, 246, 0.45);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.trust-cols h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.trust-cols p { font-size: 0.92rem; color: var(--text-secondary); }

/* 10 Engineering metrics */
.eng-panel {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .eng-panel { grid-template-columns: 1fr 1fr; }
}

.eng-pull {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--text-secondary);
  padding: 1.25rem;
  border-left: 3px solid var(--accent-copper);
  background: var(--glass);
}

.eng-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.eng-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}
.eng-metric__k { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.eng-metric__v { font-family: var(--font-display); font-weight: 700; color: var(--accent-green); }

/* 11 Velocity chips */
.chip-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-secondary);
}
.chip strong { color: var(--accent-amber); }

/* 12 Contrarian */
.contra-band {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), transparent);
  border-radius: 6px;
  border: 1px solid var(--accent-violet-dim);
}
.contra-band p { color: var(--text-secondary); margin-bottom: 0.85rem; font-size: 0.95rem; }
.contra-band p:last-child { margin-bottom: 0; }

/* Week ahead — vertical timeline */
.lookahead-v {
  margin-top: 1.5rem;
  border-left: 2px solid var(--rule-strong);
  padding-left: 1.25rem;
}

.lookahead-v__item {
  position: relative;
  padding-bottom: 1.5rem;
}
.lookahead-v__item::before {
  content: '';
  position: absolute;
  left: calc(-1.25rem - 5px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-copper);
  border: 2px solid var(--bg-primary);
}

.lookahead-v__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-amber);
  letter-spacing: 0.06em;
}
.lookahead-v__item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.35rem 0 0.4rem;
}
.lookahead-v__item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

/* Footer */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  border-top: 1px solid var(--rule-strong);
  background: var(--bg-panel);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.75);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.08); }
}

.site-footer__regen {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 36rem;
  margin: 0 auto 0.75rem;
  line-height: 1.55;
}

.site-footer__session {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-copper);
}

.site-footer__timestamp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.sn-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem 1rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .site-footer__pulse { animation: none; }
}

.anim-reveal { opacity: 0; transform: translateY(22px); }
.anim-reveal.is-visible { opacity: 1; transform: none; }
