:root {
  --ink: #0c0a10;
  --night: #09070d;
  --night-2: #121019;
  --night-3: #1b1722;
  --paper: #f4f0e8;
  --paper-2: #e8e1d6;
  --white: #fffdf8;
  --silver: #aaa4b2;
  --muted: #6f6877;
  --line: rgba(16, 12, 20, .14);
  --line-dark: rgba(255, 255, 255, .12);
  --violet: #8f6cff;
  --violet-deep: #6638ef;
  --gold: #d7ad58;
  --gold-light: #f4d68d;
  --coral: #ff6f61;
  --green: #61d9a7;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--ink);
  background: var(--night);
  font-family: var(--font-display);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--violet); color: white; }

.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(100px);
  opacity: .2;
}
.ambient-one { width: 430px; height: 430px; background: var(--violet); top: -180px; right: 6vw; }
.ambient-two { width: 260px; height: 260px; background: var(--gold); top: 420px; left: -160px; }

.page-shell,
.site-header,
.site-footer {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 82px;
  background: rgba(9, 7, 13, .9);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; width: fit-content; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 214, 141, .55);
  color: var(--gold-light);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: -.04em;
  transform: rotate(-4deg);
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: -.04em; }
.brand-copy small { margin-top: 5px; color: var(--gold-light); font: 400 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: #cbc5d0; text-decoration: none; font-size: 14px; transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: white; }
.live-badge { justify-self: end; display: flex; align-items: center; gap: 8px; color: #c5becb; font: 400 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.live-badge i, .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(97, 217, 167, .09); }

main { overflow: clip; }
.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  color: var(--white);
  padding-block: 80px 96px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 auto 0 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background:
    linear-gradient(120deg, transparent 50%, rgba(143, 108, 255, .08)),
    radial-gradient(circle at 74% 38%, rgba(143, 108, 255, .2), transparent 25%),
    var(--night);
}
.hero-copy { max-width: 760px; }
.mono-label { color: var(--muted); font: 500 10px/1.4 var(--font-mono); letter-spacing: .15em; text-transform: uppercase; }
.mono-label.accent { color: var(--gold-light); }
.hero h1 {
  max-width: 820px;
  margin: 22px 0 26px;
  font-size: clamp(52px, 7.2vw, 94px);
  line-height: .94;
  letter-spacing: -.068em;
  font-weight: 500;
}
.hero h1 em { color: var(--gold-light); font-style: normal; font-weight: 400; }
.hero-copy > p:not(.transparency) { max-width: 650px; color: #bab4c1; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 600; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--violet); color: white; }
.button.primary:hover { background: var(--violet-deep); }
.button.ghost { border-color: var(--line-dark); color: white; }
.button.ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
.button.light { background: var(--white); color: var(--ink); }
.transparency { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: #777080; font: 400 11px/1.5 var(--font-mono); }
.transparency span { color: var(--gold); font-size: 17px; }

.queen-pulse { position: relative; min-height: 410px; padding: 28px; border: 1px solid var(--line-dark); background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); }
.queen-pulse::before, .queen-pulse::after { content: ""; position: absolute; width: 24px; height: 24px; border-color: var(--gold); opacity: .65; }
.queen-pulse::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.queen-pulse::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.pulse-top { display: flex; justify-content: space-between; align-items: center; }
.pulse-score { display: flex; align-items: baseline; margin-top: 42px; color: var(--gold-light); }
.pulse-score strong { font-size: 82px; line-height: .85; letter-spacing: -.08em; font-weight: 500; }
.pulse-score span { color: #7c7584; font: 400 13px var(--font-mono); }
.pulse-score.muted strong { color: #4f4857; }
.pulse-caption { margin: 15px 0 10px; color: #777080; font: 400 11px var(--font-mono); text-transform: uppercase; }
.queen-pulse h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.035em; font-weight: 500; }
.pulse-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.pulse-meta span { padding: 6px 8px; border: 1px solid var(--line-dark); color: #aaa3b2; font: 400 9px var(--font-mono); text-transform: uppercase; }

.source-ribbon { position: relative; z-index: 2; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 42px); overflow: hidden; padding: 18px 24px; background: var(--gold); color: #251d0e; }
.source-ribbon > span { font: 500 9px var(--font-mono); letter-spacing: .15em; }
.source-ribbon b { font-size: 13px; white-space: nowrap; }
.source-ribbon i { width: 3px; height: 3px; border-radius: 50%; background: rgba(37, 29, 14, .45); }

.section { padding-block: 104px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 440px); align-items: end; gap: 40px; margin-bottom: 48px; }
.section-heading h2, .page-heading h1 { margin: 10px 0 0; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.section-heading > p, .page-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.news-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 20px; }
.lead-story { border: 1px solid var(--line); background: var(--white); }
.story-visual { position: relative; height: 300px; overflow: hidden; background: linear-gradient(135deg, #17131d 0 54%, #2b2040 54% 67%, var(--violet) 67% 100%); }
.story-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 52px 52px; transform: perspective(500px) rotateX(55deg) scale(1.8) translateY(34%); }
.story-source { position: absolute; z-index: 2; top: 24px; left: 24px; padding: 7px 9px; color: white; border: 1px solid rgba(255,255,255,.28); font: 400 9px var(--font-mono); text-transform: uppercase; }
.story-number { position: absolute; z-index: 1; right: 20px; bottom: -20px; color: rgba(255,255,255,.12); font-size: 150px; line-height: 1; font-weight: 700; letter-spacing: -.1em; }
.lead-story-copy { padding: 32px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; align-items: center; color: var(--muted); font: 400 10px var(--font-mono); text-transform: uppercase; }
.story-meta span { color: var(--violet-deep); }
.story-meta b { color: #217653; font-weight: 500; }
.lead-story h3 { margin: 18px 0 14px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; }
.lead-story p, .news-row p, .opportunity-copy > p, .blog-card > p { color: var(--muted); line-height: 1.6; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: inherit; font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link span { color: var(--violet-deep); }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.news-row { min-height: 250px; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-row h3 { margin: 16px 0 10px; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.news-row p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0; font-size: 13px; }
.news-row-footer { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 18px; color: var(--muted); font: 400 10px var(--font-mono); }
.news-row-footer a { color: var(--violet-deep); text-decoration: none; font-size: 17px; }

.opportunities-section { background: var(--night); color: var(--white); }
.section-heading.inverted > p { color: #928b99; }
.section-heading.inverted .mono-label { color: var(--gold); }
.opportunity-grid { display: grid; gap: 16px; }
.opportunity-card { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line-dark); background: var(--night-2); }
.score-block { padding: 28px; border-right: 1px solid var(--line-dark); background: linear-gradient(145deg, rgba(215, 173, 88, .08), transparent); }
.score-block strong { display: inline-block; margin-top: 24px; color: var(--gold-light); font-size: 68px; line-height: 1; letter-spacing: -.075em; font-weight: 500; }
.score-block small { color: #706979; font: 400 11px var(--font-mono); }
.score-line { height: 2px; margin: 20px 0 12px; background: #302a36; }
.score-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold-light)); }
.score-verdict { color: #a9a2b0; font: 400 10px var(--font-mono); text-transform: uppercase; }
.opportunity-copy { padding: 30px 34px; }
.opportunity-copy h3 { margin: 13px 0 12px; font-size: clamp(23px, 3vw, 34px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; }
.factor-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.factor-list span { padding: 7px 9px; border: 1px solid var(--line-dark); color: #8f8996; font: 400 9px var(--font-mono); text-transform: uppercase; }
.factor-list b { color: var(--green); }
.card-footer { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: #797280; font: 400 10px var(--font-mono); }
.analysis-panel { margin-top: 24px; border: 1px solid var(--line-dark); }
.analysis-panel summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; font: 500 11px var(--font-mono); text-transform: uppercase; }
.analysis-panel summary span { color: var(--gold); }
.analysis-card { padding: 16px; border-top: 1px solid var(--line-dark); color: #aaa4b2; font-size: 13px; }
.analysis-head { display: flex; justify-content: space-between; color: white; }
.analysis-head span { color: var(--green); font: 400 10px var(--font-mono); }
.analysis-card h4 { margin: 16px 0 6px; color: #746d7b; font: 500 9px var(--font-mono); text-transform: uppercase; }
.analysis-card ul { margin: 0; padding-left: 18px; }
.provider-error { margin: 0; padding: 16px; border-top: 1px solid var(--line-dark); color: #ff9e91; font-size: 12px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.blog-card { min-height: 360px; display: flex; flex-direction: column; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .45); }
.blog-card h2, .blog-card h3 { margin: 25px 0 14px; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; }
.blog-card h2 a, .blog-card h3 a { text-decoration: none; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--violet-deep); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font: 400 10px var(--font-mono); text-transform: uppercase; }
.blog-card .article-meta { margin-top: auto; padding: 20px 0; border-top: 1px solid var(--line); }

.methodology { background: var(--violet-deep); color: white; }
.methodology-inner { min-height: 330px; display: grid; grid-template-columns: 100px minmax(280px, .8fr) minmax(300px, 1fr) auto; align-items: center; gap: 42px; padding-block: 64px; }
.queen-glyph { color: var(--gold-light); font-size: 74px; }
.methodology .mono-label { color: #d8cfff; }
.methodology h2 { margin: 10px 0 0; font-size: 40px; line-height: 1; letter-spacing: -.05em; }
.methodology p { color: #d4caee; }

.site-footer { min-height: 220px; display: grid; grid-template-columns: 1fr 1.2fr .8fr; align-items: center; gap: 42px; color: #837c8a; }
.site-footer::before { content: ""; position: absolute; z-index: -1; left: calc((100vw - 100%) / -2); right: calc((100vw - 100%) / -2); inset-block: 0; background: var(--night); }
.footer-brand { color: white; text-decoration: none; font-size: 20px; font-weight: 600; }
.site-footer p { margin: 8px 0 0; font-size: 12px; }
.disclaimer { max-width: 430px; }
.footer-sign { justify-self: end; text-align: right; font-family: var(--font-mono); }
.footer-sign span { color: var(--gold); }

.page-shell.editorial-page, .page-shell.article-page { padding-block: 90px 120px; min-height: calc(100vh - 302px); }
.page-heading { max-width: 820px; margin-bottom: 64px; }
.page-heading > p { max-width: 720px; margin-top: 24px; font-size: 18px; }
.back-link { display: inline-block; margin-bottom: 56px; color: var(--muted); text-decoration: none; font: 400 11px var(--font-mono); text-transform: uppercase; }
.longread { max-width: 820px; margin-inline: auto; }
.longread h1 { margin: 20px 0 24px; font-size: clamp(44px, 7vw, 78px); line-height: .99; letter-spacing: -.06em; font-weight: 500; }
.article-dek { max-width: 680px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.longread header .article-meta { margin-top: 28px; padding-block: 18px; border-block: 1px solid var(--line); }
.article-body { max-width: 680px; margin: 52px auto 0; }
.article-body p { margin: 0 0 28px; font-size: 19px; line-height: 1.78; }
.article-body p:first-child::first-letter { float: left; margin: .05em .12em 0 0; color: var(--violet-deep); font-size: 4.3em; line-height: .78; font-weight: 600; }
.article-footer { max-width: 680px; display: flex; align-items: center; gap: 16px; margin: 60px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.article-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.empty-state { padding: 40px; border: 1px dashed var(--line); color: var(--muted); }
.empty-state.dark { border-color: var(--line-dark); color: #89828f; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header nav { justify-self: end; gap: clamp(14px, 3vw, 24px); }
  .live-badge { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero::before { height: 100%; }
  .queen-pulse { min-height: auto; }
  .news-layout { grid-template-columns: 1fr; }
  .methodology-inner { grid-template-columns: 72px 1fr; }
  .methodology-inner > p { grid-column: 2; }
  .methodology-inner .button { grid-column: 2; width: fit-content; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-block: 48px; }
  .footer-sign { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 720px) {
  .page-shell, .site-header, .site-footer { width: min(100% - 28px, 1240px); }
  .site-header { height: 70px; }
  .site-header::after { height: 70px; }
  .brand-copy { display: none; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 12px; }
  .site-header nav a:last-child { display: none; }
  .hero { min-height: auto; gap: 48px; padding-block: 64px; }
  .hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .source-ribbon { justify-content: flex-start; overflow-x: auto; }
  .section { padding-block: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .news-list, .blog-grid { grid-template-columns: 1fr; }
  .story-visual { height: 230px; }
  .opportunity-card { grid-template-columns: 1fr; }
  .score-block { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .score-block strong { font-size: 54px; }
  .card-footer { align-items: start; flex-direction: column; }
  .methodology-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 56px; }
  .methodology-inner > p, .methodology-inner .button { grid-column: auto; }
  .queen-glyph { font-size: 54px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-sign { grid-column: auto; }
  .longread h1 { font-size: 45px; }
  .article-body p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
