/* ============================================================
   MAISON — GLASS DESIGN SYSTEM
   Light background · indigo/cyan accents · Inter + Manrope
   Inspired by Stripe, Linear, Vercel. Marketing-agency content.
   ============================================================ */

:root {
  /* Surface */
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.78);

  /* Ink */
  --ink: #0d1726;
  --ink-soft: #334155;
  --muted: #657286;
  --faint: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);

  /* Accent */
  --blue: #635bff;
  --blue-deep: #4f46e5;
  --cyan: #18bfff;
  --purple: #8b5cf6;
  --green: #35d39a;

  /* Depth */
  --shadow-sm: 0 10px 24px rgba(30, 50, 90, 0.06);
  --shadow-md: 0 20px 55px rgba(30, 50, 80, 0.09);
  --shadow-lg: 0 35px 90px rgba(30, 50, 80, 0.12);
  --shadow-brand: 0 18px 44px rgba(99, 91, 255, 0.22);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Type */
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;

  /* Space */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 5.5rem;
  --s-8: 7.5rem;
  --s-9: 9.5rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 260ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

::selection { background: var(--blue); color: #fff; }

/* ============================================================
   PAGE AMBIENT — grid lines + blurred orbs
   ============================================================ */
.page {
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 50, 80, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 50, 80, 0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.orb-blue   { width: 540px; height: 540px; background: rgba(99, 91, 255, 0.22); }
.orb-cyan   { width: 440px; height: 440px; background: rgba(24, 191, 255, 0.18); }
.orb-purple { width: 460px; height: 460px; background: rgba(139, 92, 246, 0.16); }
.orb-green  { width: 420px; height: 420px; background: rgba(53, 211, 154, 0.14); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

section {
  padding-block: var(--s-7);
  position: relative;
}
section:first-of-type { padding-top: var(--s-5); }
section + section { padding-top: var(--s-6); }

/* ============================================================
   NAV — desktop + mobile, sticky header
   Breakpoint: desktop ≥901px, mobile ≤900px
   ============================================================ */

/* Sticky header shell */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
  padding-inline: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand span { color: var(--blue); }
/* When a logo image is set in Admin Settings, it replaces the text brand */
.brand img { height: 28px; width: auto; display: block; object-fit: contain; }
.footer__brand .brand img, footer .brand img { height: 36px; }

/* ========== DESKTOP NAV (≥901px) ========== */
.nav__desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav__link,
.nav__trigger {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft, var(--muted));
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
}
.nav__link:hover,
.nav__trigger:hover,
.nav__item.is-open .nav__trigger {
  color: var(--blue);
}
.nav__trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.3rem;
  transition: transform 0.2s ease;
}
.nav__item.is-open .nav__trigger::after { transform: rotate(180deg); }
.nav__item { position: relative; }

/* Dropdown — absolute-positioned, floats below trigger, does NOT push content */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(10, 14, 39, 0.08), 0 2px 8px rgba(10, 14, 39, 0.04);
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.nav__dropdown--wide { min-width: 400px; }
.nav__dropdown-inner {
  display: flex;
  flex-direction: column;
}
.nav__dropdown-inner--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.nav__dropdown-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.75rem 0.3rem;
}
.nav__dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft, #4b5563);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.1s ease, color 0.1s ease;
  white-space: nowrap;
}
.nav__dropdown a:hover {
  background: rgba(99, 91, 255, 0.06);
  color: var(--blue);
}
.nav__dropdown a strong { color: var(--ink); font-weight: 600; }
.nav__dropdown-footer {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

/* Desktop CTA */
.nav__cta {
  display: none !important;
  padding: 0.55rem 1.1rem !important;
  font-size: 0.875rem !important;
  flex-shrink: 0;
}

/* ========== MOBILE/TABLET NAV (≤900px) ========== */
.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  gap: 4px;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav__burger:hover { border-color: var(--blue); }
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.15s ease;
  transform-origin: center;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel: fixed overlay, scrollable, all items visible */
.nav__mobile-panel {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 99;
  padding: 1.5rem 1.25rem 2.5rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.nav__mobile-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.nav__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.nav__mobile-link {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__mobile-section {
  border-bottom: 1px solid var(--line);
}
.nav__mobile-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 1rem 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nav__mobile-heading::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  width: 20px;
  text-align: center;
}
.nav__mobile-section.is-open .nav__mobile-heading { color: var(--blue); }
.nav__mobile-section.is-open .nav__mobile-heading::after {
  content: "−";
}
.nav__mobile-section__items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__mobile-section.is-open .nav__mobile-section__items {
  max-height: 800px;
  padding-bottom: 0.5rem;
}
.nav__mobile-section a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft, #4b5563);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.1s ease, color 0.1s ease;
}
.nav__mobile-section a:hover,
.nav__mobile-section a:active { color: var(--blue); background: rgba(99, 91, 255, 0.05); }
.nav__mobile-cta {
  margin-top: 1.5rem;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

/* ========== BREAKPOINTS ========== */
.nav__desktop { display: none !important; }
.nav__burger { display: inline-flex !important; }

@media (min-width: 901px) {
  .nav__desktop { display: flex !important; }
  .nav__cta { display: inline-flex !important; }
  .nav__burger { display: none !important; }
  .nav__mobile-panel { display: none !important; }
}

/* Lock body scroll when mobile panel open */
body.is-nav-open { overflow: hidden; }

/* ============================================================
   SCROLL ANCHOR OFFSET — so anchor links don't hide under sticky nav
   ============================================================ */
section, [id] {
  scroll-margin-top: 80px;
}
@media (max-width: 820px) {
  section, [id] { scroll-margin-top: 68px; }
}

/* ============================================================
   INLINE CTA BLOCK — placed near pricing/timeline mentions
   ============================================================ */
.cta-inline {
  margin: var(--s-3) auto;
  padding: var(--s-3);
  background: linear-gradient(135deg, rgba(99,91,255,0.08), rgba(24,191,255,0.04));
  border: 1px dashed rgba(99,91,255,0.3);
  border-radius: var(--r-md);
  display: flex;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 820px;
}
.cta-inline__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 220px;
}
.cta-inline__text small {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-ui);
  margin-top: 0.2rem;
  letter-spacing: 0;
}
@media (max-width: 560px) {
  .cta-inline { padding: var(--s-2); }
  .cta-inline .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(99, 91, 255, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: #fff;
  transform: translateY(-2px);
}

.arrow { width: 14px; height: 10px; display: inline-block; vertical-align: middle; transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.btn .arrow { width: 14px; height: 10px; }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(3px); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s-2);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--s-6);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-head p {
  margin-top: var(--s-2);
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: var(--s-7);
  padding-bottom: var(--s-6);
  position: relative;
  text-align: center;
}
.hero .orb-blue  { top: -120px; left: -220px; }
.hero .orb-cyan  { top: 60px;    right: -220px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid rgba(99, 91, 255, 0.18);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  margin-bottom: var(--s-3);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.15);
}

.hero h1 {
  max-width: 920px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero__sub {
  max-width: 640px;
  margin: var(--s-3) auto var(--s-4);
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Hero sub-links — text links below the primary CTA button */
.hero__sub-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.hero__sub-links a {
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero__sub-links a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ============================================================
   HOMEPAGE FLOWCHART — customer journey, clickable nodes
   ============================================================ */
.flowchart {
  display: flex;
  gap: var(--s-2);
  align-items: stretch;
  max-width: 1100px;
  margin: var(--s-6) auto 0;
  padding: var(--s-3);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}
.flowchart__node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
}
.flowchart__node:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.flowchart__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: var(--s-2);
}
.flowchart__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--s-1);
}
.flowchart__sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--s-2);
  flex: 1;
}
.flowchart__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}
.flowchart__arrow {
  align-self: center;
  color: var(--muted);
  font-size: 1.5rem;
  flex-shrink: 0;
  opacity: 0.5;
}

@media (max-width: 820px) {
  .flowchart {
    flex-direction: column;
    padding: var(--s-2);
    margin-top: var(--s-4);
  }
  .flowchart__arrow {
    transform: rotate(90deg);
    margin: 0.25rem 0;
    font-size: 1.25rem;
  }
  .flowchart__node { padding: var(--s-2); }
}

/* ============================================================
   HERO VISUAL — client-report glass panel
   ============================================================ */
.hero__visual {
  margin: var(--s-6) auto 0;
  max-width: 1000px;
  padding: 12px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
}

