/* ============================================================
   SALA7 — Ahmed Salah · Brand identity & social ads
   Editorial studio portfolio · RTL-first, bilingual
   ============================================================ */

:root {
  --paper: #f2ede2;
  --paper-2: #e9e2d2;
  --ink: #12110e;
  --ink-soft: #4b4740;
  --line: rgba(18, 17, 14, 0.14);
  --line-strong: rgba(18, 17, 14, 0.34);
  --clay: #cf4528;
  --forest: #24382e;
  --cream: #fbf8f1;

  --f-ar: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --f-en: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "IBM Plex Sans", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 80px);
  --nav-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ar);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body { font-family: var(--f-en); line-height: 1.68; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--clay); color: #fff; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

html[lang="ar"] .mono { font-family: var(--f-ar); letter-spacing: 0.02em; font-size: 13px; font-weight: 500; }

.display {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

html[lang="ar"] .display { line-height: 1.18; letter-spacing: 0; font-weight: 600; }

.display em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}

html[lang="ar"] .display em {
  font-family: var(--f-ar);
  font-style: normal;
  font-weight: 500;
}

/* grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll progress */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 2px;
  z-index: 400;
  background: transparent;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
}
html[dir="rtl"] .progress i { transform-origin: 100% 50%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); padding-block: 11px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; }
.brand .mark-text {
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand .mark-text span { color: var(--clay); }

.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { position: relative; padding-block: 4px; opacity: 0.72; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--clay);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.nav-status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2f9e5b;
  box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(47, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); }
}

.lang-btn {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 76px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.lang-btn:hover { background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--clay); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: end;
  max-width: 1440px;
  margin-inline: auto;
  padding: calc(var(--nav-h) + 54px) var(--pad) clamp(40px, 5vw, 70px);
}

.hero .wrap { padding-inline: 0; max-width: none; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(26px, 4vw, 44px);
}
.hero-meta .mono { color: var(--ink-soft); }

.hero-title {
  font-size: clamp(42px, 7.1vw, 116px);
  letter-spacing: -0.035em;
}
html[lang="ar"] .hero-title { font-size: clamp(34px, 5.4vw, 88px); line-height: 1.24; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span, .hero-title .line > em { display: inline-block; }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(20px, 4vw, 60px);
  margin-top: clamp(30px, 4.5vw, 54px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-sub {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-soft);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-figure { margin: 0; position: relative; align-self: end; }
.hero-figure .frame {
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 1.2s var(--ease);
}
.hero-figure:hover img { transform: scale(1.03); }

.hero-caption {
  display: block;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 11px;
}

.badge {
  position: absolute;
  inset-inline-start: -14px;
  bottom: 58px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 14px 34px rgba(18, 17, 14, 0.12);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #2f9e5b; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--clay);
  color: #fff;
  border-block: 1px solid rgba(0, 0, 0, 0.08);
  padding-block: 14px;
}
.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--f-en);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track .sep { opacity: 0.55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding-block: clamp(64px, 9vw, 130px); }

.sec-num {
  display: block;
  color: var(--clay);
  margin-bottom: 22px;
}
.sec-head { max-width: 1000px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-title {
  font-size: clamp(34px, 5vw, 76px);
  letter-spacing: -0.03em;
}
html[lang="ar"] .sec-title { font-size: clamp(30px, 4.4vw, 64px); }
.sec-lead {
  margin: 22px 0 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
}

/* ============================================================
   WORK — sticky stack
   ============================================================ */
.work { padding-bottom: clamp(50px, 6vw, 90px); }
.work-stack {
  display: grid;
  gap: clamp(22px, 3vw, 42px);
}
.work-card {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px -38px rgba(18, 17, 14, 0.5);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.work-card:nth-child(2) { top: calc(var(--nav-h) + 26px); }
.work-card:nth-child(3) { top: calc(var(--nav-h) + 36px); }
.work-card:nth-child(4) { top: calc(var(--nav-h) + 46px); }
.work-card:nth-child(5) { top: calc(var(--nav-h) + 56px); }
.work-card:nth-child(6) { top: calc(var(--nav-h) + 66px); }
.work-card:hover { box-shadow: 0 34px 70px -34px rgba(18, 17, 14, 0.55); }

.work-media { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.04); }

.work-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(22px, 3.2vw, 46px);
  border-inline-start: 1px solid var(--line);
}
.work-idx { color: var(--clay); }
.work-info h3 {
  font-size: clamp(28px, 3vw, 44px);
  margin-top: auto;
}
.work-info .work-top { display: flex; justify-content: space-between; align-items: baseline; }
.work-info h3 small {
  display: block;
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
html[lang="en"] .work-info h3 small { display: none; }
.work-cat { font-size: 15px; color: var(--ink-soft); }
.work-meta { color: var(--ink-soft); }
.work-cta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
}
.work-cta i { font-style: normal; transition: transform 0.4s var(--ease); }
.work-card:hover .work-cta i { transform: translate(3px, -3px); }
html[dir="rtl"] .work-card:hover .work-cta i { transform: translate(-3px, -3px); }

.work-note {
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 70ch;
}

/* ============================================================
   ABOUT (dark)
   ============================================================ */
.about { background: var(--ink); color: var(--paper); }
.about .sec-num { color: #e0704f; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 100px);
}
.about-title {
  font-size: clamp(32px, 4.4vw, 68px);
  color: var(--paper);
}
.about-right p { color: rgba(242, 237, 226, 0.74); max-width: 52ch; }
.about-right p + p { margin-top: 16px; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(242, 237, 226, 0.18);
}
.stat {
  padding: 20px 0;
  border-bottom: 1px solid rgba(242, 237, 226, 0.18);
}
.stat:nth-child(odd) { padding-inline-end: 18px; }
.stat b {
  display: block;
  font-family: var(--f-en);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
}
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: rgba(242, 237, 226, 0.6); }

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.tool {
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border: 1px solid rgba(242, 237, 226, 0.24);
  border-radius: 999px;
  color: rgba(242, 237, 226, 0.78);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper-2); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 38px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(18, 17, 14, 0.5); }
