/* Fixed lang stripe + navbar: keep in-page anchors visible */
html {
  scroll-padding-top: 96px;
  --page-pad-x: 1rem;
}

/*
  Preloader: true viewport center.
  Theme offsets with padding-right/bottom for a right rail we don't use.
*/
.preloader {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

@media (min-width: 992px) {
  .preloader {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
}

.preloader .loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader .loader img {
  display: block;
  /* Illustration content sits ~21px below the GIF canvas mid */
  transform: translateY(-12px);
}

/* Mobile: one shared left/right gutter for every homepage section + frame */
@media (max-width: 767.98px) {
  html {
    --page-pad-x: 1rem;
  }

  /* No navbar chrome pad — container gutter (--page-pad-x) matches footer logo */
  .navbar.navbar-expand-xl {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navbar.navbar-expand-xl > .container,
  .navbar.navbar-expand-xl > .container-fluid,
  .navbar > .container,
  .lang-stripe .container,
  .site-footer > .container,
  .site-footer__bar > .container,
  main > section > .container,
  main > section > .container-fluid,
  section.hero-section .container,
  section#contact > .container,
  section#contact-form > .container,
  section#whyus .container,
  section#aboutus .container {
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
  }

  /* Locked frames share the exact same L/R inset */
  .case-studies-home__frame,
  .home-insights__frame,
  .home-services__frame {
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Avoid double horizontal padding inside locked frames */
  .case-studies-home__frame > .container,
  .home-insights__frame > .container,
  .home-services__frame > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none;
    width: 100%;
  }

  .case-studies-home__cta,
  .home-insights__cta,
  .home-services__cta {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /*
   * Text-only sections (no locked frame): same L/R content edge as frames.
   * Nested wrappers (#whyus > section, #aboutus > #about) + Bootstrap
   * col gutters / ml-* offsets are what usually drift off --page-pad-x.
   */
  #whyus .container,
  #aboutus .container,
  #about .container,
  .ready-band > .container,
  #contact > .container,
  #contact-form > .container,
  #gallery > .container {
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
  }

  #whyus .row,
  #aboutus .row,
  #about .row,
  .ready-band .row,
  #contact .row,
  #contact-form .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #whyus .row > [class*="col"],
  #aboutus .row > [class*="col"],
  #about .row > [class*="col"],
  .ready-band .row > [class*="col"],
  #contact .row > [class*="col"],
  #contact-form .row > [class*="col"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* All titles centered on mobile */
  .hero-copy h1,
  .hero-subtitle,
  .case-studies-home__intro,
  .case-kicker,
  .case-title,
  .home-services__intro,
  .home-services__kicker,
  .home-services__title,
  .home-insights__intro,
  .home-insights__kicker,
  .home-insights__title,
  .ready-band .text-primary,
  .ready-band h4,
  #whyus .fs-2,
  #whyus h2,
  #aboutus .fs-2,
  #aboutus h2,
  #about .fs-2,
  #about h2,
  #contact .contact-section__intro,
  #contact .contact-section__intro .fs-2,
  #contact .contact-section__intro h2,
  #contact-form h2,
  #contact-form [data-i18n="form.lead"],
  .site-footer__title {
    text-align: center !important;
  }

  #services .pillar-mobile-card,
  #services .pillar-mobile-card__kicker,
  #services .pillar-mobile-card__title,
  #services .pillar-mobile-card__blurb,
  #services .pillar-mobile-card__cta {
    text-align: left !important;
  }

  #services .pillar-mobile-card {
    align-items: flex-start;
  }

  #contact .contact-section__intro {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  main > section.bg-white > .container {
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
  }

  main > section.bg-white .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  main > section.bg-white .row > [class*="col"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center !important;
  }

  /* Hero: same gutter as logo / section titles (px-3 alone can drift) */
  .hero-section > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-section .hero-copy {
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
  }

  /* Carousels + media flush to the shared frame content edge (kill 2px track inset) */
  .case-studies-home__frame .case-carousel,
  .home-insights__frame .insights-carousel {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .case-carousel__track,
  .insights-carousel__track {
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-padding-inline: 0 !important;
  }

  /* Services gray panel + card: same outer edge as case/insight cards */
  #services .fancy-tab-contents,
  #services .fancy-tab-contents.bg-light,
  #services .fancy-tab-contents.rounded-soft {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* Text inset only — photo bleeds full width (see media rule below) */
  #services .pillar-mobile-card {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Gallery: Bootstrap px-2 on cols pushed media to 24px — flush to shared edge */
  #gallery > .container {
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
  }

  #gallery .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #gallery .col,
  #gallery .col-md-5,
  #gallery .col-md-7,
  #gallery [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Keep a small gap between thumbs only; outer edges stay on --page-pad-x */
  #gallery .col-4 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    margin-bottom: 0.5rem;
  }

  #gallery .col-4:nth-child(3n + 1) {
    padding-left: 0 !important;
  }

  #gallery .col-4:nth-child(3n) {
    padding-right: 0 !important;
  }

  .site-footer > .container,
  .site-footer__bar > .container {
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
  }
}

.navbar.navbar-expand-xl {
  min-height: 72px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  /* No extra L/R pad — container gutter aligns logo with footer */
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  align-items: center;
}

.navbar > .container {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Bootstrap zeroes this under expand-xl max-width; keep footer-matching gutter */
.navbar.navbar-expand-xl > .container,
.navbar.navbar-expand-xl > .container-fluid {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.navbar-brand .logo,
.navbar-brand img.logo,
.navbar-brand img {
  width: 108px !important;
  max-width: 108px;
  max-height: 42px;
  height: auto !important;
  object-fit: contain;
  padding-bottom: 0 !important;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  line-height: 1.2;
}

/* Desktop top nav: keep every label on one line */
@media (min-width: 1200px) {
  .navbar-nav .nav-link,
  .navbar-nav .btn {
    white-space: nowrap;
  }
}

.lang-stripe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  height: 32px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.lang-stripe .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.lang-stripe__back {
  flex: 0 1 auto;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: comfortaa, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-stripe__back:hover,
.lang-stripe__back:focus {
  color: #ffc554;
  text-decoration: none;
}

.navbar.fixed-top {
  top: 32px;
}

.lang-stripe,
.navbar.fixed-top.bg-black {
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

/* Locked rails: top chrome (stripe + nav) matches pin color */
body.is-chrome-lock-services .lang-stripe,
body.is-chrome-lock-services .navbar.fixed-top.bg-black {
  background-color: #e40f62 !important;
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

body.is-chrome-lock-insights .lang-stripe,
body.is-chrome-lock-insights .navbar.fixed-top.bg-black {
  background-color: #0b1727 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.is-chrome-lock-cases .lang-stripe,
body.is-chrome-lock-cases .navbar.fixed-top.bg-black {
  background-color: #ffd98e !important;
  border-bottom-color: rgba(35, 46, 60, 0.14) !important;
}

body.is-chrome-lock-cases .lang-stripe__back,
body.is-chrome-lock-cases .lang-switch__btn,
body.is-chrome-lock-cases .navbar .nav-link {
  color: #232e3c !important;
}

body.is-chrome-lock-cases .lang-switch__btn.is-active {
  color: #232e3c !important;
  background: rgba(35, 46, 60, 0.12) !important;
}

body.is-chrome-lock-cases .navbar-brand img {
  filter: brightness(0);
}

body.is-chrome-lock-cases .navbar .btn-outline-primary {
  color: #232e3c !important;
  border-color: #232e3c !important;
}

body.is-chrome-lock-cases .navbar .btn-outline-primary:hover,
body.is-chrome-lock-cases .navbar .btn-outline-primary:focus {
  color: #ffd98e !important;
  background-color: #232e3c !important;
  border-color: #232e3c !important;
}

/* Internal pages: clear fixed lang stripe + navbar (shared with /services) */
.insights-page .insights-main {
  padding-top: calc(32px + 72px + 2.75rem) !important;
}

@media (max-width: 991.98px) {
  .insights-page .insights-main {
    padding-top: calc(28px + 64px + 2.25rem) !important;
  }
}

/* clip (not hidden) — overflow-x:hidden on body creates a scrollport and kills position:sticky */
html {
  overflow-x: clip !important;
  max-width: 100%;
}

body {
  overflow-x: clip !important;
  overflow-y: visible !important;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 3000;
  padding: 8px 14px;
  background: #ffc554;
  color: #1a1a1a;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid #e40f62;
  outline-offset: 2px;
}

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

.footer-text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.footer-text-btn:hover,
.footer-social a:hover {
  color: #ffc554 !important;
}

.footer-social a {
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffc554 !important;
}

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(11, 23, 39, 0.12);
  color: #4d5969;
  font-family: comfortaa, "Segoe UI", sans-serif;
}

.cookie-notice__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px 26px;
}

.cookie-notice__inner img {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
}

.cookie-notice h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0b1727;
}

.cookie-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5e6e82;
}

.cookie-notice__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
}

.cookie-notice__ok,
.cookie-notice__customize {
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 18px;
}

.cookie-notice__ok {
  background: #1a33d6;
  color: #fff;
  border: 0;
}

.cookie-notice__customize {
  background: #fff;
  color: #1a33d6;
  border: 2px solid #1a33d6;
}

.cookie-prefs {
  display: none;
  border-top: 1px solid #e6e9ef;
  padding: 8px 28px 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.cookie-notice.is-open .cookie-prefs {
  display: block;
}

.cookie-prefs label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .cookie-notice__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 16px;
    gap: 12px;
  }

  .cookie-notice__inner img {
    width: 36px;
    height: 36px;
  }

  .cookie-notice h2 {
    font-size: 14px;
  }

  .cookie-notice p {
    font-size: 12px;
  }

  .cookie-notice__actions {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cookie-notice__ok,
  .cookie-notice__customize {
    flex: 1 1 auto;
    font-size: 14px;
    padding: 8px 14px;
  }

  /* Hero phone: stack visual above copy (final sizes live in mobile hero rework) */
  :root {
    --loved-header-h: calc(94px + env(safe-area-inset-top, 0px));
  }

  #top > section.py-0 > .min-vh-100.overflow-hidden,
  #top > section.hero-section > .row.overflow-hidden {
    overflow: visible !important;
  }

  #top > section.py-0 .hero-visual {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto !important;
    text-align: center;
  }

  #top > section.py-0 .hero-copy {
    order: 2;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto !important;
    text-align: center;
    margin: 0 !important;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  #top > section.py-0 .hero-visual > div {
    margin: 0 !important;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #top h1 {
    font-size: clamp(1.65rem, 7vw, 2.05rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem !important;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
  }

  #top h1 br {
    display: inline !important;
  }

  #top h1 .font-weight-black {
    font-weight: 900 !important;
  }

  #top h1 .hero-title-sub {
    display: block;
    margin: 0.35rem auto 0;
    max-width: 20ch;
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    line-height: 1.3;
    font-weight: 600;
    white-space: normal;
  }

  #top .hero-subtitle {
    display: block;
    margin: 0.45rem auto 0.85rem;
    max-width: 28ch;
    width: auto;
    font-size: clamp(0.92rem, 3.7vw, 1.08rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
    font-weight: 500;
    color: #5e6e82;
    white-space: normal;
  }

  #top .hero-cta {
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Width/center come from .btn-hero; keep hero spacing only */
  #top .hero-cta .btn {
    margin-top: 0.25rem !important;
    padding-top: 0.36rem !important;
    padding-bottom: 0.36rem !important;
    white-space: nowrap !important;
  }

  #top .hero-cta .btn.mr-3 {
    margin-right: auto !important;
  }

  /* Service tabs: icons only on small screens (match original) */
  .fancy-tab .fancy-bar .fancy-bar-item {
    padding: 10px 4px;
    font-size: 1rem;
    line-height: 1;
  }

  .fancy-bar-item .fancy-bar-label {
    display: none !important;
  }

  /* Service panels: less horizontal padding on small screens */
  #services .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #services .py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .home-services,
  .home-insights {
    padding: 3rem 0 2.75rem;
  }

  #contact .card-body.pl-5,
  #contact .pl-5 {
    padding-left: 1.25rem !important;
  }
}

/* About — center copy on tablet; CTA width handled in ≤767 rule */
@media (max-width: 991.98px) {
  #aboutus #about .col-lg-7 {
    text-align: center;
  }
}

/* Homepage form — same band as #contact; kill stacked empty pad that reads as a white gap */
section#contact-form.bg-light {
  background-color: #f9fafd !important;
  margin: 0;
  padding-top: calc(0.5rem + 80px) !important;
  padding-bottom: 3.5rem !important;
}

@media (max-width: 767.98px) {
  #contactForm .zform-feedback {
    text-align: center;
  }
}

/* Homepage contact — green deco higher + bleeds out of section (like original) */
section#contact.contact-section {
  position: relative;
  /* Let megaphone splash poke above the band; keep x clip soft for slide-in */
  overflow: visible;
  padding: calc(5.5rem + 80px) 0 1.25rem !important;
  background-color: #f9fafd !important;
  z-index: 2;
}

section#contact .contact-section__deco-wrap {
  position: absolute;
  left: 0;
  /* Higher than section top so splash goes out of the band; zanim owns wrap transform */
  top: -6rem;
  bottom: auto;
  width: min(736px, 80vw);
  max-width: none;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

section#contact .contact-section__deco {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Arabic: mirror megaphone to the right margin; enter-from-right via theme.js from.x flip */
html[dir="rtl"] section#contact .contact-section__deco-wrap {
  left: auto;
  right: 0;
}

html[dir="rtl"] section#contact .contact-section__deco {
  transform: scaleX(-1);
}

section#contact .container {
  position: relative;
  z-index: 1;
}

section#contact .contact-section__intro {
  margin-bottom: 3rem;
  padding-top: 3.25rem;
}

@media (min-width: 992px) {
  section#contact .contact-section__intro {
    margin-bottom: 3.5rem;
    padding-top: 2.75rem;
  }
}

section#contact .contact-section__cards .card {
  background: #fff;
  border: 0;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

section#contact .contact-section__cards .card-body {
  padding: 1.75rem 1.75rem 1.75rem 2rem !important;
}

section#contact .contact-section__cards .media {
  align-items: flex-start;
}

section#contact .contact-section__cards .media + .media {
  margin-top: 0.35rem;
}

section#contact .contact-section__cards .text-600 {
  color: #5e6e82 !important;
  text-decoration: none;
}

section#contact .contact-section__cards a.text-600:hover {
  color: #e40f62 !important;
}

/* Show deco from tablet up (original was xl-only; keep it visible sooner) */
@media (max-width: 767.98px) {
  section#contact .contact-section__deco-wrap,
  section#contact .contact-section__deco {
    display: none !important;
  }

  section#contact .contact-section__cards .card-body .btn.btn-danger {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.lang-switch {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: comfortaa, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 2px;
  cursor: pointer;
  min-width: 28px;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus {
  color: #ffc554;
  outline: none;
}

.lang-switch__btn.is-active {
  background: #ffc554;
  color: #1a1a1a;
}

html[dir="rtl"] .lang-stripe .container {
  justify-content: space-between;
  flex-direction: row; /* natural RTL: back link at start (right), langs at end (left) */
}

/* Arabic RTL — base typography + chrome (full layout block at end of file) */
html[dir="rtl"] body,
body.is-rtl {
  font-family: "Noto Sans Arabic", Niramit, comfortaa, "Segoe UI", sans-serif;
}

