/* The home page: a day told from morning to night, then the eight services. */
.home {
  --c-schools: #60a5fa; --c-hub: #fb923c; --c-vision: #22d3ee; --c-workspace: #fbbf24;
  --c-noc: #34d399; --c-edu: #a78bfa; --c-speak: #f472b6; --c-guard: #a3e635;
  --display: 'Alexandria', 'Cairo', sans-serif;
}
.home main { overflow: clip; }
.home .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Sky */
.story { position: relative; color: #fff; isolation: isolate; }
.skies-track { position: absolute; inset: 0; z-index: -1; }
.skies { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #0b1230; }
.sky { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.sky[data-on] { opacity: 1; }
.sky-0 { background: linear-gradient(180deg, #0a1030 0%, #1c2556 60%, #3b2f63 100%); }
.sky-1 { background: linear-gradient(180deg, #1c2550 0%, #6b3f6e 55%, #c9734f 100%); }
.sky-2 { background: linear-gradient(180deg, #123a68 0%, #1f6d9e 100%); }
.sky-3 { background: linear-gradient(180deg, #0c4f80 0%, #1b86ad 100%); }
.sky-4 { background: linear-gradient(180deg, #0a5c84 0%, #178b99 100%); }
.sky-5 { background: linear-gradient(180deg, #0f5570 0%, #2c7a72 100%); }
.sky-6 { background: linear-gradient(180deg, #4a2f6e 0%, #a85434 100%); }
.sky-7 { background: linear-gradient(180deg, #1f1749 0%, #4a2670 100%); }
.sky-8 { background: linear-gradient(180deg, #050816 0%, #0e1535 100%); }
.stars { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 42%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 47% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 33%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 78% 16%, #fff, transparent), radial-gradient(1px 1px at 88% 48%, #fff, transparent),
  radial-gradient(1px 1px at 8% 62%, #fff, transparent), radial-gradient(1px 1px at 36% 74%, #fff, transparent); }
.story[data-sky="0"] .stars, .story[data-sky="8"] .stars { opacity: .85; }

/* Opening and closing */
.open, .close { max-width: 820px; margin: 0 auto; padding: 0 20px; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); display: flex; flex-direction: column; justify-content: center; }
.close { min-height: 70vh; }
.eyebrow { margin: 0 0 14px; font-weight: 700; letter-spacing: .02em; color: #fcd9a8; }
.story h1 { margin: 0; font: 800 clamp(38px, 7.2vw, 76px)/1.22 var(--display); color: #fff; text-wrap: balance; }
.story h2 { margin: 0; font: 800 clamp(30px, 5vw, 52px)/1.25 var(--display); color: #fff; text-wrap: balance; }
.lede { margin: 20px 0 0; font-size: clamp(17px, 2.1vw, 20px); line-height: 1.9; color: rgba(255,255,255,.86); max-width: 640px; }
.open-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-story, .btn-plain { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; }
.btn-story { background: #fff; color: #0f172a; }
.btn-plain { border: 1.5px solid currentColor; color: inherit; }
.btn-story:hover, .btn-plain:hover { transform: translateY(-1px); }

/* The day */
.day { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; }
.scene { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.scene-time { margin: 0 0 12px; display: flex; align-items: baseline; gap: 12px; font-weight: 700; color: rgba(255,255,255,.8); }
.scene-time > span:first-child { font: 800 clamp(40px, 6vw, 60px)/1 'Outfit', sans-serif; color: var(--tone); }
.scene h3 { margin: 0; font: 800 clamp(26px, 3.8vw, 40px)/1.3 var(--display); color: #fff; text-wrap: balance; }
.scene-body { margin: 16px 0 0; max-width: 520px; font-size: 18px; line-height: 1.95; color: rgba(255,255,255,.9); }
.scene-note { display: none; margin-top: 20px; }
.scene-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; align-self: flex-start; font-weight: 800; color: var(--tone, inherit); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.arrow::after { content: "←"; } [dir="ltr"] .arrow::after { content: "→"; }

/* The phone fills up as the day goes on */
.phone-wrap { position: sticky; top: 92px; align-self: start; height: min(600px, calc(100vh - 112px)); margin-block: 8vh; }
.phone { height: 100%; border-radius: 36px; padding: 18px 12px 12px; background: rgba(5, 8, 22, .55); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; }
.phone-clock { text-align: center; margin-bottom: 10px; }
.phone-clock span { display: block; font: 700 38px/1.1 'Outfit', sans-serif; color: #fff; }
.phone-clock small { color: rgba(255,255,255,.65); font-size: 12px; }
.phone-feed { display: flex; flex-direction: column; gap: 7px; min-height: 0; }
.phone-feed .note { animation: drop .45s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.note { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 13px; background: rgba(255,255,255,.95); color: #0f172a; text-align: start; }
.note-ico { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #0f172a; color: var(--tone); }
.note-ico svg, .svc-ico svg { display: block; width: 100%; height: 100%; }
.note-text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5; }
.note-text b { display: block; font-weight: 800; }
.note time { flex: none; font-size: 11px; color: #64748b; }

/* Services */
.services { padding: 90px 0 80px; background: var(--bg-body); }
.services h2, .about h2, .talk h2 { margin: 0; font: 800 clamp(28px, 4.2vw, 42px)/1.3 var(--display); color: var(--text-main); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-subtle); background: transparent; color: var(--text-secondary); font: 700 15px var(--font-ar); cursor: pointer; }
.chip.on { background: var(--text-main); border-color: var(--text-main); color: var(--bg-body); }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc { display: flex; flex-direction: column; padding: 22px 20px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border-subtle); text-decoration: none; color: var(--text-secondary); transition: transform .2s, border-color .2s, opacity .2s; }
.svc:hover { transform: translateY(-3px); border-color: var(--tone); }
.svc[hidden] { display: none; }
.svc-ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #0f172a; color: var(--tone); margin-bottom: 16px; }
.svc small { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.svc h3 { margin: 2px 0 8px; font: 800 20px/1.4 var(--display); color: var(--text-main); }
.svc p { margin: 0; font-size: 15px; line-height: 1.8; }

/* About and contact */
.about { padding: 70px 0; background: var(--bg-surface); border-block: 1px solid var(--border-subtle); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about p { margin: 14px 0 0; font-size: 17px; line-height: 1.95; color: var(--text-secondary); }
.clients h3 { margin: 0 0 10px; font: 800 19px/1.4 var(--display); color: var(--text-main); }
.clients ul { list-style: none; margin: 0; padding: 0; }
.clients li { padding: 11px 0; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 16px; }
.clients .scene-link { color: var(--text-main); }
.talk { padding: 90px 0; background: var(--bg-body); text-align: center; color: var(--text-main); }
.talk p { margin: 12px 0 0; font-size: 18px; color: var(--text-secondary); }
.talk .open-actions { justify-content: center; }
.talk .btn-story { background: var(--text-main); color: var(--bg-body); }

@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .about-grid { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 860px) {
  .day { display: block; }
  .phone-wrap { display: none; }
  .scene { min-height: 76vh; }
  .scene-note { display: block; }
  .scene-body { font-size: 17px; }
}
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .services { padding: 64px 0; } .open-actions a { flex: 1 1 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .sky, .stars { transition: none; } .phone-feed .note { animation: none; } html { scroll-behavior: auto; } }
