/* ============================================
   Tybo — Homepage (glow, condensed display type)
   Loaded by index.php only, after the shared
   stylesheets, so the other pages are untouched.
   ============================================ */

/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --dx-red:      #E11D24;
  --dx-red-text: #FF4A4F;
  --dx-wine:     #6B0F2A;
  --dx-bg:       #08080A;
  --dx-card:     #141418;
  --dx-ink:      #FFFFFF;
  --dx-muted:    rgba(255,255,255,0.7);
  --dx-line:     rgba(255,255,255,0.16);
  --dx-glass:    rgba(26,26,32,0.62);
  --dx-pad:      clamp(20px, 3vw, 48px);
  --dx-display:  'Oswald', 'Montserrat', sans-serif;
  --dx-zigzag:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath d='M-20 11L0 3l20 8 20-8 20 8' fill='none' stroke='%23E11D24' stroke-width='5'/%3E%3C/svg%3E");
}
[data-theme="light"] {
  --dx-red-text: #C4121A;
  --dx-wine:     #F3B6B8;
  --dx-bg:       #F7F6F2;
  --dx-card:     #FFFFFF;
  --dx-ink:      #0B0B0C;
  --dx-muted:    rgba(11,11,12,0.7);
  --dx-line:     rgba(11,11,12,0.14);
  --dx-glass:    rgba(255,255,255,0.72);
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */
/* The shared html { scroll-behavior: smooth } breaks ScrollTrigger's measuring:
   its jump to the top turns into a glide, so positions come out wrong. Lenis does
   the smoothing on this page, and there are no in-page anchors to glide to. */
html { scroll-behavior: auto; }
body { background: var(--dx-bg); color: var(--dx-ink); font-size: 17px; line-height: 1.6; }
.dx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Display type: condensed capitals in English, heavy Plex in Arabic (no capitals,
   no tracking: both would break Arabic letterforms). */
.dx-h1, .dx-head h2, .dx-quote, .dx-side, .dx-cta-title, .dx-stat-num, .dx-figure-num, .dx-marquee-track, .dx-card h3 {
  font-family: var(--dx-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: inherit;
}
[dir="rtl"] :is(.dx-h1, .dx-head h2, .dx-quote, .dx-side, .dx-cta-title, .dx-marquee-track, .dx-card h3) {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* The logo's zigzag as a small mark, used where Arigo-style layouts put an asterisk */
.dx-mark { display: inline-block; flex: none; width: 0.9em; height: 0.32em; background: var(--dx-zigzag) repeat-x center / auto 100%; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.dx-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 6px 6px 6px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: var(--dx-red);
  border-radius: 999px;
  transition: background var(--transition-fast);
}
[dir="rtl"] .dx-pill { padding: 6px 26px 6px 6px; letter-spacing: 0; text-transform: none; }
.dx-pill b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: #0B0B0C;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}
[dir="rtl"] .dx-pill b { transform: scaleX(-1); }
.dx-pill:hover { background: #C4121A; }
.dx-pill:hover b { transform: rotate(-45deg); }
[dir="rtl"] .dx-pill:hover b { transform: scaleX(-1) rotate(-45deg); }
.dx-pill-ghost { color: var(--dx-ink); background: none; border: 1px solid var(--dx-line); }
.dx-pill-ghost:hover { background: var(--dx-card); }
.dx-pill-ghost b { color: #fff; background: var(--dx-red); }
.dx-pill:focus-visible, .dx-svc:focus-visible, .dx-card:focus-visible, .dx-rule a:focus-visible {
  outline: 2px solid var(--dx-red-text);
  outline-offset: 4px;
}

/* ─── SHARED CHROME (homepage only) ──────────────────────────────────────── */
.nav { height: 72px; padding-inline: var(--dx-pad); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--dx-line); }
.nav.scrolled { background: color-mix(in srgb, var(--dx-bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-links a { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dx-muted); }
[dir="rtl"] .nav-links a { letter-spacing: 0; text-transform: none; font-size: 15px; }
.nav-links a:hover { color: var(--dx-ink); }
.btn-cta { padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--dx-red); }
[dir="rtl"] .btn-cta { letter-spacing: 0; text-transform: none; font-size: 14px; }
.lang-btn { border-radius: 999px; font-size: 13px; border-color: var(--dx-line); color: var(--dx-muted); }
.theme-toggle { border-color: var(--dx-line); color: var(--dx-muted); }
.chat-trigger { border-radius: 999px; background: var(--dx-red); box-shadow: 0 8px 28px rgba(225,29,36,0.35); }
.footer, .footer-bar { padding-inline: var(--dx-pad); background: var(--dx-bg); border-color: var(--dx-line); }
.footer-col p, .footer-col a { font-size: 15px; color: var(--dx-muted); }
.footer-label { font-size: 13px; letter-spacing: 0.08em; font-weight: 600; color: var(--dx-ink); }
.footer-bar p, .footer-links a { font-size: 13px; color: var(--dx-muted); }

/* ─── GLOW ───────────────────────────────────────────────────────────────── */
.dx-glow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dx-glow i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.75; animation: dx-drift 18s ease-in-out infinite alternate; }
.dx-glow i:nth-child(1) { width: 60vw; height: 60vw; top: -28vw; left: -10vw; background: var(--dx-red); opacity: 0.45; }
.dx-glow i:nth-child(2) { width: 50vw; height: 50vw; top: -8vw; left: 30vw; background: var(--dx-wine); animation-duration: 22s; animation-delay: -6s; }
.dx-glow i:nth-child(3) { width: 34vw; height: 34vw; bottom: -18vw; right: -6vw; background: var(--dx-red); opacity: 0.28; animation-duration: 26s; }
@keyframes dx-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, 4vw) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .dx-glow i { animation: none; } }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.dx-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow ."
    "title   figure"
    "rule    rule"
    "foot    foot";
  align-content: end;
  column-gap: 32px;
  min-height: 100svh;
  padding: 120px var(--dx-pad) 32px;
  overflow: hidden;
}
.dx-hero > :not(.dx-glow) { position: relative; z-index: 2; }
.dx-eyebrow { grid-area: eyebrow; display: flex; align-items: center; gap: 16px; max-width: 30em; margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dx-muted); }
[dir="rtl"] .dx-eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.dx-eyebrow::after { content: ''; flex: none; width: 72px; height: 1px; background: currentColor; }

