/* =====================================================================
   MULTILINES INTERNATIONAL — Corporate Visual System v4.1
   Balanced Slate & Gold Palette directly driven by Brand Logo:
   - Primary Brand Slate: #204558 (Dominant Brand Blue)
   - Deep Slate:          #153242 / #0F2430 (Elevated Cards & Footer)
   - Brand Gold Accent:   #C9A76B / #B89354 (Royal Gold Highlights)
   - Cyan Support Line:   #4CD3E0 / #00A8B8
   ===================================================================== */

:root {
  --brand-slate: #204558;          /* Primary logo slate blue */
  --brand-slate-dark: #153242;     /* Card deep slate */
  --brand-slate-deeper: #0F2430;   /* Midnight footer slate */
  --brand-slate-light: #2C5A70;
  --brand-slate-tint: #EAF0F4;     /* Soft light slate section tint */
  
  --accent: #C9A76B;               /* Logo gold */
  --accent-light: #E6D3B0;
  --accent-deep: #B89354;
  --accent-gradient: linear-gradient(135deg, #E2C895 0%, #C9A76B 50%, #B28E49 100%);
  --accent-glow: rgba(201, 167, 107, 0.35);
  
  --cyan: #4CD3E0;                 /* Cyan trade line */
  --cyan-deep: #00A8B8;
  
  --bg-light: #F4F7F9;
  --bg-white: #FFFFFF;
  
  --err: #EF4444;
  --success: #10B981;
  
  --line-slate: rgba(255, 255, 255, 0.14);
  --line-slate-strong: rgba(255, 255, 255, 0.28);
  --line-light: rgba(32, 69, 88, 0.12);
  --line-gold: rgba(201, 167, 107, 0.35);
  
  --ff-d: 'Archivo', system-ui, -apple-system, sans-serif;
  --ff-b: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-m: 'IBM Plex Mono', monospace;
  
  --shell: 1240px;
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
  --head-h: 84px;
  
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-inout: cubic-bezier(0.45, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 280ms;
  --t-slow: 500ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
}

html, body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--brand-slate);
  color: #F8FAFC;
  font: 400 1.05rem/1.7 var(--ff-b);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--brand-slate-dark);
}

/* Scroll Top Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 1000;
  width: 0%;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.1s linear;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent);
  color: var(--brand-slate-dark);
  padding: 0.8rem 1.3rem;
  font: 700 0.92rem var(--ff-b);
  text-decoration: none;
  transition: top var(--t-med) var(--e-out);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ */
/* BUTTONS & BADGES                                                   */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.85rem 2.1rem;
  border: 1px solid transparent;
  font: 700 0.96rem/1 var(--ff-d);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-med) var(--e-out);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--brand-slate-dark);
  box-shadow: 0 4px 20px rgba(201, 167, 107, 0.35);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s var(--e-out);
}
.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.btn-lg {
  min-height: 58px;
  padding: 1rem 2.4rem;
  font-size: 1rem;
}
.btn-full { width: 100%; }

.btn-arrow {
  transition: transform var(--t-med) var(--e-out);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(2px);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-deep);
    color: #FFFFFF;
    box-shadow: 0 6px 26px rgba(201, 167, 107, 0.5);
    transform: translateY(-2px);
  }
  .btn-ghost:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--brand-slate);
    transform: translateY(-2px);
  }
}

/* ------------------------------------------------------------------ */
/* HEADER & NAVIGATION                                                */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--t-med) var(--e-out);
}
.site-header.is-scrolled {
  --head-h: 68px;
  background: #FFFFFF;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--head-h);
  transition: min-height var(--t-med) var(--e-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  height: 46px;
  width: auto;
  transition: height var(--t-med) var(--e-out), transform 0.4s var(--e-out), filter 0.4s var(--e-out);
}
.brand:hover .brand-mark {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.brand-word {
  height: 32px;
  width: auto;
  transition: height var(--t-med) var(--e-out);
}
.site-header.is-scrolled .brand-mark { height: 38px; }
.site-header.is-scrolled .brand-word { height: 26px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.3rem;
}
.nav-list {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-link, .site-nav .btn { white-space: nowrap; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 0.98rem var(--ff-b);
  color: var(--brand-slate);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color var(--t-med) var(--e-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--e-out);
}
.nav-link:hover, .nav-link.is-active {
  color: var(--accent-deep);
}
.nav-link.is-active::after, .nav-link:hover::after {
  transform: scaleX(1);
}

.nav-toggle { display: none; }

/* Mobile Menu */
@media (max-width: 919px) {
  html.nav-open body { overflow: hidden; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: #FFFFFF;
    border: 1px solid var(--brand-slate);
    color: var(--brand-slate);
    font: 600 0.84rem var(--ff-m);
    padding: 0.65rem 1rem;
    min-height: 48px;
    cursor: pointer;
  }
  .nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 20px;
  }
  .nav-toggle-icon i {
    display: block; height: 2px; background: currentColor; transition: transform var(--t-med) var(--e-out);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 55;
    background: #FFFFFF;
    border-bottom: 3px solid var(--accent);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--head-h) + 1rem) var(--pad) 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: all var(--t-med) var(--e-out);
  }
  .site-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-top: 1px solid var(--line-light); }
  .nav-link { font-size: 1.2rem; padding: 0.8rem 0; color: var(--brand-slate); }
  .nav-quote { margin-top: 1.5rem; width: 100%; }
}

