/* ==========================================================================
   TURKI GHAZI — Studio Portfolio 2026
   لغة بصرية أصلية: نسخة داكنة سينمائية من الهوية التحريرية (RUA)
   ========================================================================== */

:root {
  --ink:    #0a0a0a;   /* الخلفية الأساسية */
  --ink-2:  #121110;   /* سطح ثانوي */
  --bone:   #f5f3ee;   /* النص الأساسي */
  --hush:   #8a8580;   /* نص خافت / علامات */
  --line:   rgba(245, 243, 238, .12);
  --gold:   #b89968;   /* لمسة واحدة فقط — دفء */
  --pad:    clamp(1.25rem, 5vw, 4rem);
  --maxw:   1400px;
  --ease:   cubic-bezier(.22, 1, .36, .08);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* اللاتيني: خط تحريري راقٍ */
[lang="en"], .lat, html[data-lang="en"] body {
  font-family: 'Fraunces', 'IBM Plex Sans Arabic', serif;
}
html[data-lang="en"] { direction: ltr; }
html[data-lang="ar"] { direction: rtl; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ==== علامات نصية (توقيع الهوية: تباعد أحرف واسع) ==== */
.label {
  font-size: .62rem;
  letter-spacing: .42em;
  color: var(--hush);
  text-transform: uppercase;
  font-weight: 400;
}
html[data-lang="ar"] .label { letter-spacing: .28em; }

/* ==== إظهار عند التمرير ==== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==== لغة: إظهار/إخفاء ==== */
html[data-lang="ar"] .en-only { display: none !important; }
html[data-lang="en"] .ar-only { display: none !important; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--pad);
  mix-blend-mode: difference;
  transition: background .5s var(--ease-out), padding .5s var(--ease-out);
}
.nav.solid {
  mix-blend-mode: normal;
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: .8rem; padding-bottom: .8rem;
}
.nav__brand {
  font-size: .82rem; letter-spacing: .3em; font-weight: 500;
  text-transform: uppercase;
}
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.nav__links a {
  font-size: .72rem; letter-spacing: .18em; color: var(--bone);
  text-transform: uppercase; opacity: .85;
  transition: opacity .3s;
}
.nav__links a:hover { opacity: 1; }
.nav__lang {
  font-size: .72rem; letter-spacing: .12em; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--bone);
  padding: .35rem .7rem; border-radius: 2px; font-family: inherit;
  transition: border-color .3s, background .3s;
}
.nav__lang:hover { border-color: var(--bone); }
.nav__links a.hide-sm { }
@media (max-width: 720px) {
  .nav__links a.hide-sm { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.15) 45%, rgba(10,10,10,.5) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad) clamp(2.5rem, 6vw, 5rem);
}
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero h1 {
  font-weight: 200;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: .98; letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
.hero__tagline {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 200; color: var(--bone); opacity: .9;
  max-width: 30ch; line-height: 1.5;
}
.hero__meta {
  display: flex; gap: 1.5rem; align-items: center;
  margin-top: 2.2rem; flex-wrap: wrap;
}
.hero__reel-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--line); padding: .8rem 1.4rem; border-radius: 2px;
  transition: border-color .4s, background .4s, color .4s; cursor: pointer;
  background: none; color: var(--bone); font-family: inherit;
}
.hero__reel-btn:hover { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.hero__reel-btn .tri { width: 0; height: 0; border-style: solid;
  border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
html[data-lang="ar"] .hero__reel-btn .tri { transform: scaleX(-1); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 11vw, 9rem) var(--pad); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line); padding-bottom: 1.4rem;
}
.section-head h2 {
  font-weight: 200; font-size: clamp(1.7rem, 4.5vw, 3.2rem);
  letter-spacing: -.01em; line-height: 1.1;
}
.section-head .count { font-size: .72rem; letter-spacing: .3em; color: var(--hush); white-space: nowrap; }

/* ==== WORK GRID (hover-to-play) ==== */
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

.work-card { position: relative; cursor: pointer; overflow: hidden; background: var(--ink-2); }
.work-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work-card__still, .work-card__vid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.work-card__vid { opacity: 0; transition: opacity .6s var(--ease-out); }
.work-card__still { transition: transform 1.2s var(--ease-out), opacity .6s; }
.work-card:hover .work-card__vid { opacity: 1; }
.work-card:hover .work-card__still { transform: scale(1.04); opacity: 0; }
.work-card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,10,10,.65), transparent 55%);
  pointer-events: none;
}
.work-card__cap {
  position: absolute; z-index: 2; inset: auto 0 0 0;
  padding: 1.3rem 1.5rem; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 1rem;
}
.work-card__title { font-weight: 300; font-size: 1.15rem; letter-spacing: .01em; }
.work-card__kind { font-size: .6rem; letter-spacing: .3em; color: var(--hush); text-transform: uppercase; }
html[data-lang="ar"] .work-card__kind { letter-spacing: .2em; }

