/*
Theme Name: LIQVD Future
Description: LIQVD Asia Future blog theme — matches the main site design
Author: LIQVD Asia
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --color-bg:           #0D0D0D;
  --color-surface:      #141414;
  --color-muted:        #1E1E1E;
  --color-accent:       #C8F135;
  --color-accent-dark:  #A8D020;
  --color-accent-light: #E2FF5A;
  --color-text:         #F5F5F0;
  --color-text-muted:   rgba(245, 245, 240, 0.55);
  --color-text-dim:     rgba(245, 245, 240, 0.35);
  --color-border:       rgba(245, 245, 240, 0.08);
  --color-border-strong:rgba(245, 245, 240, 0.15);
  --font-display:       'Bricolage Grotesque', sans-serif;
  --font-body:          'DM Sans', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--color-bg); }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Noise overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── Grid lines ── */
.grid-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  pointer-events: none;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  opacity: 0.12;
}
@media (min-width: 768px) { .grid-lines { padding: 0 3rem; } }
.grid-line { width: 1px; height: 100%; background: rgba(245,245,240,0.25); }
.grid-line--md { display: none; }
@media (min-width: 768px) { .grid-line--md { display: block; } }

/* ── Animations ── */
@keyframes slideUpFade {
  0%   { opacity: 0; transform: translateY(44px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes animationIn {
  0%   { opacity: 0; transform: translateY(32px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.animate-slide-up { animation: slideUpFade 1s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ── Nav pill ── */
.nav-pill {
  background: rgba(20,20,20,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(245,245,240,0.08);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  width: 100%;
  max-width: 90rem;
}
.nav-wrap {
  position: fixed;
  left: 0; right: 0;
  top: 1rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  opacity: 0;
  animation: slideUpFade 1s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}
@media (min-width: 768px) { .nav-wrap { padding: 0 3rem; } }

.nav-logo img { height: 2.5rem; width: auto; object-fit: contain; }
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(245,245,240,0.6);
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a { transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--color-accent); }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-contact {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #0A0A0A;
  background: var(--color-accent);
  transition: opacity 0.3s;
}
.nav-contact:hover { opacity: 0.9; color: #0A0A0A; }
@media (min-width: 640px) { .nav-contact { display: flex; } }
.nav-hamburger {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(245,245,240,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.nav-hamburger:hover { color: var(--color-text); background: rgba(255,255,255,0.1); }
@media (min-width: 1024px) { .nav-hamburger { display: none; } }
.hamburger-icon { width: 20px; height: 20px; }

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu-close {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(245,245,240,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-close:hover { color: var(--color-text); background: rgba(255,255,255,0.1); }
.mobile-menu-nav { flex: 1; overflow-y: auto; padding: 2rem 1.5rem; }
.mobile-menu-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-text);
  transition: color 0.2s;
}
.mobile-menu-nav a:hover { color: var(--color-accent); }
.mobile-menu-nav a svg { width: 18px; height: 18px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 1.5rem 2rem;
}
@media (min-width: 768px) { .site-footer { padding: 3.5rem 3rem 2rem; } }
.footer-inner { max-width: 80rem; margin: 0 auto; }
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-main { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; max-width: 18rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.footer-brand p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; font-weight: 300; }
.footer-award { height: 4rem; width: auto; object-fit: contain; }
.footer-links { display: flex; gap: 3rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.875rem; font-weight: 500; color: var(--color-text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--color-text); }
.footer-social { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-social-label {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--color-text-dim); font-weight: 500; margin-bottom: 0.25rem;
}
.footer-social a { font-size: 0.875rem; font-weight: 500; color: var(--color-text-muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-dim);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--color-text); }

/* ── Layout ── */
.container { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 3rem; } }

/* ── Future Hero ── */
.future-hero {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
@media (min-width: 768px) {
  .future-hero { padding-top: 11rem; padding-bottom: 5rem; padding-left: 3rem; padding-right: 3rem; }
}
.future-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,241,53,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.future-hero-inner { position: relative; max-width: 90rem; margin: 0 auto; }
.future-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUpFade 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}
.future-hero-eyebrow span.line { height: 1px; width: 2rem; background: var(--color-accent); }
.future-hero-eyebrow span.label {
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}
.future-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 9vw, 8rem);
  opacity: 0;
  animation: slideUpFade 1s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}
.future-hero h1 .accent { color: var(--color-accent); font-style: italic; font-weight: 300; }
.future-hero p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 36rem;
  line-height: 1.7;
  opacity: 0;
  animation: slideUpFade 0.9s cubic-bezier(0.22,1,0.36,1) 0.8s forwards;
}

/* ── Filter bar ── */
.filter-bar {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 72px;
  z-index: 30;
  background: var(--color-bg);
}
@media (min-width: 768px) { .filter-bar { padding: 2rem 3rem; } }
.filter-bar-inner { max-width: 90rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-accent);
  color: #0A0A0A;
  border-color: var(--color-accent);
}

/* ── Featured post ── */
.featured-section {
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) { .featured-section { padding: 4rem 3rem; } }
.featured-inner { max-width: 90rem; margin: 0 auto; }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.featured-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 16/9;
}
.featured-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.featured-grid:hover .featured-img-wrap img { transform: scale(1.05); }
.featured-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  color: #0A0A0A;
}
.featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.featured-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.featured-category { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent); }
.featured-date { font-size: 0.75rem; color: var(--color-text-muted); }
.featured-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  transition: color 0.2s;
}
.featured-grid:hover .featured-title { color: var(--color-accent); }
.featured-excerpt {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap 0.2s;
}
.featured-grid:hover .read-link { gap: 0.75rem; }

