/* ────────────────────────────────────────────────────────────
   brand.css — the Amani identity, per the graphic charter.

   The typefaces are served from this app, not from Google. A tablet
   that has never been online must still open in the brand's own
   letters, and a font request that fails leaves a child looking at a
   fallback that is not the brand at all.
   ──────────────────────────────────────────────────────────── */


@font-face{
  font-family:"Gabarito"; font-style:normal; font-weight:500;
  font-display:swap;
  src:url("../fonts/gabarito-500-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face{
  font-family:"Gabarito"; font-style:normal; font-weight:500;
  font-display:swap;
  src:url("../fonts/gabarito-500-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face{
  font-family:"Gabarito"; font-style:normal; font-weight:700;
  font-display:swap;
  src:url("../fonts/gabarito-700-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face{
  font-family:"Gabarito"; font-style:normal; font-weight:700;
  font-display:swap;
  src:url("../fonts/gabarito-700-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face{
  font-family:"Gabarito"; font-style:normal; font-weight:900;
  font-display:swap;
  src:url("../fonts/gabarito-900-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face{
  font-family:"Gabarito"; font-style:normal; font-weight:900;
  font-display:swap;
  src:url("../fonts/gabarito-900-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face{
  font-family:"Reem Kufi"; font-style:normal; font-weight:500;
  font-display:swap;
  src:url("../fonts/reemkufi-500-arabic.woff2") format("woff2");
  unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face{
  font-family:"Reem Kufi"; font-style:normal; font-weight:700;
  font-display:swap;
  src:url("../fonts/reemkufi-700-arabic.woff2") format("woff2");
  unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}


:root{
  /* the identity — fixed values, from the charter */
  --majorelle:#5B4CE0;
  --majorelle-deep:#3C2FB0;
  --saffron:#F5A524;
  --zellige:#16152F;
  --chalk:#F3F5FC;
}

/* ── the launch moment ────────────────────────────────────
   One tile, turned twice: two squares rotate into the khatim, the
   name arrives, then the whole plate lifts away.
   ─────────────────────────────────────────────────────── */

#splash{
  position:fixed; inset:0; z-index:80;
  display:grid; place-items:center;
  background:radial-gradient(120% 90% at 50% 30%, #F7F9FF 0%, #E7EEFF 48%, #D8E4FF 100%);
  transition:opacity .4s ease, transform .4s ease;
}
#splash.sp-out{ opacity:0; transform:scale(1.06); pointer-events:none; }

.sp-inner{ display:flex; flex-direction:column; align-items:center; gap:2px; }

.sp-mark{ width:min(38vw,168px); height:auto; overflow:visible; }

.sp-guide{
  fill:none; stroke:#5B4CE0; stroke-width:1.6; opacity:0;
  transform-origin:50px 50px;
  /* the guides are the one thing that must END invisible */
  animation:spGuide .62s cubic-bezier(.3,.9,.3,1) forwards;
}
.sp-guide.b{ animation-name:spGuideTurn; animation-delay:.2s; }
@keyframes spGuide{
  from{ opacity:0; transform:scale(.7); }
  to{ opacity:.6; transform:none; }
}
@keyframes spGuideTurn{
  from{ opacity:0; transform:rotate(0deg) scale(.7); }
  55%{ opacity:.6; }
  to{ opacity:.6; transform:rotate(45deg); }
}
.sp-guides{ animation:spFade .45s ease 1.18s forwards; }
@keyframes spFade{ to{ opacity:0; } }

.sp-solid{
  transform-origin:50px 50px;
  animation:spPop .72s cubic-bezier(.28,1.5,.42,1) .95s backwards;
}
@keyframes spPop{
  0%{ opacity:0; transform:scale(.86); }
  55%{ opacity:1; transform:scale(1.06); }
  100%{ opacity:1; transform:scale(1); }
}

.sp-name{
  font-family:var(--font); font-weight:900; color:var(--ink);
  font-size:clamp(30px,9vw,52px); letter-spacing:-.03em; line-height:1.05;
  margin-top:14px;
  animation:spRise .55s cubic-bezier(.2,.85,.3,1) 1.3s backwards;
}
.sp-ar{
  font-family:"Reem Kufi",var(--arabic); direction:rtl;
  color:#5B4CE0; font-size:clamp(19px,5.4vw,28px); line-height:1;
  animation:spRise .55s cubic-bezier(.2,.85,.3,1) 1.44s backwards;
}
@keyframes spRise{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:none; }
}

/* by QENTRA — arrives last, on its own beat, and stays quiet */
.sp-by{
  margin-top:18px; display:flex; align-items:baseline; gap:6px;
  font-family:var(--font); color:#5F5E80;
  animation:spRise .6s ease 1.78s backwards;
}
.sp-by span{ font-size:12px; letter-spacing:.02em; }
.sp-by b{
  font-size:14px; font-weight:700; color:var(--ink);
  letter-spacing:.24em; text-transform:uppercase;
}

/* reduced motion: the same picture, no movement */
#splash.sp-still .sp-guide,
#splash.sp-still .sp-guides{ animation:none; opacity:0; }
#splash.sp-still .sp-solid,
#splash.sp-still .sp-name,
#splash.sp-still .sp-ar,
#splash.sp-still .sp-by{ animation:none; opacity:1; transform:none; }

/* ── by QENTRA, in the app itself ────────────────────────── */

.by-qentra{
  display:flex; align-items:baseline; justify-content:center; gap:5px;
  font-size:11px; color:rgba(22,21,47,.5);
}
.by-qentra b{
  font-weight:700; letter-spacing:.22em; text-transform:uppercase;
  color:rgba(22,21,47,.72);
}
