/* ===========================================================
   Mosaic Elite — Homepage (Stitch Hero Curtain redesign)
   Light-only theme. Scoped to .home-stitch root element.
   =========================================================== */

.home-stitch {
  --hs-surface: #faf9f6;
  --hs-surface-2: #f4f3f1;
  --hs-surface-3: #efeeeb;
  --hs-surface-4: #e9e8e5;
  --hs-surface-5: #e3e2e0;
  --hs-ink: #1a1c1a;
  --hs-ink-2: #4f453b;
  --hs-ink-3: #66625c;
  --hs-line: #d2c4b6;
  --hs-line-2: #e3e2e0;
  --hs-bronze: #735328;
  --hs-bronze-2: #8e6b3e;
  --hs-bronze-3: #5e4118;
  --hs-bronze-soft: #f5c993;
  --hs-bronze-tint: rgba(115, 83, 40, 0.08);
  --hs-on-bronze: #ffffff;
  --hs-shadow-sm: 0 6px 18px rgba(26, 28, 26, 0.06);
  --hs-shadow-md: 0 12px 30px rgba(26, 28, 26, 0.08);
  --hs-shadow-lg: 0 24px 60px rgba(115, 83, 40, 0.15);
  --hs-radius-sm: 4px;
  --hs-radius: 8px;
  --hs-radius-lg: 12px;
  --hs-radius-xl: 18px;
  --hs-container: 1280px;
  --hs-section-pad: clamp(64px, 8vw, 110px);
  --hs-gap: 24px;
  --hs-font-display: 'Manrope', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --hs-font-body: 'Manrope', 'Inter', system-ui, sans-serif;
  --hs-font-label: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-family: var(--hs-font-body);
  color: var(--hs-ink);
  background: var(--hs-surface);
}
html[lang="ar"] .home-stitch {
  --hs-font-display: 'IBM Plex Sans Arabic', 'Cairo', 'Tajawal', system-ui, sans-serif;
  --hs-font-body: 'IBM Plex Sans Arabic', 'Cairo', 'Tajawal', system-ui, sans-serif;
}

.home-stitch * { box-sizing: border-box; }
.home-stitch img { max-width: 100%; display: block; }

.hs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hs-container {
  max-width: var(--hs-container);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 80px);
  padding-right: clamp(16px, 4vw, 80px);
}

.hs-label {
  font-family: var(--hs-font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hs-bronze);
}

.hs-display {
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hs-ink);
  margin: 0;
}
.hs-headline {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--hs-ink);
  margin: 0;
}
.hs-h3 {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--hs-ink);
  margin: 0;
}
.hs-h4 {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  color: var(--hs-ink);
  margin: 0;
}
.hs-body {
  font-family: var(--hs-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--hs-ink-2);
  margin: 0;
}
.hs-body-lg {
  font-family: var(--hs-font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--hs-ink-2);
  margin: 0;
}

/* ============ HERO CURTAIN ============ */
.hs-hero {
  height: clamp(560px, calc(100vh - var(--header-h, 104px)), 980px);
  display: flex;
  width: 100%;
  overflow: hidden;
  background: var(--hs-ink);
  flex-direction: column;
  position: relative;
}
/* Use small-viewport units on browsers that support them so the mobile
   URL bar doesn't leave a strip of the next section peeking on load. */
@supports (height: 100svh) {
  .hs-hero {
    height: clamp(560px, calc(100svh - var(--header-h, 104px)), 980px);
  }
}

/* Floating decorative particles overlay (subtle bronze atmospheric flecks) */
.hs-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.hs-hero__particles span {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--hs-bronze-soft);
  opacity: 0;
  filter: blur(0.5px);
  animation: hs-particle-float linear infinite;
}
@keyframes hs-particle-float {
  0%   { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { transform: translate3d(var(--dx, 20px), -360px, 0) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-hero__particles { display: none; }
}

/* Tag ticker below the curtains */
.hs-hero__ticker {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  z-index: 4;
  background: linear-gradient(180deg, transparent, rgba(15, 12, 8, 0.85) 60%);
  padding: 14px 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hs-hero__ticker-track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: hs-ticker-slide 48s linear infinite;
}
html[dir="rtl"] .hs-hero__ticker-track { animation-direction: reverse; }
.hs-hero__ticker-tag {
  font-family: var(--hs-font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 201, 147, 0.78);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hs-hero__ticker-tag::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 201, 147, 0.4);
}
@keyframes hs-ticker-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-hero__ticker-track { animation: none; flex-wrap: wrap; justify-content: center; }
}
@media (min-width: 768px) {
  .hs-hero { flex-direction: row; }
}

