/**
 * TABULARUM — Shared Design System
 *
 * Common CSS variables, typography, layout, and component styles
 * used across all pages. Include this in every HTML file:
 *   <link rel="stylesheet" href="css/tabularum.css">
 *
 * Page-specific overrides go in <style> blocks after this link.
 *
 * Copyright Antoninus Global SPC. All rights reserved.
 */

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #F2EDE4;
  --surface: #EDE6D9;
  --surface-2: #E9E3D4;
  --deep: #1C1410;
  --red: #8B1A1A;
  --red-dk: #6d1414;
  --red-lt: rgba(139, 26, 26, .06);
  --gold: #C9A84C;
  --green: #2A6B43;
  --border: rgba(139, 26, 26, .10);
  --border-2: rgba(139, 26, 26, .20);
  --muted: rgba(28, 20, 16, .55);
  --muted-2: rgba(28, 20, 16, .42);
  --grid: rgba(139, 26, 26, .025);
  --nav-bg: rgba(242, 237, 228, .92);
  --transition: all .25s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--deep);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
  letter-spacing: .01em;
}

/* ── Grid Background ────────────────────────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Navigation ─────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 56px; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: fadeDown .6s ease both;
}
.nav-logo { height: 28px; width: 28px; border-radius: 50%; object-fit: cover; }
.logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-text { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--deep); }
.nav-btn {
  font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border-2);
  padding: 8px 18px; text-decoration: none; transition: var(--transition);
}
.nav-btn:hover { color: var(--red); border-color: var(--red); background: var(--red-lt); }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1 {
  font-family: 'Cinzel', serif; color: var(--deep); font-weight: 800;
  font-size: clamp(32px, 4.5vw, 64px); line-height: .96; letter-spacing: -.03em;
  animation: fadeUp .8s .5s ease both;
}
h1 em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; color: var(--red); }
h2 {
  font-family: 'Cinzel', serif; color: var(--deep); font-weight: 800;
  font-size: clamp(22px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 20px;
}
h2 em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 140px 56px 80px;
  position: relative; z-index: 1;
}
.hero-tag {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  animation: fadeUp .8s .3s ease both;
}
.hero-tag::before, .hero-tag::after { content: ''; width: 40px; height: 1px; background: var(--red); }
.hero-sub {
  margin-top: 28px; max-width: 620px;
  font-size: 15px; line-height: 1.85; color: var(--muted);
  animation: fadeUp .8s .7s ease both;
}
.content-section {
  max-width: 720px; margin: 0 auto; padding: 0 48px 96px;
  position: relative; z-index: 1;
}
.section-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--red); }
.body-text { font-size: 14px; line-height: 1.9; color: var(--muted); margin-bottom: 36px; }
.body-text strong { color: var(--deep); font-weight: 500; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 38px; background: var(--red); color: var(--bg);
  border: none; border-radius: 4px; cursor: pointer;
  transition: var(--transition); text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(139, 26, 26, .22); }
.btn-outline {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 38px; background: transparent; color: var(--red);
  border: 1px solid var(--red); border-radius: 4px; cursor: pointer;
  transition: var(--transition); text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: var(--red); color: var(--bg); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 40px 56px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px; position: relative; z-index: 1; background: var(--bg);
}
.footer-left { display: flex; align-items: center; gap: 28px; }
.footer-links { list-style: none; display: flex; gap: 20px; }
.footer-links a {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--red); }
.footer-email { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.footer-email a { color: var(--red); text-decoration: none; }
.footer-copy { font-size: 10px; letter-spacing: .12em; color: rgba(28, 20, 16, .35); }

/* ── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center; padding: 60px 48px;
  border-top: 1px solid var(--border); position: relative; z-index: 1;
}

/* ── Grids ──────────────────────────────────────────────────────────────── */
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  margin: 36px 0; background: rgba(139, 26, 26, .08);
}
.value-card { background: var(--bg); padding: 28px 24px; }
.value-title { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; color: var(--deep); margin-bottom: 8px; }
.value-text { font-size: 12px; line-height: 1.8; color: var(--muted); }