/* ------------------------------------------------------------------ */
/* HERO SECTION                                                       */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: radial-gradient(circle at 75% 20%, #2A5A72 0%, #204558 60%, #153242 100%);
  color: #FFFFFF;
  padding: clamp(3rem, 6vh, 4.5rem) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-slate-strong);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(15, 36, 48, 0.6);
  border: 1px solid var(--accent);
  border-radius: 30px;
  font: 600 0.82rem var(--ff-m);
  color: var(--accent-light);
  margin-bottom: 1.6rem;
  backdrop-filter: blur(8px);
  animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.badge-pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201, 167, 107, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(201, 167, 107, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201, 167, 107, 0); }
}

.hero-title {
  margin: 0 0 1.2rem;
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(2.8rem, 5.8vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.hero-title .em-highlight {
  position: relative;
  background: linear-gradient(110deg, #E2C895 0%, #FFFFFF 30%, #C9A76B 50%, #4CD3E0 70%, #E2C895 100%);
  background-size: 200% auto;
  color: transparent !important;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldTextShimmer 4s linear infinite;
}
@keyframes goldTextShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.hero-title .em-highlight::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.hero-sub {
  max-width: 54ch;
  margin: 0 0 2.4rem;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* ------------------------------------------------------------------ */
/* SPEC TILT CARD                                                     */
/* ------------------------------------------------------------------ */
.spec-tilt {
  position: relative;
  z-index: 2;
  background: var(--brand-slate-dark);
  border: 1px solid var(--line-slate-strong);
  border-left: 4px solid var(--accent);
  padding: clamp(1.8rem, 2.5vw, 2.4rem);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease-out, box-shadow var(--t-med) var(--e-out);
  transform-style: preserve-3d;
}

.spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-slate);
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
}

.spec-eyebrow {
  margin: 0;
  font: 700 0.78rem var(--ff-m);
  letter-spacing: 0.12em;
  color: var(--accent-light);
}

.spec-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 600 0.76rem var(--ff-m);
  color: var(--cyan);
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.spec-list { margin: 0 0 1.6rem; }
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-slate);
}
.spec-row dt {
  font: 500 0.78rem var(--ff-m);
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spec-row dd {
  margin: 0;
  font: 600 0.98rem var(--ff-b);
  color: #FFFFFF;
  text-align: right;
}
.spec-num {
  font: 800 1.1rem var(--ff-d);
  color: var(--accent);
  margin-right: 0.4rem;
}

.highlight-gold { color: var(--accent-light) !important; font-weight: 700 !important; }
.highlight-cyan { color: var(--cyan) !important; font-weight: 700 !important; }

.spec-seam-preview {
  background: rgba(15, 36, 48, 0.6);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--line-slate);
}
.ssp-title {
  font: 600 0.72rem var(--ff-m);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.spec-seam svg { display: block; width: 100%; height: auto; }
.ss-line { fill: none; stroke-width: 2; stroke-dasharray: 6 4; animation: ssDash 4s linear infinite; }
.ss-cyan { stroke: var(--cyan); }
.ss-paper { stroke: rgba(255, 255, 255, 0.8); }
.ss-gold { stroke: var(--accent); }
.ss-main { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-dasharray: 8 4; animation: ssDash 2.2s linear infinite reverse; }
.ss-node { fill: #FFFFFF; filter: drop-shadow(0 0 6px var(--accent)); animation: ssNodeGlow 2s ease-in-out infinite; }

@keyframes ssDash {
  to { stroke-dashoffset: -40; }
}

@keyframes ssNodeGlow {
  0%, 100% { filter: drop-shadow(0 0 6px var(--accent)); r: 5; }
  50% { filter: drop-shadow(0 0 14px var(--cyan)); r: 6.5; }
}

/* ------------------------------------------------------------------ */
/* STATS BAND                                                         */
/* ------------------------------------------------------------------ */
.stats-band {
  position: relative;
  z-index: 3;
  background: var(--accent-gradient);
  color: var(--brand-slate-dark);
  border-top: 1px solid var(--line-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0; margin: 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.1rem 1.2rem;
  border-right: 1px solid rgba(21, 50, 66, 0.15);
  transition: background var(--t-med) var(--e-out);
}
.stat:last-child { border-right: none; }
.stat:hover {
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--brand-slate-dark);
  border: 1px solid var(--brand-slate);
  color: var(--accent-light);
  border-radius: 5px;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-value {
  display: block;
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  line-height: 1;
  color: var(--brand-slate-dark);
}
.stat-plus {
  color: var(--brand-slate);
  font-size: 0.8em;
  margin-left: 2px;
}
.stat-label {
  display: block;
  font: 600 0.72rem var(--ff-m);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-slate-dark);
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------------ */
/* SECTIONS GENERAL                                                   */
/* ------------------------------------------------------------------ */
/* Ambient Floating Background Light Orbs */
.hero::before, .about::before, .services::before, .contact::before {
  content: "";
  position: absolute;
  top: 15%; left: 8%;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 167, 107, 0.16) 0%, rgba(76, 211, 224, 0.06) 50%, transparent 75%);
  filter: blur(65px);
  pointer-events: none;
  animation: bgOrbMove 14s ease-in-out infinite alternate;
  z-index: 1;
}

.about::after, .services::after, .why::before {
  content: "";
  position: absolute;
  bottom: 10%; right: 8%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 211, 224, 0.14) 0%, rgba(201, 167, 107, 0.07) 50%, transparent 75%);
  filter: blur(65px);
  pointer-events: none;
  animation: bgOrbMove2 18s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes bgOrbMove {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(140px, 90px) scale(1.25); }
}