.hs-curtain {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: flex 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 280px;
  isolation: isolate;
}
.hs-curtain__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.08);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  background-position: center;
  background-size: cover;
}
.hs-curtain__bg--hc {
  background-image: url('../img/hc-hero.svg');
  background-position: center;
  background-size: cover;
}
.hs-curtain__bg--re {
  background-image: url('../img/hero.jpg');
}
.hs-curtain__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 12, 8, 0.15) 0%, rgba(15, 12, 8, 0.45) 60%, rgba(15, 12, 8, 0.78) 100%);
  transition: background 0.6s ease;
}
.hs-curtain__content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 64px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}
.hs-curtain__kicker {
  font-family: var(--hs-font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hs-bronze-soft);
}
.hs-curtain__title {
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  padding-block: 0.08em;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  transition: font-size 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.hs-curtain__desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 460px;
}
.hs-curtain__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--hs-radius-sm);
  font-family: var(--hs-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--hs-bronze);
  color: #fff;
  border: 1px solid var(--hs-bronze);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hs-curtain__cta:hover {
  background: var(--hs-bronze-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(115, 83, 40, 0.35);
}
.hs-curtain__cta--ghost {
  background: rgba(255, 255, 255, 0.95);
  color: var(--hs-bronze);
  border-color: rgba(255, 255, 255, 0.95);
}
.hs-curtain__cta--ghost:hover {
  background: #fff;
}
.hs-curtain__details { transition: opacity 0.4s ease, transform 0.5s ease; }

@media (min-width: 900px) {
  .hs-hero:hover .hs-curtain { flex: 0.5; }
  .hs-hero:hover .hs-curtain:hover { flex: 1.5; }
  .hs-hero .hs-curtain:hover .hs-curtain__bg { transform: scale(1); }
  .hs-hero .hs-curtain:not(:hover) .hs-curtain__details {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
  }
  .hs-hero:hover .hs-curtain:not(:hover) .hs-curtain__title {
    font-size: clamp(22px, 1.9vw, 28px);
    line-height: 1.12;
  }
  .hs-hero:hover .hs-curtain:not(:hover) .hs-curtain__content {
    padding-inline: clamp(18px, 2.4vw, 32px);
  }
  .hs-hero .hs-curtain:hover .hs-curtain__title {
    font-size: clamp(36px, 4.2vw, 56px);
  }
}
@media (max-width: 767.98px) {
  .hs-curtain { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
}

/* ============ SECTIONS ============ */
.hs-section {
  padding-top: var(--hs-section-pad);
  padding-bottom: var(--hs-section-pad);
}
.hs-section--surface { background: var(--hs-surface); }
.hs-section--surface-2 { background: var(--hs-surface-2); }

/* Anchor-scroll offset: each section has its own padding-top; we cancel
   it out (negative scroll-margin-top combined with html's scroll-padding-top
   of header-h) so the section's HEADING lands ~16px below the fixed header,
   not at the bottom of all that section padding. */
#about,
#hc,
#re,
#malek365,
#contact {
  scroll-margin-top: calc(16px - var(--hs-section-pad));
}

.hs-section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
@media (min-width: 900px) {
  .hs-section__head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    max-width: none;
    gap: 32px;
  }
  .hs-section__head--row > .hs-section__lede { max-width: 560px; }
}
.hs-section__lede { display: flex; flex-direction: column; gap: 12px; }

.hs-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hs-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hs-bronze);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.25s ease;
  white-space: nowrap;
}
.hs-link-arrow:hover { gap: 16px; color: var(--hs-bronze-2); }

/* ============ BENTO ============ */
.hs-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hs-gap);
}
@media (min-width: 768px) {
  .hs-bento { grid-template-columns: repeat(3, 1fr); }
  .hs-bento__wide { grid-column: span 2; }
}

