/* ===== Weylight Media — Design Tokens =====
   Color   : deep forest black bg, warm dark-white text, relaxed sage accent
   Type    : Fraunces (display) / Manrope (body) / IBM Plex Mono (labels)
             Arabic: Cairo (display) / Tajawal (body)
   Signature: thin animated light-line motif (green), echoing the brand mark
============================================== */

:root{
  --bg:#0b1310;
  --bg-elevated:#101a16;
  --text:#eae6da;
  --text-muted:#9fae9f;
  --text-dim:#6b7871;
  --accent:#6fa47c;
  --accent-soft:rgba(111,164,124,.14);
  --accent-line:rgba(111,164,124,.55);
  --line:rgba(234,230,218,.09);
  --line-strong:rgba(234,230,218,.18);

  --display:'Fraunces', serif;
  --body:'Manrope', sans-serif;
  --mono:'IBM Plex Mono', monospace;

  --maxw:1180px;
  --pad:clamp(20px,5vw,64px);
}
html[lang="ar"]{ --display:'Cairo', sans-serif; --body:'Tajawal', sans-serif; }

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
}

body{
  margin:0; background:var(--bg); color:var(--text); font-family:var(--body);
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad);}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--accent); outline-offset:3px;
}

/* ===== Signature light-line ===== */
.light-line{ position:relative; height:1px; width:100%; background:var(--line); overflow:visible; }
.light-line::after{
  content:""; position:absolute; top:-1px; left:-22%; width:22%; height:3px;
  background:linear-gradient(90deg, transparent, var(--accent), transparent);
  filter:blur(1px); animation:sweep 7s ease-in-out infinite; opacity:.8;
}
@keyframes sweep{ 0%{left:-22%;} 50%{left:100%;} 100%{left:-22%;} }