@keyframes bgOrbMove2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-120px, -70px) scale(0.85); }
}

.section {
  padding-block: clamp(4.5rem, 9vh, 7rem);
  position: relative;
}

.section-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  border-top: 1px solid var(--line-slate-strong);
  padding-top: 1.8rem;
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}
.section-head::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 0; height: 3px;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.75s var(--e-out) 0.15s;
}
.section-head.is-visible::before {
  width: 50px;
}

.sec-index {
  font: 800 clamp(2.2rem, 3.5vw, 3rem)/0.9 var(--ff-d);
  color: var(--accent);
}

.sec-sub {
  display: block;
  font: 600 0.78rem var(--ff-m);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  color: #FFFFFF;
}

/* Light Section Headings */
.section.workshop .section-head,
.section.why .section-head,
.section.clients .section-head {
  border-top-color: var(--line-light);
}
.section.workshop .section-head h2,
.section.why .section-head h2,
.section.clients .section-head h2 {
  color: var(--brand-slate);
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
}
.section.workshop .lede,
.section.why .lede {
  color: var(--brand-slate-dark);
}

/* ------------------------------------------------------------------ */
/* ABOUT SECTION                                                      */
/* ------------------------------------------------------------------ */
.about {
  background: var(--brand-slate);
  color: #FFFFFF;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.about-copy p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.ah-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--brand-slate-dark);
  border: 1px solid var(--line-slate);
  border-radius: 4px;
  transition: transform var(--t-med) var(--e-out), border-color var(--t-med) var(--e-out), box-shadow var(--t-med) var(--e-out);
}
.ah-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.ah-icon { font-size: 1.5rem; }
.ah-info h4 { margin: 0 0 0.3rem; font: 700 1rem var(--ff-d); color: #FFFFFF; }
.ah-info p { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }

.about-media-wrapper {
  position: relative;
}

.ph {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line-slate-strong);
}
.ph::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-25deg);
  transition: left 0.85s var(--e-out);
  pointer-events: none;
  z-index: 2;
}
.ph:hover::after {
  left: 160%;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 48, 0.6);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity var(--t-med) var(--e-out);
  cursor: pointer;
}
.ph:hover .media-overlay { opacity: 1; }

.zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--brand-slate-dark);
  border: 1px solid var(--accent);
  color: #FFFFFF;
  font: 600 0.85rem var(--ff-m);
  border-radius: 30px;
}

.ph.has-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--e-out);
}
.ph:hover img { transform: scale(1.04); }

/* PROJECT ACTIVITIES ACROSS THE KINGDOM BANNER */
.footprint {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-slate-strong);
  padding-top: 2rem;
  margin-top: 1.5rem;
}

