/* ============================================================
   H-BEAM — stylesheet (mobile-first motion edition)
   Institutional colors: #F28021 orange · #666666 grey
   Typeface: Futura (web equivalent: Jost) · Arabic: Cairo
   Layout is MOBILE-FIRST: base styles target phones,
   @media (min-width: …) blocks enhance for larger screens.
   ============================================================ */

:root {
  /* ponytail: --orange is a FILL. #F28021 on white is 2.66:1 and fails AA at any
     size, so text that needs to look orange uses --orange-ink instead.
     --orange-dark (#d96c10) was the previous answer and measured 3.44:1 — also a fail. */
  --orange:      #F28021;
  --orange-ink:  #AA5A14;
  /* ponytail: the contact panel's fill. --orange #F28021 gives its white text 2.66:1.
     Darkening the one surface fixes all ten text rules inside it at once; flipping the
     text instead would also need the rgba(255,255,255,.14) field fills changed, and
     those get LIGHTER as alpha rises, so that route cannot reach AA at all. */
  --orange-deep: #8f4a10;
  --grey:        #666666;
  --ink:         #2e2e2e;
  --paper:       #ffffff;
  --tint:        #faf6f1;
  --tint-2:      #f4ede4;
  --line:        #e4ded6;

  --font-latin:  "Jost", "Futura", "Century Gothic", sans-serif;
  --font-arabic: "Cairo", sans-serif;

  --pad: clamp(1.1rem, 4vw, 4rem);
  --ease-spring: cubic-bezier(.22, 1.2, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-latin);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-arabic); }
img { max-width: 100%; display: block; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
.btn, .gallery figure, .fab, .nav-cta { touch-action: manipulation; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .6rem var(--pad);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 38px; width: auto; display: block; direction: ltr; }
.brand-logo text { direction: ltr; unicode-bidi: bidi-override; }
.brand-word { font-family: var(--font-latin); font-weight: 500; letter-spacing: .01em; }

/* logo entrance on load */
.brand-logo-img { opacity: 0; transform: translateY(-8px); animation: logoIn .7s .2s var(--ease-spring) forwards; }
@keyframes logoIn { to { opacity: 1; transform: none; } }

.site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 1rem var(--pad); gap: 1.1rem;
  box-shadow: 0 18px 30px rgba(30,20,10,.08);
}
.site-nav.open { display: flex; animation: navDrop .3s var(--ease-spring); }
@keyframes navDrop { from { opacity: 0; transform: translateY(-10px); } }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 1.05rem;
  letter-spacing: .04em; color: var(--grey);
}
.site-nav a:not(.nav-cta):hover { color: var(--orange-ink); }
.nav-cta {
  background: var(--orange); color: var(--ink) !important; padding: .7rem 1.2rem;
  border-radius: 12px; font-weight: 600; transition: background .2s, transform .15s;
  text-align: center;
}
.nav-cta:active { transform: scale(.97); }
.header-tools { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  font-family: var(--font-arabic); font-size: .95rem; font-weight: 700;
  background: none; border: 1.5px solid var(--line); border-radius: 10px;
  color: var(--grey); padding: .38rem .85rem; cursor: pointer; transition: all .2s;
}
html[dir="rtl"] .lang-toggle { font-family: var(--font-latin); }
.lang-toggle:hover { border-color: var(--orange); color: var(--orange-ink); }
.lang-toggle:active { transform: scale(.95); }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: .55rem .4rem;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); display: block; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media, .hero-scrim { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  animation: kenburns 14s ease-out forwards;
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-scrim {
  background: linear-gradient(180deg, rgba(24,18,12,.32) 0%, rgba(24,18,12,.10) 40%, rgba(24,18,12,.76) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: var(--pad); padding-bottom: 6.5rem; max-width: 1100px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  margin-bottom: .9rem;
}
html[dir="rtl"] .hero-kicker { letter-spacing: 0; font-size: .95rem; }
.tick { width: 30px; height: 3px; background: var(--orange); display: inline-block; border-radius: 2px; }
.hero-title {
  font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.7rem, 11vw, 6.8rem);
  line-height: 1.02; letter-spacing: .015em;
}
html[dir="rtl"] .hero-title { text-transform: none; letter-spacing: 0; line-height: 1.22; font-weight: 800; font-size: clamp(2.5rem, 10vw, 5.6rem); }
.hero-title span { display: block; }
.hero-title .accent { color: var(--orange); }
.hero-sub { margin-top: 1.1rem; font-size: clamp(1.05rem, 4vw, 1.35rem); font-weight: 300; max-width: 34em; opacity: .95; letter-spacing: .04em; }
.hero-ctas { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: .98rem; letter-spacing: .05em;
  padding: 1rem 1.6rem; border: 2px solid transparent; border-radius: 14px;
  transition: all .2s; text-align: center;
}
html[dir="rtl"] .btn { letter-spacing: 0; }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--orange); color: var(--ink); box-shadow: 0 10px 26px rgba(242,128,33,.35); }
.btn-solid:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); }