@media (max-width: 1199.98px) {
  html {
    scroll-padding-top: 84px;
  }

  .navbar.navbar-expand-xl {
    min-height: 64px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .navbar-brand .logo,
  .navbar-brand img.logo,
  .navbar-brand img {
    width: 88px !important;
    max-width: 88px;
    max-height: 36px;
  }

  .navbar-toggler {
    padding: 0.3rem 0.5rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1060;
  }

  .navbar > .container > .navbar-brand {
    position: relative;
    z-index: 1060;
  }

  .lang-stripe {
    height: 28px;
  }

  .navbar.fixed-top {
    top: 28px;
  }

  .lang-stripe__back {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .lang-switch__btn {
    padding: 3px 4px;
    min-width: 24px;
    font-size: 9px;
  }

  /* Full-screen burger menu — only when open/animating (avoids tall pink stripe) */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: calc(6.5rem + env(safe-area-inset-top, 0px)) 1.75rem calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
    background: #e40f62 !important;
    z-index: 1050 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .navbar-collapse.collapsing {
    transition: opacity 0.25s ease !important;
    opacity: 0;
  }

  .navbar-collapse.show {
    opacity: 1;
  }

  .navbar-collapse .navbar-nav {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .navbar-collapse .nav-item {
    width: 100%;
    text-align: center;
    margin: 0 !important;
  }

  .navbar-collapse .nav-link {
    display: block !important;
    width: 100%;
    padding: 0.85rem 1rem !important;
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    letter-spacing: -0.01em;
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link:focus {
    color: #ffc554 !important;
  }

  .navbar-collapse .nav-item .btn {
    margin-top: 1.25rem !important;
    padding: 0.65rem 1.6rem !important;
    font-size: 1rem !important;
    border-width: 1px !important;
    border-color: #fff !important;
    color: #fff !important;
    background: transparent !important;
  }

  .navbar-collapse .nav-item .btn:hover,
  .navbar-collapse .nav-item .btn:focus {
    background: #fff !important;
    color: #e40f62 !important;
    border-color: #fff !important;
  }

  body.nav-open {
    overflow: hidden !important;
  }
}

/* Desktop: kill burger fullscreen leftovers (inline height → pink stripe) */
@media (min-width: 1200px) {
  .navbar-collapse,
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    z-index: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    transition: none !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  .navbar.navbar-expand-xl {
    height: auto !important;
    max-height: none;
  }

  body.nav-open {
    overflow: visible !important;
  }
}

/* Service tab labels (visible on all breakpoints) */
.fancy-bar-label {
  display: none;
}

@media (min-width: 992px) {
  .fancy-bar-label {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #services .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .fancy-tab .fancy-bar .fancy-bar-item {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Tablet hero: stack like phone; yellow stays in the visual band only */
  :root {
    --loved-header-h: calc(92px + env(safe-area-inset-top, 0px));
    --loved-hero-yellow-h: 48%;
  }

  #top > section.py-0 > .min-vh-100,
  #top > section.hero-section > .min-vh-100 {
    align-content: flex-end !important;
    flex-wrap: wrap !important;
  }

  #top > section.py-0 .hero-visual {
    order: 1 !important;
    flex: 1 1 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 0;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #top > section.py-0 .hero-copy {
    order: 2 !important;
    position: relative;
    z-index: 2;
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.45rem 1.5rem 0.65rem !important;
    text-align: center !important;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  #top > section.py-0 .hero-visual > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    text-align: center;
  }

  #top .img-fluid-main {
    max-width: min(62vw, 380px) !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    margin-top: 0 !important;
    display: inline-block !important;
    transform: rotate(60deg) scale(2) !important;
    transform-origin: center center !important;
    position: relative !important;
    left: 0 !important;
    object-fit: contain !important;
    right: auto !important;
  }

  #top h1 {
    font-size: clamp(2.55rem, 5vw, 3.2rem) !important;
    line-height: 1.12 !important;
    margin-bottom: 0.3rem !important;
    margin-left: auto;
    margin-right: auto;
  }

  #top h1 .hero-title-sub {
    display: block;
    margin: 0.4rem auto 0;
    max-width: 28ch;
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    line-height: 1.3;
    font-weight: 600;
    white-space: normal;
  }

  #top .hero-subtitle {
    display: block !important;
    margin: 0.5rem auto 1rem;
    max-width: 36ch;
    width: auto;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    line-height: 1.4;
    letter-spacing: 0.01em;
    white-space: normal;
  }

  #top .hero-lead {
    display: none !important;
  }

  #top .hero-cta .btn {
    display: inline-block;
    width: auto;
    min-width: 11rem;
    margin: 0.35rem 0.35rem 0 !important;
    white-space: nowrap !important;
  }

}

/* Office maps */
.office-maps {
  position: relative;
  z-index: 1;
}

.office-map-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0.125rem 0.25rem rgba(11, 23, 39, 0.075);
  overflow: hidden;
  height: 100%;
}

.office-map-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #eef1f6;
}

.office-map-label strong {
  color: #e40f62;
  font-size: 0.95rem;
}

.office-map-label a {
  color: #4d5969;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.office-map-label a:hover {
  color: #e40f62;
}

.office-map-frame {
  position: relative;
  width: 100%;
  height: 280px;
  background: #f4f6f9;
}

.office-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Shared homepage section intro (case studies / services / insights) */
.section-intro,
.home-services > .container.text-center,
.home-insights > .container.text-center,
.home-insights__intro,
.case-studies-home > .container.text-center,
.case-studies-home__intro {
  text-align: center;
}

/* Match About Us / Why Us kickers (fs-2 bold, title case — not uppercase) */
.section-kicker,
.home-services__kicker,
.home-insights__kicker,
.case-studies-home .case-kicker,
.ready-band__kicker {
  margin: 0 0 0.4rem !important;
  font: 700 1.5625rem / 1.2 Comfortaa, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #232e3c !important;
}

.ready-band__kicker {
  color: #ffc554 !important;
}

.section-title,
.home-services__title,
.home-insights__title,
.case-studies-home .case-title {
  margin: 0 auto 0.75rem !important;
  max-width: 20em;
  font: 800 clamp(1.75rem, 3.5vw, 2.625rem) / 1.12 Niramit, sans-serif !important;
  letter-spacing: -0.02em;
  color: #232e3c !important;
}

.section-lead,
.case-studies-home .case-lead {
  margin: 0 auto 2rem !important;
  max-width: 36em !important;
  color: #5e6e82 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Homepage section leads removed — copy kept on internal pages via locales */
.home-services__lead,
.home-insights__lead {
  display: none !important;
}

.home-services {
  margin-top: 80px;
  padding: 4.5rem 0 4rem;
  background: #fff;
}

/* Homepage case studies: viewport lock handled in case-studies.css */
.case-studies-home {
  background: #fff;
}

.home-insights {
  --header-h: calc(104px + env(safe-area-inset-top, 0px));
  --insights-wash: #e8ecf1;
  scroll-margin-top: var(--header-h);
  margin-top: 80px;
  padding: 4.5rem 0 4rem;
  background: var(--insights-wash);
  position: relative;
  max-width: 100%;
}

.home-insights:not(.is-rail-on) {
  overflow-x: clip;
}

.home-insights__frame,
.insights-carousel {
  max-width: 100%;
  min-width: 0;
}

.insights-rail,
.insights-rail__pin {
  display: block;
}

.home-insights.is-rail-on {
  padding-block: 0;
  overflow: visible !important;
}

.home-insights.is-rail-on .insights-rail {
  position: relative;
  height: var(--rail-height, 300vh);
  background: var(--insights-wash);
}

.home-insights.is-rail-on .insights-rail__pin {
  position: sticky;
  top: var(--rail-sticky-top, var(--header-h));
  height: var(--rail-pin-height, calc(100svh - var(--header-h)));
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 0 1.1rem;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background: var(--insights-wash);
}

.home-insights__frame {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem var(--page-pad-x, 1rem) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.home-insights.is-rail-on .home-insights__frame {
  height: 100%;
  max-height: 100%;
  gap: 0.5rem;
  justify-content: space-between;
  background: var(--insights-wash);
  transition: background-color 0.28s ease, color 0.28s ease;
}

.home-insights.is-rail-on .insights-rail__pin {
  transition: background-color 0.28s ease;
}

/* Locked (sticky) screen → black; invert intro + CTA to white */
.home-insights.is-rail-locked .insights-rail__pin,
.home-insights.is-rail-locked .home-insights__frame {
  background-color: #0b1727;
}

.home-insights.is-rail-locked .home-insights__kicker,
.home-insights.is-rail-locked .home-insights__title {
  color: #fff !important;
}

.home-insights.is-rail-locked .home-insights__cta .btn-gold {
  color: #fff !important;
  background-color: transparent !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

.home-insights.is-rail-locked .home-insights__cta .btn-gold:hover,
.home-insights.is-rail-locked .home-insights__cta .btn-gold:focus {
  color: #0b1727 !important;
  background-color: #fff !important;
  border-color: #fff !important;
}

.home-insights__intro {
  flex: 0 0 auto;
}

.home-insights.is-rail-on .home-insights__lead {
  margin-bottom: 0.5rem !important;
}

.home-services__cta {
  margin-top: 1.75rem;
  padding-bottom: 2.5rem;
}

.hero-title-sub {
  display: inline-block;
  margin-top: 0.15rem;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #232e3c;
}

.hero-subtitle {
  margin: 0.5rem 0 1rem;
  max-width: 34ch;
  font-size: 1.25rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: #5e6e82;
}

/* ——— Button system (compose kinds + colors; change once, reuse) ———
 * Kinds:  .btn-cta  = section CTAs (pill on mobile)
 *         .btn-hero = hero pair (brand radius)
 * Colors: .btn-primary / .btn-gold / .btn-dark / .btn-danger / .btn-outline-*
 */
html {
  --btn-radius: 0.375rem;
  --btn-radius-pill: 999px;
}

.btn-cta,
.btn-hero {
  box-sizing: border-box;
  text-align: center;
}

.btn-cta {
  border-radius: var(--btn-radius) !important;
  font-weight: 700;
}

.btn-hero {
  border-radius: var(--btn-radius) !important;
}

@media (max-width: 767.98px) {
  html {
    --btn-mobile-w: calc((100vw - (2 * var(--page-pad-x))) * 0.8);
  }

  .btn-cta,
  .btn-hero {
    display: block !important;
    width: var(--btn-mobile-w) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .btn-cta {
    border-radius: var(--btn-radius-pill) !important;
  }

  .case-studies-home .case-cta,
  .home-services__cta,
  .home-insights__cta {
    text-align: center !important;
    width: 100%;
  }
}

/* ——— Brand button colors ———
   Hover = fill/text color shift only. No ring, glow, or extra border. */
.btn:hover,
.btn:focus,
.btn:active,
.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled).active,
.btn.focus {
  box-shadow: none !important;
  outline: none !important;
}

.btn-primary,
.btn-loved,
.btn-danger {
  color: #fff !important;
  background-color: #e40f62 !important;
  border-color: #e40f62 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-loved:hover,
.btn-loved:focus,
.btn-danger:hover,
.btn-danger:focus {
  color: #fff !important;
  background-color: #c40d54 !important;
  border-color: #c40d54 !important;
  box-shadow: none !important;
}

/* Match lovedigital.gr outline primary (gold CTA, e.g. Chat with Us) */
.btn-outline-primary {
  color: #ffc554 !important;
  background-color: transparent !important;
  border: 1.6px solid #ffc554 !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active {
  color: #4d5969 !important;
  background-color: #ffc554 !important;
  border-color: #ffc554 !important;
  box-shadow: none !important;
}

.navbar .btn-outline-primary {
  padding: 5px 52px !important;
  font-size: 16px !important;
  line-height: 24px !important;
  min-width: 230px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-dark {
  color: #fff !important;
  background-color: #232e3c !important;
  border-color: #232e3c !important;
}

.btn-dark:hover,
.btn-dark:focus {
  background-color: #1a222c !important;
  border-color: #1a222c !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Site gold = hero “Our location” yellow */
.btn-gold {
  color: #232e3c !important;
  background-color: #ffd98e !important;
  border-color: #ffd98e !important;
  font-weight: 700;
}

.btn-gold:hover,
.btn-gold:focus,
.btn-gold:not(:disabled):not(.disabled):active,
.btn-gold:not(:disabled):not(.disabled).active {
  color: #232e3c !important;
  background-color: #f5cc78 !important;
  border-color: #f5cc78 !important;
  box-shadow: none !important;
}

.btn-outline-gold {
  color: #9a7a2e !important;
  background-color: transparent !important;
  border: 1px solid #ffd98e !important;
  font-weight: 700;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus,
.btn-outline-gold:not(:disabled):not(.disabled):active,
.btn-outline-gold:not(:disabled):not(.disabled).active {
  color: #232e3c !important;
  background-color: #ffd98e !important;
  border-color: #ffd98e !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  .hero-subtitle {
    display: none;
  }

  /* Lead width tracks the two CTA buttons (CTA sizes the block) */
  #top .hero-copy-block {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    vertical-align: top;
  }

  /* Title + lead shrink-wrap to CTA width; CTA is the sizing child */
  #top .hero-copy-block > .overflow-hidden:not(.hero-cta) {
    width: 0;
    min-width: 100%;
  }

  #top .hero-copy-block h1,
  #top .hero-lead {
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }

  /* Portfolio + location side by side */
  #top .hero-cta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: max-content;
    max-width: 100%;
    flex: 0 0 auto;
  }

  #top .hero-cta .btn {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
  }
}

/* True desktop side-by-side hero: left-align CTAs with copy */
@media (min-width: 1200px) {
  /* Column shrink-wraps to title/lead/CTA — drop Bootstrap col % width */
  #top > section.py-0 .hero-copy,
  #top > section.hero-section .hero-copy {
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #top .hero-copy-block {
    margin-left: 0;
    margin-right: 0;
  }

  #top .hero-cta {
    justify-content: flex-start;
  }
}

/* Yellow vector behind hero art (left wash on LTR; mirrored right on Arabic) */
.hero-section .hero-yellow-bg,
.hero-section .hero-yellow-bg.bg-holder {
  display: block !important;
  z-index: 0;
  pointer-events: none !important;
}

/* Arabic: yellow lives outside the row scaleX mirror — flip it to the right */
html[dir="rtl"] .hero-section .hero-yellow-bg,
html[dir="rtl"] .hero-section .hero-yellow-bg.bg-holder {
  left: 0 !important;
  right: auto !important;
  background-position: left bottom !important;
  transform: scaleX(-1) !important;
  transform-origin: center center !important;
}

#top > section.py-0.hero-section,
#top > section.hero-section,
.hero-section {
  background-color: #fff !important;
  background-image: none !important;
  position: relative;
}

#top > section.hero-section .hero-visual,
#top > section.hero-section .hero-copy,
#top > section.py-0 .hero-visual,
#top > section.py-0 .hero-copy {
  position: relative;
  z-index: 2;
}

/* Desktop: yellow fills hero height on the left / bottom edge */
@media (min-width: 1200px) {
  #top > section.py-0.hero-section,
  #top > section.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-section .hero-yellow-bg.bg-holder {
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    background-color: transparent !important;
    background-position: left bottom !important;
    /* Override inline background-size:35% — height matches the section */
    background-size: auto 100% !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
  }

  /* Laptop sits in the left half — scaled so its box never crosses 50vw */
  #top .hero-visual .img-fluid-main {
    max-width: 99% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: calc(1.75rem + 40%) !important;
    transform: rotate(60deg) scale(1.44) translateX(-7%) !important;
    transform-origin: center center !important;
  }

  /* Copy nudged right for art gutter — right edge stays ≤ Chat with Us.
     9.85rem is the most shift that still ends on the button at 1200px.
     No Y translate — vertical centering is owned by the landscape hero rules. */
  #top .hero-copy {
    position: relative;
    z-index: 3;
    transform: translateX(clamp(6.5rem, calc(46rem - 31vw), 9.85rem));
  }
}

@media (min-width: 1540px) {
  #top .hero-copy {
    transform: translateX(11.1rem);
  }
}

.hero-section > .row {
  position: relative;
  z-index: 1;
}


/* Phone + portrait tablet: stacked hero */
@media (max-width: 991.98px) {
  :root {
    --loved-header-h: calc(94px + env(safe-area-inset-top, 0px));
    --loved-hero-yellow-h: 51%;
  }

  #top > section.py-0.hero-section,
  #top > section.hero-section {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100svh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
  }

  #top > section.py-0 > .min-vh-100,
  #top > section.hero-section > .min-vh-100 {
    /* only as tall as visual + copy — scroll parks at section bottom via margin-top:auto */
    flex: 0 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-top: var(--loved-header-h) !important;
    padding-bottom: 0 !important;
    align-content: stretch !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  /* Stacked / vertical: no yellow wash */
  .hero-section .hero-yellow-bg,
  .hero-section .hero-yellow-bg.bg-holder {
    display: none !important;
  }

}

/*
  Large tablets / small laptops (992–1199): keep copy on the RIGHT of the art
  (same composition as desktop — do not stack).
*/
@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    --loved-header-h: calc(100px + env(safe-area-inset-top, 0px));
  }

  #top > section.py-0.hero-section,
  #top > section.hero-section {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100svh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
  }

  #top > section.py-0 > .min-vh-100,
  #top > section.hero-section > .min-vh-100 {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    padding-top: var(--loved-header-h) !important;
    padding-bottom: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .hero-section .hero-yellow-bg.bg-holder {
    display: block !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: -50% !important;
    width: 125vw !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    background-position: left bottom !important;
    background-size: auto 100% !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html[dir="rtl"] .hero-section .hero-yellow-bg.bg-holder {
    left: auto !important;
    right: -50% !important;
    transform: scaleX(-1) !important;
    transform-origin: center center !important;
  }

  #top > section.py-0 .hero-visual {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    flex: 1 1 44% !important;
    max-width: 48% !important;
    width: auto !important;
    min-width: 0 !important;
    order: 0 !important;
    margin: 0 !important;
    padding: 0 0.5rem !important;
  }

  #top > section.py-0 .hero-visual > div {
    margin-left: 0 !important;
    max-width: 100%;
  }

  #top .img-fluid-main {
    max-width: min(34vw, 300px) !important;
    width: 100% !important;
    height: auto !important;
    max-height: 44vh !important;
    margin-top: 0 !important;
    display: inline-block !important;
    transform: rotate(60deg) scale(1.12) !important;
    transform-origin: center center !important;
    object-fit: contain;
  }

  #top > section.py-0 .hero-copy,
  #top > section.hero-section .hero-copy {
    position: relative;
    z-index: 2;
    flex: 1 1 48% !important;
    max-width: 50% !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0.75rem 1.5rem 0.75rem 0.75rem !important;
    text-align: left !important;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    order: 1 !important;
    /* kill Bootstrap offset-lg-1 at this band */
    margin-left: 0 !important;
  }

  #top .hero-copy-block {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  #top .hero-copy h1 {
    font-size: clamp(1.65rem, 2.6vw, 2.15rem) !important;
  }

  #top .hero-cta {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0.45rem !important;
  }

  #top .hero-cta .btn {
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  #top .hero-lead {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }
}