/* ── Post grid ── */
.posts-section { padding: 3rem 1.5rem; }
@media (min-width: 768px) { .posts-section { padding: 4rem 3rem; } }
.posts-inner { max-width: 90rem; margin: 0 auto; }
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card-img {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 16/9;
  margin-bottom: 1.25rem;
}
.post-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.post-category { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent); }
.post-date { font-size: 0.75rem; color: var(--color-text-muted); }
.post-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  flex: 1;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.post-card:hover .post-title { color: var(--color-accent); }
.post-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 0.5rem;
  transition: gap 0.2s;
}
.post-card:hover .post-read-link { gap: 0.75rem; }

/* ── Pagination ── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 4rem; gap: 0.5rem; flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.2s;
}
.pagination-wrap a:hover, .pagination-wrap .current {
  background: var(--color-accent);
  color: #0A0A0A;
  border-color: var(--color-accent);
}

/* ── Perception section ── */
.perception-section {
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) { .perception-section { padding: 6rem 3rem; } }
.perception-inner { max-width: 90rem; margin: 0 auto; }
.perception-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .perception-grid { grid-template-columns: 1fr 2fr; gap: 5rem; } }
.perception-label { font-family: monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-accent); display: block; margin-bottom: 0.75rem; }
.perception-heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--color-text); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.perception-sub { font-size: 0.875rem; font-weight: 300; line-height: 1.6; color: var(--color-text-muted); }
.perception-list { list-style: none; display: flex; flex-direction: column; }
.perception-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: color 0.2s;
}
.perception-item-body { display: flex; align-items: flex-start; gap: 1rem; }
.perception-num { font-family: monospace; font-size: 0.75rem; color: var(--color-accent); margin-top: 0.125rem; flex-shrink: 0; }
.perception-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: var(--color-text); line-height: 1.4; transition: color 0.2s; }
.perception-item a:hover .perception-title { color: var(--color-accent); }
.perception-arrow { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--color-text-muted); transition: transform 0.2s; }
.perception-item a:hover .perception-arrow { transform: translateX(4px); }

/* ── Reports section ── */
.reports-section { padding: 4rem 1.5rem; }
@media (min-width: 768px) { .reports-section { padding: 6rem 3rem; } }
.reports-inner { max-width: 90rem; margin: 0 auto; }
.reports-header { margin-bottom: 3rem; }
.reports-label { font-family: monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-accent); display: block; margin-bottom: 0.75rem; }
.reports-heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--color-text); line-height: 1.1; letter-spacing: -0.02em; }
.reports-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 48rem; }
@media (min-width: 640px) { .reports-grid { grid-template-columns: 1fr 1fr; } }
.report-card {
  display: flex; flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.report-card:hover {
  border-color: rgba(200,241,53,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.report-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.report-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.report-card:hover .report-card-img img { transform: scale(1.05); }
.report-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); }
.report-badge {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--color-accent); color: #0A0A0A;
}
.report-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.report-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(0.9rem, 1.3vw, 1rem); color: var(--color-text); line-height: 1.4; transition: color 0.2s; }
.report-card:hover .report-title { color: var(--color-accent); }
.report-download { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--color-accent); margin-top: auto; transition: gap 0.2s; }
.report-card:hover .report-download { gap: 0.75rem; }