/* scroll cue */
.scroll-cue {
  position: absolute; z-index: 3; bottom: 3.4rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.8); border-radius: 14px;
  display: block;
}
.scroll-cue i {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--orange); border-radius: 2px;
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop { 0%{ transform: translateY(0); opacity:1 } 70%{ transform: translateY(14px); opacity:0 } 100%{ opacity:0 } }

/* hero edge marquee */
.hero-edge {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: var(--orange); color: var(--ink); overflow: hidden;
  padding: .55rem 0;
}
.edge-track {
  display: inline-flex; gap: 2.2rem; white-space: nowrap; will-change: transform;
  font-weight: 500; letter-spacing: .18em; font-size: .72rem; text-transform: uppercase;
  animation: marquee 26s linear infinite;
  direction: ltr;
}
html[dir="rtl"] .edge-track { letter-spacing: 0; font-size: .85rem; }
.edge-track span::before { content: "· "; color: rgba(0,0,0,.45); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease-spring) forwards; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .15s } .d3 { animation-delay: .25s }
.d4 { animation-delay: .4s }  .d5 { animation-delay: .55s }
@keyframes rise { to { opacity: 1; transform: none; } }
.io-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s var(--ease-spring); transition-delay: calc(var(--i, 0) * 110ms); }
.io-reveal.in { opacity: 1; transform: none; }

/* sequenced children — elements inside a card enter one after another,
   like layers on a Remotion timeline */
.seq > * { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s var(--ease-spring); }
.seq.in > * { opacity: 1; transform: none; }
.seq.in > *:nth-child(1) { transition-delay: calc(var(--i, 0) * 110ms + 160ms); }
.seq.in > *:nth-child(2) { transition-delay: calc(var(--i, 0) * 110ms + 300ms); }
.seq.in > *:nth-child(3) { transition-delay: calc(var(--i, 0) * 110ms + 440ms); }
.seq.in > *:nth-child(4) { transition-delay: calc(var(--i, 0) * 110ms + 580ms); }

