@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;600;700&family=Playfair+Display:ital,wght@1,400;1,500&display=swap');

:root{
  --u: min(1vw, .72vh);
  --cream:#F3F2EE; --ink:#0B0B0B; --mute:#8C8A85; --line:#CFCCC6; --warm:#7A5A3A;
  --en:"Helvetica Neue","Helvetica","Arial",sans-serif;
  --ar:"IBM Plex Sans Arabic","Geeza Pro",sans-serif;
  --serif:"Playfair Display",Georgia,serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden;overscroll-behavior:none;touch-action:none;
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
body{background:var(--cream);color:var(--ink);font-family:var(--en);-webkit-font-smoothing:antialiased}
.page{height:100vh;height:100dvh;display:grid;grid-template-rows:1fr 1fr}
.half{position:relative;overflow:hidden;min-height:0}
.ar{font-family:var(--ar);direction:rtl}
.eyebrow{font-size:calc(var(--u)*1.55);letter-spacing:.42em;text-transform:uppercase;font-weight:500}
video{display:block}

/* entrance */
.rise{opacity:0;transform:translateY(calc(var(--u)*2));animation:rise 1s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes rise{to{opacity:1;transform:none}}

/* note float */
.note img{animation:float 6s ease-in-out infinite}
.note:nth-child(2) img{animation-delay:-1.5s}
.note:nth-child(3) img{animation-delay:-3s}
.note:nth-child(4) img{animation-delay:-4.5s}
@keyframes float{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(calc(var(--u)*-1.2)) rotate(1.5deg)}}

/* 7 day bar */
.days{display:flex;gap:calc(var(--u)*.7)}
.days i{display:block;width:calc(var(--u)*3.2);height:calc(var(--u)*.45);background:var(--line);position:relative;overflow:hidden}
.days i::after{content:"";position:absolute;inset:0;background:var(--ink);transform:scaleX(0);transform-origin:right;
  animation:fill 7s ease-in-out infinite}
.days i:nth-child(1)::after{animation-delay:0s}.days i:nth-child(2)::after{animation-delay:.25s}
.days i:nth-child(3)::after{animation-delay:.5s}.days i:nth-child(4)::after{animation-delay:.75s}
.days i:nth-child(5)::after{animation-delay:1s}.days i:nth-child(6)::after{animation-delay:1.25s}
.days i:nth-child(7)::after{animation-delay:1.5s}
@keyframes fill{0%{transform:scaleX(0)}25%,80%{transform:scaleX(1)}100%{transform:scaleX(0)}}
/* feather video edges into the page colour */
video{-webkit-mask-image:radial-gradient(ellipse 50% 31% at 50% 50%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 50% 31% at 50% 50%,#000 62%,transparent 100%)}
