/* ==========================================================================
   HELLO_ — DIGITAL & SOCIAL ARM OF MILK NETWORK
   Swiss-white editorial system · bilingual (LTR / RTL) · mobile-first
   --------------------------------------------------------------------------
   00 Tokens            05 Numbers & facts     10 Credentials
   01 Reset & base      06 Marquee             11 Why us
   02 Buttons           07 About               12 Contact & form
   03 Header & drawer   08 Services            13 Footer
   04 Hero              09 Approach & work     14 Lightbox
   15 Motion            16 Responsive
   ========================================================================== */

/* ============================ 00 · TOKENS ============================ */
:root {
  --bg-page: #ffffff;
  --bg-gray: #f5f5f7;
  --bg-gray-2: #ededf0;
  --bg-ink: #0a0a0b;
  --bg-ink-soft: #151517;
  --bg-blush: #f3d7d7;
  --bg-blush-deep: #ecc4c4;

  --border-subtle: rgba(10, 10, 11, 0.09);
  --border-strong: rgba(10, 10, 11, 0.16);
  --border-on-dark: rgba(255, 255, 255, 0.14);

  --text-main: #0a0a0b;
  --text-sub: #56565f;
  --text-muted: #8b8b95;
  --text-on-dark: #ffffff;
  --text-sub-dark: #a8a8b3;

  --accent: #ffe600;
  --accent-ink: #0a0a0b;
  --accent-blue: #2563eb;
  --accent-green: #12b981;

  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --font-body: var(--font-en);
  --font-display: var(--font-en);

  --container-max: 1280px;
  --gutter: clamp(1.15rem, 5vw, 3rem);

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-sm: 0 2px 8px rgba(10, 10, 11, 0.05);
  --shadow-md: 0 12px 30px -12px rgba(10, 10, 11, 0.16);
  --shadow-lg: 0 28px 60px -20px rgba(10, 10, 11, 0.24);
  --shadow-xl: 0 44px 90px -28px rgba(10, 10, 11, 0.34);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.22s var(--ease);
  --t-mid: 0.4s var(--ease);
  --t-slow: 0.75s var(--ease);

  --header-h: 76px;
  --section-y: clamp(4.5rem, 9vw, 8rem);
}

html[dir="rtl"] {
  --font-body: var(--font-ar);
  --font-display: var(--font-ar);
}

/* ========================= 01 · RESET & BASE ========================= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* `clip` (not `hidden`) so position:sticky keeps working while
   still guaranteeing no horizontal scrollbar on any viewport. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 { letter-spacing: 0; line-height: 1.3; }

p { overflow-wrap: break-word; text-wrap: pretty; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast); }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; padding-block: var(--section-y); }

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 3000;
  background: var(--bg-ink);
  color: var(--text-on-dark);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-xs);
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: var(--bg-ink);
  z-index: 200;
  transition: width 0.1s linear;
}

/* Shared section header */
.section-header { max-width: 780px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 1rem;
}
html[dir="rtl"] .section-tag { letter-spacing: 0; }
.section-title { font-size: clamp(1.85rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.section-subtitle { font-size: clamp(1rem, 1.4vw, 1.13rem); color: var(--text-sub); max-width: 62ch; }
.section-header--light .section-tag,
.section-header--light .section-title { color: var(--text-on-dark); }
.section-header--light .section-subtitle { color: var(--text-sub-dark); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-main);
  flex-shrink: 0;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulseRing 2.4s ease-out infinite;
}
.pulse-dot--green { background: var(--accent-green); }
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* =========================== 02 · BUTTONS =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  will-change: transform;
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--bg-ink); color: var(--text-on-dark); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--text-main); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-ink); color: var(--text-on-dark); border-color: var(--bg-ink); transform: translateY(-2px); }

