/* HimaCode · Rooms (index.html)
   Every section is a full room on a hidden map; "Next" carries you right, down, left… */
:root {
  --ink: #111110;
  --ink-2: #33322f;
  --paper: #f3f2ee;
  --sand: #ebe5d8;
  --amber: #f3cf86;
  --signal: #F08A24;
  --muted: #74706a;
  --line: rgba(17, 17, 16, .12);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
html[lang="ar"] { --sans: "Zain", "Geist", system-ui, sans-serif; }
html[lang="ar"] body { font-size: 17px; }   /* Zain draws a little smaller than Geist */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #1b1a18; color: var(--ink); font: 400 16px/1.6 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ol { margin: 0; }
[hidden] { display: none !important; }

/* ================= bar ================= */
.bar { position: fixed; z-index: 50; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand, .bar-right { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 16px 0 10px; border-radius: 15px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(17, 17, 16, .08); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .5); }
.brand { font: 700 17px "Geist", sans-serif; letter-spacing: -.02em; }
.bar-right { padding: 0 5px 0 14px; gap: 6px; }
.count { font: 500 12px var(--mono); color: var(--muted); margin-inline-end: 6px; direction: ltr; }
.map-btn, .lang { height: 38px; border-radius: 11px; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.map-btn:hover, .lang:hover, .map-btn[aria-expanded="true"] { background: rgba(17, 17, 16, .07); }
.lang { width: 38px; justify-content: center; padding: 0; background: var(--ink); color: #fff; }
.lang:hover { background: var(--signal); }
.map-icon { display: grid; grid-template-columns: 6px 6px; gap: 2px; }
.map-icon i { width: 6px; height: 6px; border-radius: 2px; background: var(--ink); opacity: .35; }
.map-icon i:first-child { opacity: 1; background: var(--signal); }

/* the small map */
.map { position: fixed; z-index: 49; top: 70px; right: 14px; width: 270px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(17, 17, 16, .08); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
html[dir="rtl"] .map { right: auto; left: 14px; }
.map-grid { position: relative; height: 200px; }
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-path polyline { stroke: var(--ink); stroke-opacity: .25; stroke-width: 2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.map-cell { position: absolute; width: calc(33.33% - 8px); height: calc(33.33% - 8px); border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 8px; text-align: start; font-size: 11.5px; font-weight: 600; line-height: 1.2; transition: border-color .2s, background-color .2s, transform .2s; }
.map-cell small { font: 500 10px var(--mono); color: var(--muted); }
.map-cell:hover { border-color: var(--ink); transform: translateY(-1px); }
.map-cell.seen { background: var(--paper); }
.map-cell.here { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-cell.here small { color: var(--signal); }

/* ================= stage, camera, plane ================= */
.stage {
  position: fixed; inset: 0; overflow: hidden;
  background-color: #1b1a18;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
}
.camera { position: absolute; inset: 0; transform-origin: 50% 50%; }
.plane { position: absolute; left: 0; top: 0; }
.room {
  position: absolute; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: flex;
  transition: border-radius .5s var(--ease), box-shadow .5s var(--ease);
  scrollbar-width: none;   /* rooms still scroll (wheel, touch, keys); the bar itself stays out of sight */
}
/* .trip = the stage while moving between rooms (not .travel: that is the button bar) */
.stage.trip .room { border-radius: 34px; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8); }
.stage.trip .camera, .stage.trip .plane { will-change: transform; }
.room::-webkit-scrollbar { display: none; }
.room-in { margin: auto; width: 100%; max-width: 1220px; padding: 112px clamp(18px, 4vw, 48px) 128px; position: relative; transition: opacity .55s var(--ease), filter .55s var(--ease), scale .55s var(--ease); }
/* the room you leave: its content softly fades and sinks a little while the room shrinks */
.room.leaving .room-in, .room.leaving .hero-glow, .room.leaving .hero-grid { opacity: 0; filter: blur(3px); scale: .97; }

.skel { position: absolute; inset: 0; display: flex; pointer-events: none; z-index: 0; opacity: 1; transition: opacity .7s var(--ease) .1s; }
.room.on .skel { opacity: 0; }
.room > .room-in { z-index: 1; }
.skel-in { margin: auto; width: 100%; max-width: 1220px; padding: 112px clamp(18px, 4vw, 48px) 128px; display: flex; flex-direction: column; gap: 14px; }
.skel i { display: block; border-radius: 12px; background-color: var(--sk); background-image: linear-gradient(100deg, transparent 30%, var(--sk-shine) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; background-repeat: no-repeat; }
.skel .e { width: 130px; height: 12px; border-radius: 6px; }
.skel .t1 { width: min(560px, 62%); height: clamp(34px, 4.6vw, 58px); margin-top: 4px; }
.skel .t2 { width: min(380px, 42%); height: clamp(34px, 4.6vw, 58px); margin-bottom: clamp(16px, 3vw, 34px); }
.skel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skel-row i { height: clamp(150px, 26vh, 260px); border-radius: 22px; }
.stage.trip .room:not(.on) .skel i { animation: shine 1.3s linear infinite; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.room { --sk: rgba(17, 17, 16, .07); --sk-shine: rgba(255, 255, 255, .55); }
.room-hero, .room-ink, .room-cine, .room-stage { --sk: rgba(255, 255, 255, .07); --sk-shine: rgba(255, 255, 255, .09); }
.room-signal { --sk: rgba(255, 255, 255, .16); --sk-shine: rgba(255, 255, 255, .22); }
.room-amber { --sk: rgba(17, 17, 16, .08); --sk-shine: rgba(255, 255, 255, .4); }
@media (max-width: 640px) { .skel-in { padding-top: 84px; } .skel-row { grid-template-columns: 1fr; } .skel-row i:nth-child(n+2) { display: none; } }

/* room colours */
.room-paper { background: var(--paper); }
.room-sand { background: var(--sand); }
.room-ink { background: var(--ink); color: #f1eee7; }
.room-amber { background: var(--amber); }
.room-signal { background: var(--signal); color: #fff; }

/* things appear when you arrive in their room */
/* (uses `translate`, so a card's hover `transform` never fights its entrance) */
.rv { --rvd: calc(var(--i, 0) * 65ms + 100ms); opacity: 0; translate: 0 18px; transition: opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.room.on .rv { opacity: 1; translate: 0 0; }
.svc.rv, .proj.rv, .pkg.rv { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }

/* shared type */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--signal); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.room-ink .eyebrow, .room-hero .eyebrow { color: #ffb05c; }
.room-signal .eyebrow { color: #ffd9cc; }
.room-amber .eyebrow { color: #a3420f; }
.room-title { font: 700 clamp(34px, 5vw, 64px) / 1.02 var(--sans); letter-spacing: -.045em; max-width: 16ch; }
html[lang="ar"] .room-title { letter-spacing: 0; line-height: 1.3; }
.room-head { margin-bottom: clamp(26px, 4vw, 48px); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 56ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 15px; border: 1.5px solid currentColor; background: transparent; font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-signal:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { color: inherit; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }

/* ================= 1 · hero ================= */
.live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
/* words rise from behind a mask, one after another */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); filter: blur(6px); opacity: 0; transition: transform 1s var(--ease), filter 1s var(--ease), opacity .6s; transition-delay: calc(var(--i) * 75ms + 150ms); }
.room.on .w > span { transform: none; filter: none; opacity: 1; }
/* Arabic letters reach far below the line (the dots of ي, the tails of ع ق ن): give the mask room,
   and take the same room back with a negative margin so the lines keep their spacing */
html[lang="ar"] .w { padding: .12em .04em .4em; margin: -.12em -.04em -.4em; }
/* the turning word (inside a .w, whose overflow hides the words rolling in and out) */
/* Arabic: the turning word ends the sentence, so the colour moves to the last line */

/* the three living objects */
.room.on .obj { opacity: 1; scale: 1; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* a living platform: the dashboard */
@keyframes live-dot { 50% { opacity: .3; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-14px); } }

/* the floating pieces around it */
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } }


/* ================= 3 · work ================= */
/* a wider room: big pictures and a comfortable column of text */

/* the story: all panels share one place, the active one fades in */

/* the stack of windows */
/* close to the screenshots' own shape (about 2 : 1 under the window bar), so little is cut off */
/* the window leaving the front swings aside, then slips to the back of the pile */
@keyframes to-back {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); z-index: 6; opacity: 1; }
  45% { transform: translate3d(-62%, 10%, 0) rotate(-10deg) scale(.86); z-index: 6; opacity: 1; }
  55% { z-index: 0; }
  100% { transform: var(--t); z-index: 0; opacity: var(--o); }
}
@keyframes to-back-rtl {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); z-index: 6; opacity: 1; }
  45% { transform: translate3d(62%, 10%, 0) rotate(10deg) scale(.86); z-index: 6; opacity: 1; }
  55% { z-index: 0; }
  100% { transform: var(--t); z-index: 0; opacity: var(--o); }
}
/* the front window breathes: a very slow zoom */
/* screenshots that must start whole (a dashboard): the slow zoom begins from the full picture */
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }

/* the last card: there is more */

/* the tabs: the active one fills up while it is shown */

/* work: who it was built for, and Innovation Nation's numbers */

/* ================= 4 · clients ================= */
.cl-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(620px circle at var(--mx, 50%) var(--my, 55%), rgba(240, 138, 36, .10), transparent 65%); }
.cl-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.cl-head .eyebrow { justify-content: center; }
.cl-head .room-title { max-width: none; white-space: nowrap; }   /* one line; phones may wrap (below) */

/* the stage the logos float in */
.cloud { position: relative; height: clamp(400px, 58vh, 600px); --s: 1; }
.fl {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--w) * var(--s));
  translate: calc(-50% + var(--px, 0px) * var(--d) / 20) calc(-50% + var(--py, 0px) * var(--d) / 20);
  transition: translate .6s var(--ease), opacity .9s var(--ease), scale .9s var(--ease);
  opacity: 0; scale: .7;
}
.room.on .fl { opacity: 1; scale: 1; transition-delay: 0s, calc(var(--k) * 90ms + 450ms), calc(var(--k) * 90ms + 450ms); }
.fl img {
  display: block; width: 100%; height: auto; max-height: calc(var(--w) * var(--s) * var(--r, .62)); object-fit: contain;   /* --r: 1 for square logos */
  animation: drift calc(5s + var(--k) * .45s) ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.9s);
  transition: scale .45s var(--ease), filter .45s;
  filter: drop-shadow(0 14px 18px rgba(17, 17, 16, .10));
}
/* RIFA's logo is white: drawn dark so it shows on this light room */
.fl img.dark { filter: invert(1) brightness(.15) drop-shadow(0 14px 18px rgba(17, 17, 16, .10)); }
.fl:hover img { scale: 1.12; }
@keyframes drift { 0% { transform: translateY(-9px) rotate(-1.2deg); } 100% { transform: translateY(9px) rotate(1.2deg); } }
.room:not(.on) .fl img { animation-play-state: paused; }