.report {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
  text-align: left;
}

.report__side {
  padding: var(--s-3) var(--s-2);
  background: rgba(248, 250, 252, 0.9);
  border-right: 1px solid var(--line);
}
.report__side-head {
  padding: 0.5rem 0.75rem;
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.015em;
}
.report__side-head span { color: var(--blue); }

.report__nav-item {
  padding: 0.65rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.report__nav-item.is-active {
  background: rgba(99, 91, 255, 0.1);
  color: var(--blue-deep);
  font-weight: 600;
}

.report__dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted);
}
.report__nav-item.is-active .report__dot { background: var(--blue); }

.report__main {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.report__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.report__client {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}
.report__client small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}
.report__period {
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.report__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.report__kpi {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.report__kpi-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.report__kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 0.3rem;
  letter-spacing: -0.02em;
}
.report__kpi-value em {
  font-style: normal;
  color: var(--green);
  font-size: 0.75rem;
  margin-left: 0.3rem;
}

.report__chart {
  flex: 1;
  min-height: 140px;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.08), rgba(24, 191, 255, 0.04));
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
}
.report__chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 820px) {
  .report { grid-template-columns: 80px 1fr; min-height: 380px; }
  .report__side-head { font-size: 0; }
  .report__side-head::before { content: "M"; font-size: 0.875rem; color: var(--blue); }
  .report__nav-item { font-size: 0; justify-content: center; padding: 0.6rem; }
  .report__nav-item .report__dot { width: 6px; height: 6px; }
  .report__kpis { grid-template-columns: 1fr; }
  .report__kpi-value { font-size: 1.25rem; }
}

/* ============================================================
   TRUST MARQUEE
   ============================================================ */
.trust {
  padding-block: var(--s-5);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}
.trust__label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--s-3);
}
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%); }
.marquee__track {
  display: flex;
  gap: var(--s-6);
  width: max-content;
  animation: scroll 44s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--muted);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  opacity: 0.72;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============================================================
   GLASS CARDS GRID
   ============================================================ */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.glass:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.grid {
  display: grid;
  gap: var(--s-3);
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* Capability card */
.cap__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.14), rgba(24, 191, 255, 0.1));
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: var(--s-3);
}
.cap__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cap__desc {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  position: relative;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
}
.stat {
  padding: var(--s-4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 820px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS (4-step)
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
}
.step {
  padding: var(--s-4);
  border-top: 2px solid var(--line);
  position: relative;
  transition: border-color var(--dur) var(--ease);
}
.step:hover { border-top-color: var(--blue); }
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-4);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.step__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 820px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ============================================================
   CASE CARDS (glass)
   ============================================================ */
.case {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.case__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.1), rgba(24, 191, 255, 0.06));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.case__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 91, 255, 0.14), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(24, 191, 255, 0.14), transparent 50%);
}
.case__tag {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.case__client {
  position: absolute;
  bottom: var(--s-2);
  left: var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  z-index: 2;
}
.case__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.case__kpis {
  display: flex;
  gap: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}
.case__kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.case__kpi-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote {
  text-align: center;
  padding-block: var(--s-7);
}
.quote__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.3vw, 2.25rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto var(--s-3);
  letter-spacing: -0.02em;
}
.quote__text em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.quote__role {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  margin-block: var(--s-6);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.95), rgba(79, 70, 229, 0.95));
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(60px);
  top: -220px;
  left: -100px;
}
.cta::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(24, 191, 255, 0.3);
  filter: blur(70px);
  bottom: -200px;
  right: -80px;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  position: relative;
}
.cta p {
  margin: var(--s-2) auto var(--s-4);
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
}
.cta .btn--primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-4);
}
.footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: var(--s-2);
  letter-spacing: -0.005em;
}
.footer__col a {
  display: block;
  padding-block: 0.3rem;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
  font-size: 0.875rem;
}
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 0.8rem;
  color: var(--faint);
}
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   COUNTRY MAP CARD (SVG-based, flag-inspired)
   ============================================================ */
.country-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}

.map-card {
  padding: var(--s-3);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
}
.map-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.country-head__stats {
  display: flex;
  flex-direction: column;
}

@media (max-width: 820px) {
  .country-head { grid-template-columns: 1fr; }
}