/*
  Mid-width + short height (e.g. IDE side preview ~850×700):
  stacked hero uses desktop-sized laptop (scale 2) → overflows;
  keep phone/iPad portrait and full desktop alone.
  Even vertical rhythm: visual → title → CTAs → scroll.
*/
/* Only when the hero is already stacked (<992). Side-by-side mid widths stay row. */
@media (min-width: 768px) and (max-width: 991.98px) and (max-height: 820px) {
  .hero-section .hero-yellow-bg,
  .hero-section .hero-yellow-bg.bg-holder {
    display: none !important;
  }

  #top > section.hero-section > .min-vh-100 {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    justify-content: space-evenly !important;
    padding-bottom: 0.35rem !important;
  }

  #top .img-fluid-main,
  #top .hero-visual .img-fluid-main {
    max-width: min(48vw, 340px) !important;
    width: auto !important;
    max-height: 32vh !important;
    margin-top: 2.25rem !important;
    margin-bottom: 0 !important;
    transform: rotate(60deg) scale(1.55) !important;
    transform-origin: center center !important;
  }

  #top > section.py-0 .hero-visual {
    flex: 0 1 auto !important;
    max-height: 40vh !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #top > section.py-0 .hero-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    flex: 0 0 auto !important;
    padding: 0.25rem 1.5rem 0.15rem !important;
    margin: 0 !important;
  }

  #top .hero-copy > .overflow-hidden {
    margin: 0 !important;
  }

  #top .hero-copy h1 {
    margin: 0 !important;
  }

  #top .hero-subtitle {
    margin: 0 !important;
  }

  #top .hero-cta {
    justify-content: center !important;
    margin: 0 !important;
  }

  #top .hero-cta .btn {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

}

/* Simple service feature lists (replaces icon+br bullet hacks) */
.service-bullets {
  margin: 0 0 1rem;
  padding: 0 0 0 1.1rem;
  list-style: disc;
  font-size: 14px;
  line-height: 1.45;
}

.service-bullets li {
  margin: 0 0 0.35rem;
  padding-left: 0.15rem;
}

.service-bullets li::marker {
  color: #e40f62;
}

/* Hero scroll cue (dcode.gr pattern, brand colors for light hero) */
.hero-section {
  position: relative;
}

/* Row is the scroll containing block (sibling of copy/visual, not inside copy) */
.hero-section > .row.min-vh-100 {
  position: relative;
}

/*
  Scroll cue lives inside the hero .row (after copy + visual) so layout
  owns it. Absolute bottom-center of the row on md+; in-flow under CTAs on phone.
*/
.hero-section > .row > .hero-scroll,
.hero-scroll {
  position: absolute;
  z-index: 5;
  left: 50%;
  right: auto;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  top: auto;
  transform: translateX(-50%) scale(0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  color: rgba(35, 46, 60, 0.55);
  font-family: comfortaa, "Segoe UI", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  animation: hero-scroll-rise 1s ease 0.9s forwards;
  pointer-events: auto;
}

.hero-scroll:hover,
.hero-scroll:focus {
  color: rgba(35, 46, 60, 0.85);
  text-decoration: none;
}

.hero-scroll:focus-visible {
  outline: 2px solid #ffc554;
  outline-offset: 6px;
}

.hero-scroll__mouse {
  position: relative;
  width: 1.35rem;
  height: 2.15rem;
  border: 1.5px solid rgba(35, 46, 60, 0.45);
  border-radius: 999px;
  box-sizing: border-box;
}

.hero-scroll:hover .hero-scroll__mouse,
.hero-scroll:focus .hero-scroll__mouse {
  border-color: rgba(35, 46, 60, 0.75);
}

.hero-scroll__wheel {
  position: absolute;
  left: 50%;
  top: 0.35rem;
  width: 0.2rem;
  height: 0.38rem;
  margin-left: -0.1rem;
  border-radius: 999px;
  background: rgba(35, 46, 60, 0.55);
  animation: hero-mouse-wheel 1.7s ease infinite;
}

.hero-scroll__line {
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(to bottom, #e40f62, rgba(228, 15, 98, 0));
  transform-origin: center top;
  animation: hero-scroll-pulse 1.8s ease infinite;
}

.hero-scroll__chevron {
  display: none;
  color: #e40f62;
  line-height: 0;
}

.hero-scroll__chevron svg {
  display: block;
}

@keyframes hero-scroll-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.9);
  }
}

@keyframes hero-mouse-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70%,
  100% {
    transform: translateY(0.55rem);
    opacity: 0;
  }
}

@keyframes hero-scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Leave room so copy/CTAs never sit under the absolute scroll cue */
@media (min-width: 1200px) {
  #top > section.hero-section > .min-vh-100 {
    padding-bottom: 4.5rem;
  }
}

/* Tablet / mid: same bottom-center pin inside the row */
@media (min-width: 768px) and (max-width: 1199.98px) {
  #top > section.hero-section > .min-vh-100 {
    padding-bottom: 5.25rem !important;
  }

  .hero-section > .row > .hero-scroll,
  .hero-scroll {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(35, 46, 60, 0.85);
  }

  .hero-scroll__mouse {
    width: 1.2rem;
    height: 1.85rem;
    border-width: 2px;
    border-color: rgba(35, 46, 60, 0.75);
  }

  .hero-scroll__line {
    height: 1.75rem;
  }
}

/*
  Mobile: chevron in document flow under the CTAs (order after copy),
  not absolute at the section floor.
*/
@media (max-width: 767.98px) {
  #top > section.hero-section > .min-vh-100 {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .hero-section > .row > .hero-scroll,
  .hero-scroll {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    order: 3 !important;
    width: 100% !important;
    transform: none !important;
    gap: 0 !important;
    color: #e40f62 !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    margin: 0.85rem auto 0.35rem !important;
    padding: 0 !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .hero-scroll__mouse,
  .hero-scroll__label,
  .hero-scroll__line {
    display: none !important;
  }

  .hero-scroll__chevron {
    display: block;
    animation: hero-chevron-bounce 1.15s ease-in-out infinite;
  }

  .hero-scroll:hover .hero-scroll__chevron,
  .hero-scroll:focus .hero-scroll__chevron {
    color: #c40d54;
  }
}

@keyframes hero-chevron-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* Services sticky rail — one locked screen; scroll advances pillars */
.services-rail,
.services-rail__pin {
  display: block;
}

.home-services.is-rail-on {
  padding-block: 0;
  overflow: visible !important;
}

.home-services.is-rail-on .services-rail {
  position: relative;
  height: var(--rail-height, 300vh);
}

.home-services.is-rail-on .services-rail__pin {
  position: sticky;
  top: var(--rail-sticky-top, 104px);
  height: var(--rail-pin-height, calc(100svh - 104px));
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.65rem 0 0.85rem;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  transition: background-color 0.28s ease;
}

.home-services__frame {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0.35rem var(--page-pad-x, 1rem) 0.65rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
}

/* Match fancy-tab to navbar content (logo → Chat with Us) */
.home-services__body > .row {
  margin-left: 0;
  margin-right: 0;
}

.home-services__body > .row > .col {
  padding-left: 0;
  padding-right: 0;
}

.home-services.is-rail-on .home-services__frame {
  height: 100%;
  max-height: 100%;
  justify-content: space-between;
  transition: background-color 0.28s ease;
}

.home-services.is-rail-on .home-services__intro {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.home-services.is-rail-on .home-services__title {
  margin-bottom: 0.35rem !important;
}

.home-services.is-rail-on .home-services__body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  /* keep Bootstrap .container max-width so edges match .navbar > .container */
  display: flex;
  flex-direction: column;
}

.home-services.is-rail-on .home-services__body > .row,
.home-services.is-rail-on .home-services__body .col,
.home-services.is-rail-on .home-services__body .overflow-hidden,
.home-services.is-rail-on .fancy-tab {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: visible !important;
}

.home-services.is-rail-on .pillar-stage {
  overflow: visible;
}

.home-services.is-rail-on .pillar-stage__deck,
.home-services.is-rail-on .pillar-stage__pages {
  overflow: visible;
}

.home-services.is-rail-on .fancy-bar {
  flex: 0 0 auto;
  margin-bottom: 1.15rem;
}

.home-services.is-rail-on .fancy-tab-contents {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
}

.home-services.is-rail-on:not(.is-rail-locked) .fancy-tab-contents.bg-light.rounded-soft {
  padding: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

/* Unlocked: white around mosaic (no cream letterbox) */
.home-services.is-rail-on:not(.is-rail-locked) .pillar-stage,
.home-services.is-rail-on:not(.is-rail-locked) .pillar-stage__deck,
.home-services.is-rail-on:not(.is-rail-locked) .pillar-mosaic {
  background: #fff !important;
  background-color: #fff !important;
}

.home-services.is-rail-on.is-rail-locked .fancy-tab-contents.bg-light.rounded-soft {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.home-services.is-rail-on .fancy-tab-content.active > .col,
.home-services.is-rail-on .fancy-tab-content.active .row.no-gutters {
  padding: 0 !important;
  margin: 0 !important;
}

.home-services.is-rail-on .fancy-tab-content {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.home-services.is-rail-on .fancy-tab-content.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

.home-services.is-rail-on .fancy-tab-content > .col,
.home-services.is-rail-on .fancy-tab-content .row.no-gutters {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* —— Pillar service deck (scroll-flipped pages, no scrollbar) —— */
.pillar-stage {
  display: grid;
  /* Match slice: heroW 600 + mosaic 1000 → 3:5 */
  grid-template-columns: minmax(12rem, 3fr) minmax(0, 5fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  background: transparent;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.pillar-stage__hook {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  margin: 0;
  border-right: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  background: #f7f1e8;
}

.pillar-stage__hook h6,
.pillar-stage__question,
.pillar-stage__offer {
  display: none !important;
}

.pillar-hook-art {
  --puzzle-pad-x: 0%;
  --puzzle-pad-y: 0%;
  order: 1;
  flex: 1 1 auto;
  display: block;
  position: relative;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #f7f1e8;
  border: 0;
}

.pillar-hook-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  outline: none;
  box-shadow: none;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.pillar-hook-link:focus-visible {
  outline: none;
}

/* Hover filter = picture only. Never draw a border on the shade, and never
   sit the shade on the baked jigsaw stroke (~1.6% / 9px at source). */
.pillar-hook-link::after {
  content: "";
  position: absolute;
  inset: var(--hook-shade-inset, 1.6%);
  z-index: 1;
  border: 0 !important;
  outline: none;
  box-shadow: none;
  background: rgba(11, 23, 39, 0);
  transition: background 0.28s ease;
  pointer-events: none;
}

/* Locked rail: keep shade + title visible constantly (not hover-only) */
.home-services.is-rail-locked .pillar-hook-link::after {
  background: rgba(11, 23, 39, 0.58);
}

.pillar-hook-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 1.35rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.home-services.is-rail-locked .pillar-hook-link .pillar-hook-copy {
  opacity: 1;
  transform: translateY(0);
}

.pillar-hook-title {
  position: static;
  left: auto;
  top: auto;
  z-index: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 100%;
  pointer-events: none;
  /* Match .home-services__title (“Five pillars. One 360° team.”) */
  font-family: Niramit, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: none;
}

.pillar-hook-title__a,
.pillar-hook-title__b {
  display: block;
  font: inherit;
  color: #fff;
  text-shadow: none;
}

.pillar-hook-summary {
  display: block;
  max-width: 22rem;
  margin: 0;
  font-family: Niramit, sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.35vw, 1.05rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.home-services.is-rail-locked .pillar-hook-title__a,
.home-services.is-rail-locked .pillar-hook-title__b {
  color: #fff;
  text-shadow: none;
}

.pillar-hook-cta {
  display: none !important;
}

.pillar-hook-art__img,
.pillar-hook-art__svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  /* Same mapping as mosaic tiles — no cover-zoom */
  object-fit: fill;
  object-position: 0 0;
  margin: 0;
  background: #f7f1e8;
  pointer-events: none;
}

.pillar-hook-art__img--locked {
  opacity: 0;
}
.home-services.is-rail-locked .pillar-hook-art__img--unlocked {
  opacity: 0;
}
.home-services.is-rail-locked .pillar-hook-art__img--locked {
  opacity: 1;
}

/* Desktop: hero + mosaic side by side; keep authored proportions */
@media (min-width: 1200px) {
  .home-services.is-rail-on .pillar-stage {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 100%;
    width: 100%;
    min-height: 0;
    container-type: size;
    container-name: pillar-stage;
  }

  /* Hook 600×500 (1.2) + mosaic 2:1 share the same height */
  .home-services.is-rail-on .pillar-stage__hook {
    flex: 0 0 auto;
    padding: 0;
    overflow: hidden;
    height: min(100cqh, calc(100cqw * 0.3125));
    width: auto;
    aspect-ratio: 1.2 / 1;
    max-height: 100%;
  }

  .home-services.is-rail-on .pillar-hook-art {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .home-services.is-rail-on .pillar-hook-art__img,
  .home-services.is-rail-on .pillar-hook-art__svg {
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: fill;
    object-position: 0 0;
  }

  .home-services.is-rail-on .pillar-stage__deck {
    flex: 0 1 auto;
    height: auto;
    max-height: 100%;
    min-height: 0;
    width: auto;
    align-self: center;
    align-items: stretch;
    container-type: normal;
  }

  .home-services.is-rail-on .pillar-mosaic {
    width: min(calc(100cqw * 0.625), calc(100cqh * 2));
    height: auto;
    max-height: 100%;
    aspect-ratio: 2 / 1;
    margin-inline: 0;
  }

  .home-services.is-rail-on .pillar-hook-cta {
    display: none !important;
  }

}

.home-services.is-rail-on .fancy-tab-content.active .pillar-hook-art {
  animation: pillar-hook-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pillar-hook-in {
  from {
    opacity: 0.55;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-services.is-rail-on .fancy-tab-content.active .pillar-hook-art {
    animation: none;
  }
}

.home-services.is-rail-locked .pillar-stage__hook {
  border-right-color: rgba(228, 15, 98, 0.22);
}

.pillar-stage__deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  height: 100%;
  gap: 0;
  padding: 0;
  margin: 0;
}

.pillar-stage__pages {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
}

/* Icon mosaic — flip on hover/focus to reveal full title */
.pillar-mosaic {
  --mosaic-cols: 4;
  /* Must match slice padRatio 0.38 */
  --puzzle-pad-x: 38%;
  --puzzle-pad-y: 38%;
  /* White under transparent connector pads (unlocked); locked overrides magenta */
  background: #fff;
  display: grid;
  grid-template-columns: repeat(var(--mosaic-cols), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0;
  /* 4×2 square cells — scale as a unit (never squash tiles) */
  aspect-ratio: 2 / 1;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 0;
  overflow: visible;
  align-content: stretch;
  perspective: 900px;
  padding: 0;
  margin: 0 auto;
  z-index: 1;
}

/* Rail pin: deck wraps the mosaic tightly (no side inset).
   Size mosaic from the stage container — not the deck — or width collapses. */
.home-services.is-rail-on .pillar-stage__deck {
  flex: 0 1 auto;
  min-height: 0;
  align-self: center;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  container-type: normal;
}

.home-services.is-rail-on .pillar-mosaic {
  /* Stage is the size container (pillar-stage); keep 2:1 and no side margins */
  width: min(100cqw, calc(100cqh * 2));
  max-width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 2 / 1;
  margin-inline: 0;
}

@media (min-width: 1200px) {
  .home-services.is-rail-on .pillar-mosaic {
    width: min(calc(100cqw * 0.625), calc(100cqh * 2));
    margin-inline: 0;
  }
}

.pillar-tile {
  position: relative;
  display: block;
  min-height: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  background: transparent;
  color: #0b1727;
  text-decoration: none !important;
  perspective: 800px;
  z-index: 1;
  overflow: visible;
}

.pillar-tile:nth-child(4n + 1) { z-index: 2; }
.pillar-tile:nth-child(4n + 2) { z-index: 3; }
.pillar-tile:nth-child(4n + 3) { z-index: 2; }
.pillar-tile:nth-child(4n + 4) { z-index: 3; }

/* Mosaic + hook interactions only while the services screen is locked */
.home-services.is-rail-on:not(.is-rail-locked) .pillar-tile,
.home-services.is-rail-on:not(.is-rail-locked) .pillar-hook-link,
.home-services.is-rail-on:not(.is-rail-locked) .pillar-stage__mid-link {
  pointer-events: none;
}

.home-services.is-rail-locked .pillar-tile:hover,
.home-services.is-rail-locked .pillar-tile:focus-within {
  /* Above neighboring puzzle tabs/connectors so flipped title stays on top */
  z-index: 24;
}

.pillar-tile__flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar-tile__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pillar-tile__face--front {
  background: transparent;
  overflow: visible;
}

.pillar-tile__face--back {
  background: transparent;
  color: #fff;
  padding: 0;
  transform: rotateY(180deg);
  text-align: center;
  overflow: visible;
  gap: 0;
}

/* Magenta fill clipped to the same jigsaw (tabs/connectors included) */
.pillar-tile__back-shape {
  position: absolute;
  left: calc(-1 * var(--puzzle-pad-x));
  top: calc(-1 * var(--puzzle-pad-y));
  width: calc(100% + 2 * var(--puzzle-pad-x));
  height: calc(100% + 2 * var(--puzzle-pad-y));
  background: #e40f62;
  /* mask-image set per-tile in JS (absolute URL) */
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
  z-index: 0;
}

/* One magenta label block — index + title, centered, above cuts */
.pillar-tile__back-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: auto;
  max-width: 88%;
  height: auto;
  margin: auto;
  padding: 0.4rem 0.55rem;
  box-sizing: border-box;
  pointer-events: none;
  background: #e40f62;
  box-shadow: 0 0 0 0.2rem #e40f62;
}

.pillar-tile__media {
  display: block;
  width: 100%;
  height: 100%;
}

.pillar-tile__media .pillar-tile__img,
.pillar-tile__img {
  display: block;
  position: absolute;
  left: calc(-1 * var(--puzzle-pad-x));
  top: calc(-1 * var(--puzzle-pad-y));
  width: calc(100% + 2 * var(--puzzle-pad-x));
  height: calc(100% + 2 * var(--puzzle-pad-y));
  object-fit: fill;
  object-position: center;
  border-radius: 0 !important;
  background: transparent;
  pointer-events: none;
}

/* Dual stroke layers — CSS opacity flip (no async src swap flash) */
.pillar-tile__img--locked {
  opacity: 0;
}
.home-services.is-rail-locked .pillar-tile__img--unlocked {
  opacity: 0;
}
.home-services.is-rail-locked .pillar-tile__img--locked {
  opacity: 1;
}

.pillar-tile__media > svg.pillar-tile__img {
  object-fit: unset;
}

.pillar-tile__index {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.92);
  font: 700 0.58rem / 1 Comfortaa, sans-serif;
  letter-spacing: 0.1em;
  color: #e40f62;
}

.pillar-tile__face--back .pillar-tile__index {
  position: static;
  background: transparent;
  color: #ffd98e;
  box-shadow: none;
  padding: 0;
}

.pillar-tile__title {
  font: 700 clamp(0.62rem, 0.85vw, 0.78rem) / 1.25 Comfortaa, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 100%;
  color: #fff;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.home-services.is-rail-locked .pillar-tile:hover,
.home-services.is-rail-locked .pillar-tile:focus,
.home-services.is-rail-locked .pillar-tile:focus-visible {
  outline: none;
  z-index: 24;
  text-decoration: none !important;
  color: inherit;
}

.home-services.is-rail-locked .pillar-tile:hover .pillar-tile__flip,
.home-services.is-rail-locked .pillar-tile:focus .pillar-tile__flip,
.home-services.is-rail-locked .pillar-tile:focus-visible .pillar-tile__flip {
  transform: rotateY(180deg);
}

.home-services.is-rail-locked .pillar-tile:focus-visible .pillar-tile__face--back {
  box-shadow: inset 0 0 0 3px #ffd98e;
}

@media (prefers-reduced-motion: reduce) {
  .pillar-tile__flip {
    transition: none;
  }

  .home-services.is-rail-locked .pillar-tile:hover .pillar-tile__flip,
  .home-services.is-rail-locked .pillar-tile:focus .pillar-tile__flip,
  .home-services.is-rail-locked .pillar-tile:focus-visible .pillar-tile__flip {
    transform: none;
  }

  .pillar-tile__face--back {
    display: none;
  }
}

.home-services.is-rail-on .fancy-tab-content.active .pillar-tile {
  animation: pillar-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-i, 0) * 45ms);
}

.pillar-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  align-content: start;
}

.home-services.is-rail-on .pillar-page:not(.pillar-page--all) {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1.1rem) scale(0.985);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.45s;
}

.home-services.is-rail-on .pillar-page.is-page-on:not(.pillar-page--all) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.home-services.is-rail-on .pillar-page--all {
  position: relative;
  inset: auto;
}

.home-services.is-rail-on .pillar-page.is-page-on .pillar-card {
  animation: pillar-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-i, 0) * 70ms);
}

@keyframes pillar-card-in {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pillar-page--all .pillar-card {
  padding: 0.65rem 0.7rem 0.7rem 0.8rem;
}

.pillar-page--all .pillar-card p {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.72rem !important;
}

.pillar-page--all .pillar-card h6 {
  font-size: 0.76rem !important;
}

.pillar-card {
  position: relative;
  display: block;
  padding: 0.85rem 0.95rem 0.9rem 1.05rem;
  background: linear-gradient(160deg, #fff 0%, #f4f7fb 100%);
  border: 1px solid rgba(11, 23, 39, 0.08);
  border-left: 3px solid #e40f62;
  min-height: 0;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.pillar-card:hover,
.pillar-card:focus {
  border-left-color: #ffc554;
  box-shadow: 0 10px 28px rgba(11, 23, 39, 0.08);
  transform: translateY(-2px);
  outline: none;
  background: linear-gradient(160deg, #fff 0%, #fff6e8 100%);
}

.pillar-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(228, 15, 98, 0.28), 0 10px 28px rgba(11, 23, 39, 0.08);
}

.pillar-card:hover .pillar-card__icon {
  background: #e40f62;
  color: #fff;
  border-color: #e40f62;
}

.pillar-card__index {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(228, 15, 98, 0.45);
}

.pillar-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  padding-right: 1.5rem;
}

.pillar-card__icon {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  background: rgba(228, 15, 98, 0.08);
  border: 1px solid rgba(228, 15, 98, 0.14);
  color: #e40f62;
  font-size: 0.72rem;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pillar-card h6 {
  margin: 0 !important;
  padding-right: 0;
  font-size: 0.82rem !important;
  line-height: 1.35;
  color: #0b1727 !important;
}

.pillar-card p {
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.4;
  color: #5a6573 !important;
  max-width: none !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}


/* Pagination retired — all services live in one frame */
.home-services.is-rail-on .pillar-stage__dots,
.home-services.is-rail-on .pillar-stage__cue {
  display: none !important;
}

.pillar-stage__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.pillar-stage__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 23, 39, 0.18);
  cursor: pointer;
  transition: width 0.3s ease, background 0.25s ease;
}

.pillar-stage__dot.is-dot-on {
  width: 1.35rem;
  background: #e40f62;
}

.pillar-stage__cue {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.1rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(11, 23, 39, 0.45);
}

.pillar-stage__cue-track {
  flex: 1 1 auto;
  height: 2px;
  background: rgba(11, 23, 39, 0.1);
  overflow: hidden;
}

.pillar-stage__cue-fill {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #e40f62, #ffc554);
  transition: width 0.35s ease;
}

/* Phone / rail-off: stack every page, no absolute overlay */
.home-services:not(.is-rail-on) .pillar-stage {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 1.25rem 1rem;
}

.home-services:not(.is-rail-on) .pillar-stage__hook {
  border-right: 0;
  border-bottom: 2px solid rgba(11, 23, 39, 0.1);
  padding: 0 0 1rem;
  margin-bottom: 0.75rem;
}

.home-services:not(.is-rail-on) .pillar-page {
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  margin-bottom: 0.85rem;
}

.home-services:not(.is-rail-on) .pillar-stage__dots,
.home-services:not(.is-rail-on) .pillar-stage__cue {
  display: none;
}

/* Mobile pillar summary card — used below lg (mosaic needs more room) */
.pillar-mobile-card {
  display: none;
}

/*
  Breakpoints for services visual:
  ≥1200  desktop hook + mosaic
  992–1199 tablet mosaic (tabs only — no mid copy strip)
  <992   mobile cards
*/
@media (max-width: 991.98px) {
  #services .home-services__intro {
    margin-bottom: 0.55rem;
  }

  #services .home-services__title {
    margin-bottom: 0.45rem !important;
  }

  #services .home-services__cta {
    margin-top: 0.85rem;
  }

  #services .fancy-tab .fancy-bar {
    padding-left: 0;
    padding-right: 0;
  }

  #services .fancy-tab-contents,
  #services .fancy-tab-contents.bg-light,
  #services .fancy-tab-contents.rounded-soft {
    background: #f4f6f9 !important;
    border-radius: 0.85rem !important;
    box-shadow: none !important;
    border: 0 !important;
    /* Photo bleeds to shell edges; text keeps inset */
    padding: 0 !important;
    overflow: hidden !important;
  }

  #services .pillar-stage {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    padding: 0;
    gap: 0;
    background: transparent;
  }

  #services .pillar-stage__hook,
  #services .pillar-stage__mid,
  #services .pillar-stage__deck {
    display: none !important;
  }

  #services .pillar-mobile-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
    padding: 0 0 1.05rem;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none !important;
    box-shadow: none;
    outline: none;
    transition: transform 0.2s ease;
  }

  /* Full-bleed puzzle art → dissolves into shell; zoom crops L/R whites */
  #services .pillar-mobile-card__media {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #f4f6f9;
    aspect-ratio: 16 / 9.25;
  }

  #services .pillar-mobile-card__img {
    display: block;
    width: 195%;
    max-width: none;
    height: 145%;
    margin: -12% 0 0 -47.5%;
    object-fit: cover;
    object-position: center 38%;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, 0.5) 70%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, 0.5) 70%,
      transparent 100%
    );
  }

  #services .pillar-mobile-card__kicker,
  #services .pillar-mobile-card__title,
  #services .pillar-mobile-card__blurb,
  #services .pillar-mobile-card__cta {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
    text-align: left !important;
  }

  #services .pillar-mobile-card__kicker {
    margin-top: -1.1rem;
  }

  #services .pillar-mobile-card:focus,
  #services .pillar-mobile-card:focus-visible {
    outline: none;
    box-shadow: none;
  }

  #services .pillar-mobile-card:active {
    transform: scale(0.985);
  }

  #services .pillar-mobile-card__kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e40f62;
  }

  #services .pillar-mobile-card__title {
    margin: 0;
    font: 800 1.35rem/1.2 Niramit, sans-serif;
    color: #0b1727;
  }

  #services .pillar-mobile-card__blurb {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #5a6573;
  }

  #services .pillar-mobile-card__cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    margin-top: 0.45rem;
    /* keep shared L/R inset from the group rule above */
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0;
    background: transparent;
    color: #e40f62;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    transition: color 0.18s ease, gap 0.18s ease;
  }

  /* Hover = color only (no underline / black line) */
  #services .pillar-mobile-card:hover .pillar-mobile-card__cta,
  #services .pillar-mobile-card:focus-visible .pillar-mobile-card__cta {
    color: #0b1727;
    text-decoration: none !important;
    border-bottom: 0 !important;
    gap: 0.55rem;
  }

  #services .pillar-mobile-card__cta .fas {
    font-size: 0.72rem;
    transition: transform 0.18s ease;
  }

  #services .pillar-mobile-card:hover .pillar-mobile-card__cta .fas,
  #services .pillar-mobile-card:focus-visible .pillar-mobile-card__cta .fas {
    transform: translateX(3px);
  }

  #services .fancy-bar-label {
    display: none !important;
  }
}

