/* ═══════════════════════════════════════════════════════════════
   NASBOARD — v2 stylesheet (index.html, ar/index.html)

   Mobile first: every base rule is the phone layout, and min-width
   queries add columns on the way up. The artwork is all inline SVG
   driven by the tokens below, so light, dark and RTL come from the
   same markup. privacy.html still uses site.css.

   Direction: logical properties only (inline/block), so nb-rtl.css
   carries type and a few transforms, not a mirrored copy of layout.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Francy';
  src: url('../fonts/Francy.woff2') format('woff2'),
       url('../fonts/Francy.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:   #FBFCFD;
  --paper-2: #F0F5F8;
  --card:    #FFFFFF;
  --ink:     #031A33;
  --ink-2:   #46586C;
  --ink-3:   #5E6E80;
  --rule:      rgba(3, 26, 51, .12);
  --rule-soft: rgba(3, 26, 51, .07);

  --accent:      #00A8B1;
  --accent-hi:   #35CFD6;
  --accent-ink:  #007780;
  --accent-wash: #E2F5F6;
  --on-accent:   #031A33;
  --sand:        #F2C46D;
  --sand-deep:   #D99A3D;

  --navy:        #031A33;
  --navy-2:      #072643;
  --night-ink:   #EEF5FA;
  --night-ink-2: #9DB2C7;
  --night-rule:  rgba(255, 255, 255, .12);

  --danger:      #B3261E;
  --danger-wash: #FDECEA;

  /* artwork palette — scenes read these, so themes repaint them */
  --art-sky-a:   #CFEFF1;
  --art-sky-b:   #FFF4E0;
  --art-sun:     #F2C46D;
  --art-halo:    rgba(242, 196, 109, .28);
  --art-far:     #EED8AE;
  --art-ground:  #F4E4C4;
  --art-shade:   #D9A859;
  --art-lit:     #F0CB86;
  --art-line:    #031A33;
  --art-dusk-a:  #0B2E52;
  --art-dusk-b:  #1E5C78;
  --art-stone:   #E9DCC4;
  --art-stone-2: #CDB998;

  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --shadow-1: 0 1px 2px rgba(3, 26, 51, .05), 0 10px 30px -14px rgba(3, 26, 51, .22);
  --shadow-2: 0 2px 6px rgba(3, 26, 51, .06), 0 28px 60px -24px rgba(3, 26, 51, .35);

  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --nav-h: 64px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --sec-y: clamp(72px, 10vw, 136px);

  --logo-ink: var(--ink);
  --logo-accent: #00A8B1;
  --logo-mark-paint: url(#logo-grad);
  --logo-mark-a: #00A8B1;
  --logo-mark-b: #041A33;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper:   #04182C;
    --paper-2: #061F37;
    --card:    #0A2744;
    --ink:     #EEF4F8;
    --ink-2:   #A4B7CA;
    --ink-3:   #8BA0B5;
    --rule:      rgba(255, 255, 255, .12);
    --rule-soft: rgba(255, 255, 255, .07);
    --accent-ink:  #35CFD6;
    --accent-wash: #07303B;
    --danger:      #FF9A8F;
    --danger-wash: #3A1512;
    --art-sky-a:   #0C2E4E;
    --art-sky-b:   #2A4E66;
    --art-sun:     #F2C46D;
    --art-halo:    rgba(242, 196, 109, .16);
    --art-far:     #23445E;
    --art-ground:  #2C4A60;
    --art-shade:   #8C6A3A;
    --art-lit:     #C79A55;
    --art-line:    #EEF4F8;
    --art-dusk-a:  #04142A;
    --art-dusk-b:  #0F3C58;
    --art-stone:   #33536B;
    --art-stone-2: #284459;
    --logo-accent: #35CFD6;
    --logo-mark-paint: #EEF4F8;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper:   #04182C;
  --paper-2: #061F37;
  --card:    #0A2744;
  --ink:     #EEF4F8;
  --ink-2:   #A4B7CA;
  --ink-3:   #8BA0B5;
  --rule:      rgba(255, 255, 255, .12);
  --rule-soft: rgba(255, 255, 255, .07);
  --accent-ink:  #35CFD6;
  --accent-wash: #07303B;
  --danger:      #FF9A8F;
  --danger-wash: #3A1512;
  --art-sky-a:   #0C2E4E;
  --art-sky-b:   #2A4E66;
  --art-sun:     #F2C46D;
  --art-halo:    rgba(242, 196, 109, .16);
  --art-far:     #23445E;
  --art-ground:  #2C4A60;
  --art-shade:   #8C6A3A;
  --art-lit:     #C79A55;
  --art-line:    #EEF4F8;
  --art-dusk-a:  #04142A;
  --art-dusk-b:  #0F3C58;
  --art-stone:   #33536B;
  --art-stone-2: #284459;
  --logo-accent: #35CFD6;
  --logo-mark-paint: #EEF4F8;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.015em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.display {
  font-family: 'Francy', 'Outfit', sans-serif;
  font-weight: 400;
  letter-spacing: .012em;
  line-height: 1.02;
}
.dim { color: var(--ink-3); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.kicker i { font-size: 1.1rem; }

/* ── buttons ──────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  white-space: nowrap;
  font: inherit;
  font-weight: 500;
  font-size: .9375rem;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms var(--ease-out), background-color 180ms ease,
              border-color 180ms ease, color 180ms ease, box-shadow 220ms ease;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.1em; transition: transform 220ms var(--ease-out); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .875rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; border-radius: 14px; }

.btn-solid {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -12px rgba(0, 168, 177, .8);
}
/* light sweep across the button */
.btn-solid::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--night-ink);
  border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: #14BCC5; box-shadow: 0 16px 30px -12px rgba(0, 168, 177, .9); }
  .btn-solid:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease-out); }
  .btn:hover i.ph-arrow-right { transform: translateX(4px); }
  .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); }
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── masthead ─────────────────────────────────────────────── */

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo {
  direction: ltr;
  height: 24px;
  width: auto;
  aspect-ratio: 1028.72 / 217.82;
  display: block;
}

.masthead {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
  transition: background-color 300ms ease, border-color 300ms ease, transform 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.masthead.stuck {
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border-bottom-color: var(--rule);
}
/* hides on scroll down, returns on scroll up (phones get the screen back) */
.masthead.tuck { transform: translateY(-100%); }

/* nav: inline from 1000px, a drop-down sheet below that */
.flg { width: 20px; height: 13px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px var(--rule); overflow: hidden; }
.mainnav {
  position: fixed;
  inset-inline: 0;
  top: calc(var(--nav-h) + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px max(var(--gutter), env(safe-area-inset-left)) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 30px 50px -30px rgba(3, 26, 51, .35);
  max-height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.menu-open .mainnav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 220ms ease, transform 320ms var(--ease-out);
}
.menu-open .masthead { background: var(--paper); border-bottom-color: var(--rule); }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.nav-sheet-cta { margin-top: 18px; }
.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 260ms var(--ease-out);
}
.menu-btn { padding: 0; width: 42px; }
.burger { position: relative; width: 20px; height: 12px; display: block; }
.burger i {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 320ms var(--ease-out), top 320ms var(--ease-out);
}
.burger i:first-child { top: 0; }
.burger i:last-child { top: 10px; }
.menu-open .burger i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 5px; transform: rotate(-45deg); }

