:root { --ink: #1b1d22; --muted: #5d616b; --line: #e6e6ea; --brown: #a85b00; --amber: #f2a93b; --soft: #f5f5f6; --ok: #0f7a50; }
@font-face { font-family: Plex; font-weight: 400; src: url(assets/plex-arabic-400.ttf); font-display: swap; }
@font-face { font-family: Plex; font-weight: 600; src: url(assets/plex-arabic-600.ttf); font-display: swap; }
@font-face { font-family: Plex; font-weight: 700; src: url(assets/plex-arabic-700.ttf); font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 1.0625rem/1.6 Plex, system-ui, Tahoma, sans-serif; overflow-x: clip; }
h1, h2, p, dl, dd, ol { margin: 0; padding: 0; }
h1, h2 { line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); max-width: 18ch; margin-inline: auto; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
[dir=rtl] h1, [dir=rtl] h2 { letter-spacing: 0; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; top: -5rem; z-index: 20; background: #fff; padding: .5rem 1rem; }
.skip:focus { top: .5rem; }

.top { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: .9rem; height: 4.25rem; }
.top img { display: block; }
nav { display: flex; gap: 1.6rem; margin-inline: auto; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
#lang { margin-inline-start: auto; font: inherit; font-size: .95rem; background: none; border: 0; color: var(--ink); cursor: pointer; }
nav + #lang { margin-inline-start: 0; }
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 99px; background: var(--brown); color: #fff; font-weight: 600; text-decoration: none; border: 1.5px solid var(--brown); }
.btn:hover { background: #8d4c00; }
.btn.small { padding: .4rem 1.1rem; font-size: .92rem; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #cfd0d6; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.light { background: #fff; color: var(--brown); border-color: #fff; }

/* Hero: the photograph fills the first screen; a check frame finds the ziggurat. */
.hero { --w: max(100vw, 175svh, 66rem); position: relative; height: max(100svh, 38rem); overflow: hidden; background: #8c9099; color: #fff; text-align: center; }
.media { position: absolute; left: 50%; width: var(--w); height: calc(var(--w) / 1.75); bottom: min(0px, calc((max(100svh, 38rem) - var(--w) / 1.75) * .6)); translate: -50% calc(var(--scroll, 0) * .35px); }
.media img { display: block; width: 100%; height: 100%; animation: push 3.2s cubic-bezier(.2,.7,.2,1) both; transform-origin: 45% 62%; }
.hero::after { content: ""; position: absolute; inset: 0 0 35%; background: linear-gradient(rgb(14 16 22 / .88), rgb(14 16 22 / .55) 55%, transparent); pointer-events: none; }
.words { position: relative; z-index: 2; padding-top: clamp(6rem, 13svh, 9rem); opacity: calc(1 - var(--scroll, 0) / 450); }
.words > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.words h1 { text-shadow: 0 4px 30px rgb(0 0 0 / .35); animation-delay: .25s; }
.words p { max-width: 40rem; margin: 1rem auto 0; font-size: 1.2rem; animation-delay: .5s; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; animation-delay: .7s; }
.hero .btn.ghost { background: rgb(255 255 255 / .12); backdrop-filter: blur(8px); color: #fff; border-color: rgb(255 255 255 / .55); }
.lock { position: absolute; left: 13%; top: 40%; width: 82%; height: 44%; animation: settle 1.1s 1.5s cubic-bezier(.2,.8,.2,1) both; }
.lock i { position: absolute; width: 3rem; height: 3rem; border: 0 solid var(--amber); }
.lock i:nth-of-type(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.lock i:nth-of-type(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.lock i:nth-of-type(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.lock i:nth-of-type(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
.lock b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--amber); box-shadow: 0 0 34px 12px rgb(242 169 59 / .5); opacity: 0; animation: sweep 2.4s 2.4s ease-in-out 2 alternate; }
@keyframes push { from { transform: scale(1.18); } }
@keyframes rise { from { opacity: 0; translate: 0 2.5rem; filter: blur(8px); } }
@keyframes settle { from { opacity: 0; scale: 1.25; } }
@keyframes sweep { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes pop { from { opacity: 0; scale: .4; } }

.top { position: fixed; inset: 0 0 auto; transition: background .3s, border-color .3s; }
.top .logo .dk, .top.clear .logo .lt { display: block; }
.top .logo .lt, .top.clear .logo .dk { display: none; }
.top.clear { background: transparent; backdrop-filter: none; border-color: transparent; }
.top.clear nav a, .top.clear #lang { color: #fff; }

.iraq { text-align: center; padding-block: clamp(4rem, 9vw, 7rem); }
.iraq p { max-width: 46rem; margin: 1.4rem auto 0; color: var(--muted); font-size: 1.15rem; }
.iraq ul { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.iraq li { border-top: 3px solid var(--brown); padding-top: 1rem; }
.iraq b { display: block; font-size: 1.3rem; }
.iraq span { color: var(--muted); }

/* Motion that follows the reader. Without script everything is simply visible. */
.js .iraq li, .js .window { transition: opacity .8s, translate .9s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.js .iraq li:nth-child(2) { transition-delay: .15s; }
.js .iraq li:nth-child(3) { transition-delay: .3s; }
.js .iraq:not(.in) li { opacity: 0; translate: 0 5rem; }
.js .window:not(.in) { opacity: 0; transform: perspective(1200px) rotateX(24deg) translateY(6rem); }
.js .window.in .verbs span:first-child { animation: press 2.4s 1.2s ease-in-out 3; }
@keyframes press { 8% { scale: .9; box-shadow: 0 0 0 0 rgb(168 91 0 / .6); } 30% { scale: 1; box-shadow: 0 0 0 14px rgb(168 91 0 / 0); } }

/* Phone: a fixed 290 x 600 drawing of the customer page. */
.phone { flex: none; width: 290px; height: 600px; padding: 10px; border-radius: 48px; background: #15161a; box-shadow: 0 40px 70px -20px rgb(60 35 0 / .35), inset 0 0 0 2px #45474f; text-align: start; position: relative; }
.phone::after { content: ""; position: absolute; top: 19px; left: 50%; translate: -50%; width: 84px; height: 24px; border-radius: 20px; background: #15161a; }
.screen { height: 100%; border-radius: 39px; background: var(--soft); padding: 52px 18px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.5; overflow: hidden; }
.screen b.title { font-size: 19px; line-height: 1.35; }
.screen .sub { color: var(--muted); }
.screen .who { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.screen .who i { width: 26px; height: 26px; border-radius: 8px; background: var(--brown); }
.screen .box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.screen .go { margin-top: auto; text-align: center; background: var(--brown); color: #fff; border-radius: 12px; padding: 11px; font-weight: 700; font-size: 14px; }
.screen .avatar { width: 76px; height: 76px; margin: 40px auto 8px; border-radius: 24px; background: var(--brown); }
.screen .center { text-align: center; }
.screen .row { display: flex; align-items: center; gap: 10px; }
.screen .row small { display: block; color: var(--muted); }
.screen .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ececf0; color: var(--muted); font-weight: 700; }
.screen .done .dot { background: var(--ok); color: #fff; }
.screen .now .dot { background: var(--brown); color: #fff; }

.shot { flex: 1; min-height: 0; margin: 0 -18px; background: #23252b; display: grid; place-items: center; position: relative; }
.shot::before { content: ""; position: absolute; inset: 20% 7%; border: 3px solid var(--amber); border-radius: 14px; }
.idcard { width: 78%; aspect-ratio: 1.58; border-radius: 9px; background: linear-gradient(135deg, #f4f8f2, #cfe0d6); padding: 9px; display: grid; grid-template-columns: 34% 1fr; gap: 4px 9px; align-content: center; direction: ltr; font-size: 8px; color: #22332b; position: relative; }
.idcard svg { grid-row: span 4; width: 100%; background: #b9cdc2; border-radius: 4px; }
.idcard u { height: 6px; border-radius: 3px; background: #7d968a; align-self: center; text-decoration: none; }
.idcard em { grid-column: 1 / -1; font: 700 8.5px/1.5 ui-monospace, Menlo, monospace; font-style: normal; white-space: nowrap; overflow: hidden; }
.idcard strong { position: absolute; inset: 38% 0 auto; text-align: center; font-size: 17px; letter-spacing: .2em; color: rgb(168 91 0 / .55); rotate: -14deg; }
.oval { width: 190px; height: 250px; margin: 6px auto 0; border-radius: 50%; border: 5px solid #1e9d68; background: #2f323a; overflow: hidden; position: relative; }
.oval svg { position: absolute; inset: auto 0 0; width: 100%; }
.oval::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--amber); box-shadow: 0 0 22px 8px rgb(242 169 59 / .55); animation: scan 2.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 14%; } to { top: 84%; } }

.journey { padding-block: clamp(4rem, 9vw, 7rem); }
.pin { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.journey ol { list-style: none; margin-top: 2rem; display: grid; gap: .4rem; }
.journey button { width: 100%; text-align: start; font: inherit; color: var(--ink); background: none; border: 0; border-inline-start: 4px solid var(--line); padding: .8rem 1.2rem; cursor: pointer; }
.journey button b { display: block; font-size: 1.2rem; }
.journey button span { display: block; color: var(--muted); font-size: .98rem; }
.journey button[aria-pressed=true] { border-color: var(--brown); background: #fdf4e4; }
.demo { position: sticky; top: 6rem; align-self: start; display: flex; justify-content: center; padding-block: 2rem; border-radius: 2rem; background: var(--soft); }
.demo .screen { animation: in .35s ease-out; }
@keyframes in { from { opacity: 0; translate: 0 14px; } }

.review { background: var(--soft); padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.review p { max-width: 44rem; margin: 1.2rem auto 3rem; color: var(--muted); }
.review small { display: block; margin-top: 1.2rem; color: var(--muted); }
.window { text-align: start; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgb(20 20 30 / .35); display: grid; grid-template-columns: 12rem 1fr 1.5fr; min-height: 26rem; font-size: .85rem; }
.window aside { background: #1f2228; color: #c9ced8; padding: 1.2rem .8rem; display: grid; gap: .3rem; align-content: start; }
.window aside img { width: 90px; margin: 0 .5rem 1rem; }
.window aside span { padding: .45rem .6rem; border-radius: 7px; }
.window aside span:nth-of-type(1) { background: #343944; color: #fff; }
.queue { border-inline-end: 1px solid var(--line); }
.queue div { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.queue div:first-child { background: #fdf4e4; }
.queue small { display: block; margin: 0; color: var(--muted); }
.case { padding: 1.2rem; display: grid; gap: .9rem; align-content: start; min-width: 0; }
.pics { display: grid; grid-template-columns: 1.6fr 1fr; gap: .7rem; }
.pics > div { background: #23252b; border-radius: 10px; display: grid; place-items: center; height: 9.5rem; overflow: hidden; }
.pics > div > svg { height: 100%; }
.window table { width: 100%; border-collapse: collapse; }
.window td { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.window td:last-child { text-align: end; color: var(--ok); font-weight: 600; }
.verbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.verbs span { padding: .45rem 1rem; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; }
.verbs span:first-child { background: var(--brown); border-color: var(--brown); color: #fff; }


.developers { background: #1f2228; color: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split > * { min-width: 0; }
.split p { margin-top: 1.2rem; color: #c9ced8; }
.split ul { padding-inline-start: 1.2rem; margin-bottom: 0; }
pre { margin: 0; padding: 1.75rem; background: #121317; color: var(--amber); border-radius: 16px; overflow-x: auto; font: .92rem/1.8 ui-monospace, Menlo, monospace; text-align: left; }


.contact { text-align: center; background: var(--brown); color: #fff; border-radius: 2rem; padding: clamp(3rem, 7vw, 5rem) 1.5rem; }
.contact p { max-width: 34rem; margin: 1.2rem auto 2rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2.5rem; color: var(--muted); font-size: .9rem; }
section[id] { scroll-margin-top: 4.5rem; }

@media (max-width: 60rem) {
  nav { display: none; }
  nav + #lang { margin-inline-start: auto; }
  .pin, .split, .iraq ul { grid-template-columns: minmax(0, 1fr); }
  .window { grid-template-columns: minmax(0, 1fr); }
  .window aside, .queue { display: none; }
}
@media (max-width: 40rem) {
  .top .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .oval::after, .demo .screen { animation: none; }
}

@media (max-width: 60rem) { .demo { position: static; } .lock { display: none; } .media { translate: -50% calc(var(--scroll, 0) * .2px); } }
@media (prefers-reduced-motion: reduce) {
  .media img, .words > *, .lock, .window .verbs span { animation: none !important; }
  .lock b { display: none; }
  .js .reveal, .js .reveal * { transition: none !important; }
  .media { translate: -50% 0; }
}
/* Narrow screens: the whole ziggurat under the words, not a slice of its stairs. */
@media (max-width: 40rem) {
  .hero { --w: 122vw; background: #8e97a5; }
  .media { height: calc(var(--w) * .5714); bottom: 0; }
  .media img { -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
}

/* The scan, strong enough to read on a bright photograph. */
.lock i { width: 4.5rem; height: 4.5rem; filter: drop-shadow(0 0 8px rgb(242 169 59 / .9)); }
.lock i:nth-of-type(1) { border-width: 6px 0 0 6px; }
.lock i:nth-of-type(2) { border-width: 6px 6px 0 0; }
.lock i:nth-of-type(3) { border-width: 0 0 6px 6px; }
.lock i:nth-of-type(4) { border-width: 0 6px 6px 0; }
.lock b { width: 5px; margin-left: -2.5px; background: #ffe3ad; box-shadow: 0 0 12px 4px #ffb43c, 0 0 60px 26px rgb(255 160 30 / .75); }
.lock b::before { content: ""; position: absolute; inset: 0 -7rem; background: linear-gradient(90deg, transparent, rgb(255 170 40 / .42), transparent); }

/* After the scan: the stamp on the frame, then the building traced as line work. */
.lock .seal { position: absolute; top: -1.35rem; inset-inline-end: 1.5rem; display: flex; align-items: center; gap: .6rem; white-space: nowrap; background: #fff; color: var(--ink); font-weight: 700; font-size: 1.1rem; padding: .35rem; padding-inline-end: 1.2rem; border-radius: 99px; box-shadow: 0 10px 30px rgb(0 0 0 / .35), 0 0 0 3px var(--amber); animation: pop .6s 7.2s cubic-bezier(.2,1.6,.4,1) both; }
.seal em { font-style: normal; }
.seal svg { width: 2.1rem; height: 2.1rem; padding: .3rem; border-radius: 50%; background: var(--ok); fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.seal path { stroke-dasharray: 1; animation: draw .5s 7.6s ease-out both; }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: #ffd48a; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgb(255 160 30 / .9)); transform-origin: 45% 62%; animation: push 3.2s cubic-bezier(.2,.7,.2,1) both; }
.wire path { stroke-dasharray: 1; animation: draw 2s 7.7s ease-in-out both; opacity: .85; }
.wire .shell { stroke-width: 2.8; opacity: 1; }
.wire circle { fill: #fff; stroke: var(--amber); stroke-width: 2.5; animation: pop .4s 9.4s both; transform-box: fill-box; transform-origin: center; }
@keyframes draw { from { stroke-dashoffset: 1; visibility: hidden; } 1% { visibility: visible; } }
@media (max-width: 40rem) {
  .lock { display: block; left: 12%; width: 76%; }
  .lock i { width: 1.6rem; height: 1.6rem; }
  .lock .seal { font-size: .85rem; top: -2.6rem; inset-inline-end: 0; }
  .seal svg { width: 1.6rem; height: 1.6rem; }
  .wire circle { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lock .seal, .seal path, .wire, .wire * { animation: none !important; } }

/* Stamp on the lower left corner in both languages; green points. */
.lock .seal { top: auto; bottom: -1.35rem; left: 1.5rem; right: auto; }
.wire circle { fill: #2ee67c; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 5px #17c964); }
@media (max-width: 40rem) { .lock .seal { top: auto; bottom: -1.2rem; left: 0; } }

@media (min-width: 60.01rem) and (min-height: 38rem) {
  .journey { height: 340vh; padding: 0; }
  .pin { position: sticky; top: 4.25rem; height: calc(100vh - 4.25rem); }
  .demo { position: static; align-self: center; padding-block: 1.25rem; }
}
@media (min-width: 60.01rem) and (max-height: 48rem) { .demo .phone { zoom: .82; } .journey h2 { font-size: 2rem; } .journey ol { margin-top: 1rem; } .journey button { padding-block: .45rem; } }

/* Three whole screens in the page language, lit from behind. */
.showcase { background: radial-gradient(60% 55% at 50% 62%, rgb(242 169 59 / .38), transparent 70%), #17181d; color: #fff; text-align: center; padding-block: clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.showcase > p { margin-top: .8rem; color: #c9ced8; font-size: 1.15rem; }
.stage { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1.5rem, 5vw, 5rem); margin-top: 3.5rem; direction: ltr; perspective: 1400px; }
.stage figure { margin: 0; transition: opacity .9s, translate 1.1s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1); }
.stage figure:nth-child(1) { transform: rotateY(14deg); margin-top: 3rem; }
.stage figure:nth-child(3) { transform: rotateY(-14deg); margin-top: 3rem; }
.stage figure:nth-child(2) { transition-delay: .15s; }
.stage figure:nth-child(3) { transition-delay: .3s; }
.js .stage:not(.in) figure { opacity: 0; translate: 0 8rem; }
.stage .phone { box-shadow: 0 50px 90px -20px rgb(0 0 0 / .7), 0 0 0 1px #5a5d67, inset 0 0 0 2px #45474f; }
.float { position: relative; }
.chip { position: absolute; top: 30%; right: -2.2rem; white-space: nowrap; background: #fff; color: var(--ok); font-weight: 700; font-size: .95rem; padding: .5rem 1rem; border-radius: 99px; box-shadow: 0 14px 30px rgb(0 0 0 / .4); }
.stage figure:nth-child(1) .chip { right: auto; left: -2.2rem; top: 70%; }
.stage figure:nth-child(2) .chip { top: 74%; }
@media (max-width: 68rem) {
  .stage { flex-direction: column; align-items: center; gap: 3rem; }
  .stage figure:nth-child(n) { transform: none; margin-top: 0; }
  .chip, .stage figure:nth-child(1) .chip { right: -.8rem; left: auto; }
}
.showcase .screen { color: var(--ink); }
.stage figure:nth-child(3) .chip { top: 74%; }

/* Security: one large promise, three beside it, each with its drawing. */
.data { padding-block: clamp(4rem, 9vw, 7rem); }
.data h2 { text-align: center; }
.data dl { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.1rem; margin-top: 3rem; }
.data dl div { position: relative; overflow: hidden; border-radius: 24px; padding: 2rem; background: linear-gradient(160deg, #fff, #fbf3e6); border: 1px solid #f0e2c8; }
.data dt { font-weight: 700; font-size: 1.35rem; line-height: 1.35; margin-top: 1.5rem; }
.data dd { color: var(--muted); margin-top: .5rem; }
.data svg { width: 4.25rem; height: 4.25rem; padding: .8rem; border-radius: 20px; background: var(--brown); box-shadow: 0 14px 28px -10px rgb(168 91 0 / .7); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.data .p1 { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(90% 70% at 70% 15%, rgb(242 169 59 / .35), transparent 70%), #1b1d22; border-color: #1b1d22; color: #fff; }
.data .p1 svg { width: min(15rem, 70%); height: auto; aspect-ratio: 1; margin: auto auto; padding: 0; background: none; box-shadow: none; stroke: var(--amber); stroke-width: 1.4; filter: drop-shadow(0 0 14px rgb(242 169 59 / .55)); }
.data .p1 dt { font-size: 1.8rem; }
.data .p1 dd { color: #c9ced8; }
.data .p4 { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 1.5rem; align-content: center; }
.data .p4 svg { grid-row: span 2; }
.data .p4 dt { margin-top: 0; align-self: end; }
/* The drawings are traced once, when the section is reached. */
.js .data:not(.in) path { stroke-dashoffset: 1; opacity: 0; }
.js .data path { stroke-dasharray: 1; transition: stroke-dashoffset 1.4s .2s ease-out, opacity .1s .2s; }
@media (max-width: 60rem) {
  .data dl { grid-template-columns: minmax(0, 1fr); }
  .data .p1, .data .p4 { grid-row: auto; grid-column: auto; }
  .data .p1 svg { margin: 0 auto; width: 9rem; }
  .data .p4 { display: block; }
  .data .p4 dt { margin-top: 1.5rem; }
}

/* Phone layout: each section reads in about one screen. */
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  h2 { font-size: 1.75rem; }

  .hero { height: 40rem; }
  .words { padding-top: 5.5rem; }
  .words h1 { font-size: 2.5rem; }
  .words p { font-size: 1rem; margin-top: .75rem; }
  .actions { flex-wrap: nowrap; gap: .5rem; margin-top: 1.1rem; }
  .actions .btn { padding: .65rem 1rem; font-size: .92rem; white-space: nowrap; }

  .iraq { padding-block: 3rem; text-align: start; }
  .iraq p { font-size: 1rem; margin-top: 1rem; }
  .iraq ul { margin-top: 1.5rem; gap: 1rem; }
  .iraq li { border-top: 0; border-inline-start: 3px solid var(--brown); padding: 0; padding-inline-start: .9rem; }
  .iraq b { font-size: 1.1rem; }

  /* Screens swipe sideways instead of stacking. */
  .showcase { padding-block: 3rem; }
  .showcase h2, .showcase > p { padding-inline: 1.25rem; }
  .stage { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 1.25rem; margin-top: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem calc(50% - 7.1rem) 1rem; scrollbar-width: none; }
  .stage figure { flex: none; scroll-snap-align: center; }
  .stage .phone { zoom: .78; }
  .js .stage:not(.in) figure { translate: 0 3rem; }
  .chip, .stage figure:nth-child(1) .chip { font-size: .82rem; right: -.4rem; left: auto; }

  /* Journey: the screen first, the steps as cards to swipe under it. */
  .journey { padding-block: 3rem; }
  .pin { display: flex; flex-direction: column; gap: 1.25rem; align-items: stretch; }
  .pin > div:first-child { display: contents; }
  .journey h2 { order: 0; }
  .demo { order: 1; padding-block: 1rem; border-radius: 1.5rem; }
  .demo .phone { zoom: .72; }
  .journey ol { order: 2; display: flex; gap: .75rem; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .journey li { flex: 0 0 82%; scroll-snap-align: center; display: flex; }
  .journey button { border-inline-start: 0; border-top: 4px solid var(--line); background: var(--soft); border-radius: 0 0 14px 14px; padding: .8rem 1rem; }
  .journey button b { font-size: 1.05rem; }
  .journey button span { font-size: .9rem; }

  .review { padding-block: 3rem; }
  .review p { margin-bottom: 1.75rem; }

  .developers { padding-block: 3rem; }
  .split { gap: 1.75rem; }
  pre { padding: 1.1rem; font-size: .8rem; }

  .data { padding-block: 3rem; }
  .data dl { margin-top: 1.5rem; gap: .75rem; }
  .data dl div.p1, .data dl div.p2, .data dl div.p3, .data dl div.p4 { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-content: start; padding: 1.1rem; border-radius: 18px; }
  .data dl div svg, .data .p1 svg, .data .p4 svg { grid-row: span 2; width: 3.25rem; height: 3.25rem; margin: 0; padding: .6rem; border-radius: 14px; }
  .data .p1 svg { background: rgb(242 169 59 / .14); stroke-width: 2.4; }
  .data dl dt, .data .p1 dt, .data .p4 dt { margin: 0; font-size: 1.08rem; align-self: start; }
  .data dd { font-size: .92rem; margin-top: .2rem; }

  .contact { padding: 2.5rem 1.25rem; }
}
@media (max-width: 40rem) { .demo { align-self: stretch; } }