.unified-kingdom-banner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  background: var(--brand-slate-dark);
  border: 1px solid var(--line-slate-strong);
  border-left: 4px solid var(--accent);
  padding: 1.6rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ukb-badge {
  display: inline-block;
  font: 700 0.74rem var(--ff-m);
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

.ukb-content h3 {
  margin: 0 0 0.6rem;
  font: 800 1.4rem var(--ff-d);
  color: #FFFFFF;
}

.ukb-content p {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  line-height: 1.6;
}

.ukb-features {
  display: grid;
  gap: 0.65rem;
}

.ukb-feat {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem 0.95rem;
  background: rgba(15, 36, 48, 0.7);
  border: 1px solid var(--line-slate);
  border-radius: 6px;
}
.ukb-icon { font-size: 1.15rem; flex-shrink: 0; }
.ukb-feat h4 { margin: 0; font: 700 0.92rem var(--ff-d); color: #FFFFFF; }
.ukb-feat p { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }

.ukb-map-card {
  background: rgba(15, 36, 48, 0.8);
  border: 1px solid var(--line-slate-strong);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.saudi-map-svg {
  width: 100%;
  max-height: 190px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.map-contour {
  fill: rgba(255, 255, 255, 0.05);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.map-radar-line {
  stroke: url(#radarGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: 200px 140px;
  animation: radarSpin 5.5s linear infinite;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px var(--cyan));
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.map-link-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.75;
  animation: mapDashFlow 2s linear infinite;
}

@keyframes mapDashFlow {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

.map-node {
  fill: var(--accent);
}
.node-central { fill: #FFFFFF; }

.map-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  animation: mapPulse 2.8s infinite;
}

.map-node-group .map-pulse:nth-of-type(1) { animation-delay: 0s; }
.map-node-group .map-pulse:nth-of-type(2) { animation-delay: 0.55s; }
.map-node-group .map-pulse:nth-of-type(3) { animation-delay: 1.1s; }
.map-node-group .map-pulse:nth-of-type(4) { animation-delay: 1.65s; }
.map-node-group .map-pulse:nth-of-type(5) { animation-delay: 2.2s; }

@keyframes mapPulse {
  0% { r: 6px; opacity: 0.9; }
  100% { r: 24px; opacity: 0; }
}

.map-label {
  font: 600 11px var(--ff-m);
  fill: #FFFFFF;
}

.ukb-map-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: 600 0.78rem var(--ff-m);
  color: var(--accent-light);
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-slate);
}

/* ------------------------------------------------------------------ */
/* WORKSHOP SECTION                                                   */
/* ------------------------------------------------------------------ */
.workshop { background: var(--bg-light); color: var(--brand-slate); }

.workshop-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.cap-list {
  list-style: none;
  padding: 0; margin: 2rem 0 0;
}

.cap {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  background: #FFFFFF;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(32, 69, 88, 0.04);
  transition: all var(--t-med) var(--e-out);
}
.cap:hover, .cap.active {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(32, 69, 88, 0.08);
}
.cap.active {
  border-left: 4px solid var(--accent);
}

.cap-i {
  font: 700 1.1rem var(--ff-m);
  color: var(--accent-deep);
}

.cap h3 {
  margin: 0 0 0.35rem;
  font: 700 1.15rem var(--ff-d);
  color: var(--brand-slate);
}
.cap p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--brand-slate-dark);
}

.workshop-media-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.capacity-box {
  background: #FFFFFF;
  border: 1px solid var(--line-light);
  padding: 1.6rem;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(32, 69, 88, 0.05);
}
.cb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.8rem;
}
.cb-title {
  font: 700 1rem var(--ff-d);
  color: var(--brand-slate);
}
.cb-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 600 0.74rem var(--ff-m);
  color: var(--success);
}

.capacity-strip {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 1.2rem;
}

.cap-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.cap-val {
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-slate);
}
.cap-val small { font-size: 0.6em; color: var(--text-muted-dark); }

.meter-bar {
  width: 50%;
  height: 6px;
  background: var(--brand-slate-tint);
  border-radius: 3px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #E2C895 0%, #C9A76B 50%, #4CD3E0 100%);
  background-size: 200% 100%;
  border-radius: 3px;
  transition: width 1.2s var(--e-out);
  animation: meterShimmer 3s ease-in-out infinite;
}

@keyframes meterShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cap-lab {
  font: 500 0.74rem var(--ff-m);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}