/* ---------- BUILD STORY (scroll-scrubbed sequence) ---------- */
.story { position: relative; background: #17120d; }
/* the outer section height is set from JS: stages × 65vh */
.story-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-frames { position: absolute; inset: 0; }
.story-frames img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.02); transition: opacity .45s ease, transform .9s ease;
}
.story-frames img.on { opacity: 1; transform: scale(1); }
.story-sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,14,8,.55) 0%, transparent 34%, transparent 60%, rgba(20,14,8,.72) 100%);
}
.story-overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 2; color: #fff; padding: 4.8rem var(--pad) 1.6rem; }
.story-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
}
html[dir="rtl"] .story-kicker { letter-spacing: 0; font-size: .95rem; }
.story-overlay h2 {
  font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.7rem, 6.5vw, 3rem); line-height: 1.1; margin-top: .4rem;
}
html[dir="rtl"] .story-overlay h2 { text-transform: none; letter-spacing: 0; font-weight: 800; }
.story-note { font-size: .95rem; font-weight: 300; opacity: .9; margin-top: .4rem; max-width: 30em; }
.story-hud { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; color: #fff; padding: 1.4rem var(--pad) 1.6rem; }
.story-label {
  font-size: clamp(1.15rem, 4.5vw, 1.7rem); font-weight: 600; margin-bottom: .7rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.story-meter { display: flex; align-items: center; gap: .9rem; }
.story-count, .story-total { font-weight: 600; font-size: .9rem; letter-spacing: .1em; opacity: .9; min-width: 2ch; }
.story-bar { flex: 1; height: 4px; background: rgba(255,255,255,.28); border-radius: 3px; overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 3px; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.stat { padding: 1.6rem 1.2rem; border-top: 1px solid var(--line); }
.stat b {
  font-weight: 600; font-size: clamp(2rem, 8vw, 3.4rem);
  color: var(--orange-ink); display: block; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .82rem; letter-spacing: .03em; color: var(--grey); }

/* ---------- trusted-by strip ---------- */
.clients { padding: 2rem 0 2.4rem; border-bottom: 1px solid var(--line); background: var(--tint); }
.clients-title {
  text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: #6f6f6f; font-weight: 500; padding: 0 var(--pad); margin-bottom: 1.2rem;
}
html[dir="rtl"] .clients-title { letter-spacing: 0; font-size: .95rem; }
.clients-band { overflow: hidden; }
.clients-track {
  display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform;
  animation: marquee 40s linear infinite; direction: ltr;
  font-weight: 600; font-size: 1.05rem; color: var(--grey);
}
.clients-track span::after { content: "◆"; color: var(--orange); font-size: .55rem; margin-inline-start: 3rem; vertical-align: middle; opacity: .6; }

/* ---------- faq ---------- */
.faq-item {
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  margin-bottom: .8rem; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.02rem;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint-2); color: var(--orange-deep); font-weight: 600; font-size: 1.1rem;
  transition: transform .3s var(--ease-spring), background .2s;
}
.faq-item[open] .faq-mark { transform: rotate(45deg); background: var(--orange); color: var(--ink); }
.faq-item > p { padding: 0 1.3rem 1.2rem; color: var(--grey); animation: faqIn .35s var(--ease-spring); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- quote form ---------- */
.quote-form { max-width: 760px; margin: 0 auto 2.2rem; text-align: start; }
.qf-title { text-align: center; font-weight: 600; margin-bottom: 1rem; color: rgba(255,255,255,.95); }
.qf-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.14); color: #fff; font: inherit; outline: none;
  transition: border-color .2s, background .2s;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: rgba(255,255,255,.75); }
.quote-form select { appearance: none; }
.quote-form select option { color: var(--ink); }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  border-color: #fff; background: rgba(255,255,255,.22);
}
.qf-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }
.qf-actions .btn { cursor: pointer; border-width: 2px; font: inherit; font-weight: 600; }
.qf-actions .btn-solid { background: #fff; color: var(--orange-ink); box-shadow: none; }
.qf-actions .btn-solid:hover { background: var(--ink); color: #fff; }
.qf-actions .btn-ghost { background: none; border-color: rgba(255,255,255,.8); color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 8vw, 7rem) var(--pad); max-width: 1400px; margin: 0 auto; }
.section-head { margin-bottom: 2rem; }
.sheet-no { font-weight: 500; font-size: .9rem; letter-spacing: .3em; color: var(--orange-ink); }
.sheet-no::after { content: " /"; color: var(--line); }
.section-head h2 {
  font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.8rem, 6.5vw, 3.1rem); line-height: 1.12; margin-top: .3rem;
  letter-spacing: .02em;
}
html[dir="rtl"] .section-head h2 { text-transform: none; letter-spacing: 0; font-weight: 800; }
.section-note { color: var(--grey); margin-top: .6rem; max-width: 40em; }
.lead { font-size: clamp(1.02rem, 4vw, 1.3rem); font-weight: 300; max-width: 48em; color: var(--grey); }