.hs-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
}
.hs-card:hover {
  transform: translateY(-6px);
  border-color: var(--hs-bronze);
  box-shadow: var(--hs-shadow-lg);
}
.hs-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.hs-card__icon {
  font-size: 32px;
  line-height: 1;
  color: var(--hs-bronze);
}
.hs-card__tag {
  font-family: var(--hs-font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hs-bronze);
  background: var(--hs-bronze-tint);
  padding: 6px 10px;
  border-radius: 999px;
}
.hs-card__num {
  font-family: var(--hs-font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--hs-ink-3);
}
.hs-card__title {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--hs-ink);
  margin: 0;
}
.hs-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--hs-ink-2);
  margin: 0;
}
.hs-card__stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--hs-line-2);
}
.hs-stat__num {
  display: block;
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--hs-bronze);
}
.hs-stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--hs-font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hs-ink-3);
}

.hs-card--gold {
  background: var(--hs-bronze);
  border-color: var(--hs-bronze);
  color: #fff;
}
.hs-card--gold .hs-card__icon,
.hs-card--gold .hs-card__title { color: #fff; }
.hs-card--gold .hs-card__desc { color: rgba(255, 255, 255, 0.88); }
.hs-card--gold:hover {
  border-color: var(--hs-bronze-3);
  box-shadow: 0 24px 60px rgba(115, 83, 40, 0.35);
}

.hs-card__media {
  width: 100%;
  height: 200px;
  border-radius: var(--hs-radius);
  background: var(--hs-surface-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hs-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ MALEK365 SPOTLIGHT ============ */
.hs-spotlight {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: var(--hs-gap);
  box-shadow: var(--hs-shadow-sm);
  transition: box-shadow 0.5s ease;
}
.hs-spotlight:hover { box-shadow: var(--hs-shadow-lg); }
@media (min-width: 1024px) {
  .hs-spotlight { grid-template-columns: 1fr 1.05fr; }
}
.hs-spotlight__copy {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.hs-spotlight__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hs-spotlight__brand img {
  height: 40px;
  width: auto;
}
.hs-spotlight__features {
  list-style: none;
  padding: 0;
  margin: 12px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hs-spotlight__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hs-ink-2);
}
.hs-spotlight__features li strong {
  color: var(--hs-ink);
  font-weight: 600;
}
.hs-spotlight__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--hs-bronze-tint);
  color: var(--hs-bronze);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
}
.hs-spotlight__media {
  background: linear-gradient(135deg, #f4ecdf 0%, #e9dcc4 100%);
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}
.hs-spotlight__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 280px at 30% 20%, rgba(115, 83, 40, 0.18), transparent 70%),
    radial-gradient(600px 320px at 80% 80%, rgba(115, 83, 40, 0.1), transparent 70%);
}
.hs-spotlight__media img {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(26, 28, 26, 0.18), 0 6px 14px rgba(26, 28, 26, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ============ MINI CARDS (Real Estate three-up) ============ */
.hs-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hs-gap);
}
@media (min-width: 768px) {
  .hs-mini-grid { grid-template-columns: repeat(3, 1fr); }
}
.hs-mini-card {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.4s;
}
.hs-mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--hs-bronze);
  box-shadow: var(--hs-shadow-md);
}
.hs-mini-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.hs-mini-card__num {
  font-family: var(--hs-font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--hs-ink-3);
}
.hs-mini-card__title {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--hs-bronze);
  margin: 0;
}
.hs-mini-card__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--hs-ink-2);
  margin: 0;
}

/* ============ METHODOLOGY ============ */
.hs-method {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .hs-method { grid-template-columns: repeat(4, 1fr); gap: var(--hs-gap); }
}
.hs-method__stage {
  position: relative;
  padding-top: 64px;
}
.hs-method__num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: var(--hs-surface-5);
  letter-spacing: -0.02em;
  transition: color 0.35s ease;
}
html[dir="rtl"] .hs-method__num { left: auto; right: 0; }
.hs-method__stage:hover .hs-method__num { color: var(--hs-bronze-soft); }
.hs-method__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }

/* ============ PARTNERS MARQUEE ============ */
.hs-partners { background: var(--hs-surface-2); border-top: 1px solid var(--hs-line-2); border-bottom: 1px solid var(--hs-line-2); }
.hs-partners__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 48px; }
.hs-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hs-marquee__track {
  display: flex;
  gap: 80px;
  align-items: center;
  width: max-content;
  animation: hs-marquee 28s linear infinite;
}
.hs-marquee__track img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.4s, filter 0.4s;
}
.hs-marquee__track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes hs-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
html[dir="rtl"] .hs-marquee__track { animation-direction: reverse; }