.mast-tools { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  font-size: .9375rem;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.icon-btn i { font-size: 19px; }
.icon-btn .lbl { display: none; }
.icon-btn:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { border-color: var(--rule); color: var(--ink); }
}
.icon-btn .ph-moon { display: none; }
:root[data-theme='dark'] .icon-btn .ph-moon { display: block; }
:root[data-theme='dark'] .icon-btn .ph-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-btn .ph-moon { display: block; }
  :root:not([data-theme='light']) .icon-btn .ph-sun { display: none; }
}
.mast-cta { display: none; }

@media (min-width: 480px) {
  .icon-btn .lbl { display: inline; }
  .logo { height: 26px; }
}
@media (min-width: 720px) { .mast-cta { display: inline-flex; margin-inline-start: 6px; } }
@media (min-width: 1100px) {
  .mainnav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-link { padding: 8px 11px; font-size: .9375rem; color: var(--ink-2); border: 0; gap: 8px; }
  .nav-link .flg { width: 18px; height: 12px; }
  .nav-sheet-cta, .menu-btn { display: none; }
  @media (hover: hover) and (pointer: fine) {
    .nav-link:hover { color: var(--ink); }
    .nav-link:hover::after { transform: scaleX(1); }
  }
}

/* ═══ HERO ════════════════════════════════════════════════════
   Light and centred: the copy, then the real product on a stage
   that flattens out of a tilt as you scroll (--p from nb.js). */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(36px, 7vw, 84px)) 0 clamp(64px, 8vw, 110px);
  overflow: clip;
  isolation: isolate;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mesh { position: absolute; border-radius: 50%; filter: blur(70px); }
.mesh.m1 { width: 46vmax; height: 46vmax; top: -22vmax; inset-inline-start: -14vmax; background: rgba(0, 168, 177, .22); }
.mesh.m2 { width: 40vmax; height: 40vmax; top: -12vmax; inset-inline-end: -16vmax; background: rgba(242, 196, 109, .26); }
.mesh.m3 { width: 50vmax; height: 30vmax; top: 34%; left: 50%; translate: -50% 0; background: rgba(53, 140, 214, .12); }
:root[data-theme='dark'] .mesh { opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .mesh { opacity: .55; } }
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 18%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 50% at 50% 18%, #000 10%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .mesh.m1 { animation: drift 16s ease-in-out infinite alternate; }
  .mesh.m2 { animation: drift 20s ease-in-out infinite alternate-reverse; }
  .hero-grid-lines { animation: gridpan 30s linear infinite; }
}
@keyframes drift { to { transform: translate(5vmax, 4vmax) scale(1.08); } }
@keyframes gridpan { to { background-position: 56px 56px, 56px 56px; } }

.hero-copy { display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent-ink);
  text-decoration: none;
  margin-bottom: 24px;
  transition: border-color 200ms ease, transform 300ms var(--ease-out);
}
.pill i { font-size: 14px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { border-color: var(--accent); }
  .pill:hover i { transform: translateX(3px); }
}
.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 4px;
  border: 1.5px solid var(--accent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse::after { animation: ping 2s var(--ease-out) infinite; }
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.6rem, 1rem + 7.4vw, 6rem);
  margin-bottom: 22px;
  color: var(--ink);
}
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.ln > span { display: inline-block; }
.hl {
  position: relative;
  font-style: normal;
  color: var(--accent-ink);
  white-space: nowrap;
}
:root[data-theme='dark'] .hl { color: var(--accent-hi); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hl { color: var(--accent-hi); } }
.hl::after {
  content: '';
  position: absolute;
  inset-inline: -.04em;
  bottom: -.02em;
  height: .14em;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 50 2 120 2 198 7' fill='none' stroke='%23F2C46D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  transform-origin: left center;
}
.stop {
  display: inline-block;
  width: .13em; height: .13em;
  background: var(--sand);
  border-radius: .02em;
  margin-inline-start: .04em;
}

.deck {
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
}
.deck b { color: var(--ink); font-weight: 500; }

.btn-outline {
  background: var(--card);
  color: var(--ink);
  border-color: var(--rule);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  width: 100%;
}
.hero-cta .btn { width: 100%; }
@media (min-width: 480px) {
  .hero-cta { flex-direction: row; justify-content: center; width: auto; }
  .hero-cta .btn { width: auto; }
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 26px;
  font-size: .875rem;
  color: var(--ink-2);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof i {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 11px;
}

/* ── the stage ── */
.stage {
  position: relative;
  max-width: 1080px;
  margin: clamp(48px, 7vw, 80px) auto 0;
  padding-bottom: 70px;
  text-align: start;
  perspective: 1600px;
  --p: 1;
}
.stage-frame {
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.94 + var(--p) * .06));
  box-shadow: 0 2px 6px rgba(3, 26, 51, .06), 0 50px 100px -40px rgba(3, 26, 51, .45);
}
.addr i { font-size: 11px; margin-inline-end: 4px; color: var(--accent-ink); vertical-align: -1px; }
@media (min-width: 720px) { .stage { padding-bottom: 0; } }

/* chips: white cards floating over the stage */
.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 20px 44px -18px rgba(3, 26, 51, .45);
  font-size: .75rem;
  line-height: 1.25;
  max-width: 62%;
  text-align: start;
  will-change: transform;
}
.chip-ico {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 17px;
}
.chip-ico.sand { background: #FDF0D6; color: #A86A12; }
.chip-txt { display: flex; flex-direction: column; min-width: 0; }
.chip-t { font-weight: 600; font-size: .8125rem; }
.chip-s { color: var(--ink-3); }
.chip-ok {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
}
.chip-bar {
  display: block;
  margin-top: 7px;
  width: 120px;
  max-width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--paper-2);
  overflow: hidden;
}
.chip-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  transform-origin: left;
}
.avatars { display: flex; flex: none; }
.avatars i {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 2px solid var(--card);
  background: var(--accent);
}
.avatars i + i { margin-inline-start: -8px; background: var(--sand); }
.avatars i:last-child { background: var(--navy-2); }

/* mini route map */
.chip-map {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 46%;
  max-width: 260px;
  padding: 12px 12px 6px;
  bottom: 0;
  inset-inline-start: -2%;
}
.chip-head { display: flex; align-items: baseline; justify-content: space-between; }
.chip-num { font-family: 'Francy', 'Outfit', sans-serif; font-size: 1.5rem; color: var(--accent-ink); line-height: 1; }
.route-map { width: 100%; height: auto; direction: ltr; overflow: visible; }
.land { color: color-mix(in srgb, var(--accent) 30%, transparent); }
.route-base { stroke: var(--rule); stroke-width: 3; }
.route-flow { stroke-width: 4.5; stroke-dasharray: 10 14; }
.node .ping { fill: none; stroke: var(--accent); stroke-width: 3; transform-box: fill-box; transform-origin: center; opacity: 0; }
.node .pin { fill: var(--card); stroke: var(--accent); stroke-width: 4; }
.node .pin-core { fill: var(--sand-deep); }
.city { fill: var(--ink); font: 600 26px 'Outfit', sans-serif; letter-spacing: .1em; }

.chip-a { top: -18px; inset-inline-end: -2%; }
.chip-b { display: none; }
.chip-c { display: none; }

@media (min-width: 720px) {
  .chip { font-size: .8125rem; padding: 12px 14px; }
  .chip-map { width: 250px; bottom: -6%; inset-inline-start: -4%; padding: 14px 14px 8px; }
  .chip-a { top: 12%; inset-inline-end: -4%; }
  .chip-b { display: flex; bottom: -5%; inset-inline-end: 8%; }
  .chip-c { display: flex; top: 26%; inset-inline-start: -5%; }
}

