/* ==========================================================================
   Arabian Business Solutions — main stylesheet (index.html, 404.html, en/index.html)
   Dark navy + champagne gold. RTL-first: prefer logical properties.

   TABLE OF CONTENTS
   01. Tokens ............ colours, type, radii, shadows, spacing, motion, legacy aliases
   02. Base .............. reset, typography, links, selection, focus, scrollbar, buttons
   03. Layout ............ container, sections, editorial section header, frame, band label
   04. Header / Nav ...... sticky header, desktop nav, toggle, mobile drawer (<=992)
   05. Hero .............. static intro over one photo (kicker inside the h1)
   06. Trust bar ......... ISO badges under the hero (+ the hero's .trust-stat rules)
   07. About ............. text + facts row + framed photo + credentials (ISO cards)
   08. Services .......... numbered list + sticky illustration stage + CTA strip
   09. Works ............. videos (featured frame + row of three) + projects (25)
   10. How we work ....... timeline (horizontal / vertical); page order: after 11 Clients
   11. Clients ........... logo wall in one framed panel
   12. FAQ ............... sticky header + details/summary accordion
   13. Contact ........... the request builder's section + shared copy buttons
   14. Builder ........... framed request builder, ticket summary, send actions, toast
   15. Group companies ... slim logo band
   16. Map ............... framed embedded Google map
   17. Footer ............ gold rule, columns, social, bottom bar
   18. Chat .............. contact button + menu, smart assistant window, scroll-top
   19. Modals / Lightbox . service gallery, video modal, image lightbox
   20. Utilities ......... visually-hidden, honeypot, 404 page
   21. Responsive ........ header, hero, builder, footer, modals (06-16 keep their own breakpoints)
   22. Reduced motion
   23. Hero reel ......... slide caption + progress bars
   24. Hero frame ........ cinematic inset frame (chosen design)
   25. Projects .......... framed 4:3 project covers (second half of 09 Works)
   26. English (LTR) ..... /en/ type metrics (layout flips through logical properties)

   Design language (everything below the hero speaks the hero's "cinematic
   frame"): start-aligned editorial headers with a gold eyebrow rule, framed
   media (radius --r-xl / cards --r-lg, 1px --border, bottom --scrim), thin
   gold lines, sections alternating --bg / --bg-2. The only hover motion on
   photos is a slow zoom (scale 1.04 over --dur-zoom), off under reduced motion.
   ========================================================================== */


/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #091224;
  --bg-rgb: 9 18 36;
  --bg-2: #0f172a;
  --bg-2-rgb: 15 23 42;
  --surface: rgb(255 255 255 / 0.04);
  --surface-2: rgb(255 255 255 / 0.07);
  --surface-3: rgb(255 255 255 / 0.12); /* hover state of surface-2 */
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.16);

  /* Text */
  --text-strong: #f8fafc;
  --text: #cbd5e1;
  --text-muted: #94a3b8;

  /* Accent: champagne gold */
  --gold-500: #c5a059;
  --gold-300: #e5c585;
  --gold-700: #9a7a3c;
  --gold-rgb: 197 160 89;
  --on-gold: #0f172a;
  --gold-gradient: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-300) 100%);

  /* Status / brand */
  --success: #10b981;
  --success-rgb: 34 197 94;
  --danger: #fca5a5;
  --danger-rgb: 248 113 113;
  --whatsapp: #25d366;
  --whatsapp-rgb: 37 211 102;

  /* Typography */
  --font-display: "Tajawal", system-ui, sans-serif; /* one typeface site-wide */
  --font-body: "Tajawal", system-ui, sans-serif;
  --fs-xs: 0.8125rem;  /* 13px: legal / tiny meta only */
  --fs-sm: 0.875rem;   /* 14px: minimum for UI text */
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  --lh-body: 1.8;
  --lh-heading: 1.3;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows: soft navy-black, subtle -> strong */
  --shadow-1: 0 2px 8px rgb(2 6 23 / 0.25);
  --shadow-2: 0 10px 28px rgb(2 6 23 / 0.35);
  --shadow-3: 0 18px 40px rgb(2 6 23 / 0.45);
  --shadow-4: 0 30px 70px rgb(2 6 23 / 0.55);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;
  --space-10: 8rem;
  --section-space: var(--space-10);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.24s;
  --dur: 0.38s;
  --dur-slow: 0.56s;
  --dur-zoom: 1.2s; /* slow photo zoom inside frames (hover / focus only) */

  /* Frames: bottom scrim behind text on photos (services posters, about photo) */
  --scrim: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.95) 0%, rgb(var(--bg-rgb) / 0.85) 35%, rgb(var(--bg-rgb) / 0.4) 65%, rgb(var(--bg-rgb) / 0.08) 100%);

  /* Floating controls (contact button, chat, scroll-top) */
  --fab-size: 56px;
  --fab-edge: 1.25rem;
  --fab-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));

  /* Legacy aliases (kept so inline styles / other pages keep working) */
  --primary-color: var(--gold-500);
  --primary-dark: var(--gold-700);
  --secondary-color: var(--bg-2);
  --accent-color: var(--gold-500);
  --accent-light: var(--gold-300);
  --text-color: var(--text);
  --text-light: var(--text-muted);
  --text-dark: var(--bg-2);
  --dark-bg: var(--bg-2);
  --background-light: var(--bg-2);
  --white: #ffffff;
  --border-color: var(--border);
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-1);
  --shadow-lg: var(--shadow-2);
  --shadow-xl: var(--shadow-3);
  --shadow-gold: var(--shadow-2);
  --motion-ease: var(--ease);
  --motion-ease-soft: var(--ease-soft);
  --transition-fast: var(--dur-fast) var(--ease);
  --transition-normal: var(--dur) var(--ease);
  --transition-slow: var(--dur-slow) var(--ease-soft);
  --spacing-xs: var(--space-2);
  --spacing-sm: var(--space-4);
  --spacing-md: var(--space-6);
  --spacing-lg: var(--space-8);
  --spacing-xl: var(--section-space);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-full: var(--r-pill);
}


/* ==========================================================================
   02. BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* sticky header */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--text-strong);
  background-color: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) var(--ease);
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: 0;
  color: var(--text-strong);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

h4, h5, h6 {
  font-family: var(--font-body);
}

p {
  margin-bottom: var(--space-4);
}

p, li, a, button, input, textarea, select, label {
  font-weight: 500;
}

/* Gold label with a short gold rule on its inline-start side (like the hero kicker) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--gold-500);
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 32px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--gold-gradient);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text);
  max-width: 65ch;
}

::selection {
  background-color: var(--gold-500);
  color: var(--on-gold);
}

/* Global keyboard focus ring (zero specificity so components can refine it) */
:where(a, button, [role="button"], summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: inherit;
}

.skip-link {
  position: absolute;
  top: -48px;
  inset-inline-start: 0;
  background: var(--gold-500);
  color: var(--on-gold);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  z-index: 1001;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* Scrollbar (dark) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-700);
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: var(--border-strong) var(--bg);
  }
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-strong);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

/* Primary = the single gold accent */
.btn.primary {
  background-color: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--on-gold);
  box-shadow: var(--shadow-1);
}

.btn.primary:hover {
  background-color: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--on-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* Secondary / ghost = transparent outline */
.btn.secondary,
.btn.ghost {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--text-strong);
}

.btn.secondary:hover,
.btn.ghost:hover {
  background-color: var(--surface-2);
  border-color: rgb(var(--gold-rgb) / 0.5);
  color: var(--text-strong);
}


/* ==========================================================================
   03. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--section-space) 0;
  position: relative;
  width: 100%;
}

/* Section header: editorial and start-aligned. Eyebrow / h2 / lead stack in
   the first column; an optional .section-header-action sits at the inline end
   of the same block (it drops below the text on narrow screens). */
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-8);
  text-align: start;
}

.section-header > * {
  grid-column: 1;
}

.section-header h2 {
  max-width: 24ch;
  margin-bottom: 0;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.section-header .lead {
  max-width: 60ch;
  margin: var(--space-4) 0 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.section-header-action {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .section-header {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: var(--space-6);
  }

  .section-header-action {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--space-5);
  }
}

/* Frame: the hero's cinematic frame for any photo / media block */
.frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background-color: var(--bg-2);
  box-shadow: var(--shadow-3);
}

.frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Band label (trust bar, group companies): small label between thin gold rules */
.band-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap; /* the rules shrink, never the label */
  color: var(--text-muted);
}

.band-label::before,
.band-label::after {
  content: '';
  flex: 0 1 96px;
  min-width: var(--space-4);
  height: 1px;
  background: rgb(var(--gold-rgb) / 0.45);
}


/* ==========================================================================
   04. HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.85rem 0;
  background-color: rgb(var(--bg-rgb) / 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    padding var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Keep the header (and the drawer's close toggle) on screen while the mobile menu is open */
body.menu-open .site-header.header-hidden {
  transform: none;
}

.site-header.scrolled {
  padding: 0.65rem 0;
  background-color: rgb(var(--bg-2-rgb) / 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-2);
  border-bottom-color: var(--border-strong);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.main-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  margin: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-strong);
}

.main-nav a i {
  display: inline-block;
  font-size: 0.9em;
  margin-inline-end: var(--space-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.btn.cta-btn {
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-base);
  border-radius: var(--r-pill);
}

/* Language switch (EN on Arabic pages, عربي on English pages): a small outlined
   gold pill with a 44px touch target. The drawer copy (.nav-lang) shows <=992 only. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid rgb(var(--gold-rgb) / 0.45);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--gold-300);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.lang-switch:hover {
  border-color: var(--gold-500);
  background-color: rgb(var(--gold-rgb) / 0.1);
  color: var(--text-strong);
}

.lang-switch i {
  font-size: 0.95em;
}

.nav-lang {
  display: none;
}

/* Hamburger: one definition for both markups (span.bar on index, bare span on 404).
   Bars are 2px tall with a 6px gap, so the X offsets are 2 + 6 = 8px. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-strong);
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile drawer: see 19. Responsive (max-width: 992px) */


/* ==========================================================================
   05. HERO
   Static on every width: the intro fills ~82% of the first screen (capped at 740px)
   over one photo + overlay.
   ========================================================================== */
.hero {
  --hero-header-space: 88px; /* fixed header height + breathing room */
  background-color: var(--bg);
  color: var(--text-strong);
}

.hero-intro {
  position: relative;
  isolation: isolate;
  /* One full screen: photo edge to edge, headline centred, proof strip at the bottom */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--hero-header-space) + var(--space-5)) var(--space-4) var(--space-5);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg);
}