/* ============ CTA ============ */
.hs-cta {
  background: linear-gradient(135deg, var(--hs-ink) 0%, #2a1d0d 100%);
  color: #fff;
  border-radius: var(--hs-radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) {
  .hs-cta { grid-template-columns: 1.6fr 1fr; }
}
.hs-cta h2 { color: #fff; }
.hs-cta p { color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.7; margin: 12px 0 0; max-width: 520px; }
.hs-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
@media (min-width: 900px) { .hs-cta__actions { justify-content: flex-end; } }

/* CTA with embedded contact form */
.hs-cta--form {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: clamp(32px, 4vw, 56px);
}
@media (min-width: 900px) {
  .hs-cta--form { grid-template-columns: 1fr 1fr; }
}
.hs-cta__intro { display: flex; flex-direction: column; gap: 18px; }
.hs-cta__intro p { margin-top: 0; }
.hs-cta__channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.hs-cta__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--hs-radius);
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hs-cta__channel:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 201, 147, 0.4);
  transform: translateY(-1px);
}
.hs-cta__channel-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(245, 201, 147, 0.12);
  color: var(--hs-bronze-soft);
  font-size: 15px;
  flex-shrink: 0;
}
.hs-cta__channel-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.hs-cta__channel-meta {
  margin-inline-start: auto;
  opacity: 0.7;
  font-size: 13px;
  font-family: var(--hs-font-label);
  direction: ltr;
}
html[dir="rtl"] .hs-cta__channel-meta { text-align: left; }

