/* Ridi · ridi-iq.com — "the green line"
   One green line runs through the site like a route. Every section is a stop on it; the Ridi badge rides it as you scroll.
   White paper, navy ink, Rubik at medium weight. Photographs are large and square-cornered. No cards, no shadows, no icons.
   Sister site: al-asid.com (same calm pattern: fixed header, short intro, page heroes, a "next" link, shared footer).
   The home page is the lobby: a promise, a statement, a photographed door to each page, the map, the approvals. */

@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/rubik-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/rubik-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/rubik-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0B1A33; --navy-deep: #081428; --navy-3: #1E3A66;
  --green: #45F02A; --mint: #9BE88E; --violet: #5B2EFF;
  --paper: #FFFFFF; --tile: #F3F5F8; --rule: #E2E6EC;
  --ink: #0B1A33; --muted: #56627A; --faint: #67738C; --ghost: #7F8AA0;   /* ghost is for display-size type only */
  --font: 'Rubik', 'Segoe UI', Tahoma, Arial, sans-serif;
  --max: 1400px;
  --gut: clamp(16px, 4vw, 56px);      /* page gutter */
  --rail: clamp(30px, 7vw, 104px);    /* from the gutter to where content starts; the line lives in here */
  --lo: clamp(6px, 1vw, 14px);        /* the line's offset inside the rail */
  --lw: 4px;                          /* the line's weight */
  --rd: 44px;                         /* the badge that rides the line */
  --hdr: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #B7C0CE transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.85; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; caret-color: var(--navy); }