/* ------------------------------------------------------------------ */
/* SERVICES & TABS                                                    */
/* ------------------------------------------------------------------ */
.services { background: var(--brand-slate); color: #FFFFFF; }

.service-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.service-tab-btn {
  padding: 0.75rem 1.6rem;
  background: var(--brand-slate-dark);
  border: 1px solid var(--line-slate);
  color: #FFFFFF;
  font: 600 0.9rem var(--ff-b);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--t-med) var(--e-out);
}
.service-tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.service-tab-btn.active {
  background: var(--accent-gradient);
  color: var(--brand-slate-dark);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(201, 167, 107, 0.3);
}

.services-list {
  display: grid;
  gap: 1.8rem;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.2rem;
  background: var(--brand-slate-dark);
  border: 1px solid var(--line-slate-strong);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all var(--t-med) var(--e-out);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.sc-number {
  font: 800 2.5rem var(--ff-d);
  color: var(--line-slate-strong);
  transition: color var(--t-med) var(--e-out);
}
.service-card:hover .sc-number {
  color: var(--accent);
}

.sc-badge {
  display: inline-block;
  font: 600 0.72rem var(--ff-m);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.sc-head h3 {
  margin: 0 0 0.6rem;
  font: 700 1.6rem var(--ff-d);
  color: #FFFFFF;
}
.sc-head p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
}

.service-tags {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 1.5rem;
}
.service-tags li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #FFFFFF;
}
.service-tags svg { color: var(--accent); flex-shrink: 0; }

.mep-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 2.2rem;
  background: var(--brand-slate-dark);
  border: 1px solid var(--line-slate-strong);
  border-left: 4px solid var(--cyan);
  border-radius: 6px;
}
.mep-tag {
  display: inline-block;
  font: 600 0.74rem var(--ff-m);
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.mep-banner-text h3 {
  margin: 0 0 0.8rem;
  font: 700 1.5rem var(--ff-d);
  color: #FFFFFF;
}
.mep-banner-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}
.mep-banner-img {
  aspect-ratio: 16/9;
}

/* ------------------------------------------------------------------ */
/* WHY US SECTION                                                     */
/* ------------------------------------------------------------------ */
.why {
  background: var(--bg-light);
  color: var(--brand-slate);
  padding-block: clamp(4.5rem, 9vh, 7.5rem);
}
.why-lede {
  max-width: 62ch;
  margin: 0 0 3.5rem;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: var(--brand-slate-dark);
}

.seam-wrap {
  background: #FFFFFF;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 30px rgba(32, 69, 88, 0.06);
}
.seam-title-bar {
  text-align: center;
  margin-bottom: 2rem;
}
.seam-title-bar h3 {
  margin: 0 0 0.4rem;
  font: 700 1.3rem var(--ff-d);
  color: var(--brand-slate);
  letter-spacing: 0.05em;
}
.seam-title-bar p {
  margin: 0;
  font: 500 0.85rem var(--ff-m);
  color: var(--text-muted-dark);
}

.seam { width: 100%; height: auto; display: block; }
.seam-mobile { display: none; }
@media (max-width: 640px) {
  .seam-desktop { display: none; }
  .seam-mobile { display: block; }
}

.seam-line { fill: none; stroke-width: 3; }
.line-cyan { stroke: var(--cyan-deep); }
.line-paper { stroke: var(--brand-slate); }
.line-orange { stroke: var(--accent); }
.seam-collector { stroke: var(--brand-slate); stroke-width: 2.5; }
.seam-main, .seam-end { stroke: var(--accent); stroke-width: 5; }
.seam-tick { stroke: var(--text-muted-dark); stroke-width: 2; }
.seam-node { fill: var(--brand-slate-dark); }

.seam-line {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--e-inout);
}
.seam.is-drawn .seam-line { stroke-dashoffset: 0; }

.seam-legend {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
  justify-content: center;
  padding: 1.8rem 0 0; margin: 1.8rem 0 0;
  border-top: 1px solid var(--line-light);
  font: 500 0.82rem var(--ff-m);
  color: var(--brand-slate-dark);
}
.legend-swatch { display: inline-block; width: 1.8rem; height: 3px; vertical-align: middle; margin-right: 0.6rem; }
.legend-gap { display: inline-block; width: 3px; height: 1rem; background: var(--line-strong); vertical-align: middle; margin-right: 0.6rem; }
.legend-node { display: inline-block; width: 0.7rem; height: 0.7rem; background: var(--accent); border-radius: 50%; vertical-align: middle; margin-right: 0.6rem; }

