/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palet — warm cream + ink + ochre */
  --ink: #0F1419;
  --ink-soft: #3D4650;
  --ink-muted: #6B7280;
  --cream: #FAF8F3;
  --cream-soft: #F3F0E8;
  --paper: #FFFFFF;
  --accent: #B45309;
  --accent-hover: #92400E;
  --accent-soft: #FEF3C7;
  --jt: #0F766E;
  --jt-soft: #E6F4F1;
  --data: #1E5A9A;
  --border: #E7E5E0;
  --border-strong: #D4D0C7;

  /* Tipografi */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem;
  --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem;
  --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  /* Shape */
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 24px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15,20,25,0.04);
  --sh: 0 4px 16px rgba(15,20,25,0.06);
  --sh-lg: 0 16px 40px rgba(15,20,25,0.08);

  --container: 1240px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --ink: #F1EEE6;
  --ink-soft: #B8B0A0;
  --ink-muted: #7A7266;
  --cream: #0F1419;
  --cream-soft: #171B22;
  --paper: #171B22;
  --accent: #F59E0B;
  --accent-hover: #FBBF24;
  --accent-soft: #2A200F;
  --jt: #2DD4BF;
  --jt-soft: #0F2620;
  --data: #60A5FA;
  --border: #262B33;
  --border-strong: #3A4049;
  --sh: 0 4px 16px rgba(0,0,0,0.4);
  --sh-lg: 0 16px 40px rgba(0,0,0,0.5);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 72px; /* for bottom nav */
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; z-index: 100; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--border-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--cream-soft); }
.btn-outline-light { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-ghost { color: var(--ink-soft); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============ UTILITY BAR ============ */
.utility-bar {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
}
.utility-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
  gap: var(--sp-4);
}
.utility-date { font-feature-settings: "tnum"; }
.utility-links {
  display: flex; align-items: center; gap: var(--sp-4);
}
.utility-links a { color: var(--ink-soft); transition: color var(--transition); }
.utility-links a:hover { color: var(--ink); }
.utility-link-suaramu {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--jt) !important;
}

@media (max-width: 640px) {
  .utility-bar { display: none; }
}

.dot-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(180,83,9,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180,83,9,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(180,83,9,0); }
}

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: var(--sp-5);
}
.logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
}
.logo-dot { color: var(--accent); }
.logo:hover { opacity: 0.85; }

.main-nav {
  display: flex; gap: var(--sp-5);
  font-size: 15px; font-weight: 500;
}
.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.is-active { color: var(--ink); font-weight: 600; }
.main-nav a.is-active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex; align-items: center; gap: var(--sp-1);
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: all var(--transition);
}
.icon-btn:hover { background: var(--cream-soft); color: var(--ink); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo { font-size: 26px; }
}


/* ============ PUBLIC EMPTY STATES ============ */
.public-empty-state {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.public-empty-state--home {
  margin: var(--sp-8) 0 var(--sp-7);
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
}
.public-empty-state--home .kicker {
  display: block;
  margin-bottom: var(--sp-4);
}
.public-empty-state--home h1 {
  max-width: 760px;
  margin: 0 auto var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.public-empty-state--home p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.125rem);
}
.public-empty-state--section {
  margin: var(--sp-7) 0;
  padding: var(--sp-6);
}
.public-empty-state--section .section-header {
  margin-bottom: var(--sp-4);
}
.empty-state-message {
  max-width: 680px;
  color: var(--ink-soft);
}
.panel-cta--planned {
  margin-bottom: var(--sp-8);
}
.footer-col p {
  color: var(--ink-soft);
  font-size: 14px;
}
@media (max-width: 600px) {
  .public-empty-state--home {
    margin-top: var(--sp-6);
    padding: var(--sp-6) var(--sp-5);
    text-align: left;
  }
  .public-empty-state--home h1,
  .public-empty-state--home p {
    margin-left: 0;
    margin-right: 0;
  }
  .public-empty-state--section {
    margin: var(--sp-6) 0;
    padding: var(--sp-5);
  }
}
@media (max-width: 768px) {
  body { padding-bottom: 0; }
  .footer { padding-bottom: var(--sp-7); }
}

/* ============ TICKER ============ */
.ticker {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.ticker-inner {
  display: flex; align-items: center; gap: var(--sp-5);
  padding-top: 12px; padding-bottom: 12px;
  overflow: hidden;
}
.ticker-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  padding-right: var(--sp-5);
  border-right: 1px solid var(--border);
}
.ticker-items {
  display: flex; gap: var(--sp-7);
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
  flex: 1;
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
}
.ticker-items::-webkit-scrollbar { display: none; }
.ticker-items a {
  color: var(--ink-soft);
  transition: color var(--transition);
  flex-shrink: 0;
}
.ticker-items a:hover { color: var(--ink); }

