@font-face { font-family: Alexandria; font-weight: 400; font-display: swap; src: url(fonts/alexandria-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Alexandria; font-weight: 400; font-display: swap; src: url(fonts/alexandria-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Beiruti; font-weight: 900; font-display: swap; src: url(fonts/beiruti-arabic-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Playpen Sans Arabic"; font-weight: 400; font-display: swap; src: url(fonts/playpen-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Playpen Sans Arabic"; font-weight: 500; font-display: swap; src: url(fonts/playpen-sans-arabic-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Playpen Sans Arabic"; font-weight: 600; font-display: swap; src: url(fonts/playpen-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
/* Only the digits in the phone's notifications need this one. */
@font-face { font-family: "Playpen Sans Arabic"; font-weight: 500; font-display: swap; src: url(fonts/playpen-sans-arabic-latin-500-normal.woff2) format("woff2"); unicode-range: U+0030-0039; }

/* Layout concept: one sketchbook page and one continuous zoom, drawn in pen.
   Earth holds a city, the city holds a window, the window holds a person, the person holds a phone. */
:root {
  --paper: #ECEAE3; --ink: #252831; --soft: #6A6D76; --faint: #B4B4AE; --accent: #4F5F96; --warm: #D9BE85;
  --t-ask: #E7DFC9; --t-swap: #E8D9CF; --t-move: #D8E0D5; --t-look: #D8E2E6; --t-send: #E8DADC;
  --display: "Beiruti", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
  --hand: "Playpen Sans Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
  --body: "Alexandria", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #23252B; --ink: #E2E0D8; --soft: #A9A9A6; --faint: #5B5D63; --accent: #9DA9D2; --warm: #A98F5C;
  --t-ask: #2F2D27; --t-swap: #2F2A29; --t-move: #282E2A; --t-look: #282E31; --t-send: #2F292C; color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #23252B; --ink: #E2E0D8; --soft: #A9A9A6; --faint: #5B5D63; --accent: #9DA9D2; --warm: #A98F5C;
  --t-ask: #2F2D27; --t-swap: #2F2A29; --t-move: #282E2A; --t-look: #282E31; --t-send: #2F292C; color-scheme: dark }
* { box-sizing: border-box }
html, body { background: var(--paper); color: var(--ink) }
body { font: 400 17px/1.6 var(--body); overflow-x: hidden }
#track { height: 1300vh }
#stage { position: fixed; inset: 0; overflow: hidden; direction: rtl; contain: strict; background: var(--paper) }
#c, .layer { position: absolute; inset: 0; width: 100%; height: 100% }
.layer { pointer-events: none }

.logo { position: relative; display: inline-block; font: 900 1em/1 var(--display); padding-top: .42em; white-space: nowrap }
.logo i { position: absolute; width: .08em; height: .27em; top: .2em; background: currentColor; transform: skewX(-17deg) }
.logo i:nth-of-type(1) { left: .265em }
.logo i:nth-of-type(2) { left: .405em }

#ticks { position: absolute; z-index: 40; top: env(safe-area-inset-top, 0px); left: 0; right: 0; display: flex; gap: 2px; height: 2px; margin-top: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); opacity: .55 }
#ticks i { flex: 1; background: var(--ink); opacity: .2 }
#ticks i.on { opacity: 1 }

#hero { z-index: 20; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(26px, 5vh, 56px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
#hero h1 { margin: 0; font: inherit }
#hero .logo { font-size: clamp(84px, min(14vw, 19vh), 170px) }
#hero p { margin: 4px 0 0; font: 500 clamp(17px, 1.9vw, 21px)/1.4 var(--hand) }
#cue { position: absolute; bottom: max(24px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); font: 400 14px/1 var(--hand); color: var(--soft) }

.cap { position: absolute; z-index: 30; left: 0; right: 0; bottom: clamp(44px, 11vh, 110px); display: flex; justify-content: center; text-align: center; opacity: 0; pointer-events: none; font: 600 clamp(32px, 5.4vw, 70px)/1.25 var(--hand); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.cap span { background: var(--paper); padding: 0 .35em .05em; border-radius: 6px }
.cap.mid { top: 0; bottom: 0; align-items: center }

#moves { z-index: 15; opacity: 0; overflow: hidden }
#strip { position: absolute; top: 0; right: 0; height: 100%; width: 700%; display: flex; will-change: transform }
.panel { position: relative; flex: none; width: calc(100% / 7); height: 100%; overflow: hidden; background: var(--a, var(--paper)); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; --lp: 0; --on: 1; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.hs { position: absolute; top: 15%; height: 70%; width: clamp(50px, 10vw, 130px); border: 2px solid var(--accent); border-radius: 2px; transform: translateX(calc(var(--lp) * 6vw)) skewX(-17deg); background: repeating-linear-gradient(135deg, var(--accent) 0 1.5px, transparent 1.5px 10px); opacity: .55 }
.verb { position: relative; font: 600 clamp(84px, 17vw, min(240px, 34vh))/1.1 var(--hand); transform: translateX(calc(var(--lp) * 10vw)) }
.say { position: relative; font: 400 clamp(20px, 2.5vw, 30px)/1.5 var(--hand); margin-top: clamp(6px, 2vh, 20px); opacity: var(--on); text-wrap: balance }
.strike { position: relative; display: inline-block; color: var(--soft) }
.strike::after { content: ""; position: absolute; left: -3%; right: -3%; top: 56%; height: 2px; background: var(--ink); transform: scaleX(var(--on)); transform-origin: right }
.spots { display: flex; gap: 20px; margin-top: clamp(14px, 3vh, 28px); position: relative; justify-content: center }
.spots i { width: clamp(36px, 5vw, 58px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); opacity: var(--pop, .15) }
.q { position: absolute; left: 8vw; top: 50%; translate: 0 -50%; font: 500 min(70vh, 48vw)/1 var(--hand); color: var(--ink); opacity: .1; transform: translateX(calc(var(--lp) * 8vw)) }
#p0l { position: relative; color: var(--ink) }
#p0l .logo { font-size: clamp(120px, min(24vw, 36vh), 300px) }
#p0c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: clamp(36px, 10vh, 96px); opacity: 0 }
#pauseA, #pauseB { position: absolute; top: 18%; height: 56%; width: var(--w, 9vw); border: 2px solid var(--accent); transform: skewX(-17deg); background: repeating-linear-gradient(135deg, var(--accent) 0 1.5px, transparent 1.5px 10px) }
#word { font: 500 clamp(28px, 3.6vw, 42px)/1.3 var(--hand); opacity: var(--wo, 1) }
#min { font: 400 clamp(17px, 1.9vw, 21px)/1.4 var(--hand); color: var(--soft) }

#join { position: absolute; z-index: 35; left: 50%; bottom: max(26px, env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: min(600px, calc(100% - 32px)); visibility: hidden; opacity: 0; text-align: center }
#form { display: flex; flex-wrap: wrap; gap: 8px }
#email { flex: 1 1 220px; min-width: 0; min-height: 52px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 16px var(--body); padding: 0 18px; direction: ltr; text-align: right }
#email::placeholder { color: var(--soft) }
#go { min-height: 52px; border: 0; border-radius: 10px; padding: 0 24px; background: var(--ink); color: var(--paper); font: 500 16px var(--hand); cursor: pointer; flex: 1 0 auto }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
#fine { margin: 8px 0 0; padding: 2px 6px; font-size: 12.5px; line-height: 1.5; color: var(--soft); background: var(--paper); border-radius: 4px }
#fine a { color: inherit }
#ok { font: 600 clamp(26px, 4vw, 38px)/1.3 var(--hand); background: var(--paper) }

[hidden] { display: none !important; }

/* Inline styles in the design, moved here for the page's Content-Security-Policy. */
.t-ask { --a: var(--t-ask); }
.t-swap { --a: var(--t-swap); }
.t-move { --a: var(--t-move); }
.t-look { --a: var(--t-look); }
.t-send { --a: var(--t-send); }
.hs-swap { left: 7%; }
.hs-move1 { left: 7%; top: 42%; height: 48%; }
.hs-move2 { left: 21%; top: 42%; height: 48%; }
.hs-send { right: 7%; left: auto; width: clamp(60px, 9vw, 110px); top: 24%; height: 38%; transform: translate(calc(var(--lp) * 14vw), calc(var(--lp) * -14vh)) rotate(-7deg); }
#msg { margin: 8px 0 0; padding: 2px 6px; font-size: 14px; line-height: 1.5; background: var(--paper); border-radius: 4px; }