.btn-icon { width: 17px; height: 17px; flex-shrink: 0; transition: transform var(--t-fast); }
.btn:hover .btn-icon { transform: translateX(3px); }
html[dir="rtl"] .btn-icon { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn-icon { transform: scaleX(-1) translateX(3px); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-ink); color: var(--text-on-dark); transform: translateY(-2px); }
.icon-btn i { width: 19px; height: 19px; }

/* ====================== 03 · HEADER & DRAWER ====================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 150;
  padding-block: 1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: padding var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}
.site-header.scrolled {
  padding-block: 0.6rem;
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 8px 30px -18px rgba(10, 10, 11, 0.3);
}

.header-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand-logo { display: flex; flex-direction: column; flex-shrink: 0; }
/* The wordmark is a Latin logotype: keep it LTR so the trailing
   underscore stays on the right when the page flips to RTL. */
.logo-main,
.footer-watermark {
  direction: ltr;
  unicode-bidi: isolate;
}
.logo-main {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}
.logo-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}
html[dir="rtl"] .logo-tag { letter-spacing: 0.06em; }
.underscore-blink { animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 0%, 72% { opacity: 1; } 73%, 100% { opacity: 0; } }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-sub);
  padding-block: 0.25rem;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 0;
  background: var(--bg-ink);
  transition: width var(--t-fast);
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--text-main); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-cta-link {
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  background: var(--bg-ink);
  color: var(--text-on-dark);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta-link:hover { background: var(--accent); color: var(--accent-ink); }

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.lang-switch-btn i { width: 15px; height: 15px; }
.lang-switch-btn:hover { background: var(--bg-ink); color: var(--text-on-dark); border-color: var(--bg-ink); }

.mobile-menu-btn { display: none; padding: 0.4rem; color: var(--text-main); }
.mobile-menu-btn i { width: 24px; height: 24px; }

.drawer-scrim {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.drawer-scrim.active { opacity: 1; }

.mobile-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  z-index: 1000;
  width: min(86vw, 360px);
  height: 100dvh;
  background: var(--bg-page);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform var(--t-mid);
  overflow-y: auto;
  overscroll-behavior: contain;
}
html[dir="rtl"] .mobile-drawer { transform: translateX(-105%); }
.mobile-drawer.active { transform: translateX(0); }

.drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.25rem; }
.drawer-links { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer-link {
  font-size: 1.15rem;
  font-weight: 700;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-link:hover { color: var(--text-sub); }
.drawer-footer { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.drawer-footer .drawer-link { border-bottom: none; padding-block: 1rem; }
.drawer-email { font-weight: 700; color: var(--text-sub); font-size: 0.9rem; word-break: break-all; }

/* ============================= 04 · HERO ============================= */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-aurora {
  position: absolute;
  z-index: -2;
  top: -28%;
  inset-inline-end: -18%;
  width: min(920px, 115vw);
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(255, 230, 0, 0.30), transparent 72%),
    radial-gradient(closest-side, rgba(37, 99, 235, 0.16), transparent 70%);
  background-position: 30% 30%, 70% 70%;
  background-repeat: no-repeat;
  background-size: 68% 68%, 62% 62%;
  filter: blur(28px);
  animation: auroraDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-5%, 6%, 0) scale(1.12); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 110px) clamp(60px, 8vw, 110px);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.85;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.9rem);
}