/* ---------- audiences ---------- */
.audience-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2.2rem; }
.audience {
  background: var(--tint); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  padding: 1.7rem; padding-top: 2.1rem; position: relative;
  display: flex; flex-direction: column; gap: .9rem;
}
.audience::before {
  content: ""; position: absolute; top: 0; inset-inline: 0;
  height: 5px; background: var(--orange);
  transform: scaleX(0); transform-origin: 0 0;
  transition: transform .7s ease calc(var(--i, 0) * 110ms + 150ms);
}
html[dir="rtl"] .audience::before { transform-origin: 100% 0; }
.audience.in::before { transform: scaleX(1); }
/* the two cards slide in from opposite sides */
.audience-grid .audience:nth-child(1):not(.in) { transform: translateX(-46px); }
.audience-grid .audience:nth-child(2):not(.in) { transform: translateX(46px); }
.audience h3 { font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
html[dir="rtl"] .audience h3 { text-transform: none; letter-spacing: 0; font-weight: 800; }
.audience p { color: var(--grey); flex: 1; }
.audience a { font-weight: 600; color: var(--orange-ink); text-decoration: none; }
.audience a::after { content: " →"; }
html[dir="rtl"] .audience a::after { content: " ←"; }
/* ponytail: passes AA at 26px (SC 2.5.8 wants 24); raised to the AAA 44 because these
   two links are the quote-request CTAs and the enquiry path is the one that matters. */
.audience a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- projects ---------- */
.project { margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.project-head { display: flex; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; margin-bottom: .6rem; }
.project-head h3 {
  font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.5rem, 6vw, 2.3rem);
}
html[dir="rtl"] .project-head h3 { text-transform: none; letter-spacing: 0; font-weight: 800; }
.project-meta {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--grey); padding: .32rem .75rem; border-radius: 8px;
}
html[dir="rtl"] .project-meta { letter-spacing: 0; font-size: .82rem; }
.project-desc { color: var(--grey); max-width: 52em; margin-bottom: 1.3rem; }

/* Mobile: swipeable snap carousel. Desktop (min-width) turns it into a grid. */
.gallery {
  display: flex; gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-top: .6rem; padding-bottom: .6rem; /* top room so the focus ring is not clipped by overflow */
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
/* ponytail: the gallery used bare <figure> with a document click handler, so 26
   photos were unreachable by keyboard. A button is the semantic fix; this strips
   its chrome so nothing looks different. */
.gallery-item {
  all: unset;
  display: block;
  cursor: pointer;
  flex: 0 0 80vw; max-width: 420px; height: 62vw; max-height: 330px;
  scroll-snap-align: center;
}
.gallery figure {
  position: relative; overflow: hidden; cursor: zoom-in; margin: 0;
  background: var(--tint-2); border-radius: 14px;
  width: 100%; height: 100%;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.2rem .8rem .55rem;
  font-size: .76rem; color: #fff; letter-spacing: .02em;
  background: linear-gradient(transparent, rgba(20,14,8,.78));
}
.swipe-hint { font-size: .8rem; color: var(--grey); margin-top: .2rem; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.service {
  border: 1px solid var(--line); background: var(--paper); padding: 1.5rem;
  border-radius: 16px; position: relative; overflow: hidden;
}
.service.io-reveal:not(.in) { transform: translateY(46px) scale(.94); }
.service::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 2.6rem; height: 5px; background: var(--orange); border-end-end-radius: 6px;
  transform: scaleX(0); transform-origin: 0 0;
  transition: transform .5s var(--ease-spring) calc(var(--i, 0) * 110ms + 380ms);
}
html[dir="rtl"] .service::before { transform-origin: 100% 0; }
.service.in::before { transform: scaleX(1); }
.service h3 { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin: .4rem 0 .45rem; }
html[dir="rtl"] .service h3 { text-transform: none; letter-spacing: 0; font-weight: 800; }
.service p { font-size: .92rem; color: var(--grey); }

/* ---------- process (scroll-driven timeline rail) ---------- */
.process-track { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.6rem; position: relative; padding-inline-start: 1.9rem; }
.process-rail {
  position: absolute; inset-inline-start: 5px; top: .5rem; bottom: .5rem;
  width: 3px; background: var(--line); border-radius: 2px;
}
.process-rail i {
  position: absolute; top: 0; left: 0; right: 0; height: 0;
  background: var(--orange); border-radius: 2px; display: block;
}
.process-step { position: relative; }
.process-step::before {
  content: ""; position: absolute; inset-inline-start: -1.9rem; top: .4rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--line);
  transition: all .35s var(--ease-spring);
}
.process-step.done::before {
  border-color: var(--orange); background: var(--orange);
  transform: scale(1.12); box-shadow: 0 0 0 6px rgba(242,128,33,.16);
}
/* ponytail: #9c8e7e is a literal, not --line: --line is a border token and
   darkening it would thicken every rule on the site. 1.34:1 -> 3.19:1 at 2.2rem. */