/* ============================================================
   CHIPS (business types)
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.55rem 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  backdrop-filter: blur(10px);
  transition: all var(--dur) var(--ease);
}
.chip:hover {
  color: var(--ink);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.chip a {
  color: inherit;
  text-decoration: none;
  display: block;
  margin: -0.55rem -1rem;
  padding: 0.55rem 1rem;
}
.chip a:hover {
  color: var(--blue);
}

/* Horizontal scroll rail for mobile — swipeable chips */
.chip-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 1rem;
  margin: 0 calc(var(--s-3) * -1);
  padding-left: var(--s-3);
  padding-right: var(--s-3);
  scrollbar-width: none;
}
.chip-rail::-webkit-scrollbar { display: none; }
.chip-rail > .chip {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ============================================================
   PROSE
   ============================================================ */
.prose {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.prose p { margin: 0; }

/* ============================================================
   RESPONSIVE PASS — complete audit for phone + tablet + desktop
   ============================================================ */

/* Tablet and small desktop (≤980px) */
@media (max-width: 980px) {
  section { padding-block: var(--s-6); }
  .section-head { margin-bottom: var(--s-5); }
}

/* Large phone / small tablet (≤820px) */
@media (max-width: 820px) {
  :root { --s-8: 4.5rem; --s-9: 5.5rem; }
  .contact-grid { grid-template-columns: 1fr !important; }
  section { padding-block: var(--s-5); }
  .cta { padding: var(--s-5) var(--s-3); margin-block: var(--s-4); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .hero__watermark { display: none; }
  .hero { padding-top: var(--s-5); }
  .service-visual { padding: var(--s-1); margin-top: var(--s-3); }
  .section-head h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-head p { font-size: 0.95rem; }
  /* Hero visual (dashboard) — contain overflow */
  .hero__visual { padding: 6px; margin-top: var(--s-4); }
  .report { min-height: 320px; }
  /* Pros/cons stack */
  .pros-cons { grid-template-columns: 1fr; }
  /* Country head stack already handled; make map smaller */
  .map-card { padding: var(--s-2); }
}

/* Phone (≤560px) */
@media (max-width: 560px) {
  section { padding-block: var(--s-4); }
  .section-head { margin-bottom: var(--s-3); }
  .container { width: 94%; }
  .hero { padding-top: var(--s-4); padding-bottom: var(--s-3); }
  .hero h1 { line-height: 1.08; }
  .hero__sub { font-size: 1rem; }
  .hero__actions { gap: 0.5rem; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .badge { font-size: 0.65rem; padding: 0.4rem 0.75rem; }
  .nav { padding-block: 0.75rem; }
  .nav__inner { height: 44px; }
  .brand { font-size: 1.05rem; }
  .cta { padding: var(--s-4) var(--s-2); }
  .cta h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .btn { padding: 0.7rem 1rem; font-size: 0.8125rem; }
  /* Grids collapse to one column */
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .process, .workflow, .timeline, .approach__grid { grid-template-columns: 1fr !important; }
  /* Stat grid */
  .stats__grid { grid-template-columns: 1fr; }
  .stat__value { font-size: clamp(1.5rem, 7vw, 2rem); }
  .stat { padding: var(--s-3); }
  /* Glass card padding reduce */
  .glass { padding: var(--s-3); }
  /* Priority row */
  .priority-row { grid-template-columns: 100px 1fr 40px; gap: 0.5rem; padding: 0.75rem; }
  .priority-row__name { font-size: 0.75rem; }
  .priority-row__score { font-size: 0.8rem; }
  /* FAQ compact */
  .faq summary { padding: var(--s-2); font-size: 0.9rem; }
  .faq__body { padding: 0 var(--s-2) var(--s-2) var(--s-2); font-size: 0.875rem; }
  /* Service visual */
  .service-visual { padding: 4px; }
  /* Footer */
  .footer__col-title { font-size: 0.825rem; }
  .footer__col a { font-size: 0.825rem; padding-block: 0.25rem; }
  .footer__bottom { font-size: 0.75rem; flex-direction: column; align-items: flex-start; }
  /* Matrix horizontal scroll indicator */
  .matrix { -webkit-overflow-scrolling: touch; }
  .matrix table { min-width: 540px; }
  .matrix th, .matrix td { padding: 0.6rem 0.75rem; font-size: 0.825rem; }
  /* Chips */
  .chip { font-size: 0.825rem; padding: 0.45rem 0.8rem; }
  /* Country head stats */
  .country-head__stats h2 { font-size: 1.5rem; }
  /* Pros / cons li */
  .pc-col { padding: var(--s-3); }
  .pc-col li { font-size: 0.9rem; padding: 0.5rem 0 0.5rem 1.2rem; }
  /* Prose */
  .prose { font-size: 1rem; line-height: 1.65; }
  /* Article */
  .article { font-size: 1rem; }
  .article h2 { font-size: 1.4rem; }
  .article h3 { font-size: 1.1rem; }
  .article blockquote { font-size: 1.05rem; padding: var(--s-2); }
  /* Workflow steps */
  .workflow-step { padding: var(--s-2); }
  .workflow-step__num { width: 24px; height: 24px; line-height: 24px; font-size: 0.75rem; }
  /* Timeline items */
  .timeline-item { padding: var(--s-2); }
  /* Ladder */
  .ladder-step { padding: var(--s-2); grid-template-columns: 36px 1fr; gap: var(--s-2); }
  .ladder-step__num { font-size: 1.1rem; }
  .ladder-step__title { font-size: 0.9rem; }
  .ladder-step__desc { font-size: 0.825rem; }
  /* List patterns */
  .list-plain { grid-template-columns: 1fr; }
  .list-plain li { padding-right: 0; padding-left: 2rem; font-size: 0.875rem; }
  .list-numbered li { grid-template-columns: 32px 1fr; gap: 0.5rem; }
}

/* Very narrow (≤380px) */
@media (max-width: 380px) {
  .container { width: 92%; }
  .nav__inner { gap: var(--s-2); }
  .brand { font-size: 1rem; }
  .nav .btn { padding: 0.6rem 0.9rem; font-size: 0.75rem; }
  .hero h1 { font-size: clamp(1.75rem, 10vw, 2.25rem); }
  .section-head h2 { font-size: 1.35rem; }
  .priority-row { grid-template-columns: 80px 1fr 32px; }
}

/* Reduce excessive section stacking on small screens */
@media (max-width: 820px) {
  .ornament { padding-block: var(--s-3); }
}

/* Wireframe marker — makes it clear SVG mockups are placeholders */
.wireframe-label {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(99, 91, 255, 0.08);
  border: 1px dashed rgba(99, 91, 255, 0.35);
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Ensure service-visual labels don't overlap on mobile */
.service-visual-wrap {
  text-align: center;
}
.service-visual-wrap .wireframe-label {
  margin-top: 0.75rem;
}

/* Visited link fix for anchor-based cards */
a.glass, a.case, a.capability { color: inherit; text-decoration: none; }
a.glass:visited, a.case:visited, a.capability:visited { color: inherit; }

/* ============================================================
   FAQ ACCORDION (details/summary, styled)
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 820px;
  margin: 0 auto;
}
.faq {
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.faq[open] { box-shadow: var(--shadow-md); }
.faq summary {
  padding: var(--s-3);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { display: none; }
.faq__sign {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(99, 91, 255, 0.1);
  color: var(--blue);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq[open] .faq__sign {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}
.faq__body {
  padding: 0 var(--s-3) var(--s-3) var(--s-3);
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.9625rem;
}
.faq__body p { margin: 0 0 0.75em; }
.faq__body p:last-child { margin: 0; }

@media (max-width: 480px) {
  .faq summary { padding: var(--s-2); font-size: 0.95rem; }
  .faq__body { padding: 0 var(--s-2) var(--s-2) var(--s-2); }
}

/* ============================================================
   BLOG POST (article)
   ============================================================ */
.article {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.78;
}
.article p { margin: 0 0 var(--s-2); }
.article h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: var(--s-4) 0 var(--s-2);
  line-height: 1.2;
}
.article h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin: var(--s-3) 0 var(--s-1);
  letter-spacing: -0.015em;
}
.article ul { margin: 0 0 var(--s-2) 1.25rem; }
.article li { margin-bottom: 0.5em; }
.article a { color: var(--blue); font-weight: 500; }
.article strong { color: var(--ink); font-weight: 600; }
.article blockquote {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-3);
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.06), rgba(24, 191, 255, 0.03));
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.article-visual {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  margin: 0 auto var(--s-4);
  max-width: 980px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.14), rgba(24, 191, 255, 0.08));
}
.article-visual__symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 15vw, 11rem);
  color: var(--blue);
  opacity: 0.22;
  letter-spacing: -0.04em;
  line-height: 1;
}
.article-visual__label {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.article-meta {
  display: flex;
  gap: var(--s-2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.article-meta span + span::before {
  content: "·";
  margin-right: var(--s-2);
  color: var(--line-strong);
}

/* ============================================================
   INSIGHT POST EXTRAS — takeaways tile, mistake callout, step list
   ============================================================ */
.insight-takeaway {
  max-width: 760px;
  margin: 0 auto var(--s-4);
  padding: var(--s-3) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.045), rgba(24, 191, 255, 0.025));
}
.insight-takeaway__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.insight-takeaway ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.insight-takeaway li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}
.insight-takeaway li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

.insight-callout {
  max-width: 760px;
  margin: var(--s-4) auto;
  padding: var(--s-3);
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-left: 3px solid #dc2626;
  border-radius: var(--r-md);
  background: rgba(254, 242, 242, 0.6);
}
.insight-callout__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #dc2626;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.insight-callout ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.975rem;
  line-height: 1.6;
}
.insight-callout li { margin-bottom: 0.4rem; }

.insight-steps {
  max-width: 760px;
  margin: var(--s-3) auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.insight-steps li {
  position: relative;
  padding: var(--s-2) var(--s-3) var(--s-2) 3.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  counter-increment: step;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.insight-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: var(--s-2);
  top: var(--s-2);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0;
}
.insight-steps li strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.insight-stats {
  max-width: 820px;
  margin: var(--s-4) auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.insight-stat {
  padding: var(--s-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
}
.insight-stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.insight-stat__label {
  margin-top: 0.5rem;
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .insight-stats { grid-template-columns: 1fr; }
  .insight-steps li { padding-left: 3rem; }
}

/* ============================================================
   CITY UNIQUE VISUALS
   ============================================================ */

/* Playbook bars — relative platform priority */
.priority-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.priority-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.priority-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.priority-row__bar {
  position: relative;
  height: 8px;
  background: rgba(99, 91, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.priority-row__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 999px;
}
.priority-row__score {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
}
@media (max-width: 600px) {
  .priority-row { grid-template-columns: 110px 1fr 40px; }
  .priority-row__name { font-size: 0.825rem; }
  .priority-row__score { font-size: 0.825rem; }
}

/* Calendar / timeline-like strip */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s-2);
  position: relative;
}
.timeline-item {
  padding: var(--s-3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
}
.timeline-item__period {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.timeline-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.timeline-item__desc {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Decision ladder (used by Kuwait City) */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 820px;
  margin: 0 auto;
}
.ladder-step {
  padding: var(--s-3);
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: var(--s-3);
  align-items: center;
}
.ladder-step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.ladder-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.ladder-step__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Matrix (used by Hawalli — community × channel) */
.matrix {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}
.matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.matrix th, .matrix td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.matrix th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(99, 91, 255, 0.04);
}
.matrix td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.matrix .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 0.3rem;
}
.matrix .dot--empty { background: var(--line-strong); }

/* ============================================================
   FUNNEL (TOFU/MOFU/BOFU visual explainer)
   ============================================================ */
.funnel {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-5);
  align-items: center;
}
.funnel__svg {
  width: 100%;
  max-width: 420px;
}
.funnel__stages { display: flex; flex-direction: column; gap: var(--s-2); }
.funnel-stage {
  padding: var(--s-3);
  border-left: 3px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.0));
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.funnel-stage--tofu { border-left-color: var(--purple); }
.funnel-stage--mofu { border-left-color: var(--blue); }
.funnel-stage--bofu { border-left-color: var(--green); }
.funnel-stage__badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--muted);
  border-radius: 999px;
  margin-bottom: var(--s-1);
}
.funnel-stage--tofu .funnel-stage__badge { background: var(--purple); }
.funnel-stage--mofu .funnel-stage__badge { background: var(--blue); }
.funnel-stage--bofu .funnel-stage__badge { background: var(--green); }
.funnel-stage__plain {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.funnel-stage__example {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .funnel { grid-template-columns: 1fr; }
  .funnel__svg { max-width: 300px; margin: 0 auto; }
}

/* ============================================================
   PROS vs CONS (two-column)
   ============================================================ */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.pc-col {
  padding: var(--s-4);
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
}
.pc-col h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.pc-col--pros h3::before {
  content: "✓";
  color: var(--green);
  font-size: 1.3rem;
}
.pc-col--cons h3::before {
  content: "✗";
  color: var(--muted);
  font-size: 1.3rem;
}
.pc-col ul { list-style: none; margin: 0; padding: 0; }
.pc-col li {
  padding: 0.65rem 0 0.65rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.pc-col li:last-child { border-bottom: none; }
.pc-col--pros li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.pc-col--cons li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  opacity: 0.5;
}
@media (max-width: 720px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ============================================================
   WORKFLOW (horizontal process arrows)
   ============================================================ */
.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s-2);
  position: relative;
}
.workflow-step {
  padding: var(--s-3);
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
}
.workflow-step__num {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  text-align: center;
  line-height: 28px;
  margin-bottom: var(--s-1);
}
.workflow-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.workflow-step__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   SERVICE HERO VISUAL (SVG mockups per service)
   ============================================================ */