.hero-title-giant {
  font-size: clamp(2.5rem, 6.6vw, 4.9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
  /* Reserve three lines so the typewriter never shifts the layout as
     words of different lengths wrap onto a second line. */
  min-height: 2.95em;
}
html[dir="rtl"] .hero-title-giant {
  font-size: clamp(2rem, 5.4vw, 3.9rem);
  line-height: 1.28;
  letter-spacing: 0;
  min-height: 3.9em;
}
.hero-line-1 { display: block; }

/* Inline (not inline-flex) so the highlight follows each wrapped line
   and the caret always sits directly after the last typed character. */
.typewriter-container {
  display: inline;
  background-image: linear-gradient(180deg, transparent 62%, var(--accent) 62%, var(--accent) 94%, transparent 94%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.05em;
}
.typewriter-text { color: var(--text-main); }
.typewriter-cursor {
  display: inline-block;
  width: 0.055em;
  height: 0.78em;
  vertical-align: -0.04em;
  background: var(--text-main);
  margin-inline-start: 0.06em;
  animation: blink 1s steps(1) infinite;
}

.hero-subheadline {
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
  color: var(--text-sub);
  max-width: 54ch;
  line-height: 1.6;
  margin-bottom: clamp(1.75rem, 3vw, 2.4rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-sub);
}
.hero-chip i { width: 14px; height: 14px; flex-shrink: 0; }

/* Hero stacked visual */
.hero-stack {
  position: relative;
  aspect-ratio: 4 / 4.35;
  width: 100%;
  perspective: 1400px;
}
.hero-card {
  position: absolute;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-card--main {
  inset-inline-start: 8%;
  top: 4%;
  width: 66%;
  height: 82%;
  z-index: 3;
  box-shadow: var(--shadow-xl);
  animation: floatY 7s ease-in-out infinite;
}
.hero-card--back {
  inset-inline-end: 0;
  top: 0;
  width: 52%;
  height: 34%;
  z-index: 2;
  animation: floatY 9s ease-in-out infinite reverse;
}
.hero-card--front {
  inset-inline-end: 2%;
  bottom: 4%;
  width: 46%;
  height: 38%;
  z-index: 4;
  animation: floatY 8s ease-in-out 0.8s infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

/* Anchored to the top of the card: the lower-right corner is overlapped by
   the front card, which would otherwise clip the caption. */
.hero-card-overlay {
  position: absolute;
  inset-inline: 0;
  top: 0;
  padding: 1.05rem 1.1rem 2.4rem;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.9) 14%, rgba(10, 10, 11, 0) 100%);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-card-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
html[dir="rtl"] .hero-card-tag { letter-spacing: 0; }
.hero-card-overlay strong { font-size: 0.92rem; line-height: 1.3; }
.hero-card-meta { font-size: 0.72rem; color: var(--text-sub-dark); }

.hero-clock-chip {
  position: absolute;
  inset-inline-start: 0;
  bottom: 6%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 0.7rem 1.05rem;
  box-shadow: var(--shadow-lg);
}
.clock-label { display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
html[dir="rtl"] .clock-label { letter-spacing: 0; }
.clock-time { font-family: var(--font-en); font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  margin-inline: var(--gutter);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.scroll-cue:hover { color: var(--text-main); }
.scroll-icon { width: 15px; height: 15px; animation: bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ======================== 05 · CLIENTS & STATS ======================== */
.clients-strip { padding-block: clamp(2rem, 4vw, 3rem); border-block: 1px solid var(--border-subtle); }
.clients-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
html[dir="rtl"] .clients-label { letter-spacing: 0; }

.client-marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.client-track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4rem); width: max-content; animation: trackScroll 42s linear infinite; }
.client-name {
  font-family: var(--font-en);
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--t-fast);
}
html[dir="rtl"] .client-name { font-family: var(--font-ar); letter-spacing: 0; }
.client-marquee:hover .client-track { animation-play-state: paused; }
.client-name:hover { color: var(--text-main); }

.numbers-facts-section { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.numbers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.numbers-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.numbers-header-box {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  border-radius: var(--r-md);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.numbers-header-box::after {
  content: '';
  position: absolute;
  inset-inline-end: -30%;
  bottom: -55%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 230, 0, 0.22), transparent 72%);
}
.numbers-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-sub-dark);
}
html[dir="rtl"] .numbers-eyebrow { letter-spacing: 0; }
.numbers-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.numbers-headline { font-size: clamp(1.6rem, 3.2vw, 2.5rem); color: var(--text-on-dark); position: relative; }

.number-stat-box {
  background: var(--bg-gray);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: clamp(1.35rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 168px;
  transition: background var(--t-mid), color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.number-stat-box:hover { background: var(--bg-ink); color: var(--text-on-dark); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-num-text { font-family: var(--font-en); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.number-stat-footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
  transition: border-color var(--t-mid);
}
.number-stat-box:hover .number-stat-footer { border-top-color: var(--border-on-dark); }
.stat-sub-label { font-size: 0.95rem; font-weight: 700; line-height: 1.3; min-width: 0; }
.plus-badge {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-ink); color: var(--text-on-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem; flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.number-stat-box:hover .plus-badge { background: var(--accent); color: var(--accent-ink); }

.about-pill-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.about-pill-left { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; font-size: 1rem; font-weight: 700; }
.copyright-tag { color: var(--text-muted); font-weight: 500; }

/* =========================== 06 · MARQUEE =========================== */
.marquee-ticker-section {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  padding-block: 0.85rem;
  overflow: hidden;
  width: 100%;
}
.marquee-track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: trackScroll 34s linear infinite; }
/* The track is rendered as two identical halves, so -50% is a seamless loop. */
@keyframes trackScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
html[dir="rtl"] .marquee-track,
html[dir="rtl"] .client-track { animation-name: trackScrollRTL; }
@keyframes trackScrollRTL {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(50%, 0, 0); }
}
.marquee-item { display: inline-flex; align-items: center; gap: 2.5rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; white-space: nowrap; }
html[dir="rtl"] .marquee-item { letter-spacing: 0; }
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ============================ 07 · ABOUT ============================ */
.about-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.about-visual { position: relative; }
.about-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 15vw, 160px);
  gap: 0.75rem;
}
.collage-item {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.collage-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.collage-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); z-index: 2; }
.collage-item:hover img { transform: scale(1.07); }
.collage-item--tall { grid-row: span 2; }
.collage-item--wide { grid-column: span 2; }

