/* ---------------------------------------------------------
   أورفه لي للألبسة — Coming Soon
   Palette: silk ivory / ink / antique gold thread
--------------------------------------------------------- */

:root{
  --ivory:      #F8F4EC;
  --ivory-2:    #F2ECDF;
  --ink:        #211D18;
  --ink-soft:   #4A443B;
  --gold:       #A9835B;
  --gold-light: #CBA876;
  --line:       #DCD2BC;

  --font-display: 'Aref Ruqaa', serif;
  --font-body:    'Tajawal', sans-serif;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  min-height: 100dvh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- الفيديو الخلفي: قماش حريري متحرك بهدوء، بلا تأثير على وضوح النصوص ---------- */
.bg-video-wrap{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ivory); /* يظهر قبل تحميل الفيديو أو إن تعذّر تشغيله */
}

.bg-video{
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  /* تهدئة الفيديو لونياً كي يبقى خلفية سابحة لا تنافس النص */
  filter: saturate(0.75) brightness(1.08) contrast(0.94);
  opacity: 0.9;
}

/* طبقة عاجية شفّافة فوق الفيديو تحفظ نقاء اللوحة ووضوح النص دائماً */
.bg-overlay{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 620px 520px at 50% 50%,
      rgba(248,244,236,0.95) 0%,
      rgba(248,244,236,0.90) 45%,
      rgba(248,244,236,0.72) 75%,
      rgba(248,244,236,0.52) 100%),
    repeating-linear-gradient(45deg,  rgba(33,29,24,0.018) 0px, rgba(33,29,24,0.018) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(-45deg, rgba(33,29,24,0.018) 0px, rgba(33,29,24,0.018) 1px, transparent 1px, transparent 5px);
}

@media (max-width: 640px){
  .bg-overlay{
    background-image:
      radial-gradient(ellipse 90% 60% at 50% 42%,
        rgba(248,244,236,0.95) 0%,
        rgba(248,244,236,0.92) 50%,
        rgba(248,244,236,0.8) 80%,
        rgba(248,244,236,0.62) 100%),
      repeating-linear-gradient(45deg,  rgba(33,29,24,0.018) 0px, rgba(33,29,24,0.018) 1px, transparent 1px, transparent 5px),
      repeating-linear-gradient(-45deg, rgba(33,29,24,0.018) 0px, rgba(33,29,24,0.018) 1px, transparent 1px, transparent 5px);
  }
}

/* ---------- الإطار الخارجي بحدّي خيط رفيعين، أشبه بحاشية قماش ---------- */
.frame{
  position: fixed;
  inset: 18px;
  border: 1px solid var(--ink);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: frame-in 1.4s ease-out 0.15s forwards;
}
.frame::after{
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold);
}
@media (min-width: 640px){
  .frame{ inset: 30px; }
}

@keyframes frame-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

/* ---------- زخارف الزوايا — صدى لشكل الشعار ---------- */
.corner{
  position: fixed;
  width: 40px;
  height: 40px;
  z-index: 3;
  opacity: 0;
  animation: corner-in 0.9s ease-out forwards;
}
.corner svg{ width: 100%; height: 100%; }
.corner path{
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-linecap: round;
}
.corner--tl{ top: 34px;  right: 34px;  animation-delay: 0.5s; transform: scaleX(-1); }
.corner--tr{ top: 34px;  left: 34px;   animation-delay: 0.65s; }
.corner--bl{ bottom: 34px; right: 34px; animation-delay: 0.65s; transform: scale(-1); }
.corner--br{ bottom: 34px; left: 34px;  animation-delay: 0.5s; transform: scaleY(-1); }

@media (min-width: 640px){
  .corner{ top: auto; }
  .corner--tl{ top: 48px; right: 48px; }
  .corner--tr{ top: 48px; left: 48px; }
  .corner--bl{ bottom: 48px; right: 48px; }
  .corner--br{ bottom: 48px; left: 48px; }
}

@keyframes corner-in{
  from{ opacity: 0; }
  to{ opacity: 0.55; }
}

/* ---------- المسرح المركزي ---------- */
.stage{
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 640px;
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow{
  margin: 0 0 34px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise-in 0.9s ease-out 0.9s forwards;
}

/* ---------- الشعار ---------- */
.emblem-wrap{
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: rise-in 1s ease-out 0.25s forwards;
}

.emblem{
  width: 108px;
  height: auto;
  position: relative;
  z-index: 2;
}

.emblem-ring{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.emblem-ring__path{
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1;
  opacity: 0;
}

/* ---------- اسم العلامة ---------- */
.brand{
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand__main{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 1.1;
  color: var(--ink);
  opacity: 0;
  animation: rise-in 1s ease-out 0.55s forwards;
}

.brand__sub{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.42em;
  color: var(--gold);
  padding-right: 0.42em; /* لتوازن التباعد مرئياً */
  opacity: 0;
  animation: rise-in 1s ease-out 0.75s forwards;
}

/* ---------- الفاصل ---------- */
.divider{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  opacity: 0;
  animation: rise-in 1s ease-out 1.05s forwards;
}
.divider__line{
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light) 50%, transparent);
  background-size: 220% 100%;
  animation: thread-shimmer 5.5s ease-in-out infinite;
}
.divider__mark{
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.divider__mark path{
  fill: var(--gold);
}

@keyframes thread-shimmer{
  0%, 100%{ background-position: 0% 0; }
  50%{ background-position: 100% 0; }
}

/* ---------- قريباً ---------- */
.status{
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 40px);
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0;
  animation: rise-in 1s ease-out 1.25s forwards;
}

/* ---------- الوصف ---------- */
.tagline{
  margin: 0;
  max-width: 460px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 2;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise-in 1s ease-out 1.45s forwards;
}

.br-desktop{ display: none; }
@media (min-width: 560px){
  .br-desktop{ display: inline; }
}

/* ---------- التذييل ---------- */
.foot{
  position: fixed;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise-in 1s ease-out 1.7s forwards;
}
@media (min-width: 640px){
  .foot{ bottom: 40px; }
}

/* ---------- حركة الظهور العامة ---------- */
@keyframes rise-in{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- احترام تفضيل تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .divider__line{ animation: none; background-position: 50% 0; }
}