/* ── Single post ── */
.single-hero-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: clamp(380px, 60vh, 700px);
}
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.single-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 8%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.1) 100%);
}
.single-header {
  padding: 0 1.5rem;
  margin-top: -8rem;
  position: relative;
  z-index: 10;
  padding-bottom: 0;
}
@media (min-width: 768px) { .single-header { padding: 0 3rem; margin-top: -8rem; } }
.single-header-inner { max-width: 90rem; margin: 0 auto; }
.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  opacity: 0;
  animation: slideUpFade 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}
.single-breadcrumb a { transition: color 0.2s; }
.single-breadcrumb a:hover { color: var(--color-accent); }
.single-breadcrumb .sep { color: var(--color-border-strong); }
.single-breadcrumb .current-crumb { color: var(--color-accent); }
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUpFade 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}
.tag-primary {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  color: #0A0A0A;
}
.tag-secondary {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.single-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1.5rem;
  max-width: 56rem;
  opacity: 0;
  animation: slideUpFade 1s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}
.single-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  animation: slideUpFade 0.7s cubic-bezier(0.22,1,0.36,1) 0.55s forwards;
}
.single-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  background: var(--color-accent);
  color: #0A0A0A;
  flex-shrink: 0;
}
.author-name { font-size: 0.75rem; font-weight: 600; color: var(--color-text); }
.author-date { font-size: 0.75rem; color: var(--color-text-muted); }
.share-row { display: flex; align-items: center; gap: 0.75rem; }
.share-label { font-family: monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-text-muted); }
.share-btn {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.8; }

/* ── Article body ── */
.single-body {
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) { .single-body { padding: 4rem 3rem; } }
.single-body-inner { max-width: 90rem; margin: 0 auto; }
.single-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .single-columns { grid-template-columns: 2fr 1fr; gap: 4rem; } }
.single-content h1, .single-content h2, .single-content h3, .single-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.single-content h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
.single-content h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.single-content p {
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 300;
}
.single-content ul, .single-content ol {
  color: var(--color-text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 0.9375rem;
}
.single-content li { margin-bottom: 0.5rem; }
.single-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.single-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text);
  font-size: 1.1rem;
}
.single-content img { border-radius: 0.75rem; width: 100%; height: auto; margin: 1.75rem 0; }
.single-content strong { color: var(--color-text); font-weight: 600; }
.single-content hr { border-color: var(--color-border); margin: 2rem 0; border-style: solid; border-width: 0 0 1px 0; }
.single-content figure { margin: 1.75rem 0; }
.single-content figcaption { font-size: 0.8rem; color: var(--color-text-muted); text-align: center; margin-top: 0.5rem; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-sticky { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.sidebar-card-accent {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(200,241,53,0.06);
  border: 1px solid rgba(200,241,53,0.2);
}
.sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.sidebar-text { font-size: 0.875rem; line-height: 1.6; color: var(--color-text-muted); }
.sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap 0.2s;
}
.sidebar-link:hover { gap: 0.75rem; color: var(--color-accent); }
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tags-wrap a {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.2s;
}
.tags-wrap a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--color-accent);
  color: #0A0A0A;
  transition: opacity 0.3s;
  margin-top: 1rem;
}
.cta-btn:hover { opacity: 0.9; color: #0A0A0A; }

/* ── Related articles ── */
.related-section {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 768px) { .related-section { padding: 4rem 3rem; } }
.related-inner { max-width: 90rem; margin: 0 auto; }
.related-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.related-header span.line { height: 1px; width: 2rem; background: var(--color-accent); }
.related-header span.label { font-family: monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-accent); }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Article footer nav ── */
.article-footer-nav {
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 768px) { .article-footer-nav { padding: 2.5rem 3rem 3.5rem; } }
.article-footer-nav-inner {
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.back-link { font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); transition: color 0.2s; }
.back-link:hover { color: var(--color-text); }
.all-link { font-family: monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-text-muted); transition: color 0.2s; }
.all-link:hover { color: var(--color-accent); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-muted); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ── Selection ── */
::selection { background: var(--color-accent); color: #0A0A0A; }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