.service-visual {
  max-width: 920px;
  margin: var(--s-5) auto 0;
  padding: var(--s-3);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
}
.service-visual svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}

/* ============================================================
   LIST patterns reused — generic feature-list
   ============================================================ */
.list-plain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.list-plain li {
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  position: relative;
  padding-left: 2.2rem;
  list-style: none;
}
.list-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--s-3);
  width: 1.6rem; height: 1.6rem;
  background: rgba(99,91,255,0.08);
  border-radius: 50%;
}
.list-plain li::after {
  content: "✓";
  position: absolute;
  left: 0.42rem;
  top: var(--s-3);
  width: 1.6rem; height: 1.6rem;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.6rem;
}

/* Numbers list variant */
.list-numbered {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.list-numbered li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.list-numbered li:last-child { border-bottom: none; }
.list-numbered .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue);
}
.list-numbered .t {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.list-numbered .t strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   POLISH — layout, spacing, alignment finalisation
   ============================================================ */

/* Container: consistent inner padding across screen sizes */
.container {
  padding-inline: 1.25rem;
}

/* Section head: tighter max-width + centred alignment on default */
.section-head {
  max-width: 760px;
  margin-bottom: var(--s-5);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head .kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-head p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}
.section-head.center p { margin-inline: auto; }

/* Hero: cleaner vertical rhythm */
.hero {
  padding-top: var(--s-5) !important;
  padding-bottom: var(--s-5) !important;
}
.hero h1 {
  margin-bottom: var(--s-2);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero__sub {
  margin-bottom: var(--s-3);
  max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero__sub-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.925rem;
  color: var(--muted);
}
.hero__sub-links a {
  color: var(--blue);
  font-weight: 500;
}

/* Grid gaps: consistent, generous enough */
.grid {
  gap: var(--s-3);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Glass cards: equal padding, consistent corner radius */
.glass {
  padding: var(--s-4);
  border-radius: 14px;
}
.glass h3 { margin-top: 0; margin-bottom: 0.5rem; }
.glass p:last-child { margin-bottom: 0; }

/* Feature cards (link-style) */
.feature-card {
  display: block;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(99,91,255,0.08);
}
.feature-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.925rem; line-height: 1.5; }

/* Chips: tighter padding on default */
.chips { gap: 0.4rem; }
.chip { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* Prose: narrower reading column, nicer typography */
.prose {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
}
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }

/* FAQ: cleaner expanded state */
.faq-list { max-width: 760px; }
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  padding: 1rem 0.25rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary { color: var(--blue); }
.faq__plus, .faq__sign {
  font-size: 1.25rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq[open] .faq__plus, .faq[open] .faq__sign { transform: rotate(45deg); color: var(--blue); }
.faq__body {
  padding: 0 0.25rem 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA block: breathing room */
.cta-block {
  background: linear-gradient(135deg, rgba(99,91,255,0.05), rgba(24,191,255,0.05));
  border: 1px solid rgba(99,91,255,0.15);
  border-radius: 18px;
  padding: var(--s-5);
  text-align: center;
}
.cta-block h2 { margin: 0 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-block p { margin: 0 0 var(--s-3); color: var(--muted); max-width: 48ch; margin-inline: auto; }

/* Footer: cleaner column alignment */
.footer {
  padding-block: var(--s-6) var(--s-4);
  border-top: 1px solid var(--line);
  margin-top: var(--s-6);
}
.footer__inner { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: var(--s-5); }
.footer__brand .brand { display: block; margin-bottom: 0.75rem; }
.footer__tag { color: var(--muted); font-size: 0.925rem; max-width: 32ch; line-height: 1.55; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.footer__col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__title { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.3rem; }
.footer__col a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.footer__col a:hover { color: var(--blue); }
.footer__bottom { padding-top: var(--s-3); margin-top: var(--s-3); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.825rem; display: flex; justify-content: space-between; align-items: center; }

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { opacity: 0.4; }

/* Tablet (≤980px) */
@media (max-width: 980px) {
  section { padding-block: var(--s-6); }
  section + section { padding-top: var(--s-5); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}

/* Mobile (≤560px) */
@media (max-width: 560px) {
  section { padding-block: var(--s-5); }
  section + section { padding-top: var(--s-4); }
  .container { padding-inline: 1rem; }
  .grid, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: var(--s-2); }
  .section-head { margin-bottom: var(--s-3); }
  .section-head h2 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .hero { padding-top: var(--s-4) !important; padding-bottom: var(--s-4) !important; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .glass, .feature-card { padding: var(--s-3); }
  .cta-block { padding: var(--s-4); border-radius: 14px; }
  .footer { padding-block: var(--s-4) var(--s-3); margin-top: var(--s-4); }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* Hide orbs on mobile — they take rendering budget */
@media (max-width: 820px) {
  .orb { display: none; }
}

/* Prevent overflow from any wayward content */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* Smoother focus states for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll indicator (progress bar) is already injected by main.js */

/* Mobile hero overflow fix */
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.25rem) !important; line-height: 1.1; word-wrap: break-word; overflow-wrap: break-word; }
  .hero h1 .gradient-text { display: block; }
  .hero__sub { font-size: 0.95rem !important; }
  .nav__inner { padding-inline: 1rem !important; }
}
.hero h1, .hero__sub, .section-head h2, .section-head p { max-width: 100%; }

/* Force no horizontal overflow site-wide */
html, body { overflow-x: hidden !important; max-width: 100vw; }
.nav, .nav__inner, section, .container { max-width: 100vw; }
.page { overflow-x: hidden; }


/* Sections hidden from admin toggle */
section[data-hidden="true"] { display: none !important; }

/* ---------- Icons (chosen in the admin: built-in, text/emoji or uploaded image) ---------- */
.cap__icon svg.oi { width: 22px; height: 22px; }
.cap__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.cap__icon[data-empty="true"] { display: none; }
.cap__icon[data-size="sm"] { width: 36px; height: 36px; font-size: 0.8rem; }
.cap__icon[data-size="sm"] svg.oi { width: 18px; height: 18px; }
.cap__icon[data-size="lg"] { width: 66px; height: 66px; font-size: 1.3rem; }
.cap__icon[data-size="lg"] svg.oi { width: 32px; height: 32px; }
.cap__icon[data-align="center"] { margin-inline: auto; }
.cap__icon[data-pos="inline"] { display: inline-grid; vertical-align: middle; margin: 0 0.75rem 0 0; }
.cap__icon[data-pos="inline"] + h3 { display: inline-block; vertical-align: middle; margin: 0; }
.cap__icon[data-pos="inline"] + h3 + p { margin-top: var(--s-2); }
.article-visual__symbol svg.oi { width: 1em; height: 1em; stroke-width: 1.25; }
.article-visual__symbol img { max-width: 60%; max-height: 60%; object-fit: contain; }


/* ============================================================================
   APPLE-INSPIRED OVERLAY
   Clean canvas · oversized type · pill buttons · generous rhythm
   Overrides selected pieces of the glass system above. OrcaPulse brand kept.
   ============================================================================ */

:root {
  /* Pure Apple-style surfaces */
  --ap-bg: #ffffff;
  --ap-bg-soft: #fbfbfd;        /* Apple's "secondary system background" */
  --ap-bg-tint: #f5f5f7;        /* Apple's "chip" background */
  --ap-ink: #1d1d1f;            /* Apple's primary text */
  --ap-ink-soft: #424245;
  --ap-muted: #6e6e73;          /* Apple's secondary text */
  --ap-line: rgba(0, 0, 0, 0.08);
  --ap-line-strong: rgba(0, 0, 0, 0.14);

  /* Depth: barely-there */
  --ap-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ap-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --ap-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --ap-shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Calm the canvas: pure white, keep the subtle grid, no coloured orbs */
body { background: var(--ap-bg); color: var(--ap-ink); }
.page { background: var(--ap-bg); }
/* Keep the thin background grid lines — just lighter for the Apple palette.
   Overrides the colour defined in the earlier .page::before rule. */
.page::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
.orb { display: none; }

/* Section rhythm */
section { padding-block: clamp(4rem, 8vw, 7rem); }
section + section { padding-top: clamp(3rem, 6vw, 5.5rem); }

/* Container slightly wider for Apple-style layouts */
.container { width: min(1120px, 92%); }

/* ---- Nav: thinner, cleaner, true frosted ---- */
.nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  border-bottom-color: var(--ap-line);
  box-shadow: none;
}
.nav__inner { height: 52px; }
.brand { font-size: 1.125rem; letter-spacing: -0.03em; color: var(--ap-ink); }
.brand span { color: var(--blue); }
.nav__link, .nav__trigger {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ap-ink);
  letter-spacing: -0.005em;
}
.nav__link:hover, .nav__trigger:hover, .nav__item.is-open .nav__trigger { color: var(--blue); }
.nav__dropdown {
  background: #fff;
  border: 1px solid var(--ap-line);
  box-shadow: var(--ap-shadow-lg);
  border-radius: 14px;
  padding: 0.6rem;
}
.nav__dropdown a { color: var(--ap-ink); font-weight: 500; font-size: 0.875rem; }
.nav__dropdown a:hover { color: var(--blue); background: var(--ap-bg-tint); }
.nav__dropdown-title { color: var(--ap-muted); }

/* ---- Buttons: pill-shaped, bolder contrast, zero gradient on primary ---- */
.btn {
  border-radius: 980px;              /* Apple's capsule radius */
  padding: 0.72rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
              box-shadow 180ms var(--ease), color 180ms var(--ease);
  box-shadow: none;
  border: 0;
}
.btn--primary {
  background: var(--ap-ink);
  color: #fff;
  box-shadow: none;
}
.btn--primary:hover {
  background: var(--blue);
  transform: none;
  box-shadow: 0 8px 22px rgba(99, 91, 255, 0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--ap-ink);
  border: 1px solid var(--ap-line-strong);
  backdrop-filter: none;
}
.btn--ghost:hover {
  background: var(--ap-bg-tint);
  transform: none;
  border-color: var(--ap-ink);
}
.nav__cta.btn--primary { padding: 0.55rem 1.1rem; font-size: 0.8125rem; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---- Hero: Apple-scale type ---- */
.hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--ap-ink);
  max-width: 20ch;
  margin-inline: auto;
}
.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
  color: var(--ap-muted);
  max-width: 44ch;
  margin: 1.25rem auto 2rem;
  font-weight: 400;
}
.badge {
  background: var(--ap-bg-tint);
  border-color: transparent;
  color: var(--ap-ink);
  box-shadow: none;
  backdrop-filter: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.75rem;
}
.badge::before { background: var(--blue); box-shadow: none; }

/* ---- Section headers ---- */
.kicker {
  color: var(--blue);
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ap-ink);
}
.section-head p {
  font-size: 1.0625rem;
  color: var(--ap-muted);
  line-height: 1.55;
}

/* ---- Cards: clean white, hairline border, barely-shadow ---- */
.glass {
  background: #fff;
  border: 1px solid var(--ap-line);
  box-shadow: var(--ap-shadow-xs);
  backdrop-filter: none;
  border-radius: 20px;
  padding: 1.75rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.glass:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow-md);
  border-color: var(--ap-line-strong);
}