/* Contact form */
.hs-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--hs-radius-lg);
  padding: clamp(22px, 3vw, 32px);
  position: relative;
}
.hs-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.hs-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .hs-form__row { grid-template-columns: 1fr 1fr; }
}
.hs-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hs-form__label {
  font-family: var(--hs-font-label);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 201, 147, 0.85);
}
.hs-form input,
.hs-form select,
.hs-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--hs-radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.hs-form input::placeholder,
.hs-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}
.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
  outline: none;
  border-color: var(--hs-bronze-soft);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(245, 201, 147, 0.12);
}
.hs-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5c993' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px;
  padding-inline-end: 36px;
}
html[dir="rtl"] .hs-form select {
  background-position: left 16px center;
}
.hs-form select option { background: #1a1c1a; color: #fff; }
.hs-form textarea { resize: vertical; min-height: 110px; }
.hs-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;
  background: var(--hs-bronze);
  color: #fff;
  border: 0;
  border-radius: var(--hs-radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.hs-form__submit:hover:not(:disabled) {
  background: var(--hs-bronze-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(115, 83, 40, 0.35);
}
.hs-form__submit:disabled { opacity: 0.65; cursor: wait; }
.hs-form__status {
  font-size: 14px;
  line-height: 1.5;
  min-height: 1.2em;
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.75);
}
.hs-form__status.is-success { color: #b8e6a8; }
.hs-form__status.is-error { color: #f0a8a0; }
.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--hs-radius-sm);
  font-family: var(--hs-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.hs-btn--primary { background: var(--hs-bronze-soft); color: #2a1800; }
.hs-btn--primary:hover { background: #fff; transform: translateY(-1px); }
.hs-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.hs-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

/* ============ NAV OVERRIDES (homepage transparent-then-solid) ============ */
.home-stitch-nav-shim { height: var(--header-h, 104px); }

/* ============ REVEAL ANIMATIONS ============
   The hidden state only applies once JS confirms motion is ready
   (html.js-motion-ready). If motion.js fails to load, content stays
   visible by default — no opaque "missing content" failure mode.
   ============================================ */
html.js-motion-ready .hs-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js-motion-ready .hs-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js-motion-ready .hs-reveal { opacity: 1; transform: none; transition: none; }
  .hs-curtain, .hs-curtain__bg, .hs-marquee__track { transition: none !important; animation: none !important; }
  .hs-hero:hover .hs-curtain { flex: 1; }
}

/* ============================================================
   V2 ENHANCEMENTS — Motion + new sections (stats / testimonials / faq)
   ============================================================ */

/* ---- Scroll progress bar ---- */
.hs-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}
.hs-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hs-bronze) 0%, var(--hs-bronze-soft) 100%);
  box-shadow: 0 0 12px rgba(115, 83, 40, 0.45);
  transform-origin: left center;
  transition: width 0.12s linear;
}
html[dir="rtl"] .hs-progress__bar {
  margin-left: auto;
  background: linear-gradient(-90deg, var(--hs-bronze) 0%, var(--hs-bronze-soft) 100%);
}

/* ---- Hero cinematic entrance — overrides for choreographed reveal ----
   When motion is ready, hero pieces start hidden, JS reveals them. */
html.js-motion-ready .hs-curtain__bg {
  --hs-px: 0px;
  --hs-py: 0px;
  transform: translate3d(var(--hs-px), var(--hs-py), 0) scale(1.18);
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js-motion-ready .hs-curtain.is-entered .hs-curtain__bg {
  transform: translate3d(var(--hs-px), var(--hs-py), 0) scale(1.08);
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js-motion-ready .hs-curtain__kicker {
  opacity: 0;
  position: relative;
  padding-inline-start: 56px;
}
html.js-motion-ready .hs-curtain__kicker::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  width: 44px;
  height: 1px;
  background: var(--hs-bronze-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
html[dir="rtl"].js-motion-ready .hs-curtain__kicker::before { transform-origin: right center; }
html.js-motion-ready .hs-curtain.is-entered .hs-curtain__kicker::before { transform: scaleX(1); }

/* Title mask reveal — clip the title until is-entered */
html.js-motion-ready .hs-curtain__title {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
html.js-motion-ready .hs-curtain.is-entered .hs-curtain__title { clip-path: inset(0 0 0% 0); }

/* ---- Split-text word reveal for section headlines ---- */
.hs-headline .hs-word,
.hs-display .hs-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: inherit;
}
.hs-headline .hs-word__inner,
.hs-display .hs-word__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hs-reveal.is-visible .hs-headline .hs-word__inner,
.hs-reveal.is-visible .hs-display .hs-word__inner {
  transform: translateY(0);
}

/* ---- Magnetic card hover (set by JS via CSS vars) ---- */
.hs-card,
.hs-mini-card {
  --hs-mx: 50%;
  --hs-my: 50%;
}
.hs-card::after,
.hs-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    300px circle at var(--hs-mx) var(--hs-my),
    rgba(115, 83, 40, 0.10),
    transparent 60%
  );
  transition: opacity 0.3s ease;
}
.hs-card:hover::after,
.hs-mini-card:hover::after { opacity: 1; }

/* Subtle parallax of card content on hover */
.hs-card__top,
.hs-card__title,
.hs-card__desc { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.hs-card:hover .hs-card__title { transform: translateY(-2px); }

/* ---- Shine sweep on bronze primary CTAs ---- */
.hs-curtain__cta,
.hs-btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hs-curtain__cta::after,
.hs-btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hs-curtain__cta:hover::after,
.hs-btn--primary:hover::after { left: 130%; }

/* ---- Methodology connector line ---- */
@media (min-width: 768px) {
  .hs-method {
    position: relative;
  }
  .hs-method::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, var(--hs-line) 0%, var(--hs-bronze-soft) 50%, var(--hs-line) 100%);
    transform: scaleX(var(--hs-method-progress, 0));
    transform-origin: left center;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
    border-radius: 999px;
  }
  html[dir="rtl"] .hs-method::before { transform-origin: right center; }
  .hs-method__num {
    background: var(--hs-surface);
    padding-inline-end: 14px;
    position: absolute;
    z-index: 1;
  }
  html[dir="rtl"] .hs-method__num { padding-inline-end: 14px; padding-inline-start: 0; }
}

/* ---- Stats strip ---- */
.hs-stats-strip {
  background:
    linear-gradient(135deg, #1a1c1a 0%, #2a1d0d 100%);
  color: #fff;
  border-radius: var(--hs-radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.hs-stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 320px at 20% 0%, rgba(245, 201, 147, 0.18), transparent 60%),
    radial-gradient(700px 280px at 90% 100%, rgba(115, 83, 40, 0.32), transparent 60%);
  pointer-events: none;
}
.hs-stats-strip > * { position: relative; z-index: 1; }
@media (min-width: 640px) { .hs-stats-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hs-stats-strip { grid-template-columns: repeat(4, 1fr); } }

.hs-stat-item { display: flex; flex-direction: column; gap: 8px; }
.hs-stat-item__tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--hs-font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hs-bronze-soft);
  background: rgba(245, 201, 147, 0.12);
  border: 1px solid rgba(245, 201, 147, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.hs-stat-item__num {
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hs-bronze-soft);
  font-variant-numeric: tabular-nums;
}
.hs-stat-item__num-suffix { color: var(--hs-bronze-soft); }
.hs-stat-item__label {
  font-family: var(--hs-font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hs-stat-item__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}
.hs-stat-item + .hs-stat-item { position: relative; }
@media (min-width: 640px) {
  .hs-stat-item:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    inset-inline-start: -14px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
  }
}

/* ---- Testimonials ---- */
.hs-testimonials {
  position: relative;
}
.hs-testimonials__viewport {
  position: relative;
  min-height: 320px;
}
.hs-testimonial {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.hs-testimonial.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
@media (min-width: 900px) {
  .hs-testimonial { grid-template-columns: 1fr 220px; align-items: center; }
}
.hs-testimonial__quote {
  font-family: var(--hs-font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--hs-ink);
  margin: 0;
  position: relative;
}
.hs-testimonial__quote::before {
  content: "“";
  font-family: var(--hs-font-display);
  font-size: 90px;
  line-height: 0.5;
  color: var(--hs-bronze-soft);
  display: block;
  margin-bottom: 12px;
}
html[dir="rtl"] .hs-testimonial__quote::before { content: "”"; }
.hs-testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-testimonial__author {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--hs-ink);
}
.hs-testimonial__role {
  font-family: var(--hs-font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hs-ink-3);
}
.hs-testimonial__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--hs-surface-3);
  border-radius: var(--hs-radius);
  min-height: 100px;
}
.hs-testimonial__brand img {
  max-height: 60px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(0.5);
}
.hs-testimonials__nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.hs-testimonials__dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--hs-surface-4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.hs-testimonials__dot.is-active {
  background: var(--hs-bronze);
  width: 44px;
}