/* the empty place in the middle */
.add {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(200px, 19vw, 270px); aspect-ratio: 1; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center;
  box-shadow: 0 40px 70px -30px rgba(240, 138, 36, .55);
  transition: scale .45s var(--ease), background-color .3s;
}
.add-ring, .add::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 2px dashed rgba(240, 138, 36, .55); animation: spin 26s linear infinite; }
.add::before { inset: -16px; border: 1px solid rgba(240, 138, 36, .45); animation: ping 2.8s var(--ease) infinite; }
.add-plus { font: 200 clamp(46px, 4.4vw, 64px) / .9 var(--sans); color: var(--signal); transition: transform .5s var(--ease); }
.add b { font: 700 clamp(19px, 1.7vw, 24px) / 1.15 var(--sans); letter-spacing: -.02em; }
html[lang="ar"] .add b { letter-spacing: 0; font-size: clamp(21px, 1.9vw, 27px); }
.add small { font-size: 13px; color: #b9b4aa; max-width: 16ch; line-height: 1.35; }
html[lang="ar"] .add small { font-size: 15px; }
.add:hover { scale: 1.06; background: var(--signal); }
.add:hover small { color: #2a1a08; }
.add:hover .add-plus { color: #fff; transform: rotate(90deg); }
.room:not(.on) .add-ring, .room:not(.on) .add::before { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }

/* ================= 4 · impact ================= */
.sparkle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.im-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 30%), rgba(241, 192, 74, .13), transparent 65%); }
.im-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.im-head .eyebrow { justify-content: center; color: #f1c04a; }
.im-head .room-title { max-width: none; }

/* the two honours */
.aw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.medal-card {
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(24px, 2.8vw, 36px); text-align: center;
  background: linear-gradient(160deg, #22201c, #161513 60%); border: 1px solid rgba(241, 192, 74, .22);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), border-color .4s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd);
}
.medal-card::before { content: ""; position: absolute; inset: -40% 10% auto; height: 80%; background: radial-gradient(ellipse, rgba(241, 192, 74, .18), transparent 65%); pointer-events: none; }
.medal-card > * { position: relative; }
.medal-card:hover { border-color: rgba(241, 192, 74, .5); }
.laurel { width: clamp(96px, 9vw, 130px); height: auto; margin-bottom: 4px; filter: drop-shadow(0 8px 20px rgba(241, 192, 74, .25)); }
.room.on .laurel { animation: laurel-in 1.2s var(--ease) both .5s; }
@keyframes laurel-in { from { opacity: 0; transform: scale(.7) rotate(-8deg); } }
.aw-kind { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #a9a49a; }
html[lang="ar"] .aw-kind { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 15px; }
/* gold that catches the light now and then */
.gold {
  font: 750 clamp(24px, 2.5vw, 34px) / 1.15 var(--sans); letter-spacing: -.03em; max-width: 22ch;
  background: linear-gradient(110deg, #b8862b 0%, #f6d77a 35%, #fff4cf 50%, #f6d77a 65%, #b8862b 100%);
  background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gold-shine 5s ease-in-out infinite;
}
html[lang="ar"] .gold { letter-spacing: 0; line-height: 1.4; }
@keyframes gold-shine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
.aw-d { color: #bdb8ae; font-size: 15.5px; max-width: 46ch; }
.aw-credit { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13.5px; color: #a9a49a; border-top: 1px solid rgba(255, 255, 255, .08); width: 100%; }
html[lang="ar"] .aw-credit { font-size: 15.5px; }
.aw-credit b { color: #f1c04a; font-weight: 600; }

/* the reach: big numbers with a line that fills */
.imp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; overflow: hidden; margin-bottom: 16px; }
.imp { background: var(--ink); padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.imp-n { display: flex; align-items: flex-start; gap: 2px; direction: ltr; justify-content: flex-start; }
html[dir="rtl"] .imp-n { justify-content: flex-end; }
.imp-n b { font: 800 clamp(38px, 4.4vw, 62px) / 1 var(--sans); letter-spacing: -.05em; color: #fff; }
.imp-n i { font: 700 clamp(22px, 2.2vw, 30px) / 1.1 var(--sans); font-style: normal; color: var(--signal); }
.imp-l { color: #a9a49a; font-size: 14.5px; }
html[lang="ar"] .imp-l { font-size: 16.5px; }
.imp-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 6px; }
.imp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--signal), #f1c04a); transition: width 1.6s var(--ease); }
.room.on .imp-bar i { width: 100%; }
.imp:nth-child(2) .imp-bar i { transition-delay: .15s; } .imp:nth-child(3) .imp-bar i { transition-delay: .3s; } .imp:nth-child(4) .imp-bar i { transition-delay: .45s; }

/* more milestones */
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ms { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .3s, border-color .3s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.ms:hover { background: rgba(255, 255, 255, .07); border-color: rgba(241, 192, 74, .35); }
.ms-ic { width: 40px; height: 40px; padding: 9px; flex: none; border-radius: 12px; background: rgba(241, 192, 74, .12); fill: none; stroke: #f1c04a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ms b { display: block; font-size: 16px; color: #fff; margin-bottom: 3px; }
html[lang="ar"] .ms b { font-size: 18px; }
.ms p { font-size: 13.5px; color: #a9a49a; line-height: 1.5; }
html[lang="ar"] .ms p { font-size: 15.5px; }

/* ================= 5 · about ================= */
/* a warm dark, close to the suit, so it does not feel like Recognition's black */
.room-cine { background: #120f0d; color: #f1eee7; }

/* the opening shot: half the room, melting into the dark at its inner edge and at the bottom */
.cine-photo {
  position: absolute; top: 0; bottom: 0; left: 0; width: 50%; overflow: hidden; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 98%); mask-image: linear-gradient(90deg, #000 55%, transparent 98%);
}
html[dir="rtl"] .cine-photo { left: auto; right: 0; -webkit-mask-image: linear-gradient(-90deg, #000 55%, transparent 98%); mask-image: linear-gradient(-90deg, #000 55%, transparent 98%); }
.cine-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transform: scale(1.14); filter: brightness(.45) saturate(.8); transition: transform 2.6s var(--ease), filter 2.2s var(--ease); }
.room.on .cine-photo img { transform: scale(1.02); filter: brightness(.95) saturate(1); }
.cine-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #120f0d 0%, rgba(18, 15, 13, .55) 22%, transparent 45%); }

/* the stage on top of it: words on the free half, the road across the bottom */
.room-in.cine {
  position: relative; z-index: 1; align-self: stretch; margin: 0 auto; max-width: 1440px; min-height: 100%;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; column-gap: clamp(30px, 5vw, 80px);
  padding-top: 96px; padding-bottom: 112px;
}
.cine-text { grid-column: 2; align-self: center; }
.room-cine .eyebrow { color: #ffb05c; }
.cine-quote { font: italic 400 clamp(32px, 3.4vw, 52px) / 1.12 var(--serif); letter-spacing: -.01em; color: #f8f4ec; margin: 0 0 22px; max-width: 18ch; }
html[lang="ar"] .cine-quote { font: 700 clamp(30px, 3vw, 46px) / 1.45 var(--sans); letter-spacing: 0; max-width: 20ch; }
.sign { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.sign-name { position: relative; align-self: flex-start; font: italic 400 clamp(26px, 2.4vw, 34px) / 1.1 var(--serif); color: var(--signal); }
.sign-name::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; height: 2px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) 1.2s; }
html[dir="rtl"] .sign-name::after { transform-origin: right; }
.room.on .sign-name::after { transform: scaleX(1); }
.sign-role { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #a9a49a; margin-top: 6px; }
html[lang="ar"] .sign-role { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 15px; }
.cine-bio { color: #bdb8ae; font-size: 16px; max-width: 54ch; margin-bottom: 18px; }
html[lang="ar"] .cine-bio { font-size: 17.5px; }
.cine-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cine-facts li { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); font-size: 14px; font-weight: 600; }
html[lang="ar"] .cine-facts li { font-size: 16px; }
.cine-facts b { color: var(--signal); font-size: 16px; }
.cine-facts .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff2d20; box-shadow: 0 0 0 4px rgba(255, 45, 32, .18); }


/* ================= 6 · tools ================= */
.room-amber { background: linear-gradient(160deg, #f6d796, var(--amber) 45%, #efbe62); }
.tl-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 25%) var(--my, 40%), rgba(255, 255, 255, .35), transparent 65%); }
.tl-head .room-title { max-width: none; font-size: clamp(32px, 4.2vw, 58px); }
.tl-head .eyebrow { color: #a3420f; }
.tl-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 18px; align-items: stretch; }

/* AMPLE: a dark card with a living logo */
.ample-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 2.6vw, 34px); color: #f6e7c4;
  background: #141414; box-shadow: 0 40px 80px -40px rgba(80, 40, 0, .7);
  display: flex; flex-direction: column; gap: 16px;
}
.ample-card::before { content: ""; position: absolute; inset: -30% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(240, 138, 36, .32), transparent 62%); pointer-events: none; }
.ample-card > * { position: relative; }
.ample-top { display: flex; align-items: center; gap: 20px; }
.ample-logo { width: clamp(76px, 7vw, 100px); height: auto; flex: none; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 40px -16px rgba(240, 138, 36, .55); animation: chip-drift 4.8s ease-in-out infinite alternate; }
.pulse-base { fill: none; stroke: #f08a24; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
/* the heartbeat: a bright pulse runs along the line again and again */
.pulse-beat { fill: none; stroke: #ffd2a1; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34 66; stroke-dashoffset: 100; filter: drop-shadow(0 0 10px #f08a24); animation: ecg 2.2s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 100; opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { stroke-dashoffset: -34; opacity: 0; } }
.room:not(.on) .pulse-beat, .room:not(.on) .ample-logo { animation-play-state: paused; }
.ample-name h3 { font: 800 clamp(48px, 5.4vw, 80px) / .9 var(--sans); letter-spacing: -.06em; color: #f08a24; }
.ample-name .soon { display: inline-block; margin-top: 10px; }
.soon { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px; background: var(--amber); color: var(--ink); }
html[lang="ar"] .soon { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
.ample-d { color: #d8ceb6; font-size: 16px; max-width: 52ch; }
html[lang="ar"] .ample-d { font-size: 17.5px; }
/* a little control panel: every service up and running */
.ample-status { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ample-status span { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; background: #1f1d1a; border: 1px solid rgba(255, 255, 255, .07); font: 600 14px var(--sans); color: #f1eee7; }
.ample-status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; animation: live 2s infinite; }
.ample-status span:nth-child(2) i { animation-delay: .4s; } .ample-status span:nth-child(3) i { animation-delay: .8s; } .ample-status span:nth-child(4) i { animation-delay: 1.2s; }
.ample-status em { margin-inline-start: auto; font: 500 11px var(--mono); font-style: normal; color: #3ddc84; }
html[lang="ar"] .ample-status em { font-family: var(--sans); font-size: 13px; }
.ample-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ample-feats li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: #e8dcc0; }
html[lang="ar"] .ample-feats li { font-size: 16.5px; }
.ample-feats li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(240, 138, 36, .18); color: #f08a24; font-size: 12px; font-weight: 800; transform: translateY(3px); }

/* the packages: one card each, glowing in its own colour */
.pk-list { display: flex; flex-direction: column; gap: 12px; }
.pk-t { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #7a3f0c; }
html[lang="ar"] .pk-t { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; }
.pk {
  position: relative; flex: 1; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(17, 17, 16, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s, background-color .35s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd);
}
.pk:hover { transform: translateY(-4px); background: #fff; border-color: var(--c); box-shadow: 0 26px 44px -26px var(--c); }
.pk img { width: 64px; height: 64px; object-fit: contain; transition: transform .5s var(--ease); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .15)); }
.pk:hover img { transform: rotate(-8deg) scale(1.1); }
.pk-tx { display: flex; flex-direction: column; min-width: 0; }
.pk-tx b { font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.pk-tx span { font-size: 14px; color: var(--ink-2); }
html[lang="ar"] .pk-tx span { font-size: 15.5px; }
.pk-tag { font: 600 12px var(--sans); padding: 5px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; }
html[lang="ar"] .pk-tag { font-size: 13.5px; }
.pk-go { font-style: normal; font-size: 18px; color: var(--ink-2); transition: transform .35s var(--ease), color .3s; }
html[dir="rtl"] .pk-go { transform: scaleX(-1); }
.pk:hover .pk-go { color: var(--c); transform: translate(3px, -3px); }
html[dir="rtl"] .pk:hover .pk-go { transform: scaleX(-1) translate(3px, -3px); }
.pk-note { font-size: 13.5px; color: #6e4a12; }
html[lang="ar"] .pk-note { font-size: 15.5px; }


/* ================= the way forward ================= */
/* width: max-content, so the bar is never squeezed into half the screen (that broke "Our work" in two) */
.travel { position: fixed; z-index: 50; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; width: max-content; max-width: calc(100vw - 24px); }
.back, .next { height: 60px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(17, 17, 16, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; cursor: pointer; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); transition: background-color .25s, transform .25s var(--ease), opacity .3s; }
.back { width: 60px; font-size: 20px; }
.back .arr { display: inline-block; rotate: var(--rot, 180deg); }
.back:disabled { opacity: 0; pointer-events: none; width: 0; border: 0; margin-inline-end: -8px; }
.next { display: flex; align-items: center; gap: 16px; padding: 0 12px 0 22px; text-align: start; min-width: 230px; justify-content: space-between; }
@media (hover: hover) { .next:hover, .back:hover { background: var(--signal); transform: translateY(-2px); } }
.next:active, .back:active { transform: scale(.97); }
.next-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.next small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #a9a49a; }
html[lang="ar"] .next small { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 12px; }
.next:hover small { color: #2a1a08; }
.next b { font-size: 17px; font-weight: 600; }
.next .arr { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--signal); font-size: 18px; transition: rotate .45s var(--ease); rotate: var(--rot, 0deg); }
.next:hover .arr { background: #fff; color: var(--ink); }
.next .arr { animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 75% { translate: calc(var(--nx, 1) * 5px) calc(var(--ny, 0) * 5px); } }
.travel.busy .next, .travel.busy .back { pointer-events: none; }

.toast { position: fixed; z-index: 90; bottom: 96px; left: 50%; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= responsive ================= */
@media (max-width: 960px) {
  .aw-grid, .ms-grid { grid-template-columns: 1fr; }
  .imp-grid { grid-template-columns: 1fr 1fr; }
  .cloud { --s: .78; }
  .tools { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .bar { top: 8px; left: 8px; right: 8px; }
  .brand span { display: none; }
  .brand { padding: 0 9px; }
  .count { display: none; }
  .map { top: 62px; right: 8px; left: 8px; width: auto; }
  html[dir="rtl"] .map { left: 8px; }
  .room-in { padding-top: 84px; padding-bottom: 112px; }
  .imp-grid { grid-template-columns: 1fr 1fr; }
  .imp { padding: 16px 16px 14px; }
  .cloud { height: 610px; --s: .58; }
  .add { top: 56%; }
  .fl { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }   /* phones: rows above and below the circle */
  .cl-head .room-title { white-space: normal; }
  .add { width: 150px; padding: 14px; }
  .add small { display: none; }
  .add b, html[lang="ar"] .add b { font-size: 14.5px; }
  .add-plus { font-size: 34px; }
  .next { min-width: 0; }
  .back, .next { height: 54px; }
  .back { width: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .rv, .w > span, .obj { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* Recognition, compact: everything fits one screen (laurel beside the text, tighter spacing) */
.aw-grid, .imp-grid { margin-bottom: 12px; gap: 12px; }
.imp-grid { gap: 1px; }
.ms-grid { gap: 12px; }
.medal-card { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 4px; align-items: center; text-align: start; padding: 22px 24px; }
.medal-card .laurel { grid-row: 1 / span 4; width: clamp(74px, 6.5vw, 96px); margin: 0; }
.medal-card .gold { font-size: clamp(20px, 1.9vw, 27px); max-width: none; }
.medal-card .aw-d { font-size: 14.5px; }
.medal-card .aw-credit { justify-content: flex-start; padding-top: 10px; margin-top: 6px; }
.imp { padding: 16px 20px 14px; }
.imp-n b { font-size: clamp(34px, 3.6vw, 52px); }
.ms { padding: 14px 16px; }
@media (max-width: 640px) {
  .medal-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .medal-card .laurel { grid-row: auto; }
  .medal-card .aw-credit { justify-content: center; }
}

/* Recognition: "As featured on Laravel News", one wide strip */
.lnews {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 22px;
  padding: 18px 22px; border-radius: 22px; color: #f1eee7;
  background: linear-gradient(100deg, rgba(255, 45, 32, .16), rgba(255, 255, 255, .03) 38%), #1b1a17;
  border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .35s, background-color .35s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd);
}
html[dir="rtl"] .lnews { background: linear-gradient(-100deg, rgba(255, 45, 32, .16), rgba(255, 255, 255, .03) 38%), #1b1a17; }
.lnews::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%); transform: translateX(-100%); pointer-events: none; }
.lnews:hover { border-color: rgba(255, 45, 32, .55); }
.lnews:hover::after { transform: translateX(100%); transition: transform 1s var(--ease); }
.ln-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #ff2d20; box-shadow: 0 14px 30px -12px rgba(255, 45, 32, .7); }
.ln-badge svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ln-text { display: flex; flex-direction: column; min-width: 0; }
.ln-text small { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #a9a49a; }
html[lang="ar"] .ln-text small { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
.ln-text b { font: 800 clamp(22px, 2.2vw, 30px) / 1.1 var(--sans); letter-spacing: -.03em; color: #fff; }
.ln-d { font-size: 14px; color: #a9a49a; margin-top: 2px; }
html[lang="ar"] .ln-d { font-size: 16px; }
.ln-pkgs { display: flex; gap: 8px; }
.chip { display: flex; flex-direction: column; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .3s, transform .35s var(--ease); }
.chip b { font: 700 15px var(--sans); color: #fff; }
.chip i { font-style: normal; font-size: 12px; color: #a9a49a; white-space: nowrap; }
html[lang="ar"] .chip i { font-size: 14px; }
.lnews:hover .chip { border-color: rgba(255, 255, 255, .22); }
.lnews:hover .chip:nth-child(1) { transform: translateY(-3px); }
.lnews:hover .chip:nth-child(2) { transform: translateY(-3px); transition-delay: .05s; }
.lnews:hover .chip:nth-child(3) { transform: translateY(-3px); transition-delay: .1s; }
.ln-go { font-size: 22px; color: #a9a49a; transition: color .3s, transform .35s var(--ease); }
html[dir="rtl"] .ln-go { transform: scaleX(-1); }
.lnews:hover .ln-go { color: #fff; transform: translate(3px, -3px); }
html[dir="rtl"] .lnews:hover .ln-go { transform: scaleX(-1) translate(3px, -3px); }
/* the number labels stay on one line, so all four look the same */
@media (min-width: 961px) { .imp-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 960px) {
  .lnews { grid-template-columns: auto 1fr; }
  .ln-pkgs { grid-column: 1 / -1; flex-wrap: wrap; }
  .ln-go { display: none; }
}
/* Arabic letters stand taller: a little less air so Recognition still fits one screen */
html[lang="ar"] .medal-card .gold { line-height: 1.3; }
@media (max-width: 960px) {
  .room-cine { flex-direction: column; }
  .cine-photo { position: relative; width: 100%; height: 58vh; flex: none; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  html[dir="rtl"] .cine-photo { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .room-in.cine { grid-template-columns: 1fr; margin-top: -18vh; padding-top: 0; min-height: 0; }
  .cine-text { grid-column: 1; }
}
.cine-quote .w { padding: 0 .1em .12em; margin: 0 -.1em -.12em; }   /* italic letters lean out of their box */

/* About: the road as a strip of film. Sprocket holes above and below, one scene per chapter */
.reel {
  grid-column: 1 / -1; list-style: none; margin: 30px 0 0; padding: 16px 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); background: #0a0807; border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.reel::before, .reel::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 7px;
  background: repeating-linear-gradient(90deg, rgba(241, 238, 231, .16) 0 12px, transparent 12px 24px);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 12px, transparent 12px 24px); border-radius: 2px;
}
.reel::before { top: 4px; } .reel::after { bottom: 4px; }
.reel li {
  position: relative; padding: 14px 20px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
  border-inline-start: 1px solid rgba(255, 255, 255, .08); overflow: hidden;
  opacity: 0;
}
.reel li:first-child { border-inline-start: 0; }
/* each scene switches on like a projector, one after another */
.room.on .reel li { animation: projector .9s steps(1, end) both; animation-delay: calc(var(--k) * 260ms + 700ms); }
@keyframes projector { 0% { opacity: 0; } 20% { opacity: .7; } 30% { opacity: .15; } 45% { opacity: .9; } 55% { opacity: .4; } 70%, 100% { opacity: 1; } }
.sc { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: #8d887e; }
html[lang="ar"] .sc { font-family: var(--sans); font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.yr {
  font: 800 clamp(34px, 3.6vw, 56px) / 1 var(--sans); letter-spacing: -.04em; margin: 6px 0 4px;
  color: transparent; -webkit-text-stroke: 1.2px rgba(241, 238, 231, .4); transition: color .4s, -webkit-text-stroke-color .4s;
}
html[lang="ar"] .yr { letter-spacing: 0; }
.reel li:hover .yr { color: #f1eee7; -webkit-text-stroke-color: #f1eee7; }
.reel b { font-size: 16px; font-weight: 650; color: #f1eee7; line-height: 1.3; }
html[lang="ar"] .reel b { font-size: 18px; }
.reel small { font-size: 13px; color: #8d887e; }
html[lang="ar"] .reel small { font-size: 15px; }
/* the scene still being filmed */
.reel li.now { background: radial-gradient(120% 140% at 50% 0%, rgba(240, 138, 36, .22), transparent 60%); }
.reel li.now .yr { color: var(--signal); -webkit-text-stroke-color: var(--signal); }
.rec { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; font: 700 10.5px var(--mono); font-style: normal; letter-spacing: .1em; color: #ff5a3c; }
html[lang="ar"] .rec { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b1f; box-shadow: 0 0 10px #ff3b1f; animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
@media (max-width: 960px) {
  .reel { grid-template-columns: 1fr 1fr; }
  .reel li:nth-child(3) { border-inline-start: 0; }
  .reel li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
/* the strip, a little shorter so About fits one screen */
.reel { margin-top: 20px; padding: 14px 0; }
.reel li { padding: 10px 18px 8px; }
.yr { font-size: clamp(30px, 3vw, 46px); margin: 4px 0 2px; }
html[lang="ar"] .room-in.cine { padding-top: 84px; padding-bottom: 104px; }   /* Arabic stands taller: keep About on one screen */
.reel .rec { position: absolute; top: 12px; inset-inline-end: 14px; }   /* REC sits in the corner of the last frame */

/* Our work: the title always stays on one line */

/* Our work on phones: title → the window → project pills → the story (only the open one, no empty gap) */
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

/* the carousel arrows exist only on phones */
/* ‹ › are mirrored by the browser itself in Arabic (right-to-left), so they need no extra flip */
@keyframes chip-drift { from { translate: 0 -6px; } to { translate: 0 6px; } }
@media (max-width: 960px) { .tl-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ample-top { gap: 14px; }
  .ample-status { grid-template-columns: 1fr 1fr; }
  .ample-status span { font-size: 13px; padding: 8px 10px; }
  .ample-status em { display: none; }
  .pk { grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px; }
  .pk-tag { display: none; }
  .pk img { width: 52px; height: 52px; }
}

/* AMPLE: the button to its own website */
.ample-btn { align-self: flex-start; margin-top: 4px; background: #f08a24; border-color: #f08a24; color: #141414; }
.ample-btn:hover { background: #fff; border-color: #fff; color: #141414; }
.ample-status span span { margin: 0; padding: 0; border: 0; background: none; font: inherit; }

/* ================= Tools, cinematic: a dark stage, a warm spotlight, film grain ================= */
.room-stage { background: #0b0907; color: #f1eee7; }
/* the spotlight: a soft cone of amber light from above, swaying very slowly */
.tl-beam {
  position: absolute; left: 50%; top: -20%; width: 120%; height: 120%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse 45% 60% at 50% 0%, rgba(240, 160, 60, .30), rgba(240, 138, 36, .10) 45%, transparent 70%);
  transform-origin: 50% 0; animation: beam 14s ease-in-out infinite alternate;
}
@keyframes beam { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.room-stage .tl-glow { background: radial-gradient(520px circle at var(--mx, 30%) var(--my, 45%), rgba(240, 138, 36, .14), transparent 65%); }
/* film grain and a dark frame around the edges */
.tl-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.room-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, rgba(0, 0, 0, .65)); }
.room:not(.on) .tl-beam, .room:not(.on) .tl-grain { animation-play-state: paused; }

.room-stage .tl-head .eyebrow { color: #f0a050; }
.room-stage .tl-head .room-title { color: #f6efe2; }
/* AMPLE: the hero under the light */
.room-stage .ample-card { background: linear-gradient(160deg, #1b1714, #110f0d); border: 1px solid rgba(240, 138, 36, .28); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 40px 90px -40px rgba(240, 138, 36, .55), 0 0 120px -50px rgba(240, 138, 36, .6); }
/* the packages: dark glass, each glowing in its own colour */
.room-stage .pk-t { color: #b9a688; }
.room-stage .pk { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.room-stage .pk:hover { background: rgba(255, 255, 255, .07); border-color: color-mix(in srgb, var(--c) 70%, #fff); box-shadow: 0 26px 50px -26px var(--c), 0 0 60px -30px var(--c); }
.room-stage .pk-tx b { color: #f6efe2; }
.room-stage .pk-tx span { color: #b3aa9b; }
.room-stage .pk-tag { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); }
.room-stage .pk-go { color: #8d887e; }
.room-stage .pk:hover .pk-go { color: color-mix(in srgb, var(--c) 45%, #fff); }
.room-stage .pk-note { color: #8d7f69; }
.room-stage .pk img { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.tl-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }   /* the moving light and grain are larger than the room: keep them from making it scroll */

/* ================= the loader (first visit only) ================= */
/* 1. the gate's outline draws itself  2. it fills  3. the orange path lights up  4. the dark screen opens like a door */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: all;
  animation: ld-failsafe 0s linear 6s forwards; }            /* if anything goes wrong, it still leaves after 6 s */
@keyframes ld-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.ld-half { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #111110; transition: transform 1.05s cubic-bezier(.77, 0, .18, 1); }
.ld-left { left: 0; } .ld-right { right: 0; }
/* one warm glow behind the logo: each half carries its own side of it, so it stays whole until the gate opens */
.ld-half::after { content: ""; position: absolute; inset: 0; }
.ld-left::after { background: radial-gradient(ellipse 70% 60% at 100% 46%, rgba(240, 138, 36, .16), transparent 70%); }
.ld-right::after { background: radial-gradient(ellipse 70% 60% at 0% 46%, rgba(240, 138, 36, .16), transparent 70%); }
.ld-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.ld-logo { width: min(340px, 62vw); height: auto; overflow: visible; }
.ld-line { fill: none; stroke: #f3f2ee; stroke-width: 5; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ld-draw 1.3s cubic-bezier(.6, 0, .3, 1) .15s forwards; }
/* AMPLE: the A fills in amber, then its pulse line runs across it like a heartbeat, then glows */
.ld-fill { fill: #F08A24; stroke: #F08A24; stroke-width: 6; stroke-linejoin: round; opacity: 0; animation: ld-fade .6s ease 1.05s forwards; }
.ld-beat { fill: none; stroke: #F08A24; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: ld-draw .7s cubic-bezier(.5, 0, .2, 1) 1.45s forwards, ld-glow 1.4s ease-in-out 2.15s infinite alternate; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-fade { to { opacity: 1; } }
@keyframes ld-glow { from { filter: drop-shadow(0 0 0 rgba(240, 138, 36, 0)); } to { filter: drop-shadow(0 -6px 22px rgba(255, 176, 92, .85)); } }
.ld-bar { width: 220px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f3f2ee, #F08A24); transition: width .25s linear; }
.ld-pct { font: 500 12px var(--mono); letter-spacing: .12em; color: #8d887e; direction: ltr; }
/* opening: the logo steps forward and fades, the two halves slide apart like a door */
.loader.out { pointer-events: none; }
.loader.out .ld-center { opacity: 0; transform: scale(1.12); }
.loader.out .ld-left { transform: translateX(-100%); }
.loader.out .ld-right { transform: translateX(100%); }
@media (prefers-reduced-motion: reduce) {
  .ld-line { stroke-dashoffset: 0; animation: none; }
  .ld-fill { opacity: 1; animation: none; }
  .ld-beat { stroke-dashoffset: 0; animation: none; }
  .ld-half { transition-duration: .01s; }
}

/* ================= the language fade (a light loader when switching language) ================= */
.lang-wipe { position: fixed; inset: 0; z-index: 999; background: rgba(17, 17, 16, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; opacity: 0; pointer-events: all; }
.lang-wipe::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 50% at 50% 50%, rgba(240, 138, 36, .16), transparent 70%); }
.lw-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: lw-pop .5s var(--ease) .15s both; }
.lw-in img { width: 64px; height: 64px; }
.lw-in b { font: 700 clamp(28px, 4vw, 44px) / 1.1 "Geist", "Zain", sans-serif; color: #f3f2ee; letter-spacing: -.02em; }
.lw-in b[dir="rtl"] { font-family: "Zain", sans-serif; letter-spacing: 0; }
.lw-in i { width: 120px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; position: relative; }
.lw-in i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f3f2ee, #F08A24); transform-origin: left; animation: lw-fill .6s var(--ease) .15s both; }
@keyframes lw-pop { from { opacity: 0; transform: scale(.92); } }
@keyframes lw-fill { from { transform: scaleX(0); } }

/* ================= the top bar, cinematic (same warm dark as "Who we are") ================= */
.brand, .bar-right {
  background: rgba(18, 15, 13, .74); color: #f1eee7;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 40px -22px rgba(0, 0, 0, .85);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.brand { gap: 10px; padding: 0 18px 0 10px; }
.brand img { filter: drop-shadow(0 4px 10px rgba(240, 138, 36, .25)); }
.brand span { font: 700 17px "Geist", sans-serif; letter-spacing: -.02em; color: #f6f2ea; }
.brand em { font: italic 400 1.18em / 1 var(--serif); letter-spacing: 0; color: #ffb05c; margin-inline-start: 1px; }
html[dir="rtl"] .brand span { direction: ltr; }
.count { color: #8d887e; }
.count b { color: #ffb05c; font-weight: 600; }
.map-btn { color: #f1eee7; }
.map-btn:hover, .map-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.map-icon i { background: #f1eee7; opacity: .35; }
.map-icon i:first-child { background: var(--signal); opacity: 1; }
.lang { background: transparent; color: #f1eee7; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.lang:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
/* the map panel, dark too */
.map { background: rgba(18, 15, 13, .95); border-color: rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.map-path polyline { stroke: #f1eee7; stroke-opacity: .3; }
.map-cell { background: #1d1a17; border-color: rgba(255, 255, 255, .09); color: #d8d3c9; }   /* solid, so the dotted route stays behind the cells */
.map-cell small { color: #8d887e; }
.map-cell:hover { border-color: rgba(255, 255, 255, .4); }
.map-cell.seen { background: #2a2622; }
.map-cell.here { background: var(--signal); border-color: var(--signal); color: #fff; }
.map-cell.here small { color: #2a1a08; }

/* ================= the map: bigger, and it opens and closes softly ================= */
.map { width: 400px; padding: 16px; display: block; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.96); transform-origin: top right;
  transition: opacity .28s var(--ease), transform .38s var(--ease), visibility 0s linear .38s; }
html[dir="rtl"] .map { transform-origin: top left; }
.map.open { opacity: 1; visibility: visible; transform: none; transition: opacity .28s var(--ease), transform .38s var(--ease), visibility 0s; }
.map-grid { height: 290px; }
.map-cell { padding: 9px 11px; font-size: 13.5px; line-height: 1.25; border-radius: 12px; }
html[lang="ar"] .map-cell { font-size: 15px; }
.map-cell small { font-size: 11px; }
/* "See all rooms" */
.map-all { width: 100%; margin-top: 12px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #f1eee7;
  display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 14.5px var(--sans); cursor: pointer; transition: background-color .25s, border-color .25s; }
html[lang="ar"] .map-all { font-size: 16px; }
.map-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.map-all:hover { background: var(--signal); border-color: var(--signal); }
@media (max-width: 640px) { .map { width: auto; } .map-grid { height: 250px; } .map-cell { font-size: 12px; padding: 7px 8px; } }

/* ================= the overview: every room at once, from far away ================= */
.room-tag { position: absolute; z-index: 5; top: calc(26px * var(--ovi, 1)); inset-inline-start: calc(26px * var(--ovi, 1)); display: flex; align-items: center; gap: calc(8px * var(--ovi, 1));
  padding: calc(6px * var(--ovi, 1)) calc(14px * var(--ovi, 1)) calc(6px * var(--ovi, 1)) calc(6px * var(--ovi, 1)); border-radius: 999px;
  background: rgba(17, 17, 16, .88); color: #f6f2ea; font: 600 calc(15px * var(--ovi, 1)) / 1 var(--sans); white-space: nowrap;
  opacity: 0; transform: translateY(calc(-8px * var(--ovi, 1))); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.room-tag b { display: grid; place-items: center; min-width: calc(28px * var(--ovi, 1)); height: calc(28px * var(--ovi, 1)); border-radius: 999px; background: var(--signal); color: #fff; font: 700 calc(12px * var(--ovi, 1)) var(--mono); }
.overviewing .room-tag { opacity: 1; transform: none; }
.stage.overview .room { cursor: pointer; }
.stage.overview .room > * { pointer-events: none; }
.stage.overview .room::before { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 calc(3px * var(--ovi, 1)) var(--signal); opacity: 0; transition: opacity .25s; }
.overviewing .stage.overview .room:hover::before { opacity: 1; }
.ov-hint { position: fixed; z-index: 60; left: 50%; top: 82px; transform: translate(-50%, -6px); padding: 9px 16px; border-radius: 999px; margin: 0;
  background: rgba(18, 15, 13, .88); color: #f1eee7; font: 600 13.5px var(--sans); border: 1px solid rgba(255, 255, 255, .1);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
html[lang="ar"] .ov-hint { font-size: 15px; }
.overviewing .ov-hint { opacity: 1; transform: translate(-50%, 0); }

/* ================= services list: quicker open / close ================= */
.plus, .plus::after { transition-duration: .25s; }
/* in the overview the hint takes the place of the Next / Back buttons (you move by picking a room) */
.ov-hint { top: auto; bottom: max(30px, env(safe-area-inset-bottom)); transform: translate(-50%, 8px); }
.overviewing .ov-hint { transform: translate(-50%, 0); }
nav.travel { transition: opacity .3s var(--ease); }
.overviewing nav.travel { opacity: 0; pointer-events: none; }

/* ================= overview, made light: a still picture flies, heavy effects are off ================= */
/* while flying in or out (and while all the rooms are shown) every CSS animation holds still */
.stage.ov-still * { animation-play-state: paused !important; }
/* effects that cost a lot to redraw and are invisible at this size anyway */
.stage.overview * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.stage.overview .blob, .stage.overview .tl-grain, .stage.overview .tl-beam, .stage.overview .sparkle,
.stage.overview .hero-glow, .stage.overview .svc-glow, .stage.overview .im-glow, .stage.overview .cl-glow, .stage.overview .tl-glow { display: none; }
.stage.overview .room { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }   /* a light shadow: eight big blurred ones are expensive to draw */
.stage.ov-still .room-tag, .stage.ov-still .room::before { transition: none; }   /* no fading inside the rooms while the camera flies */
.stage.no-tr .room, .stage.no-tr .room * { transition: none !important; }   /* language switch: the room empties at once behind the veil */

/* What we do: the title on one line */

/* overview on phones: the rooms are too narrow for a name, so the tag shows only the number */
@media (max-width: 640px) {
  .room-tag > span { display: none; }
  .room-tag { padding: calc(5px * var(--ovi, 1)); }
  .room-tag b { min-width: calc(34px * var(--ovi, 1)); height: calc(34px * var(--ovi, 1)); font-size: calc(14px * var(--ovi, 1)); }
  .ov-hint { white-space: nowrap; font-size: 13px; }
}
/* "Who we are" on phones: the content box keeps its full height (it was squeezed to the screen),
   so its bottom padding comes after the film strip and the strip scrolls clear of Next / Back */
@media (max-width: 960px) { .room-in.cine { flex: none; grid-template-rows: auto auto; } }

/* ================= AMPLE ================= */
/* amber is light: anything sitting on it reads in near-black, like the AMPLE app itself */
.btn-signal, .lang:hover, .map-cell.here, .map-all:hover, .room-tag b { color: #141414; }
@media (hover: hover) { .next:hover, .back:hover { color: #141414; } }
.btn-signal:hover { color: #fff; }

/* the brand: AMPLE big, "by HimaCode" small beside it */
.brand em { font: 500 10.5px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #a9a49a; margin-inline-start: 8px; }

/* 4 · built on: names instead of logos, floating the same way */
.tc {
  display: flex; align-items: center; gap: 10px; width: max-content; margin-inline: auto; padding: 12px 18px 12px 14px;
  border-radius: 999px; background: #fff; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  font: 650 clamp(15px, 1.25vw, 19px) / 1 var(--sans); letter-spacing: -.01em; color: var(--ink); direction: ltr;
  box-shadow: 0 16px 28px -18px color-mix(in srgb, var(--c) 70%, transparent), 0 2px 6px rgba(17, 17, 16, .05);
  animation: drift calc(5s + var(--k) * .45s) ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.9s);
  transition: scale .45s var(--ease), border-color .35s;
}
.tc::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); flex: none; }
.fl:hover .tc { scale: 1.1; border-color: var(--c); }
.room:not(.on) .tc { animation-play-state: paused; }
@media (max-width: 760px) { .tc { font-size: 13px; padding: 9px 13px 9px 11px; gap: 7px; } .tc::before { width: 8px; height: 8px; } }


/* 6 · our story: a live terminal instead of a photo */
.cine-photo.term-shot { display: grid; place-items: center; background: radial-gradient(ellipse at 40% 40%, rgba(240, 138, 36, .14), transparent 60%), #0c0a08; }
.term {
  width: min(86%, 520px); padding: 26px 28px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
  font: 400 clamp(13px, 1.05vw, 15.5px) / 1.75 var(--mono); color: #d9d4ca; direction: ltr; text-align: left;
  opacity: 0; translate: 0 18px; transition: opacity 1.2s var(--ease) .3s, translate 1.2s var(--ease) .3s;
}
.room.on .term { opacity: 1; translate: 0 0; }
html[lang="ar"] .term p[data-i18n], html[lang="ar"] .term span[data-i18n] { font-family: var(--sans); }
.term p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .tp { color: #F08A24; font-weight: 700; }
.term .tm { color: #8d887e; padding-inline-start: 1.3em; }
.term .tw { color: #f1c04a; font-weight: 700; }
.term .tok { color: #3ddc84; font-weight: 700; }
.term .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: #F08A24; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.room:not(.on) .term .caret { animation-play-state: paused; }
html[lang="ar"] .term .tm { padding-inline-start: 1.3em; }

/* 5 · why AMPLE: the old way is greyed out, the new way keeps the gold */
.medal-card.old { background: linear-gradient(160deg, #1d1c1a, #141413 60%); border-color: rgba(255, 255, 255, .08); }
.medal-card.old::before { background: radial-gradient(ellipse, rgba(255, 255, 255, .05), transparent 65%); }
.medal-card.old:hover { border-color: rgba(255, 255, 255, .18); }
.medal-card.old .laurel { filter: none; }
.gold.dim { background: none; color: #8d887e; animation: none; }
.medal-card.old .aw-d { color: #8d887e; }
.medal-card.old .aw-credit { color: #6b665e; }

/* "Made by HimaCode": HimaCode's own colours */
.lnews { background: linear-gradient(100deg, rgba(226, 71, 27, .16), rgba(255, 255, 255, .03) 38%), #1b1a17; }
html[dir="rtl"] .lnews { background: linear-gradient(-100deg, rgba(226, 71, 27, .16), rgba(255, 255, 255, .03) 38%), #1b1a17; }
.lnews:hover { border-color: rgba(226, 71, 27, .55); }
.ln-badge { background: #111110; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 30px -12px rgba(226, 71, 27, .6); }
.ln-badge img { width: 34px; height: 34px; }

/* 7 · download: the steps are not links */
.pk { cursor: default; }
/* Arabic lines inside the (left-to-right) terminal keep their own right-to-left order */
html[lang="ar"] .term p[data-i18n] { unicode-bidi: plaintext; text-align: left; }
html[lang="ar"] .term span[data-i18n] { unicode-bidi: isolate; direction: rtl; }
/* phones: the terminal stands above the story, not under it */
@media (max-width: 960px) {
  .cine-photo.term-shot { height: auto; padding: 84px 0 22px; -webkit-mask-image: none; mask-image: none; background: radial-gradient(ellipse at 50% 40%, rgba(240, 138, 36, .14), transparent 65%); }
  .cine-photo.term-shot::after { display: none; }
  .term-shot + .room-in.cine { margin-top: 0; }
  .term { width: calc(100% - 32px); padding: 18px 18px; }
}

/* ================= 1 · hero: AMPLE's own room =================
   The colours, type and shapes of the AMPLE app itself (panel.css / setup.css): cool charcoal,
   amber, a green "Running", Segoe UI. Nothing here is shared with the HimaCode site. */
.room-amp {
  --a-bg: #111317; --a-win: #1b1e24; --a-side: #16181d; --a-card: #20242b; --a-line: #2f343e; --a-line2: #262a32;
  --a-text: #ece9e2; --a-muted: #9a9ea8; --a-ok: #3fb97c; --a-bad: #f0605a; --a-amber: #f08a24; --a-ink: #1a1205;
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sk: rgba(255, 255, 255, .06); --sk-shine: rgba(255, 255, 255, .08);
  background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(240, 138, 36, .09), transparent 70%), var(--a-bg);
  color: var(--a-text); font-family: var(--ui);
}
html[lang="ar"] .room-amp { --ui: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif; }
.room-amp button { font-family: var(--ui); }

/* the pulse behind everything: flat while AMPLE sleeps, beating once it runs */
.ah-pulse { position: absolute; left: 0; right: 0; top: 63%; height: 240px; translate: 0 -50%; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.ah-pulse svg { display: block; width: 200%; height: 100%; animation: ah-run 9s linear infinite; animation-play-state: paused; }
.room-amp.ah-live .ah-pulse svg { animation-play-state: running; }
@keyframes ah-run { to { transform: translateX(-50%); } }
.ah-wave { transform-box: view-box; transform-origin: 50% 50%; transform: scaleY(.03); transition: transform 1.4s cubic-bezier(.3, 1.4, .5, 1); }
.ah-line, .ah-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .6s, opacity .8s; }
.ah-line { stroke: #3a3f49; stroke-width: 2.5; }
.ah-glow { stroke: var(--a-amber); stroke-width: 12; opacity: 0; }
.room-amp[data-state="busy"] .ah-wave { transform: scaleY(.35); }
.room-amp[data-state="some"] .ah-wave { transform: scaleY(.6); }
.room-amp[data-state="on"] .ah-wave { transform: scaleY(1); }
.room-amp:is([data-state="busy"], [data-state="some"], [data-state="on"]) .ah-line { stroke: var(--a-amber); }
.room-amp[data-state="on"] .ah-glow { opacity: .16; }

/* the words */
.ah-in { max-width: 1240px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 100px; padding-bottom: 118px; }
.ah-pill { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .03); font-size: 13px; color: #b9bcc4; margin-bottom: 18px; }
.ah-dot { width: 8px; height: 8px; border-radius: 50%; background: #5b606b; transition: background .4s; }
.room-amp[data-state="busy"] .ah-dot { background: var(--a-amber); animation: ah-blink .7s steps(1) infinite; }
.room-amp:is([data-state="on"], [data-state="some"]) .ah-dot { background: var(--a-ok); animation: ah-ring 2s infinite; }
@keyframes ah-blink { 50% { opacity: .25; } }
@keyframes ah-ring { 0% { box-shadow: 0 0 0 0 rgba(63, 185, 124, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(63, 185, 124, 0); } }

.ah-title { font: 700 clamp(36px, 4.4vw, 66px) / 1.1 var(--ui); letter-spacing: -.035em; margin: 0 0 14px; }
html[lang="ar"] .ah-title { letter-spacing: 0; line-height: 1.35; font-size: clamp(34px, 4.2vw, 62px); }
/* each line is written out from its start, like text appearing in a terminal */
.ah-title > span { display: inline-block; clip-path: inset(-20% 100% -20% 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1) .15s; }
.ah-title > .ah-l2 { transition-delay: .55s; color: var(--a-amber); }
.room.on .ah-title > span { clip-path: inset(-20% -4% -20% -4%); }
html[dir="rtl"] .ah-title > span { clip-path: inset(-20% 0 -20% 100%); }
html[dir="rtl"] .room.on .ah-title > span { clip-path: inset(-20% -4% -20% -4%); }
.ah-l2::after { content: ""; display: inline-block; width: .07em; height: .82em; margin-inline-start: .1em; vertical-align: -.05em; background: var(--a-amber); animation: blink 1.05s steps(1) infinite; }
.ah-sub { color: #a8acb5; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; max-width: 60ch; margin: 0 auto 26px; }
html[lang="ar"] .ah-sub { font-size: clamp(16px, 1.3vw, 19px); }
.ah-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ah-cta, .ah-ghost { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 11px; font: 650 15.5px var(--ui); cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.ah-cta { background: var(--a-amber); color: var(--a-ink); box-shadow: 0 14px 34px -14px rgba(240, 138, 36, .7); }
.ah-cta:hover { background: #ff9a35; transform: translateY(-1px); box-shadow: 0 18px 38px -14px rgba(240, 138, 36, .85); }
.ah-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ah-ghost { background: var(--a-win); border: 1px solid #353a45; color: var(--a-text); }
.ah-ghost:hover { border-color: var(--a-amber); }

/* the AMPLE window */
.ah-app { width: min(1000px, 100%); margin-top: 38px; text-align: start; background: var(--a-win); border: 1px solid var(--a-line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .02); transition: box-shadow 1s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.room-amp[data-state="on"] .ah-app { box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .85), 0 0 90px -30px rgba(240, 138, 36, .35), 0 0 0 1px rgba(240, 138, 36, .12); }
.ah-tb { display: flex; align-items: center; gap: 8px; height: 34px; padding-inline-start: 12px; background: var(--a-side); border-bottom: 1px solid var(--a-line2); }
.ah-tb b { font-size: 12px; font-weight: 700; letter-spacing: .32em; }
.ah-wc { display: flex; margin-inline-start: auto; color: #9a9ea8; }
.ah-wc i { position: relative; width: 44px; height: 34px; }
.ah-wc i::before, .ah-wc i::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.ah-wc i:nth-child(1)::before { width: 10px; height: 1px; background: currentColor; }
.ah-wc i:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid currentColor; }
.ah-wc i:nth-child(3)::before, .ah-wc i:nth-child(3)::after { width: 13px; height: 1px; background: currentColor; rotate: 45deg; }
.ah-wc i:nth-child(3)::after { rotate: -45deg; }
.ah-body { display: grid; grid-template-columns: 186px 1fr; }
.ah-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 0; background: var(--a-side); border-inline-end: 1px solid var(--a-line2); }
.ah-side > span { position: relative; display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 12px; border-radius: 9px; color: #c9ccd3; font-size: 13.5px; }
.ah-side > span.on { background: rgba(240, 138, 36, .12); color: #f5a04f; font-weight: 600; }
.ah-side > span.on::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--a-amber); }
.ah-side svg, .ah-tiles svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ah-side em { font-style: normal; }
.ah-side small { margin-top: auto; padding: 12px 4px; border-top: 1px solid var(--a-line2); font-size: 11.5px; color: #7d818b; direction: ltr; text-align: start; }
.ah-badge { margin-inline-start: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--a-amber); color: var(--a-ink); font-size: 11px; font-weight: 700; scale: 0; transition: scale .35s cubic-bezier(.3, 1.6, .5, 1); }
.ah-badge.show { scale: 1; }
.ah-badge.pop { animation: ah-pop .45s ease; }
@keyframes ah-pop { 40% { scale: 1.35; } }

.ah-main { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-width: 0; }
.ah-banner, .ah-svc, .ah-tiles > span { border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-card); }
.ah-banner { display: flex; align-items: center; gap: 16px; padding: 14px 18px; transition: border-color .5s, background-color .5s; }
.room-amp[data-state="busy"] .ah-banner { border-color: rgba(240, 138, 36, .45); }
.room-amp[data-state="on"] .ah-banner { border-color: rgba(63, 185, 124, .5); background: linear-gradient(90deg, rgba(63, 185, 124, .08), transparent 60%) var(--a-card); }
html[dir="rtl"] .room-amp[data-state="on"] .ah-banner { background: linear-gradient(-90deg, rgba(63, 185, 124, .08), transparent 60%) var(--a-card); }
.ah-orb { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(154, 158, 168, .1); transition: background .5s; }
.ah-orb::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #5b606b; transition: background .5s; }
.room-amp[data-state="busy"] .ah-orb { background: rgba(240, 138, 36, .14); }
.room-amp[data-state="busy"] .ah-orb::after { background: var(--a-amber); animation: ah-blink .7s steps(1) infinite; }
.room-amp:is([data-state="on"], [data-state="some"]) .ah-orb { background: rgba(63, 185, 124, .14); }
.room-amp:is([data-state="on"], [data-state="some"]) .ah-orb::after { background: var(--a-ok); animation: ah-ring 2s infinite; }
.ah-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-bt b { font-size: 16.5px; font-weight: 650; }
.ah-bt small { font-size: 12.5px; color: var(--a-muted); }
.ah-all, .ah-btn { cursor: pointer; border-radius: 8px; font-weight: 600; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.ah-all { position: relative; height: 36px; padding: 0 16px; border: 1px solid var(--a-amber); background: var(--a-amber); color: var(--a-ink); font-size: 13.5px; }
.ah-all:hover:not(:disabled) { background: #ff9a35; }
.room-amp[data-state="off"] .ah-all { animation: ah-call 2.2s ease-out infinite; }   /* "press me" */
@keyframes ah-call { 0% { box-shadow: 0 0 0 0 rgba(240, 138, 36, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(240, 138, 36, 0); } }
.ah-all.stop { background: rgba(240, 96, 90, .1); border-color: rgba(240, 96, 90, .55); color: var(--a-bad); }
.ah-all.stop:hover:not(:disabled) { background: rgba(240, 96, 90, .18); }
.ah-all:disabled, .ah-btn:disabled { opacity: .55; cursor: default; }

.ah-svc { display: flex; align-items: center; gap: 14px; padding: 11px 16px; }
.ah-led { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #5b606b; transition: background .4s; }
.ah-svc[data-s="busy"] .ah-led { background: var(--a-amber); animation: ah-blink .5s steps(1) infinite; }
.ah-svc[data-s="on"] .ah-led { background: var(--a-ok); box-shadow: 0 0 0 4px rgba(63, 185, 124, .16); }
.ah-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-nm b { font-size: 14.5px; font-weight: 650; }
.ah-st { font-size: 12.5px; color: var(--a-muted); transition: color .3s; }
.ah-svc[data-s="busy"] .ah-st { color: var(--a-amber); }
.ah-svc[data-s="on"] .ah-st { color: var(--a-ok); }
.ah-port { font-size: 12.5px; color: var(--a-muted); white-space: nowrap; opacity: .35; transition: opacity .5s; }
.ah-port b { color: var(--a-text); font-weight: 650; }
.ah-svc[data-s="on"] .ah-port { opacity: 1; }
.ah-btn { height: 32px; min-width: 66px; padding: 0 14px; border: 1px solid #3a3f4a; background: transparent; color: var(--a-text); font-size: 12.5px; }
.ah-btn:hover:not(:disabled) { border-color: var(--a-amber); color: #f5a04f; }
.ah-svc[data-s="on"] .ah-btn { border-color: rgba(240, 96, 90, .5); background: rgba(240, 96, 90, .1); color: var(--a-bad); }

.ah-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ah-tiles > span { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: center; padding: 11px 14px; opacity: .45; transition: opacity .6s; }
.room-amp[data-state="on"] .ah-tiles > span { opacity: 1; }
.ah-tiles svg { grid-row: span 2; color: var(--a-amber); width: 19px; height: 19px; }
.ah-tiles b { font-size: 13px; font-weight: 650; }
.ah-tiles small { font-size: 11.5px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 960px) {
  .ah-body { grid-template-columns: 1fr; }
  .ah-side { display: none; }
  .ah-tiles { grid-template-columns: repeat(2, 1fr); }
  .ah-pulse { top: 70%; }
}
@media (max-width: 640px) {
  .ah-in { padding-top: 88px; padding-bottom: 104px; }
  .ah-title, html[lang="ar"] .ah-title { font-size: min(10.4vw, 44px); }
  .ah-title > span { display: block; }
  .ah-sub { font-size: 15px; margin-bottom: 20px; }
  .ah-cta, .ah-ghost { height: 48px; padding: 0 18px; font-size: 15px; }
  .ah-app { margin-top: 28px; }
  .ah-main { padding: 12px; gap: 8px; }
  .ah-banner { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
  .ah-all { width: 100%; }
  .ah-orb { width: 34px; height: 34px; }
  .ah-orb::after { inset: 11px; }
  .ah-svc { gap: 10px; padding: 10px 12px; }
  .ah-port { font-size: 11.5px; }
  .ah-btn { min-width: 0; padding: 0 11px; }
  .ah-tiles { gap: 8px; }
  .ah-tiles > span { padding: 9px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-title > span { clip-path: none !important; transition: none; }
  .ah-pulse svg { animation: none; }
}
/* hero: everything fits one screen, the window clears the Next button */
@media (min-width: 641px) {
  .ah-in { padding-top: 92px; }
  .ah-sub { max-width: 74ch; margin-bottom: 22px; }
  .ah-app { margin-top: 30px; }
  .ah-main { padding: 14px; gap: 8px; }
  .ah-banner { padding: 11px 16px; }
  .ah-svc { padding: 8px 16px; }
  .ah-tiles > span { padding: 9px 14px; }
  .ah-side > span { height: 33px; }
}
.ah-port b, .ah-pill span[data-i18n] { unicode-bidi: isolate; } .ah-port b { direction: ltr; }

/* ================= AMPLE chrome: logo, map, language, Next/Back =================
   Flat like the AMPLE app: charcoal panels, thin borders, amber accents, Segoe UI. */
.brand, .bar-right, .map, .next, .back {
  --c-bg: #1b1e24; --c-card: #23272f; --c-line: #2f343e; --c-text: #ece9e2; --c-muted: #9a9ea8;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
.brand, .bar-right { height: 44px; border-radius: 10px; background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { gap: 10px; padding: 0 14px 0 10px; }
.brand img { width: 24px; height: 24px; filter: none; }
.brand span { font: 700 13px "Segoe UI", system-ui, sans-serif; letter-spacing: .3em; color: var(--c-text); }
.brand em { display: none; }
.bar-right { padding: 0 4px 0 12px; gap: 4px; }
.count { font: 600 12px "Segoe UI", system-ui, sans-serif; color: var(--c-muted); }
.count b { color: #f08a24; }
.map-btn { height: 34px; padding: 0 12px; border-radius: 8px; color: var(--c-text); font: 600 13px "Segoe UI", system-ui, sans-serif; background: transparent; border: 1px solid transparent; }
.map-btn:hover { background: var(--c-card); border-color: var(--c-line); }
.map-icon i, .map-icon i:first-child { border-radius: 2px; }
.lang, .lang:hover { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-text); }
.lang:hover { border-color: #f08a24; color: #f5a04f; background: rgba(240, 138, 36, .1); }

/* the map */
.map { border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7); -webkit-backdrop-filter: none; backdrop-filter: none; }
.map-cell { border-radius: 8px; background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-text); }
.map-cell:hover { border-color: #f08a24; }
.map-cell small { color: var(--c-muted); font-family: "Segoe UI", system-ui, sans-serif; }
.map-cell.seen { border-color: #3a3f4a; }
.map-cell.here { background: rgba(240, 138, 36, .14); border-color: #f08a24; color: #f5a04f; }
.map-cell.here small { color: #f08a24; }
.map-path polyline { stroke: #3a3f4a; }
.map-all { border-radius: 8px; background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-text); }
.map-all:hover { background: #f08a24; border-color: #f08a24; color: #1a1205; }

/* Next / Back */
.next, .back { height: 52px; border-radius: 10px; background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-text); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7); -webkit-backdrop-filter: none; backdrop-filter: none; }
.back { width: 52px; }
.next small { font: 600 10.5px "Segoe UI", system-ui, sans-serif; letter-spacing: .12em; color: var(--c-muted); }
.next b { font: 650 15px "Segoe UI", system-ui, sans-serif; }
html[lang="ar"] .next b, html[lang="ar"] .next small, html[lang="ar"] .map-btn, html[lang="ar"] .map-cell small { font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; letter-spacing: 0; }
.next .arr { width: 36px; height: 36px; border-radius: 8px; background: #f08a24; color: #1a1205; }
@media (hover: hover) { .next:hover, .back:hover { background: var(--c-card); border-color: #f08a24; color: var(--c-text); transform: translateY(-1px); } }

/* ================= AMPLE chrome, take 2: further from HimaCode =================
   Sharp 6px corners, an amber underline like the app's active tab, a segmented control on the
   right, and the Next/Back pair in the bottom corner with a solid amber Next. */
.brand, .bar-right { height: 40px; border-radius: 6px; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6); border-bottom: 2px solid #f08a24; }
.brand { padding: 0 14px 0 8px; gap: 9px; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.bar-right { padding: 0; gap: 0; overflow: hidden; }
.bar-right > * { height: 38px; border-radius: 0; border: 0; border-inline-start: 1px solid var(--c-line); }
.bar-right > :first-child { border-inline-start: 0; }
.count { display: grid; place-items: center; padding: 0 14px; margin: 0; }
.map-btn { height: 38px; border-radius: 0; padding: 0 14px; border: 0; border-inline-start: 1px solid var(--c-line); }
.map-btn:hover { background: var(--c-card); border-color: var(--c-line); }
.lang, .lang:hover { width: 42px; height: 38px; border-radius: 0; border: 0; border-inline-start: 1px solid var(--c-line); background: transparent; }
.lang:hover { background: rgba(240, 138, 36, .14); color: #f5a04f; }
.map { border-radius: 8px; border-top: 2px solid #f08a24; }
.map-cell, .map-all { border-radius: 6px; }

/* Next / Back: bottom corner (bottom-right, bottom-left in Arabic) */
.travel { left: auto; right: 18px; transform: none; gap: 6px; }
html[dir="rtl"] .travel { right: auto; left: 18px; }
.next, .back { height: 48px; border-radius: 6px; }
.back { width: 48px; }
.next { min-width: 210px; padding: 0 8px 0 18px; background: #f08a24; border-color: #f08a24; color: #1a1205; }
html[dir="rtl"] .next { padding: 0 18px 0 8px; }
.next small { color: rgba(26, 18, 5, .65); }
.next b { color: #1a1205; }
.next .arr { width: 34px; height: 34px; border-radius: 5px; background: #1a1205; color: #f08a24; }
@media (hover: hover) {
  .next:hover { background: #ff9a35; border-color: #ff9a35; color: #1a1205; transform: none; }
  .next:hover small { color: rgba(26, 18, 5, .7); }
  .next:hover b { color: #1a1205; }
  .next:hover .arr { background: #1a1205; color: #ffb05c; }
  .back:hover { background: var(--c-card); border-color: #f08a24; color: #f5a04f; transform: none; }
}
@media (max-width: 640px) {
  .travel { right: 12px; }
  html[dir="rtl"] .travel { left: 12px; }
  .next { min-width: 0; }
}
.count { display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ================= 2 · what's inside: AMPLE Setup =================
   The installer window (setup.css colours) and a card that follows the install. */
.su-in { max-width: 1240px; position: relative; z-index: 1; padding-top: 92px; padding-bottom: 118px; }
.su-head { text-align: center; }
.su-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--a-amber); }
.su-title { font-size: clamp(32px, 3.6vw, 54px); }
html[lang="ar"] .su-title { font-size: clamp(30px, 3.4vw, 50px); }
.su-grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 24px; margin-top: 26px; align-items: stretch; }

/* the installer window */
.su-win { background: #15171c; border: 1px solid var(--a-line); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .85);
  transition: opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.su-tb { display: flex; align-items: center; gap: 9px; height: 32px; padding-inline-start: 12px; border-bottom: 1px solid var(--a-line2); font-size: 12.5px; color: #c9ccd3; }
.su-sq { width: 14px; height: 14px; border-radius: 3px; background: var(--a-amber); }
.su-tb .ah-wc i { height: 32px; width: 40px; }
.su-body { padding: 16px 18px 16px; }
.su-top { display: flex; align-items: center; gap: 14px; }
.su-tile img { display: block; width: 48px; height: 48px; border-radius: 12px; }
.su-hi { display: flex; flex-direction: column; min-width: 0; }
.su-hi b { font-size: 19px; font-weight: 700; }
.su-hi small { font-size: 13px; color: var(--a-muted); }
.su-list { list-style: none; margin: 14px 0 0; padding: 6px; border-radius: 12px; background: #1f2229; border: 1px solid #2e323b; }
.su-list li { position: relative; }
.su-list button { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #c9ccd3; font: 600 14px var(--ui); text-align: start; cursor: pointer; transition: background .2s; }
.su-list button:hover { background: rgba(255, 255, 255, .04); }
.su-list li.shown button { background: rgba(240, 138, 36, .09); }
.su-n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #262a32; font-size: 12px; color: var(--a-muted); transition: background .3s, color .3s; }
.su-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-nm small { font-size: 12px; font-weight: 400; color: var(--a-muted); margin-inline-start: 4px; }
.su-ok { width: 20px; flex: none; text-align: center; font-size: 14px; font-weight: 700; color: var(--a-ok); }
.su-bar { position: absolute; inset-inline: 46px 12px; bottom: 3px; height: 2px; border-radius: 2px; background: #2e323b; overflow: hidden; opacity: 0; transition: opacity .3s; }
.su-bar > i { display: block; width: 0; height: 100%; background: var(--a-amber); }
.su-list li[data-s="run"] .su-n { background: var(--a-amber); color: var(--a-ink); font-weight: 700; }
.su-list li[data-s="run"] .su-nm { color: #fff; }
.su-list li[data-s="run"] .su-bar { opacity: 1; }
.su-list li[data-s="run"] .su-bar > i { animation: su-fill 1.15s linear forwards; }
.su-list li:first-child[data-s="run"] .su-bar > i { animation-duration: .9s; }
@keyframes su-fill { to { width: 100%; } }
.su-list li[data-s="ok"] .su-n { background: rgba(63, 185, 124, .16); color: var(--a-ok); }
.su-list li[data-s="ok"] .su-ok::before { content: "✓"; }
.su-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.su-sha { flex: 1; min-width: 0; font: 12px "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; }
.su-sha.ok { color: var(--a-ok); }
.su-go { height: 40px; min-width: 130px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--a-amber); background: var(--a-amber); color: var(--a-ink); font: 650 14px var(--ui); cursor: pointer; transition: background .2s, opacity .2s; }
.su-go:hover:not(:disabled) { background: #ff9a35; }
.su-go:disabled { opacity: .55; cursor: default; }

/* the card that follows the install */
.su-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px 30px 24px; border-radius: 14px; background: var(--a-win); border: 1px solid var(--a-line);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .85); transition: opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.su-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--a-amber); }
.su-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.su-k { font: 600 13px "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--a-amber); letter-spacing: .08em; direction: ltr; }
.su-state { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--a-muted); background: rgba(154, 158, 168, .1); }
.su-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.su-state[data-s="run"] { color: var(--a-amber); background: rgba(240, 138, 36, .12); }
.su-state[data-s="run"]::before { animation: ah-blink .6s steps(1) infinite; }
.su-state[data-s="ok"] { color: var(--a-ok); background: rgba(63, 185, 124, .12); }
.su-name { margin: 22px 0 2px; font: 700 clamp(30px, 3vw, 46px) / 1.1 var(--ui); letter-spacing: -.03em; }
html[lang="ar"] .su-name { letter-spacing: 0; }
.su-ver { font: 14px "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--a-muted); min-height: 1.4em; }
html[lang="ar"] .su-ver { font-family: var(--ui); }
.su-d { margin: 18px 0 18px; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; color: #c9ccd3; max-width: 46ch; }
.su-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.su-pts li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--a-text); }
.su-pts li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(63, 185, 124, .14); color: var(--a-ok); font-size: 12px; font-weight: 700; }
.su-meter { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--a-muted); }
.su-meter > i { display: block; height: 4px; border-radius: 4px; background: #2a2f38; overflow: hidden; }
.su-meter > i > i { display: block; width: 0; height: 100%; background: var(--a-amber); transition: width .6s var(--ease), background .4s; }
.su-card.all-done .su-meter > i > i { background: var(--a-ok); }
.su-card.swap :is(.su-name, .su-ver, .su-d, .su-pts) { animation: su-in .45s var(--ease) both; }
.su-card.swap .su-d { animation-delay: .05s; }
.su-card.swap .su-pts { animation-delay: .1s; }
@keyframes su-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 960px) {
  .su-grid { grid-template-columns: 1fr; }
  .su-card { min-height: 0; }
}
@media (max-width: 640px) {
  .su-in { padding-top: 88px; padding-bottom: 104px; }
  .su-title, html[lang="ar"] .su-title { font-size: min(8.6vw, 36px); }
  .su-body { padding: 14px; }
  .su-card { padding: 22px 20px 20px; }
  .su-go { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .su-card.swap * { animation: none !important; } }
/* six windows in the pile: the sixth waits hidden at the back */

.xp-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--a-bad); }

.sf-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--a-ok); }

.ab-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--a-amber); }

/* ================= 7 · download: the most important page =================
   The opening: the big button and the live download count on one side, the setup file and what is
   inside it on the other. Then the three steps on one path, every version, other systems, and docs. */
.dl-in { max-width: 1140px; padding-top: 96px; padding-bottom: 120px; }
.dl-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--a-amber); }
.dl-k { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
html[lang="ar"] .dl-k { letter-spacing: 0; font-size: 13px; }
.dl-badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(63, 185, 124, .14); color: var(--a-ok); white-space: nowrap; }

/* -- the opening -- */
.dl-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.dl-intro { text-align: start; min-width: 0; }
.dl-title { font-size: clamp(36px, 4.2vw, 62px); }
.dl-sub { margin: 0 0 28px; max-width: 46ch; color: #a8acb5; font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.6; }

.dl-get { display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; border-radius: 14px; background: var(--a-amber); color: var(--a-ink); text-decoration: none;
  box-shadow: 0 16px 36px -16px rgba(240, 138, 36, .75); transition: background .2s, transform .2s, box-shadow .2s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
html[dir="rtl"] .dl-get { padding: 10px 10px 10px 26px; }
.dl-get:hover { background: #ff9a35; transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(240, 138, 36, .9); }
.dl-get:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dl-get-i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10px; background: rgba(26, 18, 5, .14); flex: none; }
.dl-get-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-get-t { display: flex; flex-direction: column; gap: 2px; text-align: start; }
.dl-get-t b { font-size: 18px; font-weight: 700; }
.dl-get-t small { font-size: 12.5px; font-weight: 600; opacity: .72; direction: ltr; text-align: start; }
html[dir="rtl"] .dl-get-t small { text-align: end; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 13.5px; color: var(--a-muted); }
.dl-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dl-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--a-ok); }

.dl-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--a-line2); }
.dl-stat { display: flex; flex-direction: column; gap: 6px; padding-inline-end: 28px; margin-inline-end: 28px; border-inline-end: 1px solid var(--a-line2); }
.dl-stat:last-child { padding-inline-end: 0; margin-inline-end: 0; border-inline-end: 0; }
.dl-stat[hidden] { display: none; }
.dl-stat b { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1; color: var(--a-text); font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
html[dir="rtl"] .dl-stat b { text-align: end; }
.dl-stat > span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--a-muted); }
.dl-count b { color: var(--a-amber); }
.dl-live { width: 7px; height: 7px; border-radius: 50%; background: var(--a-ok); animation: ah-ring 2s infinite; }

/* -- the setup file and what is inside it -- */
.dl-pack { min-width: 0; border-radius: 16px; border: 1px solid var(--a-line); background: linear-gradient(180deg, rgba(240, 138, 36, .07), transparent 38%), var(--a-win); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.dl-pack-h { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--a-line2); }
.dl-pack-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--a-card); border: 1px solid var(--a-line); flex: none; }
.dl-pack-n { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dl-pack-n b { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
html[dir="rtl"] .dl-pack-n b { text-align: end; }
.dl-pack-n small { font-size: 12.5px; color: var(--a-muted); }
.dl-layers { list-style: none; margin: 0; padding: 10px 12px; }
.dl-layers li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 9px; font-size: 14.5px;
  opacity: 0; translate: 0 10px; transition: background .2s, opacity .6s var(--ease) calc(var(--i, 0) * 80ms + .45s), translate .6s var(--ease) calc(var(--i, 0) * 80ms + .45s); }
#download.on .dl-layers li { opacity: 1; translate: 0 0; }
.dl-layers li:hover { background: rgba(255, 255, 255, .03); }
.dl-layers i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(240, 138, 36, .35); background: rgba(240, 138, 36, .08); color: #f5a04f;
  font: 700 12px "Cascadia Mono", Consolas, ui-monospace, monospace; font-style: normal; }
.dl-layers b { font-weight: 600; }
.dl-layers span { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 12.5px; color: var(--a-muted); text-align: end; }
html[lang="ar"] .dl-layers li:last-child span { font-family: var(--ui); }
.dl-pack-f { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 20px; border-top: 1px solid var(--a-line2); background: rgba(63, 185, 124, .05); font-size: 13px; color: #b9bcc4; }
.dl-pack-f svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--a-ok); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* -- three steps on one path -- */
.dl-steps { position: relative; list-style: none; margin: clamp(56px, 7vw, 84px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-steps::before { content: ""; position: absolute; top: 19px; left: 16.66%; right: 16.66%; height: 2px; background: linear-gradient(90deg, var(--a-amber), rgba(240, 138, 36, .25)); }
html[dir="rtl"] .dl-steps::before { background: linear-gradient(270deg, var(--a-amber), rgba(240, 138, 36, .25)); }
.dl-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; color: #a8acb5; line-height: 1.55; }
.dl-step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%; background: var(--a-bg); border: 2px solid var(--a-amber); color: var(--a-amber); font-weight: 700; font-size: 15px; }
.dl-steps li:first-child .dl-step-n { background: var(--a-amber); color: var(--a-ink); }
.dl-steps b { color: var(--a-text); font-size: 16px; }
.dl-steps li > span:last-child { max-width: 30ch; }

/* -- every version + other systems -- */
/* the ZIP for PCs where Windows Smart App Control blocks the .exe: one small line under the button */
.dl-zip { margin: 12px 0 0; max-width: 52ch; font-size: 13px; line-height: 1.6; color: var(--a-muted); }
.dl-zip a { color: #f5a04f; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dl-zip a:hover { color: var(--a-amber); }

/* macOS / Linux: one quiet line under the numbers */
.dl-later { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 18px 0 0; }
.dl-later span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #c9ccd3; }
.dl-later svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--a-muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dl-later small { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--a-line); font-size: 11.5px; font-weight: 500; color: var(--a-muted); }

/* every Windows version: a real table (version, downloads, what's new behind a button, download) */
.dl-box { padding: 22px 24px; border-radius: 14px; border: 1px solid var(--a-line); background: var(--a-win); min-width: 0; }
.dl-versions { margin-top: clamp(48px, 6vw, 72px); }
.dl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dl-table th { padding: 0 14px 12px; text-align: start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); border-bottom: 1px solid var(--a-line); white-space: nowrap; }
html[lang="ar"] .dl-table th { letter-spacing: 0; font-size: 13px; }
.dl-table td { padding: 14px; border-bottom: 1px solid var(--a-line2); vertical-align: middle; }
.dl-table th:first-child, .dl-table td:first-child { padding-inline-start: 4px; }
.dl-table th:last-child, .dl-table td:last-child { padding-inline-end: 4px; text-align: end; }
.dl-row td:first-child { white-space: nowrap; }
.dl-row td:first-child b { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 16px; margin-inline-end: 10px; direction: ltr; }
.dl-row.open td { border-bottom-color: transparent; }
.dl-n { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--a-text); white-space: nowrap; }
.dl-more { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--a-line); background: transparent; color: #c9ccd3; font: 600 13px var(--ui); cursor: pointer; transition: border-color .2s, color .2s; }
.dl-more:hover { border-color: #4a505c; color: var(--a-text); }
.dl-more:focus-visible { outline: 2px solid var(--a-amber); outline-offset: 2px; }
.dl-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dl-more[aria-expanded="true"] { border-color: var(--a-amber); color: #f5a04f; }
.dl-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.dl-row a { display: inline-block; padding: 7px 14px; border-radius: 8px; border: 1px solid #3a3f4a; color: var(--a-text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.dl-row a:hover { border-color: var(--a-amber); color: #f5a04f; }
.dl-row:first-child a { background: var(--a-amber); border-color: var(--a-amber); color: var(--a-ink); }
.dl-row:first-child a:hover { background: #ff9a35; color: var(--a-ink); }
.dl-note[hidden] { display: none; }
.dl-note td { padding: 0 4px 16px; text-align: start !important; }
.dl-note td > div { padding: 12px 16px; border-radius: 10px; background: var(--a-card); border-inline-start: 3px solid var(--a-amber); color: #c9ccd3; font-size: 14px; line-height: 1.7; }

/* -- docs and help -- */
.dl-help { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 20px 24px; border-radius: 14px; border: 1px solid var(--a-line); background: var(--a-win); }
.dl-help .dl-k { margin-bottom: 6px; }
.dl-help h3 { margin: 0; font-size: 20px; }
.dl-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dl-links a { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-text); text-decoration: none; transition: border-color .2s; }
.dl-links a:hover { border-color: var(--a-amber); }
.dl-links svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--a-amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dl-links span { display: flex; flex-direction: column; min-width: 0; }
.dl-links b { font-size: 14.5px; }
.dl-links small { font-size: 12px; color: var(--a-muted); }

/* --- download: tablets and phones (kept last so they win) --- */
@media (max-width: 1020px) {
  .dl-top { grid-template-columns: 1fr; }
  .dl-pack { max-width: 620px; width: 100%; }
  .dl-help { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dl-in { padding-top: 80px; padding-bottom: 104px; }
  .dl-sub { margin-bottom: 22px; }
  .dl-get, html[dir="rtl"] .dl-get { display: flex; padding: 9px 18px 9px 9px; }
  html[dir="rtl"] .dl-get { padding: 9px 9px 9px 18px; }
  .dl-get-i { width: 46px; height: 46px; }
  .dl-get-t b { font-size: 17px; }
  .dl-stats { margin-top: 26px; padding-top: 20px; }
  .dl-stat { padding-inline-end: 18px; margin-inline-end: 18px; }
  .dl-pack { box-shadow: none; }
  .dl-pack-h { padding: 14px 16px; }
  .dl-pack-logo { width: 44px; height: 44px; }
  .dl-layers { padding: 8px; }
  .dl-pack-f { padding: 12px 16px; }
  /* the steps become a path going down */
  .dl-steps { grid-template-columns: 1fr; gap: 22px; }
  .dl-steps::before { top: 20px; bottom: 20px; left: auto; right: auto; inset-inline-start: 19px; width: 2px; height: auto; background: linear-gradient(180deg, var(--a-amber), rgba(240, 138, 36, .25)); }
  html[dir="rtl"] .dl-steps::before { background: linear-gradient(180deg, var(--a-amber), rgba(240, 138, 36, .25)); }
  .dl-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 2px; align-items: start; text-align: start; }
  .dl-step-n { grid-row: 1 / 3; margin: 0; }
  .dl-steps b { padding-top: 8px; }
  .dl-steps li > span:last-child { max-width: none; }
  .dl-box, .dl-help { padding: 18px 16px; }
  /* the table stays a table: tighter cells, the "What's new" button shows only its arrow */
  .dl-table { font-size: 13.5px; }
  .dl-table th { padding: 0 8px 10px; font-size: 11px; }
  .dl-table td { padding: 12px 8px; }
  .dl-row td:first-child b { font-size: 14.5px; margin-inline-end: 6px; }
  .dl-row .dl-badge { display: none; }
  .dl-more { padding: 7px 9px; }
  .dl-more span { display: none; }
  .dl-row a { padding: 7px 11px; }
  .dl-links { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .dl-stat { padding-inline-end: 14px; margin-inline-end: 14px; }
  .dl-stat b { font-size: 24px; }
  .dl-stat > span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-live { animation: none; }
  .dl-layers li { opacity: 1; translate: 0 0; transition: none; }
}

/* ================= 8 · help =================
   Answer it yourself (FAQ, docs, guides) on one side, a "new message" window on the other:
   pick what it is about and the email writes itself. The three promises underneath. */
.hp-in { max-width: 1140px; padding-top: 96px; padding-bottom: 120px; }
.hp-head { text-align: center; }
.hp-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--a-ok); }
.hp-title { font-size: clamp(34px, 4vw, 58px); }
.hp-sub { margin: 0 auto 40px; max-width: 54ch; color: #a8acb5; font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.6; }
.hp-k { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
html[lang="ar"] .hp-k { letter-spacing: 0; font-size: 13px; }

.hp-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: stretch; }

/* -- answer it yourself -- */
.hp-self { display: flex; flex-direction: column; padding: 24px; border-radius: 16px; border: 1px solid var(--a-line); background: var(--a-win); min-width: 0; }
.hp-self h3 { margin: 0 0 18px; font-size: 21px; line-height: 1.3; }
.hp-routes { display: grid; gap: 10px; }
.hp-routes a { display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-text); text-decoration: none; transition: border-color .2s, background .2s; }
.hp-routes a:hover { border-color: var(--a-amber); background: #242830; }
.hp-routes a:focus-visible { outline: 2px solid var(--a-amber); outline-offset: 2px; }
.hp-ri { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(240, 138, 36, .35); background: rgba(240, 138, 36, .08); }
.hp-ri svg { width: 21px; height: 21px; fill: none; stroke: var(--a-amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hp-rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-rt b { font-size: 15.5px; }
.hp-rt small { font-size: 12.5px; color: var(--a-muted); }
.hp-go { width: 18px; height: 18px; fill: none; stroke: var(--a-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s, stroke .2s; }
html[dir="rtl"] .hp-go { transform: scaleX(-1); }
.hp-routes a:hover .hp-go { stroke: var(--a-amber); transform: translateX(3px); }
html[dir="rtl"] .hp-routes a:hover .hp-go { transform: scaleX(-1) translateX(3px); }

/* -- the new message window -- */
.hp-mail { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--a-line); background: var(--a-win); overflow: hidden; min-width: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.hp-tb { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; background: var(--a-side); border-bottom: 1px solid var(--a-line2); }
.hp-dots { display: flex; gap: 6px; }
.hp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f4a; }
.hp-dots i:first-child { background: var(--a-amber); }
.hp-tb b { font-size: 13px; font-weight: 600; color: #b9bcc4; }
.hp-row { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--a-line2); min-width: 0; }
.hp-row-top { align-items: start; grid-template-columns: 76px 1fr; }
.hp-row-top .hp-lab { padding-top: 7px; }
.hp-lab { font-size: 13px; color: var(--a-muted); }
.hp-mail .mail { font: 600 15.5px "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--a-text); text-decoration: none; direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
html[dir="rtl"] .hp-mail .mail { text-align: end; }
.hp-mail .mail:hover { color: #f5a04f; }
.hp-copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; border: 1px solid #3a3f4a; background: var(--a-card); color: var(--a-text); font: 600 12.5px var(--ui); cursor: pointer; transition: border-color .2s, color .2s; }
.hp-copy:hover { border-color: var(--a-amber); color: #f5a04f; }
.hp-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hp-chips button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-card); color: #c9ccd3; font: 600 13px var(--ui); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
html[lang="ar"] .hp-chips button { font-size: 14px; }
.hp-chips button:hover { border-color: #4a505c; color: var(--a-text); }
.hp-chips button[aria-pressed="true"] { border-color: var(--a-amber); background: rgba(240, 138, 36, .12); color: #f5a04f; }
.hp-chips button[aria-pressed="true"]::before { content: "✓ "; }
.hp-chips button:focus-visible { outline: 2px solid var(--a-amber); outline-offset: 2px; }
.hp-subj { grid-column: 2 / -1; font: 600 14px "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--a-text); direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
html[dir="rtl"] .hp-subj { text-align: end; }
.hp-body { flex: 1; padding: 16px 18px; }
.hp-body p { margin: 0 0 10px; font-size: 13.5px; color: var(--a-muted); line-height: 1.55; }
.hp-body pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--a-bg); border: 1px dashed var(--a-line); font: 13px / 1.7 "Cascadia Mono", Consolas, ui-monospace, monospace; color: #b9bcc4; direction: ltr; text-align: left; white-space: pre-wrap; }
.hp-foot { padding: 0 18px 18px; }
.hp-send { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 12px; background: var(--a-amber); color: var(--a-ink); font: 700 16px var(--ui); text-decoration: none;
  box-shadow: 0 16px 34px -16px rgba(240, 138, 36, .75); transition: background .2s, transform .2s; }
.hp-send:hover { background: #ff9a35; transform: translateY(-1px); }
.hp-send:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hp-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .hp-send svg { transform: scaleX(-1); }

/* -- the three promises -- */
.hp-promise { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-promise li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--a-line2); background: rgba(255, 255, 255, .02); font-size: 14.5px; font-weight: 600; color: #d6d8dd; }
.hp-promise svg { width: 36px; height: 36px; padding: 8px; flex: none; border-radius: 10px; background: rgba(63, 185, 124, .1); fill: none; stroke: var(--a-ok); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- help: tablets and phones (kept last so they win) --- */
@media (max-width: 960px) {
  .hp-grid { grid-template-columns: 1fr; }
  .hp-mail { order: -1; }
  .hp-promise { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 760px) {
  .hp-in { padding-top: 80px; padding-bottom: 104px; }
  .hp-sub { margin-bottom: 28px; }
  .hp-mail { box-shadow: none; }
  .hp-row, .hp-row-top { grid-template-columns: 1fr auto; gap: 8px 10px; padding: 12px 14px; }
  .hp-lab { grid-column: 1 / -1; }
  .hp-row-top .hp-lab { padding-top: 0; }
  .hp-row-top .hp-chips { grid-column: 1 / -1; }
  .hp-subj { grid-column: 1 / -1; }
  .hp-mail .mail { font-size: 14.5px; }
  .hp-body { padding: 14px; }
  .hp-foot { padding: 0 14px 14px; }
  .hp-self { padding: 18px 16px; }
  .hp-self h3 { font-size: 19px; }
  .hp-routes a { grid-template-columns: 38px 1fr 18px; gap: 12px; padding: 12px; }
  .hp-ri { width: 38px; height: 38px; }
  .hp-promise li { padding: 12px 14px; font-size: 14px; }
}

/* ================= 8 · thank you, XAMPP =================
   A real thank-you letter on one side; on the other, the wait in dates: PHP moved every year,
   XAMPP stood still for 35 months. Then what AMPLE does about it. */
.th-in { max-width: 1140px; padding-top: 96px; padding-bottom: 120px; }
.th-head { text-align: center; margin-bottom: 36px; }
.th-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--a-amber); }
.th-title { font-size: clamp(34px, 4vw, 58px); }
.th-k { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
html[lang="ar"] .th-k { letter-spacing: 0; font-size: 13px; }

.th-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 16px; align-items: stretch; }

/* -- the letter -- */
.th-letter { position: relative; display: flex; flex-direction: column; padding: 24px 32px 26px; border-radius: 16px; border: 1px solid #3d3326;
  background: linear-gradient(160deg, rgba(240, 138, 36, .08), transparent 55%), var(--a-win); min-width: 0; }
.th-to { display: flex; align-items: center; gap: 14px; margin: 0 0 22px !important; padding-bottom: 18px; border-bottom: 1px solid var(--a-line2); }
.th-to img { width: 44px; height: 44px; flex: none; }
.th-to span { display: flex; flex-direction: column; gap: 1px; }
.th-to b { font-size: 18px; color: var(--a-text); line-height: 1.2; }
.th-to small { font-size: 12px; color: var(--a-muted); line-height: 1.4; }
.th-lane em img { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 5px; }
.th-letter p { position: relative; margin: 0 0 16px; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.75; color: #d6d8dd; }
html[lang="ar"] .th-letter p { line-height: 1.9; }
.th-letter .th-turn { color: var(--a-text); font-weight: 600; padding-inline-start: 14px; border-inline-start: 3px solid var(--a-amber); }
.th-sign { display: flex; align-items: center; gap: 12px; margin: auto 0 0 !important; padding-top: 18px; border-top: 1px solid var(--a-line2); }
.th-sign span { display: flex; flex-direction: column; gap: 1px; }
.th-sign b { font-size: 14.5px; color: var(--a-text); }
.th-sign small { font-size: 12px; color: var(--a-muted); letter-spacing: .06em; }

/* -- the wait -- */
.th-gap { display: flex; flex-direction: column; padding: 26px 28px; border-radius: 16px; border: 1px solid var(--a-line); background: var(--a-win); min-width: 0; }
.th-big { display: flex; align-items: baseline; gap: 12px; }
.th-big b { font: 700 clamp(56px, 6vw, 84px) / .95 "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--a-amber); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.th-big span { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; color: var(--a-text); }
.th-gap-d { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: #a8acb5; }

/* the two lanes: PHP every year, XAMPP standing still */
.th-tl { position: relative; margin: 28px 0 6px; }
.th-years { position: relative; height: 18px; margin-inline-start: 64px; }
.th-years span { position: absolute; inset-inline-start: var(--x); top: 0; font: 600 11.5px "Cascadia Mono", Consolas, ui-monospace, monospace; color: #6f7480; }
.th-years span::after { content: ""; position: absolute; inset-inline-start: 0; top: 18px; width: 1px; height: 92px; background: var(--a-line2); }
.th-lane { display: grid; grid-template-columns: 64px 1fr; align-items: center; height: 46px; }
.th-lane em { font: 700 12px var(--ui); font-style: normal; color: var(--a-muted); }
.th-track { position: relative; height: 2px; background: var(--a-line); }
.th-php .th-track { background: linear-gradient(90deg, rgba(240, 138, 36, .15), rgba(240, 138, 36, .5)); }
.th-dot { position: absolute; top: 50%; inset-inline-start: var(--x); width: 12px; height: 12px; margin-top: -6px; margin-inline-start: -6px; border-radius: 50%;
  background: var(--a-amber); box-shadow: 0 0 0 4px var(--a-win); scale: 0; transition: scale .45s var(--ease) calc(var(--i, 0) * 220ms + .5s); }
.th-xampp .th-dot { background: #8b909b; }
.th-xampp .th-late { background: var(--a-text); }
.th-dot span { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font: 700 11.5px "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--a-text); white-space: nowrap; }
.th-xampp .th-dot span { bottom: auto; top: 16px; color: var(--a-muted); }
.th-xampp .th-late span { color: var(--a-text); }
.th-first span { left: -6px; transform: none; }
html[dir="rtl"] .th-first span { left: auto; right: -6px; }
.th-late span { left: auto; right: -6px; transform: none; }
html[dir="rtl"] .th-late span { right: auto; left: -6px; }
.th-wait { position: absolute; top: -1px; inset-inline-start: var(--x); width: var(--w); height: 4px;
  background: repeating-linear-gradient(90deg, rgba(240, 96, 90, .75) 0 6px, transparent 6px 11px); transform: scaleX(0); transform-origin: left center;
  transition: transform 1.6s cubic-bezier(.3, 0, .2, 1) .7s; }
html[dir="rtl"] .th-wait { transform-origin: right center; }
.th-wait span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: #f0807a; white-space: nowrap; }
#thanks.on .th-dot { scale: 1; }
#thanks.on .th-wait { transform: scaleX(1); }

/* the dates, written out */
.th-log { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--a-line2); display: grid; gap: 8px; }
.th-log li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; font-size: 13.5px; color: #c9ccd3; line-height: 1.5; }
.th-log time { font: 600 12.5px "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--a-muted); padding-top: 1px; }
html[lang="ar"] .th-log time { font-family: var(--ui); font-size: 13px; }
.th-log .th-p span { color: #f5a04f; }

/* -- what AMPLE does about it -- */
.th-now { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.th-now li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--a-line2); background: rgba(255, 255, 255, .02); font-size: 14.5px; font-weight: 600; color: #d6d8dd; }
.th-now svg { width: 36px; height: 36px; padding: 8px; flex: none; border-radius: 10px; background: rgba(240, 138, 36, .1); fill: none; stroke: var(--a-amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.th-src { margin: 14px 0 0; text-align: center; font-size: 12px; color: #6f7480; }

/* --- thank you: tablets and phones (kept last so they win) --- */
@media (max-width: 960px) {
  .th-grid { grid-template-columns: 1fr; }
  .th-now { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 760px) {
  .th-in { padding-top: 80px; padding-bottom: 104px; }
  .th-head { margin-bottom: 26px; }
  .th-letter { padding: 18px 18px 20px; }
  .th-to img { width: 38px; height: 38px; }
  .th-lane em img { display: none; }
  .th-gap { padding: 20px 16px; }
  .th-years { margin-inline-start: 52px; }
  .th-lane { grid-template-columns: 52px 1fr; }
  .th-lane em { font-size: 11px; }
  .th-dot span, .th-years span { font-size: 10.5px; }
  .th-wait span { display: none; }
  .th-log li { grid-template-columns: 1fr; gap: 0; }
  .th-now li { padding: 12px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .th-dot { scale: 1; transition: none; }
  .th-wait { transform: none; transition: none; }
}

/* ================= memory: only the rooms that matter are drawn =================
   All eight full-screen rooms drawn at once used more graphics memory than iPhones allow a tab,
   so iOS closed the page ("A problem repeatedly occurred") and Android slowed down. A room that
   is not in .show is a plain box with its skeleton: no content, no scrolling, no animation. */
/* phones and tablets only: the computer keeps every room drawn, as before */
@media (hover: none), (max-width: 960px) {
  .room:not(.show) { overflow: hidden; }
  .room:not(.show) > :not(.skel) { display: none !important; }
  .room:not(.show) .skel i { animation: none !important; }
  /* the trip keeps its movement, without the costly effects */
  .stage.trip .room { box-shadow: none; }
  .stage.trip .camera, .stage.trip .plane { will-change: auto; }
  .stage.trip .room:not(.on) .skel i { animation: none; }
  .room.leaving .room-in, .room.leaving .hero-glow, .room.leaving .hero-grid { filter: none; }
  .w > span { filter: none !important; }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .lang-wipe { background: #111317; }
  .blob { animation: none; filter: blur(40px); }
  .tl-grain { display: none; }
}

/* ================= 3 · every day: bento cards =================
   Six cards, all visible, each a close-up of the real screen (AMPLE's own sidebar cropped out).
   A card clearly lifts and turns amber on hover; it opens a box with the whole screen. */
.bt-in { max-width: 1240px; position: relative; z-index: 1; padding-top: 92px; padding-bottom: 118px; }
.bt-head { text-align: center; }
.ev-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--a-amber); }
.bt-title { font-size: clamp(30px, 3.4vw, 50px); }
html[lang="ar"] .bt-title { font-size: clamp(28px, 3.2vw, 46px); }
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.bt-big { grid-column: span 2; }

.bt-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 18px 18px 0; overflow: hidden;
  border: 1px solid var(--a-line); border-radius: 16px; background: linear-gradient(180deg, #1f232a, #1a1d23); color: var(--a-text);
  font: inherit; font-family: var(--ui); text-align: start; cursor: pointer;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease), opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.bt-card:hover { transform: translateY(-4px); border-color: rgba(240, 138, 36, .6); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(240, 138, 36, .14); }
.bt-card:focus-visible { outline: 2px solid var(--a-amber); outline-offset: 3px; }
.bt-top { display: flex; align-items: center; gap: 10px; padding-inline-end: 130px; }
.bt-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: rgba(240, 138, 36, .12); color: #f5a04f; }
.bt-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-kind { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); }
html[lang="ar"] .bt-kind { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.bt-t { margin-top: 6px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
html[lang="ar"] .bt-t { letter-spacing: 0; }
.bt-d { font-size: 14px; line-height: 1.55; color: #a8acb5; max-width: 54ch; }
/* the close-up: a part of the real screenshot, chosen per card (--bs zoom, --px / --py position) */
.bt-shot { display: block; margin: auto 0 14px; margin-top: auto; height: clamp(105px, 14vh, 132px); border: 1.5px solid rgba(240, 138, 36, .7); border-radius: 12px; box-shadow: 0 10px 26px -14px rgba(240, 138, 36, .45);
  background-color: #1b1e24; background-repeat: no-repeat; background-position: var(--px, 0) var(--py, 0); background-size: var(--bs, cover) auto; transition: background-size .7s var(--ease); }
.bt-big .bt-shot { height: clamp(130px, 19vh, 176px); }
.bt-card > .bt-d + .bt-shot, .bt-card > .bt-t + .bt-shot { margin-top: 12px; }
.bt-card:hover .bt-shot { border-color: #f08a24; }
.bt-card:hover .bt-shot:not(.bt-share) { background-size: calc(var(--bs) * 1.06) auto; }
/* "View the screen": always there, so it reads as something you can press */
.bt-more { position: absolute; top: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--a-line); background: rgba(17, 19, 23, .6); color: var(--a-muted); font-size: 12px; font-weight: 600; transition: background-color .25s, color .25s, border-color .25s; }
.bt-more i { font-style: normal; transition: transform .25s; }
html[dir="rtl"] .bt-more i { transform: scaleX(-1); }
.bt-card:hover .bt-more { background: var(--a-amber); border-color: var(--a-amber); color: var(--a-ink); }
.bt-card:hover .bt-more i { transform: translateX(3px); }
html[dir="rtl"] .bt-card:hover .bt-more i { transform: scaleX(-1) translateX(3px); }

/* Share: the panel's share card, drawn small */
.bt-share, .bt-share-big { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 138, 36, .12), transparent 65%), #1b1e24; }
.bs-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bs-row b { color: #f5a04f; font-size: 13px; }
.bs-row em { margin-inline-start: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(63, 185, 124, .14); color: var(--a-ok); }
.bs-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--a-ok); box-shadow: 0 0 0 3px rgba(63, 185, 124, .18); }
.bs-link { display: block; padding: 7px 10px; border-radius: 7px; border: 1px solid var(--a-line); background: #111317; font: 11.5px "Cascadia Mono", Consolas, monospace; color: var(--a-text); direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-btn { height: 24px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid #3a3f4a; font-size: 11.5px; font-weight: 600; color: var(--a-text); }
.bs-stop { margin-inline-start: auto; border-color: rgba(240, 96, 90, .5); background: rgba(240, 96, 90, .1); color: var(--a-bad); }

/* the box a card opens */
.bt-box { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; overflow: auto;
  border: 1px solid var(--a-line); border-radius: 16px; background: var(--a-win); color: var(--a-text); font-family: var(--ui); }
.bt-box { opacity: 0; transform: translateY(18px) scale(.965); transition: opacity .28s ease, transform .34s cubic-bezier(.2, .8, .2, 1); }
.bt-box.show { opacity: 1; transform: none; }
.bt-box::backdrop { background: rgba(8, 9, 11, 0); transition: background-color .28s ease; }
.bt-box.show::backdrop { background: rgba(8, 9, 11, .82); }
@media (prefers-reduced-motion: reduce) { .bt-box, .bt-box::backdrop { transition: none; } }
.bt-close { position: sticky; top: 12px; z-index: 1; float: inline-end; margin: 12px 12px 0; height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-text); font: 600 13px var(--ui); cursor: pointer; }
.bt-close:hover { border-color: var(--a-amber); }
.bt-box-body { padding: 12px 26px 26px; }
.bt-box-body img { display: block; width: 100%; height: auto; margin-top: 46px; border-radius: 10px; border: 1px solid var(--a-line); }
.bt-box-body .bt-share-big { margin-top: 46px; padding: 22px; border-radius: 12px; border: 1px solid var(--a-line); gap: 12px; }
.bt-share-big .bs-row b { font-size: 15px; }
.bt-share-big .bs-link { font-size: 13px; padding: 10px 12px; }
.bt-share-big .bs-btn { height: 30px; font-size: 12.5px; }
.bt-share-big small { font-size: 12.5px; color: var(--a-muted); }
.bt-box-body h3 { margin: 20px 0 8px; font-size: 24px; font-weight: 700; }
.bt-box-body p { margin: 0 0 14px; color: #a8acb5; font-size: 15.5px; line-height: 1.65; }
.bt-box-body ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bt-box-body li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-card); font-size: 14px; line-height: 1.5; }
.bt-box-body li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: rgba(63, 185, 124, .14); color: var(--a-ok); font-size: 11px; font-weight: 700; }

@media (max-width: 1100px) {
  .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bt-in { padding-top: 88px; padding-bottom: 104px; }
  .bt-title, html[lang="ar"] .bt-title { font-size: min(8.6vw, 36px); }
  .bt-grid { grid-template-columns: 1fr; gap: 12px; }
  .bt-big { grid-column: auto; }
  .bt-card:hover { transform: none; }
  .bt-top { padding-inline-end: 0; }
  .bt-more { position: static; align-self: flex-start; order: 9; margin: 0 0 14px; }
  .bt-shot, .bt-big .bt-shot { height: 120px; }
  .bt-box-body { padding: 8px 16px 18px; }
  .bt-box-body ul { grid-template-columns: 1fr; }
}

/* the gallery in the box: one screenshot at a time, small pictures to pick, arrows on the sides */
.bt-gal { position: relative; margin-top: 46px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1.5px solid rgba(240, 138, 36, .55); background: #111317; }
.bt-slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.bt-slide.on { opacity: 1; pointer-events: auto; }
.bt-box-body .bt-slide img { margin: 0; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.bt-slide figcaption { position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(17, 19, 23, .85); border: 1px solid var(--a-line); font-size: 12.5px; font-weight: 600; color: var(--a-text); }
/* the arrows: own class names (.next / .prev belong to the room engine's travel buttons) */
.bt-nav { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; min-width: 0; padding: 0; margin: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(17, 19, 23, .72); color: #fff; cursor: pointer; transform: translateY(-50%);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .7); transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.bt-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bt-nav:hover { background: var(--a-amber); border-color: var(--a-amber); color: var(--a-ink); transform: translateY(-50%) scale(1.06); }
.bt-nav:focus-visible { outline: 2px solid var(--a-amber); outline-offset: 2px; }
.bt-nav.bt-prev { left: 14px; }
.bt-nav.bt-next { right: 14px; }
html[dir="rtl"] .bt-nav svg { transform: scaleX(-1); }
html[dir="rtl"] .bt-nav.bt-prev { left: auto; right: 14px; }
html[dir="rtl"] .bt-nav.bt-next { right: auto; left: 14px; }
.bt-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.bt-thumb { width: 96px; height: 56px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid var(--a-line); background: #111317; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.bt-thumb:hover { opacity: .9; }
.bt-thumb.on { opacity: 1; border-color: var(--a-amber); }
.bt-box-body .bt-thumb img { margin: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; border: 0; border-radius: 0; }
@media (max-width: 640px) {
  .bt-gal { aspect-ratio: 4 / 3; }
  .bt-thumb { width: 72px; height: 44px; }
  .bt-nav { width: 38px; height: 38px; }
}

/* ================= 4 · why we built AMPLE: XAMPP before, AMPLE after, a line you drag ================= */
@property --cut { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.xv-in { max-width: 1280px; position: relative; z-index: 1; padding-top: 92px; padding-bottom: 118px; }
.xv-head { text-align: center; }
.xv-title { font-size: clamp(30px, 3.4vw, 50px); }
html[lang="ar"] .xv-title { font-size: clamp(28px, 3.2vw, 46px); }
.xv-sub { color: #a8acb5; font-size: clamp(14.5px, 1.15vw, 17px); line-height: 1.55; max-width: 64ch; margin: 0 auto 22px; }
.xv-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }

/* the problems */
.xv-list { display: flex; flex-direction: column; gap: 8px; transition: opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.xv-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--a-line); background: var(--a-win);
  color: var(--a-text); font: 600 14px / 1.35 var(--ui); text-align: start; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.xv-item:hover { border-color: #4a505c; transform: translateX(3px); }
html[dir="rtl"] .xv-item:hover { transform: translateX(-3px); }
.xv-x { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 7px; background: rgba(240, 96, 90, .14); color: var(--a-bad); }
.xv-x svg, .xv-manual-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.xv-item.on { border-color: var(--a-amber); background: rgba(240, 138, 36, .09); }
.xv-item.on .xv-x { background: var(--a-bad); color: #fff; }

/* the picture: AMPLE underneath, XAMPP on top cut at --cut */
.xv-stage { min-width: 0; transition: opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.xv-vs { position: relative; height: min(44vh, 440px); border-radius: 14px; overflow: hidden; border: 1px solid var(--a-line); background: #111317;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.xv-vs.xv-auto { transition: --cut .45s cubic-bezier(.45, 0, .2, 1); }
.xv-new, .xv-old { position: absolute; inset: 0; display: grid; place-items: center; }
.xv-new { background: radial-gradient(ellipse at 70% 30%, rgba(63, 185, 124, .08), transparent 60%), #15171c; }
.xv-old { background: radial-gradient(ellipse at 30% 30%, rgba(240, 96, 90, .1), transparent 60%), #0c0d10; clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
html[dir="rtl"] .xv-old { clip-path: inset(0 0 0 calc(100% - var(--cut))); }
.xv-new img, .xv-old img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.xv-old img { filter: saturate(.85); }
.xv-src { position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(12, 13, 16, .85); font-size: 11px; color: #8b9099; }
/* a problem with no XAMPP screenshot: what you have to do by hand instead */
.xv-manual { position: absolute; top: 50%; inset-inline-start: 5%; width: 40%; translate: 0 -50%; display: flex; flex-direction: column; gap: 8px; text-align: start; }
.xv-manual-x { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(240, 96, 90, .14); color: var(--a-bad); }
.xv-manual-x svg { width: 20px; height: 20px; }
.xv-manual b { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.25; color: #e6e3dc; }
.xv-manual span:last-child { font-size: 14px; line-height: 1.6; color: #9a9ea8; }
.xv-tag { position: absolute; top: 12px; z-index: 2; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; }
.xv-tag-old { inset-inline-start: 12px; background: rgba(240, 96, 90, .18); color: #ff7b75; }
.xv-tag-new { inset-inline-end: 12px; background: rgba(63, 185, 124, .18); color: #5fd197; }
/* the line and its knob */
.xv-handle { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--cut); z-index: 3; width: 0; outline: none; }
.xv-handle::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -1px; width: 2px; background: var(--a-amber); box-shadow: 0 0 14px rgba(240, 138, 36, .6); }
.xv-knob { position: absolute; top: 50%; inset-inline-start: -22px; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--a-amber); color: var(--a-ink); box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .7), 0 0 0 4px rgba(240, 138, 36, .25); transition: transform .2s; }
.xv-knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xv-vs:hover .xv-knob, .xv-handle:focus-visible .xv-knob { transform: scale(1.08); }
.xv-handle:focus-visible .xv-knob { box-shadow: 0 0 0 4px rgba(240, 138, 36, .55); }

/* the two sides, in words */
.xv-text { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.xv-col { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-win); }
.xv-col-old { border-top: 2px solid rgba(240, 96, 90, .7); }
.xv-col-new { border-top: 2px solid rgba(63, 185, 124, .7); }
.xv-col > b { font-size: 11.5px; letter-spacing: .12em; }
.xv-col-old > b { color: #ff7b75; }
.xv-col-new > b { color: #5fd197; }
.xv-col h3 { margin: 4px 0 4px; font-size: 16.5px; font-weight: 700; }
.xv-col p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #a8acb5; }
.xv-err { display: block; margin-top: 8px; padding: 7px 10px; border-radius: 7px; background: #0c0d10; border: 1px solid rgba(240, 96, 90, .3); color: #ff6b63;
  font: 12px "Cascadia Mono", Consolas, monospace; direction: ltr; text-align: left; white-space: normal; }
.xv-fact { margin-top: 6px !important; font-size: 12.5px !important; color: #ff8a84 !important; }
.xv-hint { margin: 10px 0 0; text-align: center; font-size: 12px; color: #7d818b; }
.xv-credit { font-size: 10.5px; color: #5f636c; direction: ltr; unicode-bidi: isolate; }

@media (max-width: 960px) {
  .xv-grid { grid-template-columns: 1fr; }
  .xv-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .xv-list::-webkit-scrollbar { display: none; }
  .xv-item { flex: none; max-width: 240px; }
  .xv-item:hover { transform: none; }
}
@media (max-width: 640px) {
  .xv-in { padding-top: 88px; padding-bottom: 104px; }
  .xv-title, html[lang="ar"] .xv-title { font-size: min(8.6vw, 36px); }
  .xv-sub { font-size: 14.5px; }
  .xv-vs { height: 62vw; }
  .xv-manual { width: 44%; inset-inline-start: 3%; gap: 4px; }
  .xv-manual-x { width: 30px; height: 30px; }
  .xv-manual b { font-size: 14px; }
  .xv-manual span:last-child { display: none; }
  .xv-knob { width: 38px; height: 38px; inset-inline-start: -19px; }
  .xv-text { grid-template-columns: 1fr; }
}
/* page 4 fits one screen: no subtitle, a shorter picture, the error shown in the picture only */
.xv-sub { display: none; }
.xv-head .ah-title { margin-bottom: 18px; }
.xv-vs { height: min(36vh, 330px); }
.xv-err { display: none; }
.xv-item { padding: 9px 12px; }
.xv-col { padding: 11px 14px; }
@media (max-width: 640px) { .xv-vs { height: 62vw; } }
.xv-in { padding-top: 86px; padding-bottom: 96px; }
.xv-vs { height: min(33vh, 320px); }
@media (max-width: 640px) { .xv-in { padding-top: 84px; padding-bottom: 100px; } .xv-vs { height: 62vw; } }
/* the two screenshots fill the frame exactly and show WHOLE (a % height inside a grid item used the
   picture's own height instead, so only its top part showed) */
.xv-new, .xv-old { display: block; }
.xv-new img, .xv-old img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; }
.xv-old .xv-src { z-index: 1; }
/* each screenshot sits in its own half: with the line in the middle both show WHOLE, side by side;
   dragging slides one over the other */
.xv-old img { object-position: left center; }
.xv-new img { object-position: right center; }
html[dir="rtl"] .xv-old img { object-position: right center; }
html[dir="rtl"] .xv-new img { object-position: left center; }
.xv-old img, .xv-new img { padding: 14px; box-sizing: border-box; }
/* bigger pictures: both screenshots full size on top of each other (the line reveals one over the
   other), and the explanation moves into the list, under the chosen problem */
.xv-grid { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
.xv-old img, .xv-new img, html[dir="rtl"] .xv-old img, html[dir="rtl"] .xv-new img { object-position: center; padding: 10px; }
.xv-vs { height: min(60vh, 540px); }
.xv-list { gap: 6px; }
.xv-detail { display: none; margin: -6px 0 2px; padding: 10px 14px 12px; border: 1px solid var(--a-amber); border-top: 0; border-radius: 0 0 11px 11px; background: rgba(240, 138, 36, .05); }
.xv-item.on { border-radius: 11px 11px 0 0; }
.xv-item.on + .xv-detail { display: block; animation: su-in .35s var(--ease) both; }
.xv-detail .xv-col { padding: 0; border: 0; background: none; }
.xv-detail .xv-col + .xv-col { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--a-line2); }
.xv-detail .xv-col > b { font-size: 10.5px; }
.xv-detail h3 { margin: 3px 0 2px; font-size: 14.5px; }
.xv-detail p { font-size: 13px; line-height: 1.5; }
@media (max-width: 960px) {
  .xv-list { flex-direction: column; overflow: visible; }
  .xv-item { max-width: none; }
}
@media (max-width: 640px) { .xv-vs { height: 62vw; } }
/* a tighter list, so the page stays one screen */
.xv-grid { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.xv-item { padding: 7px 12px; font-size: 13.5px; }
.xv-x { width: 24px; height: 24px; }
.xv-detail { padding: 8px 12px 10px; }
.xv-detail p { font-size: 12.5px; }
/* "3 million" sits on the XAMPP picture */
.xv-fact-tag { position: absolute; z-index: 1; inset-inline-end: 12px; bottom: 12px; max-width: 46%; padding: 6px 10px; border-radius: 8px;
  background: rgba(12, 13, 16, .9); border: 1px solid rgba(240, 96, 90, .45); color: #ff8a84; font-size: 11.5px; line-height: 1.4; text-align: start; }
html[dir="rtl"] .xv-old:not(:has(.xv-manual)) .xv-fact-tag { inset-inline-end: auto; inset-inline-start: 12px; bottom: 44px; }
.xv-in { padding-top: 78px; }

/* page 4, smooth: the chosen picture fades in over the last one, its explanation slides open */
.xv-stage { display: grid; }
.xv-pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.xv-pane.on { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.xv-pane .xv-vs { transform: scale(.985); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.xv-pane.on .xv-vs { transform: none; }
.xv-hint { grid-row: 2; }
.xv-list { gap: 0; }
.xv-item + .xv-detail + .xv-item { margin-top: 6px; }
.xv-item { transition: border-color .25s, background-color .25s, border-radius .3s, transform .2s; }
.xv-detail, .xv-item.on + .xv-detail { display: grid; }
.xv-detail { grid-template-rows: 0fr; margin: 0; padding: 0 12px; opacity: 0; border: 1px solid transparent; border-top: 0; border-radius: 0 0 11px 11px; background: transparent;
  transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1), padding .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, border-color .3s, background-color .3s; }
.xv-detail-in { min-height: 0; overflow: hidden; }
.xv-item.on + .xv-detail { grid-template-rows: 1fr; margin: 0; padding: 8px 12px 10px; opacity: 1; border-color: var(--a-amber); background: rgba(240, 138, 36, .05); animation: none; }
@media (prefers-reduced-motion: reduce) { .xv-pane, .xv-pane .xv-vs, .xv-detail { transition: none; } }
.xv-in { padding-bottom: 92px; }

/* ===== page 4 (why), phones and tablets: these come LAST so the desktop sizing above cannot undo them ===== */
@media (max-width: 960px) {
  .xv-in { padding-top: 88px; padding-bottom: 104px; }
  .xv-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .xv-stage { order: -1; }                                   /* the picture first, the problems under it */
  .xv-vs { height: min(56vw, 440px); }
  .xv-list { flex-direction: column; overflow: visible; padding-bottom: 0; }
  .xv-item { max-width: none; }
  .xv-item:hover { transform: none; }
}
@media (max-width: 640px) {
  .xv-in { padding-top: 84px; padding-bottom: 100px; }
  .xv-title, html[lang="ar"] .xv-title { font-size: min(8.4vw, 34px); }
  .xv-vs { height: 64vw; }
  .xv-old img, .xv-new img { padding: 4px; }
  .xv-tag { top: 8px; font-size: 10px; padding: 3px 8px; }
  .xv-tag-old { inset-inline-start: 8px; }
  .xv-tag-new { inset-inline-end: 8px; }
  .xv-src, .xv-fact-tag { display: none; }
  .xv-manual { width: 44%; inset-inline-start: 3%; }
  .xv-manual span:last-child { display: none; }
  .xv-manual b { font-size: 13.5px; }
  .xv-knob { width: 36px; height: 36px; inset-inline-start: -18px; }
  .xv-knob svg { width: 16px; height: 16px; }
  .xv-hint { font-size: 11px; }
}

/* ================= 5 · safe by design: a live safety check + the five points it proves =================
   Phone / tablet rules are at the END of this block on purpose (so nothing above can undo them). */
.sa-in { max-width: 1240px; position: relative; z-index: 1; padding-top: 86px; padding-bottom: 96px; }
.sa-head { text-align: center; }
.sa-title { font-size: clamp(30px, 3.4vw, 50px); }
html[lang="ar"] .sa-title { font-size: clamp(28px, 3.2vw, 46px); }
.sa-sub { color: #a8acb5; font-size: clamp(14.5px, 1.15vw, 17px); line-height: 1.55; max-width: 60ch; margin: 0 auto 24px; }
.sa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* the check window */
.sa-term { border-radius: 14px; overflow: hidden; border: 1px solid var(--a-line); background: #0c0d10; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85);
  transition: opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.sa-tb { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--a-line2); background: var(--a-side); }
.sa-tb i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f49; }
.sa-tb i:first-child { background: var(--a-amber); }
.sa-tb span { margin-inline-start: 8px; font-size: 12.5px; color: var(--a-muted); }
.sa-body { padding: 16px 18px 18px; font: 13.5px / 1.5 "Cascadia Mono", Consolas, ui-monospace, monospace; }
.sa-cmd { margin: 0 0 12px; color: #c9ccd3; direction: ltr; text-align: left; }
.sa-cmd span { color: var(--a-amber); font-weight: 700; }
.sa-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sa-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; border: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.sa-line code { color: #6b7079; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: left; transition: color .3s; }
.sa-st { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #3a3f49; transition: background-color .25s, border-color .25s; }
.sa-line[data-s="run"] { background: rgba(240, 138, 36, .07); }
.sa-line[data-s="run"] .sa-st { border-color: var(--a-amber); border-top-color: transparent; animation: spin .7s linear infinite; }
.sa-line[data-s="run"] code { color: #e6e3dc; }
.sa-line[data-s="ok"] .sa-st { border-color: var(--a-ok); background: var(--a-ok); }
.sa-line[data-s="ok"] .sa-st::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px var(--ui); color: #0c0d10; }
.sa-line[data-s="ok"] code { color: #e6e3dc; }
.sa-ok { font: 700 11.5px var(--ui); letter-spacing: .08em; color: var(--a-ok); opacity: 0; transition: opacity .3s; }
.sa-line[data-s="ok"] .sa-ok { opacity: 1; }
.sa-line.hl { background: rgba(255, 255, 255, .05); border-color: var(--a-line); }
.sa-done { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(63, 185, 124, .4); background: rgba(63, 185, 124, .08); font-family: var(--ui); opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.sa-done.on { opacity: 1; transform: none; }
.sa-done-ic { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--a-ok); color: #0c0d10; font-weight: 700; }
.sa-done b { font-size: 15px; color: #e6e3dc; }
.sa-done small { font-size: 12.5px; color: #9a9ea8; }

/* the five points */
.sa-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sa-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-win);
  transition: border-color .3s, background-color .3s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.sa-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(154, 158, 168, .1); color: var(--a-muted); transition: background-color .35s, color .35s; }
.sa-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sa-card h3 { margin: 1px 0 3px; font-size: 15.5px; font-weight: 700; }
.sa-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #a8acb5; }
.sa-card.done .sa-ic { background: rgba(63, 185, 124, .14); color: var(--a-ok); }
.sa-card.lit { border-color: var(--a-amber); background: rgba(240, 138, 36, .06); }
.sa-card:hover { border-color: #4a505c; }
@media (prefers-reduced-motion: reduce) { .sa-line[data-s="run"] .sa-st { animation: none; } }

/* ---- phones and tablets (last, on purpose) ---- */
@media (max-width: 960px) {
  .sa-in { padding-top: 88px; padding-bottom: 104px; }
  .sa-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .sa-in { padding-top: 84px; padding-bottom: 100px; }
  .sa-title, html[lang="ar"] .sa-title { font-size: min(8.4vw, 34px); }
  .sa-sub { font-size: 14.5px; margin-bottom: 18px; }
  .sa-body { padding: 12px 12px 14px; font-size: 12px; }
  .sa-line { gap: 10px; padding: 8px 9px; }
  .sa-ok { display: none; }
  .sa-card { gap: 12px; padding: 12px 13px; }
  .sa-ic { width: 36px; height: 36px; }
  .sa-card h3 { font-size: 15px; }
}
.sa-in { padding-bottom: 92px; } @media (max-width: 960px) { .sa-in { padding-bottom: 104px; } } @media (max-width: 640px) { .sa-in { padding-bottom: 100px; } }

/* ================= 6 · our story: the words beside AMPLE and HimaCode =================
   Phone / tablet rules at the END of this block on purpose. */
.os-in { max-width: 1180px; position: relative; z-index: 1; padding-top: 92px; padding-bottom: 104px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.os-title { font-size: clamp(32px, 3.8vw, 56px); text-align: start; }
html[lang="ar"] .os-title { font-size: clamp(30px, 3.5vw, 52px); }
.os-title > span { display: block; }
.os-d { margin: 0 0 26px; max-width: 54ch; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.7; color: #b9bcc4; }
.os-sign { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-win);
  color: var(--a-text); text-decoration: none; transition: border-color .25s, transform .25s, opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.os-sign:hover { border-color: var(--a-amber); transform: translateY(-2px); }
.os-sign img { width: 34px; height: 34px; }
.os-sign span { display: flex; flex-direction: column; line-height: 1.2; }
.os-sign small { font-size: 12px; color: var(--a-muted); }
.os-sign b { font-size: 16px; }
.os-sign i { font-style: normal; color: var(--a-muted); margin-inline-start: 6px; transition: color .25s; }
.os-sign:hover i { color: var(--a-amber); }
html[dir="rtl"] .os-sign i { transform: scaleX(-1); }

/* AMPLE, the line, HimaCode */
.os-art { display: flex; flex-direction: column; align-items: center; gap: 16px; transition: opacity 1.1s var(--ease) var(--rvd), translate 1.1s var(--ease) var(--rvd); }
.os-card { width: min(100%, 420px); display: flex; flex-direction: column; align-items: center; padding: 34px 28px 26px; border-radius: 20px; border: 1px solid var(--a-line);
  background: radial-gradient(ellipse at 50% 18%, rgba(240, 138, 36, .16), transparent 62%), var(--a-win); box-shadow: 0 40px 90px -45px rgba(0, 0, 0, .9); }
.os-app { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }
.os-app img { position: relative; width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 22px 50px -18px rgba(240, 138, 36, .55); }
.os-ring { position: absolute; inset: -8px; border-radius: 34px; border: 2px solid rgba(240, 138, 36, .45); animation: os-pulse 2.6s ease-out infinite; }
.os-ring2 { animation-delay: 1.3s; }
@keyframes os-pulse { 0% { opacity: .9; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.22); } }
.room:not(.on) .os-ring { animation-play-state: paused; }
.os-name { margin-top: 18px; font-size: 22px; letter-spacing: .32em; padding-inline-start: .32em; }
.os-line { width: 2px; height: 34px; margin: 14px 0; background: repeating-linear-gradient(to bottom, var(--a-amber) 0 5px, transparent 5px 10px); opacity: .7; }
.os-by { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-card); }
.os-by img { width: 28px; height: 28px; }
.os-by span { display: flex; flex-direction: column; line-height: 1.25; }
.os-by b { font-size: 15px; }
.os-by small { font-size: 12.5px; color: var(--a-muted); }
.os-values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.os-values li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-win); font-size: 13px; }
.os-values span { color: var(--a-ok); font-weight: 700; }
.os-values b { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .os-ring { animation: none; opacity: .4; } }

/* ---- phones and tablets (last, on purpose) ---- */
@media (max-width: 960px) {
  .os-in { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 88px; padding-bottom: 104px; text-align: center; }
  .os-text { display: flex; flex-direction: column; align-items: center; }
  .os-title { text-align: center; }
  .os-d { margin-inline: auto; }
}
@media (max-width: 640px) {
  .os-in { padding-top: 84px; padding-bottom: 100px; gap: 28px; }
  .os-title, html[lang="ar"] .os-title { font-size: min(8.6vw, 36px); }
  .os-d { font-size: 15.5px; }
  .os-card { padding: 26px 18px 20px; }
  .os-app, .os-app img { width: 96px; height: 96px; }
  .os-app img { border-radius: 22px; }
  .os-ring { border-radius: 28px; }
  .os-name { font-size: 19px; }
  .os-values li { height: 32px; font-size: 12.5px; }
}