.why-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.why-item {
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(32, 69, 88, 0.04);
  transition: all var(--t-med) var(--e-out);
}
.why-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(32, 69, 88, 0.08);
}
.why-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.why-item h3 { margin: 0 0 0.6rem; font: 700 1.3rem var(--ff-d); color: var(--brand-slate); }
.why-item p { margin: 0; font-size: 0.96rem; color: var(--brand-slate-dark); }

/* ------------------------------------------------------------------ */
/* CONTACT SECTION                                                    */
/* ------------------------------------------------------------------ */
.contact { background: var(--brand-slate); color: #FFFFFF; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-form .field {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.field-row .field { margin-bottom: 1.4rem; }

.contact-form label {
  font: 600 0.78rem var(--ff-m);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.req { color: var(--accent); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  background: var(--brand-slate-dark);
  border: 1px solid var(--line-slate-strong);
  border-radius: 4px;
  color: #FFFFFF;
  font: 400 1rem var(--ff-b);
  transition: all var(--t-fast) var(--e-out);
}
textarea { min-height: 130px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  background: var(--brand-slate-dark);
}

.field-error {
  margin: 0;
  font: 500 0.82rem var(--ff-b);
  color: var(--err);
  display: none;
}

.form-submit-error[hidden] {
  display: none !important;
}

.form-submit-error {
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  font: 500 0.9rem/1.5 var(--ff-b);
  color: #FECACA;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-left: 4px solid var(--err);
  border-radius: 6px;
}

/* SUCCESS BOX ANIMATED ENTRANCE */
.form-success[hidden] {
  display: none !important;
}

.form-success {
  display: none;
  gap: 1.2rem;
  align-items: center;
  padding: 1.8rem 2rem;
  background: var(--brand-slate-dark);
  border: 2px solid var(--success);
  border-left: 6px solid var(--success);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
  margin-top: 1rem;
}

.form-success.is-visible,
.form-success:not([hidden]) {
  display: flex;
  animation: successEntrance 0.5s var(--e-out) forwards;
}

@keyframes successEntrance {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.fs-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--success);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}
.fs-content h4 { margin: 0 0 0.3rem; font: 700 1.25rem var(--ff-d); color: #FFFFFF; }
.fs-content p { margin: 0; font-size: 0.96rem; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }

.cd-card {
  background: var(--brand-slate-dark);
  border: 1px solid var(--line-slate-strong);
  border-radius: 6px;
  padding: 2rem;
}
.cd-card-header {
  border-bottom: 1px solid var(--line-slate);
  padding-bottom: 1rem;
  margin-bottom: 1.4rem;
}
.cd-tag {
  font: 600 0.72rem var(--ff-m);
  color: var(--cyan);
  text-transform: uppercase;
}
.cd-card-header h3 {
  margin: 0.2rem 0 0;
  font: 700 1.4rem var(--ff-d);
  color: #FFFFFF;
}

.cd-list { margin: 0; }
.cd-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-slate);
}
.cd-item:last-child { border-bottom: none; }
.cd-item dt {
  font: 500 0.74rem var(--ff-m);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.3rem;
}
.cd-item dd {
  margin: 0; font-weight: 600; color: #FFFFFF;
}
.cd-item a {
  color: var(--accent-light); text-decoration: none;
  transition: color var(--t-fast);
}
.cd-item a:hover { color: #FFFFFF; text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* FOOTER & POWERED BY TARISION BADGE                                */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--brand-slate-deeper);
  color: #FFFFFF;
  border-top: 3px solid var(--accent);
  padding: 3.5rem 0 2.5rem;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img:first-child { height: 52px; width: auto; }
.footer-brand img:last-child { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font: 500 0.95rem var(--ff-b);
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--accent-light); }

.footer-bottom-bar {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-legal {
  margin: 0;
  font: 400 0.82rem/1.7 var(--ff-m);
  color: rgba(255, 255, 255, 0.65);
}

.powered-by-tarision-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.pbt-label {
  font: 400 0.88rem/1 var(--ff-m);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.powered-by-tarision-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 1.1rem;
  background: #12141A;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all var(--t-med) var(--e-out);
}

.powered-by-tarision-badge:hover {
  background: #181B24;
  border-color: #818CF8;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.tarision-icon-mark {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5));
}

.tarision-brand-text {
  font: 700 0.84rem var(--ff-m);
  color: #A78BFA;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* LIGHTBOX MODAL                                                     */
/* ------------------------------------------------------------------ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex; place-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--t-med) var(--e-out);
}
.lightbox-modal.is-open {
  opacity: 1; visibility: visible;
}

.lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 36, 48, 0.9);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative; z-index: 2;
  max-width: 90vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center;
}

.lightbox-content img {
  max-width: 100%; max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 1rem;
  font: 500 0.95rem var(--ff-b);
  color: #FFFFFF;
  text-align: center;
  background: var(--brand-slate-dark);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  border: 1px solid var(--accent);
}

.lightbox-close {
  position: absolute; top: -50px; right: 0;
  background: none; border: none;
  color: #FFFFFF; font-size: 2.5rem;
  cursor: pointer; line-height: 1;
}

/* FLOATING BACK TO TOP */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 80;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--brand-slate-dark);
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 167, 107, 0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-med) var(--e-out);
}
.back-to-top-btn::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: pulseHalo 2.5s infinite;
}
@keyframes pulseHalo {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.back-to-top-btn.is-visible {
  opacity: 1; visibility: visible; transform: none;
}
.back-to-top-btn:hover {
  background: var(--accent-deep);
  color: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 167, 107, 0.6);
}

