:root {
  --bg: #f7f4ee;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #e76f51;
  --accent-2: #264653;
  --line: #e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #fffaf3 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.55;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

header { padding: 1.2rem 0; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

.hero-copy p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: white; color: var(--accent-2); border: 1px solid var(--line); }

.hero-card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  background: #ddd;
}

.caption {
  padding: 0.8rem 0.2rem 0.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

section { padding: 2rem 0; }

.section-title {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.card-body { padding: 1rem; }

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.quote {
  background: var(--accent-2);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer a { color: var(--muted); text-decoration: underline; }
footer a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  nav { flex-direction: column; align-items: flex-start; }
}

/* ========================================================================
   Public front page — zany particle/quantum theme extensions
   These classes only appear on the public site; admin pages use twenko.css
   on top of site.css so they're unaffected.
   ======================================================================== */

/* atom imagery on the public site (warm palette, not the dark admin one) */
.bg-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-particles .atom { position: absolute; opacity: 0.10; }
.bg-particles .atom.b1 { top: 4vh;   right: -40px; }
.bg-particles .atom.b2 { top: 55vh;  left: -60px;  }
.bg-particles .atom.b3 { top: 130vh; right: 5vw;   opacity: 0.07; }
.bg-particles .atom.b4 { top: 230vh; left: 8vw;    opacity: 0.06; }
.bg-particles .atom.b5 { top: 340vh; right: -50px; opacity: 0.08; }
.atom { pointer-events: none; }
.wrap, header, main, footer, .ticker { position: relative; z-index: 1; }

/* ticker strip above the header */
.ticker {
  background: var(--accent-2);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
}
.ticker-track {
  display: inline-block;
  animation: ticker-slide 38s linear infinite;
  padding-left: 100%;
}
.ticker-track span {
  display: inline-block;
  padding: 0 2.5rem;
}
.ticker-track .pill {
  background: var(--accent);
  color: #fff;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* hero polish */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(231,111,81,0.10);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem;
}
.hero-badges span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.hero-card { position: relative; }
.hero-card .float-atom {
  position: absolute;
  top: -20px; right: -20px;
  filter: drop-shadow(0 8px 18px rgba(231,111,81,0.35));
}

/* "as seen in" strip */
.logos {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.5);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.logos-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.logos-grid span {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-2);
  opacity: 0.85;
}

/* services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  border-color: rgba(231,111,81,0.4);
}
.service-card .service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(231,111,81,0.12), rgba(38,70,83,0.08));
  border-radius: 14px;
  margin-bottom: 0.85rem;
}
.service-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; color: var(--accent-2); }
.service-card p  { margin: 0; color: var(--muted); font-size: 0.92rem; }
.service-card .price {
  display: block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* 5-step process */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.process li {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
}
.process li .step {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 10px rgba(231,111,81,0.35);
}
.process li h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--accent-2); }
.process li p  { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* stats */
.stats {
  background: var(--accent-2);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.stats h2 { color: #fff; margin: 0 0 0.5rem; }
.stats .section-subtitle { color: rgba(255,255,255,0.7); margin: 0 0 1.5rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.stats-grid .stat .num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stats-grid .stat .label {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  line-height: 1.35;
}

/* team */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.team-card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}
.team-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff5ef, #ffe9dd);
  border-radius: 50%;
  border: 2px solid rgba(231,111,81,0.25);
}
.team-card h3 { margin: 0 0 0.25rem; color: var(--accent-2); }
.team-card .role {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.team-card .bio { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* testimonials (multiple) */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.quotes .qcard {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}
.quotes .qcard p { margin: 0 0 0.85rem; font-size: 0.95rem; color: var(--ink); font-style: italic; }
.quotes .qcard cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--accent-2);
  font-size: 0.85rem;
}
.quotes .qcard cite span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

/* pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  align-items: stretch;
}
.tier {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
}
.tier.featured {
  border: 2px solid var(--accent);
  transform: translateY(-8px);
  background: linear-gradient(180deg, #fff7f3 0%, #fff 100%);
  position: relative;
}
.tier.featured::before {
  content: "Most observed";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tier h3 { margin: 0 0 0.25rem; color: var(--accent-2); font-size: 1.2rem; }
.tier .price-line {
  font-size: 1.8rem; font-weight: 800; color: var(--accent);
  margin: 0.5rem 0 1rem; line-height: 1;
}
.tier .price-line .per { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.tier ul {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.tier ul li {
  font-size: 0.9rem; color: var(--ink);
  padding-left: 1.25rem; position: relative;
}
.tier ul li::before {
  content: "⚛"; position: absolute; left: 0; top: 0; color: var(--accent);
}
.tier .pick {
  margin-top: auto;
  text-align: center;
  background: var(--accent-2);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.tier.featured .pick { background: var(--accent); }
.tier .pick:hover { filter: brightness(1.08); }

/* FAQ */
.faq { display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.faq-item .q {
  display: block;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}
.faq-item .q::before {
  content: "Q:";
  color: var(--accent);
  margin-right: 0.4rem;
}
.faq-item .a { display: block; color: var(--muted); font-size: 0.95rem; }
.faq-item .a::before { content: "A:"; color: var(--accent-2); font-weight: 700; margin-right: 0.4rem; }

/* fine print + footer */
footer .fine {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
  max-width: 90ch;
  line-height: 1.5;
}

/* responsive */
@media (max-width: 880px) {
  .services-grid, .quotes, .pricing-grid, .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .services-grid, .quotes, .pricing-grid, .team-grid,
  .process, .stats-grid { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
}

/* respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .atom *, .ticker-track { animation: none !important; }
}

/* ========================================================================
   Easter egg — click an atom, get a quark burst
   ======================================================================== */

/* The background atom layer is non-interactive overall, but each atom itself
   becomes clickable on the public site so it can fire the burst. */
.bg-particles .atom,
.float-atom {
  pointer-events: auto;
  cursor: crosshair;
}

/* Expanding shockwave ring centered on the click point */
.shockwave {
  position: fixed;
  width: 0; height: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  box-shadow: 0 0 24px rgba(231, 111, 81, 0.55);
  animation: shockwave-ring 0.8s ease-out forwards;
}
@keyframes shockwave-ring {
  0%   { width: 0;     height: 0;     opacity: 1; border-width: 3px; }
  100% { width: 220px; height: 220px; opacity: 0; border-width: 1px; }
}

/* Confetti particles flying outward */
.quark-burst {
  position: fixed;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 800;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 6px currentColor, 0 0 14px currentColor;
  animation: quark-fly 1.4s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
  will-change: transform, opacity;
}
@keyframes quark-fly {
  0%   { transform: translate(-50%, -50%) scale(0.3) rotate(0deg); opacity: 0; }
  10%  { transform: translate(-50%, -50%) scale(1.35) rotate(15deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.5) rotate(var(--rot)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .quark-burst, .shockwave { animation-duration: 0.1s; }
}

/* ========================================================================
   Subpage layouts — shared across /services/, /team/, /case-studies/,
   /locations/, /glossary/, /research/, /blog/, /pricing/, /compliance/.
   ======================================================================== */

/* Generic page header block under the site nav */
.page-hero {
  margin: 1rem 0 2rem;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.page-hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 75ch; margin: 0; }
.breadcrumbs-nav {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumbs-nav a { color: var(--accent); text-decoration: none; }
.breadcrumbs-nav a:hover { text-decoration: underline; }
.breadcrumbs-nav .sep { margin: 0 0.4rem; opacity: 0.5; }

/* Two-column layouts */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 780px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* Index / hub grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.hub-card {
  display: block;
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
  position: relative;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.hub-card .tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.hub-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--accent-2); }
.hub-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.hub-card .price { display: block; margin-top: 0.6rem; font-weight: 700; color: var(--accent); font-size: 0.85rem; }

/* Spec table — used on service pages */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}
.spec-table th, .spec-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 36%;
  color: var(--accent-2);
  font-weight: 700;
  background: rgba(38,70,83,0.04);
}
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }

/* Callout boxes */
.callout {
  background: linear-gradient(135deg, rgba(231,111,81,0.06), rgba(38,70,83,0.03));
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.callout strong { color: var(--accent-2); }
.callout.warn { border-left-color: #d97706; background: rgba(217,119,6,0.08); }
.callout.fine { font-size: 0.85rem; color: var(--muted); }

/* Methodology / process steps (vertical) */
.method-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.75rem;
}
.method-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.method-steps li .num {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-weight: 800;
}
.method-steps li h4 { margin: 0 0 0.25rem; color: var(--accent-2); }
.method-steps li p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Stat strip — horizontal */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--accent-2);
  color: white;
  border-radius: var(--radius);
}
.stat-strip .stat .num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-strip .stat .label { display: block; margin-top: 0.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.75); }
@media (max-width: 780px) { .stat-strip { grid-template-columns: 1fr 1fr; } }

/* Periodic-table-style grid for the service portfolio */
.periodic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.element {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
}
.element:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.element .num { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.7rem; color: var(--muted); }
.element .sym { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin: 0.25rem 0; }
.element .name { font-size: 0.78rem; color: var(--accent-2); font-weight: 600; line-height: 1.2; }
.element .meta { font-size: 0.65rem; color: var(--muted); margin-top: 0.2rem; }
.element.featured { border-color: var(--accent); background: linear-gradient(180deg, #fff7f3 0%, var(--card) 100%); }

/* SVG world map — used on locations page */
.world-map {
  width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f0ece4 0%, #e8e2d4 100%);
  border: 1px solid var(--line);
  padding: 1rem;
}
.world-map path.land { fill: #e8e2d4; stroke: #c9c1ad; stroke-width: 0.7; }
.world-map .marker {
  fill: var(--accent);
  stroke: white;
  stroke-width: 2;
}
.world-map .marker-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.6;
  animation: marker-ping 2s ease-out infinite;
}
@keyframes marker-ping {
  0%   { r: 6;  opacity: 0.6; }
  100% { r: 22; opacity: 0; }
}
.world-map text.label {
  fill: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 3;
}

/* Bar chart — pure CSS */
.bar-chart { margin: 1rem 0; }
.bar-chart .bar {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}
.bar-chart .bar-label { font-size: 0.85rem; color: var(--accent-2); }
.bar-chart .bar-track { height: 12px; background: rgba(0,0,0,0.05); border-radius: 999px; overflow: hidden; }
.bar-chart .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.bar-chart .bar-value {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

/* Equation block */
.equation {
  display: block;
  text-align: center;
  font-family: "Latin Modern Math", "STIX Two Math", "Cambria Math", serif;
  font-size: 1.4rem;
  margin: 1.5rem auto;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  max-width: 720px;
  color: var(--accent-2);
  overflow-x: auto;
}
.equation .caption {
  display: block;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Glossary index list */
.glossary-az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 2rem;
  padding: 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.glossary-az a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.04);
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}
.glossary-az a:hover { background: var(--accent); color: white; }
.glossary-letter {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.6rem;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
}
.glossary-entry {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.glossary-entry dt { font-weight: 800; color: var(--accent-2); margin-bottom: 0.3rem; }
.glossary-entry dt .pos { font-style: italic; color: var(--muted); font-weight: 400; margin-left: 0.5rem; font-size: 0.85rem; }
.glossary-entry dd { margin: 0; color: var(--ink); }
.glossary-entry .ref { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

/* Article (blog / whitepaper) typography */
.article { max-width: 80ch; margin: 0 auto; }
.article-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.article-meta .dot { margin: 0 0.5rem; opacity: 0.6; }
.article h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.article h2 { font-size: 1.5rem; color: var(--accent-2); margin: 2rem 0 0.5rem; }
.article h3 { font-size: 1.15rem; color: var(--accent); margin: 1.5rem 0 0.5rem; }
.article p { line-height: 1.7; margin: 0 0 1rem; }
.article blockquote {
  border-left: 4px solid var(--accent);
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  color: var(--muted);
  font-style: italic;
}
.article ul, .article ol { padding-left: 1.5rem; }
.article ul li, .article ol li { margin-bottom: 0.4rem; }
.article code, .article .formula {
  font-family: ui-monospace, monospace;
  background: rgba(0,0,0,0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.92em;
}
.article figure { margin: 1.5rem 0; }
.article figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Tag chips */
.tag-chip {
  display: inline-block;
  background: rgba(231,111,81,0.10);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.25rem;
  text-decoration: none;
}

/* "Related" footer mini-cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.related-grid .related-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
}
.related-grid .related-card:hover { border-color: var(--accent); }
.related-grid .related-card strong { color: var(--accent-2); display: block; margin-bottom: 0.15rem; }
.related-grid .related-card span { color: var(--muted); font-size: 0.82rem; }

/* "Compliance" pill grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.cert {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
}
.cert .seal {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800;
}
.cert .name { font-weight: 700; color: var(--accent-2); }
.cert .meta { font-size: 0.78rem; color: var(--muted); }

/* Contact form */
.contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-form .field { display: grid; gap: 0.3rem; }
.contact-form label { font-size: 0.85rem; color: var(--accent-2); font-weight: 700; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  background: white;
}
.contact-form button {
  justify-self: start;
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* "Office" cards */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.office {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.office h3 { margin: 0 0 0.25rem; color: var(--accent-2); }
.office .city { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.office .role { font-size: 0.82rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.office .specs { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--muted); }
.office .specs span::after { content: " · "; color: rgba(0,0,0,0.2); }
.office .specs span:last-child::after { content: ""; }