.about-collage-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html[dir="rtl"] .about-collage-tag { letter-spacing: 0; }

.about-text-card { display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }
.about-heading { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.about-desc-text { font-size: 1.02rem; color: var(--text-sub); line-height: 1.72; }

.about-bullets-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.35rem; }
.bullet-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.97rem; font-weight: 600; }
.bullet-item i {
  width: 16px; height: 16px; padding: 3px; flex-shrink: 0;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.lineage-card {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 0.85rem;
  padding: 1.25rem;
  border-radius: var(--r-sm);
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
}
.lineage-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.lineage-card strong { display: block; margin-bottom: 0.3rem; font-size: 1rem; }
.lineage-card p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.6; }

/* =========================== 08 · SERVICES =========================== */
.services-filter-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.filter-btn {
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.filter-btn:hover { color: var(--text-main); border-color: var(--border-strong); transform: translateY(-1px); }
.filter-btn.active { background: var(--bg-ink); border-color: var(--bg-ink); color: var(--text-on-dark); }

.services-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  transition: background var(--t-mid), color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  animation: cardIn 0.5s var(--ease) backwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.service-card:hover {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  border-color: var(--bg-ink);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.1rem; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-xs);
  background: var(--bg-page); border: 1px solid var(--border-subtle);
  transition: background var(--t-mid), color var(--t-mid), border-color var(--t-mid);
}
.service-icon i { width: 19px; height: 19px; }
.service-card:hover .service-icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.service-num { font-family: var(--font-en); font-size: 0.85rem; font-weight: 800; color: var(--text-muted); transition: color var(--t-mid); }
.service-card:hover .service-num { color: var(--accent); }

.service-badge {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(10, 10, 11, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--t-mid), border-color var(--t-mid);
}
html[dir="rtl"] .service-badge { letter-spacing: 0; }
.service-card:hover .service-badge { background: rgba(255, 255, 255, 0.14); border-color: var(--border-on-dark); }

.service-title { font-size: clamp(1.15rem, 1.8vw, 1.3rem); margin-bottom: 0.7rem; transition: color var(--t-mid); }
.service-card:hover .service-title { color: var(--text-on-dark); }
.service-desc { font-size: 0.92rem; color: var(--text-sub); line-height: 1.65; transition: color var(--t-mid); }
.service-card:hover .service-desc { color: var(--text-sub-dark); }