/* Mid title/blurb — unused; tabs already name the pillar; cards cover <992 */
.pillar-stage__mid {
  display: none !important;
}

/*
 * Intermediate tablet landscape (992–1199):
 * mosaic only (no hook, no mid copy) — active fancy-tab is the label.
 * Side-by-side hook column from 1200px up. Mobile cards below 992.
 */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .home-services.is-rail-on .pillar-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    align-content: stretch;
    align-items: stretch;
    height: 100%;
    min-height: 0;
  }

  /* Drop the main hook strip + the white seam under it */
  .home-services.is-rail-on .pillar-stage__hook {
    display: none !important;
  }

  .home-services.is-rail-on .pillar-hook-cta {
    display: none !important;
  }

  .home-services.is-rail-on .pillar-stage__mid,
  .home-services.is-rail-on .pillar-stage__mid-link {
    display: none !important;
  }

  .home-services.is-rail-on .pillar-stage__deck {
    gap: 0;
    min-height: 0;
    flex: 1 1 auto;
    width: 100%;
    align-self: stretch;
  }

  .home-services.is-rail-on .pillar-stage__pages,
  .home-services.is-rail-on .pillar-mosaic {
    flex: 0 1 auto;
    width: min(100cqw, calc(100cqh * 2));
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    aspect-ratio: 2 / 1;
    grid-auto-rows: 1fr;
    margin-inline: auto;
  }

  .home-services.is-rail-on .pillar-stage__offer {
    font-size: 0.65rem !important;
    letter-spacing: 0.12em;
  }

  .home-services.is-rail-on .pillar-page {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.6rem;
    align-content: start;
    align-items: start;
  }

  .home-services.is-rail-on .pillar-card {
    padding: 0.55rem 0.65rem 0.5rem 0.7rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
  }

  .home-services.is-rail-on .pillar-card__index {
    top: 0.4rem;
    right: 0.5rem;
    font-size: 0.6rem;
  }

  .home-services.is-rail-on .pillar-card__head {
    gap: 0.45rem;
    margin-bottom: 0.2rem;
    padding-right: 1.25rem;
  }

  .home-services.is-rail-on .pillar-card__icon {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.62rem;
  }

  .home-services.is-rail-on .pillar-card h6 {
    font-size: 0.72rem !important;
    line-height: 1.25;
  }

  .home-services.is-rail-on .pillar-card p {
    font-size: 0.68rem !important;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .home-services.is-rail-on .pillar-stage__cue {
    margin-top: 0;
    font-size: 0.58rem;
  }

  /* Keep the section title visible — only mid/hook stay dropped */
  .home-services.is-rail-on .home-services__intro {
    display: block;
    margin-bottom: 0.35rem;
  }

  .home-services.is-rail-on .home-services__kicker {
    margin-bottom: 0.15rem;
  }

  .home-services.is-rail-on .home-services__title {
    margin-bottom: 0 !important;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  }

  .home-services.is-rail-on .home-services__cta {
    margin-top: 0.2rem;
  }

  .home-services.is-rail-on .home-services__cta .btn-gold {
    padding: 0.4rem 1.1rem;
    font-size: 0.72rem;
  }
}

/* Short locked viewport: compact mosaic chrome (hook already hidden <1200) */
@media (max-height: 780px) {
  .home-services.is-rail-on .pillar-stage {
    padding: 0;
    gap: 0;
  }

  .home-services.is-rail-on .pillar-page {
    gap: 0.4rem 0.5rem;
  }

  .home-services.is-rail-on .pillar-card {
    padding: 0.45rem 0.55rem 0.4rem 0.6rem;
  }

  .home-services.is-rail-on .pillar-card p {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .home-services.is-rail-on .fancy-bar-item {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }
}

@media (max-width: 991.98px) {
  /* Keep 4×2; row height comes from mosaic aspect-ratio when rail is on */
  .pillar-mosaic {
    --mosaic-cols: 4;
  }

  .home-services:not(.is-rail-on) .pillar-mosaic {
    grid-auto-rows: minmax(4.5rem, 1fr);
  }
}

@media (max-width: 575.98px) {
  .pillar-mosaic {
    --mosaic-cols: 4;
  }

  .home-services:not(.is-rail-on) .pillar-mosaic {
    grid-auto-rows: minmax(3.75rem, 1fr);
  }
}

.home-services.is-rail-on .home-services__cta {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  padding-bottom: 0.15rem;
}

/* Locked services screen → magenta wash; invert titles + CTA */
.home-services.is-rail-locked .services-rail__pin,
.home-services.is-rail-locked .home-services__frame {
  background: #e40f62;
  background-color: #e40f62;
}

.home-services.is-rail-locked .home-services__kicker,
.home-services.is-rail-locked .home-services__title {
  color: #fff !important;
}

.home-services.is-rail-locked .fancy-tab {
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  padding: 0;
}

.home-services.is-rail-on .fancy-bar {
  border-bottom-color: rgba(255, 255, 255, 0.22) !important;
  position: relative;
  margin-bottom: 1.15rem;
}

/* Pillar underline — always (mobile rail-off included) */
#services .fancy-tab .fancy-bar {
  position: relative;
}

#services .fancy-tab .fancy-bar .tab-indicator,
.home-services.is-rail-on .fancy-bar .tab-indicator {
  height: 3px;
  bottom: -2px;
  background: #ffd98e;
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
  right: auto !important;
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#services .fancy-tab .fancy-bar .tab-indicator:not(.services-tab-indicator),
.home-services.is-rail-on .fancy-bar .tab-indicator:not(.services-tab-indicator) {
  display: none !important;
}

@media (max-width: 767.98px) {
  #services .fancy-tab .fancy-bar .tab-indicator {
    height: 3px;
    bottom: -1px;
    background: #ffc554;
  }
}