/* ------------------------------------------------------------------ */
/* REVEAL ANIMATIONS                                                  */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--e-out), transform 0.6s var(--e-out);
}
.reveal.is-visible {
  opacity: 1; transform: none;
}

/* Stat Count Completion Pop */
@keyframes statPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: var(--brand-slate-dark); }
  100% { transform: scale(1); }
}
.stat-pop {
  animation: statPop 0.45s var(--e-out);
}

/* Interactive Cursor Spotlight Glow Effect on Cards */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 167, 107, 0.14), transparent 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--e-out);
  z-index: 1;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* Button Arrow Hover Slide Nudge */
.btn-arrow {
  transition: transform var(--t-med) var(--e-out);
}
.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Custom Sleek Glowing Cursor Ring & Sparkle Trail */
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--e-out), height 0.25s var(--e-out), border-color 0.25s var(--e-out), background 0.25s var(--e-out);
  box-shadow: 0 0 15px var(--accent-glow);
  opacity: 0;
}
body:hover #cursor-ring {
  opacity: 0.85;
}
#cursor-ring.is-hovering {
  width: 56px; height: 56px;
  border-color: var(--cyan);
  background: rgba(76, 211, 224, 0.1);
  box-shadow: 0 0 25px var(--cyan);
}

.cursor-sparkle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(1);
  animation: sparkleFade 0.55s ease-out forwards;
  box-shadow: 0 0 8px currentColor;
}
@keyframes sparkleFade {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0) translateY(-16px); opacity: 0; }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 979px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(21, 50, 66, 0.15); }
  .about-grid, .workshop-grid, .contact-grid, .unified-kingdom-banner { grid-template-columns: 1fr; }
  .mep-banner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------ */
/* GOLDEN RUNNING MARQUEE TICKER LINES                                */
/* ------------------------------------------------------------------ */

/* Inline Golden Ticker between Paragraphs 01 and 02 */
.golden-ticker-inline {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(201, 167, 107, 0.1) 0%, rgba(201, 167, 107, 0.25) 50%, rgba(201, 167, 107, 0.1) 100%);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 6px;
  padding: 0.75rem 0;
  margin: 1.6rem 0 1.8rem;
  box-shadow: 0 0 20px rgba(201, 167, 107, 0.25);
  position: relative;
}