/* ==========================================================================
   WORLDS — رحلة الفصول: كل عالم بمزاجه، وفواصل تمسح المود بينها
   ========================================================================== */
.chapter-break {
  background: var(--ink);
  padding: clamp(5rem, 14vh, 9rem) var(--pad);
  text-align: center;
}
.chapter-break .num {
  display: block; font-size: .62rem; letter-spacing: .5em;
  color: var(--gold); margin-bottom: 1.2rem;
}
.chapter-break h3 {
  font-weight: 200; font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: -.01em;
}
.chapter-break .sub {
  margin-top: .8rem; font-size: .78rem; color: var(--hush);
  letter-spacing: .1em;
}

.world { position: relative; }
.world .wrap { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.world__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 52ch; }
.world__head p { font-size: clamp(.95rem, 1.5vw, 1.1rem); font-weight: 300; opacity: .82; margin-top: .9rem; }

/* — فصل الأغذية: دفء شهي — */
.world--food { background: #150e08; color: #f3ece4; }
.world--food .label { color: #c96f4a; }
.food-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(.8rem, 2vw, 1.5rem); }
@media (max-width: 780px) { .food-grid { grid-template-columns: 1fr; } }
.food-grid .cell { position: relative; overflow: hidden; }
.food-grid .cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.food-grid .cell:hover img { transform: scale(1.03); }
.food-grid .col { display: grid; gap: clamp(.8rem, 2vw, 1.5rem); grid-template-rows: 1fr 1fr; }
.food-grid .cell.tall { min-height: 420px; }
.food-grid .wide-cell { grid-column: 1 / -1; aspect-ratio: 21/9; overflow: hidden; }
.food-grid .wide-cell img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 1.4s var(--ease-out); }
.food-grid .wide-cell:hover img { transform: scale(1.03); }

.client-tag {
  position: absolute; bottom: 1rem; inset-inline-start: 1rem; z-index: 2;
  font-size: .58rem; letter-spacing: .28em; text-transform: uppercase;
  background: rgba(10,10,10,.72); color: #f3ece4;
  padding: .45rem .8rem; backdrop-filter: blur(6px);
}
html[data-lang="ar"] .food-grid .wide-cell { grid-column: 1 / -1; aspect-ratio: 21/9; overflow: hidden; }
.food-grid .wide-cell img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 1.4s var(--ease-out); }
.food-grid .wide-cell:hover img { transform: scale(1.03); }

.client-tag { letter-spacing: .16em; }

/* — فصل الأزياء: انقلاب تحريري فاتح (التنفّس) — */
.world--fashion { background: var(--bone); color: var(--ink); }
.world--fashion .label { color: #9a927f; }
.world--fashion .world__head p { opacity: .75; }
.fashion-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem); align-items: start;
}
.fashion-grid .f1 { grid-column: 1 / 6; }
.fashion-grid .f2 { grid-column: 7 / 13; margin-top: clamp(3rem, 8vw, 7rem); }
.fashion-grid .f3 { grid-column: 2 / 7; margin-top: clamp(1.5rem, 4vw, 3rem); }
.fashion-grid .f4 { grid-column: 8 / 12; margin-top: clamp(2rem, 6vw, 5rem); }
@media (max-width: 780px) {
  .fashion-grid .f1, .fashion-grid .f2, .fashion-grid .f3, .fashion-grid .f4 { grid-column: 1 / 13; margin-top: 0; }
}
.fashion-grid figure { margin: 0; }
.fashion-grid img { width: 100%; }
.fashion-grid figcaption {
  margin-top: .7rem; font-size: .6rem; letter-spacing: .3em;
  color: #9a927f; text-transform: uppercase;
}
html[data-lang="ar"] .fashion-grid figcaption { letter-spacing: .18em; }

/* — فصل المنتجات: فخامة باردة — */
.world--product { background: #0c0c10; color: var(--bone); }
.world--product .label { color: var(--gold); }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
.product-grid .cell { grid-column: span 2; overflow: hidden; aspect-ratio: 4/5; }
.product-grid .cell.span3 { grid-column: span 3; aspect-ratio: 16/10; }
@media (max-width: 780px) {
  .product-grid .cell { grid-column: span 3; }
  .product-grid .cell.span3 { grid-column: span 6; }
}
.product-grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: filter .6s, transform 1.2s var(--ease-out); }
.product-grid .cell:hover img { filter: saturate(1.05); transform: scale(1.04); }