/* ── Hover Helpers ──────────────────────────────────────────────────────── */
.hover-red:hover { color: var(--red) !important; }

/* ── i18n Translation State — no visual indicator, translate silently ──── */
[data-i18n-scope] {
}

/* ── Accessibility ─────────────────────────────────────────────────────── */

/* Skip navigation link */
.skip-nav {
  position: absolute; top: -100px; left: 0; z-index: 10000;
  background: var(--red); color: var(--bg);
  padding: 12px 24px;
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: top .2s ease;
}
.skip-nav:focus { top: 0; }

/* Screen reader only */
.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;
}

/* Focus visible styles */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(139, 26, 26, .12);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Cross-Browser Fixes ───────────────────────────────────────────── */

/* Webkit prefixes for backdrop-filter (global) */
.login-overlay,
.drawer-header,
.topbar {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Form element appearance reset */
select, input, textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

/* Chrome/Safari scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Mobile viewport height fallback */
html {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

/* Flexbox gap fallback for older Safari */
@supports not (gap: 1px) {
  .hero-actions > * + * { margin-left: 14px; }
  .footer-left > * + * { margin-left: 28px; }
  .footer-links > * + * { margin-left: 20px; }
  .nav-actions > * + * { margin-left: 10px; }
}

/* Clip-path vendor prefix */
[style*="clip-path"] {
  -webkit-clip-path: inherit;
}

/* ── Hamburger Menu (shared) ──────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--deep);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 499;
  flex-direction: column;
  gap: 4px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--red); }

/* ── Table overflow wrapper ───────────────────────────────────────── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* ── Agent Mode Badge ──────────────────────────────────────────────────── */
.agent-mode-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.4;
}
.agent-mode-essential {
  background: rgba(28, 20, 16, .08);
  color: var(--muted);
  border: 1px solid rgba(28, 20, 16, .15);
}
.agent-mode-professional {
  background: rgba(26, 82, 118, .08);
  color: #1a5276;
  border: 1px solid rgba(26, 82, 118, .2);
}
.agent-mode-expert {
  background: rgba(201, 168, 76, .1);
  color: #9a7d2e;
  border: 1px solid rgba(201, 168, 76, .3);
}
.agent-mode-genius {
  background: rgba(139, 26, 26, .08);
  color: var(--red);
  border: 1px solid rgba(139, 26, 26, .2);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Tablet / half-screen */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-tabs { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 120px 24px 60px; }
  .content-section { padding: 0 24px 64px; }
  footer { padding: 28px 24px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 20px; height: 56px; }
  .nav-actions { gap: 6px; }
  .nav-btn { padding: 8px 14px; font-size: 9px; min-height: 44px; display: inline-flex; align-items: center; }
  .hamburger { display: flex; }
  .nav-tabs { display: none; }
  .mobile-menu { top: 56px; }

  /* Hero */
  .hero { padding: 100px 20px 48px; min-height: auto; }
  .hero-sub { font-size: 13px; }
  .hero-tag { font-size: 9px; }
  .hero-tag::before, .hero-tag::after { width: 24px; }

  /* Typography */
  h1 { font-size: clamp(26px, 7vw, 42px); }
  h2 { font-size: clamp(20px, 5vw, 30px); }

  /* Layout */
  .content-section { padding: 0 20px 48px; }
  .cta-section { padding: 36px 20px; }
  .section-label { font-size: 10px; }
  .body-text { font-size: 13px; }

  /* Grids stack on mobile */
  .values-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: repeat(3, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .arch-agents { grid-template-columns: 1fr 1fr; }

  /* Buttons: touch-friendly min 44px tap targets */
  .btn-primary, .btn-outline {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  /* Footer */
  footer { padding: 24px 20px; flex-direction: column; text-align: center; gap: 12px; }
  .footer-left { flex-direction: column; gap: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .logo-text { font-size: 9px; }
  .nav-logo { height: 28px; width: 28px; }

  /* Drawers full width on mobile */
  .drawer { width: 100vw; width: 100dvw; }
  .drawer-body { padding: 28px 20px 60px; }
  .drawer-header { padding: 18px 20px; }

  /* Login overlay */
  .login-overlay { padding: 12px; }
  .login-card { margin: 12px; padding: 32px 24px 24px; max-width: calc(100vw - 24px); }

  /* Chat panels fit mobile */
  #chatBox { height: 220px; max-height: 40vh; }
  .chat-input-row { flex-direction: column; }
  .chat-input-row textarea { width: 100%; }
  .chat-input-row button { width: 100%; min-height: 44px; }

  /* Language selector accessible on mobile */
  .jur-select-wrap select,
  #langSelect {
    min-height: 44px;
    min-width: 44px;
    font-size: 11px;
    padding: 8px 32px 8px 12px;
  }

  /* Topbar (dashboard pages) */
  .topbar { padding: 0 16px; }
  .topbar-right { gap: 6px; }
  .btn-sm { font-size: 8px; padding: 5px 8px; min-height: 44px; display: inline-flex; align-items: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  nav { padding: 0 12px; }
  .hero { padding: 80px 14px 36px; }
  h1 { font-size: clamp(22px, 6vw, 32px); }
  h2 { font-size: clamp(18px, 5vw, 26px); }
  .hero-sub { font-size: 12px; line-height: 1.7; }
  .content-section { padding: 0 14px 36px; }
  .cta-section { padding: 28px 14px; }
  footer { padding: 20px 14px; }

  /* Agent grid 2 cols on small screens */
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-agents { grid-template-columns: 1fr; }

  /* Login card tighter */
  .login-card { padding: 24px 16px 20px; }

  /* Drawer */
  .drawer-body { padding: 20px 14px 48px; }
  .drawer-header { padding: 14px; }

  /* Stat cards */
  .stat-card { padding: 14px; }
  .stat-value { font-size: 18px; }

  /* Form fields full width */
  .field-row, .field-row-3, .type-grid, .method-grid,
  .passport-layout, .range-grid, .chip-mobile-grid {
    grid-template-columns: 1fr;
  }

  /* OTP digits smaller */
  .otp-digit { width: 36px; height: 40px; font-size: 18px; }

  /* Topbar compact */
  .topbar { padding: 0 14px; }
  .topbar-right { gap: 6px; }
  .topbar-home, .topbar-login { padding: 7px 12px; font-size: 9px; }
  .secure-badge { display: none; }

  /* Progress rail scroll */
  .progress-rail { padding: 0 14px; }

  /* Architecture diagrams */
  .arch-row { flex-direction: column; }

  /* Integration chips wrap */
  .intg-section { padding: 36px 14px; }
  .intg-count { display: none; }

  /* Reveal sections */
  .reveal-section { padding: 48px 14px; }
}

/* ── Help Button ── */
.help-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(139,26,26,.25);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.help-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(139,26,26,.35); }

/* ── Dark Mode ─────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1C1A17;
    --surface-2: #242220;
    --deep: #E8E2D8;
    --red: #C44040;
    --red-dk: #A33030;
    --red-lt: rgba(196, 64, 64, .08);
    --gold: #D4B65C;
    --green: #3A9B5A;
    --border: rgba(196, 64, 64, .12);
    --border-2: rgba(196, 64, 64, .22);
    --muted: rgba(232, 226, 216, .6);
    --muted-2: rgba(232, 226, 216, .4);
    --grid: rgba(196, 64, 64, .03);
    --nav-bg: rgba(20, 18, 16, .92);
  }
  body { background: var(--bg); color: var(--deep); }
  nav { background: rgba(20, 18, 16, .92); }
  .value-card, .arch-agent, .problem-card { background: var(--surface); }
  footer { background: var(--bg); }
  .login-card { background: var(--surface); }
  .mobile-menu { background: var(--bg); }
  img { opacity: .92; }
  img:hover { opacity: 1; }
  ::selection { background: rgba(196, 64, 64, .3); color: var(--deep); }
  ::-webkit-scrollbar-thumb { background: rgba(196, 64, 64, .25); }
  ::-webkit-scrollbar-thumb:hover { background: var(--red); }
}


/* ── Article Pages ─────────────────────────────────────────────────────── */
.article-header {
  position: relative; margin-top: 64px; padding: 100px 56px 60px;
  text-align: center; overflow: hidden; z-index: 1;
}
.article-header * { position: relative; z-index: 1; }
.article-tag {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  animation: fadeUp .8s .2s ease both;
}
.article-tag::before, .article-tag::after { content: ''; width: 40px; height: 1px; background: var(--red); }
.article-header h1 {
  font-family: 'Cinzel', serif; font-weight: 800;
  font-size: clamp(28px, 4vw, 52px); line-height: 1.05; letter-spacing: -.02em;
  color: var(--deep); margin-bottom: 20px; animation: fadeUp .8s .4s ease both;
}
.article-subtitle {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(16px, 2vw, 22px); color: var(--muted);
  max-width: 700px; margin: 0 auto 24px; line-height: 1.5;
  animation: fadeUp .8s .5s ease both;
}
.article-meta {
  font-size: 11px; letter-spacing: .08em; color: var(--muted-2);
  animation: fadeUp .8s .6s ease both;
}
.article-meta span { margin: 0 8px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 60px 56px 80px; position: relative; z-index: 1; }
.article-body p {
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
  line-height: 1.85; color: var(--deep); margin-bottom: 28px; text-align: justify;
}
.article-body p:first-child::first-letter {
  font-family: 'Cinzel', serif; font-size: 56px; float: left;
  line-height: .85; margin: 4px 12px 0 0; color: var(--red); font-weight: 700;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); text-decoration: none; margin-bottom: 40px;
  transition: var(--transition);
}
.back-link:hover { gap: 12px; }
.article-cta {
  max-width: 760px; margin: 0 auto; padding: 0 56px 80px;
  position: relative; z-index: 1;
}
.cta-box {
  background: var(--surface); border: 1px solid var(--border);
  padding: 48px; text-align: center;
}
.cta-box h3 {
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700;
  letter-spacing: .06em; color: var(--deep); margin-bottom: 12px;
}
.cta-box p {
  font-family: 'Cormorant Garamond', serif; font-size: 16px;
  color: var(--muted); margin-bottom: 24px; line-height: 1.6;
}
.cta-btn {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 40px; background: var(--red); color: var(--bg);
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; display: inline-block;
}
.cta-btn:hover { background: var(--red-dk); transform: translateY(-1px); }
.article-footer {
  border-top: 1px solid var(--border); padding: 32px 56px;
  text-align: center; font-size: 10px; letter-spacing: .1em;
  color: var(--muted-2); position: relative; z-index: 1;
}

/* ── Legal Pages ───────────────────────────────────────────────────────── */
.page-wrap {
  max-width: 720px; margin: 0 auto; padding: 160px 48px 96px;
  position: relative; z-index: 1;
}
.page-wrap > h1 {
  font-family: 'Cinzel', serif; font-weight: 800;
  font-size: clamp(32px, 4vw, 52px); line-height: .96;
  letter-spacing: -.03em; text-align: center; margin-bottom: 8px;
}
.page-wrap > h1 em {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-weight: 400; color: var(--red);
}
.eyebrow {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px; justify-content: center;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--red); }
.meta {
  font-size: 10px; letter-spacing: .14em; color: var(--muted);
  text-transform: uppercase; margin-top: 14px; text-align: center;
}
.regulation-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; margin-bottom: 36px; justify-content: center; }
.reg-tag {
  font-size: 8px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid rgba(139, 26, 26, .15);
  color: var(--red); background: var(--red-lt); border-radius: 2px;
}
.toc {
  background: var(--surface); border: 1px solid var(--border);
  padding: 28px 32px; margin-bottom: 48px; border-radius: 4px;
}
.toc-title {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--deep); margin-bottom: 14px;
}
.toc-list { list-style: none; columns: 2; gap: 16px; }
.toc-list li { margin-bottom: 6px; }
.toc-list a {
  font-size: 10px; color: var(--muted); text-decoration: none;
  letter-spacing: .05em; transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.toc-list a::before { content: ''; width: 12px; height: 1px; background: var(--border-2); flex-shrink: 0; }
.toc-list a:hover { color: var(--red); }
.legal-stack { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.legal-section { border-bottom: 1px solid var(--border); padding: 28px 0 28px 22px; border-left: 2px solid var(--border); scroll-margin-top: 80px; position: relative; transition: padding .3s; }
.legal-section:hover { padding-left: 28px; }
.legal-section::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s; transform-origin: top; }
.legal-section:hover::before { transform: scaleX(1); }
.legal-section.jur-specific { border-left-color: var(--red); }
.legal-sec-title {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  letter-spacing: .04em;
  color: var(--deep); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.jur-tag, .eu-tag, .uk-tag, .us-tag, .sg-tag, .hk-tag, .ky-tag,
.bvi-tag, .ch-tag, .difc-tag, .adgm-tag {
  font-size: 8px; letter-spacing: .14em; padding: 2px 7px;
  background: var(--red-lt); border: 1px solid rgba(139, 26, 26, .2);
  color: var(--red);
}
.legal-body { font-size: 12px; line-height: 1.9; color: var(--muted); }
.legal-body + .legal-body { margin-top: 10px; }
.legal-intro {
  font-size: 14px; line-height: 1.9; color: var(--muted);
  margin-bottom: 48px; padding: 24px 28px; text-align: center;
  border: 1px solid var(--border); background: var(--surface);
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.legal-notice {
  background: rgba(139, 26, 26, .04); border: 1px solid var(--border);
  padding: 18px 22px; font-size: 10px; line-height: 1.85;
  color: var(--muted); margin-top: 12px;
}
.legal-notice a, .legal-body a { color: var(--red); text-decoration: none; }
.legal-notice a:hover, .legal-body a:hover { text-decoration: underline; }
strong.hi { color: var(--deep); font-weight: 500; }
.rights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.right-card { background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; }
.right-art { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.right-name { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700; color: var(--deep); margin-bottom: 4px; }
.right-desc { font-size: 10px; line-height: 1.65; color: var(--muted); }

/* ── Case Study Pages ──────────────────────────────────────────────────── */
.case-section { padding: 80px 56px; position: relative; z-index: 1; }
.workflow-steps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  margin-top: 48px; background: rgba(139, 26, 26, .1);
}
.workflow-step { background: var(--surface); padding: 32px 28px; position: relative; }
.step-title { font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700; margin-bottom: 9px; color: var(--deep); }
.step-text { font-size: 12px; line-height: 1.8; color: var(--muted); }
.step-agent {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
}
.agent-av-sm {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; object-position: center 15%;
  border: 1.5px solid; display: inline-block; vertical-align: middle;
}
.metric-bar { display: flex; gap: 2px; margin-top: 48px; }
.metric-card {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  padding: 32px 24px; text-align: center;
}
.metric-label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px;
}

/* ── Article / Legal / Case Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .article-header { padding: 80px 20px 48px; }
  .article-body { padding: 40px 20px 60px; }
  .article-cta { padding: 0 20px 60px; }
  .cta-box { padding: 32px 20px; }
  .article-footer { padding: 24px 20px; }
  .page-wrap { padding: 120px 24px 64px; }
  .toc-list { columns: 1; }
  .rights-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .metric-bar { flex-direction: column; }
}

/* ── i18n translation-in-progress indicator ── */
body.i18n-translating::before{
  content:"";position:fixed;top:0;left:0;right:0;height:2px;z-index:99999;
  background:linear-gradient(90deg,transparent,var(--red,#8B1A1A),transparent);
  background-size:200% 100%;animation:i18nBar 1.2s linear infinite;
}
@keyframes i18nBar{0%{background-position:200% 0}100%{background-position:-200% 0}}
