/* ============================================================
   TYPOGRAPHY TRENDS 2015–2025 — Design Your Way
   External stylesheet for static HTML export
   ============================================================ */

/* ── Google Fonts (loaded in HTML head) ────────────────────── */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --border: rgba(15,23,42,0.07);
  --border2: rgba(15,23,42,0.13);
  --accent: #0d9488;
  --accent2: #dc2626;
  --accent3: #2563eb;
  --nav-h: 68px;
  --radius: 12px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg2);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* ── Toast ─────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; padding: 8px 18px;
  border-radius: 100px; font-size: 13px; font-weight: 500;
  opacity: 0; transition: all 0.25s; z-index: 9999;
  pointer-events: none; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,0.08); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--text2); border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); background: rgba(13,148,136,0.06); }
.nav-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.25s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15,23,42,0.1);
  padding: 8px; min-width: 210px;
  opacity: 0; pointer-events: none; transition: opacity 0.18s; z-index: 300;
}
.nav-item:hover .dropdown { opacity: 1; pointer-events: auto; }
.dropdown li a {
  display: block; padding: 9px 14px; font-size: 14px;
  color: var(--text2); border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: var(--bg3); color: var(--accent); }
.nav-cta {
  padding: 9px 20px; background: #0f172a; color: #fff !important;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: #1e293b !important; box-shadow: 0 4px 12px rgba(15,23,42,0.2); }

/* Mobile nav */
#menu-toggle { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.5); z-index: 250; cursor: pointer;
}
.mobile-menu {
  position: fixed; top: 0; right: 0; width: 300px; height: 100%;
  background: #fff; z-index: 260;
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; box-shadow: 0 12px 40px rgba(15,23,42,0.12);
  display: flex; flex-direction: column;
}
@media (max-width: 900px) {
  #menu-toggle:checked ~ .mobile-overlay { display: block; }
  #menu-toggle:checked ~ .mobile-menu { transform: translateX(0); }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
}
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.mobile-menu-header img { height: 26px; }
.mobile-menu-close {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.mobile-nav { padding: 12px 0; flex: 1; }
.mobile-nav-item { border-bottom: 1px solid var(--border); }
details.mobile-nav-item summary { list-style: none; }
details.mobile-nav-item summary::-webkit-details-marker { display: none; }
.mobile-nav-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; font-size: 15px; font-weight: 600; color: var(--text);
  background: none; border: none;
}
.mobile-nav-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.25s; }
details[open] .mobile-nav-toggle svg { transform: rotate(180deg); }
.mobile-nav-link { display: block; padding: 14px 24px; font-size: 15px; font-weight: 600; color: var(--text); }
.mobile-nav-sub { background: var(--bg3); }
.mobile-nav-sub a { display: block; padding: 10px 24px 10px 36px; font-size: 14px; color: var(--text2); }
.mobile-menu-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.mobile-cta {
  display: block; width: 100%; padding: 12px; background: #0f172a; color: #fff;
  border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center;
}

