:root {
  color-scheme: dark;
  --bg: #0b0d13;
  --bg-soft: #10131b;
  --surface: rgba(17, 22, 31, 0.88);
  --surface-strong: rgba(13, 17, 24, 0.96);
  --surface-muted: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: rgba(227, 233, 244, 0.72);
  --muted-strong: rgba(239, 243, 250, 0.86);
  --accent: #be5103;
  --accent-deep: #b7410e;
  --gold: #ffce1b;
  --teal: #069494;
  --blue: #3c8cff;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --site-width: min(1240px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 206, 27, 0.08), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(6, 148, 148, 0.12), transparent 18%),
    linear-gradient(180deg, #0e1017 0%, #090b11 100%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(8, 10, 16, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner,
.site-footer-inner {
  width: var(--site-width);
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--gold), var(--accent)),
    var(--surface);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(190, 81, 3, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav-item {
  position: relative;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  transition:
    color 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
  border: 1px solid transparent;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

.site-nav-caret {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
}

.site-subnav {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 220px;
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(22, 27, 36, 0.98), rgba(12, 16, 24, 0.98)),
    var(--surface-strong);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
}

.site-nav-item:hover .site-subnav,
.site-nav-item:focus-within .site-subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-subnav-link {
  display: block;
  padding: 0.78rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.site-subnav-link:hover,
.site-subnav-link.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.page-shell {
  width: var(--site-width);
  margin: 0 auto;
  padding: 2rem 0 4.5rem;
}

.hero,
.section-block,
.stack-card,
.control-panel,
.message,
.summary-card,
.paper-card,
.content-card,
.post-card,
.article-card,
.table-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 1.5rem;
  padding: 2.6rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(60, 140, 255, 0.18), transparent 64%);
  pointer-events: none;
}

.hero-home {
  min-height: 470px;
  align-items: end;
}

.hero-homepage {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.homepage-shell .hero-home {
  min-height: 0;
  align-items: start;
  padding: 2.25rem 2.4rem 2rem;
}

.homepage-shell .hero-homepage {
  grid-template-columns: minmax(0, 1fr);
}

.homepage-shell .hero-copy h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  max-width: 24ch;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.homepage-shell h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.025em;
}

.homepage-shell h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

.homepage-shell .lede {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.75;
}

.homepage-shell .hero-copy,
.homepage-shell .section-copy,
.homepage-shell .feature-card p,
.homepage-shell .taxonomy-card p,
.homepage-shell .preview-row p,
.homepage-shell .compact-item p,
.homepage-shell .intel-stat p,
.homepage-shell .home-abstract-panel p {
  font-family: Georgia, "Times New Roman", serif;
}

.homepage-shell .eyebrow,
.homepage-shell .panel-eyebrow,
.homepage-shell .feature-eyebrow,
.homepage-shell .card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.homepage-shell .hero-panel,
.homepage-shell .stack-card,
.homepage-shell .section-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.015);
}

.homepage-shell .home-abstract-panel {
  align-self: start;
}

.homepage-shell .home-abstract-panel p {
  margin: 0;
}

.homepage-shell .home-abstract-panel p + p {
  margin-top: 0.9rem;
}

.hero-page {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  align-items: start;
  padding: 2.25rem 2.4rem 2rem;
}