/* Night aerial of a lit arena: the bright tent roof sits low and to the
   right, so the frame is pulled slightly left of centre. */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

/* Legibility: darkest band behind the centred text (>= 4.5:1 for every
   line of the intro, even over the floodlights), fading into the page colour. */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 48% at 50% 46%, rgb(var(--bg-rgb) / 0.78) 0%, rgb(var(--bg-rgb) / 0.5) 55%, rgb(var(--bg-rgb) / 0) 100%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / 0.6) 0%, rgb(var(--bg-rgb) / 0.38) 35%, rgb(var(--bg-rgb) / 0.48) 68%, rgb(var(--bg-rgb) / 0.94) 100%);
}

.hero-intro-content {
  width: 100%;
  max-width: 880px;
  margin-block: auto; /* centre in the space above the stats strip */
}

.hero-title,
.hero-desc {
  text-shadow: 0 2px 24px rgb(var(--bg-rgb) / 0.7), 0 1px 3px rgb(var(--bg-rgb) / 0.6);
}

/* Proof strip inside the hero, over the photo */
.hero-stats {
  width: 100%;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

.hero-stats .trust-stat + .trust-stat {
  border-inline-start-color: rgb(255 255 255 / 0.16);
}

.hero-stats .trust-stat-text {
  color: var(--text);
}

/* Hero ambient motion: a slow camera move on the photo and soft stage-light
   glows drifting behind the headline. Transform/opacity only; paused by JS
   (.hero.is-paused) while the hero is off-screen; off under reduced motion. */
/* Hero slideshow: real work photos crossfade; each slide gets its own slow
   camera move while visible (kept running while it fades out). */
.hero-bg .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform-origin: 50% 50%;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg .hero-slide.is-active {
  opacity: 1;
}

/* Cinematic camera: each photo has its own move (data-motion). The move
   keeps running while the photo fades out, so cuts feel continuous. */
.hero-bg .hero-slide.is-active,
.hero-bg .hero-slide.is-leaving {
  animation: var(--camera, hero-push) 9.6s cubic-bezier(0.37, 0, 0.63, 1) forwards;
  will-change: transform, opacity;
}

.hero-slide[data-motion="push"]      { --camera: hero-push; }
.hero-slide[data-motion="pull"]      { --camera: hero-pull; }
.hero-slide[data-motion="pan-left"]  { --camera: hero-pan-left; }
.hero-slide[data-motion="pan-right"] { --camera: hero-pan-right; }
.hero-slide[data-motion="rise"]      { --camera: hero-rise; }
.hero-slide[data-motion="drift"]     { --camera: hero-drift; }

@keyframes hero-push      { from { transform: scale(1.04); }                          to { transform: scale(1.18) translate3d(-1.5%, -1%, 0); } }
@keyframes hero-pull      { from { transform: scale(1.2) translate3d(1%, -1%, 0); }   to { transform: scale(1.05); } }
@keyframes hero-pan-left  { from { transform: scale(1.16) translate3d(4%, 0, 0); }    to { transform: scale(1.16) translate3d(-4%, 0, 0); } }
@keyframes hero-pan-right { from { transform: scale(1.16) translate3d(-4%, 0, 0); }   to { transform: scale(1.16) translate3d(4%, 0, 0); } }
@keyframes hero-rise      { from { transform: scale(1.14) translate3d(0, 3.5%, 0); }  to { transform: scale(1.14) translate3d(0, -3%, 0); } }
@keyframes hero-drift     { from { transform: scale(1.08) translate3d(-3%, 2%, 0); }  to { transform: scale(1.17) translate3d(2.5%, -2%, 0); } }

/* Film texture: faint animated grain over the photo */
.hero-grain {
  position: absolute;
  inset: -50%;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: hero-grain 0.9s steps(6) infinite;
}

@keyframes hero-grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-4%, 3%, 0); }
  40%  { transform: translate3d(3%, -2%, 0); }
  60%  { transform: translate3d(-2%, -4%, 0); }
  80%  { transform: translate3d(4%, 2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Light leak: a soft golden sweep across the frame on every cut */
.hero-leak {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg,
    rgb(var(--gold-rgb) / 0) 28%,
    rgb(var(--gold-rgb) / 0.22) 44%,
    rgb(255 236 200 / 0.2) 50%,
    rgb(var(--gold-rgb) / 0) 66%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(-70%, 0, 0);
  pointer-events: none;
}

.hero.is-transitioning .hero-leak {
  animation: hero-leak 1.9s cubic-bezier(0.3, 0, 0.2, 1);
}

@keyframes hero-leak {
  0%   { opacity: 0; transform: translate3d(-70%, 0, 0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(70%, 0, 0); }
}

/* The overlay sits above every slide */
.hero-bg::after {
  z-index: 1;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--gold-rgb) / 0.26) 0%, rgb(var(--gold-rgb) / 0.09) 38%, rgb(var(--gold-rgb) / 0) 70%);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.hero-glow--a {
  top: -26vmax;
  inset-inline-start: -14vmax;
  animation: hero-glow-a 22s ease-in-out infinite alternate;
}

.hero-glow--b {
  bottom: -32vmax;
  inset-inline-end: -18vmax;
  background: radial-gradient(circle, rgb(120 150 255 / 0.16) 0%, rgb(120 150 255 / 0.05) 40%, rgb(120 150 255 / 0) 70%);
  animation: hero-glow-b 27s ease-in-out infinite alternate;
}

/* A faint spotlight beam that sweeps slowly across the stage */
.hero-beam {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 34vmax;
  height: 140%;
  background: linear-gradient(180deg, rgb(var(--gold-rgb) / 0.14) 0%, rgb(var(--gold-rgb) / 0.04) 55%, rgb(var(--gold-rgb) / 0) 100%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  transform-origin: 50% 0;
  animation: hero-beam 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero.is-paused :is(.hero-slide, .hero-glow, .hero-beam, .hero-grain) {
  animation-play-state: paused;
}


@keyframes hero-glow-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50%  { transform: translate3d(14vmax, 8vmax, 0) scale(1.12); opacity: 1; }
  100% { transform: translate3d(6vmax, 16vmax, 0) scale(0.95); opacity: 0.7; }
}

@keyframes hero-glow-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50%  { transform: translate3d(-12vmax, -8vmax, 0) scale(1.15); opacity: 1; }
  100% { transform: translate3d(-4vmax, -14vmax, 0) scale(1); opacity: 0.8; }
}

@keyframes hero-beam {
  0%   { transform: translateX(-50%) rotate(-16deg); opacity: 0.55; }
  100% { transform: translateX(-50%) rotate(16deg); opacity: 0.9; }
}

@media (max-width: 600px) {
  .hero-beam {
    width: 60vmax;
  }
}

/* span.hero-kicker: the SEO keyword line inside the h1, styled as the gold
   eyebrow (lighter gold for contrast over the photo) */
.hero-kicker {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: var(--lh-body);
  color: var(--gold-300);
}

.hero-title {
  font-size: var(--fs-3xl);
  line-height: 1.2;
  margin: 0 0 var(--space-5);
  color: var(--text-strong);
}

.hero-desc {
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  color: var(--text);
  max-width: 680px;
  margin: 0 auto var(--space-6);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 1rem 2.25rem;
  font-size: var(--fs-md);
  border-radius: var(--r-pill);
}

.hero-actions .btn.ghost {
  background-color: rgb(var(--bg-rgb) / 0.45);
}

.hero-actions .btn.ghost:hover {
  background-color: var(--surface-3);
}


/* ==========================================================================
   06. TRUST BAR (the three ISO badges directly under the hero, same surface)
   ========================================================================== */
.trust-bar {
  background: var(--bg);
  padding: var(--space-7) 0;
}

/* .trust-stats / .trust-stat: the proof strip inside the hero (see 05 / 24) */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding-inline: var(--space-3);
}

.trust-stat + .trust-stat {
  border-inline-start: 1px solid var(--border);
}

.trust-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-strong);
}

.trust-stat-text {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ISO badges → #credentials (07). Text seals in the style of
   certification marks, drawn in CSS: a thin white ring, «ISO» + the standard
   number, a gold arc. Deliberately not ISO's own globe logo, which certified
   companies may not use. */
.iso-badges {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-lg);
  color: var(--text-strong);
  text-decoration: none;
}

.iso-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5) var(--space-7);
}

.iso-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 7.5rem;
  text-align: center;
}

.iso-badge-seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  aspect-ratio: 1;
  border: 1.5px solid rgb(255 255 255 / 0.85);
  border-radius: 50%;
  line-height: 1;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}

/* inner hairline ring + a gold arc along the top */
.iso-badge-seal::before,
.iso-badge-seal::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.iso-badge-seal::before {
  inset: 5px;
  border: 1px solid rgb(255 255 255 / 0.22);
}

.iso-badge-seal::after {
  inset: -1.5px;
  border: 1.5px solid transparent;
  border-top-color: var(--gold-500);
  transform: rotate(-35deg);
}

.iso-badge-mark {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.iso-badge-num {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.iso-badge-name {
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}

.iso-badges:hover .iso-badge-seal,
.iso-badges:focus-visible .iso-badge-seal {
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

.iso-badges:hover .iso-badge-name,
.iso-badges:focus-visible .iso-badge-name {
  color: var(--text-strong);
}

.iso-badges:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .iso-badges-row {
    flex-wrap: nowrap;
    gap: var(--space-3);
  }

  .iso-badge {
    width: 6.25rem;
  }

  .iso-badge-seal {
    width: 4.75rem;
  }

  .iso-badge-mark {
    font-size: 1.3rem;
  }

  .iso-badge-num {
    font-size: 0.6875rem;
  }

  .iso-badge-name {
    font-size: var(--fs-xs);
  }
}

@media (max-width: 600px) {
  .trust-bar {
    padding: var(--space-6) 0;
  }
}


/* ==========================================================================
   07. ABOUT (text column + framed photo; photo first on phones)
   ========================================================================== */
.about-section {
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  align-items: center;
}

.about-text .section-header {
  margin-bottom: var(--space-6);
}

/* Three brand facts taken from the paragraph (no numbers: the hero has them) */
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border);
}

