/* page 5: footer (light) + dark "next page" bar that fills while you keep scrolling (p5.js) */
.f5{position:relative;z-index:3;background:#fff;color:#111822;font-family:var(--font);min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;gap:clamp(60px,12vh,140px);padding:clamp(120px,22vh,240px) var(--pad) 22px}
.f5__grid{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:clamp(24px,4vw,64px);align-items:start}
.f5__col{display:grid;gap:6px;font-size:15px;line-height:1.6;justify-items:start;padding-top:6px}
.f5__col b{font-weight:500}
.f5__col a{color:inherit;text-decoration:none;background:linear-gradient(currentColor,currentColor) 100% 100%/0 1px no-repeat;transition:background-size .4s var(--out)}
.f5__col a:hover{background-size:100% 1px}
.f5__col small{color:#5b616b;font-size:13px}
.f5__talk h2{margin:0 0 20px;font-weight:400;font-size:clamp(26px,2.3vw,36px);line-height:1.25}
.f5__in{display:flex;align-items:center;max-width:460px;height:50px;border-radius:12px;background:#f0f1fa;padding:0 6px 0 0}
.f5__msg{flex:1;min-width:0;height:100%;border:0;background:none;font:inherit;font-size:14px;color:#111822;padding:0 12px;outline:none}
.f5__msg::placeholder{color:#8c9098}
.f5__send{width:40px;height:40px;border:0;border-radius:8px;background:none;color:#111822;font-size:18px;cursor:pointer;transition:background .3s}
.f5__send:hover{background:#e4e5ef}
.f5__note{display:block;margin-top:10px;font-size:12px;color:#8c9098}
.f5__base{display:flex;align-items:center;justify-content:space-between;gap:var(--pad);padding-top:18px;border-top:1px solid #e7e8ef;font-size:13px;color:#5b616b}
.f5__up{width:40px;height:40px;border-radius:50%;border:0;background:#111822;color:#fff;font-size:15px;cursor:pointer;transition:transform .4s var(--out)}
.f5__up:hover{transform:translateY(-3px)}
/* next page: the bar sits at the bottom of the screen while you scroll through .nxw, its line fills */
.nxw{position:relative;z-index:3;height:150px;background:#15161a}
.nx{position:relative;display:flex;flex-direction:column;justify-content:space-between;height:150px;padding:20px var(--pad) 0;background:#15161a;color:#f0f1fa;font-family:var(--font);text-decoration:none;overflow:hidden}
.nx__k{font-size:10px;line-height:1.3;letter-spacing:.05em}
.nx__row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.nx__t{font-size:clamp(28px,2.6vw,40px);line-height:1}
.nx__go{display:inline-flex;align-items:center;gap:14px;font-size:11px;white-space:nowrap}
.nx__bar{display:inline-block;width:clamp(90px,16vw,240px);height:1px;background:#ffffff40;position:relative}
.nx__bar i{position:absolute;inset:0;background:#f0f1fa;transform:scaleX(var(--p,0));transform-origin:right}
.nx__plus{display:flex;justify-content:space-between;padding:14px 0 10px}
.nx__plus i{position:relative;width:11px;height:11px}
.nx__plus i::before,.nx__plus i::after{content:"";position:absolute;background:#f0f1fa}
.nx__plus i::before{left:0;right:0;top:50%;height:1px}.nx__plus i::after{top:0;bottom:0;left:50%;width:1px}
@media (max-width:899px){
  .f5__grid{grid-template-columns:1fr 1fr}
  .f5__talk{grid-column:1/-1;grid-row:1}
  .nx__go{font-size:10px}
}
/* the old sections below the new pages are kept in the file but not shown */
main.scene .stage,main.scene .pin-spacer,section.contact,footer.foot{display:none !important}
/* (the «مين احنا» panel inside main stays usable) */
