/* ============================================
   LIWA CONCEPT DESIGN — Premium Identity
   ============================================ */

:root {
  --bg: #f6f4ef;
  --bg-deep: #ecead6;
  --ink: #0c0c0c;
  --ink-soft: #1a1a1a;
  --mute: #6b6b67;
  --line: #d8d4c5;
  --accent: #b89968;
  --accent-2: #c9a978;
  --wa: #25d366;
  --serif: "Cormorant Garamond", "Tajawal", serif;
  --sans: "Inter", "Tajawal", system-ui, sans-serif;
  --ar-serif: "Tajawal", "Cormorant Garamond", serif;
  --ease: cubic-bezier(.7,.0,.2,1);
  --rad: 2px;
}

[data-lang="ar"] {
  --serif: "Tajawal", "Cormorant Garamond", serif;
  --sans: "Tajawal", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

/* ============== Noise ============== */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============== 3D Canvas ============== */
#bg3d {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  opacity: .3;
}
@media (max-width: 1024px) {
  #bg3d { display: none !important; visibility: hidden; }
}

/* ============== Preloader ============== */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.preloader.gone { opacity: 0; visibility: hidden; }
.preloader-inner { width: min(520px, 80vw); text-align: center; }
.preloader-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 32px; }
.pl-text {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 8vw, 84px);
  letter-spacing: -.02em;
  color: var(--ink);
}
.pl-dot { color: var(--accent); }
.pl-sub {
  font-family: var(--sans); font-weight: 400;
  letter-spacing: .4em; font-size: 11px;
  color: var(--mute);
}
.preloader-bar {
  height: 1px; background: var(--line);
  position: relative; overflow: hidden;
}
.preloader-bar-fill {
  position: absolute; inset: 0; right: auto;
  background: var(--ink);
  width: 0%;
  transition: width .2s linear;
}
.preloader-count {
  margin-top: 16px;
  font-size: 11px; letter-spacing: .3em;
  color: var(--mute);
}