.about-fact {
  padding: var(--space-4) var(--space-4) 0;
  border-inline-start: 1px solid var(--border);
}

.about-fact:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.about-fact dt {
  margin-bottom: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
  color: var(--gold-500);
}

.about-fact dd {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-strong);
}

.about-visual {
  aspect-ratio: 5 / 4;
}

/* Soft cinematic floor on the photo (no text sits on it) */
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0.45;
  pointer-events: none;
}

/* Credentials: full-width row under the text + photo. Three ISO cards, each a
   <button> (CredentialsController opens the certificate in the shared image
   lightbox, 19): a small portrait frame of the certificate + standard (gold),
   system name and validity after a thin gold rule. */
.credentials {
  grid-column: 1 / -1;
  padding-top: var(--space-7);
  border-top: 1px solid var(--border);
}

.credentials-head {
  margin-bottom: var(--space-5);
}

.credentials-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: var(--lh-heading);
  color: var(--text-strong);
}

.credentials-lead {
  max-width: 70ch;
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-muted);
}

.credentials-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.credentials-item {
  display: flex;
}

.credential-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background-color: var(--bg);
  box-shadow: var(--shadow-1);
  color: var(--text-strong);
  font: inherit;
  text-align: start;
  cursor: zoom-in;
  transition: border-color var(--dur) var(--ease);
}

.credential-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 340 / 480;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background-color: #fff; /* certificate paper while the thumb loads */
  box-shadow: var(--shadow-2);
}

.credential-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-zoom) var(--ease-soft);
}

.credential-cue {
  position: absolute;
  inset-inline-end: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgb(var(--bg-rgb) / 0.85);
  color: var(--gold-300);
  font-size: 0.7rem;
}

.credential-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  min-width: 0;
}

.credential-standard {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.3;
  color: var(--gold-300);
}

.credential-name {
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-strong);
}

.credential-valid {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.credential-valid::before {
  content: '';
  width: 14px;
  height: 1px;
  background: rgb(var(--gold-rgb) / 0.7);
}

.credential-card:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-color: rgb(var(--gold-rgb) / 0.5);
}

.credential-card:focus-visible .credential-thumb img {
  transform: scale(1.04);
}

@media (hover: hover) {
  .credential-card:hover {
    border-color: rgb(var(--gold-rgb) / 0.45);
  }

  .credential-card:hover .credential-thumb img {
    transform: scale(1.04);
  }
}

.credentials-verify {
  margin: var(--space-4) 0 0;
}

.credentials-verify a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-300);
  text-decoration: underline;
  text-decoration-color: rgb(var(--gold-rgb) / 0.4);
  text-underline-offset: 4px;
}

.credentials-verify a:hover {
  color: var(--gold-500);
  text-decoration-color: currentColor;
}

.credentials-verify i {
  font-size: 0.75em;
}

@media (max-width: 1200px) {
  .credential-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .credential-name {
    font-size: var(--fs-sm);
  }
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .about-visual {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .credentials {
    padding-top: var(--space-6);
  }
}

@media (max-width: 768px) {
  .credentials-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .credential-card {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .credential-name {
    font-size: var(--fs-base);
  }
}

@media (max-width: 600px) {
  .about-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-fact,
  .about-fact:first-child {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-inline-start: 0;
    border-bottom: 1px solid var(--border);
  }

  .about-fact dt {
    margin: 0;
  }

  /* The stacked facts already end with a rule: no second one above the credentials */
  .credentials {
    padding-top: var(--space-2);
    border-top: 0;
  }
}


/* ==========================================================================
   08. SERVICES (numbered list + sticky illustration stage + CTA strip)
   Desktop: the numbered list (start column) and a framed 4:3 "stage" that
   sticks while the list scrolls. Hover / focus on a service swaps the stage
   illustration (ServiceCardsView); a click opens real work photos
   (GalleryController). <=992px: the stage hides and each service becomes a
   card with its own thumbnail (2 columns, 1 column on phones).
   Illustrations: images/services/<key>.webp (1200w) + thumbs/<key>.webp (720w).
   ========================================================================== */
.services-section {
  background: var(--bg);
}

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: var(--space-7);
  align-items: start;
}

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.svc-list > li {
  border-bottom: 1px solid var(--border);
}

.svc-item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--r-md);
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

/* Gold indicator on the inline-start edge of the active service */
.svc-item::before {
  content: '';
  position: absolute;
  inset-block: var(--space-4);
  inset-inline-start: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleY(0);
  transition: transform var(--dur) var(--ease);
}

.svc-thumb,
.svc-note {
  display: none;
}

.svc-num {
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.svc-badge {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.6;
  color: var(--gold-300);
}

.svc-item h3 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.45;
  color: inherit;
}

.svc-item p {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

.svc-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  color: var(--gold-300);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.svc-item.is-active {
  background: var(--surface);
}

.svc-item.is-active::before {
  transform: scaleY(1);
}

.svc-item.is-active .svc-num {
  color: var(--gold-300);
}

.svc-item.is-active .svc-cue {
  opacity: 1;
}

.svc-item:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
}

/* The stage: one framed illustration that follows the active service */
.svc-stage {
  position: sticky;
  top: 110px;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow-3);
}

.svc-stage-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease-soft), transform 1.6s var(--ease-soft);
}

.svc-stage-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.svc-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.94) 0%, rgb(var(--bg-rgb) / 0.55) 26%, transparent 52%);
}

.svc-stage-note {
  position: absolute;
  top: var(--space-4);
  inset-inline-end: var(--space-4);
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(var(--bg-rgb) / 0.6);
  backdrop-filter: blur(6px);
  font-size: var(--fs-xs);
  color: var(--text);
}

.svc-stage-cap {
  position: absolute;
  inset-inline: var(--space-6);
  bottom: calc(var(--space-6) + var(--space-2));
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}

.svc-stage-cap.is-swapping {
  animation: svc-cap-in 0.5s var(--ease) both;
}

@keyframes svc-cap-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.svc-stage-num {
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--gold-rgb) / 0.9);
}

.svc-stage-text {
  display: flex;
  flex-direction: column;
}

.svc-stage-badge {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-300);
}

.svc-stage-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-strong);
}

.svc-stage-line {
  position: absolute;
  inset-inline: var(--space-6);
  bottom: var(--space-5);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--gold-rgb) / 0.6), transparent);
}

/* "Different idea?" CTA: one slim framed strip */
.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.services-cta-text .eyebrow {
  margin-bottom: var(--space-2);
}

.services-cta-text h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.services-cta-text p:last-child {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--text-muted);
}

.services-cta-actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 1200px) {
  .svc {
    gap: var(--space-6);
  }

  .svc-item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .svc-cue {
    display: none;
  }
}

/* Tablets and phones: cards with their own thumbnail, no stage */
@media (max-width: 992px) {
  .svc {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-stage {
    display: none;
  }

  .svc-note {
    display: block;
    margin: 0;
    font-size: var(--fs-xs);
    color: var(--text-muted);
  }

  .svc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    border-top: 0;
  }

  .svc-list > li {
    border-bottom: 0;
  }

  .svc-item,
  .svc-item.is-active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-2);
  }

  .svc-item::before {
    display: none;
  }

  .svc-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .svc-num,
  .svc-item.is-active .svc-num {
    position: absolute;
    top: var(--space-3);
    inset-inline-start: var(--space-3);
    padding: 0.3rem 0.65rem;
    border-radius: var(--r-pill);
    background: rgb(var(--bg-rgb) / 0.72);
    font-size: var(--fs-sm);
    color: var(--gold-300);
  }

  .svc-body {
    flex: 1;
    padding: var(--space-4) var(--space-4) var(--space-2);
  }

  .svc-cue,
  .svc-item.is-active .svc-cue {
    display: inline-flex;
    opacity: 1;
    padding: 0 var(--space-4) var(--space-4);
  }

  .services-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .svc-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .services-cta {
    padding: var(--space-5);
    gap: var(--space-4);
  }

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


/* ==========================================================================
   09. WORKS: VIDEOS (one featured frame + a row of three; projects follow, 25)
   Each card is one button (VideoController); the 16:9 thumb is the frame.
   ========================================================================== */
.executive-videos-section {
  background: var(--bg-2);
}

.executive-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-5);
}

.video-card {
  min-width: 0;
}

.video-card--featured {
  grid-column: 1 / -1;
}

.video-card-trigger {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.video-card-trigger:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 4px;
}

.video-thumb {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur) var(--ease);
}

/* 4:3 YouTube thumbs: cover crops their letterbox bars exactly */
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-zoom) var(--ease-soft);
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.55) 0%, rgb(var(--bg-rgb) / 0) 55%);
  pointer-events: none;
}

/* Play: navy disc with a gold ring, optically centred triangle */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  background: rgb(var(--bg-rgb) / 0.6);
  color: var(--gold-300);
  font-size: 1rem;
  transform: translate(-50%, -50%);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.video-play-icon i {
  transform: translateX(2px);
}

.video-card-trigger:focus-visible .video-thumb {
  border-color: rgb(var(--gold-rgb) / 0.5);
}

.video-card-trigger:focus-visible .video-thumb img {
  transform: scale(1.04);
}

.video-card-trigger:focus-visible .video-play-icon {
  background: var(--gold-500);
  color: var(--on-gold);
}

@media (hover: hover) {
  .video-card-trigger:hover .video-thumb {
    border-color: rgb(var(--gold-rgb) / 0.45);
  }

  .video-card-trigger:hover .video-thumb img {
    transform: scale(1.04);
  }

  .video-card-trigger:hover .video-play-icon {
    background: var(--gold-500);
    color: var(--on-gold);
  }
}