/* ===== Nav ===== */
.nav{ position:sticky; top:0; z-index:50; background:rgba(11,19,16,.82); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; padding-top:16px; padding-bottom:16px; gap:16px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--display); font-size:1.05rem; letter-spacing:.02em; }
.brand img{ width:32px; height:32px; border-radius:50%; }
.nav-links{ display:flex; gap:28px; align-items:center; }
.nav-links a{ font-family:var(--mono); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); transition:color .2s ease; }
.nav-links a:hover{ color:var(--text); }
.nav-right{ display:flex; align-items:center; gap:18px; }
.lang-switch{ display:flex; gap:6px; font-family:var(--mono); font-size:.7rem; }
.lang-switch button{ background:transparent; border:1px solid var(--line-strong); color:var(--text-muted); padding:5px 9px; border-radius:20px; letter-spacing:.05em; transition:all .2s ease; }
.lang-switch button.active, .lang-switch button:hover{ color:var(--bg); background:var(--accent); border-color:var(--accent); }
.nav-cta{ font-family:var(--mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; border:1px solid var(--accent-line); color:var(--text); padding:9px 16px; border-radius:30px; transition:background .2s ease, color .2s ease; white-space:nowrap; }
.nav-cta:hover{ background:var(--accent); color:var(--bg); }
.back-link{ font-family:var(--mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.back-link:hover{ color:var(--text); }

/* ===== Hero ===== */
.hero{ padding-top:clamp(60px,10vw,110px); padding-bottom:clamp(60px,8vw,90px); position:relative; }
.hero .wrap{ display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(30px,5vw,70px); align-items:end; }
.eyebrow{ font-family:var(--mono); font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--accent-line); display:inline-block; }
.eyebrow.centered{ justify-content:center; }
.hero h1{ font-family:var(--display); font-weight:400; font-size:clamp(2.3rem,5.2vw,4.4rem); line-height:1.05; letter-spacing:-.01em; margin:0 0 26px; }
.hero h1 em{ font-style:italic; color:var(--accent); font-weight:300; }
.hero p.lead{ font-size:clamp(1rem,1.3vw,1.15rem); color:var(--text-muted); max-width:46ch; margin:0 0 34px; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }
.btn{ font-family:var(--mono); font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; padding:15px 26px; border-radius:40px; display:inline-flex; align-items:center; justify-content:center; gap:10px; transition:transform .25s ease, background .25s ease, border-color .25s ease; }
.btn-primary{ background:var(--accent); color:#081008; border:1px solid var(--accent); }
.btn-primary:hover{ transform:translateY(-2px); background:#7fb98c; }
.btn-ghost{ border:1px solid var(--line-strong); color:var(--text); }
.btn-ghost:hover{ border-color:var(--accent-line); transform:translateY(-2px); }
.btn-block{ width:100%; padding:16px 26px; font-size:.82rem; }

.hero-frame{ position:relative; border:1px solid var(--line-strong); border-radius:4px; aspect-ratio:4/5; overflow:hidden; background:var(--bg-elevated); }
.hero-frame .corner{ position:absolute; top:22px; inset-inline-start:22px; width:46px; height:46px; border-top:2px solid var(--accent); border-inline-start:2px solid var(--accent); }
.hero-frame .tag{ position:absolute; bottom:22px; inset-inline-start:22px; font-family:var(--mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); }
.hero-frame img{ width:100%; height:100%; object-fit:cover; opacity:.92; }

/* ===== Section shell ===== */
section{ padding-top:clamp(70px,9vw,120px); padding-bottom:clamp(70px,9vw,120px); }
.section-head{ max-width:60ch; margin-bottom:clamp(40px,6vw,64px); }
.section-head h2{ font-family:var(--display); font-weight:400; font-size:clamp(1.8rem,3.4vw,2.7rem); line-height:1.15; margin:0 0 18px; }
.section-head p{ color:var(--text-muted); margin:0; font-size:1.02rem; }

/* ===== Reel / Work ===== */
.reel-scroller{ display:flex; gap:20px; overflow-x:auto; padding-bottom:14px; scroll-snap-type:x proximity; scrollbar-width:thin; }
.reel-card{ scroll-snap-align:start; flex:0 0 auto; width:min(340px,74vw); border:1px solid var(--line); border-radius:4px; background:var(--bg-elevated); padding:22px; transition:border-color .25s ease, transform .25s ease; }
.reel-card:hover{ border-color:var(--accent-line); transform:translateY(-4px); }
.reel-card .num{ font-family:var(--mono); font-size:.7rem; color:var(--accent); letter-spacing:.1em; }
.reel-card h3{ font-family:var(--display); font-weight:400; font-size:1.3rem; margin:14px 0 10px; }
.reel-card p{ color:var(--text-muted); font-size:.92rem; margin:0 0 18px; }
.reel-card a.link{ font-family:var(--mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text); border-bottom:1px solid var(--accent-line); padding-bottom:2px; }
.reel-cta{ margin-top:40px; display:flex; justify-content:center; }

/* ===== Process timeline ===== */
.timeline{ position:relative; }
.timeline-line{ position:absolute; top:6px; bottom:6px; inset-inline-start:20px; width:1px; background:var(--line-strong); }
.tl-item{ position:relative; display:grid; grid-template-columns:44px 1fr; gap:26px; padding-bottom:52px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-dot{ width:44px; height:44px; border-radius:50%; border:1px solid var(--accent-line); display:flex; align-items:center; justify-content:center; background:var(--bg); font-family:var(--mono); font-size:.85rem; color:var(--accent); z-index:1; }
.tl-item h3{ font-family:var(--display); font-weight:400; font-size:1.35rem; margin:2px 0 10px; }
.tl-item p{ color:var(--text-muted); margin:0; max-width:56ch; }

/* ===== Contact teaser (home page) ===== */
.contact-teaser{ border:1px solid var(--line-strong); border-radius:6px; padding:clamp(36px,6vw,64px); background:radial-gradient(circle at 20% 20%, var(--accent-soft), transparent 60%), var(--bg-elevated); text-align:center; }
.contact-teaser h2{ font-family:var(--display); font-weight:400; font-size:clamp(1.7rem,3.4vw,2.5rem); margin:0 0 16px; }
.contact-teaser p{ color:var(--text-muted); max-width:52ch; margin:0 auto 34px; }

/* ===== Contact page ===== */
.page-head{ text-align:center; max-width:60ch; margin:0 auto clamp(40px,6vw,64px); }
.page-head h1{ font-family:var(--display); font-weight:400; font-size:clamp(1.9rem,4vw,3rem); margin:0 0 16px; line-height:1.15; }
.page-head p{ color:var(--text-muted); margin:0; }

.form-shell{ max-width:640px; margin:0 auto; border:1px solid var(--line-strong); border-radius:6px; padding:clamp(28px,5vw,48px); background:var(--bg-elevated); }
.field{ margin-bottom:24px; }
.field label{ display:block; font-family:var(--mono); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:10px; }
.field input, .field textarea, .field select{
  width:100%; background:var(--bg); border:1px solid var(--line-strong); color:var(--text);
  padding:14px 16px; border-radius:3px; font-family:var(--body); font-size:.98rem;
}
.field select{
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><path d='M1 1l6 6 6-6' stroke='%239fae9f' stroke-width='1.5' fill='none'/></svg>");
  background-repeat:no-repeat; background-position:right 16px center;
}
html[dir="rtl"] .field select{ background-position:left 16px center; }
.field textarea{ min-height:130px; resize:vertical; }
.field input:focus, .field textarea:focus, .field select:focus{ border-color:var(--accent-line); }
.field-required::after{ content:" *"; color:var(--accent); }
.form-note{ font-family:var(--mono); font-size:.72rem; color:var(--text-dim); margin-top:18px; text-align:center; }

/* ===== Toast ===== */
.toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--accent); color:#081008; padding:14px 22px; border-radius:30px;
  font-family:var(--mono); font-size:.78rem; opacity:0; pointer-events:none;
  transition:opacity .3s ease, transform .3s ease; z-index:100; text-align:center; max-width:88vw;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ===== Footer ===== */
footer{ border-top:1px solid var(--line); padding:36px 0; }
footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
footer p{ font-family:var(--mono); font-size:.72rem; letter-spacing:.04em; color:var(--text-dim); margin:0; }
footer a{ font-family:var(--mono); font-size:.72rem; color:var(--text-muted); border-bottom:1px solid var(--line-strong); }
footer a:hover{ color:var(--accent); }

/* ===== RTL handling ===== */
html[dir="rtl"] .hero .wrap{ direction:rtl; }
html[dir="rtl"] .timeline-line{ inset-inline-start:auto; inset-inline-end:20px; }

/* ===== Responsive ===== */
@media (max-width:860px){
  .nav-links{ display:none; }
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-frame{ order:-1; aspect-ratio:16/10; }
}
