/* eyeofhorus.tech until 1 November 2026: two slides. The first eye, then hieroglyphs of engraved gold behind the
   company's idea, the countdown and the demo request. Black throughout, as the logo requires; no web fonts but the
   hieroglyph subset. */
:root {
  --gold: #EEBA4F; --gold-light: #F0D17C; --gold-hi: #F7E3A6; --gold-deep: #B0702A; --bronze: #CC8130;
  --carnelian: #D90905; --ivory: #FFF6DC;
  --text: #ECE6DA; --muted: #A3AEB8; --faint: #6f7780;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --button: linear-gradient(180deg, #F0D17C, #EEBA4F 55%, #B0702A);
  color-scheme: dark;
}
@font-face { font-family: "EoH Hieroglyphs"; src: url("/assets/hieroglyphs.woff") format("woff"); font-display: block; }

* { box-sizing: border-box; }
html { background: #000; scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: #000; color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0; font: 500 12.5px/1.6 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* The cosmos: one canvas behind both slides (the light of the first eye, then the stars). */
#cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
.slide { position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; }

/* ---------- Slide 1 · The first eye ---------- */
.s1 { display: grid; place-items: center; }
.s1::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 48% at 50% 50%, rgba(23,17,10,.9), transparent 70%); pointer-events: none; }
.s1-stage { position: relative; display: grid; justify-items: center; gap: 30px; padding: 0 16px; }
.logo-frame { position: relative; width: clamp(240px, 84vw, 1040px); margin: calc(clamp(240px, 84vw, 1040px) * .04); }
.logo { display: block; width: 100%; height: auto; opacity: 0; animation: show .9s ease 6s forwards; }
.logo.on { opacity: 1; animation: none; transition: opacity 1s ease; }
/* One ivory sheen across the gold, masked by the logo's own light (as in the introduction film): no glow. */
.sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,246,218,.75) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0;
  -webkit-mask: url("/assets/eye-of-horus-logo.svg") center / 100% 100% no-repeat; mask: url("/assets/eye-of-horus-logo.svg") center / 100% 100% no-repeat luminance; }
.sheen.run { animation: sheen 1.25s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes sheen { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -20% 0; } }
.s1-sub { opacity: 0; transform: translateY(8px); transition: opacity 1.1s ease, transform 1.1s ease; letter-spacing: .5em; font-size: clamp(11px, 1vw, 14px); }
.s1-sub.on { opacity: 1; transform: none; }
.singular { position: absolute; z-index: 2; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 16%, #ff8a6a 28%, var(--carnelian) 52%, rgba(217,9,5,0) 72%); }
.singular.glow { opacity: 1; transition: opacity .6s ease; animation: beat 1.05s ease-in-out infinite; }
.singular.ignite { animation: ignite .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes beat { 50% { transform: scale(1.6); } }
@keyframes ignite { 0% { opacity: 1; transform: scale(1.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(22); } }
.scroll-cue { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; justify-items: center; gap: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity 1s ease; }
.scroll-cue.on { opacity: 1; }
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: fall 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes fall { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes show { to { opacity: 1; } }

/* ---------- Slide 2 · The idea, the countdown, the demo ---------- */
.s2 { display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
#rain { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.s2::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 58% 62% at 50% 46%, rgba(0,0,0,.94), rgba(0,0,0,.78) 52%, rgba(0,0,0,.2) 100%); }
.s2-inner { position: relative; z-index: 2; display: grid; align-content: center; justify-items: center; gap: clamp(22px, 3.2vh, 34px); padding: 12vh 20px 6vh; text-align: center; }
.idea { margin: 0; max-width: 1080px; font: 400 clamp(36px, 5.6vw, 82px)/1.04 var(--serif); letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.idea .for { display: block; margin-top: 14px; font: italic 400 clamp(19px, 2.2vw, 31px)/1.3 var(--serif); letter-spacing: -.005em; color: var(--gold-light); text-wrap: balance; }
.countdown { display: grid; justify-items: center; gap: 14px; margin-top: 6px; }
.units { display: flex; justify-content: center; }
.unit { display: grid; justify-items: center; gap: 6px; min-width: clamp(70px, 10vw, 136px); padding: 0 clamp(8px, 1.6vw, 22px); }
.unit + .unit { border-left: 1px solid rgba(238,186,79,.28); }
.unit b { font: 200 clamp(40px, 6.2vw, 92px)/1 var(--sans); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums lining-nums; }
.unit span { font: 500 11px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.local { margin: 0; min-height: 1.4em; font: 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border: 1px solid var(--bronze); border-radius: 999px;
  background: var(--button); color: #1a1206; font: 600 16px/1 var(--sans); text-decoration: none; transition: filter .2s ease, transform .2s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mail { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; max-width: 100%; font: 15px/1 var(--mono); color: var(--text); }
#mail { user-select: all; -webkit-user-select: all; }
.chip { min-height: 36px; padding: 8px 13px; border: 1px solid rgba(238,186,79,.42); border-radius: 999px; background: transparent; color: var(--gold); font: 500 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.chip:hover { border-color: var(--gold); }
#status { color: var(--gold); }
#status:empty { display: none; }
.linkedin { color: var(--muted); font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(163,174,184,.3); }
.linkedin:hover { color: var(--text); }
footer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px;
  padding: 22px 16px calc(26px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.07); font: 12px/1.6 var(--mono); letter-spacing: .08em; color: var(--faint); background: linear-gradient(transparent, rgba(0,0,0,.85) 40%); }
footer [lang="ar"] { font: 15px/1.6 "Geeza Pro", "SF Arabic", "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif; letter-spacing: 0; color: var(--muted); }

/* The slide's lines arrive one after the other when it comes into view. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.s2.in .reveal { opacity: 1; transform: none; }
.s2.in .reveal:nth-child(2) { transition-delay: .18s; }
.s2.in .reveal:nth-child(3) { transition-delay: .42s; }
.s2.in .reveal:nth-child(4) { transition-delay: .62s; }
.s2.in .reveal:nth-child(5) { transition-delay: .78s; }

/* ---------- Pause motion (WCAG 2.2.2) and reduced motion ---------- */
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo, .s1-sub, .scroll-cue, .reveal { opacity: 1 !important; transform: none !important; }
  .singular, .sheen { display: none; }
}
@media (max-width: 640px) {
  .unit { min-width: 0; padding: 0 10px; }
  .unit span { letter-spacing: .14em; font-size: 10px; }
}
