/* =========================================================
   Hazarat Sumer — landing page
   Palette: lapis night, logo blue, carnelian orange, clay
   Type: Alexandria (display + text) · Noto Sans Cuneiform (glyphs)
   ========================================================= */

:root {
  --night: #070A1C;
  --night-2: #0C1233;
  --night-3: #121A44;
  --lapis: #3A5BA9;
  --lapis-deep: #1D2E70;
  --sky: #8FA8FF;
  --fire: #F28C1E;
  --fire-hi: #FFA94A;
  --clay: #C9A57C;
  --clay-hi: #E0C49C;
  --clay-lo: #9B774E;
  --ink: #2A1B10;
  --ivory: #EEE7DA;
  --muted: #A3ABCB;
  --line: rgba(143, 168, 255, .16);
  --line-2: rgba(143, 168, 255, .28);

  --f-display: 'Alexandria', system-ui, sans-serif;
  --f-text: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-cune: 'Noto Sans Cuneiform', serif;

  --gutter: 32px;
  --sec: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-feature-settings: 'kern';
  background: var(--night);
  color: var(--ivory);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
em { font-style: normal; }
::selection { background: var(--fire); color: var(--night); }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.cune { font-family: var(--f-cune); font-weight: 400; letter-spacing: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 54px; padding-inline: 26px;
  border-radius: 14px;
  font-family: var(--f-text); font-weight: 500; font-size: 16px; line-height: 1;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 20px; }
.btn-sm { height: 42px; padding-inline: 18px; font-size: 15px; border-radius: 11px; }
.btn-fire { background: var(--fire); color: #1C1004; }
.btn-fire:hover { background: var(--fire-hi); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(238, 231, 218, .28); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); background: rgba(238, 231, 218, .06); }
html[dir="ltr"] .dir-ico { transform: scaleX(-1); }
/* the send glyph points right by default: it faces the reading direction, so it flips in Arabic */
html[dir="rtl"] .send-ico { transform: scaleX(-1); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--night);
}
.pre-inner { text-align: center; width: min(320px, 80vw); }
.pre-glyph { font-family: var(--f-cune); font-size: 54px; color: var(--clay); line-height: 1.2; letter-spacing: .08em; }
.pre-year { font-family: var(--f-display); font-size: 58px; line-height: 1.1; margin-top: 18px; font-variant-numeric: tabular-nums; }
.pre-era { font-size: 22px; color: var(--muted); }
.pre-cap { color: var(--muted); font-size: 15px; margin-top: 6px; }
.pre-bar { height: 2px; background: var(--line); margin-top: 26px; border-radius: 2px; overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 100%; background: var(--fire); transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .pre-bar i { transform-origin: left; }

/* ---------- progress ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--fire), var(--sky)); transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .progress i { transform-origin: left; }

/* ---------- nav ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 10, 28, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--f-display); font-weight: 600; font-size: 20px; color: var(--fire); }
.brand-txt small { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.links { display: flex; gap: 4px; margin-inline-start: auto; }
.links a { padding: 8px 14px; border-radius: 10px; font-size: 15px; color: var(--muted); font-weight: 400; transition: color .2s, background .2s; }
.links a:hover, .links a.active { color: var(--ivory); background: rgba(143, 168, 255, .08); }
.nav-act { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding-inline: 14px; border-radius: 11px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; transition: border-color .2s, background .2s; }
.lang:hover { border-color: var(--sky); background: rgba(143, 168, 255, .08); }
.lang i { font-size: 18px; color: var(--sky); }
.burger { display: none; width: 44px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 1.5px; background: var(--ivory); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.nav.open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 20px; transform: rotate(-45deg); }
.drawer { display: none; }

/* ---------- section heads ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.3; letter-spacing: -.01em;
}
html[lang="en"] .sec-title { line-height: 1.08; letter-spacing: -.035em; }
.sec-sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; }
.sec-head.center .sec-sub { margin-inline: auto; }
.chapter { display: inline-flex; align-items: center; gap: 12px; color: var(--clay-hi); font-size: 15px; font-weight: 400; margin-bottom: 22px; }
.chapter .cune, .chapter i { font-size: 24px; color: var(--clay); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; padding-top: 110px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(to bottom, transparent, var(--night)); z-index: -1; pointer-events: none; }
.wedges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(54px, 8.4vw, 132px); line-height: 1.18; letter-spacing: -.01em; }
html[lang="en"] .hero-title { line-height: 1; letter-spacing: -.04em; font-size: clamp(54px, 8.2vw, 128px); }
.hero-title .ln { display: block; }
.hero-title .ln > span { display: inline-block; white-space: nowrap; }
html[lang="ar"] .hero-title { font-size: clamp(46px, 7vw, 112px); }
/* the two materials of the headline: clay and cloud */
.clay-word {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 240, 210, .35) 0 1px, transparent 2px) 0 0 / 9px 9px,
    radial-gradient(circle at 70% 60%, rgba(60, 30, 10, .35) 0 1px, transparent 2px) 0 0 / 13px 13px,
    linear-gradient(170deg, #EBD0A6 0%, #C9A57C 45%, #A57B4E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cloud-word {
  color: #EEF2FF;
  text-shadow: 0 0 24px rgba(143, 168, 255, .55), 0 0 64px rgba(58, 91, 169, .7);
}
.hero-lead { margin-top: 28px; max-width: 54ch; font-size: clamp(16.5px, 1.35vw, 19px); color: #C6CCE4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-art { position: relative; width: 100%; max-width: 640px; justify-self: center; aspect-ratio: 1; }
.stage { width: 100%; height: 100%; overflow: visible; }
.stage { direction: ltr; }
.ring-cune { font-family: var(--f-cune); font-size: 34px; fill: var(--clay); fill-opacity: .4; }
.ring-txt { font-family: var(--f-text); font-size: 25px; font-weight: 500; fill: var(--sky); fill-opacity: .55; letter-spacing: .12em; }
html[lang="ar"] .ring-txt { letter-spacing: 0; }
.tr { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tlabel { font-family: var(--f-text); font-size: 28px; font-weight: 500; fill: var(--ivory); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line); }
.hero-stats > div { padding: 22px 22px 6px; border-inline-start: 1px solid var(--line); }
.hero-stats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hero-stats dt { font-family: var(--f-display); font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; line-height: 1.1; color: var(--ivory); font-variant-numeric: tabular-nums; }
.hero-stats dd { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.scroll-cue { position: absolute; bottom: 22px; inset-inline-start: 50%; translate: 50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
html[dir="ltr"] .scroll-cue { translate: -50% 0; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--sky), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   STORY — clay tablet turns into a database record
   ========================================================= */
.story { position: relative; padding-block: var(--sec); background: linear-gradient(180deg, var(--night) 0%, #0B1029 100%); }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; min-height: 80vh; }
.statement { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.7; color: var(--ivory); }
html[lang="en"] .statement { line-height: 1.35; letter-spacing: -.025em; }
.statement .w { opacity: .16; transition: none; }
.heir { margin-top: 30px; font-size: clamp(18px, 1.6vw, 22px); color: var(--fire); font-weight: 500; }

.flip-wrap { perspective: 1800px; display: flex; flex-direction: column; align-items: center; }
.flipper { position: relative; width: min(420px, 100%); aspect-ratio: 4 / 5; transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; }
.face figcaption { position: absolute; bottom: -38px; inset-inline: 0; text-align: center; font-size: 14px; color: var(--muted); }
.screen { transform: rotateY(180deg); }
.flip-note { margin-top: 64px; font-size: 13.5px; color: var(--muted); opacity: .8; }

.tablet .tab-body {
  flex: 1; position: relative;
  border-radius: 34px 40px 30px 44px / 40px 34px 46px 30px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 244, 222, .5), transparent 46%),
    radial-gradient(circle at 80% 85%, rgba(70, 40, 15, .38), transparent 55%),
    radial-gradient(rgba(60, 35, 15, .18) 1px, transparent 1.6px) 0 0 / 7px 7px,
    linear-gradient(160deg, #DDBE93, #C49D70 55%, #A47B4F);
  box-shadow: inset 0 3px 2px rgba(255, 245, 225, .55), inset 0 -10px 22px rgba(60, 32, 12, .45), 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(60, 32, 12, .25);
  padding: 30px 26px;
  display: grid; grid-template-rows: 1fr 1fr 1.2fr 1fr;
}
.case { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding-inline: 8px; border-bottom: 2px solid rgba(70, 40, 15, .38); box-shadow: 0 1px 0 rgba(255, 240, 215, .45); }
.tab-body .case:last-child { border-bottom: 0; box-shadow: none; }
.sign { font-family: var(--f-cune); font-size: 46px; line-height: 1; color: #7E5A34; text-shadow: 1px 1px 0 rgba(255, 240, 215, .55), -1px -1px 0 rgba(55, 30, 10, .55); }
.sign.big { font-size: 66px; }
.imp { display: inline-block; flex-shrink: 0; }
.imp.n1 { width: 18px; height: 30px; background: linear-gradient(180deg, #6C4A28, #A47B4F); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(1px 1px 0 rgba(255, 240, 215, .5)); }
.imp.n10 { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 60% 62%, #A47B4F 0 35%, #6C4A28 70%); box-shadow: 1px 1px 0 rgba(255, 240, 215, .5); }

.screen .win { flex: 1; border-radius: 22px; overflow: hidden; background: #0E1538; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 80px -10px rgba(58, 91, 169, .55); display: flex; flex-direction: column; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #0A1030; font-size: 13px; color: var(--muted); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3566; }
.win-bar i:first-child { background: var(--fire); }
.win-bar span { margin-inline-start: 8px; font-weight: 500; }
.win-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.win-tools { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.win-tools .search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(143, 168, 255, .07); }
.win-tools .sync { display: flex; align-items: center; gap: 6px; color: #7CE0B0; }
.record { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.record > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.record > div:last-child { border-bottom: 0; }
.record dt { color: var(--muted); font-weight: 300; }
.record dd { font-weight: 500; color: var(--ivory); }
.pill-ok { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; background: rgba(124, 224, 176, .12); color: #7CE0B0; font-size: 13px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 7px; min-height: 60px; }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--sky), var(--lapis)); opacity: .8; }
.bars i:last-child { background: linear-gradient(180deg, var(--fire-hi), var(--fire)); }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline { padding-block: var(--sec); }
.tl { position: relative; padding-block: 20px; }
.tl-rail { position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 2px; margin-inline-start: -1px; background: var(--line); }
.tl-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--clay) 0%, var(--clay) 35%, var(--sky) 55%, var(--fire) 100%); transform: scaleY(0); transform-origin: top; }
.tl-item { position: relative; width: 50%; padding-inline-end: 64px; padding-block: 28px; }
.tl-item:nth-of-type(even) { margin-inline-start: 50%; padding-inline: 64px 0; }
.tl-item::before { content: ""; position: absolute; top: 46px; inset-inline-end: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); border: 2px solid var(--sky); z-index: 1; }
.tl-item:nth-of-type(even)::before { inset-inline: -8px auto; }
.tl-item.ancient::before { border-color: var(--clay); transform: rotate(45deg); border-radius: 3px; }
.tl-item.now::before { background: var(--fire); border-color: var(--fire); box-shadow: 0 0 0 6px rgba(242, 140, 30, .2); }
.tl-year { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; }
.tl-item.ancient .tl-year { color: var(--clay-hi); }
.tl-item.modern .tl-year { color: var(--sky); }
.tl-item.now .tl-year { color: var(--fire); }
.tl-place { display: block; font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.tl-item h3 { font-family: var(--f-display); font-weight: 500; font-size: 23px; margin-top: 14px; line-height: 1.35; }
.tl-item p { color: #BFC6E0; margin-top: 8px; max-width: 46ch; }
.tl-glyph { position: absolute; top: 4px; inset-inline-end: 72px; font-family: var(--f-cune); font-size: 84px; line-height: 1; color: var(--clay); opacity: .1; pointer-events: none; }
.tl-item:nth-of-type(even) .tl-glyph { inset-inline-end: 0; }
.tl-gap { position: relative; text-align: center; padding-block: 44px; color: var(--muted); font-size: 15px; }
.tl-gap span { position: relative; z-index: 1; display: inline-block; padding: 8px 18px; background: var(--night); border: 1px dashed var(--line-2); border-radius: 99px; }

/* =========================================================
   ALLIANCE
   ========================================================= */
.alliance { padding-block: var(--sec); background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(58, 91, 169, .22), transparent 70%), var(--night); }
.circuit { position: relative; height: 170px; margin-bottom: 0; }
.circuit-svg { width: 100%; height: 100%; }
.cpath { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pulse { fill: var(--fire); }
.c-center { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 18px; background: var(--night); }
.c-center img { width: 54px; height: 54px; }
.c-center span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.partner { position: relative; padding-top: 28px; border-top: 2px solid var(--line-2); }
.partner::before { content: ""; position: absolute; top: -7px; inset-inline-start: 50%; margin-inline-start: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 5px rgba(242, 140, 30, .18); }
.partner.self { border-top-color: var(--fire); }
/* one scheme for all three: lapis tile, ivory mark */
.p-logo { height: 76px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 16px; padding: 12px 20px;
  background: linear-gradient(135deg, var(--lapis-deep), var(--lapis)); border: 1px solid rgba(143, 168, 255, .18); transition: border-color .3s, box-shadow .3s; }
.p-logo img { max-height: 54px; width: auto; filter: brightness(0) invert(1); opacity: .92; transition: opacity .3s; }
.partner.self .p-logo img { filter: none; max-height: 52px; }
.partner.self .p-logo b { font-family: var(--f-display); color: var(--ivory); font-size: 24px; font-weight: 600; }
.partner:hover .p-logo { border-color: rgba(242, 140, 30, .55); box-shadow: 0 14px 34px -18px rgba(242, 140, 30, .5); }
.partner:hover .p-logo img { opacity: 1; }
.p-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.p-badge { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--fire); color: var(--fire); }
.partner h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; margin-top: 8px; line-height: 1.3; }
.p-role { color: var(--sky); font-weight: 400; margin-top: 4px; }
.partner p.p-d { color: #BFC6E0; margin-top: 14px; font-size: 16px; }
.p-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--ivory); font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.p-link:hover { color: var(--fire); border-color: var(--fire); }
.al-pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: clamp(56px, 7vw, 88px); padding-block: 26px; border-block: 1px solid var(--line); }
.al-pillars li { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 400; }
.al-pillars i { font-size: 24px; color: var(--fire); }
.bridge { direction: ltr; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 20px; margin-top: 56px; }
.b-end { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.b-end b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--f-text); font-weight: 600; font-size: 15px; color: var(--ivory); }
.b-end span { unicode-bidi: plaintext; }
.b-arc { width: 100%; height: auto; max-height: 120px; }
.b-km { grid-column: 1 / -1; text-align: center; font-size: 17px; color: var(--muted); unicode-bidi: plaintext; direction: inherit; }
html[dir="rtl"] .b-km { direction: rtl; }
.b-km strong { color: var(--ivory); font-weight: 500; }

/* =========================================================
   CITIES MAP
   ========================================================= */
.cities { padding-block: var(--sec); background: #090D24; border-block: 1px solid var(--line); }
.mode { display: inline-flex; padding: 5px; border-radius: 14px; background: rgba(143, 168, 255, .07); border: 1px solid var(--line); margin-bottom: 36px; }
.mode button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 18px; border-radius: 10px; font-size: 15px; color: var(--muted); transition: background .25s, color .25s; }
.mode button .cune { font-size: 20px; }
.mode button.on { background: var(--ivory); color: var(--night); font-weight: 500; }
.map-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.map-box { position: relative; }
.map-box .map { overflow: hidden; -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); }
.map { width: 100%; height: auto; overflow: visible; }
.map .nb { fill: none; stroke: rgba(143, 168, 255, .12); stroke-width: 1; }
.map .iq { fill: url(#iqFill); stroke: var(--clay); stroke-opacity: .5; stroke-width: 1.2; }
.map .river { fill: none; stroke: #5D86FF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(93, 134, 255, .8)); }
.map .rlabel { font-family: var(--f-text); font-size: 13px; fill: #9DB5FF; font-weight: 400; letter-spacing: .02em; }
.map .layer { transition: opacity .5s var(--ease); }
.map-grid[data-mode="today"] .layer-ancient, .map-grid[data-mode="ancient"] .layer-today { opacity: 0; pointer-events: none; }
.map-grid[data-mode="today"] .layer-ancient-dim { opacity: .35; }
.map .mk { cursor: pointer; }
.map .mk-dot { fill: var(--sky); stroke: var(--night); stroke-width: 2; transition: r .25s; }
.map .mk-pulse { fill: none; stroke: var(--sky); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.map .mk.hq .mk-dot, .map .mk.sel .mk-dot { fill: var(--fire); }
.map .mk.hq .mk-pulse, .map .mk.sel .mk-pulse { stroke: var(--fire); }
.map .mk.soon .mk-dot { fill: var(--night); stroke: var(--sky); stroke-dasharray: 2 2; }
.map .mk-label { font-family: var(--f-text); font-size: 15px; font-weight: 500; fill: var(--ivory); paint-order: stroke; stroke: #090D24; stroke-width: 4px; }
.map .mk.sel .mk-label { fill: var(--fire); }
.map .ak-dia { fill: var(--clay); stroke: #090D24; stroke-width: 2; transition: transform .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.map .ak.hl .ak-dia { transform: rotate(45deg) scale(1.5); fill: var(--fire); }
.map .ak-cune { font-family: var(--f-cune); font-size: 17px; fill: var(--clay-hi); }
.map .ak-label { font-family: var(--f-text); font-size: 13.5px; fill: var(--ivory); font-weight: 400; paint-order: stroke; stroke: #090D24; stroke-width: 4px; }
.map .ak.hl .ak-label { fill: var(--fire); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

.panel-ancient, .map-grid[data-mode="ancient"] .panel-today { display: none; }
.map-grid[data-mode="ancient"] .panel-ancient { display: block; }
.city-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.city-tabs button { height: 40px; padding-inline: 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--muted); transition: all .2s; }
.city-tabs button:hover { color: var(--ivory); border-color: var(--sky); }
.city-tabs button.on { background: var(--fire); border-color: var(--fire); color: #1C1004; font-weight: 500; }
.city-card { margin-top: 26px; padding: 26px 0 8px; border-top: 1px solid var(--line); min-height: 250px; }
.cc-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cc-head h3 { font-family: var(--f-display); font-size: 40px; font-weight: 600; line-height: 1.2; }
.cc-tag { font-size: 13px; padding: 3px 12px; border-radius: 99px; background: rgba(143, 168, 255, .12); color: var(--sky); }
.cc-tag.hq { background: rgba(242, 140, 30, .14); color: var(--fire); }
.cc-addr { display: flex; gap: 10px; margin-top: 12px; color: #C6CCE4; }
.cc-addr i { color: var(--fire); font-size: 20px; margin-top: 3px; }
.cc-sub { font-size: 14px; color: var(--muted); margin-top: 22px; }
.cc-list { margin-top: 10px; display: grid; gap: 2px; }
.cc-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.cc-list li i { color: var(--sky); font-size: 18px; margin-top: 4px; }
.region-note { display: flex; gap: 14px; margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: rgba(143, 168, 255, .06); border: 1px solid var(--line); }
.region-note i { font-size: 26px; color: var(--sky); }
.region-note b { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
.region-note span { font-size: 15.5px; }
.gov-count { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; }
.gov-count strong { font-family: var(--f-display); font-size: 64px; line-height: 1; color: var(--fire); font-weight: 600; }
.gov-count span { color: var(--muted); font-size: 15px; max-width: 24ch; line-height: 1.5; }
.hint { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.ancient-list li { display: grid; grid-template-columns: 124px 1fr; gap: 4px 16px; padding: 16px 12px; border-bottom: 1px solid var(--line); border-radius: 12px; cursor: default; transition: background .25s; }
.ancient-list li:hover, .ancient-list li.hl { background: rgba(201, 165, 124, .08); }
.ancient-list .cune { grid-row: span 2; font-size: 22px; color: var(--clay); line-height: 1.6; white-space: nowrap; overflow: hidden; }
.ancient-list b { font-family: var(--f-display); font-weight: 600; font-size: 21px; }
.ancient-list span { font-size: 15px; color: #BFC6E0; }

/* =========================================================
   SERVICES — one big clay tablet ruled into cases
   ========================================================= */
.services { padding-block: var(--sec) calc(var(--sec) * .55); }
.big-tablet {
  position: relative;
  border-radius: 46px 38px 52px 34px / 38px 50px 34px 46px;
  padding: clamp(18px, 3vw, 40px);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 244, 222, .55), transparent 40%),
    radial-gradient(circle at 92% 95%, rgba(70, 40, 15, .4), transparent 50%),
    radial-gradient(rgba(60, 35, 15, .14) 1px, transparent 1.6px) 0 0 / 8px 8px,
    linear-gradient(165deg, #E2C69E, #C9A57C 50%, #AE8659);
  box-shadow: inset 0 4px 3px rgba(255, 245, 225, .5), inset 0 -16px 36px rgba(60, 32, 12, .4), 0 60px 120px -40px rgba(0, 0, 0, .8);
}
.cases { display: grid; grid-template-columns: repeat(3, 1fr); }
.big-tablet .case {
  display: block; padding: clamp(22px, 2.6vw, 36px);
  border-bottom: 2px solid rgba(70, 40, 15, .3); box-shadow: 0 1px 0 rgba(255, 240, 215, .4);
  border-inline-start: 2px solid rgba(70, 40, 15, .3);
  transition: background .3s;
}
.cases .case:nth-child(3n + 1) { border-inline-start: 0; }
.cases .case:nth-last-child(-n + 3) { border-bottom: 0; box-shadow: none; }
.big-tablet .case:hover { background: rgba(255, 240, 215, .22); }
.case > i { font-size: 34px; color: #6E4A26; filter: drop-shadow(1px 1px 0 rgba(255, 240, 215, .6)) drop-shadow(-1px -1px 0 rgba(55, 30, 10, .35)); }
.case h3 { font-family: var(--f-display); font-size: 22px; font-weight: 600; margin-top: 16px; line-height: 1.35; color: #2A1B10; }
.case p { margin-top: 8px; font-size: 15.5px; line-height: 1.65; color: #4A3320; font-weight: 400; }
.case-more { display: flex !important; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; border-top: 2px solid rgba(70, 40, 15, .3) !important; border-inline-start: 0 !important; border-bottom: 0 !important; border-radius: 0 0 24px 24px; }
.case-more h3 { margin: 0; }
.case-more p { margin: 0; }
.case-more i { font-size: 30px; }
.consult { display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: start; margin-top: 56px; }
.consult h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; color: var(--clay-hi); padding-top: 6px; white-space: nowrap; }
.consult ul { display: flex; flex-wrap: wrap; gap: 8px; }
.consult li { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14.5px; color: #C6CCE4; }

/* =========================================================
   SYSTEMS
   ========================================================= */
.systems { padding-block: var(--sec) 0; position: relative; }
.sys-head { max-width: none; display: grid; grid-template-columns: auto 1fr; gap: 10px 40px; align-items: end; }
.sys-head .sec-title { display: flex; align-items: flex-end; gap: 20px; }
.big-num { font-family: var(--f-display); font-size: clamp(110px, 15vw, 220px); line-height: .8; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--sky); }
.sys-head .sec-sub { margin: 0 0 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { height: 42px; padding-inline: 18px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); font-size: 15px; transition: all .2s; }
.filters button:hover { color: var(--ivory); border-color: var(--sky); }
.filters button.on { background: var(--ivory); color: var(--night); border-color: var(--ivory); font-weight: 500; }
.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.sys { position: relative; padding: 26px 24px 24px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); min-height: 168px; overflow: hidden; transition: background .3s; }
.sys::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(58, 91, 169, .35), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.sys:hover::after { opacity: 1; }
.sys > i { font-size: 30px; color: var(--sky); transition: color .3s, transform .4s var(--ease); display: inline-block; }
.sys:hover > i { color: var(--fire); transform: translateY(-3px); }
.sys-name { display: block; direction: ltr; text-align: start; font-family: var(--f-text); font-size: 25px; margin-top: 18px; line-height: 1.1; letter-spacing: -.01em; }
html[dir="rtl"] .sys-name { text-align: right; }
.sys-name s { text-decoration: none; color: var(--muted); font-weight: 300; }
.sys-name b { font-weight: 600; color: var(--ivory); }
.sys p { margin-top: 6px; font-size: 14.5px; color: var(--muted); position: relative; z-index: 1; }
.sys.hide { display: none; }
.sectors { margin-top: clamp(80px, 9vw, 120px); padding-block: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(58, 91, 169, .08)); }
.sectors-h { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.marquee { direction: ltr; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 60s linear infinite; }
.marquee.rev .mq-track { animation-direction: reverse; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.sector { display: inline-flex; align-items: center; gap: 22px; padding-inline-end: 22px; font-family: var(--f-display); font-size: clamp(24px, 3vw, 40px); font-weight: 500; white-space: nowrap; color: rgba(238, 231, 218, .82); unicode-bidi: plaintext; }
.marquee.rev .sector { color: rgba(143, 168, 255, .5); }
.sector .sep { font-family: var(--f-cune); color: var(--fire); font-size: .7em; }
.marquee + .marquee { margin-top: 10px; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { position: relative; padding-block: var(--sec); overflow: hidden; }
.infinity { position: absolute; top: 50%; left: 50%; width: min(1400px, 140vw); translate: -50% -42%; pointer-events: none; opacity: .35; }
.infinity path { fill: none; stroke: rgba(58, 91, 169, .35); stroke-width: 34; stroke-dasharray: 4 18; animation: inf 40s linear infinite; }
@keyframes inf { to { stroke-dashoffset: -880; } }
.wave { position: relative; height: 540px; }
.wave-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wave-base { fill: none; stroke: var(--line-2); stroke-width: 2; }
.wave-draw { fill: none; stroke: var(--fire); stroke-width: 3; stroke-linecap: round; }
.phase { position: absolute; width: 150px; translate: -50% 0; text-align: center; }
.phase .p-node { position: absolute; left: 50%; top: 0; translate: -50% -50%; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); border: 1.5px solid var(--line-2); font-size: 30px; color: var(--muted); transition: background .4s, border-color .4s, color .4s, box-shadow .4s; }
.phase.lit .p-node { background: var(--fire); border-color: var(--fire); color: #1C1004; box-shadow: 0 0 0 8px rgba(242, 140, 30, .16), 0 0 40px rgba(242, 140, 30, .5); }
.phase .p-txt { position: absolute; left: 0; right: 0; }
.phase.up .p-txt { bottom: 56px; }
.phase.down .p-txt { top: 56px; }
.p-num { font-size: 12.5px; color: var(--muted); }
.phase h3 { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.phase p { font-size: 13.5px; line-height: 1.55; color: #A9B1D0; margin-top: 4px; }
.depts { margin-top: 64px; display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; padding-top: 32px; border-top: 1px solid var(--line); }
.depts h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; color: var(--clay-hi); }
.depts ul { display: flex; flex-wrap: wrap; gap: 10px; }
.depts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: rgba(143, 168, 255, .07); font-size: 15px; }
.depts li i { color: var(--sky); font-size: 19px; }

/* =========================================================
   PRINCIPLES
   ========================================================= */
.principles { padding-block: var(--sec); background: linear-gradient(180deg, var(--night), #0A0F2A 50%, var(--night)); }
.vision { text-align: center; max-width: 980px; margin-inline: auto; }
.v-mark { display: block; font-size: 64px; color: var(--fire); line-height: 1; margin-bottom: 20px; }
.vision p { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.55; }
html[lang="en"] .vision p { line-height: 1.2; letter-spacing: -.03em; }
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; max-width: 1040px; margin: 56px auto 0; color: #C6CCE4; font-size: 18px; }
.mini-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); margin-top: clamp(80px, 9vw, 130px); margin-bottom: 32px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.values > li, .values li {
  padding: clamp(32px, 3.2vw, 44px) clamp(22px, 2.4vw, 36px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  align-items: start;
}
.values > li:not(:nth-child(3n + 1)), .values li:not(:nth-child(3n + 1)) {
  border-inline-start: 1px solid var(--line);
}
.values i { grid-row: span 2; font-size: 32px; color: var(--fire); align-self: start; line-height: 1; padding-top: 2px; }
.values b { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.35; }
.values span { color: #B5BCD8; font-size: 15.5px; line-height: 1.7; }
.arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.arch { position: relative; min-height: 420px; padding: 120px 30px 36px; border-radius: 999px 999px 26px 26px; background: linear-gradient(180deg, #2848A0 0%, #1A2C6E 45%, #0E1638 100%); overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid rgba(143, 168, 255, .25); }
.arch::before { content: ""; position: absolute; inset: 14px 14px auto; height: 60%; border-radius: 999px 999px 0 0; border: 1px dashed rgba(238, 231, 218, .2); border-bottom: 0; }
.arch i { font-size: 52px; color: var(--fire-hi); }
.arch h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1.35; margin-top: 26px; }
.arch p { margin-top: 12px; color: #C9D2F2; font-size: 15.5px; max-width: 30ch; }

/* =========================================================
   CLIENTS
   ========================================================= */
.clients { padding-block: var(--sec); }
.logos .mq-track { gap: 18px; padding-inline-end: 18px; animation-duration: var(--mq-dur, 90s); }
.logos { padding-block: 6px 16px; } /* room for the hover lift and glow */
.logos + .logos { margin-top: -4px; }
/* transparent logos: light silhouettes on dark tiles at rest, real colours on hover (CLIENT-LOGOS.md) */
.logo-tile { width: 150px; height: 150px; flex-shrink: 0; border-radius: 26px; background: #0E1226; border: 1px solid rgba(238, 231, 218, .1); display: grid; place-items: center; overflow: hidden; transition: background-color .45s ease, border-color .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.logo-tile img { width: 70%; height: 70%; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .62; transition: filter .45s ease, opacity .45s ease; }
.logo-tile.is-wide img { width: 84%; }
.logo-tile.is-badge img { width: 74%; height: 74%; filter: grayscale(1) brightness(.95) invert(0); }
.logo-tile:hover, .logo-tile:active { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(242, 140, 30, .45); }
.logo-tile:not(.is-light):not(.is-badge):hover, .logo-tile:not(.is-light):not(.is-badge):active { background: #fff; border-color: transparent; }
.logo-tile:hover img, .logo-tile:active img { filter: grayscale(0) brightness(1) invert(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .logo-tile, .logo-tile img { transition: none; }
  .logo-tile:hover, .logo-tile:active { transform: none; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-block: var(--sec); background: radial-gradient(ellipse 60% 60% at 80% 100%, rgba(242, 140, 30, .12), transparent 70%), radial-gradient(ellipse 60% 60% at 10% 0%, rgba(58, 91, 169, .25), transparent 70%), var(--night); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.c-blocks { display: flex; flex-direction: column; gap: 24px; margin-top: 44px; }
.c-block h3, .off-h { font-size: 14px; font-weight: 400; color: var(--muted); margin-bottom: 8px; }
.c-name { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.c-block a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; transition: color .2s; }
.c-block a:hover { color: var(--fire); }
.off-h { margin-top: 40px; }
.offices { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.offices li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.offices li:nth-child(even) { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.offices b { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.offices span { font-size: 14.5px; color: #B5BCD8; }
.offices .soon { color: var(--fire); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: rgba(12, 18, 51, .75); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--ivory); background: rgba(7, 10, 28, .6); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.form textarea { resize: vertical; min-height: 120px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: left 18px center, left 12px center; }
html[dir="ltr"] .form select { background-position: right 12px center, right 18px center; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(143, 168, 255, .15); }
.form .invalid { border-color: #FF7A6B; }
.form option { background: var(--night-2); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* =========================================================
   FOOTER — the colophon: how a scribe signed off a tablet
   ========================================================= */
.foot { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(80px, 10vw, 140px); background: #04061A; border-top: 1px solid var(--line); }
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 50% 0%, rgba(58, 91, 169, .24), transparent 70%), radial-gradient(ellipse 30% 45% at 50% 0%, rgba(242, 140, 30, .1), transparent 70%); }

/* closing line */
.colophon { text-align: center; max-width: 920px; margin-inline: auto; }
.colophon .chapter { justify-content: center; }
.colo-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 7.2vw, 108px); line-height: 1.4; letter-spacing: -.01em; }
html[lang="en"] .colo-title { line-height: 1.05; letter-spacing: -.04em; }
.era { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: clamp(28px, 4vw, 44px); font-size: 14.5px; }
.era-end { white-space: nowrap; font-variant-numeric: tabular-nums; }
.era-end.clay { color: var(--clay-hi); }
.era-end.now { color: var(--sky); }
.era-line { position: relative; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--clay), var(--sky)); opacity: .9; }
html[dir="rtl"] .era-line { background: linear-gradient(270deg, var(--clay), var(--sky)); }
.era-line::before { content: ""; position: absolute; inset: -5px 0; background: repeating-linear-gradient(90deg, rgba(238, 231, 218, .28) 0 1px, transparent 1px 28px); -webkit-mask-image: linear-gradient(transparent 30%, #000 30% 70%, transparent 70%); mask-image: linear-gradient(transparent 30%, #000 30% 70%, transparent 70%); }
.era-dot { position: absolute; top: 50%; inset-inline-start: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 5px rgba(242, 140, 30, .2), 0 0 22px rgba(242, 140, 30, .8); animation: era 6s var(--ease) infinite; }
@keyframes era { 0% { inset-inline-start: 0; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { inset-inline-start: calc(100% - 10px); opacity: 0; } }

/* columns */
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1fr; gap: clamp(32px, 4vw, 64px); margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.fc h3 { font-family: var(--f-text); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--clay-hi); margin-bottom: 18px; }
html[lang="ar"] .fc h3 { letter-spacing: 0; font-size: 14.5px; }
.fc ul { display: grid; gap: 10px; }
.fc a { display: inline-flex; align-items: center; gap: 9px; color: #C6CCE4; font-size: 15.5px; transition: color .2s, transform .25s var(--ease); }
.fc a i { font-size: 18px; color: var(--sky); transition: color .2s; }
.fc a:hover { color: var(--ivory); }
.fc a:hover i { color: var(--fire); }
.fc nav a:hover, .fc ul a:hover { transform: translateX(3px); }
html[dir="rtl"] .fc ul a:hover { transform: translateX(-3px); }
.fc a[dir="ltr"] { unicode-bidi: isolate; }
.fc-logo { width: 190px; height: auto; }
.fc-brand > p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-top: 18px; max-width: 34ch; }
.fc-label { margin-top: 26px !important; font-size: 13px !important; color: var(--muted); }
.fc-partners { display: flex; align-items: center; gap: 22px; margin-top: 12px; }
.fc-partners a { display: block; padding: 4px 0; }
.fc-partners img { height: 34px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .55; transition: opacity .3s, filter .3s; }
.fc-partners a:hover img { opacity: 1; }
.fc-cta { margin-top: 6px; color: var(--fire) !important; font-weight: 500; }
.fc-cta i { color: var(--fire) !important; }
.fc-offices li { display: flex; flex-direction: column; gap: 1px; }
.fc-offices b { font-family: var(--f-display); font-weight: 600; font-size: 16.5px; color: var(--ivory); }
.fc-offices span { font-size: 14px; color: var(--muted); }
.fc-offices .soon { color: var(--fire); }

/* bottom line */
.foot-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; margin-top: clamp(48px, 6vw, 72px); padding-block: 24px 30px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-bottom > :last-child { justify-self: end; margin-inline-start: 24px; }
.foot-sumer { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.foot-sumer .cune { font-size: 20px; color: var(--clay); line-height: 1.6; }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); }
.to-top i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; transition: background .25s, border-color .25s, color .25s, transform .35s var(--ease); }
.to-top:hover i { background: var(--fire); border-color: var(--fire); color: #1C1004; transform: translateY(-3px); }

/* the land of Sumer, signed in clay across the bottom */
.foot-giant { position: relative; z-index: -1; height: clamp(96px, 13vw, 200px); margin-top: -4px; overflow: hidden; pointer-events: none; user-select: none; }
.foot-giant .cune { position: absolute; left: 50%; top: 0; translate: -50% 0; white-space: nowrap; font-size: clamp(110px, 15vw, 240px); line-height: 1.15; color: rgba(201, 165, 124, .045); -webkit-text-stroke: 1px rgba(201, 165, 124, .26); letter-spacing: .06em;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%); mask-image: linear-gradient(180deg, #000 10%, transparent 95%); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .links { display: none; }
  .nav-act { margin-inline-start: auto; }
  .burger { display: block; }
  .drawer { display: grid; position: absolute; top: 100%; inset-inline: 0; background: rgba(7, 10, 28, .97); backdrop-filter: blur(14px); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); }
  .drawer a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 22px; }
  .nav.open .drawer { clip-path: inset(0 0 0 0); }
  .nav.open { background: rgba(7, 10, 28, .97); }
  .sys-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 100px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-bottom: -10px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .hero-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .scroll-cue { display: none; }
  .story-grid { grid-template-columns: 1fr; min-height: 0; }
  .flip-wrap { margin-top: 20px; }
  .tl-rail { inset-inline-start: 7px; margin: 0; }
  .tl-item, .tl-item:nth-of-type(even) { width: auto; margin-inline-start: 0; padding-inline: 44px 0; }
  .tl-item::before, .tl-item:nth-of-type(even)::before { inset-inline: 0 auto; }
  .tl-glyph, .tl-item:nth-of-type(even) .tl-glyph { inset-inline: auto 0; font-size: 64px; }
  .tl-gap { text-align: start; padding-inline-start: 30px; }
  .circuit { display: none; }
  .partners { grid-template-columns: 1fr; gap: 48px; }
  .map-grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .cases .case { border-inline-start: 2px solid rgba(70, 40, 15, .3); border-bottom: 2px solid rgba(70, 40, 15, .3) !important; box-shadow: 0 1px 0 rgba(255, 240, 215, .4) !important; }
  .cases .case:nth-child(3n + 1) { border-inline-start: 2px solid rgba(70, 40, 15, .3); }
  .cases .case:nth-child(odd) { border-inline-start: 0; }
  .cases .case:last-child { border-bottom: 0 !important; box-shadow: none !important; }
  .consult, .depts { grid-template-columns: 1fr; }
  .sys-head { grid-template-columns: 1fr; }
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .wave { height: auto; }
  .wave-svg { display: none; }
  .phases { position: relative; display: grid; gap: 0; padding-inline-start: 0; }
  .phases::before { content: ""; position: absolute; top: 30px; bottom: 30px; inset-inline-start: 30px; width: 2px; background: var(--line-2); }
  .phase { position: relative !important; left: auto !important; top: auto !important; translate: none; width: auto; text-align: start; display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding-block: 14px; }
  .phase .p-node { position: relative; left: auto; top: auto; translate: none; width: 60px; height: 60px; font-size: 24px; }
  .phase .p-txt { position: static; }
  .mission { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .values > li, .values li { padding: 28px 20px; border-inline-start: 0; }
  .values > li:not(:nth-child(3n + 1)), .values li:not(:nth-child(3n + 1)) { border-inline-start: 0; }
  .values > li:nth-child(even), .values li:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .arches { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .arch { min-height: 360px; padding-top: 96px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .fc-brand { grid-column: 1 / -1; }
  .foot-bottom { grid-template-columns: 1fr auto; }
  .foot-sumer { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-in { height: 68px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand-txt small { display: none; }
  .nav-act .btn-sm { display: none; }
  .lang { padding-inline: 11px; }
  .lang span { font-size: 13.5px; }
  .hero-art { max-width: 320px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .tablet .tab-body { padding: 22px 18px; }
  .sign { font-size: 38px; }
  .sign.big { font-size: 52px; }
  .bridge { gap: 10px; }
  .b-end b { width: 42px; height: 42px; font-size: 13px; }
  .b-end span { font-size: 12.5px; max-width: 13ch; text-align: center; line-height: 1.4; }
  .cc-head h3 { font-size: 32px; }
  .cases { grid-template-columns: 1fr; }
  .cases .case, .cases .case:nth-child(3n + 1) { border-inline-start: 0 !important; }
  .big-tablet .case { padding: 22px 8px; }
  .sys-grid { grid-template-columns: 1fr 1fr; }
  .sys { padding: 18px 14px; min-height: 0; }
  .sys-name { font-size: 19px; margin-top: 12px; }
  .sys p { font-size: 13px; }
  .values { grid-template-columns: 1fr; }
  .values > li, .values li { padding: 22px 10px; border-inline-start: 0 !important; }
  .values > li:nth-child(even), .values li:nth-child(even) { border-inline-start: 0; }
  .logo-tile { width: 112px; height: 112px; border-radius: 20px; }
  .c-blocks, .offices { grid-template-columns: 1fr; }
  .offices li:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
  .form { grid-template-columns: 1fr; border-radius: 22px; }
  .foot-bottom { grid-template-columns: 1fr; justify-items: start; }
  .fc-offices-col { grid-column: 1 / -1; }
  .fc-offices { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .foot-bottom > :last-child { justify-self: start; }
  .era { grid-template-columns: 1fr 1fr; row-gap: 12px; font-size: 13px; }
  .era-line { grid-column: 1 / -1; grid-row: 2; }
  .era-end.now { justify-self: end; }
  .fc a { font-size: 15px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mq-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .mq-track [aria-hidden="true"] { display: none; }
  .marquee { padding-inline: var(--gutter); }
  .sector { white-space: normal; text-align: center; }
  .statement .w { opacity: 1 !important; }
}

/* timeline nodes light up as the rail reaches them */
.tl-item.reached::before { background: var(--sky); box-shadow: 0 0 0 6px rgba(143, 168, 255, .18); }
.tl-item.ancient.reached::before { background: var(--clay); box-shadow: 0 0 0 6px rgba(201, 165, 124, .18); }
.tl-item.now.reached::before { background: var(--fire); }

html[dir="rtl"] .ltr-addr { text-align: right; }
.clients { padding-top: calc(var(--sec) * .6); }
@media (max-width: 980px) { .tlabel { display: none; } }

/* =========================================================
   TYPE RHYTHM — Alexandria's Arabic glyphs reach ~1.26em above and
   ~0.58em below the baseline (hamza, shadda, tanween, final yeh tails),
   far outside its 1.22em line box. Give every Arabic line enough room
   so stacked lines never touch and nothing is clipped.
   ========================================================= */
.btn, .lang { line-height: 1.3; }
.brand-txt { line-height: 1.4; }

/* hero */
html[lang="ar"] .hero-title { line-height: 1.42; }
html[lang="en"] .hero-title { line-height: 1.04; }
.clay-word, .cloud-word { display: inline-block; }
/* background-clip:text only paints inside the box — pad the box out to the real ink, then cancel the padding */
.clay-word { padding: .14em .08em .36em; margin: -.14em -.08em -.36em; }

/* headings */
html[lang="ar"] .sec-title { line-height: 1.5; }
html[lang="ar"] .statement { line-height: 1.8; }
html[lang="ar"] .vision p { line-height: 1.75; }
html[lang="ar"] .mini-title { line-height: 1.5; }
html[lang="ar"] h3 { line-height: 1.55; }
.tl-year { line-height: 1.35; }
html[lang="ar"] .tl-year { line-height: 1.5; }
.cc-head h3 { line-height: 1.45; }
.sys-name { line-height: 1.3; }

/* small running text inside tight components */
html[lang="ar"] .case p,
html[lang="ar"] .phase p,
html[lang="ar"] .sys p,
html[lang="ar"] .values span,
html[lang="ar"] .arch p,
html[lang="ar"] .cc-list li,
html[lang="ar"] .ancient-list span { line-height: 1.85; }
html[lang="ar"] .phase .p-txt { line-height: 1.6; }
html[lang="ar"] .phase.up .p-txt { bottom: 50px; }
html[lang="ar"] .phase.down .p-txt { top: 50px; }

/* process labels: long English words ("Implementation") need the room */
@media (min-width: 981px) {
  .phase { width: 168px; }
  html[lang="en"] .phase h3 { font-size: 18px; }
}
.phase h3, .partner h3, .cc-head h3, .tl-item h3 { overflow-wrap: anywhere; }

/* =========================================================
   FOLDABLES — Galaxy Z Fold, the foldable iPhone & co.
   Classes come from assets/js/fold.js:
     .fold-open   inner screen open: read the page as a two-page spread,
                  with the crease running down the middle between the pages
     .fold-book   half-open like a book: same spread, gap widened to the real hinge
     .fold-table  half-open like a laptop: top half is a stage, bottom half scrolls
   ========================================================= */
:root { --hinge: 0px; --spread-gap: calc(56px + var(--hinge)); }
html.fold-book { --hinge: max(0px, calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw))); }

/* ---------- the crease: a stitched seam between the two pages ---------- */
.crease, .unfold, .tt-stage { display: none; }
html.fold-open .crease { display: block; position: fixed; top: 0; bottom: 0; left: 50%; width: max(1px, var(--hinge)); translate: -50% 0; z-index: 45; pointer-events: none; }
.crease i { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(201, 165, 124, .22) 14%, rgba(201, 165, 124, .22) 86%, transparent); }
.crease::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 9px; translate: -50% 0;
  background: radial-gradient(circle, rgba(201, 165, 124, .38) 1.2px, transparent 1.8px) center top / 9px 26px repeat-y;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

/* ---------- spread layout ---------- */
html.fold-open { --gutter: 28px; }
html.fold-open .wrap { width: calc(100% - var(--gutter) * 2); }

/* hero: words on one page, the mark on the other */
html.fold-open .hero-grid { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); }
html.fold-open .hero-art { order: 0; max-width: none; margin: 0; }
html.fold-open .hero-stats { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
html.fold-open .hero-stats > div:nth-child(n) { border-top: 0; }
html.fold-open .hero-stats > div:nth-child(3) { border-inline-start: 0; padding-inline-start: calc(var(--spread-gap) / 2); }
html.fold-open .hero-stats > div:nth-child(2) { padding-inline-end: calc(var(--spread-gap) / 2); }

/* story: the clay tablet on one page, the database record on the other.
   The flip is replaced by a spark that carries each line across the fold. */
html.fold-open .story-grid, html.fold-table .story-grid {
  position: relative; min-height: 0;
  grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); row-gap: 40px;
  grid-template-areas: "copy screen" "tablet screen"; align-items: center;
}
html.fold-open .flip-wrap, html.fold-open .flipper,
html.fold-table .flip-wrap, html.fold-table .flipper { display: contents; }
html.fold-open .story-copy, html.fold-table .story-copy { grid-area: copy; align-self: end; }
html.fold-open .face, html.fold-table .face { position: relative; inset: auto; transform: none; justify-self: center; aspect-ratio: 4 / 5; }
html.fold-open .tablet, html.fold-table .tablet { grid-area: tablet; width: min(100%, 340px, 32svh); align-self: start; }
html.fold-open .screen, html.fold-table .screen { grid-area: screen; width: min(100%, 400px, 52svh); }
html.fold-open .tablet .tab-body, html.fold-table .tablet .tab-body { padding: 24px 18px; }
html.fold-open .sign, html.fold-table .sign { font-size: 38px; }
html.fold-open .sign.big, html.fold-table .sign.big { font-size: 54px; }
html.fold-open .flip-note, html.fold-table .flip-note { display: none; }
.tablet .case { border-radius: 10px; }
.record > div { transition: none; }
.spark { display: none; }
html.fold-open .spark, html.fold-table .spark { display: block; }
.spark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--fire-hi); box-shadow: 0 0 0 5px rgba(242, 140, 30, .25), 0 0 28px 6px rgba(242, 140, 30, .7); opacity: 0; pointer-events: none; z-index: 3; }

/* timeline: the rail runs down the crease, years alternate between the pages */
html.fold-open .tl-rail { inset-inline-start: 50%; margin-inline-start: -1px; }
html.fold-open .tl-item { width: 50%; margin-inline-start: 0; padding-inline: 0 calc(var(--spread-gap) / 2 + 12px); }
html.fold-open .tl-item:nth-of-type(even) { margin-inline-start: 50%; padding-inline: calc(var(--spread-gap) / 2 + 12px) 0; }
html.fold-open .tl-item::before { inset-inline: auto -8px; }
html.fold-open .tl-item:nth-of-type(even)::before { inset-inline: -8px auto; }
html.fold-open .tl-glyph { inset-inline: auto calc(var(--spread-gap) / 2 + 12px); font-size: 68px; }
html.fold-open .tl-item:nth-of-type(even) .tl-glyph { inset-inline: auto 0; }
html.fold-open .tl-gap { text-align: center; padding-inline-start: 0; }

/* alliance: the two parents on one page, the joint venture they formed on the other */
html.fold-open .circuit { display: none; }
html.fold-open .partners { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); row-gap: 48px; }
html.fold-open .partner.self { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* cities: map on one page, the city on the other */
html.fold-open .map-grid { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); }
html.fold-open .cc-head h3 { font-size: 34px; }

/* services: two columns of cases, one per page */
html.fold-open .cases { grid-template-columns: 1fr 1fr; column-gap: 0; }
html.fold-open .cases .case { border-inline-start: 0 !important; border-bottom: 2px solid rgba(70, 40, 15, .3) !important; box-shadow: 0 1px 0 rgba(255, 240, 215, .4) !important; }
html.fold-open .cases .case:nth-child(odd) { padding-inline-end: calc(var(--spread-gap) / 2); }
html.fold-open .cases .case:nth-child(even) { padding-inline-start: calc(var(--spread-gap) / 2); }
html.fold-open .cases .case:nth-last-child(-n + 2):nth-child(odd),
html.fold-open .cases .case:last-child { border-bottom: 0 !important; box-shadow: none !important; }

/* systems: two systems per page */
html.fold-open .sys-head { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); }
html.fold-open .sys-grid { grid-template-columns: repeat(4, 1fr); }
html.fold-open .sys { padding: 20px 16px; min-height: 0; }
html.fold-open .sys-name { font-size: 20px; margin-top: 12px; }
html.fold-open .sys p { font-size: 13.5px; }

/* process: phases 1–4 on the first page, 5–8 on the second — the cycle turns the page */
html.fold-open .wave { height: auto; }
html.fold-open .wave-svg { display: none; }
html.fold-open .phases { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: var(--spread-gap); }
html.fold-open .phases::before { display: none; }
html.fold-open .phase { position: relative !important; left: auto !important; top: auto !important; translate: none; width: auto; text-align: start; display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding-block: 14px; }
html.fold-open .phase::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 29px; width: 2px; background: var(--line-2); z-index: -1; }
html.fold-open .phase:nth-child(1)::before, html.fold-open .phase:nth-child(5)::before { top: 50%; }
html.fold-open .phase:nth-child(4)::before, html.fold-open .phase:nth-child(8)::before { bottom: 50%; }
html.fold-open .phase .p-node { position: relative; left: auto; top: auto; translate: none; width: 60px; height: 60px; font-size: 24px; }
html.fold-open .phase .p-txt { position: static; }
html.fold-open .depts { grid-template-columns: 1fr; }

/* principles */
html.fold-open .mission { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); }
html.fold-open .values { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); }
html.fold-open .values > li, html.fold-open .values li { padding: 26px 16px; border-inline-start: 0 !important; }
/* the arches become pages you turn: one arch per page, swipe for the next */
html.fold-open .arches {
  display: grid; grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: calc(50% - var(--spread-gap) / 2); column-gap: var(--spread-gap);
  max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 6px;
}
html.fold-open .arches::-webkit-scrollbar { display: none; }
html.fold-open .arch { scroll-snap-align: start; min-height: 380px; padding-top: 100px; }

/* contact: who to reach on one page, the form on the other */
html.fold-open .contact-grid { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); }
html.fold-open .c-blocks, html.fold-open .offices { grid-template-columns: 1fr; }
html.fold-open .offices li:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
html.fold-open .form { grid-template-columns: 1fr; }
html.fold-open .foot-cols { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); }
html.fold-open .fc-brand { grid-column: auto; }

/* ---------- unfolding: the clay tablet opens with the phone ---------- */
html.fold-open .unfold.run, html.fold-table .unfold.run { display: block; position: fixed; inset: 0; z-index: 95; perspective: 1800px; pointer-events: none; }
.uf-half {
  position: absolute; top: 0; bottom: 0; width: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 244, 222, .5), transparent 50%),
    radial-gradient(rgba(60, 35, 15, .16) 1px, transparent 1.6px) 0 0 / 8px 8px,
    linear-gradient(165deg, #E2C69E, #C9A57C 50%, #AE8659);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.uf-a { left: 0; transform-origin: left center; box-shadow: inset -40px 0 50px -30px rgba(60, 32, 12, .7); }
.uf-b { right: 0; transform-origin: right center; box-shadow: inset 40px 0 50px -30px rgba(60, 32, 12, .7); }
.uf-sign { font-size: clamp(40px, 7vw, 72px); color: #7E5A34; text-shadow: 1px 1px 0 rgba(255, 240, 215, .55), -1px -1px 0 rgba(55, 30, 10, .55); letter-spacing: .06em; }

/* ---------- tabletop: stage on top, script below ---------- */
html.fold-table { --seg-top: env(viewport-segment-height 0 0, 50vh); --seg-bottom-start: env(viewport-segment-top 0 1, 50vh); }
html.fold-table body { padding-top: var(--seg-bottom-start); }
html.fold-table .tt-stage {
  display: grid; position: fixed; z-index: 48; inset: 0 0 auto 0; height: var(--seg-top);
  grid-template-columns: auto minmax(0, auto); justify-content: center; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: 78px clamp(24px, 5vw, 64px) 18px;
  background: radial-gradient(ellipse 60% 90% at 25% 60%, rgba(58, 91, 169, .35), transparent 70%), var(--night);
  border-bottom: 1px solid var(--line-2);
}
.tt-mark { height: min(100%, 220px); width: auto; aspect-ratio: 1; filter: drop-shadow(0 0 40px rgba(58, 91, 169, .6)); }
.tt-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tt-glyph { font-size: clamp(30px, 4vw, 48px); color: var(--clay); line-height: 1.3; }
.tt-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.35; color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[lang="en"] .tt-title { line-height: 1.15; letter-spacing: -.03em; }
.tt-count { direction: ltr; unicode-bidi: isolate; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tt-bar { position: absolute; inset: auto 0 0; height: 2px; }
.tt-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--fire), var(--sky)); transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .tt-bar i { transform-origin: left; }
html.fold-table .progress { display: none; }
html.fold-table .nav { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.fold-table .hero { min-height: 0; padding-block: 40px 24px; }
html.fold-table .hero-art { display: none; }
html.fold-table .hero-grid { grid-template-columns: 1fr; }
html.fold-table .hero-title { font-size: clamp(40px, 5vw, 72px); }
html.fold-table .tablet { width: min(100%, 300px, 30svh); }
html.fold-table .screen { width: min(100%, 360px, 40svh); }
html.fold-table section { scroll-margin-top: var(--seg-bottom-start); }

@media (prefers-reduced-motion: reduce) {
  html.fold-open .unfold.run, html.fold-table .unfold.run { display: none; }
}

/* spread refinements: headings stay on their own page; landscape spreads are short, so the story tightens */
html.fold-open .sec-head:not(.center):not(.sys-head) { max-width: calc(50% - var(--spread-gap) / 2); }
html.fold-open .story { padding-block: clamp(96px, 12svh, 140px) 56px; }
@media (orientation: landscape) {
  html.fold-open .story-grid { row-gap: 28px; }
  html.fold-open .tablet { width: min(100%, 300px, 24svh); }
  html.fold-open .screen { width: min(100%, 400px, 50svh); }
  html.fold-open .statement { font-size: clamp(22px, 2.3vw, 30px); }
}

.arch-dots { display: none; }
html.fold-open .arch-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.arch-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: width .3s var(--ease), background .3s; }
.arch-dots i.on { width: 22px; background: var(--fire); }

/* ---------- contact form: inquiry API states ---------- */
.form-hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
html[dir="rtl"] .form input[dir="ltr"] { text-align: right; }
.form-status { margin: 0; font-size: 15px; line-height: 1.6; text-align: center; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-sending { color: var(--muted); }
.form-status.is-ok { padding: 12px 16px; border-radius: 12px; background: rgba(124, 224, 176, .12); color: #7CE0B0; }
.form-status.is-error { padding: 12px 16px; border-radius: 12px; background: rgba(255, 122, 107, .1); color: #FF9A8E; }
.form button[disabled] { opacity: .6; cursor: progress; transform: none; }
.hp { position: absolute; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- hero x-ray ---------- */
.xr-ring { fill: none; stroke: #8FA8FF; stroke-opacity: .6; stroke-width: 2.5; pointer-events: none; filter: drop-shadow(0 0 10px rgba(143, 168, 255, .7)); }
.hero-art { -webkit-tap-highlight-color: transparent; }
.hero-art.xray-lens { cursor: crosshair; }

/* =========================================================
   SEO additions
   ========================================================= */
/* the H1 opens with what the company is and where (small, above the big tagline) */
.hero-kicker { display: block; margin-bottom: clamp(14px, 2vw, 22px); font-family: var(--f-text); font-size: clamp(14px, 1.15vw, 16.5px); font-weight: 500; line-height: 1.6; letter-spacing: .01em; color: var(--clay-hi); }
html[lang="en"] .hero-kicker { letter-spacing: .02em; }
.hero-kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; margin-inline-end: 12px; vertical-align: middle; background: var(--fire); border-radius: 2px; }

/* opening animation only on the first page of a visit */
html.pre-skip .preloader { display: none; }
html.pre-skip body.is-loading { overflow: visible; overflow-x: hidden; }

/* FAQ */
.faq { padding-block: var(--sec); background: radial-gradient(ellipse 50% 60% at 0% 40%, rgba(201, 165, 124, .07), transparent 70%), var(--night); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; cursor: pointer; border-radius: 10px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ivory); transition: color .2s; }
html[lang="ar"] .qa summary h3 { line-height: 1.7; }
.qa summary:hover h3, .qa[open] summary h3 { color: var(--fire); }
.qa-ico { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .35s var(--ease); }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ivory); border-radius: 2px; transition: transform .35s var(--ease), background .3s; }
.qa-ico::after { transform: rotate(90deg); }
.qa[open] .qa-ico { background: var(--fire); border-color: var(--fire); transform: rotate(180deg); }
.qa[open] .qa-ico::before, .qa[open] .qa-ico::after { background: #1C1004; }
.qa[open] .qa-ico::after { transform: rotate(0deg); }
.qa-a { padding: 0 4px 26px; }
.qa-a p { max-width: 68ch; color: #C6CCE4; font-size: 16.5px; line-height: 1.85; }
html[lang="en"] .qa-a p { line-height: 1.7; }
@media (max-width: 980px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
}
html.fold-open .faq-grid { grid-template-columns: 1fr 1fr; column-gap: var(--spread-gap); }
html.fold-open .faq-grid .sec-head { position: static; }

/* footer: legal line + last-updated date */
.foot-legal { display: flex; flex-direction: column; gap: 4px; }
.foot-updated { font-size: 12.5px; opacity: .8; }