.service-feature-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.feat-tag {
  font-size: 0.73rem; font-weight: 600;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  transition: background var(--t-mid), border-color var(--t-mid), color var(--t-mid);
}
.service-card:hover .feat-tag { background: rgba(255, 255, 255, 0.1); border-color: var(--border-on-dark); color: var(--text-on-dark); }

/* =========================== 09 · APPROACH =========================== */
.approach-section { background: var(--bg-ink); color: var(--text-on-dark); }
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; counter-reset: step; }
.approach-step {
  position: relative;
  background: var(--bg-ink-soft);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  overflow: hidden;
  transition: transform var(--t-mid), border-color var(--t-mid), background var(--t-mid);
}
.approach-step::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width var(--t-slow);
}
.approach-step.revealed::before { width: 100%; }
.approach-step:hover { transform: translateY(-5px); background: #1c1c20; border-color: rgba(255, 230, 0, 0.35); }

.approach-letter {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.approach-step h3 { font-size: 1.2rem; color: var(--text-on-dark); }
.approach-sub { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
html[dir="rtl"] .approach-sub { letter-spacing: 0; }
.approach-step p { font-size: 0.9rem; color: var(--text-sub-dark); line-height: 1.65; }

/* ========================== 09b · PORTFOLIO ========================== */
.portfolio-header-flex {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-subtle);
}
.portfolio-title-giant { font-size: clamp(1.85rem, 4.2vw, 3.1rem); margin-block: 0.5rem 0.9rem; max-width: 20ch; }
.portfolio-count-badge { font-family: var(--font-en); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--text-muted); letter-spacing: -0.04em; }

.portfolio-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }

.portfolio-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  text-align: start;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
/* Wide cards (set by main.js) give the grid an editorial rhythm and keep
   the final row from going ragged. */
.portfolio-card--wide { grid-column: span 3; }
.portfolio-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-xl); border-color: var(--border-strong); }

.portfolio-thumb-box { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-gray-2); }
.portfolio-card--wide .portfolio-thumb-box { aspect-ratio: 16 / 10; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.portfolio-card:hover .portfolio-img { transform: scale(1.06); }

.portfolio-thumb-box::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 11, 0.4), transparent 55%);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.portfolio-card:hover .portfolio-thumb-box::after { opacity: 1; }

.portfolio-expand-pill {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.7rem; font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.portfolio-expand-pill i { width: 13px; height: 13px; }
.portfolio-card:hover .portfolio-expand-pill,
.portfolio-card:focus-visible .portfolio-expand-pill { opacity: 1; transform: translateY(0); }

.portfolio-info { padding: clamp(1.25rem, 2.2vw, 1.75rem); display: flex; flex-direction: column; gap: 0.5rem; }
.portfolio-card-top-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.portfolio-cat-text { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); min-width: 0; }
.portfolio-year-text { font-family: var(--font-en); font-size: 0.78rem; font-weight: 800; color: var(--text-main); flex-shrink: 0; }
.portfolio-info h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.portfolio-info p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.6; }

/* ========================= 10 · CREDENTIALS ========================= */
.credentials-section { background: var(--bg-gray); }
.credentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.25rem; }

.cred-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.cred-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.cred-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: var(--r-xs);
  background: var(--bg-ink);
  color: var(--text-on-dark);
  margin-bottom: 0.35rem;
  transition: background var(--t-mid), color var(--t-mid), transform var(--t-mid);
}
.cred-icon i { width: 22px; height: 22px; }
.cred-card:hover .cred-icon { background: var(--accent); color: var(--accent-ink); transform: rotate(-6deg) scale(1.06); }

.cred-card h3 { font-size: 1.2rem; }
.cred-card p { font-size: 0.93rem; color: var(--text-sub); line-height: 1.68; }