.home-services.is-rail-locked .fancy-bar-item {
  color: rgba(255, 255, 255, 0.48);
  opacity: 0.78;
  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    background 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.home-services.is-rail-locked .fancy-bar-item .fas,
.home-services.is-rail-locked .fancy-bar-item .far {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.home-services.is-rail-locked .fancy-bar-item.active {
  color: #fff !important;
  opacity: 1;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-services.is-rail-locked .fancy-bar-item.active .fas,
.home-services.is-rail-locked .fancy-bar-item.active .far {
  color: #fff !important;
  transform: scale(1.12);
}

.home-services.is-rail-locked .fancy-bar-item.active .fancy-bar-label {
  color: #fff !important;
  font-weight: 800;
}

#services.home-services.is-rail-locked .fancy-tab .fancy-bar .tab-indicator,
#services.home-services.is-rail-locked .fancy-tab .fancy-bar .tab-indicator.services-tab-indicator {
  background: #fff !important;
}

.home-services.is-rail-locked .fancy-bar-item.is-pillar-pulse {
  animation: pillar-tab-pulse 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pillar-tab-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.home-services.is-rail-locked.is-pillar-swap .fancy-tab-contents {
  animation: pillar-panel-swap 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pillar-panel-swap {
  0% {
    opacity: 0.55;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Locked: full magenta wash (no cream/white panel under mid + mosaic) */
.home-services.is-rail-locked .fancy-tab-contents,
.home-services.is-rail-locked .fancy-tab-contents.bg-light,
.home-services.is-rail-locked .fancy-tab-contents.bg-light.rounded-soft {
  background: transparent !important;
  background-color: transparent !important;
}

.home-services.is-rail-locked .pillar-stage,
.home-services.is-rail-locked .pillar-stage__mid,
.home-services.is-rail-locked .pillar-stage__deck,
.home-services.is-rail-locked .pillar-stage__hook,
.home-services.is-rail-locked .pillar-hook-art {
  background: transparent;
  background-color: transparent;
}

/* Magenta under pads while locked (fills puzzle-pad gaps) */
.home-services.is-rail-locked .pillar-mosaic {
  background: #e40f62 !important;
  background-color: #e40f62 !important;
}

.home-services.is-rail-on .services-rail__pin,
.home-services.is-rail-on .home-services__frame,
.home-services.is-rail-on .pillar-mosaic,
.home-services.is-rail-on .fancy-tab-contents {
  transition: none;
}

.home-services.is-rail-locked .home-services__cta .btn-gold {
  color: #fff !important;
  background-color: transparent !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

.home-services.is-rail-locked .home-services__cta .btn-gold:hover,
.home-services.is-rail-locked .home-services__cta .btn-gold:focus {
  color: #e40f62 !important;
  background-color: #fff !important;
  border-color: #fff !important;
}

/* Service tab bar: equal-width items across the full row */
#services .fancy-tab .fancy-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

#services .fancy-tab .fancy-bar .fancy-bar-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 0.5rem;
}

#services .fancy-tab .fancy-bar-label {
  display: none;
  margin-top: 0.35rem;
  white-space: normal;
  line-height: 1.2;
}

@media (min-width: 992px) {
  #services .fancy-tab .fancy-bar-label {
    display: block;
  }
}

/* Service panels: tighter vertical padding (py-8 is too tall) */
#services .fancy-tab-content .row.py-8 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  align-items: flex-start;
}

#services .fancy-tab-content .row.py-8 > [class*="col-"] {
  padding-top: 0.25rem;
}

.insights-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 0;
}

.home-insights.is-rail-on .insights-carousel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

.insights-carousel__viewport {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.home-insights:not(.is-rail-on) .insights-carousel__track {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .home-insights:not(.is-rail-on) .home-insight-card {
    flex: 0 0 min(42vw, 320px);
    width: min(42vw, 320px);
    max-width: 320px;
  }
}

.home-insights.is-rail-on .insights-carousel__viewport {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  contain: paint;
  isolation: isolate;
}

.home-insights__grid,
.insights-carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2px 2px 4px;
}

.home-insights__grid::-webkit-scrollbar,
.insights-carousel__track::-webkit-scrollbar {
  display: none;
}

.home-insights.is-rail-on .insights-carousel__track {
  overflow: visible;
  scroll-snap-type: none;
  width: max-content;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: 100%;
  align-items: stretch;
  transform: translate3d(var(--rail-x, 0px), 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.insights-carousel__nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #e6ebf2;
  background: #fff;
  color: #232e3c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(35, 46, 60, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.insights-carousel__nav:hover,
.insights-carousel__nav:focus-visible {
  border-color: #e40f62;
  color: #e40f62;
  outline: none;
}

.insights-carousel__nav--prev {
  left: -6px;
}

.insights-carousel__nav--next {
  right: -6px;
}

@media (max-width: 767.98px) {
  .insights-carousel__nav {
    display: none;
  }
}

.home-insight-card {
  flex: 0 0 min(78vw, 320px);
  width: min(78vw, 320px);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
  text-decoration: none !important;
  color: inherit;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: box-shadow 0.15s ease, opacity 0.25s ease;
  height: auto;
  opacity: 0.9;
}

.home-insights.is-rail-on .home-insight-card {
  flex: 0 0 var(--insight-card-width, 320px);
  width: var(--insight-card-width, 320px);
  max-width: var(--insight-card-width, 320px);
  max-height: 100%;
  scroll-snap-align: none;
}

.home-insight-card.is-active,
.home-insight-card:hover,
.home-insight-card:focus {
  opacity: 1;
  box-shadow: 0 0.25rem 0.75rem rgba(11, 23, 39, 0.06);
  color: inherit;
}

.home-insight-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8edf3;
  overflow: hidden;
  flex: 0 0 auto;
}

.home-insight-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.home-insight-card__copy {
  display: block;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1 1 auto;
}

.home-insight-card__title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: #232e3c;
  margin: 0 0 0.4rem;
}

.home-insight-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5e6e82;
  margin: 0;
}

.home-insights__cta {
  margin-top: 0;
  padding-bottom: 0.25rem;
  flex: 0 0 auto;
}

.home-insights:not(.is-rail-on) .home-insights__cta {
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
  text-align: center;
}

.home-insights.is-rail-on .home-insights__cta {
  text-align: center;
}

/* Ready band — match lovedigital.me (~308px: pt-7 + pb-0, no min-height) */
.ready-band.pb-0,
.ready-band {
  position: relative;
  z-index: 2;
  overflow: visible;
  max-width: 100%;
  margin-top: 160px;
  min-height: 0 !important;
  padding-top: 4.5rem !important; /* Bootstrap pt-7 */
  padding-bottom: 0 !important;
  display: block;
}

/* Keep light-grey wash under insights — no white strip before Ready */
.home-insights {
  margin-bottom: 0;
}

.home-insights.is-rail-on:not(.is-rail-locked) .insights-rail,
.home-insights.is-rail-on:not(.is-rail-locked) .insights-rail__pin,
.home-insights.is-rail-on:not(.is-rail-locked) .home-insights__frame {
  background-color: var(--insights-wash, #e8ecf1);
}

/* Solid band grey — no light wash strip at the top */
.home-insights + .ready-band {
  background-image: none;
  background-color: #9da9bb;
}

.ready-band > .container {
  width: 100%;
  overflow: visible;
}

@media (min-width: 768px) {
  .ready-band .col-lg-4.col-md-6 {
    transform: translateX(80px);
  }
}

/* Absolute cubes — do not inflate section height (original wrap is ~0) */
.ready-band__cubes-wrap {
  position: relative;
  z-index: 6;
  overflow: visible;
  min-height: 0;
  height: 0;
}

/*
  lovedigital.me: cubes hang at a fixed x:-450; zanim only changes y.
  Split into .cubes-x (fixed offset) + .cubes-motion (y only) so RTL can
  mirror x in CSS without theme.js flipping a shared from/to.x.
*/
.ready-band__cubes-x {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  transform: translateX(-450px);
}

.ready-band__cubes-motion {
  will-change: transform;
}

.ready-band__cubes {
  display: block;
  height: 450px;
  width: auto;
  max-width: none;
  pointer-events: none;
}

/*
  Arabic: full flip of EN (cubes left / copy right) →
  copy left, cubes right, art mirrored + hangs +450, text packed toward cubes.
*/
html[dir="rtl"] .ready-band .row {
  direction: ltr;
}

html[dir="rtl"] .ready-band .ready-band__copy-col {
  order: 1 !important;
  direction: rtl;
  text-align: right !important;
  display: flex;
  flex-direction: column;
  /* RTL column: flex-start = physical right (toward cubes) */
  align-items: flex-start;
  margin-left: 0 !important;
  margin-right: 1.5rem !important;
}

html[dir="rtl"] .ready-band .ready-band__copy-col .overflow-hidden,
html[dir="rtl"] .ready-band .ready-band__copy-col .ready-band__kicker,
html[dir="rtl"] .ready-band .ready-band__copy-col h4 {
  width: 100%;
  text-align: right !important;
}

html[dir="rtl"] .ready-band .ready-band__cubes-col {
  order: 2 !important;
}

html[dir="rtl"] .ready-band__cubes-x {
  left: auto;
  right: 0;
  top: 0;
  transform: translateX(450px);
}

html[dir="rtl"] .ready-band__cubes {
  transform: scaleX(-1);
  transform-origin: center center;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  html[dir="rtl"] .ready-band .ready-band__copy-col {
    margin-right: 4.5rem !important;
  }
}

@media (min-width: 768px) {
  html[dir="rtl"] .ready-band .ready-band__copy-col {
    transform: translateX(-80px);
  }
}

@media (max-width: 767.98px) {
  .ready-band.pb-0,
  .ready-band {
    min-height: 0 !important;
    padding-top: 2.25rem !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .home-insights {
    padding: 3rem 0 2.5rem;
  }
}

/* Service tab icons */
.fancy-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: rgba(228, 15, 98, 0.08);
  color: #e40f62;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.fancy-tab .fancy-bar .fancy-bar-item.active .fancy-bar-icon {
  background: #e40f62;
  color: #fff;
}

/* Homepage service-tab brand insights (styles live here — insights.css is not on index) */
.service-insights {
  margin-top: 1.5rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid #e6ebf2;
}

.service-insights__label {
  font: 700 0.72rem / 1.2 Comfortaa, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e40f62;
  margin: 0 0 0.85rem;
}

.service-insights__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.service-insights__item {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 0.5rem;
  text-decoration: none !important;
  color: #232e3c !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-insights__item:hover,
.service-insights__item:focus {
  border-color: #ffc554;
  box-shadow: 0 0.25rem 0.75rem rgba(11, 23, 39, 0.06);
  color: #232e3c !important;
}

.service-insights__media {
  flex: 0 0 112px;
  width: 112px;
  background: #f4f6f9;
  overflow: hidden;
}

.service-insights__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-insights__copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 0;
}

.service-insights__title {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #232e3c;
  margin: 0 0 0.35rem;
}

.service-insights__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5e6e82;
  margin: 0;
}

.service-insights__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1rem;
}

.service-insights__action {
  font-weight: 700;
  font-size: 0.88rem;
  color: #e40f62 !important;
  text-decoration: none !important;
}

.service-insights__action:hover,
.service-insights__action:focus {
  color: #b50c4e !important;
  text-decoration: underline !important;
}

@media (max-width: 767.98px) {
  .service-insights {
    margin-top: 1.15rem;
    padding-top: 1rem;
  }

  .service-insights__item {
    flex-direction: column;
  }

  .service-insights__media {
    flex: none;
    width: 100%;
    height: 140px;
  }

  .service-insights__copy {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .service-insights__title {
    font-size: 0.92rem;
  }

  .service-insights__desc {
    font-size: 0.8rem;
  }
}

/* —— Internal pages: page shell (no side illustration) —— */
.insights-main {
  position: relative;
  overflow: visible;
}

.page-deco,
.page-bleed {
  display: none !important;
}

/* Internal pages: one centered measure for every element */
.insights-page {
  --page-measure: 800px;
  --page-shell-pad-x: 18px;
  --page-hero-h: clamp(220px, 38vw, 420px);
  --page-hero-h-sm: 200px;
  --page-hero-bg: #f7e9ef;
  --page-hero-gap: 1.75rem;
}

/* Services: intro keeps original 800px column; body matches navbar */
.services-page.insights-page .page-shell__intro {
  --page-shell-pad-x: 18px;
  max-width: calc(800px + (2 * 18px));
}

.services-page.insights-page .page-shell__body {
  --page-shell-pad-x: 15px;
  max-width: 1140px;
}

/* Shell = measure + side pads, centered on the viewport */
.insights-page .page-shell__inner,
.insights-page .container.page-shell__inner {
  max-width: calc(var(--page-measure) + (2 * var(--page-shell-pad-x)));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
  padding-right: var(--page-shell-pad-x);
  padding-bottom: 0.5rem;
  padding-left: var(--page-shell-pad-x);
  box-sizing: border-box;
}

/* Everything inside the shell fills the 800px content column */
.insights-page .page-shell__inner > *,
.insights-page .page-shell__inner .rail,
.insights-page .page-shell__inner .rail .lead,
.insights-page .page-shell__inner .offering-layout,
.insights-page .page-shell__inner .article-body,
.insights-page .page-shell__inner .article-meta-block,
.insights-page .page-shell__inner .article-header,
.insights-page .page-shell__inner .case-study,
.insights-page .page-shell__inner .case-study__header,
.insights-page .page-shell__inner .case-study__summary,
.insights-page .page-shell__inner .case-study__body,
.insights-page .page-shell__inner .insights-grid,
.insights-page .page-shell__inner .services-hub,
.insights-page .page-shell__inner .case-grid,
.insights-page .page-shell__inner .service-offer-grid,
.insights-page .page-shell__inner .service-meta-block,
.insights-page .page-shell__inner .service-cta-row,
.insights-page .page-shell__inner .service-siblings,
.insights-page .page-shell__inner .service-related,
.insights-page .page-shell__inner .insights-filters,
.insights-page .page-shell__inner .about-body,
.insights-page .page-shell__inner .legal-prose,
.insights-page .page-shell__inner #offeringRoot,
.insights-page .page-shell__inner #articleRoot,
.insights-page .page-shell__inner #caseStudyRoot,
.insights-page .page-shell__inner #servicesHub,
.insights-page .page-shell__inner #service-main > * {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

.insights-page .page-shell__inner .rail {
  margin-bottom: 1.5rem;
}

/* Intro rail fills its restored 800px shell */
.services-page.insights-page .page-shell__intro .rail {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Shared hero — same column as copy */
.insights-page .page-hero,
.insights-page .article-hero,
.insights-page .service-hero,
.insights-page .case-study__hero {
  display: block;
  max-width: 100%;
  width: 100%;
  margin: var(--page-hero-gap) 0;
  padding: 0;
  line-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--page-hero-bg);
  aspect-ratio: auto;
  max-height: none;
}

/* Keep breathing room if next block collapses its own top margin */
.insights-page .page-hero + *,
.insights-page .article-hero + *,
.insights-page .service-hero + *,
.insights-page .case-study__hero + *,
.insights-page .page-hero + .offering-layout,
.insights-page .page-hero + .article-meta-block,
.insights-page .page-hero + .case-study__summary,
.insights-page .case-study__hero + .case-study__summary {
  margin-top: 0;
}

.insights-page .page-hero img,
.insights-page .article-hero img,
.insights-page .service-hero img,
.insights-page .case-study__hero img {
  display: block;
  width: 100%;
  height: var(--page-hero-h);
  max-height: none;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 575.98px) {
  .insights-page {
    --page-shell-pad-x: var(--page-pad-x, 16px);
  }

  .insights-page .page-hero img,
  .insights-page .article-hero img,
  .insights-page .service-hero img,
  .insights-page .case-study__hero img {
    height: var(--page-hero-h-sm);
  }
}

.insights-page .page-shell__inner > .rail + .rail {
  margin-top: -0.75rem;
  margin-bottom: 0.75rem;
}

.insights-page .page-shell__inner > .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  width: 100%;
}

/* About hero image stays visible inside the rail */

.people-page .insights-main {
  padding-bottom: 2.5rem !important;
}

.people-page .people-hero.rail {
  margin-bottom: 0;
}

.people-page .people-hero .eye {
  margin: 0 0 0.25rem;
}

.people-page .people-hero .page-title {
  margin: 0;
}

.people-page .people-hero .lead {
  margin: 0.4rem 0 0;
}

.people-page .people-hero__figure {
  display: block;
  margin: 0.75rem 0 0;
  border-radius: 0;
  overflow: hidden;
  background: #f7f1e8;
  aspect-ratio: 16 / 9;
  line-height: 0;
  box-shadow: none;
}

.people-page .people-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.people-page .page-shell__intro,
.people-page .page-shell__body {
  padding-top: 0;
  padding-bottom: 0;
}

.people-page .team-section,
.people-page .people-block {
  /* theme.css sets section { padding: 4rem } — kill that gap */
  margin: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.people-page .team-section {
  margin: 0.85rem 0 1.25rem;
}

.people-page .team-section--directory {
  display: block;
}

.people-page .team-section__heading {
  margin: 0 0 0.75rem;
  color: #1a2230;
  font: 800 clamp(1.5rem, 2.5vw, 2rem) / 1.2 Niramit, sans-serif;
}

.people-page .team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.9rem;
}