/* ============== Header ============== */
.site-header {
  position: fixed; top: 0; inset-inline: 0;
  z-index: 100; padding: 22px 48px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 32px;
  transition: padding .35s var(--ease), background .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header .nav { justify-self: center; }
.site-header.scrolled {
  padding: 14px 48px;
  background: rgba(246, 244, 239, .82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-img {
  height: 48px; width: auto; max-width: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-fallback { display: none; align-items: center; gap: 10px; }
.brand-mark { display: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500; font-size: 26px; letter-spacing: -.01em;
}
.brand-dot { color: var(--accent); }
.brand-sub {
  font-family: "Inter", sans-serif;
  font-size: 9px; letter-spacing: .35em;
  color: var(--mute); margin-top: 4px;
}

.nav { display: flex; justify-content: center; gap: 36px; }
.nav a {
  font-size: 13px; letter-spacing: .04em;
  color: var(--ink-soft); position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: inset-inline-start;
  transition: transform .4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .15em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-sep { color: var(--mute); }
[data-lang="en"] .lang-en, [data-lang="ar"] .lang-ar { color: var(--ink); font-weight: 600; }
[data-lang="en"] .lang-ar, [data-lang="ar"] .lang-en { color: var(--mute); }

.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }

/* ============== Hero ============== */
.hero {
  position: relative; z-index: 3;
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-grid {
  max-width: 1280px; margin: 0 auto; width: 100%;
  position: relative; z-index: 4;
}
.hero-meta, .hero-sub, .hero-cta, .hero-stats { position: relative; z-index: 5; }

.hero-meta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.meta-line { width: 40px; height: 1px; background: var(--ink); display: inline-block; }
.meta-text { font-size: 11px; letter-spacing: .35em; color: var(--ink-soft); text-transform: uppercase; }

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: .98; letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 36px;
  position: relative; z-index: 5;
}
[data-lang="ar"] .hero-title {
  font-family: "Tajawal", serif; font-weight: 700;
  line-height: 1.15;
  font-size: clamp(34px, 5.5vw, 76px);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.hero-title .italic { font-style: italic; color: var(--accent); }
[data-lang="ar"] .hero-title .italic { font-style: normal; color: var(--accent); }

.hero-sub {
  max-width: 620px; font-size: 18px; line-height: 1.7;
  color: var(--ink-soft); margin-bottom: 56px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 80px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 32px;
  font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  border-radius: var(--rad);
  transition: all .4s var(--ease);
  position: relative; overflow: hidden;
}
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn:hover svg { transform: translateX(-4px); }

.btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; justify-content: center; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 64px; padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 700px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 56px; font-weight: 500; line-height: 1;
  color: var(--ink);
}
.stat-num::after { content: "+"; color: var(--accent); margin-inline-start: 2px; }
.stat-label { font-size: 11px; letter-spacing: .25em; color: var(--mute); text-transform: uppercase; }

.hero-scroll {
  position: absolute; bottom: 30px; inset-inline-end: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .3em; color: var(--mute); text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: scrollDown 2.2s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  60%,100% { transform: translateY(100%); }
}

/* ============== Sections ============== */
.section {
  position: relative; z-index: 3;
  padding: 140px 48px;
}
.container { max-width: 1280px; margin: 0 auto; }

.section-head { margin-bottom: 80px; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: .4em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 24px;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 28px;
}
[data-lang="ar"] .section-title { font-family: "Tajawal", serif; font-weight: 500; line-height: 1.2; }
.section-title .italic { font-style: italic; color: var(--accent); }
[data-lang="ar"] .section-title .italic { font-style: normal; color: var(--accent); }
.section-title span { display: inline-block; }
.section-lead { font-size: 17px; color: var(--ink-soft); line-height: 1.7; max-width: 620px; }
.section-head.center .section-lead { margin-inline: auto; }

/* ============== About ============== */
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center;
}
.about-text p { font-size: 17px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 24px; }
.about-text p:last-child { margin-bottom: 0; }

.about-card {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink);
  color: var(--bg);
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.ac-3d {
  position: absolute; inset: 0; z-index: 0;
}
.ac-meta { position: relative; z-index: 1; }
.ac-label { display: block; font-size: 10px; letter-spacing: .4em; color: var(--accent-2); margin-bottom: 10px; text-transform: uppercase; }
.ac-value {
  display: block; font-family: "Cormorant Garamond", serif;
  font-size: 36px; line-height: 1.1; font-style: italic;
}
[data-lang="ar"] .ac-value { font-family: "Tajawal", serif; font-style: normal; font-weight: 500; }

/* ============== Expertise ============== */
.exp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.exp-card {
  padding: 56px 48px;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
  background: transparent;
}
.exp-card:nth-child(2n) { border-inline-end: 0; }
.exp-card::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(100%); transition: transform .6s var(--ease); z-index: 0;
}
.exp-card:hover::before { transform: translateY(0); }
.exp-card:hover { color: var(--bg); }
.exp-card:hover .exp-num { color: var(--accent-2); }
.exp-card > * { position: relative; z-index: 1; }

.exp-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px; color: var(--accent);
  margin-bottom: 36px; letter-spacing: .1em;
  transition: color .5s var(--ease);
}
.exp-icon { width: 56px; height: 56px; margin-bottom: 32px; color: currentColor; }
.exp-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px; font-weight: 500; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -.01em;
}
[data-lang="ar"] .exp-card h3 { font-family: "Tajawal", serif; font-weight: 700; line-height: 1.4; font-size: 26px; }
.exp-card p { font-size: 15px; line-height: 1.7; opacity: .85; }

/* ============== Method ============== */
.method-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 48px 32px 48px 0;
  border-inline-end: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-inline-end: 0; }
.step-index {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px; color: var(--accent); letter-spacing: .1em;
  display: block; margin-bottom: 32px;
}
.step h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px; font-weight: 500; margin-bottom: 14px;
}
[data-lang="ar"] .step h4 { font-family: "Tajawal", serif; font-weight: 700; font-size: 22px; }
.step p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); padding-inline-end: 16px; }

/* ============== Projects ============== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: 18px;
}
.project-card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg);
  border-radius: var(--rad);
  cursor: pointer;
  display: block;
  isolation: isolate;
}
.project-card.big { grid-column: span 2; grid-row: span 2; }
.pc-img {
  position: absolute; inset: 0;
  overflow: hidden;
}
.pc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease), filter .6s var(--ease);
  filter: brightness(.78) contrast(1.05);
}
.project-card:hover .pc-img img {
  transform: scale(1.06);
  filter: brightness(.88) contrast(1.05);
}
/* Fallback SVG cards: keep full brightness so embedded title stays readable */
.pc-img.fallback img {
  filter: none;
}
.project-card:hover .pc-img.fallback img {
  filter: brightness(1.05);
}
.pc-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.35) 45%, rgba(10,10,10,.05) 75%, rgba(10,10,10,.35) 100%);
  z-index: 1;
}