/* ---- About / Why Mosaic ---- */
.hs-about {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}
.hs-about__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 880px;
}
.hs-manifesto {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--hs-ink);
  margin: 0;
}
.hs-manifesto__accent { color: var(--hs-bronze); }
.hs-about__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .hs-about__pillars { grid-template-columns: repeat(3, 1fr); }
}
.hs-pillar {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hs-pillar:hover { border-color: var(--hs-bronze); transform: translateY(-2px); }
.hs-pillar__num {
  font-family: var(--hs-font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hs-bronze);
}
.hs-pillar__name {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--hs-ink);
}

.hs-values__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  max-width: 640px;
}
.hs-values__title {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--hs-ink);
  margin: 0;
}
.hs-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hs-gap);
}
@media (min-width: 640px) { .hs-values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hs-values { grid-template-columns: repeat(5, 1fr); } }
.hs-value {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.hs-value:hover {
  border-color: var(--hs-bronze);
  transform: translateY(-4px);
  box-shadow: var(--hs-shadow-md);
}
.hs-value__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--hs-bronze-tint);
  color: var(--hs-bronze);
  font-size: 16px;
}
.hs-value__name {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--hs-ink);
}
.hs-value__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hs-ink-2);
  margin: 0;
}

/* ---- Interactive platform showcase (TrainHub & Malek365 shared base) ---- */
.hs-platform {
  background: linear-gradient(135deg, #1a1c1a 0%, #2a1d0d 100%);
  color: #fff;
  border-radius: var(--hs-radius-lg);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: var(--hs-gap);
  position: relative;
  overflow: hidden;
}
.hs-platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 320px at 20% 0%, rgba(245, 201, 147, 0.18), transparent 60%),
    radial-gradient(700px 280px at 90% 100%, rgba(115, 83, 40, 0.32), transparent 60%);
  pointer-events: none;
}
.hs-platform > * { position: relative; z-index: 1; }

.hs-platform__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hs-platform__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hs-platform__brand-tag {
  font-family: var(--hs-font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hs-bronze-soft);
  background: rgba(245, 201, 147, 0.12);
  border: 1px solid rgba(245, 201, 147, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
}
.hs-platform__name {
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.hs-platform__desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 460px;
}

.hs-platform__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .hs-platform__body { grid-template-columns: 280px 1fr; }
}