.video-card-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* span.video-card-title: 2-line clamp; span.video-card-desc: 1 line */
.video-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-strong);
}

.video-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--text-muted);
}

/* Featured: the big frame with the big gold-ring play button */
.video-card--featured .video-thumb {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
}

.video-card--featured .video-play-icon {
  width: 88px;
  height: 88px;
  font-size: 1.5rem;
}

/* Desktop: the frame takes 2/3, the copy sits beside it, poster-style at the bottom */
@media (min-width: 993px) {
  .video-card--featured .video-card-trigger {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-7);
  }

  .video-card--featured .video-card-copy {
    gap: var(--space-3);
    padding-bottom: var(--space-2);
  }

  .video-card--featured .video-card-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: var(--fs-lg);
    font-weight: 800;
    line-height: 1.55;
  }

  .video-card--featured .video-card-desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: var(--fs-base);
  }
}

@media (max-width: 768px) {
  .executive-videos-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .video-card-trigger {
    gap: var(--space-3);
  }

  .video-card-title {
    font-size: var(--fs-base);
  }

  .video-card--featured .video-play-icon {
    width: 68px;
    height: 68px;
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   10. HOW WE WORK (timeline: horizontal on desktop, vertical below 993px)
   ========================================================================== */
.how-section {
  background: var(--bg-2);
}

.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}

.how-step {
  position: relative;
  min-width: 0;
}

/* Large gold numeral; its ::after is the thin line to the next step
   (it crosses the grid gap; the last one is a short tail) */
.how-step-num {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}

.how-step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  margin-inline-end: calc(-1 * var(--space-6));
  background: rgb(var(--gold-rgb) / 0.45);
}

.how-step:last-child .how-step-num::after {
  flex: 0 0 var(--space-7);
  margin-inline-end: 0;
}

.how-step h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-md);
  font-weight: 700;
}

.how-step p {
  margin: 0;
  max-width: 32ch;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text);
}

/* Vertical timeline: numeral column on the inline-start side, line under it */
@media (max-width: 992px) {
  .how-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 640px;
  }

  .how-step {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    column-gap: var(--space-4);
    padding-bottom: var(--space-6);
  }

  .how-step:last-child {
    padding-bottom: 0;
  }

  .how-step-num {
    grid-row: span 2;
    display: block;
    margin: 0;
    font-size: var(--fs-xl);
    text-align: center;
  }

  .how-step-num::after {
    display: none;
  }

  .how-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: calc(var(--fs-xl) + var(--space-3));
    bottom: var(--space-2);
    inset-inline-start: calc(1.75rem - 0.5px);
    width: 1px;
    background: rgb(var(--gold-rgb) / 0.45);
  }

  .how-step h3 {
    margin-bottom: var(--space-1);
  }
}


/* ==========================================================================
   11. CLIENTS (logo wall inside one framed panel)
   ========================================================================== */
.clients-section {
  background: var(--bg);
}

/* Fixed-basis flex so an incomplete last row stays centred */
.clients-grid {
  --cols: 6;
  --gap: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  padding: var(--space-6);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow-3);
}

.client-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 1;
  padding: var(--space-3);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.client-card img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 56px;
  object-fit: contain;
  opacity: 0.72;
  /* white monochrome on navy: invert dark logos, screen away the dark backdrop */
  filter: grayscale(100%) invert(100%) brightness(200%);
  mix-blend-mode: screen;
  transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}

/* Colour state: hover (real hover devices only, so taps don't stick) or
   .is-active, toggled by tapping one card at a time (ClientsController) */
.client-card.is-active {
  background: #fff; /* reveal the logo's true colours */
  border-color: #fff;
}

.client-card.is-active img {
  opacity: 1;
  filter: none;
  mix-blend-mode: multiply; /* hide white logo backgrounds on the white card */
}

@media (hover: hover) {
  .client-card:hover {
    background: #fff;
    border-color: #fff;
  }

  .client-card:hover img {
    opacity: 1;
    filter: none;
    mix-blend-mode: multiply;
  }
}

@media (max-width: 992px) {
  .clients-grid {
    --cols: 4;
  }
}

@media (max-width: 600px) {
  .clients-grid {
    --cols: 3;
    --gap: var(--space-1);
    padding: var(--space-3);
    border-radius: var(--r-lg);
  }

  .client-card {
    aspect-ratio: 3 / 2;
    padding: var(--space-2);
  }

  .client-card img {
    max-width: 86%;
    max-height: 38px;
  }
}


/* ==========================================================================
   12. FAQ (sticky header at the inline start, accordion at the inline end)
   ========================================================================== */
.faq-section {
  background: var(--bg);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  align-items: start;
}

/* Single column header; its action sits under the title */
.faq-layout .section-header {
  position: sticky;
  top: 120px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
}

.faq-layout .section-header-action {
  grid-column: 1;
  grid-row: auto;
  margin-top: var(--space-6);
}

.faq-grid {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--space-5);
  padding-inline-end: 3.5rem;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-strong);
  transition: color var(--dur-fast) var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--gold-300);
}

/* Icon: gold ring + horizontal bar (::after); the vertical bar (::before)
   rotates flat when open, so plus becomes minus */
.faq-item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: 0;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  border: 1px solid rgb(var(--gold-rgb) / 0.5);
  background: linear-gradient(var(--gold-500), var(--gold-500)) center / 12px 1.5px no-repeat;
}

.faq-item summary::before {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: 17.25px;
  width: 1.5px;
  height: 12px;
  margin-top: -6px;
  background: var(--gold-500);
  transition: transform var(--dur) var(--ease);
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

/* The open question reads in gold; the ring fills slightly */
.faq-item[open] summary {
  color: var(--gold-300);
}

.faq-item[open] summary::after {
  border-color: var(--gold-500);
  background-color: rgb(var(--gold-rgb) / 0.1);
}

/* JS animates the height of the whole item; clip the answer meanwhile */
.faq-item.is-animating {
  overflow: hidden;
}

.faq-item p {
  max-width: 62ch;
  margin: 0;
  padding-bottom: var(--space-5);
  padding-inline-end: 3.5rem;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
}

@media (max-width: 992px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .faq-layout .section-header {
    position: static;
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 600px) {
  .faq-item summary {
    font-size: var(--fs-base);
    padding-block: var(--space-4);
  }

  .faq-item p {
    padding-inline-end: 0;
    padding-bottom: var(--space-4);
  }
}


/* ==========================================================================
   13. CONTACT (the section around the request builder, 14; contact details
   live once, in the footer)
   ========================================================================== */
.contact-section {
  background: var(--bg-2);
}

/* Shared copy-to-clipboard buttons */
.footer-copy-btn,
.ticket-copy-btn {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  border: 1px dashed var(--border-strong);
  cursor: pointer;
  transition:
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    transform 0.12s ease;
}

.footer-copy-btn:hover,
.ticket-copy-btn:hover {
  color: var(--text-strong);
  border-color: rgb(var(--gold-rgb) / 0.45);
  background: rgb(var(--gold-rgb) / 0.08);
}

.footer-copy-btn:active,
.ticket-copy-btn:active {
  transform: scale(0.96);
}

.footer-copy-btn.copied,
.ticket-copy-btn.copied {
  color: var(--text-strong);
  border-color: rgb(var(--success-rgb) / 0.5);
  background: rgb(var(--success-rgb) / 0.14);
}

.footer-copy-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ticket-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
}


/* ==========================================================================
   14. BUILDER (request builder inside #contact)
   ========================================================================== */
/* div.builder-shell#start-project: the cinematic framed panel holding the
   builder title and the form (deeper navy than the section around it) */
.contact-form-enhanced {
  position: relative;
  width: 100%;
  padding: var(--space-7);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-3);
}

.builder-header {
  margin-bottom: var(--space-6);
  text-align: start;
}

.builder-header h3 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 800;
}

/* form.builder-container: plain inside the frame */
.builder-container {
  margin: 0;
  padding: 0;
}

/* Step indicator = the hero's progress lines: thin tracks, the current one
   gold, completed ones dimmer gold; the label sits under each line */
.builder-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.progress-step {
  position: relative;
  padding-top: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.16);
  transition: background-color var(--dur) var(--ease);
}

.progress-step.active {
  color: var(--text-strong);
}

.progress-step.active::before {
  background: var(--gold-gradient);
}

.progress-step.completed {
  color: var(--text);
}

.progress-step.completed::before {
  background: rgb(var(--gold-rgb) / 0.55);
}

/* Mobile step indicator: count + title, then the same line split in 4 */
.builder-progress-mobile {
  display: none;
  margin-bottom: var(--space-5);
}

.builder-progress-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.builder-progress-mobile-count {
  color: var(--gold-500);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.builder-progress-mobile-title {
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* 4 segments with 4px gaps (mask); the fill width is set by BuilderView */
.builder-progress-mobile-bar {
  width: 100%;
  height: 3px;
  background: rgb(255 255 255 / 0.16);
  overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, transparent 0 2px, #000 2px calc(25% - 2px), transparent calc(25% - 2px) 25%);
  mask: repeating-linear-gradient(90deg, transparent 0 2px, #000 2px calc(25% - 2px), transparent calc(25% - 2px) 25%);
}

.builder-progress-mobile-fill {
  display: block;
  height: 100%;
  background: var(--gold-gradient);
  transition: width var(--dur) var(--ease);
}


.builder-step {
  display: none;
  animation: builder-step-in 0.5s ease;
}

.builder-step.active {
  display: block;
}

@keyframes builder-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.builder-step h3 {
  margin-bottom: var(--space-5);
  font-size: var(--fs-lg);
  font-weight: 800;
  text-align: start;
}

/* Step headings receive programmatic focus (tabindex=-1): no ring */
.builder-step [tabindex="-1"]:focus {
  outline: none;
}

.builder-step-note {
  text-align: start;
  color: var(--text-muted);
  margin: calc(-1 * var(--space-3)) 0 var(--space-5);
  font-size: var(--fs-base);
}

/* Option grid: fixed-basis flex so an incomplete last row stays centred.
   --cols: grid-3 = 3, grid-4 = 4 (desktop); 3 on tablet; 2 on mobile. */
.builder-options {
  --cols: 4;
  --opt-gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--opt-gap);
  margin-bottom: var(--space-7);
}

.builder-options.grid-3 { --cols: 3; }
.builder-options.grid-4 { --cols: 4; }

.builder-options > .builder-option {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--opt-gap)) / var(--cols));
}