/* Professional Liwa stamp — always visible top corner */
.pc-stamp {
  position: absolute; top: 18px; inset-inline-start: 18px;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: rgba(246, 244, 239, .94);
  color: var(--ink);
  border-radius: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.pc-stamp-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px; font-weight: 500; line-height: 1;
  letter-spacing: -.01em;
}
.pc-stamp-mark span { color: var(--accent); }
.pc-stamp-line {
  width: 1px; height: 16px; background: var(--ink); opacity: .25;
}
.pc-stamp-sub {
  font-family: "Inter", sans-serif;
  font-size: 8px; letter-spacing: .3em; color: var(--mute);
  text-transform: uppercase;
}

/* Project metadata overlay (bottom) */
.pc-overlay {
  position: absolute; inset: 0;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 2;
  pointer-events: none;
}
.pc-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .3em;
  color: var(--accent-2); text-transform: uppercase;
  margin-bottom: 12px;
}
.pc-cat::before {
  content: ""; width: 18px; height: 1px; background: var(--accent-2);
}
.pc-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px; font-weight: 500;
  margin-bottom: 8px; line-height: 1.15;
  color: #fff;
}
[data-lang="ar"] .pc-title { font-family: "Tajawal", serif; font-weight: 700; font-size: 24px; }
.project-card.big .pc-title { font-size: 42px; }
[data-lang="ar"] .project-card.big .pc-title { font-size: 32px; }
.pc-loc {
  display: block;
  font-size: 12px; letter-spacing: .12em;
  opacity: .85; color: #f6f4ef;
}
.pc-credit {
  display: block;
  margin-top: 14px;
  font-size: 10px; letter-spacing: .15em;
  color: var(--accent-2); opacity: .9;
  text-transform: uppercase;
}
[data-lang="ar"] .pc-credit { letter-spacing: .05em; font-size: 11px; }

/* ============== Vision ============== */
.vision { background: var(--ink); color: var(--bg); }
.vision .section-kicker { color: var(--accent-2); }
.vision-box {
  max-width: 1000px; margin: 0 auto; text-align: center;
  padding: 60px 0;
}
.vision-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.25; letter-spacing: -.01em;
  font-weight: 400; margin-top: 40px;
}
[data-lang="ar"] .vision-quote { font-family: "Tajawal", serif; font-weight: 400; line-height: 1.5; }
.vision-quote .italic { font-style: italic; color: var(--accent-2); }
[data-lang="ar"] .vision-quote .italic { font-style: normal; color: var(--accent-2); font-weight: 700; }
.vision-sign {
  margin-top: 40px;
  font-size: 12px; letter-spacing: .35em;
  color: var(--mute); text-transform: uppercase;
}

/* ============== Clients ============== */
.clients-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.client-slot, .client-logo {
  background: var(--bg);
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  transition: background .4s var(--ease), transform .4s var(--ease);
  padding: 24px;
}
.client-slot { color: var(--mute); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; }
.client-slot:hover, .client-logo:hover { background: var(--bg-deep); }
.client-logo img {
  max-width: 100%; max-height: 70%;
  object-fit: contain;
  filter: grayscale(100%); opacity: .7;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; }
.clients-note { margin-top: 24px; font-size: 12px; color: var(--mute); text-align: center; }
.clients-note code { font-family: monospace; background: var(--bg-deep); padding: 2px 8px; border-radius: 2px; }

/* ============== Contact ============== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}

.contact-info {
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line);
}
.contact-line {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 0; background: var(--bg);
  transition: padding .3s var(--ease);
}
a.contact-line:hover { padding-inline-start: 16px; }
.cl-label { font-size: 10px; letter-spacing: .35em; color: var(--mute); text-transform: uppercase; }
.cl-value { font-family: "Cormorant Garamond", serif; font-size: 22px; color: var(--ink); }
[data-lang="ar"] .cl-value { font-family: "Tajawal", serif; font-weight: 500; }

.contact-form {
  background: var(--bg);
  padding: 40px;
  border: 1px solid var(--line);
}
.field { margin-bottom: 24px; }
.field label {
  display: block; font-size: 10px; letter-spacing: .3em;
  color: var(--mute); text-transform: uppercase; margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  font-family: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
}
.field textarea { resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%230c0c0c' stroke-width='1.5'><path d='M3 5l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: left 4px center;
  padding-inline-start: 28px;
  cursor: pointer;
}
[dir="rtl"] .field select { background-position: left 4px center; }
[dir="ltr"] .field select { background-position: right 4px center; padding-inline-start: 0; padding-inline-end: 28px; }
.field select option { color: var(--ink); background: var(--bg); padding: 8px; }

/* ============== Footer ============== */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  position: relative; z-index: 3;
}
.footer-grid {
  padding: 80px 48px 48px;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px;
}
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-brand .brand-name { font-size: 32px; }
.foot-brand .brand-sub { color: rgba(255,255,255,.5); }
.foot-brand p { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 16px; max-width: 280px; }