.svc--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc-tag {
  position: absolute;
  top: -12px;
  inset-inline-start: 24px;
  background: var(--clay);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.svc-top { display: flex; align-items: baseline; gap: 12px; }
.svc-num { color: var(--clay); }
.svc h3 { margin: 0; font-size: clamp(20px, 1.9vw, 25px); font-weight: 600; }
.svc-desc { margin: 0; font-size: 15px; color: var(--ink-soft); }
.svc--featured .svc-desc { color: rgba(242, 237, 226, 0.7); }
.price {
  font-family: var(--f-en);
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.price small { font-size: 14px; letter-spacing: 0.08em; opacity: 0.6; }
.per { font-size: 13px; color: var(--ink-soft); margin-top: -6px; }
.svc--featured .per { color: rgba(242, 237, 226, 0.6); }
.svc ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.svc--featured ul { border-top-color: rgba(242, 237, 226, 0.2); }
.svc li {
  padding: 10px 0;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.svc--featured li { border-bottom-color: rgba(242, 237, 226, 0.14); }
.svc .btn { margin-top: auto; align-self: flex-start; }
.svc--featured .btn--solid { background: var(--clay); color: #fff; }
.svc--featured .btn--solid:hover { background: var(--paper); color: var(--ink); }

.addons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  font-size: 14.5px;
}
.addons-title { color: var(--clay); margin-inline-end: 8px; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { border-top: 1px solid var(--line-strong); }
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step b { font-size: 15px; color: var(--clay); font-weight: 600; padding-top: 6px; }
.step h3 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.step p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper-2); }
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: 0;
  text-align: start;
  font: inherit;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .ic { position: relative; width: 18px; height: 18px; flex: none; }
.faq-q .ic::before, .faq-q .ic::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.faq-q .ic::after { transform: rotate(90deg); }
.faq-item.open .faq-q .ic::after { transform: rotate(0deg); }
.faq-item.open .faq-q { color: var(--clay); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a p { margin: 0; padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--paper); }
.contact .sec-num { color: #e0704f; }
.contact-title {
  font-size: clamp(36px, 6vw, 92px);
  margin-bottom: clamp(40px, 6vw, 70px);
  color: var(--paper);
}
.contact-title em { display: block; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  border-top: 1px solid rgba(242, 237, 226, 0.2);
  padding-top: clamp(30px, 4vw, 50px);
}
.contact-lines { display: flex; flex-direction: column; gap: 0; }
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(242, 237, 226, 0.16);
  transition: color 0.3s;
}
.contact-line:hover { color: var(--clay); }
.contact-line .k { color: rgba(242, 237, 226, 0.55); font-size: 12px; }
.contact-line .v {
  font-family: var(--f-en);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 500;
  direction: ltr;
  letter-spacing: 0.01em;
}
.contact-note { margin: 22px 0 0; color: rgba(242, 237, 226, 0.55); font-size: 14px; max-width: 44ch; }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: rgba(242, 237, 226, 0.6); }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 237, 226, 0.3);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
}
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 22px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(242,237,226,.7) 50%), linear-gradient(135deg, rgba(242,237,226,.7) 50%, transparent 50%);
  background-position: calc(0% + 8px) calc(50% + 1px), calc(0% + 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
html[dir="ltr"] .field select { background-position: calc(100% - 13px) calc(50% + 1px), calc(100% - 8px) calc(50% + 1px); }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--clay); }
.field textarea { min-height: 96px; resize: vertical; }
.form .btn { align-self: flex-start; background: var(--paper); color: var(--ink); margin-top: 8px; }
.form .btn:hover { background: var(--clay); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: clamp(40px, 5vw, 64px) 26px; background: var(--ink); color: var(--paper); }
.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(242, 237, 226, 0.16);
}
.footer .big {
  font-family: var(--f-en);
  font-size: clamp(70px, 16vw, 230px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.footer .big span { color: var(--clay); }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(242, 237, 226, 0.7); }
.footer-links a:hover { color: var(--clay); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(242, 237, 226, 0.55);
}
.footer-bottom .mono { color: inherit; }
.footer-up {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(242, 237, 226, 0.3);
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
}
.footer-up:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.case { padding-top: calc(var(--nav-h) + 46px); padding-bottom: 40px; }
.case-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.case-kicker {
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}
html[lang="ar"] .case-kicker { font-family: var(--f-ar); letter-spacing: 0.02em; font-size: 13px; }
.case-head h1 {
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 100px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
html[lang="ar"] .case-head h1 { font-size: clamp(38px, 5.6vw, 88px); letter-spacing: 0; line-height: 1.2; }
.case-tagline { margin: 0; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 20px); max-width: 46ch; }
.case-meta { display: flex; flex-direction: column; }
.case-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.case-meta .k { color: var(--ink-soft); }
.case-meta .v { font-weight: 500; text-align: end; }

.case-hero { margin: clamp(24px, 3.5vw, 46px) 0 0; border-radius: 22px; overflow: hidden; background: var(--paper-2); }
.case-hero img { width: 100%; max-height: 78vh; object-fit: cover; }

.case-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 5vw, 70px);
  margin-top: clamp(36px, 5vw, 64px);
}
.case-aside { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.case-aside .k {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
html[lang="ar"] .case-aside .k { font-family: var(--f-ar); font-size: 12.5px; letter-spacing: 0; }
.palette { display: flex; gap: 6px; margin: 10px 0 22px; }
.swatch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); }