.process-step b.no {
  font-weight: 600; font-size: 2.2rem; color: #9c8e7e; line-height: 1; display: block;
  transition: color .35s ease, transform .45s var(--ease-spring);
}
.process-step.done b.no { color: var(--orange-ink); }
.process-step h3 { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1.1rem; margin: .4rem 0 .35rem; }
html[dir="rtl"] .process-step h3 { text-transform: none; letter-spacing: 0; font-weight: 800; }
.process-step p { font-size: .92rem; color: var(--grey); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--paper); border-radius: 18px; overflow: hidden; }
.why-item { padding: 1.5rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.why-item:last-child { border-bottom: 0; }
.why-item.io-reveal:not(.in) { transform: translateX(-34px); }
html[dir="rtl"] .why-item.io-reveal:not(.in) { transform: translateX(34px); }
/* orange sweep across the row as it lands */
.why-item::after {
  content: ""; position: absolute; inset: 0; background: var(--orange); opacity: .12;
  transform: translateX(-101%); pointer-events: none;
}
.why-item.in::after { animation: sweep .8s ease calc(var(--i, 0) * 110ms) forwards; }
html[dir="rtl"] .why-item::after { transform: translateX(101%); }
html[dir="rtl"] .why-item.in::after { animation-name: sweepRtl; }
@keyframes sweep    { 40% { transform: translateX(0); opacity: .12; } 100% { transform: translateX(101%); opacity: 0; } }
@keyframes sweepRtl { 40% { transform: translateX(0); opacity: .12; } 100% { transform: translateX(-101%); opacity: 0; } }
.why-item h3 { font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .35rem; }
html[dir="rtl"] .why-item h3 { text-transform: none; letter-spacing: 0; font-weight: 800; }
.why-item h3::before { content: "▮ "; color: var(--orange-ink); }
.why-item.in h3::before { animation: markerPop .45s var(--ease-spring) calc(var(--i, 0) * 110ms + 300ms) backwards; }
@keyframes markerPop { from { opacity: 0; } }
.why-item p { color: var(--grey); font-size: .95rem; }

/* ---------- contact ---------- */
.contact-card {
  background: var(--orange-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='2'%3E%3Cpath d='M8 8h10v14M18 8h14M8 8v14h10M32 8v14H18M8 60h10v14M18 60h14M8 60v14h10M32 60v14H18M56 34h10v14M66 34h14M56 34v14h10M80 34v14H66'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff; padding: clamp(2.2rem, 6vw, 5rem) clamp(1.4rem, 5vw, 5rem);
  border-radius: 22px; text-align: center;
}
.contact-card h2 {
  font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.9rem, 7vw, 3.6rem); line-height: 1.12;
}
html[dir="rtl"] .contact-card h2 { text-transform: none; letter-spacing: 0; font-weight: 800; }
.contact-card > p { max-width: 44em; margin: 1.1rem auto 1.8rem; color: rgba(255,255,255,.92); }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; margin-bottom: 2rem; }
.contact-actions .btn-solid { background: #fff; color: var(--orange-ink); box-shadow: none; }
.contact-actions .btn-solid:hover { background: var(--ink); color: #fff; }
.contact-actions .btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.contact-details { display: flex; flex-direction: column; gap: 1.1rem; font-size: .92rem; color: rgba(255,255,255,.92); }
.contact-details a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-details .item b { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; color: rgba(255,255,255,.8); margin-bottom: .1rem; }
html[dir="rtl"] .contact-details .item b { letter-spacing: 0; font-size: .8rem; }

/* ---------- footer ---------- */
.site-footer {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.4rem var(--pad) 5.5rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--grey);
}

/* ---------- floating WhatsApp ---------- */
.fab {
  position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: 60;
  display: flex; align-items: center; gap: .5rem;
  background: #25D366; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .85rem;
  padding: .9rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: transform .2s;
}
.fab span { display: none; }
.fab:active { transform: scale(.94); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,16,12,.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: 94vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 100%; max-height: 74vh; object-fit: contain; margin: 0 auto; border-radius: 8px; animation: lbIn .3s var(--ease-spring); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
.lightbox figcaption { color: #eee; padding-top: .8rem; font-size: .9rem; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: rgba(255,255,255,.08); border: none; color: #fff; cursor: pointer;
  font-size: 2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%; opacity: .9;
  display: grid; place-items: center;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--orange); }
.lb-close { top: .8rem; right: .9rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .io-reveal, .brand-logo-img { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-media img { animation: none; }
  .edge-track { animation: none; }
  .seq > *, .audience::before, .service::before { opacity: 1; transform: none; transition: none; }
  .why-item::after { display: none; }
  .process-step::before, .process-step b.no { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   LARGER SCREENS
   ============================================================ */
@media (min-width: 720px) {
  .brand-logo { height: 44px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important; position: static; flex-direction: row; gap: 1.7rem;
    background: none; border: 0; padding: 0; box-shadow: none; align-items: center;
  }
  .site-nav a { font-size: .95rem; }
  .nav-cta { padding: .55rem 1.2rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 2.2rem var(--pad); border-top: 0; border-inline-start: 1px solid var(--line); }
  .stat:first-child { border-inline-start: 0; }
  .audience-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  /* process rail runs horizontally across the top on wide screens */
  .process-track { grid-template-columns: repeat(4, 1fr); padding-inline-start: 0; padding-top: 2.3rem; }
  .process-rail { inset-inline: 0; top: 5px; bottom: auto; width: auto; height: 3px; }
  .process-rail i { top: 0; bottom: 0; height: auto; width: 0; left: 0; right: auto; }
  html[dir="rtl"] .process-rail i { left: auto; right: 0; }
  .process-step::before { inset-inline-start: 0; top: -2.3rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { border-inline-end: 1px solid var(--line); }
  .why-item:nth-child(2n) { border-inline-end: 0; }
  .why-item:nth-last-child(-n+2) { border-bottom: 0; }
  .contact-actions { flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; }
  .qf-grid { grid-template-columns: 1fr 1fr; }
  .qf-grid textarea { grid-column: span 2; }
  .qf-actions { flex-direction: row; justify-content: center; }
  .contact-details { flex-direction: row; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
  .site-footer { flex-direction: row; justify-content: space-between; padding-bottom: 1.4rem; }
  .fab span { display: inline; }
  .fab { padding: .75rem 1.1rem; }
  /* gallery becomes a grid */
  .gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px;
    overflow: visible; margin-inline: 0; padding-inline: 0; padding-top: 0; padding-bottom: 0;
  }
  .gallery-item { flex: none; max-width: none; height: auto; max-height: none; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery figcaption { opacity: 0; transition: opacity .3s; }
  .gallery figure:hover figcaption { opacity: 1; }
  .swipe-hint { display: none; }
}
@media (min-width: 720px) and (max-width: 999px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}

/* ============ FOCUS VISIBILITY ============
   The design system shipped with no focus style for links or buttons — only form
   fields had one — so keyboard users got Chrome's 1px default, invisible on the
   dark hero and on orange. :focus-visible keeps mouse clicks clean.
   NOTE when testing: Chrome does not grant :focus-visible to a programmatic
   .focus(); only real keyboard interaction. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1a6ed8;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ TOUCH TARGETS ============
   WCAG 2.2 AA (SC 2.5.8) wants 24x24; 44x44 is SC 2.5.5, which is AAA.
   Of the controls measured at 390x844, only .contact-details a genuinely failed AA
   (~100x22). The rest already passed and are raised deliberately, because they sit on
   the enquiry path and a comfortable target is worth the pixels.
   ponytail: a min-size is safe on a container, and unsafe on an element whose own
   border or background IS the graphic — .scroll-cue is a drawn mouse outline at
   26x42, so a 44px floor deformed it. Check that before adding to this list. */
.nav-toggle { min-width: 44px; min-height: 44px; }
.lang-toggle { min-width: 50px; min-height: 44px; }
.brand { min-height: 44px; }
.contact-details a { min-height: 44px; display: inline-flex; align-items: center; }

/* ============ CATEGORY FILTER ============ */
.portfolio-filter {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  padding: 0 var(--pad); margin-bottom: 2rem;
}
.portfolio-filter button {
  font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--grey);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.1rem; min-height: 44px;
  transition: background .2s, color .2s, border-color .2s;
}
.portfolio-filter button:hover { border-color: var(--orange); color: var(--orange-ink); }
.portfolio-filter button.activeFilter {
  background: var(--orange); border-color: var(--orange); color: var(--ink);
}
.filter-empty { text-align: center; color: var(--grey); padding: 2rem var(--pad); }