.dx-h1 { grid-area: title; margin: 0 0 24px; font-size: clamp(64px, 12.4vw, 210px); line-height: 0.9; }
[dir="rtl"] .dx-h1 { font-size: clamp(64px, 10.5vw, 176px); line-height: 1.12; }
.dx-line { display: flex; align-items: center; gap: 0.12em; overflow: hidden; padding-bottom: 0.04em; }
.dx-line > span { display: block; }
.dx-h1 .dx-mark { width: 0.6em; height: 0.2em; }

/* Fanned collage, behind the title */
.dx-collage.dx-collage { position: absolute; z-index: 1; top: 14%; inset-inline-start: 34%; width: 44%; height: 52%; pointer-events: none; }
.dx-shot { position: absolute; width: 46%; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.dx-shot img { width: 100%; height: 100%; object-fit: cover; }
.dx-shot-1 { left: 0; top: 6%; transform: rotate(-8deg); }
.dx-shot-2 { left: 27%; top: 0; z-index: 2; transform: rotate(2deg); }
.dx-shot-3 { left: 54%; top: 10%; transform: rotate(9deg); }
.dx-shot-3 img { object-position: 66% center; }

/* Floating glass figure */
.dx-figure {
  grid-area: figure;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 230px;
  padding: 30px 24px;
  text-align: center;
  background: var(--dx-glass);
  border: 1px solid var(--dx-line);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dx-figure-num { font-size: 84px; line-height: 1; }
.dx-figure-label { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.35; color: var(--dx-muted); }
[dir="rtl"] .dx-figure-label { letter-spacing: 0; text-transform: none; font-size: 15px; }

/* Numbered rule: 001 ——— • label */
.dx-rule { grid-area: rule; display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
[dir="rtl"] .dx-rule { letter-spacing: 0; text-transform: none; font-size: 15px; }
.dx-rule i { flex: 1; height: 1px; background: var(--dx-line); transform-origin: left center; }
[dir="rtl"] .dx-rule i { transform-origin: right center; }
.dx-rule-num { font-family: var(--dx-display); font-size: 18px; color: var(--dx-muted); }
.dx-rule-label { display: inline-flex; align-items: center; gap: 10px; }
.dx-rule-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dx-red); }
.dx-rule a:hover { color: var(--dx-red-text); }

.dx-hero-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.dx-sub { flex: 0 1 34em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--dx-muted); }