/* Desktop: 6 or 9 options read best as full rows of 3 */
@media (min-width: 993px) {
  .builder-options:has(> .builder-option:nth-child(6):last-child),
  .builder-options:has(> .builder-option:nth-child(9):last-child) {
    --cols: 3;
  }
}

/* button.builder-option (reset keeps the old card look) */
.builder-option {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.builder-option i {
  font-size: 2rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.builder-option span {
  color: var(--text-strong);
  font-weight: 500;
}

.builder-option:hover {
  background: var(--surface-2);
  border-color: rgb(var(--gold-rgb) / 0.4);
}

.builder-option:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

/* Selected: JS class and the aria-pressed state are styled identically */
.builder-option.selected,
.builder-option[aria-pressed="true"] {
  background: rgb(var(--gold-rgb) / 0.12);
  border-color: var(--gold-500);
  box-shadow: inset 0 0 0 1px var(--gold-500);
}

.builder-option.selected i,
.builder-option[aria-pressed="true"] i {
  color: var(--gold-500);
}

/* Check mark (Font Awesome solid glyph) */
.builder-option.selected::after,
.builder-option[aria-pressed="true"]::after {
  content: '\f00c';
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: var(--fs-sm);
  line-height: 1;
  color: var(--gold-500);
}

.builder-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

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

.builder-actions-end {
  justify-content: flex-end;
}

.builder-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.builder-actions .btn,
.builder-send-actions .btn {
  min-height: 52px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0;
}

.builder-prev,
.builder-next,
.submit-request-btn,
.download-btn,
.send-more-grid .btn {
  white-space: nowrap;
}

.builder-prev i,
.builder-next i,
.submit-request-btn i,
.send-more-grid .btn i,
.download-btn i {
  font-size: 1rem;
}

.builder-prev {
  min-width: 160px;
}

.builder-next {
  min-width: 180px;
}

/* Step 3 form fields */
.builder-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.input-group label,
.builder-conditional-field label {
  display: block;
  color: var(--text);
  margin-bottom: var(--space-2);
  font-size: var(--fs-base);
  font-weight: 500;
}

.builder-input {
  min-height: 52px;
  line-height: 1.4;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.builder-input:focus {
  outline: none; /* replaced by the gold border + ring below */
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgb(var(--gold-rgb) / 0.25);
  background-color: var(--surface-2);
}

.builder-input.invalid {
  border-color: rgb(var(--danger-rgb) / 0.7);
  box-shadow: 0 0 0 3px rgb(var(--danger-rgb) / 0.12);
}

.builder-input::placeholder,
.chat-footer input::placeholder {
  color: rgb(255 255 255 / 0.55);
  opacity: 1;
}

/* Native select: chevron sits at the inline end; padding keeps text clear of it */
.builder-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-inline-end: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgb(255 255 255 / 0.6) 50%),
    linear-gradient(135deg, rgb(255 255 255 / 0.6) 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-position: left 18px top calc(50% - 3px), left 12px top calc(50% - 3px); /* RTL: end = left */
}

.builder-select:dir(ltr) {
  background-position: right 12px top calc(50% - 3px), right 18px top calc(50% - 3px);
}

.builder-select option {
  background-color: var(--bg-2);
  color: var(--text-strong);
}

.builder-conditional-field {
  display: none;
  margin: -1rem 0 var(--space-6);
}

.builder-conditional-field.show {
  display: block;
}

.builder-field-message {
  min-height: 1.25rem;
  margin: 0.45rem 0 0;
  color: var(--danger);
  font-size: var(--fs-sm);
}

.field-required {
  color: var(--gold-500);
}

/* Service recommendations (step 2) */
.service-recommend-box {
  display: none;
  margin: 0 0 var(--space-5);
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: rgb(var(--gold-rgb) / 0.08);
  border: 1px solid rgb(var(--gold-rgb) / 0.18);
}

.service-recommend-box.show {
  display: block;
}

.service-recommend-copy strong {
  display: block;
  color: var(--text-strong);
  margin-bottom: 0.35rem;
}

.service-recommend-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.service-recommend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: 0.9rem;
}

.service-recommend-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-strong);
  font-size: var(--fs-sm);
}

.service-recommend-btn {
  margin-top: 0.9rem;
  background-color: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-strong);
}

.service-recommend-btn:hover {
  background-color: var(--surface-3);
}

/* Step 4: ticket-style summary (.builder-summary.VIP-ticket) */
.builder-summary {
  margin-bottom: var(--space-6);
}

.VIP-ticket {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: var(--r-lg);
  border: 2px solid var(--gold-500);
  background: linear-gradient(135deg, transparent 0%, var(--surface-2) 100%), var(--bg-2);
  box-shadow: var(--shadow-4);
}

/* Ticket notches: same colour as the builder frame behind the ticket (--bg) */
.VIP-ticket::before,
.VIP-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  background: var(--bg);
  transform: translateY(-50%);
}

.VIP-ticket::before {
  left: -22px;
}

.VIP-ticket::after {
  right: -22px;
}

.ticket-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  z-index: 0;
  font-size: 8rem;
  font-weight: 800;
  color: rgb(255 255 255 / 0.02);
  white-space: nowrap;
  pointer-events: none;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
}

.summary-logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ticket-badge {
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  background: var(--gold-500);
  color: var(--on-gold);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0;
}

.ticket-meta-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.ticket-meta-item {
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.ticket-reference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.ticket-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.ticket-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.summary-label {
  width: 150px;
  color: var(--text-muted);
  font-weight: 500;
}

.ticket-block .summary-label {
  font-size: var(--fs-sm);
  color: rgb(var(--gold-rgb) / 0.85);
  margin-bottom: 0.3rem;
}

.summary-value {
  flex: 1;
  color: var(--text-strong);
  font-weight: 700;
}

.ticket-block .summary-value {
  font-size: var(--fs-md);
}

.ticket-block .summary-value,
.summary-row .summary-value {
  line-height: var(--lh-body);
}

.ticket-status {
  color: var(--gold-500);
  font-weight: 800;
}

/* Latin/numeric reference: tracking kept on purpose */
.ticket-reference {
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.summary-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.summary-service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgb(var(--gold-rgb) / 0.14);
  border: 1px solid rgb(var(--gold-rgb) / 0.22);
  color: var(--text-strong);
  font-size: var(--fs-sm);
}

.ticket-divider {
  position: relative;
  z-index: 1;
  height: 2px;
  margin: var(--space-6) 0;
  background: repeating-linear-gradient(to right, rgb(var(--gold-rgb) / 0.3) 0, rgb(var(--gold-rgb) / 0.3) 10px, transparent 10px, transparent 20px);
}

.ticket-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.barcode {
  height: 40px;
  width: 200px;
  opacity: 0.5;
  background: repeating-linear-gradient(
    to right,
    #fff 0, #fff 2px,
    transparent 2px, transparent 5px,
    #fff 5px, #fff 6px,
    transparent 6px, transparent 10px,
    #fff 10px, #fff 14px,
    transparent 14px, transparent 16px
  );
}

/* Latin ID: tracking kept on purpose */
.ticket-id {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

/* Send actions */
.builder-send-actions {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
}

.builder-send-title {
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--text-strong);
  font-size: var(--fs-md);
  font-weight: 700;
}

.builder-send-note {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  text-align: center;
  line-height: var(--lh-body);
}

.btn.submit-request-btn {
  width: 100%;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  border-radius: var(--r-md);
  background-color: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--on-gold);
  box-shadow: var(--shadow-2);
}

.btn.submit-request-btn:hover {
  background-color: var(--gold-300);
  border-color: var(--gold-300);
}

.submit-request-btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.builder-submit-feedback {
  min-height: 1.5rem;
  margin: 0 0 var(--space-4);
  text-align: center;
  color: var(--text);
  line-height: var(--lh-body);
}

.builder-submit-feedback.is-success {
  color: #8ee6b1;
}

.builder-submit-feedback.is-error {
  color: #ffb4b4;
}

/* Secondary send options: WhatsApp under the main button, the rest folded */
.send-more {
  margin-top: var(--space-4);
}

.send-more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-md);
}

.send-more-toggle::-webkit-details-marker {
  display: none;
}

.send-more-toggle::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor; /* physical sides: the chevron points down in both directions */
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition-fast);
}

.send-more[open] .send-more-toggle::after {
  transform: translateY(2px) rotate(-135deg);
}

.send-more-toggle:hover {
  color: var(--text-strong);
}

.send-more-toggle:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
}

.send-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.btn.whatsapp-btn,
.send-more-grid .btn,
.btn.download-btn,
.btn.print-btn,
.btn.copy-request-btn {
  width: 100%;
  gap: 0.6rem;
  border-radius: var(--r-md);
}

.btn.whatsapp-btn {
  background-color: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--on-gold); /* dark text: white on #25d366 fails contrast */
  box-shadow: var(--shadow-2);
}

.btn.email-btn {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--text-strong);
}

.btn.download-btn,
.btn.print-btn,
.btn.copy-request-btn {
  color: var(--text-strong);
}

.btn.download-btn {
  background-color: var(--surface);
  border: 1px dashed var(--border-strong);
}

.btn.print-btn {
  background-color: rgb(var(--gold-rgb) / 0.08);
  border-color: rgb(var(--gold-rgb) / 0.24);
}

.btn.copy-request-btn {
  background-color: var(--surface);
  border-color: var(--border-strong);
}

.btn.whatsapp-btn:hover {
  filter: brightness(1.08);
}

.btn.print-btn:hover {
  background-color: rgb(var(--gold-rgb) / 0.14);
}

.btn.email-btn:hover,
.btn.download-btn:hover,
.btn.copy-request-btn:hover {
  background-color: var(--surface-2);
}