/* — فصل الأماكن والتراث: حرارة ذهبية عريضة — */
.world--heritage { background: #14100a; color: #f1e9dc; }
.world--heritage .label { color: #caa15e; }
.heritage-strip { display: grid; gap: clamp(.8rem, 2vw, 1.4rem); }
.heritage-strip .wide { aspect-ratio: 21/9; overflow: hidden; }
.heritage-strip .wide img { width: 100%; height: 100%; object-fit: cover; }
.heritage-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 2vw, 1.4rem); }
@media (max-width: 700px) { .heritage-pair { grid-template-columns: 1fr; } }
.heritage-pair .cell { aspect-ratio: 4/3; overflow: hidden; }
.heritage-pair img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.heritage-pair .cell:hover img { transform: scale(1.03); }

/* ==== CONSISTENCY (LoRA proof) ==== */
.consistency { background: var(--ink-2); }
.consistency .lead {
  max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 200; color: var(--bone); opacity: .88; margin-bottom: 3rem;
}
.badge {
  display: inline-flex; align-items: baseline; gap: .5rem;
  margin-bottom: 1.5rem;
}
.badge b { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 200; color: var(--gold); letter-spacing: -.02em; }
.badge span { font-size: .7rem; letter-spacing: .28em; color: var(--hush); text-transform: uppercase; }
html[data-lang="ar"] .badge span { letter-spacing: .18em; }

.char-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.char-strip img { aspect-ratio: 3/4; object-fit: cover; filter: grayscale(.15); transition: filter .5s; }
.char-strip img:hover { filter: none; }
@media (max-width: 900px) { .char-strip { grid-template-columns: repeat(3, 1fr); } }

.char-row + .char-row { margin-top: .5rem; }
.char-label { font-size: .62rem; letter-spacing: .3em; color: var(--hush);
  text-transform: uppercase; margin: 2rem 0 .8rem; }
html[data-lang="ar"] .char-label { letter-spacing: .2em; }

/* ==== PROCESS ==== */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } }
.pipe-step { background: var(--ink); padding: 2rem 1.4rem; }
.pipe-step .n { font-size: .62rem; letter-spacing: .3em; color: var(--gold); margin-bottom: 1rem; }
.pipe-step h4 { font-weight: 400; font-size: 1rem; margin-bottom: .5rem; }
.pipe-step p { font-size: .82rem; color: var(--hush); line-height: 1.6; }

/* ==== ABOUT ==== */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { font-size: clamp(1rem, 1.7vw, 1.28rem); font-weight: 200; line-height: 1.85; margin-bottom: 1.4rem; opacity: .92; }
.about-copy .label { display: block; margin-bottom: 1.8rem; }
.about-img { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-facts { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.about-facts .f b { display: block; font-size: 1.8rem; font-weight: 200; color: var(--bone); }
.about-facts .f span { font-size: .62rem; letter-spacing: .22em; color: var(--hush); text-transform: uppercase; }

/* ==== CONTACT ==== */
.contact { text-align: center; }
.contact h2 { font-weight: 200; font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 2rem; }
.contact__links { display: inline-flex; flex-direction: column; gap: 1rem; align-items: center; }
.contact__mail { font-size: clamp(1.1rem, 3vw, 1.8rem); font-weight: 200; border-bottom: 1px solid var(--line); padding-bottom: .3rem; transition: border-color .4s; }
.contact__mail:hover { border-color: var(--bone); }
.contact__socials { display: flex; gap: 1.8rem; margin-top: 1.5rem; }
.contact__socials a { font-size: .72rem; letter-spacing: .2em; color: var(--hush); text-transform: uppercase; transition: color .3s; }
.contact__socials a:hover { color: var(--bone); }

/* ==== FOOTER ==== */
.footer {
  border-top: 1px solid var(--line); padding: 2.5rem var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .68rem; letter-spacing: .18em; color: var(--hush); text-transform: uppercase;
}

/* ==== LIGHTBOX (reel + film) ==== */
.lb { position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6,6,6,.96); align-items: center; justify-content: center; padding: var(--pad); }
.lb.open { display: flex; }
.lb__inner { width: min(1100px, 100%); position: relative; }
.lb video { width: 100%; border: 1px solid var(--line); background: #000; }
.lb__close { position: absolute; top: -2.6rem; inset-inline-end: 0;
  background: none; border: none; color: var(--bone); font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase; cursor: pointer; font-family: inherit; }
