/* =====================================================================
   Codeator — site styles
   Palette: Ishtar-Gate lapis glaze + the 2009 logo's white cube and blue
   rings, with one glaze-gold accent. Type: Thmanyah Sans throughout, the
   same Arabic face as sanarise.com.om.
   ===================================================================== */

/* Thmanyah Sans — the Sanarise network's Arabic typeface (self-hosted, free for
   commercial use). It carries full Latin coverage, so it sets the whole page. */
@font-face { font-family: "Thmanyah Sans"; src: url("/assets/fonts/thmanyah-sans-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/assets/fonts/thmanyah-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/assets/fonts/thmanyah-sans-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("/assets/fonts/thmanyah-sans-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0f173a;
  --ink-2: #3c4569;
  --ink-3: #6a7293;
  --stone: #eceff5;
  --stone-2: #e2e7f0;
  --paper: #f7f8fb;
  --line: #cfd6e5;

  --lapis-950: #09123a;
  --lapis-900: #0e1b52;
  --lapis-800: #142672;
  --lapis-700: #1b3190;
  --lapis-500: #3553d4;
  --lapis-400: #4a6cf0;
  --lapis-300: #93a6ea;
  --lapis-100: #dde4f8;

  --gold: #e3a82b;
  --gold-deep: #a8740c;
  --gold-soft: #f7e2ad;

  --clay: #c4895a;
  --clay-deep: #93582f;
  --clay-light: #e3b88f;

  --f-display: "Thmanyah Sans", "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif;
  --f-body: var(--f-display);
  --f-ui: var(--f-display);

  --t-xs: 13px;
  --t-sm: 15px;
  --t-base: 18px;
  --t-md: clamp(18px, 1.35vw, 20px);
  --t-lg: clamp(21px, 1.8vw, 24px);
  --t-xl: clamp(30px, 3.6vw, 48px);
  --t-2xl: clamp(40px, 5.6vw, 76px);

  --gutter: clamp(18px, 4vw, 44px);
  --sec-pad: clamp(76px, 9vw, 132px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.85;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--lapis-500); text-underline-offset: .25em; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.32;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--lapis-950); padding: 8px 14px;
  font-family: var(--f-ui); border-radius: 4px; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- small shared pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-ui); font-weight: 500; font-size: var(--t-sm);
  color: var(--lapis-700);
  margin-bottom: 18px;
}
.eyebrow.on-dark { color: var(--gold-soft); }
.cubelet {
  width: 15px; height: 15px; flex: none; display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28 50 50 12 28z' fill='%235d78e6'/%3E%3Cpath d='M12 28 50 50 50 94 12 72z' fill='%233553d4'/%3E%3Cpath d='M88 28 50 50 50 94 88 72z' fill='%231b3190'/%3E%3C/svg%3E") center/contain no-repeat;
}
.on-dark .cubelet, .eyebrow.on-dark .cubelet {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28 50 50 12 28z' fill='%23f7e2ad'/%3E%3Cpath d='M12 28 50 50 50 94 12 72z' fill='%23e3a82b'/%3E%3Cpath d='M88 28 50 50 50 94 88 72z' fill='%23a8740c'/%3E%3C/svg%3E");
}
.body-lg { font-size: var(--t-md); color: var(--ink-2); max-width: 38em; }
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2, .split-copy h2 { font-size: var(--t-xl); margin-bottom: 20px; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-ui); font-weight: 500; font-size: 16px; line-height: 1.2;
  padding: 15px 24px; border-radius: 4px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-gold {
  background: var(--gold); color: var(--lapis-950);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(90,55,0,.25), 0 6px 18px -8px rgba(227,168,43,.7);
}
.btn-gold:hover { background: #ecb53d; }
.btn-lapis {
  background: var(--lapis-700); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -3px 0 rgba(0,0,0,.28), 0 8px 20px -10px rgba(27,49,144,.8);
}
.btn-lapis:hover { background: var(--lapis-500); }
.btn-line { color: #fff; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(201,211,242,.45); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--gold-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color .35s, box-shadow .35s, padding .35s;
  padding-block: 18px;
}
.site-header.scrolled {
  background: rgba(9,18,58,.96);
  box-shadow: 0 1px 0 rgba(227,168,43,.35);
  padding-block: 10px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.brand-mark { width: 42px; height: 42px; --mk-ring: var(--lapis-400); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-word { font-family: var(--f-ui); font-weight: 700; font-size: 24px; line-height: 1; }
.nav-main { margin-inline-start: auto; }
.nav-main > ul { list-style: none; display: flex; gap: 4px; }
.nav-main a {
  display: block; padding: 8px 12px; border-radius: 4px;
  font-family: var(--f-ui); font-size: 15px; color: #dfe5f8; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-main a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-main a[aria-current="page"] { color: var(--gold-soft); }
.nav-toggle { display: none; }

/* ---------- Solutions dropdown ---------- */
.nav-main .has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-inline-start: -6px; padding: 0;
  background: transparent; border: 0; border-radius: 4px; cursor: pointer;
  color: #dfe5f8; transition: color .2s, background-color .2s, transform .3s var(--ease);
}
.sub-toggle svg { width: 11px; height: 11px; display: block; }
.sub-toggle:hover { color: #fff; background: rgba(255,255,255,.07); }
.has-sub:hover .sub-toggle, .sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.submenu {
  list-style: none;
  position: absolute; top: calc(100% + 10px); inset-inline-start: -10px; z-index: 5;
  list-style: none; min-width: 268px; padding: 8px; margin: 0;
  background: var(--lapis-950); border-radius: 4px;
  box-shadow: 0 3px 0 var(--gold) inset, 0 22px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(147,166,234,.18);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.submenu::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .submenu[data-open="true"] {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu li { display: block; }
.submenu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 3px;
  font-size: 14.5px; white-space: nowrap;
}
.submenu a::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--lapis-400); transform: rotate(45deg); transition: background-color .2s, transform .3s var(--ease); }
.submenu a:hover::before, .submenu a[aria-current="page"]::before { background: var(--gold); transform: rotate(225deg); }
.submenu a[aria-current="page"] { color: var(--gold-soft); }
.nav-main a.is-branch { color: var(--gold-soft); }

@media (max-width: 920px) {
  .nav-main .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; position: static; }
  .nav-main .has-sub > a { width: auto; }
  .sub-toggle { position: static; margin: 0; width: 42px; height: 42px; }
  .submenu { grid-column: 1 / -1; }
  .submenu {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; padding: 0 0 8px;
    display: none;
  }
  .submenu[data-open="true"] { display: block; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub:hover .submenu[data-open="true"], .has-sub:focus-within .submenu[data-open="true"] { display: block; }
  .submenu a { padding: 10px 6px 10px 18px; border-bottom: 1px solid rgba(201,211,242,.08); font-size: 15px; }
  [dir="rtl"] .submenu a { padding: 10px 18px 10px 6px; }
}

/* ---------- glazed-brick canvas sections ---------- */
[data-glaze] { position: relative; isolation: isolate; background: var(--lapis-900); color: #fff; }
.glaze { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
[data-crenel] .glaze { top: -30px; height: calc(100% + 30px); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(120px, 14vw, 170px); overflow: hidden; border-bottom: 3px solid var(--gold); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(9,18,58,.78) 0%, rgba(9,18,58,.42) 48%, rgba(9,18,58,.08) 100%),
    linear-gradient(to bottom, rgba(9,18,58,.55), rgba(9,18,58,0) 30%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 { font-size: var(--t-2xl); color: #fff; margin-bottom: 24px; line-height: 1.25; }
.hero .lead { font-size: var(--t-md); color: #c9d3f2; max-width: 34em; margin-bottom: 34px; }
.hero-copy > * { animation: rise-in .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 44px; border-top: 1px solid rgba(201,211,242,.2);
}
.hero-facts li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 0 0; padding-inline-end: 28px; margin-inline-end: 28px;
  border-inline-end: 1px solid rgba(201,211,242,.2);
}
.hero-facts li:last-child { border: 0; margin: 0; padding-inline-end: 0; }
.hero-facts b { font-family: var(--f-ui); font-weight: 500; font-size: 22px; color: var(--gold-soft); line-height: 1.3; }
.hero-facts span { font-family: var(--f-ui); font-size: var(--t-xs); color: #aab6de; font-weight: 300; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 580px; margin-inline: auto;
  --px: 0; --py: 0;
}
.hero-cube {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  transform: translate(calc(var(--px) * -10px), calc(var(--py) * -10px));
  transition: transform .6s var(--ease);
}
.hero-tags {
  position: absolute; inset: 0; pointer-events: none;
  transform: translate(calc(var(--px) * 12px), calc(var(--py) * 12px));
  transition: transform .6s var(--ease);
}
.tag {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: auto; cursor: default;
  font-family: var(--f-ui); font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  color: var(--ink); background: var(--paper);
  padding: 8px 12px; border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 24px -10px rgba(0,0,0,.6);
  display: inline-flex; align-items: center; gap: 7px;
  animation: tag-in .7s var(--ease) both;
}
.tag::before { content: ""; width: 7px; height: 7px; background: var(--lapis-500); transform: rotate(45deg); flex: none; }
.tag.gold { background: var(--gold); }
.tag.gold::before { background: var(--lapis-900); }
.tag small { font-weight: 300; color: var(--ink-3); font-size: 12px; }

.hb .f-top { fill: #fbfcff; }
.hb .f-left { fill: #d3dbf0; }
.hb .f-right { fill: #a9b7df; }
.hb-drop { animation: drop 1s cubic-bezier(.25,.9,.3,1.12) both; animation-delay: var(--d); }
.hb-lift { transition: transform .45s var(--ease); }
.hb.lift .hb-lift, .hb:hover .hb-lift { transform: translateY(-16px); }
.hb.low.lift .hb-lift, .hb.low:hover .hb-lift { transform: translateY(16px); }
.hb:hover .f-top { fill: #fff; }
.hero-cube .hr circle { fill: none; stroke: var(--lapis-400); stroke-width: .11; stroke-linecap: round; }
.hero-cube .hr .ring-c { stroke-dasharray: 76 24; animation: draw-c 1.4s var(--ease) 1.5s both; }
.hero-cube .hr .ring-o { stroke-dasharray: 100 0; animation: draw-o 1.4s var(--ease) 1.75s both; }
.hero-cube .orbit { fill: none; stroke: rgba(201,211,242,.4); stroke-width: 1.4; stroke-dasharray: 2 9; animation: flow-orbit 6s linear infinite; }
.hero-cube .orbit.front { stroke: rgba(247,226,173,.55); }
.hero-cube .lead-line { stroke: rgba(247,226,173,.55); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; animation: fade-in .6s ease 2s both; }
.hero-cube .lead-dot { fill: var(--gold); animation: fade-in .6s ease 2s both; }

.hero-float { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fcube {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28 88 72 50 94 12 72 12 28Z M12 28 50 50 88 28 M50 50 50 94' fill='none' stroke='%23c9d3f2' stroke-opacity='.45' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: bob var(--t) ease-in-out infinite alternate;
}

/* ---------- stone / paper sections ---------- */
.sec { position: relative; padding-block: var(--sec-pad); }
.stone { background: var(--stone); }
.paper { background: var(--paper); }
.stone::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='32.33'%3E%3Cpath d='M0 0 56 32.33M56 0 0 32.33' stroke='%23d3d9e6' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 10%, transparent 75%);
}
.sec > .wrap { position: relative; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.split-visual { min-width: 0; }

/* ---------- challenge: scattered → assembled ---------- */
.ledger { list-style: none; margin-block: 30px 0; border-top: 1px solid var(--line); }
.ledger li {
  position: relative; padding: 13px 0; padding-inline-start: 30px;
  border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink-2); line-height: 1.75;
}
.ledger li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 1.35em; width: 9px; height: 9px;
  border: 1.5px solid var(--gold-deep); transform: rotate(45deg);
}

.scatter-svg { width: 100%; height: auto; overflow: visible; display: block; }
.sb { transform-box: view-box; transform-origin: 0 0; transition: transform 1.1s var(--ease); transition-delay: var(--dl, 0ms); }
.sb-bob { animation: bob-s var(--bt, 5s) ease-in-out infinite alternate; }
.sb polygon { stroke: rgba(14,27,82,.14); stroke-width: 1; stroke-linejoin: round; transition: fill .9s ease; transition-delay: var(--dl, 0ms); }
.sb .f-top { fill: var(--ct); }
.sb .f-left { fill: var(--cl); }
.sb .f-right { fill: var(--cr); }
.sb text { transition: opacity .4s ease; font-family: var(--f-ui); text-anchor: middle; }
.sb .nm { font-size: 15px; font-weight: 500; fill: var(--ink); }
.sb .sy { font-size: 12.5px; font-weight: 300; fill: var(--ink-3); }
.scatter-svg.is-assembled .sb-bob { animation: none; }
.scatter-svg.is-assembled .sb .f-top { fill: #ffffff; }
.scatter-svg.is-assembled .sb .f-left { fill: #d3dbf0; }
.scatter-svg.is-assembled .sb .f-right { fill: #a9b7df; }
.scatter-svg.is-assembled .sb text { opacity: 0; }
.s-stage { transform-box: view-box; transform-origin: 0 0; transition: transform 1.1s var(--ease); }
.scatter-svg.is-assembled .s-stage { transform: scale(1.32); }
.scatter-svg .s-rings, .scatter-svg .s-cap { opacity: 0; transition: opacity .6s ease; }
.scatter-svg.is-assembled .s-rings, .scatter-svg.is-assembled .s-cap { opacity: 1; transition-delay: 1.2s; }
.s-rings circle { fill: none; stroke: var(--lapis-500); stroke-width: .11; stroke-linecap: round; }
.s-rings .ring-c { stroke-dasharray: 76 24; }
.s-cap text { font-family: var(--f-ui); text-anchor: middle; }
.s-cap .c1 { font-size: 19px; font-weight: 700; fill: var(--lapis-700); }
.s-cap .c2 { font-size: 14px; fill: var(--ink-2); }
.s-shadow { fill: rgba(14,27,82,.08); transition: opacity .8s; opacity: 0; }
.scatter-svg.is-assembled .s-shadow { opacity: 1; }

/* ---------- rivers ---------- */
.river-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.river-svg { display: block; width: 100%; min-width: 640px; height: auto; overflow: visible; }
.rv-flow path { stroke: rgba(255,255,255,.9); stroke-width: 2.4; stroke-dasharray: 3 16; animation: flow 2.6s linear infinite; }
.river-svg text { font-family: var(--f-ui); font-size: 19px; font-weight: 500; fill: var(--ink); direction: rtl; }
.river-svg text.sub { font-size: 14px; font-weight: 300; fill: var(--ink-3); }
.rv-src rect { fill: var(--lapis-500); }
.rv-src text { text-anchor: start; }
.rv-stn circle { fill: var(--paper); stroke: var(--lapis-700); stroke-width: 3; }
.rv-stn circle.core { fill: var(--gold); stroke: none; }
.rv-stn text { text-anchor: middle; font-size: 16px; fill: var(--lapis-800); }
.rv-mouth circle { fill: var(--gold); stroke: var(--lapis-900); stroke-width: 3; }
.rv-mouth .halo { fill: none; stroke: var(--gold); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: halo 2.8s ease-out infinite; }
.rv-mouth text { text-anchor: middle; font-family: var(--f-display); font-size: 21px; font-weight: 700; fill: var(--lapis-900); }
.rv-mouth text.sub { font-family: var(--f-ui); font-weight: 300; font-size: 14px; }

.caps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3.5vw, 56px); margin-top: clamp(40px, 5vw, 64px);
}
.caps > div { padding-block: 22px 26px; border-top: 1px solid var(--line); }
.caps dt {
  font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; color: var(--lapis-900);
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.caps dt::before { content: ""; width: 10px; height: 10px; background: var(--lapis-500); transform: rotate(45deg); flex: none; transition: transform .4s var(--ease), background-color .3s; }
.caps > div:hover dt::before { transform: rotate(225deg) scale(1.25); background: var(--gold); }
.caps dd { color: var(--ink-2); font-size: 17px; line-height: 1.8; }

/* ---------- apps: glazed brick wall ---------- */
.wall { padding-bottom: 0; border-bottom: 3px solid var(--gold); }
.wall .head h2 { color: #fff; }
.wall .body-lg { color: #c9d3f2; }
.bricks {
  list-style: none;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px;
  padding-bottom: var(--sec-pad);
}
.brick, .half { grid-column: span 2; }
.half { grid-column: span 1; border-radius: 3px; background: linear-gradient(180deg, #25409e, #182c7c); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -4px 0 rgba(0,0,0,.25); }
.brick {
  position: relative; overflow: hidden;
  min-height: 118px; padding: 18px 20px 20px; border-radius: 3px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, hsl(226 60% calc(40% + var(--v, 0%))), hsl(228 64% calc(29% + var(--v, 0%))));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -5px 0 rgba(0,0,0,.28), 0 2px 0 rgba(0,0,0,.25);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.brick:nth-child(3n) { --v: 3%; }
.brick:nth-child(4n+1) { --v: -3%; }
.brick:nth-child(5n+2) { --v: 5%; }
.brick b { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: #fff; line-height: 1.35; }
.brick span { font-family: var(--f-body); font-size: 15px; line-height: 1.7; color: #cbd5f5; }
.brick::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(120%); transition: transform .9s var(--ease);
}
.brick:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -5px 0 rgba(0,0,0,.28), 0 14px 26px -12px rgba(0,0,0,.7); }
.brick:hover::after { transform: translateX(-120%); }
.brick.gold { background: linear-gradient(180deg, #f0bb45, #cf9119); }
.brick.gold b { color: var(--lapis-950); }
.brick.gold span { color: #4a3208; }

/* ---------- iraq: dinar + dollar rings ---------- */
.rings-list { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.rings-list li {
  position: relative; padding-inline-start: 40px; font-size: 17px; line-height: 1.8; color: var(--ink-2);
}
.rings-list li::before, .rings-list li::after {
  content: ""; position: absolute; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--lapis-500);
}
.rings-list li::before { inset-inline-start: 0; }
.rings-list li::after { inset-inline-start: 10px; border-color: var(--gold); }
.rings-list b { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: 18px; }
.coins { width: 100%; height: auto; display: block; overflow: visible; }
.coin .rim { fill: none; stroke-width: 14; }
.coin-usd .rim, .rim-over { stroke: var(--gold); }
.coin-iqd .rim { stroke: var(--lapis-500); }
.rim-over { fill: none; stroke-width: 14; }
.coin .ticks line { stroke-width: 2; stroke-linecap: round; }
.coin-usd .ticks line { stroke: rgba(168,116,12,.5); }
.coin-iqd .ticks line { stroke: rgba(53,83,212,.45); }
.coins text { text-anchor: middle; }
.coins .cur { font-family: var(--f-ui); font-weight: 700; font-size: 30px; fill: var(--ink); letter-spacing: .04em; }
.coins .cur-ar { font-family: var(--f-body); font-size: 18px; fill: var(--ink-2); }
.coins .swap { font-family: var(--f-ui); font-size: 26px; fill: var(--lapis-700); }
.coins .lens-t { font-family: var(--f-ui); font-size: 14px; fill: var(--ink-2); }

/* ---------- legacy ---------- */
.legacy-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.timeline { list-style: none; display: flex; align-items: flex-start; gap: 0; }
.tl-node { flex: 0 0 auto; width: clamp(150px, 16vw, 200px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.tl-mark { width: 124px; height: 124px; }
.tl-photo { height: auto; aspect-ratio: 384 / 367; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 24px -12px rgba(14,27,82,.55); transform: rotate(-4deg); transition: transform .5s var(--ease); }
.tl-node.old:hover .tl-photo { transform: rotate(0) scale(1.04); }
.tl-node.new .tl-mark { --mk-top: #ffffff; --mk-left: #d3dbf0; --mk-right: #a9b7df; --mk-ring: var(--lapis-500); filter: drop-shadow(0 12px 16px rgba(14,27,82,.22)); }
.legacy.in-view .tl-node.new .tl-mark { animation: pop 1s var(--ease) .6s both; }
.tl-year { font-family: var(--f-ui); font-weight: 700; font-size: 30px; color: var(--lapis-900); line-height: 1; }
.tl-node p { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.tl-span {
  flex: 1 1 auto; position: relative; align-self: stretch; min-width: 60px;
  display: flex; align-items: flex-start; justify-content: center;
}
.tl-span::before {
  content: ""; position: absolute; inset-inline: 6px; top: 58px; height: 2px;
  background: repeating-linear-gradient(to left, var(--lapis-300) 0 8px, transparent 8px 14px);
}
.tl-span span {
  position: relative; margin-top: 44px; padding: 3px 12px; border-radius: 3px;
  background: var(--paper); font-family: var(--f-ui); font-size: 14px; color: var(--lapis-700);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tablet { display: flex; flex-direction: column; gap: 18px; }
.tablet-svg { width: 100%; max-width: 330px; height: auto; display: block; overflow: visible; }
.tablet figcaption { font-size: 16px; line-height: 1.85; color: var(--ink-2); max-width: 30em; padding-inline-start: 16px; border-inline-start: 2px solid var(--clay); }
.tablet-svg .clay { fill: url(#clay-grad); }
.tablet-svg .edge { fill: none; stroke: var(--clay-deep); stroke-opacity: .5; stroke-width: 2; }
.tablet-svg .rule { stroke: var(--clay-deep); stroke-opacity: .35; stroke-width: 1.4; }
.tablet-svg .imp { fill: #8a5028; fill-opacity: .55; }
.tablet-svg .imp-hi { fill: #f0caa2; fill-opacity: .55; }
.tablet-svg .tail { fill: none; stroke: #8a5028; stroke-opacity: .5; stroke-width: 2.2; stroke-linecap: round; }
.legacy.in-view .tablet-svg .mark { animation: press .5s var(--ease) both; animation-delay: calc(var(--k) * 45ms + 300ms); }
.tablet-svg .mark { transform-box: fill-box; transform-origin: center; }

.network {
  display: flex; align-items: center; gap: 22px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 30px; border-top: 1px solid var(--line);
}
.net-rings { width: 84px; flex: none; }
.net-rings circle { fill: none; stroke-width: 4; }
.net-rings circle:first-child { stroke: var(--gold); }
.net-rings circle:last-child { stroke: var(--lapis-500); }
.network p { font-size: 17px; line-height: 1.9; color: var(--ink-2); max-width: 52em; }

/* ---------- method: ziggurat ---------- */
.zig { list-style: none; display: flex; flex-direction: column-reverse; align-items: center; }
.tier {
  --w: calc(100% - var(--i) * 11%);
  width: var(--w); min-width: min(100%, 520px);
  display: flex; align-items: center; gap: 22px;
  padding: 20px clamp(20px, 3vw, 36px);
  color: #fff; position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 25px, rgba(0,0,0,.16) 25px 27px),
    var(--tc);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.18);
}
.tier:nth-child(1) { --tc: var(--lapis-950); }
.tier:nth-child(2) { --tc: var(--lapis-900); }
.tier:nth-child(3) { --tc: var(--lapis-800); }
.tier:nth-child(4) { --tc: var(--lapis-700); }
.tier:nth-child(5) { --tc: linear-gradient(180deg, #efb944, #d2961f); color: var(--lapis-950); }
.tier:nth-child(5) p { color: #3b2806; }
.tier .t-num {
  flex: none; font-family: var(--f-ui); font-weight: 300; font-size: 40px; line-height: 1;
  width: 46px; text-align: center; opacity: .85;
}
.tier h3 { font-size: 21px; font-weight: 700; margin-bottom: 2px; }
.tier p { font-size: 16px; line-height: 1.75; color: #c9d3f2; }
.method.in-view .tier { animation: tier-rise .8s var(--ease) both; animation-delay: calc(var(--i) * 130ms); }

/* ---------- FAQ ---------- */
.faq-split { align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.faq-split .split-copy { position: sticky; top: 110px; }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.5;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i {
  flex: none; width: 22px; height: 22px; position: relative;
  border: 2px solid var(--lapis-500); transform: rotate(45deg); transition: transform .45s var(--ease), background-color .3s;
}
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--lapis-500);
  transform: translate(-50%, -50%) rotate(-45deg); transition: transform .45s var(--ease), background-color .3s;
}
.qa summary i::after { transform: translate(-50%, -50%) rotate(45deg); }
.qa[open] summary i { transform: rotate(225deg); background: var(--lapis-500); }
.qa[open] summary i::before, .qa[open] summary i::after { background: #fff; }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.qa summary:hover { color: var(--lapis-700); }
.qa p { padding-bottom: 24px; color: var(--ink-2); font-size: 17px; max-width: 40em; }
.qa[open] p { animation: rise-in .5s var(--ease) both; }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(80px, 9vw, 120px); overflow: visible; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to left, rgba(9,18,58,.72), rgba(9,18,58,.2));
}
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta h2 { font-size: var(--t-xl); color: #fff; margin-bottom: 18px; }
.cta .body-lg { color: #c9d3f2; margin-bottom: 30px; }
.cta-mark { display: grid; place-items: center; }
.cta-mark svg { width: min(240px, 60vw); height: auto; --mk-ring: var(--lapis-400); animation: bob 5s ease-in-out infinite alternate; filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); }

/* ---------- footer ---------- */
.site-footer { background: var(--lapis-950); color: #aab6de; padding-block: 64px 28px; font-family: var(--f-ui); font-size: 15px; line-height: 1.8; }
.site-footer a { color: #dfe5f8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(201,211,242,.14); }
.foot-brand p { margin-top: 16px; max-width: 30em; font-family: var(--f-body); font-size: 16px; }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 24px; }
.foot-nav h4 { font-family: var(--f-ui); font-weight: 500; font-size: 13px; color: var(--gold-soft); margin-bottom: 12px; }
.foot-nav a { display: block; padding-block: 3px; }
[dir="ltr"] .foot-nav a { text-align: left; }
[dir="rtl"] .foot-nav a { text-align: right; }
.foot-legal { padding-top: 24px; display: grid; gap: 14px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8491bd; }

/* =====================================================================
   Inner pages — shared components. Page-specific art lives in
   /assets/css/pages/<page>.css, never here.
   ===================================================================== */

/* ---------- page hero (short glazed-brick header for inner pages) ---------- */
.page-hero { padding-top: clamp(110px, 12vw, 150px); overflow: hidden; border-bottom: 3px solid var(--gold); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(9,18,58,.8) 0%, rgba(9,18,58,.45) 50%, rgba(9,18,58,.1) 100%),
    linear-gradient(to bottom, rgba(9,18,58,.55), rgba(9,18,58,0) 40%);
}
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.page-hero-grid.solo { grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 60px); color: #fff; line-height: 1.25; margin-bottom: 20px; }
.page-hero .lead { font-size: var(--t-md); color: #c9d3f2; max-width: 36em; }
.page-hero .actions { margin-top: 30px; }
.page-hero-copy > * { animation: rise-in .9s var(--ease) both; }
.page-hero-copy > :nth-child(2) { animation-delay: .08s; }
.page-hero-copy > :nth-child(3) { animation-delay: .16s; }
.page-hero-copy > :nth-child(4) { animation-delay: .24s; }
.page-hero-art { min-width: 0; }
.page-hero-art svg { display: block; width: 100%; height: auto; max-width: 480px; margin-inline: auto; overflow: visible; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 22px; font-family: var(--f-ui); font-size: var(--t-xs); color: #aab6de; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }
.crumbs a { color: #dfe5f8; text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }

/* ---------- generic section bits ---------- */
.sec-tight { padding-block: clamp(56px, 6vw, 88px); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .body-lg { margin-inline: auto; }
.caps.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .body-lg, .on-dark p { color: #c9d3f2; }
.mt-lg { margin-top: clamp(32px, 4vw, 56px); }

/* big single statement */
.statement { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.6; color: var(--lapis-900); max-width: 28em; text-wrap: balance; }
.statement b { font-weight: 700; color: var(--lapis-500); }

/* ---------- tiles: link blocks (solutions hub, related pages) ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 24px 24px 26px; border-radius: 3px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f1f4fa);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -4px 0 rgba(14,27,82,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile h3 { font-size: 21px; color: var(--lapis-900); display: flex; align-items: center; gap: 10px; }
.tile h3::before { content: ""; width: 10px; height: 10px; background: var(--lapis-500); transform: rotate(45deg); flex: none; transition: transform .4s var(--ease), background-color .3s; }
.tile p { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.tile .more { margin-top: auto; padding-top: 10px; font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--lapis-500); display: inline-flex; gap: .5em; align-items: center; }
.tile .more span { transition: transform .3s var(--ease); }
a.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--lapis-300), inset 0 -4px 0 var(--gold), 0 18px 28px -18px rgba(14,27,82,.5); }
a.tile:hover h3::before { transform: rotate(225deg) scale(1.2); background: var(--gold); }
[dir="rtl"] a.tile:hover .more span { transform: translateX(-4px); }
[dir="ltr"] a.tile:hover .more span { transform: translateX(4px); }
.wall .tile, [data-glaze] .tile { background: linear-gradient(180deg, hsl(226 60% 40%), hsl(228 64% 29%)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -5px 0 rgba(0,0,0,.28); }
[data-glaze] .tile h3 { color: #fff; }
[data-glaze] .tile h3::before { background: var(--gold); }
[data-glaze] .tile p { color: #cbd5f5; }
[data-glaze] .tile .more { color: var(--gold-soft); }

/* dark band that closes flush (use with data-glaze="wall" data-crenel) */
.wall.closed { padding-bottom: var(--sec-pad); }

/* ---------- flat numbered steps (when the ziggurat is not wanted) ---------- */
.steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.steps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: st; position: relative; padding-top: 58px; border-top: 2px solid var(--lapis-100); }
.steps li::before { content: counter(st); position: absolute; top: 12px; inset-inline-start: 0; font-family: var(--f-ui); font-weight: 300; font-size: 34px; line-height: 1; color: var(--lapis-500); }
.steps li::after { content: ""; position: absolute; top: -6px; inset-inline-start: 0; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.steps h3 { font-size: 20px; margin-bottom: 6px; color: var(--lapis-900); }
.steps p { font-size: 16px; line-height: 1.75; color: var(--ink-2); }

/* ---------- spec table ---------- */
.table-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.spec { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16.5px; }
.spec th, .spec td { text-align: start; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.spec thead th { font-family: var(--f-ui); font-weight: 500; font-size: var(--t-sm); color: var(--lapis-700); border-bottom: 2px solid var(--lapis-300); }
.spec tbody th { font-family: var(--f-display); font-weight: 700; color: var(--lapis-900); white-space: nowrap; }
.spec td { color: var(--ink-2); }

/* ---------- contact form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-ui); font-weight: 500; font-size: var(--t-sm); color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--f-ui); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: #fff; border: 0; border-radius: 3px; padding: 13px 14px; width: 100%;
  box-shadow: inset 0 0 0 1.5px var(--line), inset 0 -3px 0 rgba(14,27,82,.06);
  transition: box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lapis-500), inset 0 -3px 0 var(--gold); }
.form-note { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--ink-3); }
.form-status { font-family: var(--f-ui); font-size: var(--t-sm); color: var(--lapis-700); }

/* ---------- long-form text (legal, about) ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-block: 48px 14px; color: var(--lapis-900); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-block: 30px 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17.5px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: 8px; margin-block: 12px; }
.prose li::marker { color: var(--lapis-500); }

/* ---------- 404 ---------- */
.lost { min-height: 72vh; display: grid; align-items: center; }

/* ---------- English / LTR ---------- */
[dir="ltr"] body { line-height: 1.7; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4 { line-height: 1.18; letter-spacing: -.01em; }
[dir="ltr"] .hero h1 { line-height: 1.08; letter-spacing: -.02em; }
[dir="ltr"] .hero::before { background: linear-gradient(to right, rgba(9,18,58,.78) 0%, rgba(9,18,58,.42) 48%, rgba(9,18,58,.08) 100%), linear-gradient(to bottom, rgba(9,18,58,.55), rgba(9,18,58,0) 30%); }
[dir="ltr"] .page-hero::before { background: linear-gradient(to right, rgba(9,18,58,.8) 0%, rgba(9,18,58,.45) 50%, rgba(9,18,58,.1) 100%), linear-gradient(to bottom, rgba(9,18,58,.55), rgba(9,18,58,0) 40%); }
[dir="ltr"] .cta::before { background: linear-gradient(to right, rgba(9,18,58,.72), rgba(9,18,58,.2)); }
[dir="ltr"] .river-svg text { direction: ltr; }
[dir="ltr"] .brick::after { transform: translateX(-120%); }
[dir="ltr"] .brick:hover::after { transform: translateX(120%); }
[dir="ltr"] .eyebrow { letter-spacing: .02em; }

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tag-in { from { opacity: 0; transform: translate(-50%, -30%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes drop { 0% { transform: translateY(-360px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes draw-c { 0% { stroke-dasharray: 0 100; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dasharray: 76 24; opacity: 1; } }
@keyframes draw-o { 0% { stroke-dasharray: 0 100; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dasharray: 100 0; opacity: 1; } }
@keyframes flow { from { stroke-dashoffset: 38; } to { stroke-dashoffset: 0; } }
@keyframes flow-orbit { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -110; } }
@keyframes bob { from { transform: translateY(-8px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }
@keyframes bob-s { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@keyframes halo { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.7) rotate(-10deg); } 60% { transform: scale(1.06) rotate(2deg); } 100% { transform: none; } }
@keyframes press { 0% { transform: scale(1.8); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes tier-rise { from { transform: translateY(26px) scaleX(.97); } to { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav-main a { padding: 8px 9px; font-size: 14.5px; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles, .tiles.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); }
  .bricks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .half { display: none; }
}
@media (max-width: 920px) {
  .nav-main {
    position: absolute; top: 100%; inset-inline: 0; margin: 0;
    background: var(--lapis-950); border-top: 1px solid rgba(227,168,43,.35);
    padding: 10px var(--gutter) 18px; display: none;
  }
  .nav-main.open { display: block; }
  .nav-main > ul { flex-direction: column; }
  .nav-main a { padding: 12px 6px; font-size: 16px; border-bottom: 1px solid rgba(201,211,242,.1); }
  .nav-cta { margin-inline-start: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 4px; cursor: pointer;
    background: rgba(255,255,255,.08);
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header { background: rgba(9,18,58,.9); padding-block: 10px; }

  .hero-grid, .page-hero-grid, .split, .split.flip, .legacy-grid, .faq-split, .cta-grid, .foot-top { grid-template-columns: minmax(0, 1fr); }
  .page-hero-art svg { max-width: 360px; }
  .hero-visual { max-width: 460px; }
  .faq-split .split-copy { position: static; }
  .cta-mark { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav-cta { display: none; }
  .nav-toggle { margin-inline-start: auto; }
  .hero-facts li { padding-inline-end: 16px; margin-inline-end: 16px; }
  .hero-facts b { font-size: 18px; }
  .tag { font-size: 12px; padding: 6px 9px; }
  .tag small { display: none; }
  .caps, .caps.cols-2, .tiles, .tiles.cols-2, .tiles.cols-4, .steps, .steps.cols-3, .form { grid-template-columns: minmax(0, 1fr); }
  .bricks { grid-template-columns: minmax(0, 1fr); }
  .brick { grid-column: auto; min-height: 0; }
  .brick:nth-child(even) { margin-inline-start: 18px; }
  .brick:nth-child(odd) { margin-inline-end: 18px; }
  .timeline { flex-direction: column; align-items: stretch; }
  .tl-node { width: auto; flex-direction: row; text-align: start; align-items: center; gap: 16px; }
  .tl-node p { flex: 1; }
  .tl-mark { width: 76px; height: 76px; flex: none; }
  .tl-photo { height: auto; }
  .tl-span { min-height: 48px; justify-content: flex-start; padding-inline-start: 24px; }
  .tl-span::before { inset-inline: auto; inset-inline-start: 37px; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--lapis-300) 0 8px, transparent 8px 14px); }
  .tl-span span { margin-top: 10px; margin-inline-start: 40px; }
  .tier { --w: calc(100% - var(--i) * 4%); min-width: 0; gap: 14px; padding: 16px 18px; }
  .tier .t-num { font-size: 30px; width: 30px; }
  .qa summary { font-size: 18px; }
  .network { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
}