.cred-tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.85rem; }
.cred-tag {
  font-size: 0.73rem; font-weight: 700;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  color: var(--text-sub);
  transition: background var(--t-fast), color var(--t-fast);
}
.cred-card:hover .cred-tag { background: var(--bg-ink); color: var(--text-on-dark); border-color: var(--bg-ink); }

/* ============================ 11 · WHY US ============================ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }

.why-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  transition: transform var(--t-mid), box-shadow var(--t-mid), background var(--t-mid), color var(--t-mid), border-color var(--t-mid);
}
.why-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-end: -20%;
  top: -40%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-gray);
  transition: background var(--t-mid), transform var(--t-mid);
}
.why-card:hover {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  border-color: var(--bg-ink);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.why-card:hover::before { background: rgba(255, 230, 0, 0.14); transform: scale(1.25); }

.why-number {
  font-family: var(--font-en);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-muted);
  transition: color var(--t-mid);
}
.why-card:hover .why-number { color: var(--accent); }
.why-card h3 { font-size: 1.13rem; transition: color var(--t-mid); }
.why-card:hover h3 { color: var(--text-on-dark); }
.why-card p { font-size: 0.92rem; color: var(--text-sub); line-height: 1.65; transition: color var(--t-mid); }
.why-card:hover p { color: var(--text-sub-dark); }

/* ======================== 12 · CONTACT & FORM ======================== */
.contact-cta-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-blush);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}
.contact-cta-card::after {
  content: '';
  position: absolute;
  inset-inline-end: -12%;
  top: -45%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bg-blush-deep), transparent 70%);
  pointer-events: none;
}
.contact-cta-tag { display: block; font-size: clamp(0.95rem, 1.6vw, 1.15rem); font-weight: 700; margin-bottom: 0.6rem; position: relative; }
.contact-cta-title { font-size: clamp(1.85rem, 5.2vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; max-width: 20ch; position: relative; }
html[dir="rtl"] .contact-cta-title { font-size: clamp(1.6rem, 4.4vw, 2.9rem); line-height: 1.28; letter-spacing: 0; }

.contact-cta-footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid rgba(10, 10, 11, 0.14);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  position: relative;
}
.contact-clock-block { min-width: 0; }
.contact-clock-label { display: block; font-size: 0.95rem; font-weight: 700; }
.live-clock-time {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.contact-response-note { display: block; font-size: 0.85rem; color: var(--text-sub); margin-top: 0.35rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.contact-panel-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: 0.85rem; }

.contact-direct-box {
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  margin-block: 1.5rem;
}
.direct-item { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.direct-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-ink); color: var(--text-on-dark); flex-shrink: 0;
}
.direct-icon i { width: 19px; height: 19px; }
.direct-label { display: block; font-size: 0.75rem; color: var(--text-sub); font-weight: 600; margin-bottom: 0.15rem; }
.direct-value { font-size: clamp(0.88rem, 2.3vw, 1.02rem); font-weight: 800; overflow-wrap: anywhere; }
.direct-value:hover { color: var(--accent-blue); }

.offices-box {
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}
.offices-box h4 { font-size: 1rem; margin-bottom: 1.1rem; }
.offices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1rem; }
.office-item strong { display: block; font-size: 0.88rem; margin-bottom: 0.25rem; }
.office-item p { font-size: 0.78rem; color: var(--text-sub); line-height: 1.5; }

.contact-form-panel {
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: clamp(1.35rem, 3vw, 2.4rem);
  min-width: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; }
.form-group label { font-size: 0.85rem; font-weight: 700; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xs);
  padding: 0.85rem 1rem;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bg-ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 11, 0.08);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }

.form-error { font-size: 0.85rem; font-weight: 600; color: #dc2626; }

/* Honeypot — removed from layout and from the accessibility tree.
   Not `display:none`, which some bots detect and skip. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-feedback {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 1.1rem;
  border-radius: var(--r-xs);
  font-size: 0.88rem;
  background: rgba(18, 185, 129, 0.1);
  border: 1px solid rgba(18, 185, 129, 0.3);
  color: #056b4c;
}
.form-feedback[hidden] { display: none; }
.form-feedback i { flex-shrink: 0; margin-top: 2px; }
.form-feedback h4 { font-size: 0.95rem; margin-bottom: 0.2rem; color: inherit; }
.form-feedback strong { overflow-wrap: anywhere; }

/* ============================ 13 · FOOTER ============================ */
.site-footer { border-top: 1px solid var(--border-subtle); padding-block: clamp(3rem, 6vw, 5rem) 2rem; overflow: hidden; }
.footer-top-row { display: flex; justify-content: space-between; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.footer-agency-info { max-width: 420px; display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.footer-logo { font-size: 2rem; }
.footer-tagline { font-size: 1rem; font-weight: 600; color: var(--text-sub); }
.footer-email-link { font-size: clamp(1.05rem, 3vw, 1.5rem); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-email-link:hover { color: var(--accent-blue); }

.footer-columns { display: flex; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.35rem; }
html[dir="rtl"] .footer-col h4 { letter-spacing: 0; }
.footer-col a, .footer-col span { font-size: 0.92rem; font-weight: 600; color: var(--text-sub); }
.footer-col a:hover { color: var(--text-main); }

.footer-watermark {
  font-family: var(--font-en);
  font-size: clamp(4rem, 21vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.8;
  color: rgba(10, 10, 11, 0.055);
  user-select: none;
  margin-block: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  text-align: center;
  white-space: nowrap;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal-links a:hover { color: var(--text-main); }

/* ======================== 13b · THANK-YOU PAGE ======================== */
.thankyou-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(closest-side, rgba(255, 230, 0, 0.16), transparent 70%) top right / 60% 60% no-repeat,
    var(--bg-page);
}

.thankyou-shell { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: clamp(2rem, 5vw, 3rem); }

.thankyou-logo { line-height: 1; }
.thankyou-logo .logo-main { font-size: 1.9rem; }

.thankyou-card {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: clamp(2rem, 6vw, 3.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  animation: fadeIn 0.5s var(--ease);
}

.thankyou-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 0.5rem;
}
.thankyou-icon i { width: 28px; height: 28px; stroke-width: 3; }

.thankyou-tag { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
html[dir="rtl"] .thankyou-tag { letter-spacing: 0; }
.thankyou-title { font-size: clamp(1.6rem, 4vw, 2.1rem); max-width: 22ch; }
.thankyou-desc { font-size: 1rem; color: var(--text-sub); line-height: 1.65; max-width: 42ch; }

.thankyou-confirmed {
  font-size: 0.88rem;
  color: var(--text-sub);
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  overflow-wrap: anywhere;
}
.thankyou-confirmed strong { color: var(--text-main); }

.thankyou-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; width: 100%; }

@media (max-width: 480px) {
  .thankyou-actions { flex-direction: column; }
  .thankyou-actions .btn { width: 100%; }
}

/* =========================== 14 · LIGHTBOX =========================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid), visibility var(--t-mid);
}
.lightbox-modal.active { opacity: 1; visibility: visible; }

.lightbox-overlay { position: absolute; inset: 0; background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-page);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-xl);
  transform: scale(0.96) translateY(14px);
  transition: transform var(--t-mid);
}
.lightbox-modal.active .lightbox-dialog { transform: scale(1) translateY(0); }

.lightbox-close-btn { position: absolute; top: clamp(0.75rem, 2vw, 1.15rem); inset-inline-end: clamp(0.75rem, 2vw, 1.15rem); z-index: 5; background: var(--bg-page); box-shadow: var(--shadow-md); }

.lightbox-content { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

.lightbox-image-column { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.lightbox-main-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
}
.lightbox-main-img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 0.35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
.lightbox-thumb {
  width: 68px; height: 52px; flex-shrink: 0;
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: opacity var(--t-fast), border-color var(--t-fast);
  padding: 0;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb:hover { opacity: 1; }
.lightbox-thumb.active { opacity: 1; border-color: var(--bg-ink); }

.lightbox-info-column { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.lightbox-cat-badge {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg-ink); color: var(--text-on-dark);
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
}
html[dir="rtl"] .lightbox-cat-badge { letter-spacing: 0; }
.lightbox-heading { font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.2; }

.lightbox-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  gap: 1rem;
  background: var(--bg-gray);
  border-radius: var(--r-xs);
  padding: 1rem 1.15rem;
}
.lightbox-meta-row div { display: flex; flex-direction: column; min-width: 0; }
.meta-label { font-size: 0.7rem; color: var(--text-sub); font-weight: 600; }
.lightbox-meta-row strong { font-size: 0.88rem; overflow-wrap: anywhere; }

.lightbox-body-text { font-size: 0.96rem; color: var(--text-sub); line-height: 1.7; }
.lightbox-subheading { font-size: 1rem; font-weight: 700; }
.lightbox-details-list { display: flex; flex-direction: column; gap: 0.55rem; }
.lightbox-details-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.89rem; font-weight: 600; }
.lightbox-details-list li i {
  width: 15px; height: 15px; padding: 3px; flex-shrink: 0;
  box-sizing: content-box; margin-top: 1px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
}
.lightbox-action-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.lightbox-nav { display: flex; gap: 0.5rem; }
html[dir="rtl"] .lightbox-nav i { transform: scaleX(-1); }

/* ============================ 15 · MOTION ============================ */
/* Scoped to .js so the page is fully readable without (or before) JavaScript. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

.magnetic { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-card, .hero-aurora, .scroll-icon, .marquee-track, .client-track { animation: none !important; }
  .marquee-track, .client-track { transform: none !important; }
}

/* ========================== 16 · RESPONSIVE ========================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .hero-stack { max-width: 560px; margin-inline: auto; aspect-ratio: 4 / 3.4; }
  .hero-subheadline { max-width: none; }
  .numbers-grid { grid-template-columns: minmax(0, 1fr); }
  .numbers-header-box { min-height: 160px; }
  .about-showcase-grid,
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .lightbox-content { grid-template-columns: minmax(0, 1fr); }
  .lightbox-main-frame { aspect-ratio: 16 / 10; }
  .portfolio-card,
  .portfolio-card--wide { grid-column: span 3; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-cta-link { display: none; }
}

@media (max-width: 700px) {
  :root { --header-h: 66px; }

  .portfolio-card,
  .portfolio-card--wide { grid-column: span 6; }
  .portfolio-card--wide .portfolio-thumb-box { aspect-ratio: 4 / 3; }

  .numbers-stats { grid-template-columns: minmax(0, 1fr); }
  .number-stat-box { min-height: 0; gap: 1.1rem; }
  .footer-top-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .hero-stack { aspect-ratio: 4 / 4.1; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-chip { font-size: 0.74rem; padding: 0.38rem 0.75rem; }

  .about-pill-bar { flex-direction: column; align-items: stretch; }
  .about-pill-bar .btn { width: 100%; }

  .contact-cta-footer { flex-direction: column; align-items: stretch; }
  .contact-cta-footer .btn { width: 100%; }

  .lightbox-action-row { flex-direction: column; align-items: stretch; }
  .lightbox-action-row .btn { width: 100%; }
  .lightbox-nav { justify-content: center; }

  .services-filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .services-filter-bar::-webkit-scrollbar { display: none; }

  .offices-grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox-meta-row { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .footer-legal-links { flex-direction: column; gap: 0.4rem; }
}

@media (max-width: 380px) {
  .hero-badge { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
  .direct-item { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}

/* Touch devices: hover styles never "stick" on tap */
@media (hover: none) {
  .portfolio-expand-pill { opacity: 1; transform: none; }
  .service-card:hover,
  .why-card:hover,
  .cred-card:hover,
  .number-stat-box:hover,
  .portfolio-card:hover { transform: none; }
}