/* Capability cards */
.cap__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--ap-bg-tint);
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.cap__title { color: var(--ap-ink); font-size: 1.0625rem; letter-spacing: -0.02em; font-weight: 600; }
.cap__desc { color: var(--ap-muted); font-size: 0.9375rem; line-height: 1.55; }
.case__title { color: var(--ap-ink); font-weight: 600; letter-spacing: -0.02em; }

/* ---- Stat tiles align with Apple density ---- */
.insight-stat { background: #fff; border-color: var(--ap-line); box-shadow: var(--ap-shadow-xs); }
.insight-stat__value { color: var(--ap-ink); letter-spacing: -0.035em; font-weight: 700; }
.insight-stat__label { color: var(--ap-muted); }

/* Insight extras: softer tints */
.insight-takeaway {
  background: var(--ap-bg-soft);
  border-color: var(--ap-line);
}
.insight-takeaway__kicker { color: var(--blue); letter-spacing: 0.12em; }
.insight-takeaway li { color: var(--ap-ink-soft); }
.insight-steps li {
  background: #fff;
  border-color: var(--ap-line);
  box-shadow: var(--ap-shadow-xs);
  color: var(--ap-ink-soft);
}
.insight-steps li strong { color: var(--ap-ink); }
.insight-callout {
  background: #fff5f5;
  border-color: rgba(220, 38, 38, 0.18);
  border-left-color: #dc2626;
}

/* Article text */
.article { color: var(--ap-ink-soft); font-size: 1.0625rem; line-height: 1.68; }
.article h2 { color: var(--ap-ink); font-weight: 700; letter-spacing: -0.03em; }
.article h3 { color: var(--ap-ink); font-weight: 600; letter-spacing: -0.02em; }
.article blockquote {
  background: var(--ap-bg-soft);
  border-left-color: var(--blue);
  color: var(--ap-ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero visuals / article visuals: cleaner */
.article-visual {
  background: var(--ap-bg-soft);
  border-color: var(--ap-line);
}
.article-visual__symbol { color: var(--blue); opacity: 0.28; font-weight: 200; }

/* ---- CTA block ---- */
.cta-block {
  background: var(--ap-bg-soft);
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.cta-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--ap-ink);
  margin-bottom: 0.5rem;
}
.cta-block p { color: var(--ap-muted); max-width: 44ch; margin: 0 auto 1.5rem; font-size: 1rem; }

/* Legacy .cta block (homepage/insights) */
.cta {
  background: var(--ap-bg-soft);
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  margin-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
  color: var(--ap-ink);
}
.cta::before, .cta::after { display: none; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  color: var(--ap-ink);
  margin-bottom: 0.5rem;
}
.cta p { color: var(--ap-muted); max-width: 48ch; margin: 0 auto 1.75rem; font-size: 1.0625rem; }
.cta .btn--primary { background: var(--ap-ink); color: #fff; }
.cta .btn--primary:hover { background: var(--blue); }

/* ---- Chips ---- */
.chip {
  background: var(--ap-bg-tint);
  color: var(--ap-ink);
  border: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.chip:hover { background: var(--ap-line-strong); }

/* ---- Footer: cleaner, flat ---- */
.footer {
  background: var(--ap-bg-soft);
  border-top: 1px solid var(--ap-line);
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 3vw, 2.5rem);
  color: var(--ap-muted);
}
.footer__inner, .footer__grid { max-width: 1120px; margin-inline: auto; }
.footer__title, .footer__col-title { color: var(--ap-ink); font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.005em; }
.footer__col a { color: var(--ap-muted); font-size: 0.85rem; }
.footer__col a:hover { color: var(--ap-ink); }
.footer__brand .brand { color: var(--ap-ink); }
.footer__tag, .footer p { color: var(--ap-muted); font-size: 0.875rem; }
.footer__bottom small, .footer__bottom { color: var(--ap-muted); font-size: 0.75rem; }

/* ---- Mobile menu panel polish ---- */
.nav__mobile-panel { background: rgba(255, 255, 255, 0.98); backdrop-filter: saturate(180%) blur(20px); }
.nav__mobile-link, .nav__mobile-section a { color: var(--ap-ink); }
.nav__mobile-heading { color: var(--ap-ink); font-weight: 600; }

/* ---- Breadcrumb cleanup ---- */
.breadcrumb { color: var(--ap-muted); font-size: 0.8125rem; }
.breadcrumb a { color: var(--ap-muted); }
.breadcrumb a:hover { color: var(--blue); }

/* ---- Feature cards / case title shared ---- */
.feature-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  display: block;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow-md);
  border-color: var(--ap-line-strong);
}
.feature-card h3 { color: var(--ap-ink); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.feature-card p { color: var(--ap-muted); font-size: 0.9375rem; line-height: 1.55; }

/* ---- Prose spacing a touch more generous ---- */
.prose { color: var(--ap-ink-soft); font-size: 1.0625rem; line-height: 1.68; }

/* ---- Reveal animation lighter ---- */
.reveal { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }

/* ---- Mobile ---- */
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); max-width: 100%; }
  .hero__sub { font-size: 1rem; }
  .section-head h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .cta h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .glass, .feature-card { padding: 1.25rem; border-radius: 16px; }
  .cta, .cta-block { border-radius: 18px; }
  section { padding-block: 3rem; }
  .btn { padding: 0.7rem 1.2rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .btn, .glass, .feature-card { transition: none !important; }
}