.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-h { font-size: 10px; letter-spacing: .35em; color: rgba(255,255,255,.4); margin-bottom: 8px; text-transform: uppercase; }
.foot-col a, .foot-col span { color: rgba(255,255,255,.75); font-size: 14px; transition: color .3s var(--ease); }
.foot-col a:hover { color: var(--accent-2); }

.foot-bottom {
  padding: 24px 48px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; letter-spacing: .15em;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ============== WhatsApp Float ============== */
.wa-float {
  position: fixed; bottom: 28px; inset-inline-end: 28px;
  width: 60px; height: 60px;
  background: var(--wa); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 999;
  box-shadow: 0 12px 32px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(37,211,102,.55); }
.wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); opacity: .5;
  animation: waPulse 2s var(--ease) infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ============== Reveal animations ============== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============== Responsive ============== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .site-header {
    padding: 14px 18px; gap: 12px;
    grid-template-columns: auto 1fr auto;
    background: rgba(246, 244, 239, .85);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line);
  }
  .site-header.scrolled { padding: 10px 18px; }
  .brand-img { height: 36px; max-width: 130px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 7px; letter-spacing: .25em; }
  .header-actions { justify-self: end; gap: 10px; }
  .brand { justify-self: start; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .section { padding: 80px 20px; }
  .section-head { margin-bottom: 56px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-card { border-inline-end: 0 !important; padding: 40px 28px; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 36px 20px 36px 0; }
  .step:nth-child(2) { border-inline-end: 0; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }
  .project-card.big { grid-column: span 2; grid-row: span 1; }
  .pc-stamp { padding: 7px 11px; gap: 8px; top: 14px; inset-inline-start: 14px; }
  .pc-stamp-mark { font-size: 16px; }
  .pc-stamp-sub { font-size: 7px; }
  .pc-stamp-line { height: 14px; }
  .footer-grid { padding: 60px 24px 32px; grid-template-columns: 1fr; gap: 40px; }
  .foot-bottom { padding: 20px 24px; }
  .hero-scroll { display: none; }
  .about-card { aspect-ratio: 4/4; }
  .lang-toggle { padding: 6px 10px; font-size: 11px; }

  /* Mobile menu */
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; padding: 100px 32px;
    background: var(--bg); z-index: 50;
    align-items: flex-start; justify-content: flex-start;
    gap: 20px;
  }
  .nav.open a {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px; letter-spacing: -.01em;
  }
  [data-lang="ar"] .nav.open a { font-family: "Tajawal", serif; font-weight: 500; }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .brand-img { height: 34px; }
  .brand-name { font-size: 20px; }
  .hero { padding: 90px 18px 50px; }
  .hero-meta { margin-bottom: 24px; }
  .hero-title { margin-bottom: 24px; }
  .hero-sub { font-size: 15px; margin-bottom: 36px; background: transparent; }
  .hero-cta { gap: 12px; margin-bottom: 56px; flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 16px 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 28px; }
  .hero-stats .stat:last-child { grid-column: span 2; }
  .stat-num { font-size: 38px; }
  .section { padding: 64px 18px; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: 36px !important; line-height: 1.2; }
  [data-lang="ar"] .section-title { font-size: 30px !important; }
  .section-lead { font-size: 15px; }
  .about-text p { font-size: 15px; line-height: 1.7; }
  .exp-card { padding: 32px 22px; }
  .exp-card h3 { font-size: 26px; }
  [data-lang="ar"] .exp-card h3 { font-size: 22px; }
  .method-steps { grid-template-columns: 1fr; }
  .step { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .step:last-child { border-bottom: 0; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    gap: 14px;
  }
  .project-card.big { grid-column: span 1; }
  .pc-overlay { padding: 22px; }
  .pc-title { font-size: 22px !important; }
  .project-card.big .pc-title { font-size: 26px !important; }
  .pc-credit { font-size: 10px !important; margin-top: 10px; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: 24px 20px; }
  .vision-quote { font-size: 22px; line-height: 1.5; }
  [data-lang="ar"] .vision-quote { font-size: 20px; }
  .wa-float { width: 54px; height: 54px; bottom: 18px; inset-inline-end: 18px; }
  .wa-float svg { width: 24px; height: 24px; }
  .cl-value { font-size: 18px; }
}
