:root {
  --brand-yellow: #FDB91C;
  --brand-cream: #F9FAF0;
  --brand-dark: #1F2020;
  --brand-green: #07485B;

  --bg: var(--brand-dark);
  --surface: rgba(249, 250, 240, 0.08);
  --surface-strong: rgba(249, 250, 240, 0.14);
  --surface-light: #fffdf1;
  --ink: var(--brand-cream);
  --ink-dark: var(--brand-dark);
  --muted: rgba(249, 250, 240, 0.70);
  --muted-dark: rgba(31, 32, 32, 0.68);
  --line: rgba(249, 250, 240, 0.16);
  --line-dark: rgba(31, 32, 32, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 18px 52px rgba(31, 32, 32, 0.13);
  --radius: 30px;
  --radius-lg: 42px;
  --container: min(1520px, calc(100vw - 40px));
  --body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --title: 'Russo One', 'Montserrat', system-ui, sans-serif;
  --arabic: 'Alexandria', 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[data-lang='ar'] {
  font-family: var(--arabic);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--brand-yellow);
  color: #111;
}

.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;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  transform: translateY(-180%);
  background: var(--brand-yellow);
  color: #111;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(253, 185, 28, 0.24), transparent 24rem),
    radial-gradient(circle at 86% 8%, rgba(249, 250, 240, 0.10), transparent 22rem),
    radial-gradient(circle at 78% 72%, rgba(7, 72, 91, 0.74), transparent 34rem),
    linear-gradient(135deg, #1F2020 0%, #15282d 48%, #07485B 100%);
}

.site-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.075;
  background-image:
    url('../images/brighthive-pattern.svg'),
    url('../images/brighthive-pattern.svg'),
    url('../images/brighthive-pattern.svg');
  background-repeat: no-repeat;
  background-size: clamp(150px, 16vw, 260px), clamp(110px, 12vw, 190px), clamp(140px, 15vw, 230px);
  background-position: 6vw 18vh, 82vw 10vh, 70vw 78vh;
  pointer-events: none;
}

.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(249, 250, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 250, 240, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 14px;
  left: max(16px, 4vw);
  right: max(16px, 4vw);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 70px;
  padding: 0.68rem 0.85rem 0.68rem 1rem;
  border: 1px solid rgba(249, 250, 240, 0.18);
  border-radius: 999px;
  background: rgba(31, 32, 32, 0.68);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(31, 32, 32, 0.88);
  border-color: rgba(253, 185, 28, 0.30);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  min-width: 52px;
  min-height: 52px;
}

.brand img {
  width: 44px;
  height: 56px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.6vw, 1rem);
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.35rem;
  color: rgba(249, 250, 240, 0.78);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.35rem;
  right: 0.5rem;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--brand-yellow);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(253, 185, 28, 0.60);
  border-radius: 999px;
  background: rgba(253, 185, 28, 0.10);
  color: var(--brand-yellow) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--brand-yellow);
  color: #111 !important;
  transform: translateY(-2px);
}

.language-switch {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  flex: 0 0 auto;
  padding: 0.22rem;
  border: 1px solid rgba(253, 185, 28, 0.36);
  border-radius: 999px;
  background: rgba(249, 250, 240, 0.08);
}

.lang-option {
  border: 0;
  border-radius: 999px;
  min-width: 42px;
  min-height: 34px;
  padding: 0.25rem 0.75rem;
  background: transparent;
  color: var(--brand-cream);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  transform: translateY(-1px);
}