@media (min-width: 700px) {
  .people-page .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .people-page .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.people-page .team-card {
  margin: 0;
}

.people-page .team-card__photo,
.people-page .team-card img {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.65rem;
  background: #d7dde6;
  color: #8a94a3;
  font: 700 clamp(1.4rem, 3vw, 2rem) / 1 Niramit, sans-serif;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.people-page .team-card img {
  object-fit: cover;
  filter: grayscale(1);
  background: #d7dde6;
}

.people-page .team-card h3 {
  margin: 0.45rem 0 0.1rem;
  color: #1a2230;
  font: 700 1.05rem / 1.25 Niramit, sans-serif;
}

.people-page .team-card p {
  margin: 0;
  color: #5e6e82;
  font: 400 0.92rem / 1.3 Niramit, sans-serif;
}

.people-page .people-body {
  max-width: 48rem;
  margin-top: 0.25rem;
  color: #3a4553;
  font: 400 1.02rem / 1.5 Niramit, sans-serif;
}

.people-page .people-block + .people-block {
  margin-top: 1.25rem;
}

.people-page .people-block h2 {
  margin: 0 0 0.45rem;
  color: #1a2230;
  font: 700 clamp(1.25rem, 2.2vw, 1.55rem) / 1.25 Niramit, sans-serif;
}

.people-page .people-block p {
  margin: 0 0 0.55rem;
}

.people-page .people-block p:last-child {
  margin-bottom: 0;
}

.people-page .people-roles {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem 1.5rem;
}

@media (min-width: 700px) {
  .people-page .people-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.people-page .people-roles h3 {
  margin: 0 0 0.35rem;
  color: #1a2230;
  font: 700 1.05rem / 1.3 Niramit, sans-serif;
}

.people-page .people-roles p {
  margin: 0;
  color: #5a6573;
}

.people-page .people-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.contact-page,
.contact-page .insights-main {
  background-color: #e8eaee;
}

.contact-page .page-shell__inner {
  background: transparent;
}

.contact-page .contact-body {
  color: #3a4553;
  font: 400 1.05rem / 1.65 Niramit, sans-serif;
  margin-top: 1.5rem;
}

.contact-page .contact-offices {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .contact-page .contact-offices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-page .contact-office--hours {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .contact-page .contact-offices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .contact-page .contact-office--hours {
    grid-column: auto;
  }
}

.contact-page .contact-office {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  height: 100%;
  overflow: hidden;
}

.contact-page .contact-office__meta,
.contact-page .contact-office--hours {
  padding: 1.5rem 1.5rem 1.35rem;
}

.contact-page .contact-office--hours {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-page .contact-office__headset {
  margin-top: auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, #e40f62 8%, #fff);
  color: #e40f62;
  font-size: 2.35rem;
  line-height: 1;
  pointer-events: none;
}

.contact-page .contact-office__headset .fas {
  transform: translateY(0.05em);
}

.contact-page .contact-office h2 {
  margin: 0 0 1rem;
  color: #e40f62;
  font: 700 1.05rem / 1.3 Niramit, sans-serif;
}

.contact-page .contact-office__line {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 0.85rem;
}

.contact-page .contact-office__line .fas {
  margin-top: 0.3rem;
  flex: 0 0 auto;
}

.contact-page .contact-office__line a {
  color: #3a4553;
  text-decoration: none;
}

.contact-page .contact-office__line a:hover {
  color: #e40f62;
}

.contact-page .contact-office__maps-link {
  display: inline-block;
  margin: 0.15rem 0 0.35rem;
  color: #4d5969;
  font: 600 0.88rem / 1.3 Niramit, sans-serif;
  text-decoration: none;
}

.contact-page .contact-office__maps-link:hover {
  color: #e40f62;
}

.contact-page .contact-office--map .office-map-frame {
  margin-top: auto;
  height: 220px;
  border-radius: 0;
  border-top: 1px solid #eef1f6;
}

/* Full-bleed form band — sits at top of contact page on grey ground */
.contact-page .contact-form-block.page-full {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.25rem 0 2.75rem;
  background-color: transparent !important;
}

.contact-page .contact-form-block__intro {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto;
}

.contact-page .contact-form-block__intro h2 {
  margin: 0 0 0.5rem;
  color: #232e3c;
}

.contact-page .contact-form-block__intro p {
  margin: 0;
  color: #5e6e82;
}

.contact-page .contact-page-form {
  max-width: none;
}

.contact-page .contact-page-form .form-control {
  border-color: #d7dee8;
  color: #232e3c;
  background: #fff;
}

.contact-page .contact-page-form .form-control:focus {
  border-color: #e40f62;
  box-shadow: 0 0 0 0.2rem rgba(228, 15, 98, 0.18);
}

.contact-page .contact-page-form .contact-message {
  min-height: 11.5rem;
}

.contact-page .contact-page-form .custom-control-label {
  color: #232e3c;
}

.contact-page .contact-page-form .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #e40f62;
  border-color: #e40f62;
}

.legal-page .legal-prose {
  max-width: 100%;
  color: #3a4553;
  font: 400 1.05rem / 1.65 Niramit, sans-serif;
}

.legal-page .legal-prose h2 {
  margin: 2rem 0 0.75rem;
  color: #1a2230;
  font: 700 clamp(1.15rem, 2vw, 1.35rem) / 1.25 Niramit, sans-serif;
}

.legal-page .legal-prose h2:first-child {
  margin-top: 0;
}

.legal-page .legal-prose p,
.legal-page .legal-prose ul {
  margin: 0 0 1rem;
}

.legal-page .legal-prose ul {
  padding-left: 1.25rem;
}

.legal-page .legal-prose a {
  color: #e40f62;
  text-decoration: underline;
}

.legal-page .legal-prose a:hover {
  color: #b50c4e;
}

.cookie-page-prefs {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(35, 46, 60, 0.14);
  background: #f7f8fa;
}

.cookie-page-prefs fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.cookie-page-prefs legend {
  margin: 0 0 1rem;
  padding: 0;
  color: #1a2230;
  font: 700 0.95rem / 1.3 Comfortaa, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-page-prefs__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
  color: #232e3c;
  font-weight: 600;
  cursor: pointer;
}

.cookie-page-prefs__row input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #e40f62;
}

.cookie-page-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cookie-page-prefs__status {
  margin: 0.85rem 0 0;
  color: #1f7a45;
  font-weight: 600;
}


/* —— Shared site footer (matches top nav container + logo) —— */
.site-footer {
  background: #232e3c;
  color: #c5ced8;
  margin-top: 0;
}

.site-footer__main {
  padding: 3.25rem 0 2.75rem;
}

.site-footer > .container,
.site-footer__bar > .container {
  /* same horizontal measure as .navbar > .container */
  width: 100%;
}

.site-footer__grid {
  display: grid;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 0.7fr) auto minmax(0, 0.7fr);
  }
}

.site-footer__brand {
  max-width: 28rem;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  text-decoration: none;
}

/* Same size + alignment as .navbar-brand .logo */
.site-footer__logo .logo,
.site-footer__logo img.logo,
.site-footer img.logo {
  width: 108px !important;
  max-width: 108px;
  max-height: 42px;
  height: auto !important;
  object-fit: contain;
  display: block;
  padding: 0 !important;
  margin: 0;
}

@media (max-width: 991.98px) {
  .site-footer__logo .logo,
  .site-footer__logo img.logo,
  .site-footer img.logo {
    width: 88px !important;
    max-width: 88px;
    max-height: 36px;
  }
}

.site-footer__headline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
  overflow: visible;
  position: relative;
  width: max-content;
  max-width: 100%;
}

.site-footer__title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  color: #fff;
  font: 800 clamp(1.5rem, 2.5vw, 2rem) / 1.15 Niramit, sans-serif;
  letter-spacing: -0.02em;
}

.site-footer__deco {
  display: block;
  flex: 0 0 auto;
  width: clamp(2.25rem, 5.5vw, 3rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  transform: scaleX(-1);
  align-self: flex-start;
  margin-top: 0.2rem;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.site-footer__contact {
  margin: 0 0 1.15rem;
}

.site-footer__contact a {
  display: block;
  margin-bottom: 0.35rem;
  color: #9aa6b5;
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: #ffc554;
  text-decoration: none;
}

.site-footer__social {
  margin-top: 1.15rem;
}

.site-footer__social a {
  color: #9aa6b5;
  font-size: 1.15rem;
  margin-right: 0.85rem;
  text-decoration: none;
}

.site-footer__social a:hover {
  color: #ffc554;
}

.site-footer__rule {
  display: none;
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.5rem 0;
}

@media (min-width: 992px) {
  .site-footer__rule {
    display: block;
  }
}

.site-footer__col-title {
  margin: 0 0 1rem;
  color: #fff;
  font: 700 0.8rem / 1.2 Comfortaa, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin: 0 0 0.5rem;
}

.site-footer__links a,
.site-footer__links .footer-text-btn {
  color: #9aa6b5;
  text-decoration: none;
  font-size: 0.95rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.site-footer__links a:hover,
.site-footer__links .footer-text-btn:hover {
  color: #ffc554;
  text-decoration: none;
}

/* Matches original: section.bg-black.py-4.text-center (theme bg-black = brand pink) */
.site-footer__bar {
  background-color: #e40f62 !important;
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer__bar p {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.site-footer__bar a {
  color: #fff;
  font-weight: 700;
}

.site-footer__bar a:hover {
  color: #ffc554;
  text-decoration: none;
}

.site-footer__bar .text-primary {
  color: #ffc554 !important;
}

@media (max-width: 767.98px) {
  .site-footer__main {
    padding: 2.5rem 0 2rem;
  }

  .site-footer__brand {
    max-width: none;
    grid-column: 1 / -1;
  }

  /* Keep logo left-aligned like .navbar-brand */
  .site-footer__logo {
    justify-content: flex-start;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* =============================================================================
   Arabic RTL — alignment, mirrored chrome, puzzle stage, lock rails, carousels
   ============================================================================= */
html[dir="rtl"],
html[dir="rtl"] body.is-rtl {
  text-align: start;
}

html[dir="rtl"] .navbar-nav {
  text-align: right;
}

html[dir="rtl"] .navbar-nav.ml-auto,
html[dir="rtl"] .ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .ml-lg-2 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

html[dir="rtl"] .mr-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html[dir="rtl"] .mr-3,
html[dir="rtl"] #top .hero-cta .btn.mr-3 {
  margin-right: 0 !important;
  margin-left: 1rem !important;
}

html[dir="rtl"] .mr-4 {
  margin-right: 0 !important;
  margin-left: 1.5rem !important;
}

html[dir="rtl"] .ml-2 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}

html[dir="rtl"] .pl-5,
html[dir="rtl"] #contact .card-body.pl-5,
html[dir="rtl"] #contact .pl-5 {
  padding-left: 0 !important;
  padding-right: 3rem !important;
}

html[dir="rtl"] .pr-3 {
  padding-right: 0 !important;
  padding-left: 1rem !important;
}

html[dir="rtl"] .text-left,
html[dir="rtl"] .text-md-left,
html[dir="rtl"] .text-md-left.text-center,
html[dir="rtl"] #insightsHomeGrid.text-left {
  text-align: right !important;
}

html[dir="rtl"] .text-right {
  text-align: left !important;
}

html[dir="rtl"] .footer-text-btn,
html[dir="rtl"] .site-footer__col-title,
html[dir="rtl"] .site-footer__links,
html[dir="rtl"] .site-footer__contact,
html[dir="rtl"] .site-footer__headline {
  text-align: right;
}

html[dir="rtl"] .site-footer__social {
  justify-content: flex-end;
}

html[dir="rtl"] .site-footer__logo {
  justify-content: flex-end;
}

html[dir="rtl"] .cookie-notice__inner {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .media {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .media .mr-2,
html[dir="rtl"] .media .fas.mr-2,
html[dir="rtl"] .media .far.mr-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html[dir="rtl"] .form-control,
html[dir="rtl"] .custom-select,
html[dir="rtl"] textarea,
html[dir="rtl"] input,
html[dir="rtl"] select {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .owl-nav {
  direction: ltr;
}

html[dir="rtl"] .lang-stripe__back {
  text-align: right;
}

/* —— Services pillar stage + jigsaw mosaic ——
   Mirror the whole stage as one unit so tabs/blanks stay interlocked.
   Un-flip readable text/icons inside. Keep CSS grid direction LTR. */
html[dir="rtl"] .home-services.is-rail-on .pillar-stage {
  direction: ltr;
  transform: scaleX(-1);
  transform-origin: center center;
}

html[dir="rtl"] .home-services.is-rail-on .pillar-stage__hook {
  border-right: 0;
  border-left: 0;
}

html[dir="rtl"] .home-services.is-rail-locked .pillar-stage__hook {
  border-right-color: rgba(228, 15, 98, 0.22);
  border-left-color: transparent;
}

/* Un-flip readable copy only when the stage itself is mirrored (desktop rail).
   Apply to OUTER copy wrappers only — nested title/summary also getting
   scaleX(-1) double-flipped Arabic and broke letter joining. */
html[dir="rtl"] .home-services.is-rail-on .pillar-hook-copy,
html[dir="rtl"] .home-services.is-rail-on .pillar-tile__back-copy,
html[dir="rtl"] .home-services.is-rail-on .pillar-stage__mid {
  transform: scaleX(-1);
  text-align: center;
  direction: rtl;
}

html[dir="rtl"] .home-services.is-rail-on .pillar-hook-cta {
  transform: scaleX(-1);
}

html[dir="rtl"] .pillar-mobile-card {
  text-align: center;
  direction: rtl;
}

html[dir="rtl"] .pillar-mobile-card__cta .fa-arrow-right,
html[dir="rtl"] .pillar-hook-cta .fa-arrow-right,
html[dir="rtl"] .service-card__more .fa-arrow-right {
  transform: scaleX(-1);
  display: inline-block;
}

/* Fancy bar: reverse tab order for Arabic; indicator still uses physical left via JS */
html[dir="rtl"] #services .fancy-tab .fancy-bar,
html[dir="rtl"] .home-services .fancy-bar {
  direction: rtl;
}

html[dir="rtl"] #services .fancy-tab .fancy-bar .tab-indicator,
html[dir="rtl"] .home-services .fancy-bar .tab-indicator {
  right: auto !important;
}

html[dir="rtl"] .home-services.is-rail-locked .fancy-bar-label {
  text-align: right;
}

/* Keep homepage section titles/kickers centered in Arabic (match LTR) */
html[dir="rtl"] .home-services.is-rail-locked .home-services__kicker,
html[dir="rtl"] .home-services.is-rail-locked .home-services__title,
html[dir="rtl"] .home-insights.is-rail-locked .home-insights__kicker,
html[dir="rtl"] .home-insights.is-rail-locked .home-insights__title,
html[dir="rtl"] .case-studies-home.is-rail-locked .case-kicker,
html[dir="rtl"] .case-studies-home.is-rail-locked .case-title,
html[dir="rtl"] .home-services.is-rail-locked .home-services__intro,
html[dir="rtl"] .home-insights.is-rail-locked .home-insights__intro,
html[dir="rtl"] .case-studies-home.is-rail-locked .case-studies-home__intro,
html[dir="rtl"] .home-services.is-rail-locked > .container,
html[dir="rtl"] .home-insights.is-rail-locked > .container,
html[dir="rtl"] .case-studies-home.is-rail-locked > .container {
  text-align: center !important;
}

html[dir="rtl"] .home-services.is-rail-locked .home-services__title,
html[dir="rtl"] .home-insights.is-rail-locked .home-insights__title,
html[dir="rtl"] .case-studies-home.is-rail-locked .case-title {
  margin-left: auto !important;
  margin-right: auto !important;
}

html[dir="rtl"] .home-services__kicker,
html[dir="rtl"] .home-services__title,
html[dir="rtl"] .home-insights__kicker,
html[dir="rtl"] .home-insights__title,
html[dir="rtl"] .case-kicker,
html[dir="rtl"] .case-title,
html[dir="rtl"] .case-studies-home__intro,
html[dir="rtl"] .home-services__intro,
html[dir="rtl"] .home-insights__intro,
html[dir="rtl"] .case-hub__kicker,
html[dir="rtl"] .case-hub__title,
html[dir="rtl"] .case-hub__lead,
html[dir="rtl"] .page-title,
html[dir="rtl"] .page-shell__intro .eye,
html[dir="rtl"] .page-shell__intro .lead,
html[dir="rtl"] .page-shell__intro .rail,
html[dir="rtl"] .page-shell__intro .page-title {
  text-align: center;
}

html[dir="rtl"] .eye,
html[dir="rtl"] .lead,
html[dir="rtl"] .rail {
  text-align: right;
}

html[dir="rtl"] .page-shell__intro .eye,
html[dir="rtl"] .page-shell__intro .lead,
html[dir="rtl"] .page-shell__intro .rail,
html[dir="rtl"] .text-center.eye,
html[dir="rtl"] .text-center.lead,
html[dir="rtl"] .text-center .eye,
html[dir="rtl"] .text-center .lead,
html[dir="rtl"] .text-center .rail,
html[dir="rtl"] .text-center .page-title {
  text-align: center !important;
}

/*
  Arabic hero = equal mirror of EN via row scaleX(-1).
  Children scaleX(-1) again so type/art stay readable; all EN offsets,
  translates, and column geometry flip for free.
*/
html[dir="rtl"] .hero-section > .row {
  direction: ltr;
  transform: scaleX(-1);
  transform-origin: center center;
}

/* Unflip type + scroll only — art stays mirrored by the row (equal to EN) */
html[dir="rtl"] .hero-section .hero-copy,
html[dir="rtl"] .hero-section .hero-scroll {
  transform: scaleX(-1);
  transform-origin: center center;
}

html[dir="rtl"] .hero-section .hero-copy {
  direction: rtl;
  text-align: right !important;
  position: relative;
  z-index: 2;
}

.hero-visual__mirror {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  vertical-align: top;
}

/* About section art — LTR sits on the right; Arabic flips + sits on the left */
#about .about-visual {
  background-image: none !important;
}

#about .about-visual__art {
  position: absolute;
  inset: 0;
  background-image: url("../img/food/soup.png");
  background-position: right center;
  background-size: 40%;
  background-repeat: no-repeat;
  pointer-events: none;
}

html[dir="rtl"] #about .about-visual__art {
  /* scaleX mirrors the asset; right-positioned art lands on the left margin */
  transform: scaleX(-1);
  transform-origin: center center;
}

html[dir="rtl"] .hero-section .hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: row;
  gap: 0.75rem;
}

html[dir="rtl"] #top .hero-cta .btn {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* EN translate kept; parent row scaleX mirrors it. scaleX(-1) unflips type. */
@media (min-width: 1200px) {
  html[dir="rtl"] #top .hero-copy {
    text-align: right !important;
    transform: translate(clamp(6.5rem, calc(46rem - 31vw), 9.85rem), 1.75rem) scaleX(-1);
  }
}

@media (min-width: 1540px) {
  html[dir="rtl"] #top .hero-copy {
    transform: translate(11.1rem, 1.75rem) scaleX(-1);
  }
}