/* ── Site Footer ───────────────────────────────────────────── */
.site-footer { background: #0a0f1e; color: #fff; }
.footer-brand {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0;
}
.footer-title {
  font-size: 16px; font-weight: 700; color: #f8fafc;
  letter-spacing: -0.01em;
}
.footer-top {
  max-width: 1280px; margin: 0 auto; padding: 72px 32px 56px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
.footer-logo { height: 30px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand-desc { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.5); margin-bottom: 20px; max-width: 320px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.4; }
.footer-contact-item svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 1px; opacity: 0.55; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: rgba(255,255,255,0.5);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social-btn svg { width: 14px; height: 14px; fill: currentColor; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); margin-bottom: 16px; display: block; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-tools { border-top: 1px solid rgba(255,255,255,0.07); }
.footer-tools-inner { max-width: 1280px; margin: 0 auto; padding: 32px; }
.footer-tools-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); margin-bottom: 16px; display: block; }
.footer-tools-links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-tools-links a { font-size: 12px; color: rgba(255,255,255,0.45); padding: 4px 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.footer-tools-links a:hover { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); }
.footer-bottom-inner {
  max-width: 1280px; margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  position: relative;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-bg-type {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; opacity: 0.03;
}
.hero-bg-aa {
  position: absolute; top: -20px; left: -10px;
  font-family: 'Bebas Neue', sans-serif; font-size: 320px; font-weight: 900;
  color: #0f172a; line-height: 1; letter-spacing: -0.02em;
}
.hero-bg-tt {
  position: absolute; bottom: -40px; right: -20px;
  font-family: 'Playfair Display', serif; font-size: 280px; font-weight: 900;
  font-style: italic; color: #0f172a; line-height: 1;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 32px 80px; position: relative; z-index: 1;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
}
.hero-badge-dot { width: 6px; height: 6px; background: #0d6e6e; border-radius: 50%; display: inline-block; }
.hero-badge-meta { font-size: 11px; color: #94a3b8; font-weight: 600; }
.hero-h1 { line-height: 1; margin-bottom: 32px; }
.hero-line1 {
  display: block; font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 8vw, 110px); font-weight: 900; font-style: italic;
  color: #0f172a; letter-spacing: -0.03em; line-height: 1.1;
}
.hero-line2 {
  display: block; font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 110px); font-weight: 400; color: #0d6e6e;
  letter-spacing: 0.02em; line-height: 1.1; margin-top: -8px;
}
.hero-line3 {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(52px, 8vw, 110px); font-weight: 800; color: #0f172a;
  letter-spacing: -0.04em; line-height: 1; margin-top: -4px;
}
.hero-desc {
  font-size: clamp(16px, 2vw, 20px); color: #64748b; line-height: 1.65;
  max-width: 560px; margin-bottom: 48px; font-weight: 400;
}
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-bottom: 64px; }
.hero-stat-num { display: block; font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1; }
.hero-stat-label { font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-marquee-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #f8fafc; overflow: hidden;
}