.gti-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: gtiMarquee 26s linear infinite;
  gap: 1.5rem;
}
.gti-track:hover {
  animation-play-state: paused;
}
.gti-track span {
  font: 700 0.86rem var(--ff-m);
  color: var(--accent-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gti-sep {
  color: var(--cyan) !important;
  font-size: 0.95rem;
}

@keyframes gtiMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Full-Width Golden Ticker Banner between Section 01 & Section 02 */
.golden-ticker-banner {
  width: 100%;
  background: var(--brand-slate-deeper);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 0 35px rgba(201, 167, 107, 0.35);
  padding: 1.1rem 0;
  margin: 1rem 0 0;
  overflow: hidden;
  position: relative;
}

.gtb-track {
  display: flex;
  width: max-content;
  animation: gtbMarquee 32s linear infinite;
}
.gtb-track:hover {
  animation-play-state: paused;
}

.gtb-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  white-space: nowrap;
}

.gtb-item {
  font: 700 0.95rem var(--ff-m);
  color: var(--accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.gtb-star {
  color: var(--cyan);
  font-size: 1.1rem;
}

@keyframes gtbMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------ */
/* BUTTON CLICK RIPPLE & SECTION ARRIVAL ANIMATIONS                   */
/* ------------------------------------------------------------------ */

/* Section Arrival Glow Pulse Indicator */
@keyframes sectionArrivalPulse {
  0% {
    box-shadow: inset 0 0 0 0 rgba(201, 167, 107, 0);
  }
  35% {
    box-shadow: inset 0 0 50px 12px rgba(201, 167, 107, 0.22);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(201, 167, 107, 0);
  }
}

.section-arrival-pulse {
  animation: sectionArrivalPulse 1.25s var(--e-out) forwards;
}

/* Button Active Press Scaling & Click Ripple */
.btn, .service-tab-btn, .back-to-top-btn, .powered-by-tarision-badge {
  position: relative;
  overflow: hidden;
}

.btn:active, .service-tab-btn:active, .back-to-top-btn:active, .powered-by-tarision-badge:active {
  transform: scale(0.96) !important;
  transition: transform 100ms ease;
}

.btn-click-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  transform: scale(0);
  animation: rippleExpand 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  0% {
    transform: scale(0);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ */
/* COMPREHENSIVE MOBILE OPTIMIZATIONS                                 */
/* ------------------------------------------------------------------ */

@media (max-width: 919px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { text-align: left; }
  .hero-ctas { width: 100%; }
  
  .about-grid, .workshop-grid, .contact-grid, .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .unified-kingdom-banner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 1.4rem 1.4rem;
  }
  
  .mep-banner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom on input focus */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Horizontal swipeable service tabs on mobile */
  .service-tabs-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    gap: 0.5rem;
  }
  .service-tabs-bar::-webkit-scrollbar { display: none; }
  .service-tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(21, 50, 66, 0.15); padding: 0.9rem 0.8rem; }
  .stat:nth-child(even) { border-right: none; }

  .saudi-map-svg { max-height: 170px; }
  .ukb-feat { flex-direction: row; align-items: center; padding: 0.6rem 0.8rem; }
  .ukb-feat p { font-size: 0.8rem; }
}

@media (max-width: 600px) {
  .hero-badge {
    white-space: normal;
    word-break: break-word;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-bottom: 1px solid rgba(21, 50, 66, 0.15); }
  .stat:last-child { border-bottom: none; }

  .service-tags { grid-template-columns: 1fr; gap: 0.6rem; }
  .service-card { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.4rem; }
  .sc-number { font-size: 2.2rem; }

  .field-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.4rem; }

  .footer-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-nav { flex-direction: column; gap: 0.8rem; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; gap: 1.2rem; }

  .powered-by-tarision-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .back-to-top-btn {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
  }
}

/* ------------------------------------------------------------------ */
/* MULTILINES EXTENSIONS — CONTENT EXPANSION & GRID ENHANCEMENTS      */
/* ------------------------------------------------------------------ */
.hero-disciplines {
  font: 600 0.82rem var(--ff-m);
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  margin: -1.2rem 0 2rem;
  line-height: 1.6;
}

/* Services 3 x 2 Grid on Desktop */
@media (min-width: 960px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
  .services-list .service-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2rem;
  }
  .services-list .service-tags {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .services-list .sc-head h3 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
}
@media (max-width: 959px) and (min-width: 601px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .services-list .service-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.8rem;
  }
  .services-list .service-tags {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* Why-us 3 x 2 Grid on Desktop */
@media (min-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

/* 05 Our Projects Section */
.projects {
  background: var(--brand-slate-dark);
  color: #FFFFFF;
}
.projects .sec-sub {
  color: var(--gold-light);
}
.projects .section-head h2 {
  color: #FFFFFF;
}
.projects .about-copy .sc-badge {
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}
.projects .about-copy h3 {
  margin: 0.4rem 0 1.2rem;
  font: 700 clamp(1.4rem, 2.2vw, 1.85rem) var(--ff-d);
  color: #FFFFFF;
  line-height: 1.25;
}
.projects .about-copy .lede {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
}
.projects .about-copy p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.8rem;
  line-height: 1.65;
}
.project-item + .project-item {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line-slate-strong);
}
@media (min-width: 920px) {
  .project-alt {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* 06 Selected Clients Section */
.clients {
  background: var(--bg-light);
  color: var(--brand-slate);
  padding-block: clamp(4.5rem, 9vh, 7.5rem);
}
.clients .why-lede {
  color: var(--brand-slate-dark);
}
.clients-grid {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}
.clients-grid .why-item {
  flex: 0 1 calc(33.333% - 1.2rem);
  min-width: 290px;
  max-width: 380px;
}
@media (max-width: 919px) {
  .clients-grid {
    gap: 1.4rem;
  }
  .clients-grid .why-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Footer Tagline */
.footer-tagline {
  margin: 0.85rem 0 0;
  font: 700 0.82rem var(--ff-m);
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