::selection { background: var(--green); color: var(--navy); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
h1, h2, h3 { font-weight: 500; line-height: 1.3; text-wrap: balance; }
[lang="en"] h1, [lang="en"] h2 { line-height: 1.14; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: calc(var(--gut) + var(--rail)) var(--gut); }
.hwrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
section[id] { scroll-margin-top: calc(var(--hdr) + 24px); }

/* ── the line ── */
@property --m { syntax: '<length>'; inherits: true; initial-value: 0px; }   /* a heading's first-line centre, as a real length its pseudo-elements can use */
.page { position: relative; }
.route { position: absolute; z-index: 5; top: 0; bottom: 0; width: var(--lw); inset-inline-start: calc(max(0px, (100% - var(--max)) / 2) + var(--gut) + var(--lo) - var(--lw) / 2); background: rgba(126, 140, 164, .32); clip-path: inset(0 -60px); pointer-events: none; }
.route.top { z-index: 7; background: none; }
.trail { position: sticky; top: calc(46vh + var(--rd) / 2); display: block; width: var(--lw); height: 0; }
.trail::before { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: var(--lw); height: 30000px; background: var(--green); }
.rider { position: sticky; top: 46vh; display: block; width: var(--rd); height: var(--rd); margin-inline-start: calc(var(--lw) / 2 - var(--rd) / 2); border-radius: 50%; background: var(--navy) url(img/rider.png) center / cover; box-shadow: 0 0 0 3px var(--paper); }
/* the line is born from the headline: three speed bars, the middle one runs out and turns down */
.display { position: relative; }
.head { position: absolute; top: .61em; inset-inline-start: calc(-1 * (var(--rail) - var(--lo)) - var(--lw) / 2); width: calc(var(--rail) - var(--lo) + var(--lw) / 2 - .16em); height: 0; }
.head i { position: absolute; inset-inline-end: 0; display: block; height: var(--lw); border-radius: var(--lw); background: var(--green); width: 42%; }
.head i:nth-child(1) { top: calc(-.16em - var(--lw) / 2); }
.head i:nth-child(3) { top: calc(.16em - var(--lw) / 2); }
.head .mid { top: calc(var(--lw) / -2); width: 100%; height: 1.9em; background: none; border-radius: 0; border-top: var(--lw) solid var(--green); border-inline-start: var(--lw) solid var(--green); border-start-start-radius: 26px; }
/* a stop: a ring on the line beside the heading that names it */
.stop { position: relative; --m: .65em; }
.stop::before { content: ""; position: absolute; z-index: 6; inset-inline-start: calc(-1 * (var(--rail) - var(--lo)) - 9px); top: calc(.65em - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 4px var(--navy); transition: background-color .4s var(--ease); }
.stop.on::before { background: var(--green); }
.stop::after { content: attr(data-n); position: absolute; inset-inline-start: calc(-1 * (var(--rail) - var(--lo)) + 20px); top: calc(var(--m) - 9px); font-size: 12px; font-weight: 500; line-height: 18px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ── type ── */
.display { font-size: clamp(54px, 9.4vw, 138px); line-height: 1.22; display: grid; justify-items: start; }
.display > span { white-space: nowrap; }
.h2 { font-size: clamp(30px, 3.9vw, 56px); max-width: 17ch; }
.h2 span { color: var(--ghost); }
.h2.wide { max-width: 24ch; }
.lead { font-size: clamp(18px, 1.45vw, 20px); font-weight: 300; line-height: 1.85; color: var(--muted); max-width: 31em; }

/* links and the one button */
.arr { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }
.tlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; padding-bottom: 5px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
[dir="rtl"] .tlink:hover .arr { transform: translateX(-5px) scaleX(-1); }
[dir="ltr"] .tlink:hover .arr { transform: translateX(5px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 0; background: var(--green); color: var(--navy); font-size: 16px; font-weight: 600; white-space: nowrap; border: 0; cursor: pointer; transition: background-color .25s, transform .35s var(--ease); }
.btn:hover { background: #6BF553; }
.btn:active { transform: scale(.98); }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status.soon::before { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--faint); }

/* ── intro: the scooter is drawn, charges green from 0 to 100%, then rides the line ──
   One clock: each part starts at --d; ?intro=1.8 sets --seek and freezes the film there.
   The drawing 0.05-1.05s, a held beat, the charge 1.2-2.6s, the launch at 2.65s, the logo at 3.5s, the hand-off at 4.5s.
   The film is its own beat: it keeps its own timing curves; the pages use one easing. */
@property --p { syntax: '<integer>'; inherits: false; initial-value: 0; }
#intro { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: grid; place-items: center; align-content: center; gap: clamp(8px, 2vh, 20px); overflow: hidden; transition: opacity .7s ease, visibility 0s .7s; }
#intro.done { opacity: 0; visibility: hidden; }
#intro:not(.seek) { animation: failsafe 0s 9s forwards; }   /* if the script never runs, the film still gets out of the way */
#intro *, #intro *::after { animation-delay: calc(var(--d, 0s) - var(--seek, 0s)); animation-fill-mode: both; }
#intro.seek *, #intro.seek *::after { animation-play-state: paused !important; }
.i-stage { position: relative; width: min(540px, 88vw); aspect-ratio: 480 / 380; }
[dir="ltr"] .i-stage { transform: scaleX(-1); }
.i-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.i-sc, .i-fill, .i-scan { position: absolute; inset: 0; }
.i-sc { --d: 2.65s; transform-origin: 50% 86%; animation: surge 1s cubic-bezier(.3, 0, .2, 1); }
.i-ink { --d: 2.6s; animation: gone .3s linear; }
.i-ink path { stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: ink .6s cubic-bezier(.6, 0, .2, 1); }
.i-fill { --d: 1.2s; animation: charge 1.4s cubic-bezier(.5, 0, .3, 1); }
.i-body { --d: 3.4s; animation: bob .42s ease-in-out infinite alternate; }
.i-scan { --d: 1.2s; animation: scan 1.4s cubic-bezier(.5, 0, .3, 1); }
.i-scan i { position: absolute; top: -1px; inset-inline: 21%; height: 2px; background: var(--green); --d: 2.5s; animation: gone .15s linear; }
.i-line { --d: 1.2s; stroke-dasharray: 1; animation: ink 1.4s cubic-bezier(.5, 0, .3, 1); }
#intro .i-wheel { transform-box: fill-box; transform-origin: center; animation: spin .45s linear infinite, spinup 1s cubic-bezier(.5, 0, .8, .556); animation-delay: calc(3.65s - var(--seek, 0s)), calc(2.65s - var(--seek, 0s)); animation-fill-mode: both, backwards; }
.i-go { --d: 2.65s; animation: appear .45s ease; }
#intro .i-sky { animation: appear .9s ease, sky 12s linear infinite; animation-delay: calc(2.65s - var(--seek, 0s)); animation-fill-mode: both; }
.i-dash { stroke-dasharray: 30 26; animation: road .38s linear infinite; }
.i-pulse { stroke-dasharray: 26 330; animation: pulse 1.15s linear infinite; }
.i-bars rect { transform-box: fill-box; transform-origin: left center; animation: bars .46s ease-in-out infinite alternate; }
.i-beam { --d: 2.65s; animation: lamp .6s linear; }
.i-foot { display: grid; justify-items: center; align-items: start; min-height: clamp(118px, 17vw, 146px); }
.i-foot > * { grid-area: 1 / 1; }
.i-count { display: grid; justify-items: center; align-content: start; --d: 3.35s; animation: leave .35s ease; }
.i-count b { font-size: clamp(40px, 6.4vw, 58px); font-weight: 300; line-height: 1.15; }
.i-count b::after { --d: 1.2s; counter-reset: p var(--p); content: counter(p) "%"; animation: count 1.4s cubic-bezier(.5, 0, .3, 1); }
.i-count span { font-size: 14px; color: var(--muted); }
.i-cap { display: grid; justify-items: center; align-content: start; gap: 10px; --d: 3.5s; animation: fadeUp .7s var(--ease); }
.i-cap img { height: clamp(64px, 9vw, 84px); width: auto; }
.i-cap p { font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; line-height: 1.3; color: var(--ink); }
.i-skip { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 22px); inset-inline-end: var(--gut); background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px 4px; }
.i-skip:hover { color: var(--ink); }
/* the hand-off: the film's line leaves the film, settles on the headline's bar and turns down the page */
#intro.handed .i-line, #intro.handed .i-track, #intro.handed .i-pulse { opacity: 0; }
#intro.handed .i-skip { visibility: hidden; }   /* the header is coming up underneath; the skip label would sit on it */
.i-hand { position: fixed; z-index: 101; display: block; background: var(--green); transform-origin: 0 0; transition: transform .8s var(--ease); pointer-events: none; }
@keyframes failsafe { to { visibility: hidden; } }
@keyframes ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gone { from { opacity: 1; } to { opacity: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes charge { from { clip-path: inset(87% -40% 0 -40%); } to { clip-path: inset(6% -40% 0 -40%); } }
@keyframes scan { 0% { transform: translateY(87%); opacity: 0; } 6% { opacity: 1; } 100% { transform: translateY(6%); opacity: 1; } }
@keyframes count { from { --p: 0; } to { --p: 100; } }
@keyframes surge { 0% { transform: none; } 30% { transform: translateX(6px) rotate(.7deg); } 100% { transform: none; } }
@keyframes bob { from { transform: none; } to { transform: translateY(-1.6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinup { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sky { to { transform: translateX(720px); } }
@keyframes road { to { stroke-dashoffset: -56; } }
@keyframes pulse { to { stroke-dashoffset: -356; } }
@keyframes bars { from { transform: scaleX(.45); opacity: .5; } to { transform: scaleX(1); opacity: 1; } }
@keyframes lamp { 0% { opacity: 0; } 35% { opacity: 1; } 55% { opacity: .35; } 100% { opacity: 1; } }
@keyframes leave { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.intro-lock { overflow: hidden; }

/* ── header: six plain links, one green marker under the page you are on ── */
#hdr { position: fixed; inset-inline: 0; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s; }
#hdr.scrolled { border-color: var(--rule); }
#hdr.hide { transform: translateY(-100%); }
.nav { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { flex: none; display: block; }
.logo img { height: 54px; width: auto; }
.links { position: relative; display: flex; align-items: center; gap: clamp(0px, .6vw, 8px); }
.links a { position: relative; font-size: 15px; font-weight: 500; color: var(--muted); padding: 12px clamp(8px, 1.1vw, 15px); white-space: nowrap; transition: color .25s; }
.links a:hover, .links a.active { color: var(--ink); }
.links .ind { position: absolute; left: 0; bottom: 4px; height: 3px; width: 100px; background: var(--green); opacity: 0; pointer-events: none; transform-origin: 0 50%; transition: transform .5s var(--ease), opacity .3s; }
.links .ind.on { opacity: 1; }
html:not(.js) .links a.active { box-shadow: inset 0 -3px 0 var(--green); }
.hbtn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; margin-inline-start: 8px; background: var(--navy); color: var(--green); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s; }
.hbtn:hover { background: var(--green); color: var(--navy); }
#hdr::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: right center; pointer-events: none; }
[dir="ltr"] #hdr::after { transform-origin: left center; }
#hdr.go::after { animation: sweep .9s var(--ease); }
@keyframes sweep { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.tools { display: flex; align-items: center; gap: 6px; }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; background: none; border: 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.lang svg { width: 16px; height: 16px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 27px; }
body.menu .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mnav { display: none; }

/* ── hero ── */
.hero { padding-top: calc(var(--hdr) + clamp(48px, 8vw, 120px)); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; margin-top: clamp(28px, 3.4vw, 48px); }
.hero-row .acts { display: flex; align-items: center; gap: 28px; flex: none; }
.media { position: relative; overflow: hidden; background: var(--tile); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ride { position: relative; height: clamp(190px, 26.4vw, 400px); margin-top: clamp(4px, 1.6vw, 24px); overflow: hidden; }
.ride svg { position: absolute; bottom: 0; left: 50%; height: 100%; aspect-ratio: 1440 / 380; translate: -50% 0; overflow: visible; }
[dir="ltr"] .ride svg { scale: -1 1; }
.r-far { animation: sky 40s linear infinite; }
.r-near { animation: skyn 15s linear infinite; }
.r-dash { stroke-dasharray: 30 26; animation: road .38s linear infinite; }
.r-pulse { stroke-dasharray: 26 330; animation: pulse 1.15s linear infinite; }
.r-bars rect { transform-box: fill-box; transform-origin: left center; animation: bars .46s ease-in-out infinite alternate; }
.r-sc { animation: bob .42s ease-in-out infinite alternate; }
.ride .i-wheel { transform-box: fill-box; transform-origin: center; animation: spin .45s linear infinite; }
@keyframes skyn { to { transform: translateX(1296px); } }
.ride.end { height: clamp(110px, 14vw, 190px); margin-top: 0; }
.display.go-line .head i:not(.mid) { animation: flow 1.25s ease-in-out 1.2s infinite alternate; }
.display.go-line .head i:nth-child(3) { animation-delay: 1.6s; }
@keyframes flow { from { transform: none; } to { transform: scaleX(.48); } }
.media.flat { background: var(--tile); }
.media.flat img { object-fit: contain; padding: 9% 12%; }

/* page hero (inner pages) */
.page-hero { padding-top: calc(var(--hdr) + clamp(56px, 9vw, 132px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero .display { font-size: clamp(44px, 7vw, 104px); max-width: 14ch; display: block; }
.page-hero .display > span { white-space: normal; }
.page-hero .lead { margin-top: clamp(24px, 3vw, 40px); }
.page-hero + .sec { padding-top: clamp(40px, 5vw, 72px); }

/* ── sections ── */
.sec { padding-block: clamp(84px, 11vw, 168px); }
.sec > .wrap > .lead, .sec .txt > .lead { margin-top: 24px; }
.sec .tlink { margin-top: 36px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.split .media { aspect-ratio: 4 / 5; max-inline-size: 540px; }
.below { margin-top: clamp(40px, 5vw, 72px); }
.pano { aspect-ratio: 21 / 9; }
.pano.cap { max-inline-size: 1040px; }
.duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(10px, 1.4vw, 20px); max-inline-size: 1040px; }
.duo .media:first-child { aspect-ratio: 3 / 2; } .duo .media:last-child { aspect-ratio: 1 / 1; }
.duo.flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.duo.flip .media:first-child { aspect-ratio: 1 / 1; } .duo.flip .media:last-child { aspect-ratio: 3 / 2; }
.js .par img { scale: 1.12; }

/* three columns of plain type under a hairline */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.cols > * { border-top: 1px solid var(--ink); padding-top: 18px; padding-bottom: clamp(28px, 3vw, 44px); }
.cols .n { display: block; font-size: 13px; font-weight: 500; color: var(--faint); }
.cols h3 { margin-top: clamp(24px, 3vw, 44px); font-size: clamp(30px, 3.4vw, 50px); }
.cols h3.s { font-size: clamp(22px, 2vw, 28px); margin-top: 18px; }
.cols p { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 30ch; }
.cols figure { margin-top: 20px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); }
.cols figure img { width: 100%; height: 100%; object-fit: cover; }

/* numbered rows: one stop per step (how page) */
.steps > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px clamp(32px, 6vw, 104px); padding-block: clamp(36px, 4.4vw, 64px); border-top: 1px solid var(--rule); }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps h2 { font-size: clamp(26px, 3vw, 44px); }
.steps p { color: var(--muted); max-width: 34em; }
.steps .note { margin-top: 10px; font-size: 14px; color: var(--faint); }

/* figures: thin big numerals over a hairline */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 40px); }
.figs > div { border-top: 1px solid currentColor; padding-top: 14px; }
.figs b { display: block; font-size: clamp(44px, 5.4vw, 84px); font-weight: 300; line-height: 1.15; }
.figs span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 18ch; }

/* definition rows */
.defs { border-top: 1px solid var(--ink); }
.defs > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding-block: 17px; border-bottom: 1px solid var(--rule); }
.defs dt { font-weight: 500; }
.defs dd { color: var(--muted); }
.defs.co dt { font-weight: 400; color: var(--muted); }
.defs.co dd { color: var(--ink); font-weight: 500; }
.dlink { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* link rows */
.rows { border-top: 1px solid var(--ink); }
.rows a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--rule); font-size: clamp(19px, 2vw, 28px); }
.rows a > :first-child { transition: transform .45s var(--ease); }
.rows a small { font-size: 14px; color: var(--muted); }
[dir="rtl"] .rows a small { margin-right: auto; }   /* physical on purpose: a handle written left to right must not move itself to the other side */
[dir="ltr"] .rows a small { margin-left: auto; }
[dir="rtl"] .rows a:hover > :first-child { transform: translateX(-12px); }
[dir="ltr"] .rows a:hover > :first-child { transform: translateX(12px); }
.rows .arr { width: 20px; height: 20px; }
.stores { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.stores .badge { height: 46px; width: auto; }
[lang="ar"] .b-en, [lang="en"] .b-ar { display: none; }

/* the two official seals: a short ruled list, small enough for the official files to stay sharp */
.seals { border-top: 1px solid var(--ink); }
.seals li { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); padding-block: 22px; border-bottom: 1px solid var(--rule); font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; }
.seals img { flex: none; width: 96px; height: 96px; object-fit: contain; }

/* doors: the other pages, each behind a photograph (al-asid's tiles, with Ridi's photographs) */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(10px, 1.4vw, 20px); }
.door { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 12px; }
.door figure { grid-column: 1 / -1; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.door img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door:hover img { transform: scale(1.045); }
.door h3 { margin-top: 18px; font-size: clamp(21px, 2vw, 28px); }
.door .arr { margin-top: 28px; width: 20px; height: 20px; }
[dir="rtl"] .door:hover .arr { transform: translateX(-6px) scaleX(-1); }
[dir="ltr"] .door:hover .arr { transform: translateX(6px); }
.door p { grid-column: 1 / -1; margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 24ch; }

/* ── network: the one dark field, drawn like the Volti network map ── */
.net { background: var(--navy); color: var(--mint); }
.net.big .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.net .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.net .h2 { color: var(--green); }
.net .lead { color: var(--mint); }
.net .tlink { color: var(--green); }
.net .figs { margin-top: clamp(36px, 4vw, 56px); color: var(--mint); }
.net .figs b { color: var(--green); font-size: clamp(40px, 4.4vw, 68px); }
.net .figs span { color: var(--mint); opacity: .85; }
.net .stop::after { color: #7C93BD; }
.map-box { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--navy); }
.bmap { display: block; width: 100%; height: 100%; font-family: var(--font); }
.bmap .bg { fill: var(--navy); }
.bmap .land path { fill: #1B3158; stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; }
.bmap .river path { fill: none; stroke: var(--navy); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.bmap .zone .area { fill: var(--mint); stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; transition: filter .25s; }
.bmap .zone.multi .area { stroke: var(--mint); stroke-width: 1; }
.bmap .zone.live .area { fill: var(--green); animation: breathe 3.6s ease-in-out infinite; }
.bmap .zone:nth-of-type(2) .area { animation-delay: -.9s; } .bmap .zone:nth-of-type(3) .area { animation-delay: -1.8s; } .bmap .zone:nth-of-type(4) .area { animation-delay: -2.7s; }
@keyframes breathe { 50% { fill: #7CF766; } }
.bmap.full .zone { cursor: pointer; outline: none; }
.bmap.full .zone:hover .area, .bmap.full .zone:focus-visible .area { filter: brightness(1.08); }
.bmap .zone.sel .area { stroke: var(--paper); stroke-width: 3.5; }
.bmap .zl { fill: var(--navy); font-size: var(--fa, 22px); font-weight: 700; text-anchor: middle; pointer-events: none; }
[lang="en"] .bmap .zl { font-size: var(--fe, 16px); }
.bmap .places text { fill: #8FA3C4; font-size: 15px; font-weight: 500; text-anchor: middle; pointer-events: none; }
.bmap .rname { fill: #5C7BAE; font-size: 16px; text-anchor: middle; }
.bmap .scale path { stroke: #8FA3C4; stroke-width: 2; fill: none; }
.bmap .scale text { fill: #8FA3C4; font-size: 13px; text-anchor: middle; }
.osm { position: absolute; right: 16px; bottom: 12px; font-size: 11px; color: #5C7BAE; direction: ltr; }
.zlist { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--navy-3); }
.zbtn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; width: 100%; text-align: start; padding: 16px 0; border: 0; border-bottom: 1px solid var(--navy-3); background: none; cursor: pointer; color: var(--mint); }
.zbtn b { transition: transform .45s var(--ease), color .25s; }
[dir="rtl"] .zbtn:hover b, [dir="rtl"] .zbtn.sel b { transform: translateX(-12px); }
[dir="ltr"] .zbtn:hover b, [dir="ltr"] .zbtn.sel b { transform: translateX(12px); }
.zbtn b { font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--mint); }
.zbtn.sel b { color: var(--green); }
.note { margin-top: 16px; font-size: 13px; color: #8FA3C4; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px clamp(32px, 6vw, 104px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.faq h2 { font-size: clamp(24px, 2.6vw, 36px); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa details:first-child { border-top: 1px solid var(--ink); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 19px; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .4s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding-bottom: 24px; color: var(--muted); max-width: 44em; }

/* next stop (al-asid's "next" link, on the line) */
.next a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule); }
.next b { display: block; font-size: clamp(32px, 5vw, 76px); font-weight: 500; line-height: 1.3; }
.next b span { display: block; }
.next b .q { color: var(--ghost); }
.next .go { width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); display: grid; place-items: center; flex: none; transition: background-color .35s var(--ease), box-shadow .35s; }
.next .go .arr { width: 22px; height: 22px; }
.next a:hover .go { background: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }

/* ── footer ── */
footer { background: var(--navy); color: var(--mint); }
.f-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(64px, 8vw, 112px) 56px; }
.f-logo { width: 190px; }
.f-say { margin-top: 26px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; color: var(--green); }
footer h3 { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: #7C93BD; margin-bottom: 18px; }
[lang="ar"] footer h3 { letter-spacing: 0; font-size: 13px; }
footer li { margin-bottom: 8px; font-size: 15px; }
footer li a { transition: color .2s; }
footer li a:hover { color: var(--green); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px 28px; border-top: 1px solid var(--navy-3); font-size: 13px; color: #7C93BD; }
.totop { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--mint); }
.totop svg { width: 14px; height: 14px; }

/* ── motion: lines draw, text rises, photographs settle ── */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }
.js .media.rv { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js .media.rv img { transform: scale(1.07); transition: transform 1.6s var(--ease); }
.js .media.rv.in { clip-path: inset(0); }
.js .media.rv.in img { transform: none; }
.js .head i { transform: scaleX(0); transform-origin: left center; transition: transform .7s var(--ease) .1s; }
[dir="ltr"].js .head i { transform-origin: right center; }
.js .head .mid { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .15s; }
[dir="ltr"].js .head .mid { clip-path: inset(0 0 0 100%); }
.js .go-line .head i { transform: none; }
.js .go-line .head .mid { clip-path: inset(0); }
.js .display.from-film .head .mid { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
.js .display.from-film.go-line .head .mid { clip-path: inset(0); }
.js .display.from-film > span:not(.head) { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }   /* the line lands first, then the words rise beside it */
.js .display.from-film.go-line > span:not(.head) { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 1080px) {
  .links a { font-size: 14px; padding-inline: 8px; }
  .f-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-top > :first-child { grid-column: 1 / -1; }
  .net .wrap, .net.big .wrap { grid-template-columns: minmax(0, 1fr); }
  .net.big .map-box { order: -1; }
}
@media (max-width: 860px) {
  :root { --hdr: 68px; --lw: 3px; --rd: 32px; --rail: 44px; --lo: 8px; }
  .links, .hbtn { display: none; }
  .burger { display: block; }
  .mnav { display: block; position: fixed; inset: 0; z-index: 55; background: var(--paper); padding: calc(var(--hdr) + 28px) var(--gut) 40px; transform: translateY(-100%); transition: transform .6s var(--ease); overflow-y: auto; }
  body.menu .mnav { transform: none; }
  body.menu { overflow: hidden; }
  .mnav ul { position: relative; padding-inline-start: 34px; }
  .mnav ul::before { content: ""; position: absolute; inset-inline-start: 7px; top: 26px; bottom: 26px; width: 3px; background: var(--rule); }
  .mnav li a { position: relative; display: block; padding-block: 10px; font-size: clamp(26px, 7vw, 38px); font-weight: 500; }
  .mnav li a::before { content: ""; position: absolute; inset-inline-start: -34px; top: calc(50% - 8.5px); width: 17px; height: 17px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3.5px var(--navy); }
  .mnav li a.active::before { background: var(--green); }
  .mnav .tlink { margin-top: 28px; font-size: 18px; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seals img { width: 76px; height: 76px; }
  .logo img { height: 50px; }
  .stop::after { display: none; }
  .stop::before { width: 14px; height: 14px; inset-inline-start: calc(-1 * (var(--rail) - var(--lo)) - 7px); top: calc(.65em - 7px); box-shadow: inset 0 0 0 3px var(--navy); }
  .head .mid { border-start-start-radius: 14px; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .pano { aspect-ratio: 4 / 3; }
  .split, .steps > li, .faq { grid-template-columns: minmax(0, 1fr); }
  .split .media { aspect-ratio: 4 / 4.4; }
  .bmap .places { display: none; }
  .bmap .scale { display: none; }
  [dir="rtl"] .osm { right: auto; left: 16px; }   /* keep the credit clear of the line, which runs down the start side */
  .net .map-box { width: auto; margin-inline: calc(-1 * (var(--gut) + var(--rail))) calc(-1 * var(--gut)); }   /* the map runs edge to edge on a phone, so its labels stay readable */
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols h3 { margin-top: 14px; }
  .f-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .duo, .duo.flip { grid-template-columns: minmax(0, 1fr); }
  .duo .media:last-child, .duo.flip .media:first-child { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .display { font-size: clamp(50px, 15.5vw, 72px); }
  .page-hero .display { font-size: clamp(40px, 12vw, 56px); }
  .figs { gap: 0 12px; }
  .defs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .f-top { grid-template-columns: minmax(0, 1fr); }
  .hero-row .acts { flex-wrap: wrap; gap: 18px 24px; }
}
[lang="en"] .display { font-size: clamp(44px, 7.4vw, 112px); }
[lang="en"] .page-hero .display { font-size: clamp(38px, 5.6vw, 84px); }
@media (max-width: 520px) { [lang="en"] .display { font-size: clamp(38px, 11.5vw, 56px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .media.rv { clip-path: none; }
  .js .head i { transform: none; } .js .head .mid { clip-path: none; }
  .ride *, .bmap .area, .display .head i { animation: none !important; }
}
.checks > div { grid-template-columns: 3em minmax(0, 1fr); }
.checks dt { color: var(--faint); font-weight: 400; }
.checks dd { color: var(--ink); font-size: 18px; }