/* Phone / stacked tablet RTL: center the stack (avoids empty left void) */
@media (max-width: 991.98px) {
  html[dir="rtl"] .hero-section > .row {
    transform: none !important;
  }

  html[dir="rtl"] .hero-section .hero-copy,
  html[dir="rtl"] .hero-section .hero-scroll {
    transform: none !important;
  }

  html[dir="rtl"] #top > section.hero-section .hero-copy,
  html[dir="rtl"] #top > section.py-0 .hero-copy {
    text-align: center !important;
    align-items: center !important;
  }

  html[dir="rtl"] #top .hero-copy h1,
  html[dir="rtl"] #top .hero-subtitle,
  html[dir="rtl"] #top .hero-lead {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html[dir="rtl"] #top .hero-cta {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html[dir="rtl"] .hero-section .hero-visual {
    transform: none !important;
  }
}

/* Phone RTL extras */
@media (max-width: 767.98px) {
  html[dir="rtl"] .lang-stripe .container {
    flex-direction: row !important;
  }

  html[dir="rtl"] .case-studies-home__intro,
  html[dir="rtl"] .home-services__intro,
  html[dir="rtl"] .home-insights__intro {
    text-align: center;
  }

  html[dir="rtl"] #whyus .fs-2,
  html[dir="rtl"] #whyus p,
  html[dir="rtl"] #aboutus p,
  html[dir="rtl"] .owl-carousel p {
    text-align: center !important;
  }
}

html[dir="rtl"] .site-footer__deco {
  transform: none; /* already mirrored in LTR; undo for RTL */
  align-self: flex-end;
}

html[dir="rtl"] .insights-filters {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

html[dir="rtl"] .insight-card,
html[dir="rtl"] .insight-card__copy,
html[dir="rtl"] .home-insight-card,
html[dir="rtl"] .home-insight-card__copy,
html[dir="rtl"] .home-insight-card__title,
html[dir="rtl"] .home-insight-card__desc,
html[dir="rtl"] .service-card__body,
html[dir="rtl"] .service-card__name,
html[dir="rtl"] .service-card__lead,
html[dir="rtl"] .case-card__body,
html[dir="rtl"] .case-study,
html[dir="rtl"] .article-body,
html[dir="rtl"] .article-meta-block,
html[dir="rtl"] .offering-block,
html[dir="rtl"] .offering-hero,
html[dir="rtl"] .people-card,
html[dir="rtl"] .about-page {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .insights-carousel,
html[dir="rtl"] .case-carousel {
  direction: ltr; /* nav hit areas stay physical */
}

/*
  Arabic rails: mirror the viewport so scrub runs opposite of LTR,
  then un-mirror each card so art/text stay readable.
*/
html[dir="rtl"] .home-insights.is-rail-on .insights-carousel__viewport,
html[dir="rtl"] .case-studies-home.is-rail-on .case-carousel__viewport {
  direction: ltr;
  transform: scaleX(-1);
  transform-origin: center center;
}

html[dir="rtl"] .home-insights.is-rail-on .insights-carousel__track,
html[dir="rtl"] .case-studies-home.is-rail-on .case-carousel__track {
  flex-direction: row;
  direction: ltr;
}

html[dir="rtl"] .home-insights.is-rail-on .home-insight-card,
html[dir="rtl"] .case-studies-home.is-rail-on .case-card {
  transform: scaleX(-1);
}

/* Non-rail / touch: native overflow scrolls RTL */
html[dir="rtl"] .home-insights:not(.is-rail-on) .insights-carousel__viewport,
html[dir="rtl"] .home-insights:not(.is-rail-on) .insights-carousel__track,
html[dir="rtl"] .case-studies-home:not(.is-rail-on) .case-carousel__viewport,
html[dir="rtl"] .case-studies-home:not(.is-rail-on) .case-carousel__track {
  direction: rtl;
}

html[dir="rtl"] .insights-carousel__nav--prev,
html[dir="rtl"] .case-carousel__nav--prev {
  left: auto;
  right: -6px;
}

html[dir="rtl"] .insights-carousel__nav--next,
html[dir="rtl"] .case-carousel__nav--next {
  right: auto;
  left: -6px;
}

html[dir="rtl"] .insights-carousel__nav--prev .fas,
html[dir="rtl"] .case-carousel__nav--prev .fas,
html[dir="rtl"] .insights-carousel__nav--next .fas,
html[dir="rtl"] .case-carousel__nav--next .fas {
  display: inline-block;
  transform: scaleX(-1);
}

html[dir="rtl"] .home-insight-card__copy,
html[dir="rtl"] .case-card__body,
html[dir="rtl"] .case-card .hoverbox-content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .case-card__client,
html[dir="rtl"] .case-card__services {
  text-align: right;
}

/* Locked rail frames: keep content start-aligned for Arabic */
html[dir="rtl"] .home-insights.is-rail-locked .home-insights__frame,
html[dir="rtl"] .home-services.is-rail-locked .home-services__frame,
html[dir="rtl"] .case-studies-home.is-rail-locked .case-studies-home__frame {
  text-align: right;
}

html[dir="rtl"] .btn .fas.fa-arrow-right,
html[dir="rtl"] a .fas.fa-arrow-right {
  display: inline-block;
  transform: scaleX(-1);
}

@media (max-width: 767.98px) {
  html[dir="rtl"] .site-footer__logo {
    justify-content: flex-end;
  }
}

/* =============================================================================
   Mobile polish — tighter rhythm, denser footer, better phone adaptation
   ============================================================================= */
@media (max-width: 767.98px) {
  html {
    --page-pad-x: 1.05rem;
    scroll-padding-top: 88px;
  }

  /* —— Lang stripe: prevent overflow on narrow phones —— */
  .lang-stripe {
    font-size: 0.72rem;
  }

  .lang-stripe .container {
    gap: 0.35rem;
    min-height: 1.75rem;
  }

  .lang-stripe__back {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .lang-switch__btn {
    min-width: 24px;
    padding: 3px 5px;
    font-size: 0.68rem;
  }

  /* —— Hero: less empty viewport, denser copy/CTAs —— */
  #top > section.py-0 .hero-visual,
  #top > section.hero-section .hero-visual {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    padding: 0.35rem 0.25rem 0 !important;
    margin: 0 !important;
  }

  #top .img-fluid-main,
  #top .hero-visual .img-fluid-main {
    max-width: min(58vw, 220px) !important;
    width: 58% !important;
    max-height: 28vh !important;
    margin: 0.35rem auto 0 !important;
    transform: rotate(60deg) scale(1.65) !important;
  }

  #top > section.hero-section > .min-vh-100,
  #top > section.py-0 > .min-vh-100 {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    padding-top: 0.25rem !important;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #top > section.py-0 .hero-copy,
  #top > section.hero-section .hero-copy {
    gap: 0.45rem !important;
    padding: 0.15rem var(--page-pad-x) 0.1rem !important;
  }

  #top h1 {
    font-size: clamp(1.7rem, 7vw, 2.15rem) !important;
    line-height: 1.1 !important;
    max-width: 16ch;
  }

  #top .hero-subtitle {
    margin: 0 auto 0.35rem !important;
    font-size: clamp(0.88rem, 3.5vw, 1rem) !important;
    max-width: 30ch;
  }

  #top .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.45rem !important;
    width: 100%;
  }

  #top .hero-cta .btn {
    margin: 0 !important;
    padding-top: 0.42rem !important;
    padding-bottom: 0.42rem !important;
    font-size: 0.82rem !important;
  }

  .hero-scroll {
    margin: 0.55rem auto 0.15rem !important;
  }

  html {
    --btn-mobile-w: calc(100vw - (2 * var(--page-pad-x)));
  }

  .btn-cta,
  .btn-hero {
    width: min(100%, 20rem) !important;
  }

  /* —— Section rhythm: closer to desktop density —— */
  .home-services,
  .home-insights,
  .case-studies-home {
    padding: 1.75rem 0 1.5rem !important;
  }

  .home-services.is-rail-on,
  .home-insights.is-rail-on,
  .case-studies-home.is-rail-on {
    padding-block: 0 !important;
  }

  .case-studies-home__intro,
  .home-services__intro,
  .home-insights__intro {
    margin-bottom: 0.85rem !important;
  }

  .case-title,
  .home-services__title,
  .home-insights__title,
  .section-title {
    margin-bottom: 0.55rem !important;
    font-size: clamp(1.45rem, 6.2vw, 1.85rem) !important;
    line-height: 1.15 !important;
  }

  /* Mobile above-title kickers — match Pillars (1.15rem / Comfortaa 700) */
  .section-kicker,
  .home-services__kicker,
  .home-insights__kicker,
  .case-kicker,
  .case-studies-home .case-kicker,
  .ready-band__kicker,
  #whyus .fs-2,
  #whyus p.fs-2,
  #aboutus .fs-2,
  #aboutus p.fs-2,
  #about .fs-2,
  #contact .contact-section__intro .fs-2,
  #contact p.fs-2.text-1000 {
    font: 700 1.15rem / 1.2 Comfortaa, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    margin-bottom: 0.2rem !important;
  }

  .ready-band__kicker {
    color: #ffc554 !important;
  }

  .case-carousel__track,
  .insights-carousel__track,
  .home-insights__grid {
    gap: 12px !important;
  }

  .home-insight-card__copy,
  .case-card__body {
    padding: 0.75rem 0.8rem 0.85rem !important;
  }

  .home-insight-card__title,
  .case-card__title {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }

  .ready-band.pb-0,
  .ready-band {
    min-height: 0 !important;
    padding-top: 2.25rem !important;
    padding-bottom: 2rem !important;
  }

  .ready-band .col-lg-4.col-md-6 {
    transform: none !important;
    padding-bottom: 0 !important;
  }

  .ready-band h4 {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.85rem !important;
  }

  #aboutus {
    padding-top: 2rem !important;
  }

  #aboutus h2,
  #whyus h2 {
    font-size: clamp(1.4rem, 6vw, 1.75rem) !important;
    line-height: 1.18 !important;
  }

  #whyus .pb-7,
  #aboutus .pb-7,
  #whyus [class*="pb-"],
  #about .pb-7 {
    padding-bottom: 1.5rem !important;
  }

  /* Contact: deco hidden on phone — drop the desktop splash offset */
  section#contact.contact-section {
    padding: 2rem 0 1.25rem !important;
  }

  section#contact .contact-section__intro {
    margin-bottom: 1.15rem !important;
    padding-top: 0 !important;
  }

  section#contact .contact-section__cards .card-body {
    padding: 1.15rem 1.1rem !important;
  }

  section#contact .contact-section__cards .col-lg-4 {
    margin-bottom: 0.85rem !important;
  }

  section#contact-form.bg-light {
    padding-top: 1.5rem !important;
    padding-bottom: 1.75rem !important;
  }

  #gallery {
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Services mobile card denser — keep photo full-bleed, text inset */
  #services .fancy-tab-contents,
  #services .fancy-tab-contents.bg-light,
  #services .fancy-tab-contents.rounded-soft {
    padding: 0 !important;
    border-radius: 0.7rem !important;
  }

  #services .pillar-mobile-card {
    gap: 0.4rem !important;
    padding: 0 0 0.85rem !important;
  }

  #services .pillar-mobile-card__title {
    font-size: 1.2rem !important;
  }

  #services .pillar-mobile-card__blurb {
    font-size: 0.88rem !important;
  }

  #services .home-services__cta {
    margin-top: 0.65rem !important;
  }

  /* —— Footer: compact, phone-first composition —— */
  .site-footer__main {
    padding: 1.65rem 0 1.35rem !important;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem !important;
  }

  .site-footer__brand {
    grid-column: auto;
    text-align: center;
    max-width: none;
    margin: 0 0 0.15rem;
  }

  .site-footer__col {
    text-align: center;
  }

  .site-footer__links {
    align-items: center;
  }

  .site-footer__logo {
    justify-content: center !important;
    margin: 0 auto 0.65rem !important;
  }

  .site-footer__headline {
    justify-content: center;
    width: auto !important;
    max-width: 100%;
    margin: 0 auto 0.65rem !important;
    gap: 0.5rem;
  }

  .site-footer__title {
    font-size: clamp(1.25rem, 5.5vw, 1.5rem) !important;
    line-height: 1.15 !important;
    text-align: center;
  }

  .site-footer__title br {
    display: none;
  }

  .site-footer__deco {
    width: 1.85rem !important;
    margin-top: 0.05rem;
  }

  .site-footer__contact {
    margin: 0 0 0.75rem !important;
  }

  .site-footer__contact a {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
  }

  .site-footer__brand .btn,
  .site-footer__brand .btn-cta {
    width: min(100%, 16rem) !important;
    margin: 0 auto !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    font-size: 0.78rem !important;
  }

  .site-footer__social {
    margin-top: 0.75rem !important;
    justify-content: center;
    display: flex;
  }

  .site-footer__social a {
    margin-right: 0;
    margin-left: 0;
    margin-inline: 0.45rem;
    font-size: 1.05rem;
  }

  .site-footer__col-title {
    margin: 0 0 0.55rem !important;
    font-size: 0.72rem !important;
  }

  .site-footer__links li {
    margin: 0 0 0.35rem !important;
  }

  .site-footer__links a,
  .site-footer__links .footer-text-btn {
    font-size: 0.88rem !important;
  }

  .site-footer__bar {
    padding: 0.85rem 0 !important;
  }

  .site-footer__bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem 0.35rem;
  }

  .site-footer__bar p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .site-footer__bar a {
    font-size: 0.82rem;
  }

  /* Internal pages: less hero height, tighter shell */
  .insights-page {
    --page-hero-h: clamp(160px, 42vw, 240px);
    --page-hero-gap: 1.1rem;
  }

  .insights-page .page-shell__inner,
  .insights-page .container.page-shell__inner {
    padding-bottom: 0.25rem;
  }

  .insights-page .rail {
    margin-bottom: 1rem !important;
  }

  .insights-page .rail .page-title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem) !important;
  }

  .cookie-notice__inner {
    gap: 0.65rem;
    padding: 0.85rem 0;
  }
}

@media (max-width: 575.98px) {
  .lang-stripe__back {
    max-width: 38vw;
  }

  #top .img-fluid-main,
  #top .hero-visual .img-fluid-main {
    max-width: min(54vw, 190px) !important;
    max-height: 24vh !important;
    transform: rotate(60deg) scale(1.55) !important;
  }

  .site-footer__grid {
    gap: 1rem 0.85rem !important;
  }
}

/* RTL mobile footer stays start-aligned within centered brand */
@media (max-width: 767.98px) {
  html[dir="rtl"] .site-footer__brand,
  html[dir="rtl"] .site-footer__title,
  html[dir="rtl"] .site-footer__contact {
    text-align: center !important;
  }

  html[dir="rtl"] .site-footer__logo {
    justify-content: center !important;
  }

  html[dir="rtl"] .site-footer__col-title,
  html[dir="rtl"] .site-footer__links,
  html[dir="rtl"] .site-footer__links a,
  html[dir="rtl"] .site-footer__links .footer-text-btn {
    text-align: right !important;
  }

  html[dir="rtl"] .site-footer__headline {
    flex-direction: row-reverse;
  }
}

/* =============================================================================
   Mobile polish pass — tighter hero/footer, FAB clearance, scaled type
   ============================================================================= */