/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.dx-sec { position: relative; padding: clamp(80px, 10vw, 152px) var(--dx-pad); }
.dx-sec-tight { padding-top: 0; }
.dx-head { margin-bottom: clamp(32px, 4vw, 56px); }
.dx-head h2 { font-size: clamp(52px, 8vw, 132px); line-height: 0.95; }
[dir="rtl"] .dx-head h2 { line-height: 1.2; }

/* Statement */
.dx-statement-stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dx-quote { position: relative; z-index: 1; max-width: 14em; margin: clamp(24px, 4vw, 64px) auto clamp(48px, 6vw, 96px); font-size: clamp(44px, 6.4vw, 112px); line-height: 1; }
[dir="rtl"] .dx-quote { line-height: 1.3; }
.dx-word { display: inline-block; }
.dx-float { position: absolute; z-index: 0; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.dx-float img { width: 100%; height: 100%; object-fit: cover; }
.dx-float-1 { top: 2%; inset-inline-start: 0; width: clamp(120px, 14vw, 220px); aspect-ratio: 4 / 3; transform: rotate(-6deg); }
.dx-float-2 { top: 20%; inset-inline-end: 0; width: clamp(110px, 12vw, 190px); aspect-ratio: 1; transform: rotate(7deg); }
.dx-float-2 img { object-position: 66% center; }
.dx-float-3 { top: 52%; inset-inline-start: 4%; width: clamp(100px, 11vw, 170px); aspect-ratio: 1; transform: rotate(5deg); }

.dx-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 980px); border-block: 1px solid var(--dx-line); }
.dx-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; }
.dx-stat + .dx-stat { border-inline-start: 1px solid var(--dx-line); }
.dx-stat-label { font-size: 14px; color: var(--dx-muted); }
.dx-stat-num { font-size: clamp(56px, 6vw, 96px); line-height: 1; }
.dx-statement-foot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 760px; margin-top: clamp(40px, 5vw, 72px); }
.dx-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--dx-muted); }

/* Work: cards stack in the middle, giant words hold their place either side */
/* All three share one grid cell: the giant words sit behind, the cards ride over them */
.dx-work-grid { display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
.dx-work-grid > * { grid-area: 1 / 1; }
.dx-side { position: sticky; z-index: 0; top: 38vh; align-self: start; font-size: clamp(64px, 13vw, 220px); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--dx-line); }
.dx-side-start { justify-self: start; }
.dx-side-end { justify-self: end; padding-top: 1.05em; }
.dx-work-cards { position: relative; z-index: 1; justify-self: center; width: min(100%, 880px); }
[dir="rtl"] .dx-side { color: var(--dx-line); -webkit-text-stroke: 0; }
.dx-work-cards { display: flex; flex-direction: column; gap: 32px; }
.dx-card {
  position: sticky;
  top: calc(104px + var(--i, 0) * 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--dx-card);
  border: 1px solid var(--dx-line);
  border-radius: 24px;
  transform-origin: top center;
  transition: border-color var(--transition-fast);
}
.dx-card:nth-of-type(2) { --i: 1; }
.dx-card:hover { border-color: var(--dx-red); }
.dx-card-img { min-height: 360px; overflow: hidden; }
.dx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.dx-card:hover .dx-card-img img { transform: scale(1.05); }
.dx-card-body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.dx-card h3 { padding-inline-end: 56px; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
[dir="rtl"] .dx-card h3 { line-height: 1.35; }
.dx-card-tag { font-size: 15px; line-height: 1.6; color: var(--dx-muted); }
.dx-card-facts { margin-top: auto; }
.dx-card-facts > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; font-size: 14px; border-top: 1px solid var(--dx-line); }
.dx-card-facts dt { color: var(--dx-muted); }
.dx-card-facts dd { margin: 0; font-weight: 600; text-align: end; }
.dx-card-facts .is-result { color: var(--dx-red-text); }
.dx-card-num { position: absolute; top: 28px; inset-inline-end: 32px; font-family: var(--dx-display); font-size: 28px; color: var(--dx-muted); }