.case-body h2 {
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
html[lang="ar"] .case-body h2 { letter-spacing: 0; line-height: 1.3; }
.case-body h3 { font-weight: 600; font-size: clamp(20px, 2vw, 25px); margin: 34px 0 10px; }
.case-body p { color: var(--ink-soft); max-width: 68ch; }
.case-body ul { color: var(--ink-soft); padding-inline-start: 20px; max-width: 64ch; }
.case-body li { margin-block: 6px; }

.case-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(30px, 4vw, 50px);
}
.case-gallery .g.spec, .case-gallery .g.post {
  display: block; position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden;
}
.spec-in { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.spec-aa { font-family: var(--f-serif); font-size: clamp(52px, 7vw, 86px); line-height: 1; }
.spec-ar { font-family: var(--f-ar); font-size: clamp(26px, 3vw, 38px); opacity: 0.9; }
.spec-f { font-family: var(--f-en); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }
.post-in { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.post-handle { direction: ltr; font-family: var(--f-en); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.post-line { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; line-height: 1.25; max-width: 14ch; }
.post-tag { font-family: var(--f-en); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }

.next-case { margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line-strong); }
.next-case a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px) 0;
}
.next-case .lbl { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.next-case .nm { font-size: clamp(30px, 4.4vw, 60px); font-weight: 600; line-height: 1.1; transition: color 0.3s; }
.next-case a:hover .nm { color: var(--clay); }
.work-arrow svg { width: 40px; height: 40px; }

/* ============================================================
   ENGLISH TYPOGRAPHY REFINEMENTS
   ============================================================ */
html[lang="en"] .hero-title { letter-spacing: -0.035em; }
html[lang="en"] .sec-title { letter-spacing: -0.03em; }
html[lang="en"] .lang-btn { letter-spacing: 0.04em; font-size: 12.5px; }
html[lang="en"] .spec-ar { display: none; }

/* ============================================================
   LANGUAGE SUGGESTION BAR
   ============================================================ */
.lang-note {
  position: fixed;
  inset-inline: 0;
  bottom: 18px;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 14px 40px rgba(18, 17, 14, 0.28);
  z-index: 300;
  animation: langNoteIn 0.5s var(--ease) both;
}
.lang-note__go { color: #fff; font-weight: 600; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.lang-note__go:hover { border-bottom-color: var(--clay); }
.lang-note__x {
  border: 0; background: rgba(255, 255, 255, 0.12); color: var(--paper);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
}
@keyframes langNoteIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { max-width: 380px; margin-top: 30px; }
  .hero-foot { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .about-grid, .faq-grid, .contact-grid, .case-head, .case-body { grid-template-columns: 1fr; }
  .faq-head, .case-aside { position: static; }
  .work-card { grid-template-columns: 1fr; position: relative; top: auto !important; min-height: 0; }
  .work-media { aspect-ratio: 16/10; }
  .work-info { border-inline-start: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .nav-status { display: none; }
  .nav-links { display: none; }
  .nav-right > .btn { display: none; }
  .burger {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: none;
    cursor: pointer;
  }
  .burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
  .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
  }
  .burger span::before { top: -5px; }
  .burger span::after { top: 5px; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px var(--pad) 26px;
    gap: 16px;
  }
  .hero { padding-top: calc(var(--nav-h) + 34px); }
  .hero-meta { flex-direction: column; gap: 6px; }
  .steps .step { grid-template-columns: 1fr; gap: 6px; }
  .case-gallery { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-wrap: wrap; }
  .lang-note { flex-wrap: wrap; justify-content: center; border-radius: 18px; padding: 12px 14px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