.hs-platform__tabs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
@media (min-width: 900px) {
  .hs-platform__tabs { flex-direction: column; overflow: visible; }
}
.hs-platform__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--hs-radius);
  font-family: var(--hs-font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
}
.hs-platform__tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(245, 201, 147, 0.25);
}
.hs-platform__tab.is-active {
  background: rgba(245, 201, 147, 0.12);
  border-color: rgba(245, 201, 147, 0.45);
  color: var(--hs-bronze-soft);
}
.hs-platform__tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(245, 201, 147, 0.1);
  color: var(--hs-bronze-soft);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.hs-platform__tab.is-active .hs-platform__tab-icon {
  background: var(--hs-bronze-soft);
  color: #2a1800;
}
.hs-platform__tab-num {
  margin-inline-start: auto;
  font-family: var(--hs-font-label);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}
.hs-platform__tab.is-active .hs-platform__tab-num { color: var(--hs-bronze-soft); }

.hs-platform__viewport {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--hs-radius-lg);
  padding: clamp(20px, 3vw, 32px);
  min-height: 320px;
  position: relative;
}
.hs-platform__panel {
  display: none;
  flex-direction: column;
  gap: 18px;
}
.hs-platform__panel.is-active {
  display: flex;
  animation: hs-platform-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hs-platform-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.hs-platform__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.hs-platform__panel-title {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin: 0;
}
.hs-platform__panel-num {
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1;
  color: var(--hs-bronze-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hs-platform__panel-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* Bar chart for tab panels */
.hs-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  margin-top: 8px;
  padding-bottom: 24px;
  position: relative;
}
.hs-chart__bar {
  flex: 1;
  background: linear-gradient(180deg, var(--hs-bronze-soft) 0%, var(--hs-bronze) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  position: relative;
  opacity: 0.55;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.hs-platform__panel.is-active .hs-chart__bar { transform: scaleY(1); }
.hs-chart__bar--peak { opacity: 1; }
.hs-chart__bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--hs-font-label);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* List style panel (cities, courses) */
.hs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hs-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hs-list__rank {
  font-family: var(--hs-font-label);
  font-size: 11px;
  color: var(--hs-bronze-soft);
  letter-spacing: 0.15em;
  flex-shrink: 0;
  min-width: 28px;
}
.hs-list__name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}
.hs-list__value {
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--hs-bronze-soft);
  font-variant-numeric: tabular-nums;
}
.hs-list__bar {
  flex: 0 0 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.hs-list__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hs-bronze), var(--hs-bronze-soft));
  width: var(--w, 50%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
html[dir="rtl"] .hs-list__bar > span { transform-origin: right; }
.hs-platform__panel.is-active .hs-list__bar > span { transform: scaleX(1); }

/* Donut / metric circle for outcomes */
.hs-metric-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}
@media (min-width: 520px) { .hs-metric-row { grid-template-columns: repeat(3, 1fr); } }
.hs-metric {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-metric__num {
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--hs-bronze-soft);
  font-variant-numeric: tabular-nums;
}
.hs-metric__label {
  font-family: var(--hs-font-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Malek365 interactive spotlight overrides (hover-to-highlight) ---- */
.hs-spotlight--interactive .hs-spotlight__features li {
  list-style: none;
  padding: 0;
}
.hs-spotlight__feature-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: inherit;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hs-spotlight__feature-btn:hover,
.hs-spotlight__feature-btn.is-active,
.hs-spotlight__feature-btn:focus-visible {
  background: var(--hs-bronze-tint);
  border-color: var(--hs-bronze);
  transform: translateY(-1px);
  outline: none;
}
.hs-spotlight__media-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hs-spotlight__highlight {
  position: absolute;
  border: 2px solid var(--hs-bronze);
  background: rgba(245, 201, 147, 0.18);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 4px rgba(245, 201, 147, 0.18), 0 16px 32px rgba(115, 83, 40, 0.25);
}
.hs-spotlight__highlight.is-active {
  opacity: 1;
  transform: scale(1);
}
.hs-spotlight__caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 12px 16px;
  background: rgba(26, 28, 26, 0.85);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hs-spotlight__caption.is-active { opacity: 1; transform: none; }

/* Malek365 stat band (sits below features) */
.hs-spotlight__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hs-line-2);
}
@media (min-width: 540px) { .hs-spotlight__stats { grid-template-columns: repeat(4, 1fr); } }
.hs-spotlight__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hs-spotlight__stat-num {
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--hs-bronze);
  line-height: 1.1;
}
.hs-spotlight__stat-label {
  font-family: var(--hs-font-label);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hs-ink-3);
}