/* Copy confirmation toast */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100002;
  transform: translateX(-50%) translateY(16px);
  padding: 0.85rem 1.2rem;
  border-radius: var(--r-pill);
  background: rgb(var(--bg-2-rgb) / 0.92);
  border: 1px solid rgb(var(--gold-rgb) / 0.28);
  box-shadow: var(--shadow-3);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   15. GROUP COMPANIES (slim logo band, same language as the trust bar)
   ========================================================================== */
.group-section {
  background: var(--bg);
  padding: var(--space-8) 0 var(--space-6);
}

.group-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-9);
}

.group-logos img {
  width: auto;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(0) invert(1); /* monochrome white on navy */
  transition: opacity var(--dur) var(--ease);
}

.group-logo-link {
  display: block;
  border-radius: var(--r-sm);
}

.group-logo-link:hover img,
.group-logo-link:focus-visible img {
  opacity: 1;
}

@media (max-width: 600px) {
  .group-section {
    padding: var(--space-7) 0 var(--space-5);
  }

  .group-logos {
    gap: var(--space-4) var(--space-5);
  }

  .group-logos img {
    height: 32px;
  }
}


/* ==========================================================================
   16. MAP (framed, dark-filtered embed)
   ========================================================================== */
.map-section {
  background: var(--bg);
  padding: var(--space-5) 0 var(--space-9);
}

.map-frame {
  height: 420px;
}

/* Dark-mode the light Google map */
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.6) contrast(0.9);
}

@media (max-width: 600px) {
  .map-section {
    padding-bottom: var(--space-8);
  }

  .map-frame {
    height: 320px;
    border-radius: var(--r-lg);
  }
}


/* ==========================================================================
   17. FOOTER (index + 404): brand statement + contact tiles, then link
       columns (services in two columns, company, follow), then a bottom bar
       padded clear of the floating buttons.
   ========================================================================== */
.site-footer {
  position: relative;
  padding-top: var(--space-9);
  background: var(--bg-2);
  border-top: 1px solid rgb(var(--gold-rgb) / 0.35);
  color: var(--text);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: var(--space-6);
  filter: brightness(0) invert(1); /* same white logo as the header */
}

.footer-slogan {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-strong);
  text-wrap: balance;
}

.footer-desc {
  max-width: 46ch;
  margin: 0;
  line-height: var(--lh-body);
  color: var(--text-muted);
}

/* Contact tiles: one framed list, label above a large value */
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.footer-contact-item {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
}

.footer-contact-item + .footer-contact-item {
  border-top: 1px solid var(--border);
}

.footer-contact-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-300);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
}

.footer-contact-value {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-strong);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) var(--ease);
}

.footer-contact-value:hover {
  color: var(--gold-300);
}

.footer-copy-btn {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.footer-copy-btn:hover,
.footer-copy-btn.copied {
  color: var(--gold-300);
  border-color: rgb(var(--gold-rgb) / 0.5);
}

/* The shared copy feedback adds a text label; keep it for screen readers only */
.footer-copy-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Link columns */
.footer-nav {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  padding-block: var(--space-7);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
  color: var(--gold-300);
}

.footer-col-title::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-500);
}

.footer-links,
.footer-social {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-6);
}

.footer-links a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 40px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--gold-300);
}

.footer-social-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-strong);
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.footer-social a:hover .footer-social-icon {
  color: var(--gold-300);
  border-color: rgb(var(--gold-rgb) / 0.6);
}

/* Bottom bar: extra bottom padding keeps it clear of the floating buttons */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-5) calc(var(--space-5) + var(--fab-size));
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.copyright {
  margin: 0;
}

/* Visitor counter (filled by VisitorController; stays hidden without PHP) */
.visitor-counter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.visitor-counter[hidden] {
  display: none;
}

.visitor-counter i {
  color: var(--gold-300);
}

.visitor-counter strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.visitor-sep {
  margin-inline: var(--space-1);
  opacity: 0.6;
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.footer-legal a:hover {
  color: var(--gold-300);
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-6);
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-5);
  }

  .footer-follow {
    grid-column: 1 / -1;
  }

  .footer-social {
    grid-template-columns: repeat(4, max-content);
    column-gap: var(--space-5);
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: var(--space-8);
  }

  .footer-logo {
    width: 150px;
    margin-bottom: var(--space-4);
  }

  .footer-slogan {
    font-size: var(--fs-xl);
  }

  .footer-contact-item {
    padding: var(--space-3) var(--space-4);
  }

  .footer-contact-value {
    font-size: var(--fs-md);
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  /* Company links also in two columns on phones to keep the footer short */
  .footer-nav .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   18. CHAT + FLOATING CONTROLS
   One contact button (inline-end corner) opens a small menu: WhatsApp link +
   smart assistant. The chat window opens above it. Scroll-top sits small in
   the inline-start corner. All respect the bottom safe-area inset.
   ========================================================================== */
.contact-fab {
  position: fixed;
  bottom: var(--fab-bottom);
  inset-inline-end: var(--fab-edge);
  z-index: 1100; /* above the header, below modals (2500+) */
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* inline-end: under/over the toggle */
  gap: var(--space-3);
  font-family: var(--font-body);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

/* Keep the full-screen hero clean: the floating contact button appears once
   the visitor scrolls past most of it (the hero has its own CTAs). */
body.hero-in-view .contact-fab:not(:focus-within) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.contact-fab-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--fab-size);
  height: var(--fab-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--on-gold);
  font-size: 1.4rem;
  box-shadow: var(--shadow-3);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.contact-fab-toggle:hover {
  background: var(--gold-300);
  transform: translateY(-2px);
}

.contact-fab-toggle i {
  grid-area: 1 / 1;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}

.contact-fab-icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.contact-fab.is-open .contact-fab-icon-open,
.contact-fab.is-chat-open .contact-fab-icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

.contact-fab.is-open .contact-fab-icon-close,
.contact-fab.is-chat-open .contact-fab-icon-close {
  opacity: 1;
  transform: none;
}

.contact-fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  padding-inline-end: 2px; /* centre the 44px action icons over the 56px toggle */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    visibility 0s linear var(--dur-fast);
}

.contact-fab.is-open .contact-fab-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    visibility 0s;
}

.contact-fab-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding-block: 4px;
  padding-inline: var(--space-4) 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg-2);
  color: var(--text-strong);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.contact-fab-action:hover {
  border-color: rgb(var(--gold-rgb) / 0.6);
  background: #16203a;
  color: var(--text-strong);
}

.contact-fab-action-icon {
  order: 2; /* icon at the inline-end, aligned with the toggle */
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
}

.contact-fab-action.is-whatsapp .contact-fab-action-icon {
  background: var(--whatsapp);
  color: #fff;
}

.contact-fab-action.is-chat .contact-fab-action-icon {
  background: var(--gold-500);
  color: var(--on-gold);
}

/* Chat window: anchored above the contact button */
.chat-widget {
  position: fixed;
  bottom: calc(var(--fab-bottom) + var(--fab-size) + var(--space-3));
  inset-inline-end: var(--fab-edge);
  z-index: 1100;
  font-family: var(--font-body);
}

.chat-window {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: min(360px, calc(100vw - 2 * var(--fab-edge)));
  height: min(520px, calc(100vh - 180px));
  height: min(520px, calc(100dvh - 180px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(var(--surface-2), var(--surface-2)), var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-4);
  transform-origin: bottom left; /* grows out of the contact button (inline-end in RTL) */
  transform: scale(0.6);
  opacity: 0;
  visibility: hidden; /* closed window is out of the tab order */
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.3s;
}

.chat-widget.active .chat-window {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: rgb(var(--gold-rgb) / 0.1);
  border-bottom: 1px solid var(--border);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title i {
  color: var(--gold-500);
  font-size: 1.5rem;
}

.chat-title-name {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.4;
}

/* tiny meta line */
.chat-title .status {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--success);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.chat-title .status[data-state="busy"] {
  color: var(--gold-500);
}

.chat-title .status[data-state="ready"] {
  color: var(--success);
}

.chat-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.chat-close:hover {
  color: var(--text-strong);
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-messages-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}

.message {
  position: relative;
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
  animation: slideUp 0.3s ease-out;
}

.message p {
  margin: 0;
}

.bot-message {
  align-self: flex-start;
  background: var(--surface-3);
  color: var(--text-strong);
  border-end-start-radius: 2px;
}

.bot-message a {
  color: var(--gold-300);
  font-weight: 700;
}

.user-message {
  align-self: flex-end;
  background: var(--gold-500);
  color: var(--on-gold);
  border-end-end-radius: 2px;
}

.message .time {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem; /* 12px minimum for timestamps */
  opacity: 0.75;
  text-align: end;
}

.typing {
  min-width: 180px;
}

.typing-indicator-content {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.typing-label {
  color: var(--text-strong);
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

/* functional "assistant is typing" indicator */
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.35;
  animation: chatTypingDot 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0.4rem;
  align-self: flex-start;
  max-width: 100%;
  animation: slideUp 0.3s ease-out;
}

.chat-suggestion-chip {
  min-height: 36px;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid rgb(var(--gold-rgb) / 0.35);
  color: var(--text-strong);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.chat-suggestion-chip:hover,
.chat-suggestion-chip:focus-visible {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--on-gold);
  transform: translateY(-1px);
}

.chat-suggestion-chip:active {
  transform: translateY(0);
}

.chat-footer {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4);
  border-top: 1px solid var(--border);
}

.chat-footer input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  font-family: inherit;
  font-size: var(--fs-base);
}

.chat-footer input:focus {
  border-color: var(--gold-500);
}

.chat-footer button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--on-gold);
  font-size: var(--fs-base);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.chat-footer button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.chat-footer input:disabled,
.chat-footer button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chatTypingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* Scroll-top: small, inline-start corner, vertically centred on the FAB row */
#scroll-top {
  -webkit-appearance: none;
  appearance: none;
  position: fixed;
  bottom: calc(var(--fab-bottom) + (var(--fab-size) - 44px) / 2);
  inset-inline-start: var(--fab-edge);
  z-index: 1100;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgb(var(--bg-2-rgb) / 0.9);
  color: var(--text-strong);
  font: inherit;
  font-size: 0.9rem;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

#scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top:hover {
  border-color: rgb(var(--gold-rgb) / 0.6);
  color: var(--gold-300);
  transform: translateY(-2px);
}