/* ── Marquee ───────────────────────────────────────────────── */
.marquee-wrap { overflow: hidden; white-space: nowrap; padding: 10px 0; }
.marquee-track {
  display: inline-flex; gap: 0; align-items: center;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-size: 15px; color: #334155; padding: 0 4px; }
.marquee-dot { font-size: 18px; color: #cbd5e1; margin: 0 16px; }

/* ── Page Nav ──────────────────────────────────────────────── */
.typo-page-nav {
  position: sticky; top: var(--nav-h); z-index: 80;
  background: rgba(248,250,252,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0; overflow-x: auto;
  scrollbar-width: none;
}
.typo-page-nav::-webkit-scrollbar { display: none; }
.typo-page-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; gap: 2px; align-items: center; height: 48px;
}
.nav-pill {
  padding: 5px 14px; border-radius: 100px; border: none;
  background: transparent; color: #64748b;
  font-size: 11.5px; font-weight: 600;
  transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.01em;
}
.nav-pill:hover { background: var(--bg3); color: var(--text); }
.nav-pill.active { background: #0f172a; color: #fff; }

/* ── Sections / Bands ──────────────────────────────────────── */
.section { padding: 80px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-title {
  font-size: 36px; font-weight: 800; color: #0f172a; margin: 0 0 12px;
  letter-spacing: -0.02em; line-height: 1.2;
}
.section-subtitle {
  font-size: 16px; color: #475569; line-height: 1.7; margin: 0 0 32px;
  max-width: 700px;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 64px 0; }
.bg-white { background: #ffffff; }
.bg-light { background: #f8fafc; }
.bg-subtle { background: #f1f5f9; }
.bg-dark { background: #0a0f1e; }
.bg-ink { background: #050810; }
.scroll-target { scroll-margin-top: calc(var(--nav-h) + 48px); }

/* ── Chapter Header ────────────────────────────────────────── */
.chapter-header { margin-bottom: 56px; }
.chapter-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.chapter-badge {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.chapter-badge-light { background: #f1f5f9; color: #64748b; }
.chapter-badge-dark { background: rgba(255,255,255,0.08); color: #94a3b8; }
.chapter-subtitle-light { font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 0.06em; }
.chapter-subtitle-dark { font-size: 10px; font-weight: 700; color: #475569; letter-spacing: 0.06em; }
.chapter-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px;
}
.chapter-title-light { color: #0f172a; }
.chapter-title-dark { color: #f8fafc; }
.chapter-desc { font-size: 16px; color: #64748b; line-height: 1.7; max-width: 580px; }
.trend-cards-stack { display: flex; flex-direction: column; gap: 24px; }

/* ── Stats Band ────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px;
}
.stat-card {
  padding: 28px 24px; background: rgba(255,255,255,0.04);
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.06);
}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px; font-weight: 900; color: #fff;
  line-height: 1; letter-spacing: -0.03em; margin-bottom: 6px;
}
.stat-name { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 2px; }
.stat-sub { font-size: 11px; color: #64748b; }

/* ── Trend Card ────────────────────────────────────────────── */
.trend-card {
  border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}
.trend-card-light {
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04), 0 16px 48px rgba(15,23,42,0.04);
  background: #fff;
}
.trend-card-dark {
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 16px 48px rgba(0,0,0,0.2);
  background: #0a0f1e;
}
@media (max-width: 820px) {
  .trend-card { grid-template-columns: 1fr !important; }
  .demo-panel, .info-panel { order: unset !important; }
}
.demo-panel {
  min-height: 420px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 40px; position: relative; overflow: hidden;
}
.info-panel { padding: 40px; display: flex; flex-direction: column; overflow-y: auto; }

/* ── Era/Status badges ─────────────────────────────────────── */
.trend-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.era-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.era-badge-dark { background: rgba(255,255,255,0.08); color: #f8fafc; }
.era-badge-light { background: #0f172a; color: #f8fafc; }
.trend-num { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; margin-left: auto;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-active { background: #f0fdf4; color: #16a34a; border: 1px solid rgba(34,197,94,0.25); }
.status-active-dark { background: rgba(34,197,94,0.15); color: #16a34a; border: 1px solid rgba(34,197,94,0.25); }
.status-peaking { background: #eff6ff; color: #2563eb; border: 1px solid rgba(59,130,246,0.25); }
.status-peaking-dark { background: rgba(59,130,246,0.15); color: #2563eb; border: 1px solid rgba(59,130,246,0.25); }
.status-fading { background: #fffbeb; color: #b45309; border: 1px solid rgba(245,158,11,0.25); }
.status-fading-dark { background: rgba(245,158,11,0.15); color: #b45309; border: 1px solid rgba(245,158,11,0.25); }
.status-classic { background: #f1f5f9; color: #64748b; border: 1px solid rgba(148,163,184,0.25); }
.status-classic-dark { background: rgba(148,163,184,0.12); color: #64748b; border: 1px solid rgba(148,163,184,0.25); }

/* ── Trend info panel ──────────────────────────────────────── */
.trend-title {
  font-size: clamp(24px, 2.8vw, 36px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 5px;
}
.trend-subtitle { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.trend-specimen {
  font-size: clamp(40px, 5vw, 60px); line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 18px;
  overflow: hidden; white-space: nowrap; user-select: none;
}
.trend-desc { font-size: 13.5px; line-height: 1.75; margin-bottom: 22px; }
.trend-section-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
}
.chips-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 500; background: #f1f5f9; color: #475569;
}
.chip-light { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.chip-dark { background: rgba(255,255,255,0.06); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.08); }
.brands-row { font-size: 12.5px; line-height: 1.6; margin-bottom: 18px; }
.fonts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 8px; }
.font-chip {
  padding: 7px 11px; border-radius: 8px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.font-chip-light { background: #f8fafc; border: 1px solid #e2e8f0; }
.font-chip-dark { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.font-chip-sample { font-size: 16px; line-height: 1.2; margin-bottom: 2px; }
.font-chip-name { font-size: 10px; font-weight: 600; }
.pair-with {
  margin-top: 8px; padding: 9px 13px; border-radius: 8px;
  font-size: 12px; font-weight: 500; margin-bottom: 20px;
}
.pair-light { background: #f0fdf9; border: 1px solid rgba(5,150,105,0.15); color: #047857; }
.pair-dark { background: rgba(13,110,110,0.18); border: 1px solid rgba(13,200,150,0.2); color: #34d399; }

/* ── CSS Snippet ───────────────────────────────────────────── */
.css-snippet-wrap { margin-top: 20px; }
.css-snippet-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.css-snippet-label { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
.copy-btn {
  border-radius: 6px; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border: 1px solid; letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.2s;
}
.copy-btn-idle { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.copy-btn-done { background: #059669; color: #fff; border-color: #059669; }
.code-block {
  background: #0f172a; border-radius: 10px; padding: 14px 16px;
  font-family: 'Space Mono', monospace; font-size: 11.5px; line-height: 1.85;
  color: #94a3b8; border: 1px solid rgba(255,255,255,0.06); overflow-x: auto;
}
.code-prop { color: #7dd3fc; }
.code-colon { color: #64748b; }
.code-val { color: #a3e635; }

/* ── Range Inputs ──────────────────────────────────────────── */
input[type=range] {
  -webkit-appearance: none; width: 100%; height: 4px;
  border-radius: 2px; background: rgba(15,23,42,0.1); outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: #0f172a;
  box-shadow: 0 1px 6px rgba(15,23,42,0.3); transition: transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type=range].light-track { background: rgba(255,255,255,0.15); }
input[type=range].light-track::-webkit-slider-thumb { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.3); }

/* ── Lineage Diagram ───────────────────────────────────────── */
.lineage-wrap {
  background: #ffffff; border-radius: 24px;
  border: 1px solid #e2e8f0; padding: 32px 40px;
  overflow-x: auto;
}
.lineage-title { font-size: 28px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.lineage-subtitle { font-size: 13px; color: #64748b; margin-bottom: 32px; line-height: 1.6; max-width: 640px; }
.lineage-row { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.lineage-label {
  width: 120px; font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.08em;
  flex-shrink: 0; padding-right: 16px;
}
.lineage-nodes { display: flex; align-items: center; gap: 0; }
.lineage-node {
  display: inline-block; padding: 10px 14px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #f8fafc;
  font-size: 12px; font-weight: 700; color: #0f172a;
  white-space: nowrap; cursor: default; position: relative;
  transition: all 150ms ease-out;
}
.lineage-node:hover { background: #ffffff; border-color: #0d6e6e; z-index: 10; }
.lineage-node-root { background: #1e293b; color: #f8fafc; border: none; }
.lineage-arrow { display: inline-block; color: #94a3b8; padding: 0 8px; font-size: 13px; flex-shrink: 0; }
.lineage-node-year { font-size: 10px; opacity: 0.8; margin-top: 2px; }
.lineage-tooltip {
  position: absolute; max-width: 220px; background: #0f172a; color: #f8fafc;
  font-size: 11px; line-height: 1.6; padding: 10px 12px; border-radius: 8px;
  z-index: 20; white-space: normal; top: calc(100% + 8px); left: 0;
  pointer-events: none; box-shadow: 0 4px 12px rgba(15,23,42,0.15);
  display: none;
}
.lineage-node:hover .lineage-tooltip { display: block; }
.lineage-footer {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid #e2e8f0;
  font-size: 11px; color: #64748b; line-height: 1.6;
}

/* ── Font Playground ───────────────────────────────────────── */
.playground-wrap {
  background: #fff; border-radius: 24px; border: 1px solid #e2e8f0; overflow: hidden;
}
.playground-header { padding: 32px 40px 24px; border-bottom: 1px solid #f1f5f9; }
.playground-header-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 8px;
}
.playground-header-title { font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 4px; }
.playground-header-desc { font-size: 13.5px; color: #64748b; }
.playground-preview {
  padding: 40px; background: #f8fafc; border-bottom: 1px solid #f1f5f9;
  min-height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
#pg-preview-text {
  font-size: 64px; color: #0f172a; line-height: 1.1;
  text-align: center; word-break: break-word; transition: font-family 0.2s, font-size 0.15s;
}
.playground-controls {
  padding: 24px 40px; border-bottom: 1px solid #f1f5f9;
  display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end;
}
.pg-control { display: flex; flex-direction: column; gap: 6px; }
.pg-control-full { flex: 1; min-width: 200px; }
.pg-label { font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 0.08em; text-transform: uppercase; }
.pg-text-input {
  width: 100%; padding: 9px 14px; border-radius: 8px;
  border: 1px solid #e2e8f0; font-size: 14px; color: #0f172a;
  background: #fff; outline: none; box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.pg-text-input:focus { border-color: #0f172a; }
.pg-range-wrap { width: 160px; }
.playground-filter { padding: 24px 40px 32px; }
.pg-cats { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.pg-cat-btn {
  padding: 4px 14px; border-radius: 100px; font-size: 11px; font-weight: 600;
  border: 1px solid; transition: all 0.15s;
}
.pg-cat-btn-idle { background: #fff; color: #64748b; border-color: #e2e8f0; }
.pg-cat-btn-active { background: #0d6e6e; color: #fff; border-color: #0d6e6e; }
.pg-fonts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px;
}
.pg-font-btn {
  padding: 12px 14px; border-radius: 10px; text-align: left;
  transition: all 0.15s; border: 1px solid; background: none;
}
.pg-font-btn-idle { border-color: #e2e8f0; background: #fafafa; }
.pg-font-btn-active { border-color: #0d6e6e; background: #f0fdf9; }
.pg-font-sample { font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
.pg-font-name { font-size: 10px; color: #64748b; font-weight: 600; line-height: 1.3; }
.pg-font-cat { font-size: 9px; color: #94a3b8; margin-top: 2px; }
.pg-info {
  margin-top: 16px; padding: 12px 16px; background: #f1f5f9; border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.pg-info-text { font-size: 12px; color: #334155; }
.pg-info-code {
  font-size: 11px; color: #64748b; font-family: 'Space Mono', monospace;
  background: #e2e8f0; padding: 3px 8px; border-radius: 5px;
}

/* ── Font Pairings ─────────────────────────────────────────── */
.pairings-header { margin-bottom: 32px; }
.pairings-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; }
.pairings-title { font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 6px; }
.pairings-desc { font-size: 14px; color: #64748b; max-width: 500px; }
.pairings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px;
}
.pairing-card {
  border-radius: 20px; overflow: hidden;
  border: 1px solid #e2e8f0; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}
.pairing-card.open {
  box-shadow: 0 8px 32px rgba(15,23,42,0.12);
  transform: translateY(-2px);
}
.pairing-demo { padding: 32px 28px 28px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.pairing-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px; opacity: 0.9;
}
.pairing-headline { font-size: 28px; line-height: 1.15; margin-bottom: 12px; letter-spacing: -0.01em; }
.pairing-body { font-size: 13px; line-height: 1.7; opacity: 0.75; }
.pairing-meta {
  padding: 16px 20px; background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pairing-fonts-label { font-size: 12px; font-weight: 700; color: #0f172a; }
.pairing-name-label { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.pairing-toggle-label { font-size: 11px; font-weight: 600; }
.pairing-css {
  padding: 16px 20px 20px; background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: none;
}
.pairing-card.open .pairing-css { display: block; }
.pairing-code { font-family: 'Space Mono', monospace; font-size: 11px; line-height: 2; color: #94a3b8; }

/* ── Industry Map ──────────────────────────────────────────── */
.industry-wrap {
  background: #ffffff; border-radius: 24px; border: 1px solid #e2e8f0; padding: 32px 40px;
}
.industry-title { font-size: 28px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.industry-desc { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.industry-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.industry-btn {
  padding: 8px 16px; border-radius: 20px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 200ms ease;
}
.industry-btn-idle { background: #f1f5f9; color: #64748b; }
.industry-btn-active { background: #0f172a; color: #ffffff; }
.industry-header-card {
  background: #0a0f1e; border-radius: 12px; padding: 20px 24px;
  margin-bottom: 32px; color: #ffffff;
}
.industry-header-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.industry-header-brands { font-size: 13px; color: #cbd5e1; }
.industry-trends-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px;
}
.industry-trend-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px 16px; transition: all 200ms ease; cursor: pointer;
}
.industry-trend-card:hover { border-color: #0d6e6e; background: #ffffff; }
.industry-trend-name { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.industry-trend-status { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.industry-status-dot { width: 5px; height: 5px; border-radius: 50%; }
.industry-status-label { font-size: 10px; font-weight: 600; color: #64748b; }
.industry-trend-why { font-size: 11.5px; color: #64748b; line-height: 1.5; }
.industry-footnote { font-size: 11px; color: #94a3b8; padding-top: 16px; border-top: 1px solid #e2e8f0; }

/* ── Type Scale Tool ───────────────────────────────────────── */
.scale-tool-wrap {
  background: #fff; border-radius: 20px; border: 1px solid #e2e8f0; overflow: hidden;
}
.scale-tool-header { padding: 28px 32px 20px; border-bottom: 1px solid #f1f5f9; }
.scale-tool-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; }
.scale-tool-title { font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 4px; }
.scale-tool-desc { font-size: 13px; color: #64748b; }
.scale-tool-controls {
  padding: 20px 32px; border-bottom: 1px solid #f1f5f9;
  display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end;
}
.scale-tool-label { display: block; font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.scale-ratios { display: flex; gap: 4px; flex-wrap: wrap; }
.scale-ratio-btn {
  padding: 3px 9px; border-radius: 100px; font-size: 10px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.scale-ratio-idle { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.scale-ratio-active { background: #0d6e6e; color: #fff; border: 1px solid #0d6e6e; }
.scale-rows { padding: 16px 32px 24px; }
.scale-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 5px 0; border-bottom: 1px solid #f8fafc;
}
.scale-row:last-child { border-bottom: none; }
.scale-row-label { width: 28px; flex-shrink: 0; font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 0.06em; text-transform: uppercase; font-family: 'Space Mono', monospace; }
.scale-row-text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: #0f172a; line-height: 1.1; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scale-row-size { font-size: 11px; color: #64748b; font-family: 'Space Mono', monospace; flex-shrink: 0; }

/* ── Quick Reference ───────────────────────────────────────── */
.qref-wrap { background: #fff; border-radius: 20px; border: 1px solid #e2e8f0; overflow: hidden; }
.qref-header { padding: 28px 32px 20px; border-bottom: 1px solid #f1f5f9; }
.qref-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; }
.qref-title { font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.qref-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px;
  padding: 12px 32px; border-bottom: 1px solid #f8fafc; align-items: center;
}
.qref-row:last-child { border-bottom: none; }
.qref-name { font-size: 12px; font-weight: 600; color: #334155; }
.qref-size { font-size: 10.5px; color: #0d6e6e; font-family: 'Space Mono', monospace; white-space: nowrap; }
.qref-weight { font-size: 10.5px; color: #7c3aed; font-family: 'Space Mono', monospace; white-space: nowrap; }
.qref-leading { font-size: 10.5px; color: #ea580c; font-family: 'Space Mono', monospace; white-space: nowrap; }
.qref-legend { padding: 10px 32px; display: flex; gap: 16px; border-top: 1px solid #f1f5f9; }
.qref-legend-item { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }

/* ── Timeless Fonts ────────────────────────────────────────── */
.timeless-header { margin-bottom: 56px; }
.timeless-title { font-size: 36px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 16px; }
.timeless-desc { font-size: 16px; color: #475569; line-height: 1.75; max-width: 800px; }
.timeless-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 740px) { .timeless-grid { grid-template-columns: 1fr; } }
.timeless-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.timeless-specimen {
  background: #f8fafc; padding: 32px; min-height: 140px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.timeless-specimen-text { color: #0f172a; line-height: 1.2; word-wrap: break-word; }
.timeless-info { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; }
.timeless-name { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.timeless-era { font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #94a3b8; margin-bottom: 12px; }
.timeless-quality { font-size: 12px; font-weight: 600; color: #059669; margin-bottom: 8px; }
.timeless-why { font-size: 13px; color: #475569; line-height: 1.75; margin-bottom: 12px; flex: 1; }
.timeless-brands { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.timeless-brand-chip { background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 4px; }
.timeless-note { font-size: 11px; color: #94a3b8; font-style: italic; border-top: 1px solid #f1f5f9; padding-top: 10px; }
.timeless-contrast {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px 28px;
}
.timeless-contrast p { font-size: 14px; color: #475569; line-height: 1.75; }

/* ── Hall of Shame ─────────────────────────────────────────── */
.shame-header { margin-bottom: 48px; text-align: center; }
.shame-title { font-size: 36px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.shame-subtitle { font-size: 16px; color: #475569; line-height: 1.6; max-width: 700px; margin: 0 auto; }
.shame-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .shame-grid { grid-template-columns: 1fr; } }
.shame-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; }
.shame-example { background: #fafafa; padding: 28px 32px; }
.shame-warning { background: #fef2f2; border-top: 2px solid #fecaca; padding: 10px 16px; font-size: 11.5px; font-weight: 600; color: #dc2626; }
.shame-info { padding: 20px 28px; }
.shame-card-title { font-weight: 800; font-size: 16px; color: #0f172a; margin-bottom: 12px; }
.shame-problem { font-size: 13px; color: #475569; line-height: 1.7; margin-bottom: 12px; }
.shame-fix {
  font-size: 12.5px; color: #059669; font-weight: 600;
  padding: 10px 14px; background: #f0fdf4; border-radius: 8px;
  border: 1px solid rgba(5,150,105,0.15);
}

/* ── Readability Science ───────────────────────────────────── */
.science-header { margin-bottom: 48px; }
.science-title { font-size: 42px; font-weight: 900; color: #0f172a; line-height: 1.2; margin-bottom: 12px; }
.science-desc { font-size: 18px; color: #475569; line-height: 1.6; max-width: 800px; }
.science-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px;
}
@media (max-width: 720px) { .science-grid { grid-template-columns: 1fr; } }
.science-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px; box-sizing: border-box; }
.science-card-full { grid-column: 1 / -1; }
.science-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.science-card-title { font-size: 15px; font-weight: 800; color: #0f172a; flex: 1; }
.science-source { background: #f1f5f9; color: #64748b; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }
.science-finding { font-size: 13px; color: #475569; line-height: 1.75; margin-bottom: 14px; }
.science-rule-label { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.science-rule { background: #0f172a; color: #f8fafc; border-radius: 8px; padding: 10px 14px; font-size: 12px; font-weight: 700; font-family: 'Space Mono', monospace; }
.science-demo {
  margin-top: 12px; padding: 12px; background: #f8fafc; border-radius: 8px;
  font-size: 12px; color: #475569; font-family: 'Space Mono', monospace; line-height: 1.6;
}
.science-attribution {
  padding: 24px 28px; background: #f8fafc; border-radius: 16px; border: 1px solid #e2e8f0;
}
.science-attribution p { font-size: 13px; color: #64748b; line-height: 1.7; }

/* ── Principles Section ────────────────────────────────────── */
.principles-header { margin-bottom: 56px; }
.principles-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #475569; margin-bottom: 8px; }
.principles-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: #f8fafc; letter-spacing: -0.03em; margin-bottom: 12px; }
.principles-desc { font-size: 16px; color: #64748b; max-width: 520px; line-height: 1.7; }
.principles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; }
.principle-card {
  padding: 32px 28px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; transition: background 0.2s;
}
.principle-card:hover { background: rgba(255,255,255,0.06); }
.principle-num { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #334155; margin-bottom: 12px; font-family: 'Space Mono', monospace; }
.principle-title { font-size: 17px; font-weight: 800; color: #f8fafc; letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.3; }
.principle-body { font-size: 13.5px; color: #64748b; line-height: 1.75; }

/* ── Quote Band ────────────────────────────────────────────── */
.quote-section {
  background: #f1f5f9; padding: 80px 0;
  border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
}
.quote-inner { max-width: 900px; margin: 0 auto; padding: 0 32px; text-align: center; }
.quote-text {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 4vw, 52px);
  font-style: italic; font-weight: 600; color: #0f172a; line-height: 1.25;
  letter-spacing: -0.01em; margin-bottom: 24px;
}
.quote-cite { font-size: 13px; font-style: normal; color: #94a3b8; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── Demo shared ───────────────────────────────────────────── */
.demo-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 24px; font-family: 'Space Mono', monospace;
}
.demo-note { font-size: 11px; font-family: 'Space Mono', monospace; margin-top: 20px; }

/* Variable font demo */
.variable-demo-wrap {
  text-align: center; width: 100%;
  background: linear-gradient(135deg, #0a0f1e, #111827); border-radius: 12px; padding: 32px 24px;
}
#variable-text-display {
  font-family: 'Fraunces', serif; font-size: clamp(48px, 7vw, 80px);
  color: #f1f5f9; line-height: 1.05; letter-spacing: -0.02em;
  transition: font-weight 0.05s; margin-bottom: 24px;
}
.variable-weight-btns { margin-top: 16px; display: flex; gap: 6px; justify-content: center; }
.variable-w-btn {
  padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: 'Space Mono', monospace; transition: all 0.15s;
  background: transparent;
}
.variable-w-btn.active { background: #fff; color: #0a0f1e; }

/* Glitch demo */
.glitch-demo-wrap { text-align: center; width: 100%; }
#glitch-main {
  font-family: 'Syne', sans-serif; font-size: clamp(48px, 7vw, 80px);
  font-weight: 800; color: #22d3ee; line-height: 1; letter-spacing: -0.03em;
  cursor: pointer; user-select: none; transition: color 0.3s;
}
#glitch-main.glitching { animation: glitch 0.15s steps(2) infinite; filter: hue-rotate(90deg) brightness(1.3); }
#glitch-sub {
  font-family: 'Syne', sans-serif; font-size: clamp(48px, 7vw, 80px);
  font-weight: 800; color: rgba(255,255,255,0.08); line-height: 1; letter-spacing: -0.03em;
  transition: color 0.3s;
}
#glitch-sub.glitching { color: #f59e0b; transform: translate(3px, -2px); }

/* Text texture demo */
.texture-demo-bg {
  position: absolute; inset: 0; display: flex; flex-wrap: wrap;
  gap: 0; overflow: hidden; opacity: 0.12;
}
.texture-word { font-family: 'Space Mono', monospace; font-size: 11px; color: #38bdf8; white-space: nowrap; padding: 2px 6px; line-height: 1.6; }

/* Brutalist demo */
.brutalist-demo-inner {
  border: 3px solid #0f172a; border-radius: 4px; padding: 20px; background: #fff; position: relative;
}

/* Kinetic */
.kinetic-letter { display: inline-block; animation: kinetic-wave 1.8s ease-in-out infinite; }

/* ── Tools/Scale two-col ───────────────────────────────────── */
.two-col-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .two-col-tool { grid-template-columns: 1fr; } }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes kinetic-wave {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(4px); }
}
@keyframes glitch {
  0%, 100% { transform: translate(0); filter: none; }
  20% { transform: translate(-3px, 2px); filter: hue-rotate(90deg); }
  40% { transform: translate(3px, -2px); filter: hue-rotate(-90deg); }
  60% { transform: translate(-1px, 1px); filter: blur(0.5px); }
  80% { transform: translate(2px, -1px); filter: hue-rotate(45deg); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section-pad { padding: 48px 0; }
  .hero-inner { padding: 72px 16px 60px; }
  .footer-top { padding: 48px 20px 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-tools-inner { padding: 28px 20px; }
  .nav-inner { padding: 0 16px; }
  .section-inner { padding: 0 16px; }
  .playground-header, .playground-controls, .playground-filter { padding-left: 20px; padding-right: 20px; }
  .playground-preview { padding: 24px 16px; }
  .industry-wrap { padding: 24px 20px; }
  .lineage-wrap { padding: 24px 20px; }
  .timeless-grid { grid-template-columns: 1fr; }
  .science-grid { grid-template-columns: 1fr; }
  .science-card-full { grid-column: auto; }
  .scale-grid { grid-template-columns: 1fr; }
  .quick-ref-grid { grid-template-columns: repeat(2, 1fr); }
  .shame-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
}

/* ── Additional class aliases for HTML ─────────────────────── */

/* Industry filter buttons (HTML uses .industry-filter, CSS core uses .industry-btn) */
.industry-filter {
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  border: 1px solid #e2e8f0; background: #f1f5f9; color: #64748b;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.industry-filter:hover { border-color: #cbd5e1; color: #334155; }
.industry-filter.active { background: #0f172a; color: #ffffff; border-color: #0f172a; }

/* Shame section demo area */
.shame-demo { padding: 28px 32px; }

/* Quote band */
.quote-band {
  background: #f1f5f9; padding: 80px 0;
  border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
}

/* Principle number */
.principle-number {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  color: #475569; margin-bottom: 12px; font-family: 'Space Mono', monospace;
}

/* Principle text */
.principle-text {
  font-size: 13.5px; color: #94a3b8; line-height: 1.75;
}

/* Shame fix box */
.shame-fix {
  font-size: 12.5px; color: #059669; font-weight: 600;
  padding: 10px 14px; background: #f0fdf4; border-radius: 8px;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

/* Scale grid responsive */
.scale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 740px) { .scale-grid { grid-template-columns: 1fr; } }

/* Quick reference grid */
.quick-ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .quick-ref-grid { grid-template-columns: repeat(2, 1fr); } }