/* Quote over a full-width photo */
.dx-photo-quote { position: relative; display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 80px var(--dx-pad); overflow: hidden; }
.dx-photo { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; filter: brightness(0.5); }
.dx-photo-card { position: relative; max-width: 620px; margin: 0; padding: 32px; color: #fff; background: rgba(12,12,16,0.62); border: 1px solid rgba(255,255,255,0.18); border-radius: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.dx-photo-card blockquote { margin-bottom: 20px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.45; }
.dx-photo-card figcaption { font-size: 14px; color: rgba(255,255,255,0.75); }
.dx-photo-card strong { color: #fff; }

/* Services: scroll stack. Pure CSS sticky, GSAP adds the scale-back */
.dx-stack { display: flex; flex-direction: column; gap: 20px; }
.dx-svc {
  position: sticky;
  top: calc(96px + var(--i, 0) * 16px);
  display: grid;
  grid-template-columns: 72px minmax(0, 1.3fr) minmax(0, 1fr) 56px;
  align-items: center;
  gap: 24px;
  min-height: clamp(200px, 27vh, 280px);
  padding: 40px;
  overflow: hidden;
  background: var(--dx-card);
  border: 1px solid var(--dx-line);
  border-radius: 24px;
  transform-origin: top center;
  transition: border-color var(--transition-fast);
}
.dx-svc:nth-child(2) { --i: 1; }
.dx-svc:nth-child(3) { --i: 2; }
.dx-svc:nth-child(4) { --i: 3; }
.dx-svc > * { position: relative; z-index: 1; }
.dx-svc::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(225,29,36,0.26), transparent 70%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.dx-svc:hover { border-color: var(--dx-red); }
.dx-svc:hover::before { opacity: 1; }
.dx-svc-num { font-family: var(--dx-display); font-size: 24px; color: var(--dx-red-text); }
.dx-svc h3 { margin: 0; font-family: var(--dx-display); font-size: clamp(34px, 4.4vw, 72px); font-weight: 600; text-transform: uppercase; line-height: 1; color: inherit; }
[dir="rtl"] .dx-svc h3 { font-family: var(--font-heading-ar); font-weight: 700; text-transform: none; line-height: 1.3; }
.dx-svc p { font-size: 17px; line-height: 1.55; color: var(--dx-muted); }
.dx-svc-arrow { display: grid; place-items: center; width: 56px; height: 56px; font-size: 20px; color: var(--dx-ink); border: 1px solid var(--dx-line); border-radius: 50%; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
[dir="rtl"] .dx-svc-arrow { transform: scaleX(-1); }
.dx-svc:hover .dx-svc-arrow { color: #fff; background: var(--dx-red); border-color: var(--dx-red); transform: rotate(-45deg); }
[dir="rtl"] .dx-svc:hover .dx-svc-arrow { transform: scaleX(-1) rotate(-45deg); }

/* CTA */
.dx-cta { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: clamp(96px, 12vw, 180px) var(--dx-pad); overflow: hidden; text-align: center; }
.dx-cta > :not(.dx-glow) { position: relative; z-index: 1; }
.dx-glow-cta i:nth-child(1) { top: 10%; left: 10vw; width: 44vw; height: 44vw; }
.dx-glow-cta i:nth-child(2) { top: 20%; left: 46vw; width: 40vw; height: 40vw; }
.dx-cta-title { font-size: clamp(56px, 9vw, 160px); line-height: 0.95; }
[dir="rtl"] .dx-cta-title { line-height: 1.25; }
.dx-cta-sub { max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--dx-muted); }

/* Marquee band */
.dx-marquee { overflow: hidden; padding-block: 22px; background: var(--dx-red); color: #fff; }
.dx-marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; font-size: clamp(28px, 3vw, 44px); line-height: 1.3; animation: dx-marquee 38s linear infinite; }
.dx-marquee-track > span { white-space: nowrap; }
.dx-marquee .dx-mark { width: 52px; height: 18px; filter: brightness(0) invert(1); }
@keyframes dx-marquee { to { transform: translateX(-50%); } }
@keyframes dx-marquee-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .dx-marquee-track { animation-name: dx-marquee-rtl; }
.dx-marquee:hover .dx-marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .dx-marquee-track { animation: none; } }

/* Testimonials: moving wall. Without JS it is a row you scroll by hand. */
.dx-reviews { padding-bottom: 32px; }
.dx-reviews .dx-rule { margin-bottom: 0; }
.dx-voices { padding: 8px 0 clamp(80px, 10vw, 152px); overflow-x: auto; }
.dx-voices.is-moving { overflow: hidden; }
.dx-voices-track { display: flex; align-items: stretch; gap: 20px; width: max-content; padding-inline: var(--dx-pad); }
.dx-voices.is-moving .dx-voices-track { padding-inline: 0; }
.dx-voice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  width: min(84vw, 600px);
  margin: 0;
  padding: 40px;
  overflow: hidden;
  background: var(--dx-card);
  border: 1px solid var(--dx-line);
  border-radius: 24px;
  transition: border-color var(--transition-fast);
}
.dx-voice > * { position: relative; z-index: 1; }
.dx-voice::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(225,29,36,0.22), transparent 70%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.dx-voice:hover { border-color: var(--dx-red); }
.dx-voice:hover::before { opacity: 1; }
.dx-voice blockquote { font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; line-height: 1.42; }
.dx-voice figcaption { font-size: 15px; color: var(--dx-muted); }
.dx-voice strong { color: var(--dx-ink); font-weight: 600; }

/* Blog cards come from the CMS loop, so they keep their shared class names */
.dx-blog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border: 0; background: none; }
.dx-blog .blog-card { position: relative; display: block; padding: 32px; background: var(--dx-card); border: 1px solid var(--dx-line); border-radius: 24px; transition: border-color var(--transition-fast); }
.dx-blog .blog-card:hover { background: var(--dx-card); border-color: var(--dx-red); transform: none; }
.dx-blog .blog-cat { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dx-red-text); }
.dx-blog h3 { margin-bottom: 10px; font-family: var(--dx-display); font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; text-transform: uppercase; line-height: 1.1; color: var(--dx-ink); }
[dir="rtl"] .dx-blog h3 { font-family: var(--font-heading-ar); font-weight: 700; text-transform: none; line-height: 1.4; }
.dx-blog p { font-size: 15px; line-height: 1.6; color: var(--dx-muted); }
.dx-blog .blog-arrow { display: inline-block; margin-top: 16px; font-size: 22px; color: var(--dx-ink); }