/* ==========================================================================
   19. MODALS / LIGHTBOX
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

/* Shared shells */
.service-gallery-modal,
.video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.service-gallery-modal { z-index: 2500; }
.video-modal { z-index: 2600; }

.service-gallery-modal.open,
.video-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-gallery-backdrop,
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(var(--bg-2-rgb) / 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-gallery-dialog,
.video-modal-dialog {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  padding: var(--space-6);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, transparent 0%, var(--surface-2) 100%), var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-4);
}

.service-gallery-dialog {
  width: min(1100px, 100%);
  max-height: min(86vh, 900px);
  max-height: min(86dvh, 900px);
}

.video-modal-dialog {
  width: min(1020px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
}

/* Close buttons sit at the inline end (left in RTL) */
.service-gallery-close,
.video-modal-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.service-gallery-close:hover,
.video-modal-close:hover {
  background: var(--gold-500);
  color: var(--on-gold);
}

.service-gallery-header,
.video-modal-header {
  padding-inline-end: 3.5rem;
}

.service-gallery-header {
  margin-bottom: 1.75rem;
}

.video-modal-header {
  margin-bottom: var(--space-5);
}

.service-gallery-badge,
.video-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgb(var(--gold-rgb) / 0.16);
  color: var(--gold-500);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.service-gallery-header h3,
.video-modal-header h3 {
  color: var(--text-strong);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.service-gallery-header p,
.video-modal-header p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

.service-gallery-header p {
  max-width: 760px;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.service-gallery-item {
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.service-gallery-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2); /* skeleton while the photo loads */
}

.service-gallery-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur) var(--ease);
}

/* Loading skeleton: subtle sweep, removed by GalleryModalView once the image loads */
.service-gallery-image.is-loading img {
  opacity: 0;
}

.service-gallery-image.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.06) 50%, rgb(255 255 255 / 0) 100%);
  transform: translateX(-100%);
  animation: gallery-skeleton 1.4s var(--ease-soft) infinite;
}

@keyframes gallery-skeleton {
  to { transform: translateX(100%); }
}

.service-gallery-image[role="button"] {
  cursor: zoom-in;
}

/* inset ring: the item clips overflow */
.service-gallery-image:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: -3px;
}

.service-gallery-copy {
  padding: 1rem 1rem 1.15rem;
}

.service-gallery-copy h4 {
  color: var(--text-strong);
  font-size: var(--fs-base);
  margin-bottom: 0.45rem;
}

.service-gallery-copy p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

/* Video modal player */
.video-modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.video-modal-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-fallback {
  margin-top: var(--space-5);
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.video-modal-fallback p {
  margin-bottom: var(--space-4);
  color: var(--text);
  line-height: var(--lh-body);
}

/* Image lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  inset-inline-end: 30px; /* same side as the other modal close buttons */
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.lightbox-close:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--on-gold);
}

.lightbox-content {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 85vh;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease);
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-4);
}

.lightbox-caption {
  margin-top: 15px;
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 500;
  text-align: center;
}


/* ==========================================================================
   20. UTILITIES
   ========================================================================== */

/* Honeypot field: off-screen, not display:none --------------------------- */
/* Read by screen readers, not drawn */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 404 page ------------------------------------------------------------------ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page-icon {
  margin-bottom: var(--space-5);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold-500);
}

.error-page-code {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.error-page-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-5);
}

.error-page-lead {
  margin: 0 auto var(--space-6);
}

/* Short English line for visitors of the Arabic 404 page */
.error-page-en {
  margin: var(--space-6) auto 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.error-page-en a {
  color: var(--gold-300);
}


/* ==========================================================================
   21. RESPONSIVE (desktop-first)
   ========================================================================== */
/* Small desktops: six nav links + CTA fit without icons and with tighter gaps */
@media (min-width: 993px) and (max-width: 1200px) {
  .header-content {
    gap: var(--space-4);
  }

  .main-nav ul {
    gap: 1.1rem;
  }

  .main-nav a i {
    display: none;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-space: var(--space-9);
  }

}

@media (max-width: 992px) {
  /* Header: dark slide-in drawer from the inline end */
  .nav-toggle {
    display: flex;
  }

  .header-actions .cta-btn {
    display: none; /* keep the toggle on-screen */
  }

  .main-nav {
    position: fixed;
    top: 0;
    inset-inline-end: -100%;
    z-index: 999;
    display: block;
    width: min(86vw, 340px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
    background: var(--bg-2);
    border-inline-start: 1px solid var(--border);
    box-shadow: var(--shadow-4);
    visibility: hidden;
    transition: inset-inline-end 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
  }

  .main-nav.active {
    inset-inline-end: 0;
    visibility: visible;
    transition: inset-inline-end 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .main-nav a {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-md);
    color: var(--text-strong);
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--gold-300);
    background: transparent;
  }

  /* Language link at the end of the drawer (pill, not a list row) */
  .main-nav .nav-lang {
    display: block;
    padding-top: var(--space-5);
  }

  .main-nav .nav-lang .lang-switch {
    display: inline-flex;
    width: auto;
    min-height: 44px;
    justify-content: center;
    padding: 0 1.25rem;
    border: 1px solid rgb(var(--gold-rgb) / 0.45);
    font-size: var(--fs-base);
    color: var(--gold-300);
  }

  .main-nav .nav-lang .lang-switch:hover {
    border-color: var(--gold-500);
    color: var(--text-strong);
  }

  /* Floating buttons step aside while the drawer is open */
  body.menu-open .chat-widget,
  body.menu-open .contact-fab,
  body.menu-open #scroll-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgb(0 0 0 / 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  /* Builder frame (14) */
  .contact-form-enhanced {
    padding: var(--space-6) var(--space-5);
  }

  .builder-options.grid-3,
  .builder-options.grid-4 {
    --cols: 3;
  }

  .send-more-grid {
    grid-template-columns: 1fr;
  }

  .ticket-meta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    gap: var(--space-4);
  }

  .hero-desc {
    font-size: var(--fs-base);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .video-modal-dialog {
    padding: 1.25rem;
  }

  .video-modal-header {
    padding-inline-end: 0;
    padding-top: var(--space-6);
  }

  .builder-progress {
    display: none;
  }

  .builder-progress-mobile {
    display: block;
  }

  .summary-row {
    flex-direction: column;
  }

  .builder-form {
    grid-template-columns: 1fr;
  }

  .ticket-row {
    flex-direction: column;
    gap: var(--space-4);
  }

  .VIP-ticket {
    padding: var(--space-5);
  }

  .VIP-ticket::before,
  .VIP-ticket::after {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --section-space: var(--space-8);
    --fab-size: 52px;
    --fab-edge: 1rem;
  }

  .trust-stat {
    padding-inline: var(--space-2);
  }

  .contact-form-enhanced {
    padding: var(--space-5) var(--space-4);
    border-radius: var(--r-lg);
  }

  .summary-header {
    gap: var(--space-3);
  }

  .summary-logo {
    height: 32px;
  }

  .ticket-badge {
    flex-shrink: 0;
    padding: 0.35rem 0.8rem;
    white-space: nowrap;
  }

  .builder-options.grid-3,
  .builder-options.grid-4 {
    --cols: 2;
    --opt-gap: 0.75rem;
  }

  .builder-option {
    padding: var(--space-5) var(--space-3);
    gap: var(--space-2);
  }

  .builder-option i {
    font-size: 1.75rem;
  }

}

@media (max-width: 320px) {
  h1 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
  }
}


/* ==========================================================================
   22. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .service-gallery-image.is-loading::before {
    animation: none;
  }

  .iso-badge-seal,
  .hero-bg .hero-slide,
  .hero-glow,
  .hero-beam,
  .hero-grain,
  .hero-leak {
    animation: none;
    transition: none;
    will-change: auto;
  }

  .svc-stage-cap.is-swapping {
    animation: none;
  }

  /* No photo zoom inside frames (services stage, video thumbs, project covers, certificates) */
  .project-card-media img,
  .project-card:hover .project-card-media img,
  .project-card:focus-visible .project-card-media img,
  .svc-stage-img,
  .svc-stage-img.is-active,
  .video-thumb img,
  .video-card-trigger:hover .video-thumb img,
  .video-card-trigger:focus-visible .video-thumb img,
  .credential-thumb img,
  .credential-card:hover .credential-thumb img,
  .credential-card:focus-visible .credential-thumb img {
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   23. HERO REEL: slide caption + progress bars
   Used by the hero--* layouts below; hidden in the default hero design.
   JS (HeroView / HeroController) sets --hero-slide-ms, the caption text and .is-active.
   ========================================================================== */
.hero-reel {
  display: none;
}

/* One line, so a longer caption never shifts the layout */
.hero-caption {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  white-space: nowrap;
  margin: 0 0 var(--space-1);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-strong);
  text-shadow: 0 1px 3px rgb(var(--bg-rgb) / 0.8), 0 2px 14px rgb(var(--bg-rgb) / 0.6);
}

.hero-caption-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--gold-300);
}

/* thin gold rule between the label and the caption */
.hero-caption-label::after {
  content: '';
  width: 18px;
  height: 1px;
  background: rgb(var(--gold-rgb) / 0.7);
}

.hero-caption-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.hero-progress {
  display: flex;
  gap: 6px;
}

/* Each bar is a 24px-tall button (comfortable target) drawing a 3px track */
.hero-progress-bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  cursor: pointer;
}

.hero-progress-bar::before,
.hero-progress-bar::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: var(--r-pill);
}

.hero-progress-bar::before {
  background: rgb(255 255 255 / 0.28);
  transition: background-color var(--dur-fast) var(--ease);
}

.hero-progress-bar:hover::before {
  background: rgb(255 255 255 / 0.5);
}

/* Fill grows from the inline-start edge (right in RTL) */
.hero-progress-bar::after {
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left center;
}

[dir="rtl"] .hero-progress-bar::after {
  transform-origin: right center;
}

.hero-progress-bar.is-active::after {
  animation: hero-progress var(--hero-slide-ms, 7s) linear forwards;
}

.hero.is-paused .hero-progress-bar::after {
  animation-play-state: paused;
}