/* ============================================================================
   ORCAPULSE GUIDE — floating animated face + tooltip
   Mounted via scripts/main.js on every page.
   ============================================================================ */

.op-guide {
  position: fixed;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  /* Smoothly transition between anchors. Movements are intentionally slow (680ms)
     so the face reads as "gently floating", not teleporting. */
  transition: top 680ms var(--ease), bottom 680ms var(--ease),
              left 680ms var(--ease), right 680ms var(--ease),
              opacity 300ms var(--ease);
  /* Defaults (bottom-right); JS overrides */
  right: 20px; bottom: 20px;
}
.op-guide[data-hidden="true"] { opacity: 0; pointer-events: none !important; visibility: hidden; }

/* Idle float — tiny vertical oscillation inside the anchor, so it reads as alive */
@keyframes op-guide-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.op-guide__wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: op-guide-float 5200ms var(--ease) infinite;
  pointer-events: none;
}
.op-guide[data-side="left"] .op-guide__wrap { align-items: flex-start; }
.op-guide[data-side="right"] .op-guide__wrap { align-items: flex-end; }

.op-guide__face {
  pointer-events: auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #F8F7F2;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  display: grid; place-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.op-guide__face:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.1); }
.op-guide__face:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.op-guide__face svg { width: 100%; height: 100%; display: block; overflow: visible; }

@keyframes op-guide-jump {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-10px) rotate(-4deg); }
  55%  { transform: translateY(-14px) rotate(3deg); }
  85%  { transform: translateY(-2px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.op-guide__face[data-anim="jump"] { animation: op-guide-jump 850ms var(--ease); }

/* Red cheek dots */
.op-guide__cheek { fill: rgba(220, 38, 38, 0.18); }
/* Little tail/pointer under the face. Inherits face colour via fill set in JS. */
.op-guide__tail { transition: transform 220ms var(--ease); }

/* Eyes + mouth are controlled by inline attributes via JS; CSS gives transitions */
.op-guide__eye,
.op-guide__mouth {
  transition: all 220ms var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}

/* Tooltip */
.op-guide__tip {
  pointer-events: auto;
  max-width: 280px;
  background: #fff;
  color: var(--ap-ink);
  border: 1px solid var(--ap-line);
  box-shadow: var(--ap-shadow-lg);
  border-radius: 14px;
  padding: 12px 14px 12px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  position: relative;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  font-family: var(--font-ui);
}
.op-guide__tip[data-open="true"] { opacity: 1; transform: translateY(0) scale(1); }
.op-guide__tip-kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}
/* Minimal tip variant: plain, no kicker, no shadow */
.op-guide__tip[data-style="minimal"] {
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 10px;
  padding: 10px 12px;
}
.op-guide__tip[data-style="minimal"] .op-guide__tip-kicker { display: none; }
.op-guide__tip[data-style="minimal"] .op-guide__tip-body { color: #fff; font-size: 0.825rem; }
.op-guide__tip[data-style="minimal"] .op-guide__tip-close,
.op-guide__tip[data-style="minimal"] .op-guide__tip-disable { color: rgba(255,255,255,0.75); }
.op-guide__tip[data-style="minimal"] .op-guide__tip-close:hover,
.op-guide__tip[data-style="minimal"] .op-guide__tip-disable:hover { color: #fff; background: rgba(255,255,255,0.1); }
.op-guide__tip-body { color: var(--ap-ink-soft); }
.op-guide__tip-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; align-items: center; }
.op-guide__tip-close {
  background: none; border: 0; padding: 2px 6px;
  font-size: 0.75rem; color: var(--ap-muted);
  cursor: pointer; border-radius: 6px; font-family: inherit;
}
.op-guide__tip-close:hover { background: var(--ap-bg-tint); color: var(--ap-ink); }
.op-guide__tip-disable {
  background: none; border: 0; padding: 2px 6px;
  font-size: 0.75rem; color: var(--ap-muted);
  cursor: pointer; border-radius: 6px; font-family: inherit;
}
.op-guide__tip-disable:hover { color: var(--ap-ink); text-decoration: underline; }

/* When anchored to mid-left or mid-right, centre vertically on the viewport */
.op-guide[data-anchor="mr"],
.op-guide[data-anchor="ml"] {
  transform: translateY(-50%);
}
/* Reset transform when NOT in a mid position so top/bottom anchors sit as declared */
.op-guide[data-anchor="tr"],
.op-guide[data-anchor="tl"],
.op-guide[data-anchor="br"],
.op-guide[data-anchor="bl"] {
  transform: none;
}

/* ===== On-page Table of Contents (insight posts) ===== */
.op-toc {
  display: none;
  position: fixed;
  top: 110px;
  left: calc(50% + 412px);   /* just outside the 760px article column */
  right: auto;
  width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 50;
  padding: var(--s-3);
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 12px;
  box-shadow: var(--ap-shadow-xs);
}
@media (min-width: 1420px) {
  .op-toc { display: block; }
}
.op-toc__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.op-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: tocn;
}
.op-toc li {
  counter-increment: tocn;
  margin-bottom: 0.4rem;
}
.op-toc li a {
  display: block;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--ap-ink-soft);
  font-size: 0.825rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.op-toc li a::before {
  content: counter(tocn, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-size: 0.7rem;
  color: var(--ap-muted);
  font-weight: 600;
  font-family: var(--font-display);
}
.op-toc li a:hover { color: var(--blue); }

/* Chip-style buttons for insight filter */
.op-chip { padding: 0.45rem 0.95rem; border: 1px solid var(--ap-line); background: #fff; border-radius: 980px; font: inherit; font-size: 0.825rem; font-weight: 500; color: var(--ap-ink); cursor: pointer; transition: all 180ms var(--ease); }
.op-chip:hover { border-color: var(--ap-line-strong); }
.op-chip.is-active { background: var(--ap-ink); color: #fff; border-color: var(--ap-ink); }
.op-card.is-hidden { display: none !important; }

/* Mobile sizing */
@media (max-width: 560px) {
  .op-guide { right: 14px; bottom: 14px; }
  .op-guide__face { width: 40px; height: 40px; }
  .op-guide__tip { max-width: calc(100vw - 90px); font-size: 0.825rem; }
}

@media (prefers-reduced-motion: reduce) {
  .op-guide, .op-guide__face, .op-guide__tip, .op-guide__eye, .op-guide__mouth { transition: none !important; animation: none !important; }
}

/* ============================================================
   SECTION SETTINGS — set per section in Admin → Edit page
   (background, text colour, spacing, alignment, image position)
   ============================================================ */
section[data-op-bg] { background: var(--op-bg); }
section[data-op-ink] :is(h1, h2, h3, h4, h5, p, li, summary, dt, dd, blockquote, .kicker, .eyebrow) { color: var(--op-ink); }
section[data-op-ink] { color: var(--op-ink); }
section[data-op-pad="sm"] { padding-block: var(--s-5); }
section[data-op-pad="md"] { padding-block: var(--s-6); }
section[data-op-pad="lg"] { padding-block: var(--s-8); }
section[data-op-empty="true"] { display: none !important; }

section[data-op-align="center"] { text-align: center; }
section[data-op-align="center"] .section-head { margin-inline: auto; text-align: center; }
section[data-op-align="center"] .section-head p { margin-inline: auto; }
section[data-op-align="left"] { text-align: left; }
section[data-op-align="left"] .section-head { margin-inline: 0; text-align: left; }
section[data-op-align="left"] .section-head p { margin-inline: 0; }

/* Section image */
.op-media { margin: 0 0 var(--s-4); }
.op-media img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
/* The grid lives on the section's .container, or on the section itself when the page wraps all sections in one container. */
section[data-op-image-pos] > .container,
section[data-op-image-pos]:not(:has(> .container)) { display: grid; grid-template-columns: minmax(0, 1fr); }
section[data-op-image-pos="below"] .op-media { order: 99; margin: var(--s-4) 0 0; }
@media (min-width: 900px) {
  section[data-op-image-pos="left"] > .container,
  section[data-op-image-pos="right"] > .container,
  section[data-op-image-pos="left"]:not(:has(> .container)),
  section[data-op-image-pos="right"]:not(:has(> .container)) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--s-5);
    row-gap: 0;
    grid-auto-rows: min-content;
    align-content: center;
  }
  section[data-op-image-pos="right"] .op-media { grid-column: 2; grid-row: 1 / span 20; align-self: center; margin: 0; }
  section[data-op-image-pos="right"] > :not(.op-media),
  section[data-op-image-pos="right"] > .container > :not(.op-media) { grid-column: 1; }
  section[data-op-image-pos="left"] .op-media { grid-column: 1; grid-row: 1 / span 20; align-self: center; margin: 0; }
  section[data-op-image-pos="left"] > :not(.op-media),
  section[data-op-image-pos="left"] > .container > :not(.op-media) { grid-column: 2; }
}

/* Map */
.op-map { position: relative; width: 100%; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 7; min-height: 280px; background: #e8edf5; }
.op-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.op-map__link { position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 2; padding: 0.35rem 0.75rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.78rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .op-map { aspect-ratio: 4 / 3; } }
/* A coloured section on a page that wraps all sections in one container becomes a rounded panel */
section[data-op-bg]:not(:has(> .container)) { border-radius: var(--r-lg); padding-inline: clamp(1rem, 4vw, 2.5rem); }

/* ============================================================
   CONTENT LIBRARY CARDS — testimonials, case studies, team, awards
   (generated from Admin → Content Library)
   ============================================================ */
.op-collection { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-3); align-items: stretch; }
.op-collection > * { margin: 0; }

.op-quote { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-3); padding: var(--s-4); }
.op-quote blockquote { margin: 0; }
.op-quote blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--ink); }
.op-quote figcaption { display: flex; align-items: center; gap: 0.75rem; }
.op-quote figcaption strong { display: block; font-size: 0.95rem; color: var(--ink); }
.op-quote figcaption span { display: block; font-size: 0.82rem; color: var(--muted); }
.op-quote__img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.op-quote__src { font-size: 0.8rem; color: var(--blue); }