/* ============ CARDS & MEDIA ============ */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--sh);
}
.card-link { display: block; color: inherit; }
.card-link--row { display: grid; grid-template-columns: 100px 1fr; gap: var(--sp-4); align-items: stretch; }

.card-media,
.card-media-sm {
  position: relative;
  overflow: hidden;
  background: var(--fallback, linear-gradient(135deg, #e5e7eb, #9ca3af));
  aspect-ratio: 16 / 10;
}
.card-media-sm { aspect-ratio: 1 / 1; }
.card-media img,
.card-media-sm img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-media img,
.card:hover .card-media-sm img { transform: scale(1.04); }

.card-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.card-body-sm { padding: var(--sp-4) 0 var(--sp-4); }

/* Kicker */
.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.kicker--jt { color: var(--jt); }
.kicker--data { color: var(--data); }

/* Titles */
.card-title-xl {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-3);
  color: var(--ink);
}
.card-title-md {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600;
  line-height: 1.22; letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.card-title-sm {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}

.card-excerpt {
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: var(--sp-3);
}
.card-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px;
  font-size: 13px; color: var(--ink-muted);
}
.card-meta--sm { font-size: 12px; }
.meta-sep { opacity: 0.5; }

/* Badges */
.product-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.product-badge--news { color: var(--ink); }
.product-badge--explainer { color: var(--data); }
.product-badge--analysis { color: #7C3AED; }
.product-badge--data { color: var(--jt); }

.product-label {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.product-label--explainer { color: var(--data); }
.product-label--analysis { color: #7C3AED; }
.product-label--data { color: var(--jt); }
.product-label--news { color: var(--ink-soft); }

.save-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.94);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.save-btn:hover { color: var(--accent); transform: scale(1.08); }
.save-btn.is-saved { color: var(--accent); background: var(--accent-soft); }
.save-btn.is-saved svg { fill: var(--accent); }

/* ============ SECTION HEADERS ============ */
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex; align-items: center;
  gap: 10px;
}
.section-accent {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.section-accent--jt { background: var(--jt); }
.section-accent--data { background: var(--data); }
.section-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--transition);
}
.section-link:hover { color: var(--accent); }

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--sp-5);
  margin: var(--sp-6) 0 var(--sp-8);
}
.card-hero .card-media { aspect-ratio: 16 / 9; }
.card-hero .card-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }

.hero-side {
  display: grid;
  gap: var(--sp-5);
}
.card-hero-sm .card-body-sm { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; }
.card-hero-sm .card-link--row { height: 100%; }
.card-hero-sm .card-title-sm { font-size: 16px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .card-hero-sm .card-link--row { grid-template-columns: 80px 1fr; }
}
@media (max-width: 600px) {
  .hero-side { grid-template-columns: 1fr; }
  .card-hero .card-body { padding: var(--sp-4); }
}

/* ============ JAWA TENGAH MODULE ============ */
.jt-module {
  background: linear-gradient(180deg, var(--jt-soft) 0%, transparent 60%);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  margin: var(--sp-7) 0;
  border: 1px solid color-mix(in srgb, var(--jt) 15%, transparent);
}
[data-theme="dark"] .jt-module {
  background: linear-gradient(180deg, var(--jt-soft) 0%, transparent 80%);
}
.jt-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-5);
}
.card-jt--featured { grid-row: span 2; }
.card-jt--featured .card-media { aspect-ratio: 4 / 3; }
.card-jt:not(.card-jt--featured) .card-media { aspect-ratio: 16 / 10; }
.card-jt .card-body { padding: var(--sp-4) var(--sp-4) var(--sp-5); }

@media (max-width: 900px) {
  .jt-grid { grid-template-columns: 1fr 1fr; }
  .card-jt--featured { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .jt-grid { grid-template-columns: 1fr; }
  .card-jt--featured { grid-column: auto; }
  .jt-module { padding: var(--sp-5) var(--sp-4); }
}

/* ============ CONTENT GRID ============ */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-7);
  margin-bottom: var(--sp-8);
}
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* Filter tabs */
.filter-tabs {
  display: flex; gap: 4px;
  margin-bottom: var(--sp-5);
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 7px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
}
.filter-tab:hover { color: var(--ink); }
.filter-tab.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Feed list */
.feed-list {
  display: flex; flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.feed-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-5);
}
.feed-item:last-child { border-bottom: none; }
.feed-link {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--sp-5);
  align-items: flex-start;
}
.feed-media {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--fallback, linear-gradient(135deg, #e5e7eb, #9ca3af));
}
.feed-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.feed-link:hover .feed-media img { transform: scale(1.04); }
.feed-title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  line-height: 1.28;
  margin-bottom: 6px;
  transition: color var(--transition);
}
.feed-link:hover .feed-title { color: var(--accent); }
.feed-excerpt {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .feed-link { grid-template-columns: 100px 1fr; gap: var(--sp-3); }
  .feed-title { font-size: 16px; }
  .feed-excerpt { display: none; }
}