.hero-progress-bar:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* No rotation under reduced motion: the active bar is simply solid gold */
@media (prefers-reduced-motion: reduce) {
  .hero-progress-bar.is-active::after {
    animation: none;
    transform: none;
  }
}


/* ==========================================================================
   24. HERO — CINEMATIC FRAME (chosen design)
   The photo reel sits in a large rounded inset frame; poster-style text at
   the bottom, caption + progress at the top. Builds on the base hero above.
   ========================================================================== */

/* Show the reel, start-aligned text */
.hero--framed .hero-reel {
  display: block;
}

.hero--framed .hero-intro {
  text-align: start;
}

.hero--framed .hero-desc {
  margin-inline: 0;
  text-wrap: pretty;
}

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

/* Kicker with a short gold rule on its inline-start side */
.hero--framed .hero-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero--framed .hero-kicker::before {
  content: '';
  flex: none;
  width: 32px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--gold-gradient);
}

/* Compact inline stats (start-aligned, no top rule) */
.hero--framed .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: start;
}

.hero--framed .hero-stats .trust-stat {
  align-items: flex-start;
  gap: 0;
  padding-inline: var(--space-5);
}

.hero--framed .hero-stats .trust-stat:first-child {
  padding-inline-start: 0;
}

.hero--framed .hero-stats .trust-stat-num {
  font-size: var(--fs-lg);
}

@media (max-width: 768px) {
  /* Keep the CTAs in a start-aligned row (the base hero stacks them) */
  .hero--framed .hero-actions {
    flex-direction: row;
    width: auto;
  }

  .hero--framed .hero-actions .btn {
    width: auto;
  }
}

@media (max-width: 600px) {
  /* Two CTAs side by side, together full width */
  .hero--framed .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    width: 100%;
  }

  .hero--framed .hero-actions .btn {
    width: 100%;
    max-width: none;
    padding: 0.85rem 0.5rem;
    gap: var(--space-2);
    font-size: var(--fs-base);
    white-space: nowrap;
  }

  .hero--framed .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .hero--framed .hero-stats .trust-stat {
    padding-inline: var(--space-2);
  }

  .hero--framed .hero-stats .trust-stat-text {
    font-size: var(--fs-xs);
  }
}


/* --------------------------------------------------------------------------
   C. hero--framed: cinematic inset frame, poster-style text at the bottom
   -------------------------------------------------------------------------- */
.hero--framed .hero-intro {
  --frame-top: var(--hero-header-space);
  --frame-x: var(--space-4);
  --frame-bottom: var(--space-4);
  --frame-radius: var(--r-xl);
  --frame-pad: clamp(var(--space-5), 3.6vw, var(--space-8));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--space-5) var(--space-7);
  padding:
    calc(var(--frame-top) + var(--frame-pad) * 0.6)
    calc(var(--frame-x) + var(--frame-pad))
    calc(var(--frame-bottom) + var(--frame-pad));
}

.hero--framed .hero-bg,
.hero--framed .hero-ambient {
  inset-block: var(--frame-top) var(--frame-bottom);
  inset-inline: var(--frame-x);
  border-radius: var(--frame-radius);
}

.hero--framed .hero-bg {
  border: 1px solid var(--border);
  background-color: var(--bg-2); /* frame reads even before a photo loads */
  box-shadow: var(--shadow-3);
}

/* Poster scrim: heavy at the bottom (text), a corner vignette at the top
   inline-end (caption), plus a soft darkening on the inline-start side */
.hero--framed .hero-bg::after {
  background:
    radial-gradient(ellipse 65% 45% at 0% 0%, rgb(var(--bg-rgb) / 0.92) 0%, rgb(var(--bg-rgb) / 0.82) 35%, rgb(var(--bg-rgb) / 0.4) 65%, rgb(var(--bg-rgb) / 0) 100%),
    linear-gradient(0deg, rgb(var(--bg-rgb) / 0.96) 0%, rgb(var(--bg-rgb) / 0.9) 28%, rgb(var(--bg-rgb) / 0.8) 46%, rgb(var(--bg-rgb) / 0.55) 62%, rgb(var(--bg-rgb) / 0.15) 80%, rgb(var(--bg-rgb) / 0.4) 100%),
    linear-gradient(to left, rgb(var(--bg-rgb) / 0.55) 0%, rgb(var(--bg-rgb) / 0.2) 50%, rgb(var(--bg-rgb) / 0) 75%);
}

[dir="ltr"] .hero--framed .hero-bg::after {
  background:
    radial-gradient(ellipse 65% 45% at 100% 0%, rgb(var(--bg-rgb) / 0.92) 0%, rgb(var(--bg-rgb) / 0.82) 35%, rgb(var(--bg-rgb) / 0.4) 65%, rgb(var(--bg-rgb) / 0) 100%),
    linear-gradient(0deg, rgb(var(--bg-rgb) / 0.96) 0%, rgb(var(--bg-rgb) / 0.9) 28%, rgb(var(--bg-rgb) / 0.8) 46%, rgb(var(--bg-rgb) / 0.55) 62%, rgb(var(--bg-rgb) / 0.15) 80%, rgb(var(--bg-rgb) / 0.4) 100%),
    linear-gradient(to right, rgb(var(--bg-rgb) / 0.55) 0%, rgb(var(--bg-rgb) / 0.2) 50%, rgb(var(--bg-rgb) / 0) 75%);
}

.hero--framed .hero-reel {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: clamp(290px, 26vw, 360px);
}

.hero--framed .hero-intro-content {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  max-width: 660px;
  margin: 0;
}

.hero--framed .hero-title {
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero--framed .hero-desc {
  max-width: 34em;
  margin-bottom: var(--space-5);
  font-size: var(--fs-md);
}

.hero--framed .hero-stats {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  padding-bottom: var(--space-2);
}

@media (max-width: 992px) {
  .hero--framed .hero-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .hero--framed .hero-reel {
    grid-column: 1;
  }

  .hero--framed .hero-intro-content {
    grid-column: 1;
  }

  .hero--framed .hero-stats {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    padding-bottom: 0;
  }
}

@media (max-width: 600px) {
  .hero--framed .hero-intro {
    --frame-top: calc(var(--hero-header-space) - var(--space-2));
    --frame-x: 10px;
    --frame-bottom: 10px;
    --frame-radius: var(--r-lg);
    --frame-pad: var(--space-4);
    gap: var(--space-5);
  }

  .hero--framed .hero-bg::after,
  [dir="ltr"] .hero--framed .hero-bg::after {
    /* px-based: top band for the caption, bottom-anchored scrim for the text */
    background:
      linear-gradient(180deg, rgb(var(--bg-rgb) / 0.88) 0px, rgb(var(--bg-rgb) / 0.72) 70px, rgb(var(--bg-rgb) / 0) 150px),
      linear-gradient(to top, rgb(var(--bg-rgb) / 0.97) 0px, rgb(var(--bg-rgb) / 0.92) 300px, rgb(var(--bg-rgb) / 0.86) 470px, rgb(var(--bg-rgb) / 0.3) 590px, rgb(var(--bg-rgb) / 0) 100%);
  }

  .hero--framed .hero-reel {
    width: 100%;
  }

  .hero--framed .hero-title {
    margin-bottom: var(--space-3);
  }

  .hero--framed .hero-desc {
    font-size: var(--fs-base);
    line-height: 1.75;
  }

  .hero--framed .hero-stats {
    padding-top: var(--space-4);
    border-top: 1px solid rgb(255 255 255 / 0.12);
  }
}


/* ==========================================================================
   25. PROJECTS (#projects: delivered projects, right after 09 Videos)
   Same --bg-2 band as the videos above, separated by a hairline, so the page
   keeps alternating --bg / --bg-2 (10 How we work follows on --bg).
   Each card is one <button>: the cover is a framed 4:3 photo under the
   shared bottom --scrim, with the title and the photo count on top.
   ProjectsController opens the shared gallery (19) and hides the
   non-featured items behind .projects-toggle (no JS: everything shows).
   ========================================================================== */
/* div.projects-block#projects: the second half of the works section, under
   a hairline, with a small start-aligned heading of its own */
.projects-block {
  margin-top: var(--space-9);
  padding-top: var(--space-9);
  border-top: 1px solid var(--border);
}

.projects-head {
  margin-bottom: var(--space-6);
}

.projects-head h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-strong);
}

.projects-head p {
  margin: 0;
  color: var(--text-muted);
  line-height: var(--lh-body);
}

.projects-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.projects-item[hidden],
.projects-toggle[hidden] {
  display: none;
}

.project-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background-color: var(--bg);
  box-shadow: var(--shadow-2);
  color: var(--text-strong);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}

.project-card-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-zoom) var(--ease-soft);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
  pointer-events: none;
}

.project-card-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  padding: var(--space-5);
}

.project-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.45;
  color: var(--text-strong);
}

/* Photo count after a thin gold rule (the hero caption's language) */
.project-card-count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
  color: var(--gold-300);
}

.project-card-count::before {
  content: '';
  width: 18px;
  height: 1px;
  background: rgb(var(--gold-rgb) / 0.7);
}

.project-card:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-color: rgb(var(--gold-rgb) / 0.5);
}

.project-card:focus-visible .project-card-media img {
  transform: scale(1.04);
}

/* Hover devices only (touch never gets a sticky state) */
@media (hover: hover) {
  .project-card:hover {
    border-color: rgb(var(--gold-rgb) / 0.45);
  }

  .project-card:hover .project-card-media img {
    transform: scale(1.04);
  }
}

.projects-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .projects-block {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .project-card-copy {
    padding: var(--space-4);
  }
}


/* ==========================================================================
   26. ENGLISH (LTR, /en/)
   The /en/ pages reuse every rule above: logical properties flip the layout
   on their own. Only type metrics differ: Tajawal's Latin is wider than its
   Arabic, so the hero headline gets a slightly smaller floor (each sentence
   stays on one line at 375px) and a tighter line-height. Letter-spacing
   stays 0 as everywhere else.
   ========================================================================== */
html[lang="en"] .hero--framed .hero-title {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4.25rem);
  line-height: 1.1;
}