@media (prefers-reduced-motion: no-preference) {
  .route-flow { animation: flow 1.6s linear infinite; }
  .route-flow.f2 { animation-duration: 2s; }
  .route-flow.f3 { animation-duration: 2.4s; animation-direction: reverse; }
  .node .ping { animation: nodeping 2.8s var(--ease-out) infinite; }
  .node.n2 .ping { animation-delay: .9s; }
  .node.n3 .ping { animation-delay: 1.8s; }
  .chip-a { animation: bob 6s ease-in-out infinite; }
  .chip-b { animation: bob 7s ease-in-out -2s infinite; }
  .chip-c { animation: bob 6.5s ease-in-out -4s infinite; }
  .chip-map { animation: bob 8s ease-in-out -3s infinite; }
  .chip-bar span { animation: fillbar 3.4s var(--ease-in-out) infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes nodeping {
  0% { transform: scale(.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes fillbar {
  0% { transform: scaleX(0); }
  70%, 100% { transform: scaleX(1); }
}

/* ═══ TRUST STRIP ═════════════════════════════════════════════ */

.trust {
  border-block: 1px solid var(--rule);
  background: var(--card);
  overflow: hidden;
  padding: 18px 0;
  font-size: .9375rem;
  color: var(--ink-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.trust-track { display: flex; width: max-content; direction: ltr; }
.trust-run { display: flex; flex: none; }
.trust-run li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 28px;
  white-space: nowrap;
  border-inline-end: 1px solid var(--rule);
}
.trust-run i { font-size: 20px; color: var(--accent-ink); }
.flags { display: inline-flex; gap: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .trust-track { animation: marquee 44s linear infinite; }
}
@media (hover: hover) and (pointer: fine) { .trust:hover .trust-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══ SECTIONS ════════════════════════════════════════════════ */

.section { position: relative; padding-block: var(--sec-y); }
.tint { background: var(--paper-2); }

.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2, .split-copy h2, .problem-head h2, .faq-aside h2 {
  font-family: 'Francy', 'Outfit', sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  line-height: 1.04;
}
.sec-head p { margin-top: 16px; color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.125rem); max-width: 52ch; }

/* ═══ MARKETS ═════════════════════════════════════════════════ */

.markets { display: grid; gap: 22px; }
@media (min-width: 820px) { .markets { grid-template-columns: 1fr 1fr; gap: 28px; } }

.market {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 400ms var(--ease-out), box-shadow 400ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .market:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
}
.market-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.scene { width: 100%; height: 100%; }
.market-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
}
.market-body { padding: 24px clamp(20px, 3vw, 32px) 30px; }
.market-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.market-name h3 { font-family: 'Francy', 'Outfit', sans-serif; font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); }
.market-name .ar { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 1.375rem; color: var(--accent-ink); }
.market-body > p { color: var(--ink-2); margin-bottom: 20px; }
.facts { display: grid; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 12px; font-size: .9375rem; }
.facts i {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 17px;
}

/* scene: Egypt */
.scene .sky-a { stop-color: var(--art-sky-a); }
.scene .sky-b { stop-color: var(--art-sky-b); }
.sun-halo { fill: var(--art-halo); transform-box: fill-box; transform-origin: center; }
.sun-disc { fill: var(--art-sun); }
.birds path { stroke: var(--art-line); stroke-width: 1.8; opacity: .6; }
.dune-far { fill: var(--art-far); }
.pyr-shade { fill: var(--art-shade); }
.pyr-lit { fill: var(--art-lit); }
.ground { fill: var(--art-ground); }
.nile path { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 14 10; }
.nile .n2 { stroke-width: 2; opacity: .55; }
.palm .trunk { stroke: var(--art-line); stroke-width: 4; stroke-linecap: round; }
.palm .fronds path { fill: var(--accent-ink); }
.palm .fronds { transform-box: fill-box; transform-origin: 50% 100%; }
.flagpin rect { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.flagpin .core { fill: var(--sand); stroke: none; }
.flagpin { transform-box: fill-box; }

.draw-lines path { stroke: var(--art-line); stroke-width: 1.6; opacity: .55; }
.draw-lines .thin { stroke-width: 1; opacity: .25; stroke-dasharray: 3 5; }

/* scene: Syria */
.scene .dusk-a { stop-color: var(--art-dusk-a); }
.scene .dusk-b { stop-color: var(--art-dusk-b); }
.twinkle circle { fill: #fff; }
.moon { fill: var(--sand); }
/* the Damascus Sword at Umayyad Square, Qasioun behind */
.qasioun { fill: rgba(3, 26, 51, .5); }
.q-lights circle { fill: var(--sand); }
.skyline > * { fill: rgba(3, 26, 51, .78); }
.win rect { fill: var(--sand); opacity: .85; }
.pool { fill: rgba(53, 207, 214, .28); stroke: var(--accent-hi); stroke-width: 1.5; }
.jets path { stroke: #CFF4F5; stroke-width: 2.2; stroke-dasharray: 5 6; opacity: .9; }
.jets .j2 { stroke-width: 1.6; opacity: .7; }
.dsw-stone { fill: #ECE6DA; }
.dsw-shade { fill: #CFC6B6; }
.dsw-glow { stroke: #FCE7B8; stroke-width: 1.2; opacity: .7; }
.dsw-glass { opacity: .95; }
.ground-sy { fill: var(--navy-2); }
.paving path { stroke: rgba(255, 255, 255, .08); stroke-width: 1.5; stroke-dasharray: 18 10; }
.scene-sy .draw-lines path { stroke: #fff; opacity: .5; }
.jasmine ellipse { fill: #fff; }
.jasmine .j-core { fill: var(--sand); }
.jasmine .spin { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .sun-halo { animation: breathe 5s ease-in-out infinite; }
  .birds { animation: birds 14s ease-in-out infinite alternate; }
  .nile path { animation: flow 3s linear infinite; }
  .nile .n2 { animation-duration: 4.5s; }
  .palm .fronds { animation: sway 4s ease-in-out infinite; }
  .flagpin { animation: hop 3s var(--ease-out) infinite; }
  .twinkle circle { animation: twinkle 3s ease-in-out infinite; }
  .twinkle circle:nth-child(2n) { animation-delay: -1s; }
  .twinkle circle:nth-child(3n) { animation-delay: -2s; }
  .q-lights circle { animation: twinkle 2.6s ease-in-out infinite; }
  .q-lights circle:nth-child(2n) { animation-delay: -1.3s; }
  .win rect:nth-child(3n) { animation: twinkle 4s ease-in-out infinite; }
  .win rect:nth-child(4n) { animation: twinkle 5s ease-in-out -2s infinite; }
  .jets path { animation: flow 1.4s linear infinite reverse; }
  .jets .j2 { animation-duration: 1s; }
  .dsw-glass, .dsw-strip { animation: glassglow 4s ease-in-out infinite; }
  .jasmine .spin { animation: spin 20s linear infinite; }
  .j2 .spin { animation-duration: 14s; animation-direction: reverse; }
}
@keyframes breathe { 50% { transform: scale(1.12); } }
@keyframes birds { to { transform: translate(60px, -10px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
@keyframes twinkle { 50% { opacity: .2; } }
@keyframes glassglow { 50% { opacity: .72; } }

/* ═══ SERVICES ════════════════════════════════════════════════ */

.svcs { display: grid; gap: 14px; }
/* 2 cols: flagship full width, the odd last card stretches.
   3 cols: flagship takes a 2×2 block, five cards wrap it exactly. */
@media (min-width: 640px) {
  .svcs { grid-template-columns: 1fr 1fr; gap: 18px; }
  .svc-hero, .svc:last-child { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .svcs { grid-template-columns: repeat(3, 1fr); }
  .svc:last-child { grid-column: auto; }
  .svc-hero { grid-column: span 2; grid-row: span 2; padding: 36px; }
  .svc-hero p { font-size: 1.0625rem; }
  .svc-hero .glyph { width: 76px; height: 76px; }
  .svc-deco { width: 320px; inset-inline-end: -30px; bottom: -50px; }
}

.svc {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform 400ms var(--ease-out), border-color 300ms ease, box-shadow 400ms ease;
}
.svc h3 { font-size: 1.1875rem; margin: 18px 0 8px; }
.svc p { color: var(--ink-2); font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow-1); }
}

.svc-hero {
  background: var(--navy);
  color: var(--night-ink);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.svc-hero p { color: var(--night-ink-2); max-width: 36ch; position: relative; z-index: 1; }
.svc-hero h3 { font-family: 'Francy', 'Outfit', sans-serif; font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); position: relative; z-index: 1; }
.flag {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.svc-deco {
  position: absolute;
  inset-inline-end: -40px;
  bottom: -40px;
  width: 220px;
  opacity: .9;
}
.svc-deco rect { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.svc-deco .on { fill: rgba(0, 168, 177, .25); stroke: var(--accent-hi); }
@media (prefers-reduced-motion: no-preference) {
  .svc-deco rect { transform-box: fill-box; transform-origin: center; animation: tile 6s var(--ease-in-out) infinite; }
  .svc-deco rect:nth-child(2) { animation-delay: -1.5s; }
  .svc-deco rect:nth-child(3) { animation-delay: -3s; }
  .svc-deco rect:nth-child(4) { animation-delay: -4.5s; }
}
@keyframes tile { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(90deg) scale(.9); } }

/* the service glyphs */
.glyph { width: 60px; height: 60px; overflow: visible; }
.g-fill { fill: var(--accent); }
.g-paper { fill: var(--accent-wash); stroke: var(--ink); stroke-width: 2; }
.g-stroke { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.g-stroke-thin { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.g-tick, .g-sign { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.g-sign { stroke: var(--accent-ink); stroke-width: 2.4; }
.g-link { stroke: var(--sand-deep); stroke-width: 2; stroke-dasharray: 3 3; }
.g-coin { fill: var(--sand); stroke: var(--ink); stroke-width: 2; }
.g-knob { fill: var(--ink); }
.g-hole { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.svc-hero .glyph .g-fill { fill: var(--accent); }
.svc-hero .g-stroke { stroke: #fff; }
.g-shield .g-fill { opacity: .9; }

.glyph .bar, .glyph .buoy, .glyph .g-arrow, .glyph .front, .glyph .p2, .glyph .g-coin {
  transform-box: fill-box;
  transition: transform 500ms var(--ease-spring);
}
.glyph .bar { transform-origin: bottom; }
.glyph .buoy { transform-origin: 32px 32px; transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .rv .g-tick, .rv .g-sign { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .rv.shown .g-tick, .rv.shown .g-sign { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-out) 400ms; }
  .rv .glyph .bar { transform: scaleY(.2); }
  .rv.shown .glyph .bar { transform: none; transition: transform 800ms var(--ease-spring) 300ms; }
  .rv.shown .glyph .b2 { transition-delay: 420ms; }
  .rv.shown .glyph .b3 { transition-delay: 540ms; }
  .g-coin { animation: coin 3s var(--ease-out) infinite; }
  .g-arrow { animation: nudge 2.4s var(--ease-in-out) infinite; }
}
@keyframes coin { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (hover: hover) and (pointer: fine) {
  .svc:hover .buoy { transform: rotate(90deg); }
  .svc:hover .front { transform: translate(-3px, 3px) rotate(-4deg); }
  .svc:hover .p2 { transform: translateY(-3px); }
  .svc:hover .bar { transform: scaleY(1.08); }
}

/* ═══ ON THE GROUND ═══════════════════════════════════════════ */

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); }
  .split-rev .split-media { order: 2; }
}
.split-copy h2 { margin-bottom: 18px; }
.lede { color: var(--ink-2); font-size: clamp(1rem, .96rem + .3vw, 1.125rem); max-width: 46ch; }

.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; }
.ticks i { color: var(--accent); font-size: 22px; flex: none; margin-top: 1px; }

.collage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
}
.collage-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c-mass { fill: var(--accent-wash); }
.c-squares rect { fill: var(--accent); }
.c-squares rect:nth-child(2) { fill: var(--sand); }
.c-squares rect:nth-child(3) { fill: none; stroke: var(--ink); stroke-width: 2; }
.c-ring { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 8; }
.photo { position: absolute; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.p-main { inset: 12% 4% 22% 14%; }
.p-inset { width: 40%; aspect-ratio: 1; inset-inline-start: 0; bottom: 4%; border: 5px solid var(--paper); }
.float-tag {
  position: absolute;
  inset-inline-end: 0;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  font-size: .8125rem;
  line-height: 1.25;
}
.float-tag .ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--accent-hi);
  font-size: 18px;
}
.float-tag .t { display: block; font-weight: 600; }
.float-tag .s { display: block; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .c-squares rect { transform-box: fill-box; transform-origin: center; animation: bob 5s ease-in-out infinite; }
  .c-squares rect:nth-child(2) { animation-delay: -1.6s; }
  .c-squares rect:nth-child(3) { animation: spin 16s linear infinite; }
  .float-tag { animation: bob 6s ease-in-out -1s infinite; }
}

.stats {
  margin: clamp(56px, 8vw, 96px) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.stat {
  padding: 22px 20px;
  border-inline-end: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat:nth-child(2n) { border-inline-end: 0; }
.stat:nth-child(n+3) { border-bottom: 0; }
.stat dt { font-size: .8125rem; color: var(--ink-3); order: 2; }
.stat dd {
  margin: 0 0 4px;
  font-family: 'Francy', 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat dd small { font-size: .5em; color: var(--accent); margin-inline-start: 2px; }
.stat { display: flex; flex-direction: column-reverse; }
@media (min-width: 820px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 30px 28px; border-bottom: 0; }
  .stat:nth-child(2n) { border-inline-end: 1px solid var(--rule); }
  .stat:last-child { border-inline-end: 0; }
}

/* ═══ THE PROBLEM (night) ═════════════════════════════════════ */

.night {
  background: var(--navy);
  color: var(--night-ink);
  overflow: clip;
}
:root[data-theme='dark'] .night { background: #021226; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .night { background: #021226; } }
.night .kicker { color: var(--accent-hi); }
.night .dim { color: #6F87A0; }
.problem { display: grid; gap: 44px; }
.problem-head p { color: var(--night-ink-2); margin-top: 16px; font-size: 1.0625rem; }
@media (min-width: 1000px) {
  .problem { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
  .problem-head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

.knot { width: 100%; max-width: 360px; margin-top: 34px; overflow: visible; }
.knot path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.knot-mess { stroke: #F2836B; stroke-width: 2.5; opacity: calc(1 - var(--p, 0) * 1.3); stroke-dashoffset: var(--p, 0); }
.knot-clean { stroke: var(--accent-hi); stroke-width: 3.5; stroke-dashoffset: calc(1 - var(--p, 0) * 1.4); }
.knot-end { fill: var(--sand); opacity: clamp(0, calc(var(--p, 0) * 2.5 - 1.2), 1); }

.probs { display: grid; gap: 14px; }
@media (min-width: 640px) { .probs { grid-template-columns: 1fr 1fr; } }
.prob {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--night-rule);
  overflow: hidden;
  transition: background-color 300ms ease, border-color 300ms ease, transform 400ms var(--ease-out);
}
.prob::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-out);
}
.prob.shown::before { transform: scaleX(1); transition-delay: calc(var(--wait, 0ms) + 300ms); }
@media (hover: hover) and (pointer: fine) {
  .prob:hover { background: rgba(255, 255, 255, .07); border-color: rgba(53, 207, 214, .4); transform: translateY(-4px); }
}
.prob-n {
  position: absolute;
  top: 12px;
  inset-inline-end: 18px;
  font-family: 'Francy', 'Outfit', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .2);
}
.prob-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(0, 168, 177, .16);
  color: var(--accent-hi);
  font-size: 22px;
  margin-bottom: 18px;
}
.prob h3 { font-size: 1.125rem; margin-bottom: 10px; padding-inline-end: 52px; }
.prob p { color: var(--night-ink-2); font-size: .9375rem; }

/* ═══ THE ANSWER ══════════════════════════════════════════════ */

.frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
}
.frame-bar, .lt-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding-inline: 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.dots { display: flex; gap: 5px; direction: ltr; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.dots i:first-child { background: #F2836B; }
.dots i:nth-child(2) { background: var(--sand); }
.dots i:last-child { background: var(--accent); }
.addr {
  flex: 1;
  max-width: 220px;
  margin-inline: auto;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--card);
  font-size: .6875rem;
  color: var(--ink-3);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot { width: 100%; height: auto; }
.chip-d { bottom: 2%; inset-inline-end: 0; max-width: 80%; }
@media (prefers-reduced-motion: no-preference) { .chip-d { animation: bob 6s ease-in-out infinite; } }

.gcards { display: grid; gap: 12px; margin-top: 28px; }
.gcard {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid var(--rule);
  background: var(--card);
  transition: border-color 300ms ease, transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gcard:hover { border-color: var(--accent); transform: translateX(4px); }
  [dir='rtl'] .gcard:hover { transform: translateX(-4px); }
}
.gico {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--accent-hi);
  font-size: 21px;
}
.gcard h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.gcard p { color: var(--ink-2); font-size: .9375rem; }

/* ═══ HOW IT WORKS ════════════════════════════════════════════ */

.seq { position: relative; --p: 0; }
.seq-path { position: absolute; pointer-events: none; overflow: visible; }
.seq-path path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.seq-track { stroke: var(--rule); stroke-width: 2; stroke-dasharray: 4 6; }
.seq-fill { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
/* phones: vertical rail down the start edge, through the step nodes */
.seq-h { display: none; }
.seq-v { top: 30px; bottom: 30px; inset-inline-start: 11px; width: 40px; height: calc(100% - 60px); }

.steps { position: relative; display: grid; gap: 34px; }
.step { position: relative; padding-inline-start: 82px; }
.step-node {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
  transition: background-color 400ms ease, border-color 400ms ease, transform 500ms var(--ease-spring);
}
.step-node svg { width: 34px; height: 34px; }
.s-fill { fill: var(--accent-wash); stroke: var(--ink); stroke-width: 2.5; }
.s-stroke { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.s-stroke-box { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.s-accent { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.s-accent-box { fill: var(--sand); stroke: var(--ink); stroke-width: 2.5; }
.step.lit .step-node { background: var(--navy); border-color: var(--navy); transform: scale(1.06); }
.step.lit .s-fill { fill: var(--accent); stroke: #fff; }
.step.lit .s-stroke, .step.lit .s-stroke-box { stroke: #fff; }
.step-n {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .9375rem; max-width: 34ch; }

@media (min-width: 860px) {
  .seq-v { display: none; }
  .seq-h { display: block; top: 0; inset-inline: 0; width: 100%; height: 62px; }
  [dir='rtl'] .seq-h { transform: scaleX(-1); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { padding-inline-start: 0; padding-top: 92px; text-align: center; }
  .step-node { inset-inline-start: 50%; translate: -50% 0; }
  [dir='rtl'] .step-node { translate: 50% 0; }
  .step p { margin-inline: auto; }
}

.mid-cta {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
}
.mid-art { width: 64px; height: 64px; }
.mid-art rect { fill: var(--accent); }
.mid-art .b { fill: var(--navy); }
.mid-art .c { fill: none; stroke: var(--sand-deep); stroke-width: 4; }
:root[data-theme='dark'] .mid-art .b { fill: var(--sand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .mid-art .b { fill: var(--sand); } }
@media (prefers-reduced-motion: no-preference) {
  .mid-art rect { transform-box: fill-box; transform-origin: center; animation: tile 5s var(--ease-in-out) infinite; }
  .mid-art .b { animation-delay: -2.5s; }
}
.mid-cta p { color: var(--ink-2); }
.mid-cta b { color: var(--ink); font-weight: 600; }
.mid-cta .btn { width: 100%; }
@media (min-width: 720px) {
  .mid-cta { grid-template-columns: auto 1fr auto; gap: 26px; padding: 26px 30px; }
  .mid-cta .btn { width: auto; }
}

/* ═══ WHAT WE COVER ═══════════════════════════════════════════ */

.cover-list { display: grid; gap: 10px; }
@media (min-width: 560px) { .cover-list { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1000px) { .cover-list { grid-template-columns: repeat(3, 1fr); gap: 18px; } .citem { padding: 22px; } }
.citem {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--rule);
  background: var(--card);
}
.cico {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 20px;
  transition: transform 400ms var(--ease-spring), background-color 300ms ease, color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .citem:hover .cico { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: var(--navy); }
}
.citem h3 { font-size: 1rem; margin-bottom: 3px; }
.citem p { color: var(--ink-2); font-size: .875rem; line-height: 1.5; }


/* ═══ SERVICE COLOUR BLOCKS ═══════════════════════════════════ */

.svc-sand { background: #FCF1DC; border-color: transparent; }
.svc-sky  { background: #E4F1FA; border-color: transparent; }
.svc-ink  { background: var(--accent); border-color: transparent; color: var(--navy); }
.svc-ink p { color: rgba(3, 26, 51, .78); }
.svc-ink .g-fill { fill: var(--navy); }
.svc-ink .g-paper { fill: #fff; stroke: var(--navy); }
.svc-ink .g-hole { fill: var(--accent); stroke: var(--navy); }
:root[data-theme='dark'] .svc-sand { background: #2A2618; }
:root[data-theme='dark'] .svc-sky { background: #0B2D46; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .svc-sand { background: #2A2618; }
  :root:not([data-theme='light']) .svc-sky { background: #0B2D46; }
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 0;
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}
.more i { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .more:hover { text-decoration: underline; text-underline-offset: 4px; }
  .more:hover i { transform: translateX(4px); }
  [dir='rtl'] .more:hover i { transform: scaleX(-1) translateX(4px); }
}

/* ═══ PLATFORM TOUR ═══════════════════════════════════════════ */

.sec-center { margin-inline: auto; text-align: center; }
.sec-center p { margin-inline: auto; }
.tour { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .tour { grid-template-columns: .82fr 1.18fr; gap: 56px; } }

.tour-tabs { display: grid; gap: 8px; }
.tour-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 16px 18px 18px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.tour-tab[aria-selected='true'] { background: var(--card); border-color: var(--rule); box-shadow: var(--shadow-1); }
@media (hover: hover) and (pointer: fine) { .tour-tab:hover { background: var(--card); } }
.tt-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 20px;
  transition: background-color 300ms ease, color 300ms ease;
}
.tour-tab[aria-selected='true'] .tt-ico { background: var(--navy); color: var(--accent-hi); }
.tt-txt { display: grid; padding-top: 8px; }
.tt-t { font-weight: 600; font-size: 1.0625rem; }
.tt-s {
  color: var(--ink-2);
  font-size: .9375rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 450ms var(--ease-out), opacity 300ms ease, margin 300ms ease;
}
.tour-tab[aria-selected='true'] .tt-s { max-height: 8em; opacity: 1; margin-top: 4px; }
.tt-bar { position: absolute; inset-inline: 18px; bottom: 0; height: 3px; border-radius: 3px; background: var(--rule-soft); opacity: 0; }
.tt-bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
[dir='rtl'] .tt-bar span { transform-origin: right; }
.tour.auto .tour-tab[aria-selected='true'] .tt-bar { opacity: 1; }
.tour.auto .tour-tab[aria-selected='true'] .tt-bar span { animation: ttbar 7s linear forwards; }
.tour.paused-tour .tt-bar span { animation-play-state: paused !important; }
@keyframes ttbar { to { transform: scaleX(1); } }

.tour-view { position: relative; padding: 4% 2% 8%; }
.tour-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tour-art .t1 { fill: var(--accent-wash); }
.tour-art .t2 { fill: #FCF1DC; }
.tour-art .t3 { fill: none; stroke: var(--accent); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .tour-art rect { transform-box: fill-box; transform-origin: center; animation: bob 6s ease-in-out infinite; }
  .tour-art .t2 { animation-delay: -2s; }
  .tour-art .t3 { animation: spin 18s linear infinite; }
  .tour-panel:not([hidden]) { animation: panelIn 600ms var(--ease-out); }
}
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.tour-panels { position: relative; background: var(--card); }
.tour-view .chip-d { bottom: 0; inset-inline-end: 0; }

/* ═══ FAQ ═════════════════════════════════════════════════════ */

.faq { display: grid; gap: 36px; }
@media (min-width: 940px) {
  .faq { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--nav-h) + 40px); }
}
.faq-help {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--rule);
}
.bubble-art { width: 72px; margin-bottom: 14px; overflow: visible; }
.bubble-art .b1 { fill: var(--accent); }
.bubble-art .b2 { fill: var(--navy); }
.bubble-art .dot { fill: #fff; }
:root[data-theme='dark'] .bubble-art .b2 { fill: var(--sand); }
:root[data-theme='dark'] .bubble-art .dot { fill: var(--navy); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .bubble-art .b2 { fill: var(--sand); }
  :root:not([data-theme='light']) .bubble-art .dot { fill: var(--navy); }
}
@media (prefers-reduced-motion: no-preference) {
  .bubble-art .dot { animation: typing 1.4s ease-in-out infinite; }
  .bubble-art .d2 { animation-delay: .2s; }
  .bubble-art .d3 { animation-delay: .4s; }
}
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.faq-help p { color: var(--ink-2); margin-bottom: 10px; }
.faq-help a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 500; text-decoration: none; word-break: break-all; }

.faq-list { display: grid; gap: 10px; }
.qa {
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--rule);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.qa[open] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--shadow-1); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 1.03rem;
  line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-ico {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-wash);
  transition: background-color 300ms ease, transform 400ms var(--ease-spring);
}
.qa-ico::before, .qa-ico::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--accent-ink);
  transition: transform 400ms var(--ease-out);
}
.qa-ico::after { transform: rotate(90deg); }
.qa[open] .qa-ico { background: var(--accent); transform: rotate(180deg); }
.qa[open] .qa-ico::before, .qa[open] .qa-ico::after { background: var(--navy); }
.qa[open] .qa-ico::after { transform: rotate(0deg); }
.qa-body { display: grid; grid-template-rows: 1fr; }
.qa-body > div { overflow: hidden; }
.qa-body p { padding: 0 20px 20px; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa-body p { animation: qaIn 450ms var(--ease-out); }
}
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } }

/* ═══ SIGNUP ══════════════════════════════════════════════════ */

.signup-sec { padding-top: var(--sec-y); }
.cta-card {
  display: grid;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
@media (min-width: 980px) { .cta-card { grid-template-columns: .9fr 1.1fr; } }

.cta-side {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  background: var(--navy);
  color: var(--night-ink);
  overflow: hidden;
  isolation: isolate;
}
.cta-art {
  position: absolute;
  z-index: -1;
  width: 72%;
  inset-inline-end: -18%;
  bottom: -18%;
  overflow: visible;
}
.cta-art .mark-fill { fill: rgba(0, 168, 177, .14); }
.cta-art .mark-line { fill: none; stroke: var(--accent-hi); stroke-width: 2.5; stroke-dasharray: .12 .88; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .cta-art .mark-line { animation: trace 7s linear infinite; }
}
@keyframes trace { to { stroke-dashoffset: -1; } }
.cta-kicker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-side h2 { font-family: 'Francy', 'Outfit', sans-serif; font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.08; margin-bottom: 14px; }
.cta-side > p { color: var(--night-ink-2); max-width: 40ch; }
.cta-side .ticks i { color: var(--accent-hi); }
.cta-foot { margin-top: 26px; font-size: .9375rem; color: var(--night-ink-2); }
.cta-foot a { color: #fff; text-underline-offset: 3px; word-break: break-all; }

.signup { position: relative; padding: clamp(24px, 5vw, 52px); }
.signup-head { margin-bottom: 24px; }
.signup-head h2 { font-size: 1.375rem; margin-bottom: 6px; }
.signup-head p { color: var(--ink-2); }

.signup-body { display: grid; gap: 16px; transition: opacity 180ms ease, filter 180ms ease; }
.signup-body.swapping { opacity: 0; filter: blur(4px); }
.row2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 500; }
.ifield { position: relative; min-width: 0; }
.ifield > i {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-3);
  font-size: 18px;
  pointer-events: none;
  transition: color 160ms ease;
}
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  padding-inline-start: 42px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* iOS will not zoom on focus at 16px */
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}
select.input {
  padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2300A8B1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 14px center;
  cursor: pointer;
}
[dir='rtl'] select.input { background-position: left 14px center; }
.input::placeholder { color: var(--ink-3); opacity: .7; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); background: var(--card); }
.ifield:focus-within > i { color: var(--accent); }

.tel { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 8px; }
#i-code { padding-inline-start: 12px; font-size: 15px; }

.note { font-size: .8125rem; color: var(--ink-3); }
.error { display: none; align-items: center; gap: 6px; font-size: .8125rem; color: var(--danger); }
.field.invalid .error { display: flex; }
.field.invalid .input { border-color: var(--danger); background: var(--danger-wash); }
.field.invalid .note { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .field.invalid .ifield { animation: shake 360ms var(--ease-out); }
}
@keyframes shake { 25% { translate: -5px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-wash);
  color: var(--danger);
  font-size: .9375rem;
}
.submit .btn { width: 100%; }
.btn .busy { display: none; }
.btn[data-busy] .idle { display: none; }
.btn[data-busy] .busy { display: inline; }
.btn[data-busy] i { display: none; }
.btn[data-busy]::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  animation: spin 800ms linear infinite;
}
.consent { font-size: .8125rem; color: var(--ink-3); }
.consent a { color: var(--accent-ink); }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.switcher { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.switcher button {
  border: 0;
  background: none;
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.done { display: none; text-align: center; padding: 20px 0; }
.signup.finished .signup-head,
.signup.finished .signup-body,
.signup.finished .switcher { display: none; }
.signup.finished .done { display: block; }
.done .tick { width: 76px; height: 76px; margin: 0 auto 20px; }
.done .tick svg { width: 100%; height: 100%; }
.done .tick circle { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.done .tick path { fill: none; stroke: var(--accent-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .signup.finished .done { animation: qaIn 500ms var(--ease-out); }
  .signup.finished .tick circle { animation: draw 700ms var(--ease-out) both; }
  .signup.finished .tick path { animation: draw 500ms var(--ease-out) 500ms both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.done h2 { font-family: 'Francy', 'Outfit', sans-serif; font-weight: 400; font-size: 2rem; margin-bottom: 8px; }
.done > p { color: var(--ink-2); margin-bottom: 22px; }
.done ol { display: grid; gap: 10px; text-align: start; max-width: 380px; margin-inline: auto; }
.done li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }
.done li span:first-child { font-weight: 600; color: var(--accent-ink); font-size: .8125rem; }

/* ═══ CLOSE ═══════════════════════════════════════════════════ */

.close {
  position: relative;
  margin-top: var(--sec-y);
  padding-block: clamp(80px, 12vw, 150px);
  background: var(--navy);
  color: var(--night-ink);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.close-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.close-tiles rect { fill: rgba(0, 168, 177, .2); }
.close-tiles .h { fill: none; stroke: rgba(242, 196, 109, .5); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .close-tiles rect { transform-box: fill-box; transform-origin: center; animation: tile 7s var(--ease-in-out) infinite; }
  .close-tiles rect:nth-child(2) { animation-delay: -2s; }
  .close-tiles rect:nth-child(3) { animation-delay: -4s; }
  .close-tiles rect:nth-child(4) { animation-delay: -5.5s; }
}
.close-in { display: flex; flex-direction: column; align-items: center; }
.close-mark { width: 64px; height: 64px; fill: var(--accent); margin-bottom: 24px; }
@media (prefers-reduced-motion: no-preference) { .close-mark { animation: hop 4s var(--ease-out) infinite; } }
.nas { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 1.25rem; color: var(--sand); margin-bottom: 10px; }
.close h2 {
  font-family: 'Francy', 'Outfit', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 4vw, 4rem);
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: 32px;
}

/* ═══ FOOTER ══════════════════════════════════════════════════ */

.foot {
  background: #021226;
  color: var(--night-ink-2);
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
  --logo-ink: #FFFFFF;
  --logo-accent: #35CFD6;
  --logo-mark-paint: #FFFFFF;
}
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-about { margin: 18px 0 20px; max-width: 38ch; font-size: .9375rem; }
.foot h3 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 600; }
.foot ul { display: grid; gap: 8px; font-size: .9375rem; }
.foot a { text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: #fff; } }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--night-rule);
  font-size: 19px;
  transition: border-color 160ms ease, color 160ms ease, transform 300ms var(--ease-spring);
}
@media (hover: hover) and (pointer: fine) { .socials a:hover { border-color: var(--accent); color: var(--accent-hi); transform: translateY(-3px); } }
.foot-base {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--night-rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .8125rem;
}


/* ═══ COUNTRY PAGES ═══════════════════════════════════════════
   /employer-of-record/egypt/ and /syria/. Same tokens, same motion;
   these are the pieces only a guide page needs. */

.c-hero {
  position: relative;
  padding: calc(var(--nav-h) + 20px) 0 clamp(56px, 8vw, 96px);
  overflow: clip;
  isolation: isolate;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--ink-3); margin-bottom: clamp(24px, 4vw, 44px); }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; opacity: .5; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.c-hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1000px) { .c-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.c-hero h1 { font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5rem); margin-bottom: 20px; }
.c-hero .deck { max-width: 44ch; }
.c-hero .hero-cta { justify-content: flex-start; }
.c-hero .kicker .flg { width: 22px; height: 15px; }
.checked { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; font-size: .8125rem; color: var(--ink-3); max-width: 46ch; }
.checked i { color: var(--accent-ink); font-size: 16px; margin-top: 1px; }

.c-hero-art { position: relative; padding: 18px 0 30px; }
.c-scene { border-radius: var(--r-lg); box-shadow: var(--shadow-2); border: 1px solid var(--rule-soft); }
.c-chip-a { top: 0; inset-inline-end: -2%; }
.c-chip-b { bottom: 0; inset-inline-start: -2%; }
@media (prefers-reduced-motion: no-preference) {
  .c-chip-a { animation: bob 6s ease-in-out infinite; }
  .c-chip-b { animation: bob 7s ease-in-out -2s infinite; }
}

.glance-sec { padding-top: 0; }
.glance {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}
.glance > div { padding: 18px 18px 20px; border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); }
.glance > div:nth-child(2n) { border-inline-end: 0; }
.glance > div:nth-last-child(-n+2) { border-bottom: 0; }
.glance dt { font-size: .8125rem; color: var(--ink-3); margin-bottom: 4px; }
.glance dd { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.35; }
@media (min-width: 900px) {
  .glance { grid-template-columns: repeat(4, 1fr); }
  .glance > div { padding: 24px; }
  .glance > div:nth-child(2n) { border-inline-end: 1px solid var(--rule); }
  .glance > div:nth-child(4n) { border-inline-end: 0; }
  .glance > div:nth-last-child(-n+4) { border-bottom: 0; }
}

.prose h2 { margin-bottom: 18px; }
.prose p { color: var(--ink-2); font-size: 1.0625rem; max-width: 56ch; }
.prose p + p { margin-top: 14px; }
.prose .btn { margin-top: 26px; }

.mini-steps { display: grid; gap: 12px; counter-reset: none; }
.mini-steps li { display: flex; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--rule); }
.ms-n {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--accent-hi);
  font-weight: 600;
}
.mini-steps h3 { font-size: 1.0625rem; margin-bottom: 3px; }
.mini-steps p { color: var(--ink-2); font-size: .9375rem; }

/* tables scroll sideways on phones instead of squashing */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); }
.tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; }
.tbl caption { text-align: start; padding: 16px 20px 4px; font-weight: 600; }
.tbl th, .tbl td { padding: 14px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.tbl thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--paper-2); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font-weight: 600; }
.tbl td { color: var(--ink-2); }
.tbl td b { color: var(--ink); font-weight: 600; }
.tbl-tight { min-width: 0; }
.tbl-tight th, .tbl-tight td { padding: 10px 20px; }
.tbl-compare .us { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--ink); font-weight: 500; }
.tbl-compare thead .us { background: var(--navy); color: #fff; }
.fine { margin-top: 14px; font-size: .8125rem; color: var(--ink-3); max-width: 70ch; }

.guide-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 18px;
}
.guide-tabs::-webkit-scrollbar { display: none; }
.gtab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 500;
  font-size: .9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 250ms ease, color 250ms ease;
}
.gtab i { font-size: 18px; }
.gtab[aria-selected='true'] { background: var(--navy); color: #fff; }
.gtab[aria-selected='true'] i { color: var(--accent-hi); }
@media (hover: hover) and (pointer: fine) { .gtab:not([aria-selected='true']):hover { background: var(--paper-2); color: var(--ink); } }
@media (prefers-reduced-motion: no-preference) { .gpanel:not([hidden]) { animation: panelIn 500ms var(--ease-out); } }
.gpanel .tbl-wrap { margin-top: 14px; }

.facts-grid { display: grid; gap: 12px; }
.local-intro { max-width: 72ch; margin-bottom: 24px; color: var(--ink-2); }
.section-action { margin-top: 24px; }
/* Keep all guide content available when JavaScript is disabled. */
html:not(.js) .guide-tabs { display: none; }
html:not(.js) .gpanel[hidden] { display: block; margin-top: 16px; }
@media (min-width: 640px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--rule); }
.fact h3 { font-size: 1rem; margin-bottom: 6px; }
.fact p { color: var(--ink-2); font-size: .9375rem; }
.fact b { color: var(--ink); font-weight: 600; }

.cost { padding: clamp(22px, 4vw, 34px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-2); }
.cost-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.cost-row span { color: var(--ink-2); }
.cost-row small { display: block; font-size: .8125rem; color: var(--ink-3); }
.cost-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-row.total { border-bottom: 0; padding-top: 18px; }
.cost-row.total span { color: var(--ink); font-weight: 600; }
.cost-row.total b { font-family: 'Francy', 'Outfit', sans-serif; font-weight: 400; font-size: 1.75rem; color: var(--accent-ink); }
.cost-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 8px; background: var(--paper-2); }
.cost-bar span { width: var(--w); background: var(--accent); transform-origin: left; }
.cost-bar span + span { background: var(--sand); }
@media (prefers-reduced-motion: no-preference) {
  .js .rv .cost-bar span { transform: scaleX(0); }
  .js .rv.shown .cost-bar span { transform: none; transition: transform 1200ms var(--ease-out) 400ms; }
  .js .rv.shown .cost-bar span + span { transition-delay: 1100ms; }
}

.night .sec-head p { color: var(--night-ink-2); }
.timeline { display: grid; gap: 14px; position: relative; }
.timeline li { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--night-rule); }
.tl-date { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--sand); }
.timeline h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.timeline p { color: var(--night-ink-2); font-size: .9375rem; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.still { margin-top: 22px; padding: 24px; border-radius: var(--r); border: 1px solid rgba(242, 196, 109, .4); background: rgba(242, 196, 109, .07); }
.still h3 { display: flex; gap: 8px; align-items: center; font-size: 1.0625rem; margin-bottom: 12px; color: var(--sand); }
.still ul { display: grid; gap: 6px; margin-bottom: 14px; padding-inline-start: 20px; list-style: disc; color: var(--night-ink); }
.still p { color: var(--night-ink-2); font-size: .9375rem; max-width: 80ch; }

.money { display: grid; gap: 12px; }
@media (min-width: 640px) { .money { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .money { grid-template-columns: repeat(4, 1fr); } }
.fico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-wash); color: var(--accent-ink); font-size: 21px; margin-bottom: 14px; }

.next-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .next-grid { grid-template-columns: 1.3fr 1fr; } }
.next-cta {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--r-lg);
  background: var(--navy);
  color: var(--night-ink);
  overflow: hidden;
  isolation: isolate;
}
.next-cta .cta-art { width: 46%; inset-inline-end: -10%; bottom: -24%; }
.next-cta h2 { font-family: 'Francy', 'Outfit', sans-serif; font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 12px; }
.next-cta p { color: var(--night-ink-2); max-width: 40ch; margin-bottom: 24px; }
.next-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: transform 400ms var(--ease-out), box-shadow 400ms ease, border-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .next-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent); } }
.flg.big { width: 42px; height: 28px; border-radius: 5px; margin-bottom: 18px; }
.next-card .kicker { margin-bottom: 8px; }
.next-card h3 { font-size: 1.375rem; margin-bottom: 8px; }
.next-card p { color: var(--ink-2); }
.next-card .more { margin-top: auto; padding-top: 18px; }
.nav-link[aria-current='page'] { color: var(--accent-ink); }

/* ═══ MOBILE DOCK ═════════════════════════════════════════════ */

.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border-top: 1px solid var(--rule);
  transform: translateY(110%);
  transition: transform 420ms var(--ease-out);
}
.dock .btn { width: 100%; }
.dock.up { transform: none; }
@media (min-width: 720px) { .dock { display: none; } }

/* ═══ MOTION: reveals ═════════════════════════════════════════
   The hidden state exists only under .js and only when motion is
   welcome. nb.js adds .shown via IntersectionObserver, with a timed
   failsafe so nothing can stay hidden. */

@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: var(--wait, 0ms);
  }
  .js .rv.shown { opacity: 1; transform: none; }

  .js .rv-scale {
    opacity: 0;
    transform: scale(.94);
    transition: opacity 1000ms var(--ease-out), transform 1200ms var(--ease-out);
    transition-delay: var(--wait, 0ms);
  }
  .js .rv-scale.shown { opacity: 1; transform: none; }

  .js .lines .ln > span { transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: var(--wait, 0ms); }
  .js .lines.shown .ln > span { transform: none; }
  .js .lines .hl::after { transform: scaleX(0); transition: transform 800ms var(--ease-out) 900ms; }
  .js .lines.shown .hl::after { transform: scaleX(1); }
  .js .lines .stop { transform: scale(0); transition: transform 500ms var(--ease-spring) 1100ms; }
  .js .lines.shown .stop { transform: none; }

  /* scene line art draws in */
  .js .rv .draw-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .rv .draw-lines .thin { stroke-dasharray: 1; }
  .js .rv.shown .draw-lines path { stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms var(--ease-out) 300ms; }
  .js .rv .pyr polygon, .js .rv .skyline, .js .rv .fountain { opacity: 0; transform: translateY(14px); transform-box: fill-box; }
  .js .rv .sword-g { opacity: 0; transform: translateY(40px); }
  .js .rv.shown .pyr polygon, .js .rv.shown .skyline, .js .rv.shown .fountain { opacity: 1; transform: none; transition: opacity 700ms ease 900ms, transform 900ms var(--ease-out) 900ms; }
  .js .rv.shown .sword-g { opacity: 1; transform: none; transition: opacity 600ms ease 600ms, transform 1100ms var(--ease-spring) 600ms; }

  /* hero stage: routes draw, nodes and chips arrive after the frame */
  .js .stage .route-base { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
  .js .stage.shown .route-base { stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--ease-out) 1200ms; }
  .js .stage .chip { opacity: 0; scale: .9; }
  .js .stage.shown .chip { opacity: 1; scale: 1; transition: opacity 600ms ease, scale 700ms var(--ease-spring); }
  .js .stage.shown .chip-map { transition-delay: 700ms; }
  .js .stage.shown .chip-a { transition-delay: 1000ms; }
  .js .stage.shown .chip-c { transition-delay: 1250ms; }
  .js .stage.shown .chip-b { transition-delay: 1500ms; }
}

/* sections offscreen: stop every loop so phones are not burning
   battery animating things nobody can see */
.paused, .paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .knot-mess { opacity: 0; }
  .knot-clean { stroke-dashoffset: 0; }
  .knot-end { opacity: 1; }
  .seq-fill { stroke-dashoffset: 0; }
}

@media print {
  .masthead, .dock, .marquee, .hero-art, .scroll-cue { display: none; }
  .hero { background: none; color: #000; padding-top: 0; }
}