.lang-option.is-active {
  background: var(--brand-yellow);
  color: #111;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 46px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(249, 250, 240, 0.18);
  border-radius: 999px;
  background: rgba(249, 250, 240, 0.08);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-toggle-text {
  margin-left: 4px;
  font-size: 0.72rem;
}

.display,
.section-title,
.page-title,
.mega-title,
.work-showcase-title,
.service-card h3,
.project h3,
.package-card h3,
.tier h2,
.case-card h2,
.contact-card h2,
.payment-card h1,
.bespoke-band h2,
.work-overlay h2,
.next-step h2,
.how-head h2 {
  font-family: var(--title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  text-wrap: balance;
}

.eyebrow,
.tag,
.num,
.service-number {
  color: var(--brand-yellow);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  margin: 0 0 1.1rem;
  border: 1px solid rgba(253, 185, 28, 0.55);
  border-radius: 999px;
  color: var(--brand-yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-yellow);
}

.eyebrow.dark {
  color: var(--brand-green);
}

.yellow {
  color: var(--brand-yellow);
}

.stroke {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(249, 250, 240, 0.78);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 50px;
  border: 1px solid rgba(249, 250, 240, 0.18);
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
  color: #101010;
  box-shadow: 0 14px 40px rgba(253, 185, 28, 0.22);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: #ffd166;
  box-shadow: 0 18px 50px rgba(253, 185, 28, 0.28);
}

.btn.ghost {
  background: rgba(249, 250, 240, 0.06);
  color: var(--ink);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: rgba(253, 185, 28, 0.52);
  background: rgba(253, 185, 28, 0.10);
}

:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero,
.page-hero,
.team-hero,
.case-hero,
.work-showcase,
.payment-wrap {
  width: var(--container);
  margin-inline: auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 140px 0 76px;
}

.hero-inner {
  max-width: 1500px;
}

.hero-title {
  margin: 0 0 2rem;
  font-size: clamp(3.6rem, 10.8vw, 10.3rem);
  line-height: 0.88;
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 2rem;
  align-items: end;
  border-top: 1px solid rgba(249, 250, 240, 0.18);
  padding-top: 1.8rem;
}

.hero-copy {
  max-width: 920px;
  margin: 0;
  color: rgba(249, 250, 240, 0.90);
  font-size: clamp(1.35rem, 2.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.16;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 850px;
  margin: 2rem 0 0;
}

.stat {
  min-height: 126px;
  margin: 0;
  border: 1px solid rgba(249, 250, 240, 0.14);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(249, 250, 240, 0.11), rgba(249, 250, 240, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat dt {
  color: var(--brand-cream);
  font-family: var(--title);
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  line-height: 1;
}

.stat-infinity {
  display: inline-block;
  font-family: var(--body);
  font-size: 1.05em;
  font-weight: 900;
  letter-spacing: -0.08em;
  transform: scaleX(1.1) translateY(-0.03em);
  transform-origin: left center;
}

.stat dd {
  margin: 0.62rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marquee-section {
  overflow: hidden;
  border-block: 1px solid rgba(249, 250, 240, 0.15);
  background: rgba(0, 0, 0, 0.14);
  padding: 1.2rem 0;
}

.marquee {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(1.6rem, 4vw, 3rem);
  animation: marquee 32s linear infinite;
}

.marquee span {
  color: transparent;
  font-family: var(--title);
  font-size: clamp(3.4rem, 9.4vw, 8.8rem);
  line-height: 1;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1px rgba(249, 250, 240, 0.22);
}

.marquee strong {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
}

.marquee img {
  width: 46px;
  height: 66px;
  object-fit: contain;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.center-statement,
.cases-heading,
.section,
.services-preview,
.packages,
.service-detail-list,
.how-we-do,
.partners-section,
.contact-section,
.tier-grid,
.next-step {
  padding: clamp(4.2rem, 8vw, 7.4rem) max(20px, calc((100vw - 1520px) / 2));
}

.center-statement,
.cases-heading {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-inline: 20px;
}

.center-statement h2,
.cases-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 8.3vw, 8rem);
  line-height: 1.03;
}

.section,
.services-preview,
.packages {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 0;
}

.packages {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.section-kicker,
.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2.35rem, 5.8vw, 6rem);
  line-height: 0.95;
}

.service-grid,
.package-grid,
.team-grid,
.tier-grid,
.case-study-body {
  display: grid;
  gap: 1.25rem;
}

.package-grid,
.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.service-card {
  grid-column: span 2;
}

.service-grid .service-card:nth-child(4),
.service-grid .service-card:nth-child(5) {
  grid-column: span 3;
}

.package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.package-card,
.tier,
.team-card,
.case-card,
.contact-card,
.payment-card,
.project,
.work-tile {
  border: 1px solid rgba(249, 250, 240, 0.16);
  background: linear-gradient(180deg, rgba(249, 250, 240, 0.095), rgba(249, 250, 240, 0.038));
  box-shadow: var(--shadow);
}

.service-card,
.package-card,
.tier,
.team-card,
.case-card,
.contact-card,
.payment-card {
  border-radius: var(--radius);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 318px;
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover,
.service-card:focus-visible,
.package-card:hover,
.package-card:focus-within,
.tier:hover,
.tier:focus-within,
.project:hover,
.project:focus-visible,
.work-tile:hover,
.work-tile:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(253, 185, 28, 0.58);
}

.service-card-art {
  position: absolute;
  right: -2.8rem;
  top: -2.6rem;
  width: 13rem;
  height: 13rem;
  opacity: 0.19;
  pointer-events: none;
}

.service-1 .service-card-art { border-radius: 50%; background: repeating-linear-gradient(45deg, var(--brand-yellow) 0 8px, transparent 8px 18px); }
.service-2 .service-card-art { border: 34px solid var(--brand-yellow); transform: rotate(24deg); }
.service-3 .service-card-art { background: radial-gradient(circle, var(--brand-yellow) 0 12px, transparent 13px); background-size: 38px 38px; }
.service-4 .service-card-art { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 100%, 50% 72%, 20% 100%, 32% 56%, 2% 35%, 39% 35%); background: var(--brand-yellow); }
.service-5 .service-card-art { border: 2px solid var(--brand-yellow); border-radius: 28px; box-shadow: inset 0 0 0 35px rgba(253, 185, 28, 0.35); }
.service-6 .service-card-art { background: linear-gradient(135deg, var(--brand-yellow), transparent); clip-path: polygon(0 0, 100% 20%, 78% 100%, 18% 75%); }

.service-card h3 {
  margin: 4.5rem 0 1rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
}

.tier-price-hint,
.tier-price {
  font-family: var(--title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-yellow);
  letter-spacing: 0.02em;
  margin: 0.6rem 0 0;
}

.service-card p,
.project p,
.package-card p,
.tier p,
.case-card p,
.contact-card p,
.payment-card p,
.service-lead,
.team-intro p,
.how-row p,
.footer-main p,
.footer-cta p,
.page-hero p,
.case-copy p,
.bespoke-band p {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project {
  overflow: hidden;
  min-height: 500px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.project:hover img,
.project:focus-visible img {
  transform: scale(1.045);
  opacity: 1;
}

.project-info {
  padding: 1.6rem;
}

.project h3 {
  margin: 0.7rem 0 0.7rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}

.package-card,
.tier {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 360px;
  padding: 2rem;
}

.package-card h3,
.tier h2 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.page-hero {
  min-height: 56vh;
  display: grid;
  align-content: end;
  padding: 140px 0 clamp(3.2rem, 6vw, 5rem);
}

.page-title {
  max-width: 1150px;
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  line-height: 0.92;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 1.2rem 0 0;
  color: rgba(249, 250, 240, 0.74);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.service-detail-list,
.how-we-do,
.partners-section,
.contact-section {
  background: var(--brand-cream);
  color: var(--ink-dark);
}

.service-detail-list {
  display: grid;
  gap: 1rem;
}

.service-detail {
  width: var(--container);
  margin-inline: auto;
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.service-top {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-top p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-line {
  position: relative;
  height: 1px;
  background: var(--line-dark);
}

.service-line::after {
  content: '→';
  position: absolute;
  right: -0.2rem;
  top: 50%;
  color: var(--brand-green);
  font-size: 2rem;
  transform: translateY(-55%);
}

.service-detail h2 {
  margin: 0;
  color: var(--brand-green);
  font-family: var(--title);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
}

.service-lead {
  max-width: 780px;
  margin: 1.2rem 0 1.3rem;
  color: var(--muted-dark);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-wrap span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(7, 72, 91, 0.16);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(7, 72, 91, 0.06);
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 900;
}

.work-showcase {
  padding: 140px 0 78px;
}

.work-showcase-title {
  margin: 0 0 1.8rem;
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: 0.9;
}

.work-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 170px;
  gap: 1rem;
}

.work-tile {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-tile.tile-wide {
  grid-column: span 4;
}

.work-tile.tile-tall {
  grid-row: span 3;
}

.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.work-tile:hover img,
.work-tile:focus-visible img {
  transform: scale(1.045);
  opacity: 1;
}

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: #121212;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 14%, rgba(253, 185, 28, 0.94) 100%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.work-tile:hover .work-overlay,
.work-tile:focus-visible .work-overlay {
  opacity: 1;
  transform: none;
}

.work-overlay h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.3rem);
  line-height: 1;
}

.work-overlay p {
  margin: 0.35rem 0 0;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-logo {
  width: 36px;
  height: 48px;
  margin-bottom: 0.7rem;
}

.work-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: 140px 0 60px;
}

.case-copy h1 {
  margin: 0;
}

.case-copy p {
  margin: 1.2rem 0 1.4rem;
}

.case-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(249, 250, 240, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.case-visual img {
  width: 100%;
  height: clamp(360px, 48vw, 610px);
  object-fit: cover;
}

.case-study-body {
  width: var(--container);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  padding: 1.7rem;
}

.case-card h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  line-height: 1;
}

.next-step {
  width: var(--container);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(249, 250, 240, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(249, 250, 240, 0.07);
}

.next-step h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 5rem);
  line-height: 1;
}

.team-hero {
  padding: 136px 0 76px;
}

.team-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.4vw, 1.35rem);
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: clamp(2.2rem, 4vw, 3.7rem);
}

.mega-title {
  margin: 0;
  max-width: 100%;
  color: var(--brand-cream);
  font-size: clamp(4rem, 8.15vw, 9.6rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.mega-title strong {
  color: var(--brand-yellow);
  font-weight: inherit;
}

.team-intro > .eyebrow {
  margin: 0;
}

.team-intro > p:not(.eyebrow) {
  max-width: 900px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-lead {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(253, 185, 28, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(7, 72, 91, 0.98), rgba(31, 32, 32, 0.92));
  box-shadow: var(--shadow);
}

.team-lead .portrait {
  height: 200px;
  margin: 0;
}

.team-lead .portrait span {
  width: 88px;
  height: 88px;
  font-size: 1.3rem;
}

.team-lead-info h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.team-lead-info p {
  margin: 0;
  color: var(--brand-yellow);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-card {
  padding: 1rem;
}

.portrait {
  display: grid;
  place-items: center;
  height: 320px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 24%, rgba(253, 185, 28, 0.36), transparent 12rem),
    linear-gradient(135deg, rgba(7, 72, 91, 0.98), rgba(31, 32, 32, 0.92));
}

.portrait span {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(253, 185, 28, 0.55);
  border-radius: 50%;
  color: var(--brand-yellow);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.team-card h2 {
  margin: 1rem 0 0.2rem;
  font-size: 1.2rem;
}

.team-card p {
  margin: 0;
  color: var(--muted);
}

.how-we-do {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.how-head,
.accordion-list {
  width: var(--container);
  margin-inline: auto;
}

.how-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.how-head h2 {
  margin: 0;
  color: var(--brand-green);
  font-size: clamp(2.7rem, 7vw, 7rem);
  line-height: 0.95;
}

.stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  justify-self: end;
  color: var(--brand-green);
}

.stamp img {
  width: 78px;
  height: auto;
}

.orbit-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
  fill: var(--brand-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.accordion-list {
  border-top: 1px solid var(--line-dark);
}

.how-row {
  border-bottom: 1px solid var(--line-dark);
  padding: 1.15rem 0;
}

.how-row summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
  list-style: none;
}

.how-row summary::-webkit-details-marker {
  display: none;
}

.how-row summary span {
  margin-left: auto;
  color: var(--brand-green);
  transition: transform 0.2s ease;
}

.how-row[open] summary span {
  transform: rotate(180deg);
}

.how-row p {
  max-width: 850px;
  margin: 0.85rem 0 0;
  color: var(--muted-dark);
}

.how-row.is-animating summary {
  pointer-events: none;
}

.how-row p {
  transition: opacity 240ms ease, transform 240ms ease;
}

.how-row:not([open]) p {
  opacity: 0;
  transform: translateY(-0.25rem);
}

.how-row[open] p {
  opacity: 1;
  transform: translateY(0);
}

.partners-section {
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.partners-title,
.partners-wall {
  width: var(--container);
  margin-inline: auto;
}

.partners-title {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  margin-bottom: 2rem;
  text-align: left;
}

.partners-title .eyebrow {
  margin: 0;
}

.partners-title h2 {
  max-width: 980px;
  margin: 0;
  color: var(--brand-green);
  font-family: var(--title);
  font-size: clamp(2.4rem, 7.4vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.partners-wall {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.4rem;
  mask-image: none;
  -webkit-mask-image: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 72, 91, 0.28) transparent;
}

.partners-wall::-webkit-scrollbar {
  height: 6px;
}

.partners-wall::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(7, 72, 91, 0.24);
}

.partner-track {
  display: grid;
  width: max(100%, 1120px);
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: clamp(0.55rem, 1vw, 0.9rem);
  animation: none;
}

.partner-track:nth-child(2) {
  display: none;
}

.partner-track span {
  display: grid;
  place-items: center;
  min-height: clamp(86px, 7vw, 118px);
  border: 1px solid rgba(7, 72, 91, 0.18);
  border-radius: clamp(18px, 1.7vw, 28px);
  background: rgba(7, 72, 91, 0.045);
  color: var(--brand-green);
  font-family: var(--title);
  font-size: clamp(0.9rem, 1vw, 1.2rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@keyframes partners {
  to { transform: translateX(-50%); }
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  gap: 1.2rem;
}

.contact-section > * {
  min-width: 0;
}

.contact-card {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--surface-light);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  margin: 0 0 0.8rem;
  color: var(--brand-green);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.contact-card p,
.contact-card .form-note {
  color: var(--muted-dark);
}

.contact-aside {
  align-self: start;
  position: sticky;
  top: 116px;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.contact-form label {
  color: var(--brand-green);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 32, 32, 0.15);
  border-radius: 18px;
  background: #ffffff;
  color: var(--brand-dark);
  padding: 1rem 1.05rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand-green) 50%), linear-gradient(135deg, var(--brand-green) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(253, 185, 28, 0.18);
}

.honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.form-status {
  min-height: 1.5em;
  margin: 0.2rem 0 0;
  color: var(--brand-green);
  font-weight: 800;
}

.form-status.error {
  color: #9e2a2b;
}

.tier-grid {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 0;
}

.tier {
  min-height: 460px;
}

.tier.featured {
  border-color: rgba(253, 185, 28, 0.78);
  background: linear-gradient(180deg, rgba(253, 185, 28, 0.18), rgba(249, 250, 240, 0.05));
}

.tier ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.bespoke-band {
  width: var(--container);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(249, 250, 240, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  background: rgba(249, 250, 240, 0.07);
}

.bespoke-band h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 4.5vw, 5rem);
  line-height: 1;
}

.payment-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 140px 0 70px;
}

.payment-card {
  width: min(920px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.payment-card h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 7rem);
  line-height: 0.95;
}

.payment-summary {
  max-width: 430px;
  margin: 2rem auto;
  border: 1px solid rgba(249, 250, 240, 0.15);
  border-radius: 24px;
  padding: 1.2rem;
  background: rgba(249, 250, 240, 0.055);
}

.payment-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.payment-summary strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--brand-yellow);
  font-family: var(--title);
  font-size: 2.1rem;
  text-transform: uppercase;
}

.payment-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) minmax(145px, 0.55fr) minmax(190px, 0.7fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 3vw, 3.4rem);
  padding: clamp(3rem, 6vw, 5.6rem) max(20px, calc((100vw - 1520px) / 2)) 2rem;
  border-top: 1px solid rgba(253, 185, 28, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(253, 185, 28, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 28%, rgba(7, 72, 91, 0.78), transparent 34rem),
    linear-gradient(135deg, #151818 0%, #10292f 54%, #07485B 122%);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.07;
  background-image: url('../images/brighthive-pattern.svg');
  background-repeat: no-repeat;
  background-size: clamp(260px, 27vw, 480px);
  background-position: right max(20px, calc((100vw - 1520px) / 2)) bottom 2.2rem;
  pointer-events: none;
}

.site-footer::after {
  content: 'BRIGHTHIVE';
  position: absolute;
  right: max(20px, calc((100vw - 1520px) / 2));
  bottom: -0.2rem;
  z-index: -1;
  color: rgba(249, 250, 240, 0.035);
  font-family: var(--title);
  font-size: clamp(3.2rem, 13vw, 12rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.footer-main,
.footer-column,
.footer-cta,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: 1px solid rgba(249, 250, 240, 0.14);
  border-radius: 999px;
  background: rgba(249, 250, 240, 0.06);
}

.footer-brand img {
  width: 44px;
  height: 58px;
  object-fit: contain;
}

.footer-brand span {
  color: var(--brand-cream);
  font-family: var(--title);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-main p,
.footer-cta p {
  max-width: 520px;
  margin: 0.55rem 0;
  color: rgba(249, 250, 240, 0.72);
}

.footer-location {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 0.8rem !important;
  padding: 0.5rem 0.78rem;
  border: 1px solid rgba(253, 185, 28, 0.28);
  border-radius: 999px;
  background: rgba(253, 185, 28, 0.08);
  color: var(--brand-yellow) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.footer-column {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-width: 0;
  padding-top: 0.45rem;
}

.footer-column h2,
.footer-cta h2 {
  margin: 0 0 0.75rem;
  color: var(--brand-yellow);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: rgba(249, 250, 240, 0.76);
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--brand-yellow);
  transform: translateX(4px);
}

.footer-cta {
  align-self: start;
  padding: 1.25rem;
  border: 1px solid rgba(249, 250, 240, 0.14);
  border-radius: 28px;
  background: rgba(249, 250, 240, 0.06);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.footer-cta .btn {
  margin-top: 0.85rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  border-top: 1px solid rgba(249, 250, 240, 0.13);
  padding-top: 1.15rem;
  color: rgba(249, 250, 240, 0.58);
  font-size: 0.86rem;
  font-weight: 800;
}

.footer-bottom p {
  margin: 0;
}

[dir='rtl'] body {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-align: right;
}

[dir='rtl'] .display,
[dir='rtl'] .section-title,
[dir='rtl'] .page-title,
[dir='rtl'] .mega-title,
[dir='rtl'] .work-showcase-title,
[dir='rtl'] .service-card h3,
[dir='rtl'] .project h3,
[dir='rtl'] .package-card h3,
[dir='rtl'] .tier h2,
[dir='rtl'] .case-card h2,
[dir='rtl'] .contact-card h2,
[dir='rtl'] .payment-card h1,
[dir='rtl'] .bespoke-band h2,
[dir='rtl'] .work-overlay h2,
[dir='rtl'] .next-step h2,
[dir='rtl'] .how-head h2,
[dir='rtl'] .service-detail h2 {
  font-family: var(--arabic);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: none;
}

[dir='rtl'] .eyebrow,
[dir='rtl'] .btn,
[dir='rtl'] .nav-link,
[dir='rtl'] .tag,
[dir='rtl'] .num,
[dir='rtl'] label,
[dir='rtl'] .stat dd,
[dir='rtl'] .work-overlay p,
[dir='rtl'] .footer-column h2,
[dir='rtl'] .footer-cta h2,
[dir='rtl'] .service-number,
[dir='rtl'] .tag-wrap span {
  font-family: var(--arabic);
  font-weight: 900;
  letter-spacing: 0;
}

[dir='rtl'] .nav-links {
  margin-left: 0;
  margin-right: auto;
  direction: rtl;
}

[dir='rtl'] .nav-link::after {
  transform-origin: right;
}

[dir='rtl'] .brand,
[dir='rtl'] .footer-brand,
[dir='rtl'] .language-switch,
[dir='rtl'] .marquee,
[dir='rtl'] .partner-track {
  direction: ltr;
}

[dir='rtl'] .hero-meta {
  direction: ltr;
  grid-template-columns: auto minmax(0, 1.1fr);
}

[dir='rtl'] .hero-copy {
  order: 2;
  direction: rtl;
  text-align: right;
  justify-self: end;
}

[dir='rtl'] .hero-actions {
  order: 1;
  direction: rtl;
  justify-content: flex-start;
  justify-self: start;
}

[dir='rtl'] .service-card,
[dir='rtl'] .project-info,
[dir='rtl'] .package-card,
[dir='rtl'] .case-card,
[dir='rtl'] .contact-card,
[dir='rtl'] .payment-card,
[dir='rtl'] .tier,
[dir='rtl'] .footer-main,
[dir='rtl'] .footer-column,
[dir='rtl'] .footer-cta,
[dir='rtl'] .team-card,
[dir='rtl'] .team-lead {
  text-align: right;
}

[dir='rtl'] .service-card-art {
  right: auto;
  left: -2.8rem;
}

[dir='rtl'] .how-row summary span {
  margin-right: auto;
  margin-left: 0;
}

[dir='rtl'] .service-line::after {
  content: '←';
  right: auto;
  left: -0.2rem;
}

[dir='rtl'] .tier ul {
  padding-left: 0;
  padding-right: 1.1rem;
}

[dir='rtl'] select {
  background-position: 19px 50%, 14px 50%;
  padding-right: 1.05rem;
  padding-left: 3rem;
}

[dir='rtl'] input,
[dir='rtl'] textarea,
[dir='rtl'] select {
  text-align: right;
}

[dir='rtl'] .footer-brand span {
  font-family: var(--title);
}

[dir='rtl'] .footer-brand {
  padding-right: 0.4rem;
  padding-left: 0.85rem;
}

[dir='rtl'] .footer-column a:hover,
[dir='rtl'] .footer-column a:focus-visible {
  transform: translateX(-4px);
}


/* Arabic language refinement pass */
[dir='rtl'] body {
  font-size: 0.98rem;
  line-height: 1.82;
}

[dir='rtl'] .hero-title {
  max-width: 1120px;
  font-size: clamp(3.05rem, 8.5vw, 8.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

[dir='rtl'] .hero-copy {
  max-width: 900px;
  font-size: clamp(1.18rem, 2.1vw, 2.25rem);
  line-height: 1.65;
}

[dir='rtl'] .section-title,
[dir='rtl'] .page-title,
[dir='rtl'] .work-showcase-title,
[dir='rtl'] .mega-title {
  line-height: 1.08;
  letter-spacing: -0.025em;
}

[dir='rtl'] .page-title {
  font-size: clamp(3rem, 8.2vw, 7.1rem);
}

[dir='rtl'] .section-title,
[dir='rtl'] .work-showcase-title {
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
}

[dir='rtl'] .mega-title {
  font-size: clamp(3.35rem, 7.1vw, 8rem);
  white-space: nowrap;
}

[dir='rtl'] .center-statement h2,
[dir='rtl'] .cases-heading h2 {
  font-family: var(--arabic);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.8vw, 6.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: none;
}

[dir='rtl'] .eyebrow,
[dir='rtl'] .tag,
[dir='rtl'] .num,
[dir='rtl'] .service-number,
[dir='rtl'] .stat dd,
[dir='rtl'] .work-overlay p,
[dir='rtl'] .footer-column h2,
[dir='rtl'] .footer-cta h2 {
  font-size: 0.78rem;
  line-height: 1.7;
}

[dir='rtl'] .btn,
[dir='rtl'] .nav-link,
[dir='rtl'] .nav-cta {
  line-height: 1.4;
  white-space: nowrap;
}

[dir='rtl'] .nav-link::after {
  left: 0.5rem;
  right: 0.35rem;
}

[dir='rtl'] .stat dt,
[dir='rtl'] .partner-track span,
[dir='rtl'] .payment-summary strong {
  font-family: var(--title);
  direction: ltr;
}

[dir='rtl'] .stat dd,
[dir='rtl'] .service-card p,
[dir='rtl'] .project p,
[dir='rtl'] .package-card p,
[dir='rtl'] .tier p,
[dir='rtl'] .case-card p,
[dir='rtl'] .contact-card p,
[dir='rtl'] .payment-card p,
[dir='rtl'] .service-lead,
[dir='rtl'] .team-intro p,
[dir='rtl'] .how-row p,
[dir='rtl'] .footer-main p,
[dir='rtl'] .footer-cta p,
[dir='rtl'] .page-hero p,
[dir='rtl'] .case-copy p,
[dir='rtl'] .bespoke-band p {
  line-height: 1.9;
}

[dir='rtl'] .service-card h3,
[dir='rtl'] .project h3,
[dir='rtl'] .package-card h3,
[dir='rtl'] .tier h2,
[dir='rtl'] .case-card h2,
[dir='rtl'] .contact-card h2,
[dir='rtl'] .payment-card h1,
[dir='rtl'] .bespoke-band h2,
[dir='rtl'] .next-step h2,
[dir='rtl'] .how-head h2,
[dir='rtl'] .service-detail h2 {
  letter-spacing: -0.02em;
}

[dir='rtl'] .service-card h3 {
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
}

[dir='rtl'] .service-detail h2 {
  font-size: clamp(2.8rem, 6.8vw, 6.6rem);
}

[dir='rtl'] .service-top {
  grid-template-columns: auto minmax(90px, 1fr) auto;
}

[dir='rtl'] .tag-wrap span {
  line-height: 1.5;
  padding-inline: 1rem;
}

[dir='rtl'] .partners-title {
  text-align: right;
  justify-items: start;
}

[dir='rtl'] .partners-title h2 {
  font-family: var(--arabic);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

[dir='rtl'] .partner-track span {
  text-align: center;
}

[dir='rtl'] .how-row summary {
  line-height: 1.6;
}

[dir='rtl'] .footer-bottom {
  text-align: right;
}

[dir='rtl'] .footer-location {
  direction: rtl;
}

[dir='rtl'] .footer-cta .btn,
[dir='rtl'] .bespoke-band .btn,
[dir='rtl'] .next-step .btn {
  width: fit-content;
}

[dir='rtl'] option {
  font-family: var(--arabic);
}

@media (max-width: 820px) {
  [dir='rtl'] .hero-title {
    font-size: clamp(2.7rem, 13vw, 5.2rem);
    white-space: normal;
  }

  [dir='rtl'] .mega-title {
    font-size: clamp(2.45rem, 10.8vw, 4.5rem);
    white-space: normal;
  }

  [dir='rtl'] .page-title,
  [dir='rtl'] .section-title,
  [dir='rtl'] .work-showcase-title {
    font-size: clamp(2.55rem, 12vw, 4.8rem);
  }

  [dir='rtl'] .nav-link {
    justify-content: flex-start;
    text-align: right;
  }

  [dir='rtl'] .service-top {
    grid-template-columns: 1fr;
  }

  [dir='rtl'] .footer-bottom {
    display: grid;
    gap: 0.55rem;
  }
}

@media (max-width: 1180px) {
  .hero-meta,
  .case-hero,
  .contact-section,
  .bespoke-band {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .service-grid,
  .team-grid,
  .case-study-body,
  .tier-grid,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    grid-column: auto;
  }

  .footer-main,
  .footer-cta,
  .footer-bottom {
    grid-column: 1 / -1;
  }

  .work-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .work-tile,
  .work-tile.tile-wide,
  .work-tile.tile-tall {
    grid-column: span 2;
    grid-row: span 2;
  }

  .contact-aside {
    position: static;
  }

  .how-head {
    grid-template-columns: 1fr 160px;
  }

  .stamp {
    width: 160px;
    height: 160px;
  }
}


@media (max-width: 1180px) {
  .mega-title {
    font-size: clamp(3.2rem, 9.6vw, 7rem);
  }
}

@media (max-width: 560px) {
  .mega-title {
    font-size: clamp(2.25rem, 9.8vw, 3.35rem);
    letter-spacing: -0.055em;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    left: 14px;
    right: 14px;
    min-height: 62px;
    padding: 0.5rem;
  }

  .brand img {
    width: 38px;
    height: 48px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(249, 250, 240, 0.17);
    border-radius: 24px;
    background: rgba(31, 32, 32, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.45rem 0.55rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .language-switch {
    margin-left: auto;
  }

  .lang-option {
    min-width: 38px;
    min-height: 31px;
    padding: 0.2rem 0.62rem;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-title {
    font-size: clamp(3.05rem, 16vw, 5.3rem);
  }

  .hero-meta,
  .hero-stats,
  .service-grid,
  .work-grid,
  .package-grid,
  .team-grid,
  .case-study-body,
  .tier-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-column: auto;
  }

  .hero-stats {
    max-width: none;
  }

  .stat {
    min-height: 108px;
  }

  .section-kicker,
  .split-head,
  .next-step,
  .bespoke-band,
  .partners-title {
    display: grid;
    align-items: start;
  }

  .page-hero,
  .team-hero,
  .case-hero,
  .work-showcase,
  .payment-wrap {
    padding-top: 112px;
  }

  .page-title {
    font-size: clamp(2.85rem, 14vw, 5.1rem);
  }

  .service-card {
    min-height: 272px;
  }

  .center-statement,
  .cases-heading {
    min-height: 48vh;
  }

  .service-top {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .service-line {
    width: 1px;
    min-height: 36px;
  }

  .service-line::after {
    left: -8px;
    right: auto;
    top: auto;
    bottom: -22px;
    transform: rotate(90deg);
    font-size: 2.35rem;
  }

  .service-detail h2 {
    font-size: clamp(2.7rem, 13vw, 5rem);
  }

  .portrait {
    height: 280px;
  }

  .team-lead {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .team-lead .portrait {
    width: 100%;
    max-width: 280px;
  }

  .how-head {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .stamp {
    justify-self: start;
  }

  .work-showcase-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .work-tile,
  .work-tile.tile-wide,
  .work-tile.tile-tall {
    grid-column: auto;
    grid-row: auto;
    height: 355px;
    min-height: 0;
  }

  .work-overlay {
    opacity: 1;
    transform: none;
  }

  .case-visual img {
    height: 360px;
  }

  .contact-card,
  .case-card,
  .payment-card,
  .tier,
  .package-card {
    padding: 1.35rem;
    border-radius: 24px;
  }

  .btn {
    width: 100%;
  }

  .footer-cta .btn {
    width: max-content;
  }

  .site-footer {
    gap: 1.3rem;
    padding-bottom: 1.5rem;
  }

  .site-footer::after {
    left: 20px;
    right: auto;
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .footer-main,
  .footer-column,
  .footer-cta,
  .footer-bottom {
    grid-column: 1;
  }

  .footer-brand img {
    width: 38px;
    height: 50px;
  }

  .footer-bottom {
    display: block;
  }

  [dir='rtl'] .language-switch {
    margin-left: 0;
    margin-right: auto;
  }

  [dir='rtl'] .nav-link {
    justify-content: flex-end;
  }

  [dir='rtl'] .nav-cta {
    justify-content: center;
  }

  [dir='rtl'] .hero-meta,
  [dir='rtl'] .hero-copy,
  [dir='rtl'] .hero-actions {
    display: block;
    order: initial;
  }

  [dir='rtl'] .hero-meta,
  [dir='rtl'] .hero-copy,
  [dir='rtl'] .hero-actions {
    direction: rtl;
  }

  [dir='rtl'] .hero-copy {
    text-align: right;
  }

  [dir='rtl'] .hero-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 460px) {
  :root {
    --container: min(100vw - 28px, 1520px);
  }

  .site-header {
    left: 10px;
    right: 10px;
  }

  .menu-toggle-text {
    display: none;
  }

  .menu-toggle {
    min-width: 42px;
    min-height: 42px;
    padding-inline: 12px;
  }

  .lang-option {
    min-width: 35px;
    padding: 0.18rem 0.5rem;
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .stat {
    padding: 1rem;
  }

  .stat dd {
    font-size: 0.68rem;
  }

  .service-card h3 {
    margin-top: 3rem;
  }

  .tag-wrap span {
    width: 100%;
    justify-content: center;
  }

  .footer-column a {
    padding-block: 0.2rem;
  }

  .footer-cta {
    padding: 1rem;
    border-radius: 22px;
  }

  .footer-location {
    width: 100%;
    justify-content: center;
  }

  .payment-actions {
    display: grid;
    width: 100%;
  }
}

@media (hover: none) {
  .work-overlay {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.form-status a {
  color: var(--color-green, #07485B);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form-status-secondary {
  display: inline;
}


/* Final client requested refinements */
.center-statement,
.cases-heading {
  min-height: clamp(360px, 46vh, 560px);
  padding-block: clamp(3.4rem, 6vw, 5.6rem);
}

.center-statement h2,
.cases-heading h2 {
  max-width: 1180px;
  font-size: clamp(2.6rem, 6.15vw, 6.7rem);
  line-height: 1.02;
}

.section-kicker {
  display: grid;
  justify-items: start;
  align-items: start;
  gap: 0.55rem;
  margin-bottom: clamp(1.45rem, 3vw, 2.4rem);
  text-align: left;
}

.section-kicker .section-title {
  max-width: 1050px;
  font-size: clamp(2.55rem, 6.2vw, 6.3rem);
}

.partners-wall {
  display: flex;
  gap: 0;
  overflow: hidden;
  padding-bottom: 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  scrollbar-width: none;
}

.partners-wall::-webkit-scrollbar {
  display: none;
}

.partner-track,
.partner-track:nth-child(2) {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  grid-template-columns: none;
  gap: clamp(0.8rem, 1.4vw, 1.15rem);
  padding-right: clamp(0.8rem, 1.4vw, 1.15rem);
  animation: partners-marquee 28s linear infinite;
}

.partners-wall:hover .partner-track {
  animation-play-state: paused;
}

.partner-track span {
  min-width: clamp(165px, 14vw, 235px);
  min-height: clamp(82px, 7vw, 118px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.partner-track span:hover {
  transform: translateY(-3px);
  border-color: rgba(253, 185, 28, 0.44);
  background: rgba(253, 185, 28, 0.08);
}

@keyframes partners-marquee {
  to { transform: translateX(-100%); }
}

.how-row {
  overflow: hidden;
}

.how-row.is-animating {
  overflow: hidden;
}

.how-row summary span {
  flex: 0 0 auto;
}

.site-footer::after {
  content: none;
}

.site-footer {
  grid-template-columns: minmax(280px, 1.1fr) minmax(140px, 0.52fr) minmax(190px, 0.66fr) minmax(300px, 0.9fr);
  padding-top: clamp(3.2rem, 5.4vw, 4.8rem);
}

.site-footer::before {
  opacity: 0.055;
  background-size: clamp(180px, 18vw, 320px);
  background-position: right max(20px, calc((100vw - 1520px) / 2)) top 1.8rem;
}

.footer-brand {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0.78rem;
}

.footer-brand img {
  width: 48px;
  height: 64px;
}

.footer-brand span {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.footer-bottom {
  justify-content: flex-start;
  min-height: auto;
}

[dir='rtl'] .stroke {
  color: var(--brand-cream);
  -webkit-text-stroke: 0;
}

[dir='rtl'] .marquee-section,
[dir='rtl'] .marquee,
[dir='rtl'] .partners-wall,
[dir='rtl'] .partner-track {
  direction: ltr;
}

[dir='rtl'] .section-kicker,
[dir='rtl'] .split-head,
[dir='rtl'] .partners-title {
  justify-items: end;
  text-align: right;
}

[dir='rtl'] .services-preview .section-kicker {
  justify-items: end;
  text-align: right;
}

[dir='rtl'] .next-step,
[dir='rtl'] .bespoke-band {
  direction: rtl;
  flex-direction: row;
}

[dir='rtl'] .next-step .btn,
[dir='rtl'] .bespoke-band .btn {
  margin-inline-start: auto;
}

[dir='rtl'] .center-statement,
[dir='rtl'] .cases-heading {
  min-height: clamp(330px, 42vh, 520px);
}

[dir='rtl'] .center-statement h2,
[dir='rtl'] .cases-heading h2 {
  max-width: 1120px;
  font-size: clamp(2.15rem, 5.2vw, 5.1rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

@media (max-width: 820px) {
  .center-statement,
  .cases-heading {
    min-height: auto;
    padding-block: clamp(3rem, 16vw, 4.4rem);
  }

  .center-statement h2,
  .cases-heading h2 {
    font-size: clamp(2.15rem, 11vw, 4.2rem);
    line-height: 1.04;
  }

  .section-kicker .section-title {
    font-size: clamp(2.2rem, 12vw, 4.35rem);
  }

  .partner-track,
  .partner-track:nth-child(2) {
    animation-duration: 22s;
  }

  .partner-track span {
    min-width: 155px;
    min-height: 78px;
  }

  .footer-brand img {
    width: 42px;
    height: 56px;
  }

  [dir='rtl'] .center-statement h2,
  [dir='rtl'] .cases-heading h2 {
    font-size: clamp(2rem, 10vw, 3.55rem);
    line-height: 1.22;
  }

  [dir='rtl'] .next-step,
  [dir='rtl'] .bespoke-band {
    display: grid;
  }

  [dir='rtl'] .next-step .btn,
  [dir='rtl'] .bespoke-band .btn {
    margin-inline-start: 0;
  }
}

@media (max-width: 460px) {
  .center-statement h2,
  .cases-heading h2 {
    font-size: clamp(1.95rem, 10.5vw, 3.15rem);
  }

  .partner-track span {
    min-width: 140px;
  }
}

/* Tighten oversized statement sections after final review */
.center-statement,
.cases-heading {
  min-height: auto !important;
  padding-block: clamp(2.2rem, 4.2vw, 3.8rem) !important;
}

.center-statement h2,
.cases-heading h2 {
  max-width: 960px !important;
  font-size: clamp(2.4rem, 5vw, 5.2rem) !important;
  line-height: 0.98 !important;
}

.cases-heading h2 {
  max-width: 820px !important;
}

[dir='rtl'] .center-statement,
[dir='rtl'] .cases-heading {
  min-height: auto !important;
  padding-block: clamp(2rem, 4vw, 3.4rem) !important;
}

[dir='rtl'] .center-statement h2,
[dir='rtl'] .cases-heading h2 {
  max-width: 900px !important;
  font-size: clamp(2.05rem, 4.4vw, 4.45rem) !important;
  line-height: 1.18 !important;
}

@media (max-width: 820px) {
  .center-statement,
  .cases-heading,
  [dir='rtl'] .center-statement,
  [dir='rtl'] .cases-heading {
    padding-block: clamp(2rem, 11vw, 3rem) !important;
  }

  .center-statement h2,
  .cases-heading h2 {
    max-width: 92vw !important;
    font-size: clamp(2rem, 9vw, 3.15rem) !important;
    line-height: 1.02 !important;
  }

  [dir='rtl'] .center-statement h2,
  [dir='rtl'] .cases-heading h2 {
    font-size: clamp(1.9rem, 8.5vw, 3rem) !important;
    line-height: 1.22 !important;
  }
}

/* Smooth accordion pass - stable across English, Arabic and mobile */
.accordion-list {
  overflow: hidden;
}

.how-row {
  padding: 0 !important;
  overflow: hidden;
}

.how-row summary {
  min-height: clamp(68px, 6.2vw, 92px);
  padding-block: clamp(1rem, 2vw, 1.25rem);
  outline-offset: 6px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.how-row.is-animating summary {
  pointer-events: none;
}

.accordion-panel {
  overflow: hidden;
  will-change: height;
}

.accordion-panel-inner {
  padding-bottom: clamp(1rem, 2vw, 1.35rem);
}

.accordion-panel-inner p,
.how-row .accordion-panel p {
  max-width: 850px;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.how-row summary span {
  transition: transform 260ms cubic-bezier(.22,.61,.36,1);
}

[dir='rtl'] .accordion-list,
[dir='rtl'] .how-row,
[dir='rtl'] .how-row summary,
[dir='rtl'] .accordion-panel,
[dir='rtl'] .accordion-panel-inner {
  direction: rtl;
}

[dir='rtl'] .how-row summary {
  text-align: right;
}

[dir='rtl'] .accordion-panel-inner p,
[dir='rtl'] .how-row .accordion-panel p {
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
  text-align: right;
}

@media (max-width: 820px) {
  .how-row summary {
    min-height: clamp(58px, 14vw, 76px);
    font-size: clamp(1.08rem, 6vw, 1.55rem);
    line-height: 1.18;
    gap: 0.75rem;
  }

  .accordion-panel-inner {
    padding-bottom: 1rem;
  }

  .accordion-panel-inner p,
  .how-row .accordion-panel p {
    max-width: 100%;
    font-size: 0.98rem;
  }

  [dir='rtl'] .how-row summary {
    font-size: clamp(1.05rem, 5.3vw, 1.45rem);
    line-height: 1.35;
  }
}

/* Compact global hero sections - final client pass */
.page-hero {
  min-height: auto !important;
  align-content: start !important;
  padding-top: clamp(6.4rem, 7.4vw, 7.8rem) !important;
  padding-bottom: clamp(2.1rem, 3.8vw, 3.4rem) !important;
}

.page-title {
  max-width: 980px !important;
  font-size: clamp(2.85rem, 6vw, 6.1rem) !important;
  line-height: 0.96 !important;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px !important;
  margin-top: 0.9rem !important;
  font-size: clamp(0.98rem, 1.22vw, 1.16rem) !important;
}

.work-showcase {
  padding-top: clamp(6.4rem, 7.4vw, 7.8rem) !important;
  padding-bottom: clamp(2.8rem, 4vw, 4.2rem) !important;
}

.work-showcase-title {
  max-width: 1040px !important;
  margin-bottom: clamp(1.15rem, 2.2vw, 1.6rem) !important;
  font-size: clamp(2.9rem, 7vw, 6.6rem) !important;
  line-height: 0.96 !important;
}

.team-hero {
  padding-top: clamp(6.4rem, 7.4vw, 7.8rem) !important;
  padding-bottom: clamp(2.6rem, 4vw, 4.2rem) !important;
}

.team-intro {
  margin-bottom: clamp(1.4rem, 2.8vw, 2.6rem) !important;
}

.mega-title {
  max-width: 1050px !important;
  font-size: clamp(3.05rem, 6.6vw, 7.2rem) !important;
  line-height: 0.92 !important;
}

.case-hero {
  padding-top: clamp(6.4rem, 7.4vw, 7.8rem) !important;
  padding-bottom: clamp(2.6rem, 4vw, 4rem) !important;
}

.case-visual img {
  height: clamp(300px, 38vw, 500px) !important;
}

[dir='rtl'] .page-title {
  max-width: 980px !important;
  font-size: clamp(2.45rem, 5.25vw, 5.15rem) !important;
  line-height: 1.13 !important;
}

[dir='rtl'] .page-hero,
[dir='rtl'] .team-hero,
[dir='rtl'] .case-hero,
[dir='rtl'] .work-showcase {
  text-align: right;
}

[dir='rtl'] .page-hero p:not(.eyebrow) {
  max-width: 760px !important;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem) !important;
  line-height: 1.75 !important;
}

[dir='rtl'] .mega-title {
  max-width: 1040px !important;
  font-size: clamp(2.65rem, 5.4vw, 5.8rem) !important;
  line-height: 1.08 !important;
  white-space: normal !important;
}

[dir='rtl'] .work-showcase-title {
  max-width: 1040px !important;
  font-size: clamp(2.55rem, 5.6vw, 5.6rem) !important;
  line-height: 1.08 !important;
}

@media (max-width: 820px) {
  .page-hero,
  .work-showcase,
  .team-hero,
  .case-hero {
    padding-top: 6rem !important;
    padding-bottom: clamp(1.8rem, 8vw, 2.8rem) !important;
  }

  .page-title,
  .work-showcase-title,
  .mega-title {
    max-width: 94vw !important;
    font-size: clamp(2.2rem, 10vw, 3.6rem) !important;
    line-height: 1.02 !important;
  }

  .page-hero p:not(.eyebrow),
  .team-intro > p:not(.eyebrow) {
    max-width: 94vw !important;
    margin-top: 0.75rem !important;
    font-size: 0.98rem !important;
  }

  .case-hero {
    gap: 1.2rem !important;
  }

  .case-visual img {
    height: clamp(240px, 62vw, 340px) !important;
  }

  [dir='rtl'] .page-title,
  [dir='rtl'] .work-showcase-title,
  [dir='rtl'] .mega-title {
    font-size: clamp(2rem, 8.8vw, 3.25rem) !important;
    line-height: 1.18 !important;
  }
}

@media (max-width: 460px) {
  .page-hero,
  .work-showcase,
  .team-hero,
  .case-hero {
    padding-top: 5.4rem !important;
    padding-bottom: 1.8rem !important;
  }

  .page-title,
  .work-showcase-title,
  .mega-title {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  [dir='rtl'] .page-title,
  [dir='rtl'] .work-showcase-title,
  [dir='rtl'] .mega-title {
    font-size: clamp(1.85rem, 9.4vw, 2.75rem) !important;
  }
}

/* Final RTL parity fix: keep the Brighthive mark on the same side as the English methodology block. */
[dir='rtl'] .how-head {
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) 210px;
}

[dir='rtl'] .how-head > div:first-child {
  direction: rtl;
  text-align: right;
}

[dir='rtl'] .how-head .stamp {
  justify-self: end;
}

@media (max-width: 1180px) {
  [dir='rtl'] .how-head {
    grid-template-columns: minmax(0, 1fr) 160px;
  }
}

@media (max-width: 820px) {
  [dir='rtl'] .how-head {
    grid-template-columns: 1fr;
  }

  [dir='rtl'] .how-head .stamp {
    justify-self: end;
  }
}

/* Logo stamp parity: keep the circular orbit around the Brighthive mark in EN/AR. */
.stamp {
  isolation: isolate;
  border-radius: 999px;
  overflow: visible;
}

.stamp::before {
  content: '';
  position: absolute;
  inset: 7px;
  z-index: 0;
  border: 1px solid rgba(7, 72, 91, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 185, 28, 0.10) 0 34%, transparent 35% 100%);
  box-shadow: inset 0 0 0 1px rgba(253, 185, 28, 0.14);
  pointer-events: none;
}

.stamp::after {
  content: '';
  position: absolute;
  inset: 48px;
  z-index: 0;
  border: 1px solid rgba(253, 185, 28, 0.48);
  border-radius: 50%;
  pointer-events: none;
}

.stamp img,
.stamp .orbit-text {
  position: relative;
  z-index: 1;
}

.stamp img {
  width: 78px;
}

.stamp .orbit-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  opacity: 0.95;
  transform-origin: 50% 50%;
}

[dir='rtl'] .stamp,
[dir='rtl'] .stamp .orbit-text,
[dir='rtl'] .stamp text,
[dir='rtl'] .stamp textPath {
  direction: ltr;
  unicode-bidi: isolate;
  text-anchor: start;
}

@media (max-width: 820px) {
  .stamp::before {
    inset: 6px;
  }

  .stamp::after {
    inset: 40px;
  }

  .stamp img {
    width: 68px;
  }
}


/* =========================================================
   Arabic rebuild pass - final RTL typography/alignment system
   Keeps English unchanged while making Arabic readable, compact and aligned.
   ========================================================= */

/* General Arabic typography */
html[dir='rtl'] body {
  font-family: var(--arabic);
  text-align: right;
  line-height: 1.78;
}

html[dir='rtl'] .display,
html[dir='rtl'] .section-title,
html[dir='rtl'] .page-title,
html[dir='rtl'] .mega-title,
html[dir='rtl'] .work-showcase-title,
html[dir='rtl'] .service-card h3,
html[dir='rtl'] .project h3,
html[dir='rtl'] .package-card h3,
html[dir='rtl'] .tier h2,
html[dir='rtl'] .case-card h2,
html[dir='rtl'] .contact-card h2,
html[dir='rtl'] .payment-card h1,
html[dir='rtl'] .bespoke-band h2,
html[dir='rtl'] .work-overlay h2,
html[dir='rtl'] .next-step h2,
html[dir='rtl'] .how-head h2,
html[dir='rtl'] .service-detail h2 {
  font-family: var(--arabic) !important;
  font-weight: 900 !important;
  text-transform: none !important;
  letter-spacing: -0.015em !important;
  line-height: 1.14 !important;
}

html[dir='rtl'] .eyebrow,
html[dir='rtl'] .tag,
html[dir='rtl'] .num,
html[dir='rtl'] .service-number,
html[dir='rtl'] .btn,
html[dir='rtl'] .nav-link,
html[dir='rtl'] label,
html[dir='rtl'] .footer-column h2,
html[dir='rtl'] .footer-cta h2,
html[dir='rtl'] .tag-wrap span {
  font-family: var(--arabic) !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}

/* Do not let RTL break English brand visuals, logo marquees or partner names. */
html[dir='rtl'] .brand,
html[dir='rtl'] .footer-brand,
html[dir='rtl'] .language-switch,
html[dir='rtl'] .marquee,
html[dir='rtl'] .partners-wall,
html[dir='rtl'] .partner-track,
html[dir='rtl'] .partner-track span,
html[dir='rtl'] .stat dt,
html[dir='rtl'] .payment-summary strong {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

html[dir='rtl'] .stroke {
  color: var(--brand-cream) !important;
  -webkit-text-stroke: 0 !important;
}

/* Hero CTA: Arabic text on the right, buttons on the left. */
html[dir='rtl'] .hero-meta {
  direction: ltr !important;
  grid-template-columns: minmax(240px, auto) minmax(0, 1fr) !important;
  align-items: center !important;
}

html[dir='rtl'] .hero-copy {
  direction: rtl !important;
  order: 2 !important;
  justify-self: end !important;
  text-align: right !important;
  max-width: 920px !important;
  font-size: clamp(1.25rem, 2.15vw, 2.2rem) !important;
  line-height: 1.55 !important;
}

html[dir='rtl'] .hero-actions {
  direction: rtl !important;
  order: 1 !important;
  justify-self: start !important;
  justify-content: flex-start !important;
}

html[dir='rtl'] .hero-title {
  max-width: 1120px !important;
  font-size: clamp(3rem, 7.4vw, 7.4rem) !important;
  line-height: 1.1 !important;
}

/* Compact oversized statement sections in English and Arabic. */
.center-statement,
.cases-heading {
  min-height: auto !important;
  padding-block: clamp(2.4rem, 4vw, 3.7rem) !important;
}

.center-statement h2,
.cases-heading h2 {
  max-width: 1020px !important;
  font-size: clamp(2.35rem, 4.55vw, 4.85rem) !important;
  line-height: 1.06 !important;
}

.cases-heading h2 {
  max-width: 850px !important;
}

html[dir='rtl'] .center-statement h2,
html[dir='rtl'] .cases-heading h2 {
  max-width: 980px !important;
  font-size: clamp(2rem, 3.85vw, 4rem) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.01em !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

/* Section headings: Arabic right edge, English left edge. */
.section-kicker,
.split-head,
.partners-title {
  text-align: left;
}

html[dir='rtl'] .section-kicker,
html[dir='rtl'] .split-head,
html[dir='rtl'] .partners-title {
  direction: rtl !important;
  text-align: right !important;
}

html[dir='rtl'] .services-preview .section-kicker,
html[dir='rtl'] .partners-section .partners-title {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 0.35rem !important;
  margin-inline: auto !important;
}

html[dir='rtl'] .services-preview .section-kicker .eyebrow,
html[dir='rtl'] .services-preview .section-kicker .section-title,
html[dir='rtl'] .partners-section .partners-title .eyebrow,
html[dir='rtl'] .partners-section .partners-title h2 {
  width: auto !important;
  max-width: min(100%, 980px) !important;
  align-self: flex-end !important;
  justify-self: end !important;
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
  text-align: right !important;
}

html[dir='rtl'] .section-title {
  font-size: clamp(2.25rem, 4.7vw, 4.95rem) !important;
  line-height: 1.14 !important;
}

html[dir='rtl'] .partners-title h2 {
  font-size: clamp(2.35rem, 5.3vw, 5.4rem) !important;
  line-height: 1.08 !important;
}

/* About page: Arabic title is only البرايتماندز, aligned right, no extra word. */
html[dir='rtl'] .team-intro {
  direction: rtl !important;
  align-items: flex-end !important;
  text-align: right !important;
}

html[dir='rtl'] .team-intro .eyebrow,
html[dir='rtl'] .team-intro .mega-title,
html[dir='rtl'] .team-intro > p:not(.eyebrow) {
  width: auto !important;
  max-width: min(100%, 980px) !important;
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
  text-align: right !important;
}

html[dir='rtl'] .team-intro .mega-title {
  font-size: clamp(2.35rem, 5vw, 5rem) !important;
  line-height: 1.16 !important;
  white-space: normal !important;
}

html[dir='rtl'] .team-intro .mega-title strong {
  color: var(--brand-yellow) !important;
}

/* Team cards stay in English even in Arabic mode. */
html[dir='rtl'] .team-card h2,
html[dir='rtl'] .team-card p,
html[dir='rtl'] .portrait span {
  direction: ltr !important;
  text-align: right !important;
  font-family: var(--body) !important;
  letter-spacing: 0 !important;
}

/* Methodology stamp: keep circular text only. No circle stroke or logo background. */
.stamp::before,
.stamp::after {
  content: none !important;
  display: none !important;
}

.stamp {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.stamp .orbit-text {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
}

.stamp img {
  position: relative !important;
  z-index: 3 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

html[dir='rtl'] .how-head {
  direction: rtl !important;
}

html[dir='rtl'] .how-head > div:first-child {
  text-align: right !important;
}

html[dir='rtl'] .how-head .stamp,
html[dir='rtl'] .stamp .orbit-text,
html[dir='rtl'] .stamp text,
html[dir='rtl'] .stamp textPath {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

/* Page heroes and large headings: less empty space, balanced desktop/tablet/mobile. */
.page-hero,
.team-hero,
.work-showcase,
.case-hero {
  min-height: auto !important;
  padding-top: clamp(104px, 8vw, 128px) !important;
  padding-bottom: clamp(2.2rem, 4vw, 3.5rem) !important;
}

.page-title,
.work-showcase-title,
.mega-title {
  max-width: 980px !important;
  font-size: clamp(2.55rem, 5.4vw, 5.65rem) !important;
  line-height: 1.0 !important;
}

html[dir='rtl'] .page-title,
html[dir='rtl'] .work-showcase-title,
html[dir='rtl'] .mega-title {
  max-width: 980px !important;
  font-size: clamp(2.25rem, 4.7vw, 4.85rem) !important;
  line-height: 1.18 !important;
}

.page-hero p:not(.eyebrow),
.team-intro > p:not(.eyebrow) {
  max-width: 820px !important;
}

/* Partnership hero should not feel empty. */
body:has(.tier-grid) .page-hero {
  padding-bottom: clamp(1.6rem, 3vw, 2.6rem) !important;
}

/* Cards/details Arabic direction */
html[dir='rtl'] .service-card,
html[dir='rtl'] .project-info,
html[dir='rtl'] .package-card,
html[dir='rtl'] .case-card,
html[dir='rtl'] .contact-card,
html[dir='rtl'] .payment-card,
html[dir='rtl'] .tier,
html[dir='rtl'] .footer-main,
html[dir='rtl'] .footer-column,
html[dir='rtl'] .footer-cta {
  direction: rtl !important;
  text-align: right !important;
}

html[dir='rtl'] input,
html[dir='rtl'] select,
html[dir='rtl'] textarea {
  direction: rtl !important;
  text-align: right !important;
}

html[dir='rtl'] select {
  background-position: 19px 50%, 14px 50% !important;
  padding-right: 1.05rem !important;
  padding-left: 3rem !important;
}

/* Arabic CTA bands: text right, buttons left on desktop. */
html[dir='rtl'] .next-step,
html[dir='rtl'] .bespoke-band {
  direction: ltr !important;
}

html[dir='rtl'] .next-step > div,
html[dir='rtl'] .bespoke-band > div {
  direction: rtl !important;
  text-align: right !important;
  order: 2 !important;
}

html[dir='rtl'] .next-step .btn,
html[dir='rtl'] .bespoke-band .btn {
  order: 1 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
}

/* Smooth accordion, stable height in both languages. */
.accordion-list {
  overflow: hidden;
}

.how-row {
  padding: 0 !important;
  overflow: hidden;
}

.how-row summary {
  min-height: clamp(66px, 6vw, 88px) !important;
  padding-block: clamp(0.95rem, 1.8vw, 1.2rem) !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.accordion-panel {
  overflow: hidden;
  will-change: height;
}

.accordion-panel-inner {
  padding-bottom: clamp(1rem, 2vw, 1.25rem);
}

.accordion-panel-inner p,
.how-row .accordion-panel p {
  max-width: 850px !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

html[dir='rtl'] .how-row summary,
html[dir='rtl'] .accordion-panel-inner p {
  direction: rtl !important;
  text-align: right !important;
}

html[dir='rtl'] .accordion-panel-inner p,
html[dir='rtl'] .how-row .accordion-panel p {
  margin-inline-start: auto !important;
  margin-inline-end: 0 !important;
}

html[dir='rtl'] .how-row summary span {
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* Footer: no capsule around logo, no unrelated giant word. */
.site-footer::after {
  content: none !important;
  display: none !important;
}

.footer-brand {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html[dir='rtl'] .footer-bottom {
  text-align: right !important;
}

@media (max-width: 1180px) {
  html[dir='rtl'] .hero-meta {
    grid-template-columns: 1fr !important;
    direction: rtl !important;
  }

  html[dir='rtl'] .hero-copy,
  html[dir='rtl'] .hero-actions {
    order: initial !important;
    justify-self: stretch !important;
  }

  html[dir='rtl'] .hero-actions {
    justify-content: flex-start !important;
  }
}

@media (max-width: 820px) {
  html[dir='rtl'] .hero-title {
    font-size: clamp(2.45rem, 11vw, 4.4rem) !important;
    line-height: 1.16 !important;
  }

  html[dir='rtl'] .hero-copy {
    font-size: clamp(1.05rem, 5.4vw, 1.55rem) !important;
    line-height: 1.65 !important;
  }

  .center-statement,
  .cases-heading {
    padding-block: clamp(1.9rem, 8vw, 2.8rem) !important;
  }

  .center-statement h2,
  .cases-heading h2 {
    font-size: clamp(1.95rem, 8vw, 3rem) !important;
    line-height: 1.12 !important;
  }

  html[dir='rtl'] .center-statement h2,
  html[dir='rtl'] .cases-heading h2 {
    font-size: clamp(1.72rem, 7.2vw, 2.6rem) !important;
    line-height: 1.34 !important;
  }

  .page-hero,
  .team-hero,
  .work-showcase,
  .case-hero {
    padding-top: 96px !important;
    padding-bottom: clamp(1.8rem, 8vw, 2.6rem) !important;
  }

  .page-title,
  .work-showcase-title,
  .mega-title,
  html[dir='rtl'] .page-title,
  html[dir='rtl'] .work-showcase-title,
  html[dir='rtl'] .mega-title,
  html[dir='rtl'] .team-intro .mega-title {
    font-size: clamp(2rem, 9vw, 3.15rem) !important;
    line-height: 1.18 !important;
    max-width: 100% !important;
  }

  html[dir='rtl'] .section-title,
  html[dir='rtl'] .partners-title h2 {
    font-size: clamp(2rem, 9vw, 3.25rem) !important;
    line-height: 1.18 !important;
  }

  html[dir='rtl'] .services-preview .section-kicker,
  html[dir='rtl'] .partners-section .partners-title {
    align-items: flex-end !important;
  }

  html[dir='rtl'] .next-step,
  html[dir='rtl'] .bespoke-band {
    direction: rtl !important;
    display: grid !important;
  }

  html[dir='rtl'] .next-step > div,
  html[dir='rtl'] .bespoke-band > div,
  html[dir='rtl'] .next-step .btn,
  html[dir='rtl'] .bespoke-band .btn {
    order: initial !important;
    margin-inline: 0 !important;
  }

  .how-row summary {
    min-height: clamp(58px, 14vw, 76px) !important;
    font-size: clamp(1.08rem, 5.4vw, 1.45rem) !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 460px) {
  html[dir='rtl'] .center-statement h2,
  html[dir='rtl'] .cases-heading h2 {
    font-size: clamp(1.6rem, 7.4vw, 2.35rem) !important;
  }

  html[dir='rtl'] .section-title,
  html[dir='rtl'] .partners-title h2,
  html[dir='rtl'] .team-intro .mega-title {
    font-size: clamp(1.8rem, 8.5vw, 2.85rem) !important;
  }
}

/* Final Arabic-only right alignment correction for the four requested titles */
html[dir='rtl'] .services-preview .section-kicker,
html[dir='rtl'] .team-intro,
html[dir='rtl'] .partners-section .partners-title {
  direction: rtl !important;
  text-align: right !important;
  align-items: flex-start !important;
  justify-items: start !important;
}

html[dir='rtl'] .services-preview .section-kicker .eyebrow,
html[dir='rtl'] .services-preview .section-kicker .section-title,
html[dir='rtl'] .team-intro .eyebrow,
html[dir='rtl'] .team-intro .mega-title,
html[dir='rtl'] .team-intro > p:not(.eyebrow),
html[dir='rtl'] .partners-section .partners-title .eyebrow,
html[dir='rtl'] .partners-section .partners-title h2 {
  align-self: flex-start !important;
  justify-self: start !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  text-align: right !important;
}

html[dir='rtl'] .how-we-do,
html[dir='rtl'] .accordion-list,
html[dir='rtl'] .how-row,
html[dir='rtl'] .how-row summary,
html[dir='rtl'] .how-row .accordion-panel-inner,
html[dir='rtl'] .how-row .accordion-panel-inner p {
  direction: rtl !important;
  text-align: right !important;
}

html[dir='rtl'] .how-row .accordion-panel-inner p,
html[dir='rtl'] .how-row > p {
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  text-align: right !important;
}