@media (max-width: 767.98px) {
  /* Kill the tablet 100vh lock — hug content instead of empty white */
  #top > section.py-0.hero-section,
  #top > section.hero-section {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  .hero-section .hero-yellow-bg,
  .hero-section .hero-yellow-bg.bg-holder {
    display: none !important;
  }

  #top > section.hero-section > .min-vh-100,
  #top > section.py-0 > .min-vh-100 {
    padding-top: calc(0.35rem + var(--loved-header-h, 94px)) !important;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Hero: denser copy/CTAs under chrome */
  #top > section.py-0 .hero-visual,
  #top > section.hero-section .hero-visual {
    padding: 0.15rem 0.2rem 0 !important;
  }

  #top .img-fluid-main,
  #top .hero-visual .img-fluid-main {
    max-width: min(52vw, 180px) !important;
    width: 52% !important;
    max-height: 22vh !important;
    margin: 0.2rem auto 0 !important;
    transform: rotate(60deg) scale(1.5) !important;
  }

  #top > section.py-0 .hero-copy,
  #top > section.hero-section .hero-copy {
    gap: 0.35rem !important;
    padding: 0.05rem var(--page-pad-x) 0 !important;
  }

  #top h1 {
    font-size: clamp(1.55rem, 6.6vw, 1.95rem) !important;
  }

  #top .hero-subtitle {
    margin: 0 auto 0.2rem !important;
    font-size: clamp(0.84rem, 3.3vw, 0.95rem) !important;
  }

  #top .hero-cta {
    gap: 0.4rem !important;
  }

  #top .hero-cta .btn,
  #top .hero-cta .btn-cta,
  #top .hero-cta .btn-hero {
    width: min(82%, 16.5rem) !important;
    max-width: 16.5rem !important;
  }

  .hero-scroll {
    margin: 0.4rem auto 0.05rem !important;
  }

  /* Testimonials: fs-1 (36px) overwhelms phones */
  #whyus .fs-1,
  #whyus p.fs-1.font-weight-bold,
  #aboutus .fs-1,
  .owl-carousel p.fs-1.font-weight-bold {
    font-size: clamp(1.05rem, 4.6vw, 1.25rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.2rem !important;
  }

  /* Why Us body copy density — kickers handled in shared mobile kicker block */

  /* Footer brand: denser contact + CTA stack */
  .site-footer__main {
    padding: 1.35rem 0 1.1rem !important;
  }

  .site-footer__logo {
    margin: 0 auto 0.45rem !important;
  }

  .site-footer__logo .logo,
  .site-footer__logo img.logo,
  .site-footer img.logo {
    width: 78px !important;
    max-width: 78px;
    max-height: 32px;
  }

  .site-footer__headline {
    margin: 0 auto 0.45rem !important;
    gap: 0.4rem;
  }

  .site-footer__title {
    font-size: clamp(1.15rem, 5vw, 1.35rem) !important;
  }

  .site-footer__deco {
    width: 1.55rem !important;
  }

  .site-footer__contact {
    margin: 0 0 0.55rem !important;
    line-height: 1.35;
  }

  .site-footer__contact a {
    margin-bottom: 0.12rem;
    font-size: 0.84rem;
  }

  .site-footer__brand .btn,
  .site-footer__brand .btn-cta {
    width: min(100%, 14.5rem) !important;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    font-size: 0.72rem !important;
  }

  .site-footer__social {
    margin-top: 0.55rem !important;
  }

  .site-footer__grid {
    gap: 0.85rem 0.75rem !important;
  }

  .site-footer__col-title {
    margin: 0 0 0.4rem !important;
    font-size: 0.68rem !important;
  }

  .site-footer__links li {
    margin: 0 0 0.22rem !important;
  }

  .site-footer__links a,
  .site-footer__links .footer-text-btn {
    font-size: 0.82rem !important;
    line-height: 1.3;
  }

  /* Footer bar: wrap cleanly; clear floating back-to-top */
  .site-footer__bar {
    padding: 0.7rem 0 !important;
  }

  .site-footer__bar.py-4 {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
  }

  .site-footer__bar .container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.1rem 0.3rem !important;
    padding-left: var(--page-pad-x) !important;
    padding-right: calc(var(--page-pad-x) + 2.4rem) !important;
    max-width: 100%;
  }

  .site-footer__bar p,
  .site-footer__bar a,
  .site-footer__bar .container > a {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .site-footer__bar p.d-inline-block {
    display: inline !important;
  }

  .bottom-to-top {
    bottom: 0.65rem !important;
    right: 0.65rem !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    line-height: 1.55rem !important;
    font-size: 12px !important;
  }

  /* Section rhythm — about/why/ready a notch denser */
  #aboutus {
    padding-top: 1.65rem !important;
  }

  .ready-band.pb-0,
  .ready-band {
    min-height: 0 !important;
    padding-top: 1.75rem !important;
    padding-bottom: 1.5rem !important;
  }

  .ready-band h4 {
    margin-bottom: 0.65rem !important;
  }
}

@media (max-width: 575.98px) {
  /* Keep bar as wrapping row (not 3 stacked lines); clear FAB on the right */
  .site-footer__bar .container {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.1rem 0.35rem !important;
    padding-right: calc(var(--page-pad-x) + 2.25rem) !important;
  }

  .site-footer__bar p,
  .site-footer__bar a {
    font-size: 0.68rem !important;
  }

  .bottom-to-top {
    bottom: 0.55rem !important;
    right: 0.55rem !important;
  }
}

/* =============================================================================
   Mobile hero rework — single composition: art → title → CTAs → chevron
   Wins over earlier layered overrides.
   ============================================================================= */
@media (max-width: 767.98px) {
  :root {
    --loved-header-h: calc(88px + env(safe-area-inset-top, 0px));
  }

  #top > section.py-0.hero-section,
  #top > section.hero-section {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: block !important;
    background-color: #fff !important;
    background-image: none !important;
  }

  #top > section.hero-section > .min-vh-100,
  #top > section.py-0 > .min-vh-100 {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-top: var(--loved-header-h) !important;
    padding-bottom: 0.35rem !important;
    overflow: visible !important;
  }

  /* Art band */
  #top > section.py-0 .hero-visual,
  #top > section.hero-section .hero-visual {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0.55rem 0 0.15rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    text-align: center !important;
  }

  #top > section.py-0 .hero-visual > div,
  #top > section.hero-section .hero-visual > div {
    width: min(70vw, 15.5rem) !important;
    height: min(48vw, 11.25rem) !important;
    margin: 0.35rem auto 0.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  #top .img-fluid-main,
  #top .hero-visual .img-fluid-main {
    width: 92% !important;
    max-width: 92% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    transform: rotate(60deg) scale(1.18) !important;
    transform-origin: center center !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
  }

  /* Copy band */
  #top > section.py-0 .hero-copy,
  #top > section.hero-section .hero-copy {
    order: 2 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.15rem var(--page-pad-x) 0.1rem !important;
    text-align: center !important;
  }

  #top .hero-copy > .overflow-hidden {
    width: 100% !important;
    overflow: visible !important;
  }

  #top .hero-copy h1,
  #top h1 {
    width: 100% !important;
    max-width: 18ch !important;
    margin: 0 auto !important;
    font-size: clamp(1.55rem, 6.8vw, 1.95rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em;
    text-align: center !important;
  }

  #top .hero-subtitle {
    display: block !important;
    width: 100% !important;
    max-width: 28ch !important;
    margin: 0 auto !important;
    font-size: clamp(0.86rem, 3.4vw, 0.98rem) !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  #top .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    width: 100% !important;
    margin: 0.15rem 0 0 !important;
    padding: 0 !important;
  }

  #top .hero-cta .btn,
  #top .hero-cta .btn-hero,
  #top .hero-cta .btn-danger,
  #top .hero-cta .btn-gold {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(78%, 15.5rem) !important;
    max-width: 15.5rem !important;
    margin: 0 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
  }

  .hero-section > .row > .hero-scroll,
  .hero-scroll {
    order: 3 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 0.55rem auto 0.2rem !important;
    transform: none !important;
    color: #e40f62 !important;
  }
}

@media (max-width: 575.98px) {
  #top > section.py-0 .hero-visual > div,
  #top > section.hero-section .hero-visual > div {
    width: min(78vw, 15rem) !important;
    height: min(46vw, 9.75rem) !important;
  }

  #top .img-fluid-main,
  #top .hero-visual .img-fluid-main {
    transform: rotate(60deg) scale(1.22) !important;
  }

  #top .hero-cta .btn,
  #top .hero-cta .btn-hero {
    width: min(84%, 15rem) !important;
  }
}

/* 768–991: stacked hero is owned by the portrait / max-width 991.98 block below. */

/*
  Wide landscape only: two equal halves (art | copy).
  Zooming in shrinks CSS width — below 992px we stack even if
  the window is still “landscape” oriented.
*/
@media (orientation: landscape) and (min-width: 992px) {
  :root {
    --loved-header-h: calc(104px + env(safe-area-inset-top, 0px));
  }

  /* Yellow wash — full hero height behind the laptop (LTR left; RTL mirrored right) */
  .hero-section .hero-yellow-bg,
  .hero-section .hero-yellow-bg.bg-holder {
    display: block !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    background-color: transparent !important;
    background-position: left bottom !important;
    background-size: auto 100% !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    z-index: 0;
    pointer-events: none !important;
  }

  html[dir="rtl"] .hero-section .hero-yellow-bg,
  html[dir="rtl"] .hero-section .hero-yellow-bg.bg-holder {
    transform: scaleX(-1) !important;
    transform-origin: center center !important;
  }

  /* Beat the desktop “room for scroll cue” bottom padding — cue is absolute. */
  #top > section.py-0 > .min-vh-100,
  #top > section.hero-section > .min-vh-100,
  #top > section.hero-section > .min-vh-100.no-gutters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* Stretch both halves to full hero height so each can center its content. */
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    box-sizing: border-box !important;
    /* Center under the fixed nav across the full remaining viewport. */
    padding-top: var(--loved-header-h, 104px) !important;
    padding-bottom: 0 !important;
  }

  #top > section.py-0 .hero-visual,
  #top > section.hero-section .hero-visual {
    order: 0 !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 50% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }

  #top .hero-visual > div,
  #top .hero-visual__slide,
  #top .hero-visual__mirror {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #top .img-fluid-main,
  #top .hero-visual .img-fluid-main {
    width: 62% !important;
    max-width: 62% !important;
    max-height: 68vh !important;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    transform: rotate(60deg) scale(1) !important;
    transform-origin: center center !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
  }

  #top > section.py-0 .hero-copy,
  #top > section.hero-section .hero-copy {
    order: 1 !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 50% !important;
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    /* Kill desktop Y nudge / Bootstrap pt-6 so copy centers with the laptop. */
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    align-self: stretch !important;
    text-align: left !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1.75rem !important;
    /* Keep copy ≤ Chat with Us / .navbar .container right edge */
    padding-right: max(1.5rem, calc((100vw - min(1140px, 100vw)) / 2 + 15px)) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Shrink-wrap title + lead to the CTA pair (same as desktop rhythm) */
  #top .hero-copy-block {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }

  #top .hero-copy-block > .overflow-hidden:not(.hero-cta) {
    width: 0 !important;
    min-width: 100% !important;
  }

  #top .hero-cta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: max-content !important;
    max-width: 100% !important;
    gap: 0.75rem !important;
  }

  #top .hero-cta .btn,
  #top .hero-cta .btn-hero {
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
  }

  .hero-section > .row > .hero-scroll,
  .hero-scroll {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    width: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) scale(0.9) !important;
  }

  html[dir="rtl"] #top .hero-copy {
    transform: scaleX(-1) !important;
  }

  html[dir="rtl"] #top .hero-copy-block {
    transform: none !important;
  }
}

/*
  Stacked hero: real portrait OR narrowed / zoomed viewport.
  Picture under the nav, copy under the picture — all centered.
*/
@media (orientation: portrait), (max-width: 991.98px) {
  :root {
    --loved-header-h: calc(94px + env(safe-area-inset-top, 0px));
    --loved-hero-yellow-h: 48%;
  }

  /* Vertical / stacked hero: hide yellow wash */
  .hero-section .hero-yellow-bg,
  .hero-section .hero-yellow-bg.bg-holder {
    display: none !important;
  }

  #top > section.py-0.hero-section,
  #top > section.hero-section {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: block !important;
  }

  #top > section.py-0 > .min-vh-100,
  #top > section.hero-section > .min-vh-100 {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-content: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-top: var(--loved-header-h) !important;
    padding-bottom: 0.5rem !important;
    /* Clip rotated art so it cannot paint under the fixed nav. */
    overflow: hidden !important;
  }

  #top > section.py-0 .hero-visual,
  #top > section.hero-section .hero-visual {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    /* Tall enough that the rotated laptop stays inside this band. */
    height: min(46vh, 20rem) !important;
    min-height: min(42vw, 14rem) !important;
    max-height: min(48vh, 22rem) !important;
    margin: 0 !important;
    padding: 0.35rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-align: center !important;
    transform: none !important;
  }

  #top .hero-visual > div,
  #top .hero-visual__slide,
  #top .hero-visual__mirror {
    margin: 0 auto !important;
    width: min(68vw, 15rem) !important;
    max-width: min(68vw, 15rem) !important;
    height: min(52vw, 13rem) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
  }

  #top .img-fluid-main,
  #top .hero-visual .img-fluid-main {
    width: 88% !important;
    max-width: 88% !important;
    max-height: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    transform: rotate(60deg) scale(1.1) !important;
    transform-origin: center center !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
  }

  #top > section.py-0 .hero-copy,
  #top > section.hero-section .hero-copy {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0.25rem var(--page-pad-x, 1rem) 0.15rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
    text-align: center !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  #top .hero-copy-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  #top .hero-copy-block > .overflow-hidden {
    width: 100% !important;
    min-width: 0 !important;
  }

  #top .hero-copy h1,
  #top .hero-subtitle,
  #top .hero-lead {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #top .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
    /* Clear air between lead/subtitle and the CTA stack */
    margin: 1.15rem 0 0 !important;
    padding-top: 0.35rem !important;
  }

  #top .hero-cta .btn,
  #top .hero-cta .btn-hero {
    width: min(78%, 15.5rem) !important;
    max-width: 15.5rem !important;
    margin: 0 !important;
  }

  .hero-section > .row > .hero-scroll,
  .hero-scroll {
    order: 3 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 0.55rem auto 0.2rem !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Stacked Arabic: do not mirror the hero row (avoids flipped type/CTAs) */
  html[dir="rtl"] .hero-section > .row {
    transform: none !important;
  }

  html[dir="rtl"] .hero-section .hero-copy,
  html[dir="rtl"] .hero-section .hero-scroll,
  html[dir="rtl"] #top .hero-copy,
  html[dir="rtl"] #top .hero-copy h1,
  html[dir="rtl"] #top .hero-subtitle,
  html[dir="rtl"] #top .hero-lead {
    text-align: center !important;
    transform: none !important;
  }

  html[dir="rtl"] #top .hero-cta {
    align-items: center !important;
    justify-content: center !important;
  }
}


/* FormSubmit sending / sent / error (contact + callback) */
.loved-form-sending {
  margin: 0.5rem 0 1.25rem;
  padding: 1.15rem 1.1rem 1.25rem;
  background: linear-gradient(180deg, rgba(251, 192, 0, 0.16), rgba(251, 192, 0, 0.04));
  border: 1px solid rgba(11, 23, 39, 0.08);
}

.loved-form-sending__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0b1727;
}

.loved-form-sending__keep {
  margin: 0 0 1.1rem;
  color: #5c6673;
  line-height: 1.45;
  font-size: 0.95rem;
}

.loved-form-sending__flight {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.loved-form-sending__end {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1727;
  white-space: nowrap;
}

.loved-form-sending__track {
  position: relative;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(11, 23, 39, 0.06);
  overflow: hidden;
}

.loved-form-sending__envelope {
  position: absolute;
  top: 50%;
  left: 0.35rem;
  color: #f5b400;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 4px rgba(11, 23, 39, 0.18));
}

.loved-form-sending.is-active .loved-form-sending__envelope {
  animation: loved-envelope-fly 15s linear forwards;
}

.loved-form-sending__progress {
  height: 0.45rem;
  background: rgba(11, 23, 39, 0.08);
  overflow: hidden;
}

.loved-form-sending__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c49200, #f5b400);
  transition: width 0.08s linear;
}

@keyframes loved-envelope-fly {
  0% {
    left: 0.35rem;
    transform: translateY(-50%) rotate(-8deg) scale(0.92);
  }
  12% {
    transform: translateY(-62%) rotate(4deg) scale(1);
  }
  50% {
    transform: translateY(-50%) rotate(-3deg) scale(1.02);
  }
  88% {
    transform: translateY(-58%) rotate(6deg) scale(1);
  }
  100% {
    left: calc(100% - 2.85rem);
    transform: translateY(-50%) rotate(0deg) scale(0.96);
  }
}

html[dir="rtl"] .loved-form-sending.is-active .loved-form-sending__envelope {
  animation-name: loved-envelope-fly-rtl;
}

@keyframes loved-envelope-fly-rtl {
  0% {
    right: 0.35rem;
    left: auto;
    transform: translateY(-50%) rotate(8deg) scale(0.92);
  }
  100% {
    right: calc(100% - 2.85rem);
    left: auto;
    transform: translateY(-50%) rotate(0deg) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loved-form-sending.is-active .loved-form-sending__envelope {
    animation: none;
    left: calc(50% - 1.25rem);
  }

  html[dir="rtl"] .loved-form-sending.is-active .loved-form-sending__envelope {
    left: auto;
    right: calc(50% - 1.25rem);
  }

  .loved-form-sending__bar {
    transition: none;
  }
}

.loved-form-sent {
  margin: 0.5rem 0 1rem;
  padding: 0.9rem 1rem;
  background: rgba(251, 192, 0, 0.18);
  border-left: 3px solid #f5b400;
  font-weight: 600;
  color: #0b1727;
  line-height: 1.45;
}

html[dir="rtl"] .loved-form-sent {
  border-left: 0;
  border-right: 3px solid #f5b400;
}

.loved-form-error {
  margin: 0.5rem 0 1rem;
  padding: 0.9rem 1rem;
  background: rgba(180, 40, 40, 0.08);
  border-left: 3px solid #b42828;
  font-weight: 600;
  color: #0b1727;
  line-height: 1.45;
}

html[dir="rtl"] .loved-form-error {
  border-left: 0;
  border-right: 3px solid #b42828;
}

#contactForm[hidden],
#chatWithUs[hidden],
[data-loved-fields][hidden],
.loved-form-sending[hidden],
.loved-form-sent[hidden],
.loved-form-error[hidden] {
  display: none !important;
}

#giveUsAShoutButton:disabled,
#cwu_submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Chat / callback modal: same hold + thank-you treatment as contact */
#reservation .loved-form-sending,
#reservation .loved-form-sent,
#reservation .loved-form-error {
  margin: 1rem 1.15rem 1.35rem;
}

#reservation .loved-form-sending {
  border-radius: 0.35rem;
}

#reservation[data-loved-mail-lock="1"] {
  pointer-events: auto;
}