/* ---- FAQ accordion ---- */
.hs-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.hs-faq__item {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.hs-faq__item.is-open {
  border-color: var(--hs-bronze);
  box-shadow: var(--hs-shadow-md);
}
.hs-faq__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: transparent;
  border: none;
  color: var(--hs-ink);
  font-family: var(--hs-font-display);
  font-weight: 600;
  font-size: 17px;
  text-align: start;
  cursor: pointer;
  line-height: 1.4;
}
.hs-faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--hs-bronze-tint);
  color: var(--hs-bronze);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.hs-faq__item.is-open .hs-faq__icon {
  transform: rotate(45deg);
  background: var(--hs-bronze);
  color: #fff;
}
.hs-faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hs-faq__panel-inner {
  padding: 0 28px 24px;
  color: var(--hs-ink-2);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html.js-motion-ready .hs-curtain__bg,
  html.js-motion-ready .hs-curtain__title,
  html.js-motion-ready .hs-curtain__kicker,
  html.js-motion-ready .hs-curtain__kicker::before {
    transition: none !important;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
  html.js-motion-ready .hs-headline .hs-word__inner,
  html.js-motion-ready .hs-display .hs-word__inner {
    transform: none !important;
    transition: none !important;
  }
  .hs-curtain__cta::after,
  .hs-btn--primary::after { display: none; }
  .hs-method::before { transform: scaleX(1) !important; transition: none !important; }
  .hs-testimonial { transition: none !important; }
  .hs-faq__panel { transition: none !important; }
}

/* ============================================================
   Force the page into the Stitch light palette regardless of any
   saved dark theme in localStorage (app.js may toggle data-theme).
   ============================================================ */
html.home-stitch-page,
html.home-stitch-page[data-theme],
html.home-stitch-page[data-theme="dark"] {
  --bg: #faf9f6;
  --ink: #1a1c1a;
  --muted: rgba(26, 28, 26, 0.62);
  --line: rgba(26, 28, 26, 0.12);
  --surface: #ffffff;
  --surface-2: #f4f3f1;
  --brand: #735328;
  --brand-2: #5e4118;
  --brand-tint: rgba(115, 83, 40, 0.14);
  --shadow: 0 14px 34px rgba(26, 28, 26, 0.08);
  background: #faf9f6;
  color-scheme: light;
}
html.home-stitch-page body {
  background: #faf9f6;
  color: #1a1c1a;
}
/* Keep header glass cream-toned on homepage */
html.home-stitch-page .site-header { background: rgba(250, 249, 246, 0.78); border-bottom-color: rgba(26, 28, 26, 0.08); }

/* Arabic readability: heavy letter-spacing and uppercase don't apply
   to Arabic script. Soften label/kicker/num classes when in AR. */
html[lang="ar"] .hs-label,
html[lang="ar"] .hs-curtain__kicker,
html[lang="ar"] .hs-hero__ticker-tag,
html[lang="ar"] .hs-stat-item__label,
html[lang="ar"] .hs-stat-item__tag,
html[lang="ar"] .hs-pillar__num,
html[lang="ar"] .hs-method__num,
html[lang="ar"] .hs-platform__tab-num,
html[lang="ar"] .hs-platform__panel-num,
html[lang="ar"] .hs-platform__brand-tag,
html[lang="ar"] .hs-form__label,
html[lang="ar"] .hs-spotlight__stat-label,
html[lang="ar"] .hs-mini-card__num,
html[lang="ar"] .hs-card__num,
html[lang="ar"] .hs-metric__label,
html[lang="ar"] .hs-link-arrow,
html[lang="ar"] .hs-testimonial__role,
html[lang="ar"] .hs-cta__channel-name,
html[lang="ar"] .hs-cta__channel-meta {
  letter-spacing: 0;
  text-transform: none;
}