/* Cookie banner (built by analytics.js). The hero's main button sits in the bottom
   start corner, so on desktop the banner moves to the end corner, above the chat button. */
.consent-banner { background: var(--dx-glass); border: 1px solid var(--dx-line); border-radius: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.consent-btn { border-radius: 999px; }
@media (min-width: 769px) {
  .consent-banner { inset-inline-start: auto; inset-inline-end: 28px; bottom: 100px; max-width: 380px; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dx-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "title" "figure" "rule" "foot"; }
  .dx-figure { flex-direction: row; justify-self: start; width: auto; margin-bottom: 28px; padding: 16px 22px; gap: 14px; }
  .dx-figure-num { font-size: 52px; }
  .dx-collage.dx-collage { top: 12%; inset-inline-start: 30%; width: 66%; height: 40%; }
  .dx-work-grid { grid-template-columns: minmax(0, 1fr); }
  .dx-side { display: none; }
  .dx-work-cards .dx-sr { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-bottom: 8px; font-family: var(--dx-display); font-size: clamp(52px, 8vw, 132px); font-weight: 600; text-transform: uppercase; line-height: 0.95; }
  [dir="rtl"] .dx-work-cards .dx-sr { font-family: var(--font-heading-ar); font-weight: 700; text-transform: none; line-height: 1.2; }
}
@media (max-width: 768px) {
  .nav { height: 64px; }
  .dx-hero { padding-top: 96px; }
  .dx-collage.dx-collage { top: 15%; inset-inline-start: 18%; width: 90%; height: 30%; }
  .dx-hero-foot { flex-direction: column; align-items: stretch; }
  .dx-pill { justify-content: space-between; }
  .dx-stats { grid-template-columns: minmax(0, 1fr); }
  .dx-stat + .dx-stat { border-inline-start: 0; border-top: 1px solid var(--dx-line); }
  .dx-float { display: none; }
  .dx-card { grid-template-columns: minmax(0, 1fr); top: calc(76px + var(--i, 0) * 16px); }
  .dx-card-img { min-height: 220px; }
  .dx-card-body { padding: 22px; }
  .dx-svc { top: calc(76px + var(--i, 0) * 10px); grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 0; padding: 24px; }
  .dx-svc h3 { font-size: 36px; }
  .dx-svc p { font-size: 16px; }
  .dx-svc-arrow { width: 44px; height: 44px; margin-top: 6px; }
  .dx-blog { grid-template-columns: minmax(0, 1fr); }
  .dx-photo-quote { min-height: 0; }
}

/* Final sizing: the hero title fits above the fold on short screens too */
.dx-h1 { font-size: clamp(60px, min(10.6vw, 19vh), 184px); margin-bottom: 18px; }
[dir="rtl"] .dx-h1 { font-size: clamp(60px, min(9vw, 16vh), 156px); }
.dx-mark { width: 1.6em; height: 0.34em; }
.dx-h1 .dx-mark { width: 1.1em; height: 0.2em; }
.dx-marquee .dx-mark { width: 104px; height: 20px; }
.dx-work { padding-top: 0; }
/* The title overlaps the collage on narrow screens; keep it readable over light photos */
.dx-h1 { text-shadow: 0 4px 32px rgba(0,0,0,0.45); }
[data-theme="light"] .dx-h1 { text-shadow: 0 4px 32px rgba(247,246,242,0.6); }

/* Touch screens: nav and footer controls at least 44px to tap */
@media (pointer: coarse) {
  .theme-toggle, .nav-mobile-cluster .theme-toggle { width: 44px; height: 44px; }
  .lang-btn, .nav-mobile-cluster .lang-btn { min-height: 44px; padding-inline: 14px; font-size: 13px; }
  .lang-btn-target { font-size: 13px; }
  .nav .logo { padding-block: 9px; }
  .footer .footer-col a, .footer-bar .footer-links a { display: inline-block; min-width: 44px; padding-block: 11px; }
  .footer-bar .footer-links { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
  .dx-rule a, .nav-links a { display: inline-block; padding-block: 11px; }
}

/* Short landscape screens (a phone held sideways): smaller hero so its button
   fits on the first screen, and a one-row cookie banner */
@media (max-height: 520px) and (orientation: landscape) {
  .dx-hero { min-height: 0; padding-top: 88px; padding-bottom: 20px; }
  .dx-eyebrow, .dx-figure { display: none; }
  .dx-h1, [dir="rtl"] .dx-h1 { font-size: clamp(40px, 16vh, 64px); margin-bottom: 12px; }
  .dx-rule { margin-bottom: 14px; }
  .dx-pill { min-height: 48px; }
  .dx-pill b { width: 38px; height: 38px; }
  .consent-banner { flex-direction: row; align-items: center; inset-inline: 12px; bottom: 12px; max-width: none; padding: 10px 14px; gap: 14px; }
  .consent-text { font-size: 12px; line-height: 1.45; }
  .consent-actions { flex: none; }
  .consent-btn { padding: 10px 16px; }
}