.op-case { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.op-case__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.op-case__body { padding: var(--s-4); display: flex; flex-direction: column; gap: 0.5rem; }
.op-case__body h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.op-case__body p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.op-case__client { font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted) !important; }
.op-case__result { font-weight: 700; color: var(--blue-deep) !important; font-size: 1.02rem !important; }
.op-case__link { font-weight: 600; font-size: 0.9rem; color: var(--blue); text-decoration: none; margin-top: 0.25rem; }

.op-person { padding: var(--s-4); display: flex; flex-direction: column; gap: 0.35rem; }
.op-person__img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; }
.op-person__img--initial { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(99,91,255,.14), rgba(24,191,255,.14)); color: var(--blue-deep); font-weight: 700; font-size: 1.8rem; font-family: var(--font-display); }
.op-person h3 { margin: 0; font-size: 1.1rem; }
.op-person p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.op-person__role { color: var(--blue-deep) !important; font-weight: 600; font-size: 0.8rem !important; letter-spacing: 0.04em; text-transform: uppercase; }
.op-person__link { font-size: 0.85rem; color: var(--blue); }

.op-award { padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; }
.op-award__img { height: 52px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 0.4rem; }
.op-award h3 { margin: 0; font-size: 1rem; }
.op-award p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.op-award a { font-size: 0.8rem; color: var(--blue); }

/* ============================================================
   HERO — final rules. These come last on purpose so they win over the
   older hero layers above (one headline style, one clean mobile layout).
   ============================================================ */
.hero h1 { max-width: 24ch; margin-inline: auto; text-wrap: balance; overflow-wrap: break-word; line-height: 1.1; }
.hero h1 .gradient-text { display: inline; padding-bottom: 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 560px) {
  .hero h1 { max-width: 100%; }
  .hero h1 .gradient-text { display: inline; }
}
.hero__actions { justify-content: center; }
.hero__scarcity {
  display: flex; align-items: flex-start; justify-content: center; gap: 0.55rem;
  max-width: 34rem; margin: 1.25rem auto 0; padding-inline: 0.25rem;
  font-size: 0.875rem; line-height: 1.45; color: var(--muted); text-align: left; text-wrap: balance;
}
.hero__scarcity > span:last-child { min-width: 0; }
.hero__scarcity strong { color: var(--ink); font-weight: 600; }
.hero__dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 0.42rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
@media (min-width: 640px) { .hero__scarcity { max-width: none; text-align: center; align-items: center; } .hero__dot { margin-top: 0; } }

/* Trust bar: two short rows of chips, labels lined up in one column */
.trust__row { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 0.5rem 1.25rem; max-width: 1020px; margin-inline: auto; }
.trust__row + .trust__row { margin-top: var(--s-2); }
.trust__row .chips { margin: 0; justify-content: flex-start; }
.trust__tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chip--plain { background: transparent; border-style: dashed; color: var(--muted); }
@media (max-width: 760px) {
  .trust__row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .trust__row .chips { justify-content: center; }
}

/* Several existing sections merged into one editable section keep their own spacing */
.op-block { margin-top: var(--s-7); }
@media (max-width: 640px) { .op-block { margin-top: var(--s-6); } }

/* ============================================================
   FOOTER — final rules (desktop layout first, stacks on small screens)
   ============================================================ */