.hero-page h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  max-width: none;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-page .lede {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-page .hero-copy,
.hero-page .hero-panel p,
.hero-page .bullet-list {
  font-family: Georgia, "Times New Roman", serif;
}

.hero-page .eyebrow,
.hero-page .panel-eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.hero-page .hero-panel {
  max-width: 720px;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-stack {
  display: grid;
  gap: 1rem;
  align-self: stretch;
}

.hero-panel {
  align-self: stretch;
  padding: 1.3rem 1.35rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow,
.panel-eyebrow,
.control-heading,
.card-tag,
.feature-eyebrow,
.insight-heading,
.footer-title {
  display: inline-flex;
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.panel-eyebrow,
.control-heading,
.card-tag,
.feature-eyebrow,
.insight-heading {
  color: rgba(255, 206, 27, 0.92);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

.lede,
.section-copy,
.hero-panel p,
.content-card p,
.compact-item p,
.post-card p,
.article-body p,
.footer-copy,
.control-card p,
.summary-card p,
.paper-card p,
.message p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  margin: 1rem 0 0;
  max-width: 68ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-page .hero-actions {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.homepage-shell .hero-actions {
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.homepage-shell .hero-copy {
  width: 100%;
  max-width: none;
}

.homepage-shell .hero-copy h1,
.homepage-shell .hero-copy .lede,
.homepage-shell .hero-copy .hero-actions {
  max-width: none;
}

@media (min-width: 1200px) {
  .homepage-shell .hero-copy h1 {
    font-size: 4rem;
    max-width: none;
    white-space: nowrap;
  }
}

.hero-signal-panel h2 {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

.button-primary,
.button-secondary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0.92rem 1.3rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.button-primary,
button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2e6de8);
  box-shadow: 0 16px 26px rgba(60, 140, 255, 0.24);
}

.button-primary:hover,
.button-secondary:hover,
button:hover {
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.bullet-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.section-block {
  padding: 1.8rem;
  margin-bottom: 1.25rem;
}

.homepage-shell .section-block,
.homepage-shell .stack-card {
  padding: 1.45rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.section-heading-tight {
  align-items: start;
  margin-bottom: 1rem;
}

.section-copy {
  max-width: 44ch;
  margin: 0;
}

.section-why {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-grid,
.content-grid,
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.homepage-shell .feature-grid,
.homepage-shell .taxonomy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.library-groups {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.library-group-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.014);
}

.library-group-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.feature-card,
.content-card,
.taxonomy-card {
  padding: 1.35rem;
  text-decoration: none;
}

.homepage-shell .feature-card,
.homepage-shell .taxonomy-card {
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
}

.feature-card {
  display: block;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.taxonomy-showcase {
  padding-top: 1.6rem;
}

.taxonomy-card {
  display: block;
  min-height: 190px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.feature-card:hover,
.taxonomy-card:hover,
.content-card:hover,
.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-card p,
.content-card p {
  margin: 0.65rem 0 0;
}

.taxonomy-card p:last-child {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.content-card-link {
  display: block;
}

.library-bucket-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.library-bucket-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 206, 27, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 206, 27, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(60, 140, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 206, 27, 0.06);
}

.library-bucket-card:hover .card-tag,
.library-bucket-card:hover h3 {
  color: #fff5cf;
}

.section-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stack-card {
  padding: 1.7rem;
}

.compact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.compact-list-tight {
  margin-top: 0.25rem;
}

.compact-item h3 {
  margin-bottom: 0.35rem;
}

.compact-item h3 a,
.post-card h2 a,
.content-card h3 a {
  text-decoration: none;
}

.about-shell {
  padding-top: 2.2rem;
}

.about-shell .hero,
.about-shell .stack-card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(16, 23, 35, 0.96), rgba(11, 17, 27, 0.96)),
    rgba(12, 18, 28, 0.95);
  box-shadow: 0 18px 42px rgba(2, 8, 20, 0.18);
}

.about-shell .stack-card {
  padding: 1.6rem;
}

.about-shell .section-split {
  gap: 1.25rem;
  align-items: stretch;
}

.about-grid .about-panel,
.about-credentials-card {
  height: 100%;
}

.about-hero {
  padding: 2.15rem 2.3rem;
  margin-bottom: 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(60, 140, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(18, 25, 37, 0.98), rgba(11, 17, 27, 0.98));
}

.about-hero::after {
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(60, 140, 255, 0.08), transparent 68%);
}

.about-hero-copy {
  max-width: none;
}

.about-hero h1 {
  font-family: Inter, "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.about-summary {
  margin: 0.95rem 0 0;
  color: var(--muted-strong);
  line-height: 1.82;
  max-width: 88ch;
}

.about-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.15rem;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 206, 27, 0.18);
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 245, 207, 0.95);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.about-link-pill:hover {
  border-color: rgba(255, 206, 27, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: #fff9e4;
}

.about-panel h2 {
  margin-bottom: 1rem;
  font-family: Inter, "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.95rem;
}

.about-detail-card,
.about-education-item,
.about-credential-item {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.about-detail-card {
  padding: 0.95rem 1rem;
}

.about-detail-card p,
.about-education-item p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.about-detail-label {
  display: block;
  margin-bottom: 0.42rem;
  color: rgba(227, 233, 244, 0.54);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.about-focus-item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 206, 27, 0.14);
  background:
    linear-gradient(180deg, rgba(60, 140, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.015);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.about-education-list,
.about-credentials-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.about-education-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
}

.about-timeline-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.52rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 206, 27, 0.06);
}

.about-credential-item {
  padding: 0.95rem 1rem;
}

.about-credential-item h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.item-meta {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.inline-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.inline-link-button {
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0;
  padding: 0.72rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 206, 27, 0.22);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.inline-link-button:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 206, 27, 0.4);
  transform: translateY(-1px);
}

.preview-link {
  margin-top: 0.8rem;
}

.section-preview-split {
  align-items: stretch;
}

.stack-card-strong {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
}

.stack-card-intel {
  position: relative;
  overflow: hidden;
}

.preview-row {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-row:first-child {
  border-top: 0;
  padding-top: 0.35rem;
}

.preview-row h3 {
  margin-bottom: 0.35rem;
}

.homepage-shell .preview-row,
.homepage-shell .compact-item {
  font-size: 0.95rem;
}

.homepage-shell .item-meta {
  font-size: 0.78rem;
}

.intel-preview {
  display: grid;
  gap: 1rem;
  margin-top: 0.45rem;
}

.intel-visual {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 0.75rem;
  min-height: 132px;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 206, 27, 0.1), transparent 30%),
    radial-gradient(circle at 82% 75%, rgba(6, 148, 148, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.02);
  align-items: end;
}

.intel-band {
  display: block;
  border-radius: 28px 28px 10px 10px;
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.intel-band::after {
  content: "";
  position: absolute;
  inset: auto 10% 14px 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
}

.intel-band-high {
  height: 100%;
  background: linear-gradient(180deg, rgba(190, 81, 3, 0.32), rgba(190, 81, 3, 0.08));
}

.intel-band-mid {
  height: 76%;
  background: linear-gradient(180deg, rgba(255, 206, 27, 0.28), rgba(255, 206, 27, 0.08));
}

.intel-band-low {
  height: 52%;
  background: linear-gradient(180deg, rgba(6, 148, 148, 0.3), rgba(6, 148, 148, 0.08));
}

.intel-stats {
  display: grid;
  gap: 0.75rem;
}

.intel-stat {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.022);
}

.intel-label {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intel-stat p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.intel-count {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.topic-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.topic-link-pill {
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.topic-link-pill:hover {
  color: #fff5cf;
  background: rgba(255, 206, 27, 0.08);
  border-color: rgba(255, 206, 27, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 206, 27, 0.06);
  transform: translateY(-1px);
}

.credibility-strip {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.2rem;
  margin-top: 1.25rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credibility-strip h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  max-width: 20ch;
}

.control-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  margin-bottom: 1rem;
}

.control-card,
.summary-card,
.insight-card {
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.controls {
  display: flex;
  align-items: end;
  gap: 1rem;
}

.area-filter-panel {
  grid-template-columns: 1fr;
}

.area-export-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.area-filter-controls {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.7fr) auto;
  align-items: end;
}

.area-filter-search {
  min-width: 0;
}

.area-filter-source {
  min-width: 180px;
}

.area-export-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.selection-toggle,
.paper-select {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.selection-toggle input,
.paper-select input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.area-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: end;
}

.area-load-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.area-export-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.area-selection-button {
  min-height: 44px;
  padding: 0.78rem 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-small {
  min-width: 110px;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.82rem 0.95rem;
}

.message {
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.message-subtle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
}

.message-error {
  border-color: rgba(190, 81, 3, 0.34);
  background:
    linear-gradient(180deg, rgba(190, 81, 3, 0.16), rgba(183, 65, 14, 0.08)),
    rgba(255, 255, 255, 0.012);
}

.hidden {
  display: none;
}

.loading-state {
  position: relative;
  overflow: hidden;
}

.loading-state::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loading-slide 1.25s linear infinite;
}

.summary-grid,
.insights-slab {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-card h3,
.insight-card p {
  margin-top: 0.2rem;
}

.results,
.content-stack {
  display: grid;
  gap: 1rem;
}

.paper-card {
  padding: 1.45rem 1.5rem;
}

.paper-card-selection {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.paper-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.pill-source {
  background: rgba(60, 140, 255, 0.14);
}

.pill-type {
  background: rgba(255, 206, 27, 0.16);
}

.pill-category {
  background: rgba(6, 148, 148, 0.16);
}

.pill-merged {
  background: rgba(190, 81, 3, 0.14);
}

.meta {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 206, 27, 0.22);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.paper-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 206, 27, 0.4);
  transform: translateY(-1px);
}

.paper-body {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 1rem;
}

.paper-section {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.paper-section h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.paper-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.table-panel {
  padding: 1.7rem;
}

.trend-stage {
  margin-bottom: 1.25rem;
  padding: 1.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

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

.trend-card {
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(60, 140, 255, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.025);
}

.trend-card-link {
  display: block;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.trend-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 206, 27, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 206, 27, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(60, 140, 255, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 206, 27, 0.08);
}

.trend-card-link:hover .trend-card-label,
.trend-card-link:hover h3 {
  color: #fff5cf;
}

.trend-card-link:hover .trend-card-copy {
  color: var(--muted-strong);
}

.trend-card-link:hover .trend-line-track {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18));
}

.trend-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.trend-card-head h3 {
  margin: 0.18rem 0 0;
  font-size: 1.08rem;
}

.trend-card-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.trend-line {
  position: relative;
  height: 28px;
  margin: 1rem 0 0.7rem;
}

.trend-line-track,
.trend-line-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 999px;
}

.trend-line-track {
  left: 0;
  right: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trend-line-fill {
  left: 0;
}

.trend-line-fill-high {
  background: linear-gradient(90deg, rgba(190, 81, 3, 0.5), rgba(255, 206, 27, 0.95));
}

.trend-line-fill-mid {
  background: linear-gradient(90deg, rgba(6, 148, 148, 0.5), rgba(60, 140, 255, 0.95));
}

.trend-line-fill-low {
  background: linear-gradient(90deg, rgba(6, 148, 148, 0.32), rgba(6, 148, 148, 0.72));
}

.trend-line-node {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(10, 13, 19, 0.92);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.03);
}

.trend-line-node-high {
  background: var(--gold);
}

.trend-line-node-mid {
  background: var(--blue);
}

.trend-line-node-low {
  background: var(--teal);
}

.trend-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.coverage-table-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.feed-table-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
}

.feed-table {
  width: 100%;
  border-collapse: collapse;
}

.coverage-table th {
  padding: 1rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-table th {
  padding: 1rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.coverage-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  vertical-align: top;
}

.feed-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  vertical-align: top;
}

.coverage-row {
  cursor: pointer;
  transition: background 140ms ease;
}

.coverage-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.coverage-link {
  text-decoration: none;
  font-weight: 700;
}

.coverage-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 34px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.coverage-count-high {
  background: rgba(190, 81, 3, 0.2);
  color: #ffd8be;
}

.coverage-count-mid {
  background: rgba(255, 206, 27, 0.18);
  color: #fff0b5;
}

.coverage-count-low {
  background: rgba(6, 148, 148, 0.18);
  color: #c8ffff;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-pill-muted {
  background: rgba(190, 81, 3, 0.1);
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.keyword-row-muted {
  margin-bottom: 1rem;
}

.scoring-list {
  margin-top: 0.5rem;
}

.compact-item-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.compact-item-inline:first-child {
  padding-top: 0.2rem;
  border-top: 0;
}

.compact-item-inline h3,
.compact-item-inline p {
  margin: 0;
}

@media (max-width: 860px) {
  .trend-board {
    grid-template-columns: 1fr;
  }
}

.post-card,
.article-card {
  padding: 1.7rem;
}

.article-shell {
  max-width: 980px;
}

.article-card h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  max-width: 18ch;
  margin-bottom: 0.8rem;
}

.article-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.article-body > p,
.article-body > ul,
.article-body > div {
  margin: 0;
}

.article-body strong {
  color: var(--text);
}

.article-list {
  margin: -0.1rem 0 0.2rem;
  padding-left: 1.15rem;
  color: var(--muted-strong);
  line-height: 1.7;
}

.article-list li + li {
  margin-top: 0.35rem;
}

.post-link {
  color: #fff0b5;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 206, 27, 0.24);
}

.post-link:hover {
  border-bottom-color: rgba(255, 206, 27, 0.5);
}

.flow-diagram {
  margin: 0.2rem 0 0.35rem;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(60, 140, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.012);
}

.flow-caption {
  margin: 0 0 0.9rem;
  color: rgba(227, 233, 244, 0.62);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-steps {
  display: grid;
  gap: 0.75rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 12px;
  background: rgba(255, 206, 27, 0.12);
  color: #fff0b5;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flow-step-body {
  display: grid;
  gap: 0.18rem;
}

.flow-step-text,
.flow-step-meta {
  margin: 0;
}

.flow-step-text {
  color: var(--text);
  font-weight: 700;
}

.flow-step-meta {
  color: rgba(227, 233, 244, 0.62);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 16, 0.74);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
}

.footer-title {
  margin-bottom: 0.55rem;
}

.footer-copy {
  max-width: 52ch;
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

@keyframes loading-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1100px) {
  .hero,
  .hero-homepage,
  .section-split,
  .summary-grid,
  .insights-slab,
  .feature-grid,
  .taxonomy-grid,
  .content-grid,
  .control-panel,
  .paper-body,
  .why-grid,
  .credibility-strip {
    grid-template-columns: 1fr;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .controls {
    justify-content: flex-start;
  }

  .credibility-strip {
    display: grid;
  }

  .about-profile-grid {
    grid-template-columns: 1fr;
  }

  .about-shell .section-split {
    gap: 1rem;
  }
}

@media (max-width: 860px) {
  .site-header-inner,
  .site-footer-inner,
  .paper-header,
  .section-heading {
    display: grid;
    gap: 1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-subnav {
    position: static;
    margin-top: 0.35rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    display: none;
  }

  .site-nav-item:hover .site-subnav,
  .site-nav-item:focus-within .site-subnav {
    display: block;
  }

  .hero,
  .section-block,
  .stack-card,
  .post-card,
  .article-card,
  .table-panel,
  .paper-card {
    padding: 1.35rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .footer-meta {
    align-items: start;
  }

  .paper-link {
    white-space: normal;
  }

  .about-shell {
    padding-top: 1.5rem;
  }

  .about-hero {
    padding: 1.7rem;
  }

  .about-shell .stack-card {
    padding: 1.3rem;
  }

  .about-education-item {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .about-focus-item {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .flow-step-num {
    width: fit-content;
  }
}