/* ============ SIDEBAR ============ */
.sidebar {
  display: flex; flex-direction: column;
  gap: var(--sp-5);
  position: sticky; top: 100px;
  align-self: flex-start;
}
@media (max-width: 1024px) {
  .sidebar { position: static; }
}

.widget {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-5);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
.widget-desc {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}
.widget-fine {
  font-size: 11px; color: var(--ink-muted);
  margin-top: var(--sp-3);
  line-height: 1.5;
}
.widget-fine a { color: var(--ink-soft); text-decoration: underline; }

/* Newsletter */
.widget-newsletter { border-top: 3px solid var(--accent); }
.newsletter-form { display: flex; flex-direction: column; gap: var(--sp-2); }
.newsletter-form input {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font: inherit; font-size: 14px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--transition);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}

/* Popular */
.popular-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.popular-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.popular-list li:last-child .popular-item { border-bottom: none; }
.popular-item:hover { color: var(--accent); }
.popular-num {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.popular-title {
  font-size: 14px; font-weight: 500;
  line-height: 1.4;
}

/* Reader Panel widget */
.widget-panel {
  background: var(--ink);
  color: var(--cream);
  border: none;
}
.widget-panel .widget-title { color: var(--cream); }
.widget-panel .widget-desc { color: rgba(241,238,230,0.75); }
.widget-panel .widget-link {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  margin-top: var(--sp-3);
  transition: opacity var(--transition);
}
.widget-panel .widget-link:hover { opacity: 0.8; }
.panel-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  margin-bottom: var(--sp-3);
}

/* ============ RESEARCH MODULE ============ */
.research-module {
  margin: var(--sp-8) 0;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border);
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px) {
  .research-grid { grid-template-columns: 1fr; }
}
.card-research .card-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }

/* Research visualizations */
.research-viz {
  aspect-ratio: 16 / 9;
  padding: var(--sp-5);
  background: var(--cream-soft);
  display: flex; align-items: flex-end; justify-content: space-around;
  gap: 8px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.research-viz .bar {
  flex: 1;
  height: var(--h);
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.card-research:hover .research-viz .bar { opacity: 1; }
.research-viz .bar:nth-child(even) { background: var(--jt); }

.research-viz .donut {
  --p: 50;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin: auto;
}
.research-viz .donut::after {
  content: '';
  width: 70px; height: 70px;
  background: var(--cream-soft);
  border-radius: 50%;
  position: absolute;
}
.research-viz .donut-label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--ink);
  z-index: 1;
}

.research-viz--grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  align-items: stretch;
  padding: var(--sp-4);
  gap: 4px;
}
.research-viz--grid .cell {
  background: var(--jt);
  opacity: calc(var(--i) / 100);
  border-radius: 3px;
}

/* ============ PANEL CTA ============ */
.panel-cta {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-6);
  margin: var(--sp-8) 0;
}
.panel-cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.panel-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: var(--sp-2) 0 var(--sp-3);
}
.panel-cta p {
  font-size: 15px; line-height: 1.6;
  color: rgba(241,238,230,0.8);
  max-width: 560px;
}
.panel-cta-actions {
  display: flex; flex-direction: column; gap: var(--sp-3);
  align-items: stretch;
}
@media (max-width: 768px) {
  .panel-cta-inner { grid-template-columns: 1fr; }
  .panel-cta { padding: var(--sp-6) var(--sp-4); }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(241,238,230,0.7);
  padding: var(--sp-8) 0 var(--sp-6);
  margin-top: var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(241,238,230,0.6);
  margin-bottom: var(--sp-4);
}
.footer-desc { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 14px;
  color: rgba(241,238,230,0.7);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-5);
  gap: var(--sp-4);
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-meta { color: rgba(241,238,230,0.5); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ============ MOBILE BOTTOM NAV ============ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  z-index: 50;
  justify-content: space-around;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.bottom-nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  font-size: 11px; font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--r-sm);
  transition: color var(--transition);
  flex: 1;
  max-width: 76px;
}
.bottom-nav-item.is-active { color: var(--accent); }
.bottom-nav-item svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 80px; }
  .footer { padding-bottom: 100px; }
}

/* ============ ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  .card, .feed-item, .widget {
    animation: fadeIn 500ms ease-out both;
  }
  .hero .card { animation-delay: 40ms; }
  .jt-module .card { animation-delay: 80ms; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}