footer.footer { margin-top: var(--s-4); padding: var(--s-6) 0 var(--s-4); background: var(--ap-bg-soft, #f5f6fa); border-top: 1px solid var(--line); }
footer.footer .footer__inner { display: grid; grid-template-columns: minmax(240px, 1.1fr) 3fr; gap: var(--s-6); max-width: 1120px; margin-inline: auto; align-items: start; }
footer.footer .footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
footer.footer .footer__brand .brand { margin: 0; font-size: 1.35rem; }
footer.footer .footer__tag { max-width: 34ch; margin: 0; line-height: 1.6; font-size: 0.9rem; color: var(--muted); }
footer.footer .footer__cta { margin-top: 0.25rem; padding: 0.6rem 1.15rem; font-size: 0.85rem; }
footer.footer .footer__mail { color: var(--muted); font-size: 0.875rem; text-decoration: none; }
footer.footer .footer__mail:hover { color: var(--blue); text-decoration: underline; }
footer.footer .footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
footer.footer .footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
footer.footer .footer__title { margin-bottom: 0.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
footer.footer .footer__col a { padding-block: 0.1rem; font-size: 0.9rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
footer.footer .footer__col a:hover { color: var(--blue); }
footer.footer .footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem 2rem; max-width: 1120px; margin: var(--s-6) auto 0; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
footer.footer .footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0; padding: 0; list-style: none; }
footer.footer .footer__legal a { color: var(--muted); text-decoration: none; }
footer.footer .footer__legal a:hover { color: var(--blue); }
@media (max-width: 900px) {
  footer.footer .footer__inner { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 760px) {
  footer.footer { padding-top: var(--s-6); }
  footer.footer .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
  footer.footer .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 340px) { footer.footer .footer__cols { grid-template-columns: 1fr; } }

/* Compact link cards (services lists on city and country pages): two per row on phones, title only */
@media (max-width: 640px) {
  .grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .grid--compact .glass { padding: 1rem; }
  .grid--compact .cap__desc { display: none; }
  .grid--compact .cap__icon { margin-bottom: 0.5rem; }
  .grid--compact .cap__title { font-size: 0.95rem; margin-bottom: 0; }
}

/* ============================================================
   BLOG PAGE — dynamic sections (Admin → Blog Posts)
   ============================================================ */
.op-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.op-filter__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.op-filter input[type="search"] { padding: 0.6rem 0.9rem; border: 1px solid var(--ap-line); border-radius: 980px; font: inherit; font-size: 0.875rem; min-width: 220px; background: #fff; }
.op-filter__count { text-align: center; color: var(--muted); font-size: 0.825rem; margin: 0.75rem 0 var(--s-3); }
.op-chip__n { margin-left: 0.2rem; font-weight: 500; opacity: 0.55; }
.op-card { text-decoration: none; color: inherit; display: block; }
.op-card__meta { margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.03em; color: var(--muted); }
.op-visual { overflow: hidden; border-radius: var(--r-md); }
.op-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.op-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-4); align-items: center; padding: var(--s-3); text-decoration: none; color: inherit; }
.op-featured__visual .article-visual { margin: 0; }
.op-featured__tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.op-featured__body h3 { margin: 0.4rem 0 0.6rem; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.op-featured__body p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.6; }
.op-featured__cta { font-weight: 600; font-size: 0.9rem; color: var(--blue); }
@media (max-width: 820px) { .op-featured { grid-template-columns: 1fr; } }
.op-popular { list-style: none; display: grid; gap: 0.75rem; max-width: 820px; margin: 0 auto; padding: 0; }
.op-popular__item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.7); text-decoration: none; color: inherit; transition: border-color 160ms var(--ease), transform 160ms var(--ease); }
.op-popular__item:hover { border-color: var(--blue); transform: translateY(-1px); }
.op-popular__n { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--blue); }
.op-popular__item strong { display: block; font-size: 1.02rem; line-height: 1.35; }
.op-popular__item small { color: var(--muted); font-size: 0.8rem; }
.op-newsletter { max-width: 620px; margin-inline: auto; text-align: center; padding: var(--s-4); border: 1px solid var(--ap-line); border-radius: 16px; background: var(--ap-bg-soft); }
.op-newsletter .kicker { justify-content: center; margin-bottom: 0.75rem; }
.op-newsletter h2 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.625rem); letter-spacing: -0.02em; }
.op-newsletter p { max-width: 48ch; margin: 0 auto 1.25rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.op-subscribe { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 420px; margin-inline: auto; }
.op-subscribe input[type="email"] { flex: 1; min-width: 200px; padding: 0.72rem 1rem; border: 1px solid var(--ap-line); border-radius: 980px; font: inherit; font-size: 0.925rem; background: #fff; }
.op-newsletter__msg { margin-top: 0.75rem; min-height: 1.2em; font-size: 0.825rem; color: var(--muted); }

/* Skip link for keyboard and screen-reader users */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 0.7rem 1.1rem; background: #fff; color: var(--ink); font-weight: 600; border-radius: 0 0 10px 10px; box-shadow: var(--shadow-md); }
.skip-link:focus { left: 1rem; }
main:focus { outline: none; }

/* Four-step and three-step rows: two per row on tablets even when the page sets its own column count */
@media (max-width: 820px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr !important; } }

/* ============================================================
   LAYOUT POLISH — final rules (they come last on purpose)
   One vertical rhythm, one heading alignment, one card grid,
   one set of page margins. Phone, tablet and desktop share them.
   ============================================================ */
:root {
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --gap: clamp(0.875rem, 2vw, 1.5rem);
  --sec-y: clamp(2.5rem, 5.5vw, 4.5rem);
}
body[data-template="post"], body[data-template="legal"] { --sec-y: clamp(1.5rem, 3.5vw, 2.5rem); }

/* Page margins: the same on every page, no double padding */
.container { width: min(1120px, calc(100% - 2 * var(--gutter))); padding-inline: 0; }
.nav .container, .nav__inner { padding-inline: 0; }

/* Vertical rhythm: each section owns the space below it, so gaps never double up */
main > section { padding-block: var(--sec-y); }
main > section + section:not([data-op-bg]) { padding-top: 0; }
main > section.hero { padding-top: clamp(1.75rem, 4.5vw, 3.25rem) !important; padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem) !important; }
main > section.hero + section { padding-top: 0; }
main > section:last-of-type { padding-bottom: var(--sec-y); }
footer.footer { margin-top: 0; }

/* Headings: centred everywhere, with a tidy gap before the content */
main .section-head { max-width: 760px; margin-inline: auto; margin-bottom: clamp(1.25rem, 3vw, 2.25rem); text-align: center; }
main .section-head p { margin-inline: auto; max-width: 62ch; }
main .section-head h2 { margin-bottom: 0.5rem; }
main .section-head .kicker { display: block; margin-bottom: 0.6rem; }

/* Blocks of reading text sit in a centred, comfortable column */
main .prose { max-width: 72ch; margin-inline: auto; }

/* Card grids: equal-height cards, last row centred, no lonely cards */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid > * { min-width: 0; margin: 0; }
.grid--2 > * { flex: 0 0 calc((100% - var(--gap)) / 2); }
.grid--3 > * { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); }
.grid--4 > * { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); }
.grid--3:has(> :nth-child(4):last-child) > * { flex-basis: calc((100% - 3 * var(--gap)) / 4); }
@media (max-width: 1000px) {
  .grid--3 > *, .grid--4 > *, .grid--3:has(> :nth-child(4):last-child) > * { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 640px) {
  .grid--2 > *, .grid--3 > *, .grid--4 > *, .grid--3:has(> :nth-child(4):last-child) > * { flex-basis: 100%; }
  .grid--compact > * { flex-basis: calc((100% - var(--gap)) / 2); }
  .glass, .feature-card { padding: 1.25rem; }
}

/* Locations page: a country card with its cities listed inside it */
.op-country { position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.op-country h3 a { color: inherit; text-decoration: none; }
.op-country h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.op-country .cap__desc { margin: 0; }
.op-country__cities { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin-top: auto; padding-top: var(--s-2); border-top: 1px solid var(--line); font-size: 0.85rem; }
.op-country__cities span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.op-country__cities a { position: relative; z-index: 1; font-weight: 600; color: var(--blue); text-decoration: none; }
.op-country__cities a:hover { text-decoration: underline; }

/* Phones: smaller number badges and tighter cards, so lists of cards do not run on forever */
@media (max-width: 640px) {
  .glass .cap__icon, .feature-card .cap__icon { width: 34px; height: 34px; margin-bottom: 0.6rem; font-size: 0.85rem; }
  .glass .cap__title { margin-bottom: 0.35rem; font-size: 1.02rem; }
  .glass .cap__desc { font-size: 0.9rem; line-height: 1.5; }
  .glass { padding: 1.1rem 1.15rem; }
}

/* Number tiles stay two across on phones */
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.75rem; }
  .stat { padding: 1rem; }
  .stat__value { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .stat__caption { font-size: 0.8rem; }
}

/* Step rows (3, 4, 5 or 6 steps): evenly spaced, last row centred, compact on phones */
.process { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.process > .step { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); min-width: 0; margin: 0; }
.process:has(> :nth-child(3):last-child) > .step { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
.process:has(> :nth-child(5):last-child) > .step { flex-basis: calc((100% - 4 * var(--gap)) / 5); }
.process:has(> :nth-child(6):last-child) > .step { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
@media (max-width: 900px) { .process > .step, .process:has(> :nth-child(n)) > .step { flex-basis: calc((100% - var(--gap)) / 2) !important; } }
@media (max-width: 560px) {
  .process > .step, .process:has(> :nth-child(n)) > .step { flex-basis: 100% !important; padding: 1rem 0.25rem; }
  .step__num { margin-bottom: 0.25rem; font-size: 0.85rem; }
  .step__title { margin-bottom: 0.3rem; font-size: 1.02rem; }
}

/* Phones: article cards and blocks line up with the text, picture boxes are shorter */
@media (max-width: 640px) {
  .op-card .article-visual, .op-featured .article-visual { aspect-ratio: 16 / 9 !important; }
  .op-card .article-visual__symbol, .op-featured .article-visual__symbol { font-size: 2.75rem !important; }
  .insight-takeaway, .insight-steps, .insight-stats, .insight-callout { margin-inline: 0 !important; max-width: none; }
}

/* Chip lists sit in the middle of the page like everything else */
main .chips { justify-content: center; }
